chunk-3725f2c3.7c08dd50.js 2.4 MB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3725f2c3"],{"00a3":function(e,t,i){"use strict";i.d(t,"b",(function(){return l})),i.d(t,"a",(function(){return d}));var n=i("11f7"),o=i("e757"),r=i("5d28"),s=i("a666"),a=i("30db");function l(e,t){return t=new r.a(t),t.preventDefault(),{leftButton:t.leftButton,buttons:t.buttons,posx:t.posx,posy:t.posy}}class d{constructor(){this._hooks=new s.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){var i;this.isMonitoring()&&(this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,i=this._onStopCallback,this._onStopCallback=null,e)&&i&&i(t)}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(e,t,i,s,l){if(!this.isMonitoring()){this._mouseMoveEventMerger=i,this._mouseMoveCallback=s,this._onStopCallback=l;i=o.a.getSameOriginWindowChain();var d=a.c?"pointermove":"mousemove";s=i.map(e=>e.window.document),l=n.F(e);l&&s.unshift(l);for(const e of s)this._hooks.add(n.l(e,d,e=>{e.buttons!==t?this.stopMonitoring(!0):this._mouseMoveCallback(e)},(e,t)=>this._mouseMoveEventMerger(e,t))),this._hooks.add(n.i(e,"mouseup",e=>this.stopMonitoring(!0)));o.a.hasDifferentOriginAncestor()&&(e=i[i.length-1],this._hooks.add(n.i(e.window.document,"mouseout",e=>{"html"===new r.a(e).target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(n.i(e.window.document,"mouseover",e=>{"html"===new r.a(e).target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(n.i(e.window.document.body,"mouseleave",e=>{this.stopMonitoring(!0)})))}}}},"01b0":function(e,t,i){},"0292":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return i.e("chunk-2d0a3577").then(i.bind(null,"0287"))}})},"03d9":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return r})),i.d(t,"e",(function(){return s})),i.d(t,"d",(function(){return a})),i.d(t,"f",(function(){return l})),i.d(t,"h",(function(){return d})),i.d(t,"i",(function(){return h})),i.d(t,"g",(function(){return c}));var n,o,r,s,a,l,d,h,c;t=i("dff7");(i=n=n||{}).noSelection=t.a("noSelection","No selection"),i.singleSelectionRange=t.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),i.singleSelection=t.a("singleSelection","Line {0}, Column {1}"),i.multiSelectionRange=t.a("multiSelectionRange","{0} selections ({1} characters selected)"),i.multiSelection=t.a("multiSelection","{0} selections"),i.emergencyConfOn=t.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),i.openingDocs=t.a("openingDocs","Now opening the Editor Accessibility documentation page."),i.readonlyDiffEditor=t.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),i.editableDiffEditor=t.a("editableDiffEditor"," in a pane of a diff editor."),i.readonlyEditor=t.a("readonlyEditor"," in a read-only code editor"),i.editableEditor=t.a("editableEditor"," in a code editor"),i.changeConfigToOnMac=t.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),i.changeConfigToOnWinLinux=t.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),i.auto_on=t.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),i.auto_off=t.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),i.tabFocusModeOnMsg=t.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),i.tabFocusModeOnMsgNoKb=t.a("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),i.tabFocusModeOffMsg=t.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),i.tabFocusModeOffMsgNoKb=t.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),i.openDocMac=t.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),i.openDocWinLinux=t.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),i.outroMsg=t.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),i.showAccessibilityHelpAction=t.a("showAccessibilityHelpAction","Show Accessibility Help"),(o=o||{}).inspectTokensAction=t.a("inspectTokens","Developer: Inspect Tokens"),(r=r||{}).gotoLineActionLabel=t.a("gotoLineActionLabel","Go to Line/Column..."),(s=s||{}).helpQuickAccessActionLabel=t.a("helpQuickAccess","Show all Quick Access Providers"),(i=a=a||{}).quickCommandActionLabel=t.a("quickCommandActionLabel","Command Palette"),i.quickCommandHelp=t.a("quickCommandActionHelp","Show And Run Commands"),(i=l=l||{}).quickOutlineActionLabel=t.a("quickOutlineActionLabel","Go to Symbol..."),i.quickOutlineByCategoryActionLabel=t.a("quickOutlineByCategoryActionLabel","Go to Symbol by Category..."),(i=d=d||{}).editorViewAccessibleLabel=t.a("editorViewAccessibleLabel","Editor content"),i.accessibilityHelpMessage=t.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options."),(h=h||{}).toggleHighContrast=t.a("toggleHighContrast","Toggle High Contrast Theme"),(c=c||{}).bulkEditServiceSummary=t.a("bulkEditServiceSummary","Made {0} edits in {1} files")},"03e8":function(e,t,i){"use strict";i.d(t,"a",(function(){return g})),i.d(t,"c",(function(){return h})),i.d(t,"b",(function(){return m}));var n,o=i("308f"),r=(t=i("a666"),i("ef8e9")),s=i("5fe7"),a=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};(c=n=n||{})[c.None=0]="None",c[c.Initialized=1]="Initialized",c[c.Closed=2]="Closed";class l extends t.a{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new o.b),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=n.None,this.cache=new Map,this.flushDelayer=new s.f(l.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(e=>this.onDidChangeItemsExternal(e)))}onDidChangeItemsExternal(e){var t;null!=(t=e.changed)&&t.forEach((e,t)=>this.accept(t,e)),null!=(t=e.deleted)&&t.forEach(e=>this.accept(e,void 0))}accept(e,t){if(this.state!==n.Closed){let i=!1;Object(r.m)(t)?i=this.cache.delete(e):this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0),i&&this._onDidChangeStorage.fire(e)}}get(e,t){return e=this.cache.get(e),Object(r.m)(e)?t:e}getBoolean(e,t){return e=this.get(e),Object(r.m)(e)?t:"true"===e}getNumber(e,t){return e=this.get(e),Object(r.m)(e)?t:parseInt(e,10)}set(e,t){return a(this,void 0,void 0,(function*(){var i;if(this.state!==n.Closed)return Object(r.m)(t)?this.delete(e):(i=String(t),this.cache.get(e)!==i?(this.cache.set(e,i),this.pendingInserts.set(e,i),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),this.flushDelayer.trigger(()=>this.flushPending())):void 0)}))}delete(e){return a(this,void 0,void 0,(function*(){if(this.state!==n.Closed&&this.cache.delete(e))return this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),this.flushDelayer.trigger(()=>this.flushPending())}))}get hasPending(){return 0<this.pendingInserts.size||0<this.pendingDeletes.size}flushPending(){return a(this,void 0,void 0,(function*(){var e;if(this.hasPending)return e={insert:this.pendingInserts,delete:this.pendingDeletes},this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally(()=>{var e;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)null!=(e=this.whenFlushedCallbacks.pop())&&e()})}))}dispose(){this.flushDelayer.dispose(),super.dispose()}}l.DEFAULT_FLUSH_DELAY=100;class d{constructor(){this.onDidChangeItemsExternal=o.c.None,this.items=new Map}updateItems(e){return a(this,void 0,void 0,(function*(){e.insert&&e.insert.forEach((e,t)=>this.items.set(t,e)),e.delete&&e.delete.forEach(e=>this.items.delete(e))}))}}var h,c=i("0a0f");const u="__$__targetStorageMarker",g=Object(c.c)("storageService");(i=h=h||{})[i.NONE=0]="NONE",i[i.SHUTDOWN=1]="SHUTDOWN";class p extends t.a{constructor(e={flushInterval:p.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new o.e),this._onDidChangeTarget=this._register(new o.e),this._onWillSaveState=this._register(new o.b),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._globalKeyTargets=void 0}emitDidChangeValue(e,t){t===u?(0===e?this._globalKeyTargets=void 0:1===e&&(this._workspaceKeyTargets=void 0),this._onDidChangeTarget.fire({scope:e})):this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,i){return null==(t=this.getStorage(t))?void 0:t.get(e,i)}getBoolean(e,t,i){return null==(t=this.getStorage(t))?void 0:t.getBoolean(e,i)}getNumber(e,t,i){return null==(t=this.getStorage(t))?void 0:t.getNumber(e,i)}store(e,t,i,n){Object(r.m)(t)?this.remove(e,i):this.withPausedEmitters(()=>{var o;this.updateKeyTarget(e,i,n),null!=(o=this.getStorage(i))&&o.set(e,t)})}remove(e,t){this.withPausedEmitters(()=>{var i;this.updateKeyTarget(e,t,void 0),null!=(i=this.getStorage(t))&&i.delete(e)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){var n=this.getKeyTargets(t);"number"==typeof i?n[e]!==i&&(n[e]=i,null!=(i=this.getStorage(t)))&&i.set(u,JSON.stringify(n)):"number"==typeof n[e]&&(delete n[e],null!=(i=this.getStorage(t)))&&i.set(u,JSON.stringify(n))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get globalKeyTargets(){return this._globalKeyTargets||(this._globalKeyTargets=this.loadKeyTargets(0)),this._globalKeyTargets}getKeyTargets(e){return 0===e?this.globalKeyTargets:this.workspaceKeyTargets}loadKeyTargets(e){if(e=this.get(u,e),e)try{return JSON.parse(e)}catch(e){}return Object.create(null)}}p.DEFAULT_FLUSH_INTERVAL=6e4;class m extends p{constructor(){super(),this.globalStorage=this._register(new l(new d)),this.workspaceStorage=this._register(new l(new d)),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.globalStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e)))}getStorage(e){return 0===e?this.globalStorage:this.workspaceStorage}}},"0447":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return i.e("chunk-2d0d0645").then(i.bind(null,"687d"))}})},"045b":function(e,t,i){"use strict";function n(e,t){var i=e.getCount(),n=(t=e.findTokenIndexAtOffset(t),e.getLanguageId(t));let r=t;for(;r+1<i&&e.getLanguageId(r+1)===n;)r++;let s=t;for(;0<s&&e.getLanguageId(s-1)===n;)s--;return new o(e,n,s,r+1,e.getStartOffset(s),e.getEndOffset(r))}i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return r}));class o{constructor(e,t,i,n,o,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=o,this._lastCharOffset=r}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function r(e){return 0!=(7&e)}},"0542":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return i.e("chunk-2d216f3b").then(i.bind(null,"c53f"))}})},"0632":function(e,t,i){},"0829":function(e,t,i){},"0836":function(e,t,i){},"0910":function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return m})),i.d(t,"c",(function(){return f}));var n=i("308f"),o=i("ef8e9"),r=i("dff7");t=i("dd1b"),i=i("89cd");const s={Configuration:"base.contributions.configuration"},a={properties:{},patternProperties:{}},l={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},c={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g="vscode://schemas/settings/resourceLanguage",p=i.a.as(t.a.JSONContribution),m=new RegExp("\\[.*\\]$");function f(e){return e.substring(1,e.length-1)}const _=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.b,this._onDidUpdateConfiguration=new n.b,this.defaultValues={},this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:r.a("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},p.registerSchema(g,this.resourceLanguageSettingsSchema)}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=[];e.forEach(e=>{i.push(...this.validateAndRegisterProperties(e,t,e.extensionInfo)),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}),p.registerSchema(g,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)}registerOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}validateAndRegisterProperties(e,t=!0,i,n=3){n=o.m(e.scope)?n:e.scope;var s,a,l=[],d=e.properties;if(d)for(var h in d)t&&function(e){return e.trim()?m.test(e)?r.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==_.getConfigurationProperties()[e]&&r.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):r.a("config.property.empty","Cannot register an empty property")}(h)?delete d[h]:(a=d[h],this.updatePropertyDefaultValue(h,a),m.test(h)?a.scope=void 0:(a.scope=o.m(a.scope)?n:a.scope,a.restricted=o.m(a.restricted)?!(null==(s=null==i?void 0:i.restrictedConfigurations)||!s.includes(h)):a.restricted),d[h].hasOwnProperty("included")&&!d[h].included?(this.excludedConfigurationProperties[h]=d[h],delete d[h]):(this.configurationProperties[h]=d[h],!d[h].deprecationMessage&&d[h].markdownDeprecationMessage&&(d[h].deprecationMessage=d[h].markdownDeprecationMessage),l.push(h)));if(e=e.allOf,e)for(var c of e)l.push(...this.validateAndRegisterProperties(c,t,i,n));return l}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(e){const t=e=>{var i=e.properties;if(i)for(const t in i)this.updateSchema(t,i[t]);e=e.allOf,e&&e.forEach(t)};t(e)}updateSchema(e,t){switch((a.properties[e]=t).scope){case 1:l.properties[e]=t;break;case 2:d.properties[e]=t;break;case 6:h.properties[e]=t;break;case 3:c.properties[e]=t;break;case 4:u.properties[e]=t;break;case 5:u.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const i of this.overrideIdentifiers.values()){var e=`[${i}]`,t={type:"object",description:r.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:g};this.updatePropertyDefaultValue(e,t),a.properties[e]=t,l.properties[e]=t,d.properties[e]=t,h.properties[e]=t,c.properties[e]=t,u.properties[e]=t}this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let i=this.defaultValues[e];o.l(i)&&(i=t.default),o.l(i)&&(i=function(e){switch(e=Array.isArray(e)?e[0]:e,e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=i}};i.a.add(s.Configuration,_)},"099d":function(e,t,i){"use strict";function n(e){return e<0?0:255<e?255:0|e}function o(e){return e<0?0:4294967295<e?4294967295:0|e}i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o}))},"09d1":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return i.e("chunk-2d226775").then(i.bind(null,"e97b"))}})},"09db":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i("d3f4"),o=i("6a89");class r{static _handleEolEdits(e,t){let i=void 0;var n,o=[];for(n of t)"number"==typeof n.eol&&(i=n.eol),n.range&&"string"==typeof n.text&&o.push(n);return"number"==typeof i&&e.hasModel()&&e.getModel().pushEOL(i),o}static _isFullModelReplaceEdit(e,t){return!!e.hasModel()&&(t=(e=e.getModel()).validateRange(t.range),e.getFullModelRange().equalsRange(t))}static execute(e,t,i){i&&e.pushUndoStop(),t=r._handleEolEdits(e,t),1===t.length&&r._isFullModelReplaceEdit(e,t[0])?e.executeEdits("formatEditsCommand",t.map(e=>n.a.replace(o.a.lift(e.range),e.text))):e.executeEdits("formatEditsCommand",t.map(e=>n.a.replaceMove(o.a.lift(e.range),e.text))),i&&e.pushUndoStop()}}},"0a0f":function(e,t,i){"use strict";var n,o;i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return r})),i.d(t,"c",(function(){return a})),i.d(t,"d",(function(){return l})),(o=n=n||{}).serviceIds=new Map,o.DI_TARGET="$di$target",o.DI_DEPENDENCIES="$di$dependencies",o.getServiceDependencies=function(e){return e[o.DI_DEPENDENCIES]||[]};const r=a("instantiationService");function s(e,t,i,o){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:i,optional:o}):(t[n.DI_DEPENDENCIES]=[{id:e,index:i,optional:o}],t[n.DI_TARGET]=t)}function a(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);function t(e,i,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");s(t,e,n,!1)}return t.toString=()=>e,n.serviceIds.set(e,t),t}function l(e){return function(t,i,n){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");s(e,t,n,!0)}}},"0a31":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0f70"),i=i("30db");const n={clipboard:{writeText:i.g||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:i.g||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:i.g||t.i?0:navigator.keyboard||t.h?1:2,touch:"ontouchstart"in window||0<navigator.maxTouchPoints,pointerEvents:window.PointerEvent&&("ontouchstart"in window||0<window.navigator.maxTouchPoints||0<navigator.maxTouchPoints)}},"0a33":function(e,t,i){},"0a89":function(e,t,i){"use strict";i.d(t,"c",(function(){return s})),i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return l}));var n=i("3742"),o=i("7061"),r=i("6a89");const s=!1;class a{constructor(e,t,i,n,o){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selectionStartPosition=n,this.selectionEndPosition=o}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(e){return new a(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)}collapseSelection(){return new a(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(e,t,i){t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){var t;return e<=this.selectionStart?(t=this.value.substring(e,this.selectionStart),this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)):e>=this.selectionEnd?(t=this.value.substring(this.selectionEnd,e),this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)):-1===(t=this.value.substring(this.selectionStart,e)).indexOf(String.fromCharCode(8230))?this._finishDeduceEditorPosition(this.selectionStartPosition,t,1):(t=this.value.substring(e,this.selectionEnd),this._finishDeduceEditorPosition(this.selectionEndPosition,t,-1))}_finishDeduceEditorPosition(e,t,i){let n=0,o=-1;for(;-1!==(o=t.indexOf("\n",o+1));)n++;return[e,i*t.length,n]}static selectedText(e){return new a(e,0,e.length,null,null)}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};let o=e.value;var r=e.selectionStart;e=e.selectionEnd;let s=t.value;var a=t.selectionStart,l=(t=t.selectionEnd,o.substring(e)),d=s.substring(t);l=n.e(l,d),s=s.substring(0,s.length-l),d=(o=o.substring(0,o.length-l)).substring(0,r),l=s.substring(0,a),l=n.d(d,l);if(s=s.substring(l),o=o.substring(l),a-=l,r-=l,t-=l,e-=l,i&&a==t&&0<o.length){let e=null;if(a===s.length?s.startsWith(o)&&(e=s.substring(o.length)):s.endsWith(o)&&(e=s.substring(0,s.length-o.length)),null!==e&&0<e.length&&(/\uFE0F/.test(e)||n.k(e)))return{text:e,replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0}}if(a==t){if(o===s&&0==r&&e===o.length&&a===s.length&&-1===s.indexOf("\n")&&n.l(s))return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const t=d.length-l;return{text:s,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}const h=e-r;return{text:s,replacePrevCharCnt:h,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){var i,o,r;return e?e.value===t.value?{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd}:(i=Math.min(n.d(e.value,t.value),e.selectionEnd),r=Math.min(n.e(e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(i,e.value.length-r),r=t.value.substring(i,t.value.length-r),e.selectionStart,e=e.selectionEnd-i,t.selectionStart,t=t.selectionEnd-i,{text:r,replacePrevCharCnt:e,replaceNextCharCnt:o.length-e,positionDelta:t-r.length}):{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0}}}a.EMPTY=new a("",0,0,null,null);class l{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){return e*=t,new r.a(1+e,1,e+t+1,1)}static fromEditorSelection(e,t,i,n,s){var d=l._getPageOfLine(i.startLineNumber,n),h=l._getRangeForPage(d,n),c=l._getPageOfLine(i.endLineNumber,n),u=(n=l._getRangeForPage(c,n),h.intersectRanges(new r.a(1,1,i.startLineNumber,i.startColumn)));let g=t.getValueInRange(u,1);u=t.getLineCount();var p=t.getLineMaxColumn(u);u=n.intersectRanges(new r.a(i.endLineNumber,i.endColumn,u,p));let m,f=t.getValueInRange(u,1);return m=d===c||d+1===c?t.getValueInRange(i,1):(p=h.intersectRanges(i),u=n.intersectRanges(i),t.getValueInRange(p,1)+String.fromCharCode(8230)+t.getValueInRange(u,1)),s&&(500<g.length&&(g=g.substring(g.length-500,g.length)),500<f.length&&(f=f.substring(0,500)),1e3<m.length)&&(m=m.substring(0,500)+String.fromCharCode(8230)+m.substring(m.length-500,m.length)),new a(g+m+f,g.length,g.length+m.length,new o.a(i.startLineNumber,i.startColumn),new o.a(i.endLineNumber,i.endColumn))}}},"0ab8":function(e,t,i){"use strict";var n=i("33f9");i.o(n,"Emitter")&&i.d(t,"Emitter",(function(){return n.Emitter})),i.o(n,"MarkerSeverity")&&i.d(t,"MarkerSeverity",(function(){return n.MarkerSeverity})),i.o(n,"Range")&&i.d(t,"Range",(function(){return n.Range})),i.o(n,"Uri")&&i.d(t,"Uri",(function(){return n.Uri})),i.o(n,"editor")&&i.d(t,"editor",(function(){return n.editor})),i.o(n,"languages")&&i.d(t,"languages",(function(){return n.languages}))},"0b112":function(e,t,i){"use strict";i.r(t),t=i("b2cc"),i=i("0b54"),Object(t.l)(i.f.ID,i.f),Object(t.j)(i.e),Object(t.j)(i.g),Object(t.j)(i.h),Object(t.j)(i.d),Object(t.j)(i.a),Object(t.j)(i.c),Object(t.k)(new i.b)},"0b3c":function(e,t,i){"use strict";var n=i("33f9");i.o(n,"Emitter")&&i.d(t,"Emitter",(function(){return n.Emitter})),i.o(n,"MarkerSeverity")&&i.d(t,"MarkerSeverity",(function(){return n.MarkerSeverity})),i.o(n,"Range")&&i.d(t,"Range",(function(){return n.Range})),i.o(n,"Uri")&&i.d(t,"Uri",(function(){return n.Uri})),i.o(n,"editor")&&i.d(t,"editor",(function(){return n.editor})),i.o(n,"languages")&&i.d(t,"languages",(function(){return n.languages}))},"0b54":function(e,t,i){"use strict";i.d(t,"f",(function(){return se})),i.d(t,"e",(function(){return de})),i.d(t,"b",(function(){return he})),i.d(t,"g",(function(){return ce})),i.d(t,"h",(function(){return ue})),i.d(t,"d",(function(){return ge})),i.d(t,"c",(function(){return pe})),i.d(t,"a",(function(){return me}));var n=i("2504");class o{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var r=i("a666"),s=i("3742"),a=(t=i("b2cc"),i("c7f5")),l=i("c101"),d=i("8495"),h=i("fdcc"),c=i("351f"),u=i("0a0f"),g=i("11f7"),p=i("f070"),m=i("7061"),f=i("b707"),_=i("9e56"),b=i("533b"),v=i("6dec"),C=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},w=function(e,t){return function(i,n){t(i,n,e)}},y=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class S extends p.a{constructor(e,t){super(e.command?e.command.id:e.title,e.title.replace(/\r\n|\r|\n/g," "),void 0,!e.disabled,t),this.action=e}}let L=class extends r.a{constructor(e,t,i,n){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._visible=!1,this._showingActions=this._register(new r.d),this._keybindingResolver=new x({getKeybindings:()=>n.getKeybindings()})}get isVisible(){return this._visible}show(e,t,i,n){return y(this,void 0,void 0,(function*(){var o=n.includeDisabledActions?t.allActions:t.validActions;if(o.length){if(!this._editor.getDomNode())throw this._visible=!1,Object(h.b)();this._visible=!0,this._showingActions.value=t;const n=this.getMenuActions(e,o,t.documentation),r=m.a.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},s=this._keybindingResolver.getResolver();o=this._editor.getOption(114),this._contextMenuService.showContextMenu({domForShadowRoot:o?this._editor.getDomNode():void 0,getAnchor:()=>r,getActions:()=>n,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:e=>e instanceof S?s(e.action):void 0})}else this._visible=!1}))}getMenuActions(e,t,i){var n;const o=e=>new S(e.action,()=>this._delegate.onSelectCodeAction(e));var r=t.map(o),s=[...i];i=this._editor.getModel();if(i&&r.length)for(const a of f.a.all(i))a._getAdditionalMenuItems&&s.push(...a._getAdditionalMenuItems({trigger:e.type,only:null==(n=null==(n=e.filter)?void 0:n.include)?void 0:n.value},t.map(e=>e.action)));return s.length&&r.push(new p.d,...s.map(e=>o(new d.a({title:e.title,command:e},void 0)))),r}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();e=this._editor.getScrolledVisiblePosition(e);var t=Object(g.D)(this._editor.getDomNode());return{x:t.left+e.left,y:t.top+e.top+e.height}}};L=C([w(2,b.a),w(3,v.a)],L);class x{constructor(e){this._keybindingProvider=e}getResolver(){const e=new o(()=>this._keybindingProvider.getKeybindings().filter(e=>0<=x.codeActionCommands.indexOf(e.command)).filter(e=>e.resolvedKeybinding).map(e=>{let t=e.commandArgs;return e.command===d.e?t={kind:_.b.SourceOrganizeImports.value}:e.command===d.c&&(t={kind:_.b.SourceFixAll.value}),Object.assign({resolvedKeybinding:e.resolvedKeybinding},_.a.fromUser(t,{kind:_.b.None,apply:"never"}))}));return t=>t.kind&&null!=(t=this.bestKeybindingForCodeAction(t,e.getValue()))?t.resolvedKeybinding:void 0}bestKeybindingForCodeAction(e,t){if(e.kind){const i=new _.b(e.kind);return t.filter(e=>e.kind.contains(i)).filter(t=>!t.preferred||e.isPreferred).reduceRight((e,t)=>!e||e.kind.contains(t.kind)?t:e,void 0)}}}x.codeActionCommands=[d.f,d.b,d.g,d.e,d.c];var k,D=i("00a3"),N=i("308f"),O=(i("30d5"),i("b57f")),E=i("dff7"),I=(C=i("b7d0"),i("303e")),M=i("a60f"),T=i("561a"),A=(b=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},w=function(e,t){return function(i,n){t(i,n,e)}},k=k||{});A.Hidden={type:0},A.Showing=class{constructor(e,t,i,n){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=n,this.type=1}};let R=class e extends r.a{constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new N.b),this.onClick=this._onClick.event,this._state=k.Hidden,this._domNode=document.createElement("div"),this._domNode.className=T.b.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(e=>{var t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()})),M.b.ignoreTarget(this._domNode),this._register(g.n(this._domNode,e=>{if(1===this.state.type){this._editor.focus(),e.preventDefault();var{top:t,height:i}=g.D(this._domNode),n=this._editor.getOption(58);let o=Math.floor(n/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(o+=n),this._onClick.fire({x:e.posx,y:t+i+o,actions:this.state.actions,trigger:this.state.trigger})}})),this._register(g.i(this._domNode,"mouseenter",e=>{if(1==(1&e.buttons)){this.hide();const t=new D.a;t.startMonitoring(e.target,e.buttons,D.b,()=>{},()=>{t.dispose()})}})),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(56)&&!this._editor.getOption(56).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(t,i,n){if(t.validActions.length<=0)return this.hide();var o=this._editor.getOptions();if(!o.get(56).enabled)return this.hide();var r=this._editor.getModel();if(!r)return this.hide();var{lineNumber:s,column:a}=r.validatePosition(n),l=r.getOptions().tabSize;o=o.get(42),r=r.getLineContent(s),r=O.b.computeIndentLevel(r,l),l=e=>2<e&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let d=s;if(!(22<o.spaceWidth*r))if(1<s&&!l(s-1))--d;else if(l(s+1)){if(a*o.spaceWidth<22)return this.hide()}else d+=1;this.state=new k.Showing(t,i,n,{position:{lineNumber:d,column:1},preference:e._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=k.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(1===this.state.type&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...T.b.lightBulb.classNamesArray),this._domNode.classList.add(...T.b.lightbulbAutofix.classNamesArray);var e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e)return void(this.title=E.a("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",e.getLabel()))}this._domNode.classList.remove(...T.b.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...T.b.lightBulb.classNamesArray),e=this._keybindingService.lookupKeybinding(this._quickFixActionId),this.title=e?E.a("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):E.a("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};R._posPref=[0],R=b([w(3,v.a)],R),Object(C.f)((e,t)=>{var i=null==(i=e.getColor(I.r))?void 0:i.transparent(.7),n=e.getColor(I.Q);n&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${T.b.lightBulb.cssSelector} {\n\t\t\tcolor: ${n};\n\t\t\tbackground-color: ${i};\n\t\t}`),n=e.getColor(I.P);n&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${T.b.lightbulbAutofix.cssSelector} {\n\t\t\tcolor: ${n};\n\t\t\tbackground-color: ${i};\n\t\t}`)});A=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},b=function(e,t){return function(i,n){t(i,n,e)}};var P,F=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},B=function(e,t,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e===t&&o:t.has(e))return"a"===n?o.call(e,i):o?o.value=i:t.set(e,i),i;throw new TypeError("Cannot write private member to an object whose class did not declare it")},j=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e===t&&n:t.has(e))return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e);throw new TypeError("Cannot read private member from an object whose class did not declare it")};let W=class extends r.a{constructor(e,t,i,n,s){super(),this._editor=e,this.delegate=n,this._activeCodeActions=this._register(new r.d),P.set(this,!1),this._codeActionWidget=new o(()=>this._register(s.createInstance(L,this._editor,{onSelectCodeAction:e=>F(this,void 0,void 0,(function*(){this.delegate.applyCodeAction(e,!0)}))}))),this._lightBulbWidget=new o(()=>{var e=this._register(s.createInstance(R,this._editor,t,i));return this._register(e.onClick(e=>this.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1}))),e})}dispose(){B(this,P,!0,"f"),super.dispose()}update(e){var i,n;return F(this,void 0,void 0,(function*(){if(1!==e.type)null!=(i=this._lightBulbWidget.rawValue)&&i.hide();else{let r;try{r=yield e.actions}catch(t){return void Object(h.f)(t)}if(!j(this,P,"f"))if(this._lightBulbWidget.getValue().update(r,e.trigger,e.position),1===e.trigger.type){if(null!=(i=e.trigger.filter)&&i.include){var o=this.tryGetValidActionToApply(e.trigger,r);if(o){try{yield this.delegate.applyCodeAction(o,!1)}finally{r.dispose()}return}if(e.trigger.context&&(o=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,r),o&&o.action.disabled))return c.a.get(this._editor).showMessage(o.action.disabled,e.trigger.context.position),void r.dispose()}o=!(null==(n=e.trigger.filter)||!n.include),!e.trigger.context||r.allActions.length&&(o||r.validActions.length)?(this._activeCodeActions.value=r,this._codeActionWidget.getValue().show(e.trigger,r,e.position,{includeDisabledActions:o})):(c.a.get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),(this._activeCodeActions.value=r).dispose())}else this._codeActionWidget.getValue().isVisible?r.dispose():this._activeCodeActions.value=r}}))}getInvalidActionThatWouldHaveBeenApplied(e,t){return t.allActions.length&&("first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length)?t.allActions.find(({action:e})=>e.disabled):void 0}tryGetValidActionToApply(e,t){return t.validActions.length&&("first"===e.autoApply&&0<t.validActions.length||"ifSingle"===e.autoApply&&1===t.validActions.length)?t.validActions[0]:void 0}showCodeActionList(e,t,i,n){return F(this,void 0,void 0,(function*(){this._codeActionWidget.getValue().show(e,t,i,n)}))}};P=new WeakMap,W=A([b(4,u.a)],W);var V,H=i("9e74"),z=i("4fc3"),U=(w=i("b400"),i("b0cd")),K=i("b539"),q=i("5d75"),$=i("5fe7"),G=i("82c9"),Z=i("6a89"),Y=function(e,t,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e===t&&n:t.has(e))return"m"===i?n:"a"===i?n.call(e):n?n.value:t.get(e);throw new TypeError("Cannot read private member from an object whose class did not declare it")},X=function(e,t,i,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e===t&&o:t.has(e))return"a"===n?o.call(e,i):o?o.value=i:t.set(e,i),i;throw new TypeError("Cannot write private member to an object whose class did not declare it")};const Q=new z.c("supportedCodeAction","");class J extends r.a{constructor(e,t,i,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=n,this._autoTriggerTimer=this._register(new $.g),this._register(this._markerService.onMarkerChanged(e=>this._onMarkerChanges(e))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(e=>Object(G.f)(e,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2})},this._delay)}_getRangeOfMarker(e){var t=this._editor.getModel();if(t)for(const n of this._markerService.read({resource:t.uri})){var i=t.validateRange(n);if(Z.a.intersectRanges(i,e))return Z.a.lift(i)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(this._editor.hasModel()){var t=this._editor.getModel(),i=this._editor.getSelection();if(i.isEmpty()&&2===e.type){var{lineNumber:e,column:n}=i.getPosition(),o=t.getLineContent(e);if(0===o.length)return;if(1===n){if(/\s/.test(o[0]))return}else if(n===t.getLineMaxColumn(e)){if(/\s/.test(o[o.length-1]))return}else if(/\s/.test(o[n-2])&&/\s/.test(o[n-1]))return}return i}}_createEventAndSignalChange(e,t){var i=this._editor.getModel();if(t&&i)return i=(this._getRangeOfMarker(t)||t).getStartPosition(),this._signalChange(e={trigger:e,selection:t,position:i}),e;this._signalChange(void 0)}}v=V=V||{},v.Empty={type:0},v.Triggered=class{constructor(e,t,i,n){this.trigger=e,this.rangeOrSelection=t,this.position=i,this._cancellablePromise=n,this.type=1,this.actions=n.catch(e=>{if(Object(h.e)(e))return ee;throw e})}cancel(){this._cancellablePromise.cancel()}};const ee={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class te extends r.a{constructor(e,t,i,n){super(),this._editor=e,this._markerService=t,this._progressService=n,this._codeActionOracle=this._register(new r.d),this._state=V.Empty,this._onDidChangeState=this._register(new N.b),this.onDidChangeState=this._onDidChangeState.event,ie.set(this,!1),this._supportedCodeActions=Q.bindTo(i),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(f.a.onDidChange(()=>this._update())),this._update()}dispose(){Y(this,ie,"f")||(X(this,ie,!0,"f"),super.dispose(),this.setState(V.Empty,!0))}_update(){if(!Y(this,ie,"f")){this._codeActionOracle.value=void 0,this.setState(V.Empty);const t=this._editor.getModel();if(t&&f.a.has(t)&&!this._editor.getOption(80)){var e=[];for(const i of f.a.all(t))Array.isArray(i.providedCodeActionKinds)&&e.push(...i.providedCodeActionKinds);this._supportedCodeActions.set(e.join(" ")),this._codeActionOracle.value=new J(this._editor,this._markerService,e=>{var i,n;e?(n=Object($.h)(i=>Object(d.d)(t,e.selection,e.trigger,K.b.None,i)),1===e.trigger.type&&null!=(i=this._progressService)&&i.showWhile(n,250),this.setState(new V.Triggered(e.trigger,e.selection,e.position,n))):this.setState(V.Empty)},void 0),this._codeActionOracle.value.trigger({type:2})}else this._supportedCodeActions.reset()}}trigger(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)}setState(e,t){e===this._state||(1===this._state.type&&this._state.cancel(),this._state=e,t)||Y(this,ie,"f")||this._onDidChangeState.fire(e)}}var ie=new WeakMap,ne=(C=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},A=function(e,t){return function(i,n){t(i,n,e)}},function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});function oe(e){return z.a.regex(Q.keys()[0],new RegExp("(\\s|^)"+Object(s.t)(e.value)+"\\b"))}const re={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:E.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:E.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[E.a("args.schema.apply.first","Always apply the first returned code action."),E.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),E.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:E.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let se=class e extends r.a{constructor(e,t,i,n,r){super(),this._instantiationService=r,this._editor=e,this._model=this._register(new te(this._editor,t,i,n)),this._register(this._model.onDidChangeState(e=>this.update(e))),this._ui=new o(()=>this._register(new W(e,de.Id,me.Id,{applyCodeAction:(e,t)=>ne(this,void 0,void 0,(function*(){try{yield this._applyCodeAction(e)}finally{t&&this._trigger({type:2,filter:{}})}}))},this._instantiationService)))}static get(t){return t.getContribution(e.ID)}update(e){this._ui.getValue().update(e)}showCodeActions(e,t,i){return this._ui.getValue().showCodeActionList(e,t,i,{includeDisabledActions:!1})}manualTriggerAtCurrentPosition(e,t,i){var n;this._editor.hasModel()&&(c.a.get(this._editor).closeMessage(),n=this._editor.getPosition(),this._trigger({type:1,filter:t,autoApply:i,context:{notAvailableMessage:e,position:n}}))}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e){return this._instantiationService.invokeFunction(ae,e,this._editor)}};function ae(e,t,i){return ne(this,void 0,void 0,(function*(){var o=e.get(a.a),r=e.get(H.b),s=e.get(q.a),l=e.get(U.a);if(s.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred}),yield t.resolve(n.a.None),t.action.edit&&(yield o.apply(a.b.convert(t.action.edit),{editor:i,label:t.action.title})),t.action.command)try{yield r.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(r){o="string"==typeof(s=r)?s:s instanceof Error&&"string"==typeof s.message?s.message:void 0,l.error("string"==typeof o?o:E.a("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}))}function le(e,t,i,n){e.hasModel()&&(e=se.get(e))&&e.manualTriggerAtCurrentPosition(t,i,n)}se.ID="editor.contrib.quickFixController",se=C([A(1,w.b),A(2,z.b),A(3,K.a),A(4,u.a)],se);class de extends t.b{constructor(){super({id:de.Id,label:E.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:z.a.and(l.a.writable,l.a.hasCodeActionsProvider),kbOpts:{kbExpr:l.a.editorTextFocus,primary:2132,weight:100}})}run(e,t){return le(t,E.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)}}de.Id="editor.action.quickFix";class he extends t.c{constructor(){super({id:d.b,precondition:z.a.and(l.a.writable,l.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:re}]}})}runEditorCommand(e,t,i){var n=_.a.fromUser(i,{kind:_.b.Empty,apply:"ifSingle"});return le(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?E.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):E.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?E.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):E.a("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class ce extends t.b{constructor(){super({id:d.f,label:E.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:z.a.and(l.a.writable,l.a.hasCodeActionsProvider),kbOpts:{kbExpr:l.a.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:z.a.and(l.a.writable,oe(_.b.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:re}]}})}run(e,t,i){var n=_.a.fromUser(i,{kind:_.b.Refactor,apply:"never"});return le(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?E.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):E.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):n.preferred?E.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):E.a("editor.action.refactor.noneMessage","No refactorings available"),{include:_.b.Refactor.contains(n.kind)?n.kind:_.b.None,onlyIncludePreferredActions:n.preferred},n.apply)}}class ue extends t.b{constructor(){super({id:d.g,label:E.a("source.label","Source Action..."),alias:"Source Action...",precondition:z.a.and(l.a.writable,l.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:z.a.and(l.a.writable,oe(_.b.Source))},description:{description:"Source Action...",args:[{name:"args",schema:re}]}})}run(e,t,i){var n=_.a.fromUser(i,{kind:_.b.Source,apply:"never"});return le(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?E.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):E.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?E.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):E.a("editor.action.source.noneMessage","No source actions available"),{include:_.b.Source.contains(n.kind)?n.kind:_.b.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class ge extends t.b{constructor(){super({id:d.e,label:E.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:z.a.and(l.a.writable,oe(_.b.SourceOrganizeImports)),kbOpts:{kbExpr:l.a.editorTextFocus,primary:1581,weight:100}})}run(e,t){return le(t,E.a("editor.action.organize.noneMessage","No organize imports action available"),{include:_.b.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")}}class pe extends t.b{constructor(){super({id:d.c,label:E.a("fixAll.label","Fix All"),alias:"Fix All",precondition:z.a.and(l.a.writable,oe(_.b.SourceFixAll))})}run(e,t){return le(t,E.a("fixAll.noneMessage","No fix all action available"),{include:_.b.SourceFixAll,includeSourceActions:!0},"ifSingle")}}class me extends t.b{constructor(){super({id:me.Id,label:E.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:z.a.and(l.a.writable,oe(_.b.QuickFix)),kbOpts:{kbExpr:l.a.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return le(t,E.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:_.b.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")}}me.Id="editor.action.autoFix"},"0baa":function(e,t,i){},"0bfb":function(e,t,i){"use strict";function n(e){const t=this;let i,n=!1;return function(){return n||(n=!0,i=e.apply(t,arguments)),i}}i.d(t,"a",(function(){return n}))},"0d30":function(e,t,i){},"0ef9":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return i.e("chunk-2d221814").then(i.bind(null,"cb43"))}})},"0f70":function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"b",(function(){return s})),i.d(t,"l",(function(){return a})),i.d(t,"c",(function(){return l})),i.d(t,"a",(function(){return d})),i.d(t,"g",(function(){return h})),i.d(t,"j",(function(){return c})),i.d(t,"f",(function(){return u})),i.d(t,"h",(function(){return g})),i.d(t,"k",(function(){return p})),i.d(t,"e",(function(){return m})),i.d(t,"i",(function(){return f}));var n=i("308f");class o{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n.b,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}}function r(){return o.INSTANCE.getZoomLevel()}function s(){return o.INSTANCE.getTimeSinceLastZoomLevelChanged()}function a(e){return o.INSTANCE.onDidChangeZoomLevel(e)}function l(){return o.INSTANCE.getZoomFactor()}function d(){return o.INSTANCE.getPixelRatio()}o.INSTANCE=new o,t=navigator.userAgent;const h=0<=t.indexOf("Firefox"),c=0<=t.indexOf("AppleWebKit"),u=0<=t.indexOf("Chrome"),g=!u&&0<=t.indexOf("Safari"),p=!u&&!g&&c,m=0<=t.indexOf("Android"),f=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},1080:function(e,t,i){"use strict";i.d(t,"b",(function(){return l})),i.d(t,"a",(function(){return m}));var n=i("3742"),o=i("7ab3"),r=i("6a89");class s{constructor(e,t,i,n,o,r){this._richEditBracketBrand=void 0,this.languageIdentifier=e,this.index=t,this.open=i,this.close=n,this.forwardRegex=o,this.reversedRegex=r,this._openSet=s._toSet(this.open),this._closeSet=s._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){var t=new Set;for(const i of e)t.add(i);return t}}function a(e){const t=e.length,i=(e=e.map(e=>[e[0].toLowerCase(),e[1].toLowerCase()]),[]);for(let g=0;g<t;g++)i[g]=g;for(let g=0;g<t;g++){var n=e[g];for(let l=g+1;l<t;l++)if(((e,t)=>{var[e,i]=e,[t,n]=t;return e===t||e===n||i===t||i===n})(n,e[l])){a=s=void 0;var o=i[g],r=i[l],s=Math.min(o,r),a=Math.max(o,r);for(let e=0;e<t;e++)i[e]===a&&(i[e]=s)}}var l=[];for(let g=0;g<t;g++){var d,h,c=[],u=[];for(let n=0;n<t;n++)i[n]===g&&([d,h]=e[n],c.push(d),u.push(h));0<c.length&&l.push({open:c,close:u})}return l}class l{constructor(e,t){this._richEditBracketsBrand=void 0;const i=a(t);this.brackets=i.map((t,n)=>new s(e,n,t.open,t.close,function(e,t,i,n){let o=[];o=(o=o.concat(e)).concat(t);for(let r=0,s=o.length;r<s;r++)d(o[r],i,n,o);return(o=c(o)).sort(h),o.reverse(),g(o)}(t.open,t.close,i,n),function(e,t,i,n){let o=[];o=(o=o.concat(e)).concat(t);for(let r=0,s=o.length;r<s;r++)d(o[r],i,n,o);return(o=c(o)).sort(h),o.reverse(),g(o.map(p))}(t.open,t.close,i,n))),this.forwardRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return g(t=c(t))}(this.brackets),this.reversedRegex=function(e){let t=[];for(const i of e){for(const e of i.open)t.push(e);for(const e of i.close)t.push(e)}return g((t=c(t)).map(p))}(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const n of this.brackets){for(const e of n.open)this.textIsBracket[e]=n,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of n.close)this.textIsBracket[e]=n,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function d(e,t,i,n){for(let r=0,s=t.length;r<s;r++)if(r!==i){var o=t[r];for(const t of o.open)0<=t.indexOf(e)&&n.push(t);for(const t of o.close)0<=t.indexOf(e)&&n.push(t)}}function h(e,t){return e.length-t.length}function c(e){if(e.length<=1)return e;var t=[],i=new Set;for(const n of e)i.has(n)||(t.push(n),i.add(n));return t}function u(e){var t=/^[\w ]+$/.test(e);return e=n.t(e),t?`\\b${e}\\b`:e}function g(e){return e=`(${e.map(u).join(")|(")})`,n.q(e,!0)}const p=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){if(o.d){var t=new Uint16Array(e.length);let i=0;for(let n=e.length-1;0<=n;n--)t[i++]=e.charCodeAt(n);return o.c().decode(t)}{let t=[],i=0;for(let n=e.length-1;0<=n;n--)t[i++]=e.charAt(n);return t.join("")}}(e)),t}}();class m{static _findPrevBracketInText(e,t,i,n){e=i.match(e);return e?(i=i.length-(e.index||0),e=e[0].length,new r.a(t,(n+=i)-e+1,t,n+1)):null}static findPrevBracketInRange(e,t,i,n,o){return o=p(i).substring(i.length-o,i.length-n),this._findPrevBracketInText(e,t,o,n)}static findNextBracketInText(e,t,i,n){i=i.match(e);return i&&(e=i.index||0,0!==(i=i[0].length))?new r.a(t,(n+=e)+1,t,n+1+i):null}static findNextBracketInRange(e,t,i,n,o){return i=i.substring(n,o),this.findNextBracketInText(e,t,i,n)}}},1097:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return d})),i.d(t,"e",(function(){return c})),i.d(t,"d",(function(){return u})),i.d(t,"c",(function(){return g}));t=i("561a");var n=i("7e93"),o=i("3742");const r="$(";i=new RegExp(`\\$\\(${t.a.iconNameExpression}(?:${t.a.iconModifierExpression})?\\)`,"g");const s=new RegExp("(\\\\)?"+i.source,"g");function a(e){return e.replace(s,(e,t)=>t?e:"\\"+e)}const l=new RegExp("\\\\"+i.source,"g");function d(e){return e.replace(l,e=>"\\"+e)}const h=new RegExp(`(\\s)?(\\\\)?${i.source}(\\s)?`,"g");function c(e){return-1===e.indexOf(r)?e:e.replace(h,(e,t,i,n)=>i?e:t||n||"")}function u(e){var t,i=e.indexOf(r);if(-1===i)return{text:e};{var n=e;e=i;const a=[];let l="";function o(e){if(e){l+=e;for(const t of e)a.push(g)}}let d,h,c=-1,u="",g=0,p=e;var s=n.length;for(o(n.substr(0,e));p<s;)d=n[p],h=n[p+1],d===r[0]&&h===r[1]?(c=p,o(u),u=r,p++):")"===d&&-1!==c?(t=p-c+1,g+=t,c=-1,u=""):-1!==c?/^[a-z0-9\-]$/i.test(d)?u+=d:(o(u),c=-1,u=""):o(d),p++;return o(u),{text:l,iconOffsets:a}}}function g(e,t,i=!1){var{text:t,iconOffsets:r}=t;if(!r||0===r.length)return Object(n.g)(e,t,i);var s=Object(o.J)(t," "),a=t.length-s.length;t=Object(n.g)(e,s,i);if(t)for(const n of t){var l=r[n.start+a]+a;n.start+=l,n.end+=l}return t}},"10eb":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return i.e("chunk-2d22ca58").then(i.bind(null,"f3b7"))}})},"10f4":function(e,t,i){},1165:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o})),i("40355"),t=i("0a0f");const n=Object(t.c)("contextService");class o{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}},"11f7":function(e,t,i){"use strict";i.d(t,"t",(function(){return g})),i.d(t,"N",(function(){return p})),i.d(t,"i",(function(){return f})),i.d(t,"o",(function(){return b})),i.d(t,"n",(function(){return v})),i.d(t,"g",(function(){return C})),i.d(t,"h",(function(){return w})),i.d(t,"j",(function(){return y})),i.d(t,"k",(function(){return S})),i.d(t,"T",(function(){return L})),i.d(t,"V",(function(){return x})),i.d(t,"l",(function(){return O})),i.d(t,"A",(function(){return E})),i.d(t,"z",(function(){return I})),i.d(t,"b",(function(){return T})),i.d(t,"G",(function(){return A})),i.d(t,"X",(function(){return R})),i.d(t,"D",(function(){return P})),i.d(t,"f",(function(){return F})),i.d(t,"I",(function(){return B})),i.d(t,"C",(function(){return j})),i.d(t,"B",(function(){return W})),i.d(t,"H",(function(){return V})),i.d(t,"L",(function(){return H})),i.d(t,"x",(function(){return z})),i.d(t,"J",(function(){return U})),i.d(t,"O",(function(){return q})),i.d(t,"F",(function(){return $})),i.d(t,"y",(function(){return G})),i.d(t,"w",(function(){return Z})),i.d(t,"v",(function(){return Q})),i.d(t,"Q",(function(){return J})),i.d(t,"M",(function(){return ee})),i.d(t,"d",(function(){return te})),i.d(t,"c",(function(){return ie})),i.d(t,"U",(function(){return ne})),i.d(t,"S",(function(){return oe})),i.d(t,"Y",(function(){return se})),i.d(t,"q",(function(){return ae})),i.d(t,"P",(function(){return le})),i.d(t,"R",(function(){return de})),i.d(t,"a",(function(){return ue})),i.d(t,"W",(function(){return ge})),i.d(t,"K",(function(){return pe})),i.d(t,"E",(function(){return me})),i.d(t,"u",(function(){return fe})),i.d(t,"Z",(function(){return _e})),i.d(t,"p",(function(){return be})),i.d(t,"s",(function(){return ve})),i.d(t,"r",(function(){return Ce})),i.d(t,"e",(function(){return we})),i.d(t,"m",(function(){return ye}));t=i("0f70");var n,o=i("0a31"),r=i("b835"),s=i("5d28"),a=i("5fe7"),l=i("fdcc"),d=i("308f"),h=i("a666"),c=i("b589"),u=i("30db");function g(e){for(;e.firstChild;)e.firstChild.remove()}function p(e){return null!=(e=null==e?void 0:e.isConnected)&&e}class m{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function f(e,t,i,n){return new m(e,t,i,n)}function _(e){return function(t){return e(new s.a(t))}}let b=function(e,t,i,n){let o=i;var s;return"click"===t||"mousedown"===t?o=_(i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(s=i,o=function(e){return s(new r.a(e))}),f(e,t,o,n)},v=function(e,t,i){return C(e,_(t),i)};function C(e,t,i){return f(e,u.c&&o.a.pointerEvents?te.POINTER_DOWN:te.MOUSE_DOWN,t,i)}function w(e,t,i){return f(e,u.c&&o.a.pointerEvents?te.POINTER_UP:te.MOUSE_UP,t,i)}function y(e,t){return f(e,"mouseout",i=>{let n=i.relatedTarget;for(;n&&n!==e;)n=n.parentNode;n!==e&&t(i)})}function S(e,t){return f(e,"pointerout",i=>{let n=i.relatedTarget;for(;n&&n!==e;)n=n.parentNode;n!==e&&t(i)})}let L,x,k=null;class D{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(t){Object(l.f)(t)}}static sort(e,t){return t.priority-e.priority}}{let e=[],t=null,i=!1,n=!1,o=()=>{for(i=!1,t=e,e=[],n=!0;0<t.length;)t.sort(D.sort),t.shift().execute();n=!1};x=(t,n=0)=>(t=new D(t,n),e.push(t),i||(i=!0,n=o,(k=k||(self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||(e=>setTimeout(()=>e((new Date).getTime()),0)))).call(self,n)),t),L=(e,i)=>{var o;return n?(o=new D(e,i),t.push(o),o):x(e,i)}}class N extends h.a{constructor(e,t,i,n=function(e,t){return t},o=8){super();let r=null,s=0,l=this._register(new a.g),d=()=>{s=(new Date).getTime(),i(r),r=null};this._register(f(e,t,e=>{r=n(r,e),e=(new Date).getTime()-s,o<=e?(l.cancel(),d()):l.setIfNotSet(d,o-e)}))}}function O(e,t,i,n,o){return new N(e,t,i,n,o)}function E(e){return document.defaultView.getComputedStyle(e,null)}function I(e){if(e!==document.body)return new T(e.clientWidth,e.clientHeight);if(u.c&&window.visualViewport)return new T(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new T(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new T(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new T(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class M{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){var n=E(e);let o="0";return n&&(o=n.getPropertyValue?n.getPropertyValue(t):n.getAttribute(i)),M.convertToPixels(e,o)}static getBorderLeftWidth(e){return M.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return M.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return M.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return M.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return M.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return M.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return M.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return M.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return M.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return M.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return M.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return M.getDimension(e,"margin-bottom","marginBottom")}}class T{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new T(e,t):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(e){return e instanceof T?e:new T(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&e.width===t.width&&e.height===t.height}}function A(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){i-=e.scrollTop;var o=K(e)?null:E(e);o&&(n-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=M.getBorderLeftWidth(e),i=(i+=M.getBorderTopWidth(e))+e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function R(e,t,i){"number"==typeof t&&(e.style.width=t+"px"),"number"==typeof i&&(e.style.height=i+"px")}function P(e){return e=e.getBoundingClientRect(),{left:e.left+F.scrollX,top:e.top+F.scrollY,width:e.width,height:e.height}}const F=new class{get scrollX(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function B(e){var t=M.getMarginLeft(e)+M.getMarginRight(e);return e.offsetWidth+t}function j(e){var t=M.getBorderLeftWidth(e)+M.getBorderRightWidth(e),i=M.getPaddingLeft(e)+M.getPaddingRight(e);return e.offsetWidth-t-i}function W(e){var t=M.getBorderTopWidth(e)+M.getBorderBottomWidth(e),i=M.getPaddingTop(e)+M.getPaddingBottom(e);return e.offsetHeight-t-i}function V(e){var t=M.getMarginTop(e)+M.getMarginBottom(e);return e.offsetHeight+t}function H(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function z(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"==typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}function U(e,t,i){return!!z(e,t,i)}function K(e){return e&&e.host&&e.mode}function q(e){return!!$(e)}function $(e){for(;e.parentNode;){if(e===document.body)return null;e=e.parentNode}return K(e)?e:null}function G(){let e=document.activeElement;for(;null!==e&&void 0!==e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Z(e=document.getElementsByTagName("head")[0]){var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}let Y=null;function X(){return Y=Y||Z()}function Q(e,t,i=X()){i&&t&&i.sheet.insertRule(e+"{"+t+"}",0)}function J(e,t=X()){if(t){var i,n,o=null!=(n=null==(i=t)?void 0:i.sheet)&&n.rules?i.sheet.rules:null!=(n=null==i?void 0:i.sheet)&&n.cssRules?i.sheet.cssRules:[],r=[];for(let t=0;t<o.length;t++)-1!==o[t].selectorText.indexOf(e)&&r.push(t);for(let e=r.length-1;0<=e;e--)t.sheet.deleteRule(r[e])}}function ee(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}const te={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:t.j?"webkitAnimationStart":"animationstart",ANIMATION_END:t.j?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:t.j?"webkitAnimationIteration":"animationiteration"},ie={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function ne(e){var t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function oe(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class re extends h.a{constructor(e){super(),this._onDidFocus=this._register(new d.b),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new d.b),this.onDidBlur=this._onDidBlur.event;let t=H(document.activeElement,e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,window.setTimeout(()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{H(document.activeElement,e)!==t&&(t?o:n)()},this._register(f(e,te.FOCUS,n,!0)),this._register(f(e,te.BLUR,o,!0))}}function se(e){return new re(e)}function ae(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function le(e,t){return e.insertBefore(t,e.firstChild),t}function de(e,...t){e.innerText="",ae(e,...t)}const he=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function ce(e,t,i,...o){if(t=he.exec(t),!t)throw new Error("Bad use of emmet");i=Object.assign({},i||{});var r=t[1]||"div";let s;return s=e!==n.HTML?document.createElementNS(e,r):document.createElement(r),t[3]&&(s.id=t[3]),t[4]&&(s.className=t[4].replace(/\./g," ").trim()),Object.keys(i).forEach(e=>{var t=i[e];void 0!==t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t))}),s.append(...o),s}function ue(e,t,...i){return ce(n.HTML,e,t,...i)}function ge(...e){for(var t of e)t.style.display="",t.removeAttribute("aria-hidden")}function pe(...e){for(var t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function me(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function fe(e){return e=window.devicePixelRatio*e,Math.max(1,Math.floor(e))/window.devicePixelRatio}function _e(e){window.open(e,"_blank","noopener")}function be(e){const t=()=>{e(),i=x(t)};let i=x(t);return Object(h.i)(()=>i.dispose())}function ve(e){return e?`url('${c.a.asBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function Ce(e){return`'${e.replace(/'/g,"%27")}'`}(i=n=n||{}).HTML="http://www.w3.org/1999/xhtml",i.SVG="http://www.w3.org/2000/svg",ue.SVG=function(e,t,...i){return ce(n.SVG,e,t,...i)},c.b.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");class we extends d.b{constructor(){super(),this._subscriptions=new h.b,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(f(window,"keydown",e=>{if(!e.defaultPrevented){var t=new r.a(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}},!0)),this._subscriptions.add(f(window,"keyup",e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(f(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(f(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(f(document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(f(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return we.instance||(we.instance=new we),we.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function ye(e,t){e=window.matchMedia(e),"function"==typeof e.addEventListener?e.addEventListener("change",t):e.addListener(t)}},"133b":function(e,t,i){},1389:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:function(){return i.e("chunk-2d0aab07").then(i.bind(null,"11a2"))}})},"13e8":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return i.e("chunk-2d209408").then(i.bind(null,"a7ea"))}})},1569:function(e,t,i){"use strict";function n(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}i.d(t,"a",(function(){return n}))},1665:function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return r}));t=i("30db");var n=i("dff7");const o=new(i("4fc3").c)("isWindows",t.i,Object(n.a)("isWindows","Whether the operating system is Windows")),r="inputFocus"},"16f5":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return i.e("chunk-746a9add").then(i.bind(null,"39f1d"))}})},1754:function(e,t,i){},1898:function(e,t,i){"use strict";i.d(t,"b",(function(){return D})),i.d(t,"c",(function(){return N})),i.d(t,"a",(function(){return O}));var n=i("0f70"),o=i("11f7"),r=i("6653"),s=i("5d28"),a=i("00a3"),l=(t=i("1b7d"),i("5fe7"));class d extends t.a{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",void 0!==e.top&&(this.bgDomNode.style.top="0px"),void 0!==e.left&&(this.bgDomNode.style.left="0px"),void 0!==e.bottom&&(this.bgDomNode.style.bottom="0px"),void 0!==e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...e.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px",void 0!==e.top&&(this.domNode.style.top=e.top+"px"),void 0!==e.left&&(this.domNode.style.left=e.left+"px"),void 0!==e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),void 0!==e.right&&(this.domNode.style.right=e.right+"px"),this._mouseMoveMonitor=this._register(new a.a),this.onmousedown(this.bgDomNode,e=>this._arrowMouseDown(e)),this.onmousedown(this.domNode,e=>this._arrowMouseDown(e)),this._mousedownRepeatTimer=this._register(new l.c),this._mousedownScheduleRepeatTimer=this._register(new l.g)}_arrowMouseDown(e){this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)},200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,a.b,e=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()}}var h=i("a666");class c extends h.a{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new l.g)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){var e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode)&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":""))}}var u=i("30db");class g extends t.a{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new c(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new a.a),this._shouldRender=!0,this.domNode=Object(r.b)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,e=>this._domNodeMouseDown(e))}_createArrow(e){e=this._register(new d(e)),this.domNode.domNode.appendChild(e.bgDomNode),this.domNode.domNode.appendChild(e.domNode)}_createSlider(e,t,i,n){this.slider=Object(r.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof i&&this.slider.setWidth(i),"number"==typeof n&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,e=>{e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}),this.onclick(this.slider.domNode,e=>{e.leftButton&&e.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(e){e.target===this.domNode.domNode&&this._onMouseDown(e)}delegateMouseDown(e){var t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=(t=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),this._sliderMousePosition(e));i<=n&&n<=t?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{})):this._onMouseDown(e)}_onMouseDown(e){let t,i;i=e.target===this.domNode.domNode&&"number"==typeof e.browserEvent.offsetX&&"number"==typeof e.browserEvent.offsetY?(t=e.browserEvent.offsetX,e.browserEvent.offsetY):(n=o.D(this.domNode.domNode),t=e.posx-n.left,e.posy-n.top);var n=this._mouseDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}_sliderMouseDown(e,t){const i=this._sliderMousePosition(e),n=this._sliderOrthogonalMousePosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,a.b,e=>{var t=this._sliderOrthogonalMousePosition(e);t=Math.abs(t-n);u.i&&140<t?this._setDesiredScrollPositionNow(o.getScrollPosition()):(t=this._sliderMousePosition(e)-i,this._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(t)))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),t()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}class p{constructor(e,t,i,n,o,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=o,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new p(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){return e=Math.round(e),this._visibleSize!==e&&(this._visibleSize=e,this._refreshComputedValues(),!0)}setScrollSize(e){return e=Math.round(e),this._scrollSize!==e&&(this._scrollSize=e,this._refreshComputedValues(),!0)}setScrollPosition(e){return e=Math.round(e),this._scrollPosition!==e&&(this._scrollPosition=e,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,o){e=Math.max(0,i-e),t=Math.max(0,e-2*t);var r=0<n&&i<n;return r?(i=o*(n=(t-(o=Math.round(Math.max(20,Math.floor(i*t/n)))))/(n-i)),{computedAvailableSize:Math.round(e),computedIsNeeded:r,computedSliderSize:Math.round(o),computedSliderRatio:n,computedSliderPosition:Math.round(i)}):{computedAvailableSize:Math.round(e),computedIsNeeded:r,computedSliderSize:Math.round(t),computedSliderRatio:0,computedSliderPosition:0}}_refreshComputedValues(){var e=p._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){return this._computedIsNeeded?(e=e-this._arrowSize-this._computedSliderSize/2,Math.round(e/this._computedSliderRatio)):0}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;e-=this._arrowSize;let t=this._scrollPosition;return e<this._computedSliderPosition?t-=this._visibleSize:t+=this._visibleSize,t}getDesiredScrollPositionFromDelta(e){return this._computedIsNeeded?(e=this._computedSliderPosition+e,Math.round(e/this._computedSliderRatio)):0}}var m=i("561a");const f=Object(m.e)("scrollbar-button-left",m.b.triangleLeft),_=Object(m.e)("scrollbar-button-right",m.b.triangleRight);class b extends g{constructor(e,t,i){var n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();super({lazyRender:t.lazyRender,host:i,scrollbarState:new p(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,n.width,n.scrollWidth,o.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows&&(i=(t.arrowSize-11)/2,n=(t.horizontalScrollbarSize-11)/2,this._createArrow({className:"scra",icon:f,top:n,left:i,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new s.b(null,1,0))}),this._createArrow({className:"scra",icon:_,top:n,left:void 0,bottom:void 0,right:i,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new s.b(null,-1,0))})),this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return e}_sliderMousePosition(e){return e.posx}_sliderOrthogonalMousePosition(e){return e.posy}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}const v=Object(m.e)("scrollbar-button-up",m.b.triangleUp),C=Object(m.e)("scrollbar-button-down",m.b.triangleDown);class w extends g{constructor(e,t,i){var n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();super({lazyRender:t.lazyRender,host:i,scrollbarState:new p(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows&&(i=(t.arrowSize-11)/2,n=(t.verticalScrollbarSize-11)/2,this._createArrow({className:"scra",icon:v,top:i,left:n,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new s.b(null,0,1))}),this._createArrow({className:"scra",icon:C,top:void 0,left:n,bottom:i,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new s.b(null,0,-1))})),this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return t}_sliderMousePosition(e){return e.posy}_sliderOrthogonalMousePosition(e){return e.posx}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var y=i("308f"),S=i("42e39");i("7aad");class L{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class x{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;for(;;){var o=n===this._front?e:Math.pow(2,-i);if(e-=o,t+=this._memory[n].score*o,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}return t<=.5}accept(e,t,i){e=new L(e,t,i),e.score=this._computeScore(e),-1===this._front&&-1===this._rear?(this._memory[0]=e,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=e)}_computeScore(e){if(0<Math.abs(e.deltaX)&&0<Math.abs(e.deltaY))return 1;let t=.5;return-1===this._front&&-1===this._rear||this._memory[this._rear],this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}x.INSTANCE=new x;class k extends t.a{constructor(e,t,i){super(),this._onScroll=this._register(new y.b),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new y.b),e.style.overflow="hidden",this._options=function(e){var t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:void 0!==e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:void 0===e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:void 0!==e.scrollByPage&&e.scrollByPage};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,u.f&&(t.className+=" mac"),t}(t),this._scrollable=i,this._register(this._scrollable.onScroll(e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})),t={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()},this._verticalScrollbar=this._register(new w(this._scrollable,this._options,t)),this._horizontalScrollbar=this._register(new b(this._scrollable,this._options,t)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Object(r.b)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Object(r.b)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Object(r.b)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,e=>this._onMouseOver(e)),this.onnonbubblingmouseout(this._listenOnDomNode,e=>this._onMouseOut(e)),this._hideTimeout=this._register(new l.g),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=Object(h.f)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(e){this._verticalScrollbar.delegateMouseDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,u.f&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){void 0!==e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),void 0!==e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),void 0!==e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),void 0!==e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),void 0!==e.horizontal&&(this._options.horizontal=e.horizontal),void 0!==e.vertical&&(this._options.vertical=e.vertical),void 0!==e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),void 0!==e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),void 0!==e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){0<this._mouseWheelToDispose.length!==e&&(this._mouseWheelToDispose=Object(h.f)(this._mouseWheelToDispose),e)&&this._mouseWheelToDispose.push(o.i(this._listenOnDomNode,o.d.MOUSE_WHEEL,e=>{this._onMouseWheel(new s.b(e))},{passive:!1}))}_onMouseWheel(e){var t=x.INSTANCE,i=window.devicePixelRatio/Object(n.c)();u.i||u.d?t.accept(Date.now(),e.deltaX/i,e.deltaY/i):t.accept(Date.now(),e.deltaX,e.deltaY);let o=!1;if(e.deltaY||e.deltaX){let n=e.deltaY*this._options.mouseWheelScrollSensitivity,a=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(n)>=Math.abs(a)?a=0:n=0),this._options.flipAxes&&([n,a]=[a,n]);i=!u.f&&e.browserEvent&&e.browserEvent.shiftKey,i=(!this._options.scrollYToX&&!i||a||(a=n,n=0),e.browserEvent&&e.browserEvent.altKey&&(a*=this._options.fastScrollSensitivity,n*=this._options.fastScrollSensitivity),this._scrollable.getFutureScrollPosition());var r,s={};n&&(r=50*n,r=i.scrollTop-(r<0?Math.floor(r):Math.ceil(r)),this._verticalScrollbar.writeScrollPosition(s,r)),a&&(r=50*a,r=i.scrollLeft-(r<0?Math.floor(r):Math.ceil(r)),this._horizontalScrollbar.writeScrollPosition(s,r)),s=this._scrollable.validateScrollPosition(s),i.scrollLeft===s.scrollLeft&&i.scrollTop===s.scrollTop||(this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(s):this._scrollable.setScrollPositionNow(s),o=!0)}let a=o;(a=!((a=!(a||!this._options.alwaysConsumeMouseWheel)||a)||!this._options.consumeMouseWheelIfScrollbarIsNeeded||!this._verticalScrollbar.isNeeded()&&!this._horizontalScrollbar.isNeeded())||a)&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){var e,t,i;this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)&&(t=(i=0<(e=this._scrollable.getCurrentScrollPosition()).scrollTop)?" top":"",i=(e=0<e.scrollLeft)||i?" top-left-corner":"",this._leftShadowDomNode.setClassName("shadow"+(e=e?" left":"")),this._topShadowDomNode.setClassName("shadow"+t),this._topLeftShadowDomNode.setClassName("shadow"+i+t+e))}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(()=>this._hide(),500)}}class D extends k{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;var i=new S.a(0,e=>o.V(e));super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class N extends k{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class O extends D{constructor(e,t){super(e,t),this._element=e,this.onScroll(e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}),this.scanDomNode()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},"191f":function(e,t,i){"use strict";i.d(t,"a",(function(){return p})),i.d(t,"b",(function(){return m}));var n=i("fdcc"),o=i("3742"),r=i("2c29"),s=i("ccde"),a=i("6a89"),l=i("8025");class d{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new a.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){t=t.getInverseEditOperations();var i=t[0].range;t=t[1].range;return new l.a(i.endLineNumber,i.endColumn,t.endLineNumber,t.endColumn-this._charAfterSelection.length)}}var h=i("2e5d"),c=i("e6ff"),u=i("2837"),g=i("70cb");class p{static indent(e,t,i){if(null===t||null===i)return[];var n=[];for(let o=0,r=i.length;o<r;o++)n[o]=new s.a(i[o],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return n}static outdent(e,t,i){var n=[];for(let o=0,r=i.length;o<r;o++)n[o]=new s.a(i[o],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return n}static shiftIndent(e,t,i){return s.a.shiftIndent(t,t.length+(i=i||1),e.tabSize,e.indentSize,e.insertSpaces)}static unshiftIndent(e,t,i){return s.a.unshiftIndent(t,t.length+(i=i||1),e.tabSize,e.indentSize,e.insertSpaces)}static _distributedPaste(e,t,i,n){var o=[];for(let s=0,a=i.length;s<a;s++)o[s]=new r.a(i[s],n[s]);return new h.e(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,i,n,o){var s=[];for(let h=0,c=i.length;h<c;h++){var l=i[h],d=l.getPosition();(o=(!(o=!(o&&!l.isEmpty())&&o)||n.indexOf("\n")===n.length-1)&&o)?(d=new a.a(d.lineNumber,1,d.lineNumber,1),s[h]=new r.b(d,n,l,!0)):s[h]=new r.a(l,n)}return new h.e(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(e,t,i,n,r){if(!n&&1!==t.length){if(r&&r.length===t.length)return r;if("spread"===e.multiCursorPaste&&(13===(i=10===i.charCodeAt(i.length-1)?i.substr(0,i.length-1):i).charCodeAt(i.length-1)&&(i=i.substr(0,i.length-1)),n=o.Q(i),n.length===t.length))return n}return null}static paste(e,t,i,n,o,r){return r=this._distributePasteToCursors(e,i,n,o,r),r?(i=i.sort(a.a.compareRangesUsingStarts),this._distributedPaste(e,t,i,r)):this._simplePaste(e,t,i,n,o)}static _goodIndentForLine(e,t,i){let n=null,r="";var s=g.a.getInheritIndentForLine(e.autoIndent,t,i,!1);if(s)n=s.action,r=s.indentation;else if(1<i){let n;for(n=i-1;1<=n;n--){var l=t.getLineContent(n);if(0<=o.I(l))break}if(n<1)return null;s=t.getLineMaxColumn(n),i=g.a.getEnterAction(e.autoIndent,t,new a.a(n,s,n,s)),i&&(r=i.indentation+i.appendText)}return n&&(n===u.b.Indent&&(r=p.shiftIndent(e,r)),n===u.b.Outdent&&(r=p.unshiftIndent(e,r)),r=e.normalizeIndentation(r)),r||null}static _replaceJumpToNextIndent(e,t,i,n){let o="";var s=i.getStartPosition();if(e.insertSpaces){t=h.a.visibleColumnFromColumn2(e,t,s),s=e.indentSize;var a=s-t%s;for(let e=0;e<a;e++)o+=" "}else o="\t";return new r.a(i,o,n)}static tab(e,t,i){var n=[];for(let h=0,c=i.length;h<c;h++){var o=i[h];if(o.isEmpty()){var l=t.getLineContent(o.startLineNumber);if(/^\s*$/.test(l)&&t.isCheapToTokenize(o.startLineNumber)){var d=this._goodIndentForLine(e,t,o.startLineNumber);d=e.normalizeIndentation(d||"\t");if(!l.startsWith(d)){n[h]=new r.a(new a.a(o.startLineNumber,1,o.startLineNumber,l.length+1),d,!0);continue}}n[h]=this._replaceJumpToNextIndent(e,t,o,!0)}else{if(o.startLineNumber===o.endLineNumber&&(l=t.getLineMaxColumn(o.startLineNumber),1!==o.startColumn||o.endColumn!==l)){n[h]=this._replaceJumpToNextIndent(e,t,o,!1);continue}n[h]=new s.a(o,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent})}}return n}static compositionType(e,t,i,n,o,r,s,a){return n=n.map(e=>this._compositionType(i,e,o,r,s,a)),new h.e(4,n,{shouldPushStackElementBefore:_(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,o,s){return t.isEmpty()&&(t=t.getPosition(),n=Math.max(1,t.column-n),o=Math.min(e.getLineMaxColumn(t.lineNumber),t.column+o),n=new a.a(t.lineNumber,n,t.lineNumber,o),e.getValueInRange(n)!==i||0!==s)?new r.d(n,i,0,s):null}static _typeCommand(e,t,i){return new(i?r.e:r.a)(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return p._typeCommand(n,"\n",i);if(!t.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent)return s=t.getLineContent(n.startLineNumber),s=o.x(s).substring(0,n.startColumn-1),p._typeCommand(n,"\n"+e.normalizeIndentation(s),i);var s=g.a.getEnterAction(e.autoIndent,t,n);if(s){if(s.indentAction===u.b.None)return p._typeCommand(n,"\n"+e.normalizeIndentation(s.indentation+s.appendText),i);if(s.indentAction===u.b.Indent)return p._typeCommand(n,"\n"+e.normalizeIndentation(s.indentation+s.appendText),i);if(s.indentAction===u.b.IndentOutdent)return l=e.normalizeIndentation(s.indentation),d="\n"+(a=e.normalizeIndentation(s.indentation+s.appendText))+"\n"+l,i?new r.e(n,d,!0):new r.d(n,d,-1,a.length-l.length,!0);if(s.indentAction===u.b.Outdent)return d=p.unshiftIndent(e,s.indentation),p._typeCommand(n,"\n"+e.normalizeIndentation(d+s.appendText),i)}var a=t.getLineContent(n.startLineNumber),l=o.x(a).substring(0,n.startColumn-1);if(4<=e.autoIndent){var d=g.a.getIndentForEnter(e.autoIndent,t,n,{unshiftIndent:t=>p.unshiftIndent(e,t),shiftIndent:t=>p.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)});if(d){let l=h.a.visibleColumnFromColumn2(e,t,n.getEndPosition());if(s=n.endColumn,a=t.getLineContent(n.endLineNumber),a=o.u(a),n=0<=a?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,a+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new r.e(n,"\n"+e.normalizeIndentation(d.afterEnter),!0);{let t=0;return s<=a+1&&(e.insertSpaces||(l=Math.ceil(l/e.indentSize)),t=Math.min(l+1-e.normalizeIndentation(d.afterEnter).length-1,0)),new r.d(n,"\n"+e.normalizeIndentation(d.afterEnter),0,t,!0)}}}return p._typeCommand(n,"\n"+e.normalizeIndentation(l),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let n=0,o=i.length;n<o;n++)if(!t.isCheapToTokenize(i[n].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(e,t,i,n){var o=g.a.getIndentationAtPosition(t,i.startLineNumber,i.startColumn),r=g.a.getIndentActionForType(e.autoIndent,t,i,n,{shiftIndent:t=>p.shiftIndent(e,t),unshiftIndent:t=>p.unshiftIndent(e,t)});return null!==r&&r!==e.normalizeIndentation(o)?0===(o=t.getLineFirstNonWhitespaceColumn(i.startLineNumber))?p._typeCommand(new a.a(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+n,!1):p._typeCommand(new a.a(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(r)+t.getLineContent(i.startLineNumber).substring(o-1,i.startColumn-1)+n,!1):null}static _isAutoClosingOvertype(e,t,i,n,o){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(o))return!1;for(let d=0,c=i.length;d<c;d++){var r=i[d];if(!r.isEmpty())return!1;var s=r.getPosition();r=t.getLineContent(s.lineNumber);if(r.charAt(s.column-1)!==o)return!1;var a=Object(h.g)(o);if(92===(2<s.column?r.charCodeAt(s.column-2):0)&&a)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;t<i;t++){var l=n[t];if(s.lineNumber===l.startLineNumber&&s.column===l.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingOvertype(e,t,i,n,o){var s=[];for(let d=0,h=n.length;d<h;d++){var l=n[d].getPosition();l=new a.a(l.lineNumber,l.column,l.lineNumber,l.column+1);s[d]=new r.a(l,o)}return new h.e(4,s,{shouldPushStackElementBefore:_(e,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(e,t){var i=t.charAt(0),n=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[];e=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],i=n.some(e=>t.startsWith(e.open)),n=e.some(e=>t.startsWith(e.close));return!i&&n}static _findAutoClosingPairOpen(e,t,i,n){if(e=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n),!e)return null;let o=null;for(const r of e)if(null===o||r.open.length>o.open.length){let e=!0;for(const o of i)if(t.getValueInRange(new a.a(o.lineNumber,o.column-r.open.length+1,o.lineNumber,o.column))+n!==r.open){e=!1;break}e&&(o=r)}return o}static _findSubAutoClosingPairClose(e,t){if(t.open.length<=1)return"";var i=t.close.charAt(t.close.length-1);let n=null;for(const o of e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[])o.open!==t.open&&t.open.includes(o.open)&&t.close.endsWith(o.close)&&(!n||o.open.length>n.open.length)&&(n=o);return n?n.close:""}static _getAutoClosingPairClose(e,t,i,o,r){var s=Object(h.g)(o),a=s?e.autoClosingQuotes:e.autoClosingBrackets;if("never"===a)return null;var l=this._findAutoClosingPairOpen(e,t,i.map(e=>e.getPosition()),o);if(!l)return null;var d=this._findSubAutoClosingPairClose(e,l);let u=!0;var m=s?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;for(let h=0,C=i.length;h<C;h++){var f=i[h];if(!f.isEmpty())return null;f=f.getPosition();var _=t.getLineContent(f.lineNumber),b=_.substring(f.column-1);if(b.startsWith(d)||(u=!1),_.length>f.column-1){var v=_.charAt(f.column-1);if(!p._isBeforeClosingBrace(e,b)&&!m(v))return null}if(!t.isCheapToTokenize(f.lineNumber))return null;if(1===l.open.length&&s&&"always"!==a){if(b=Object(c.a)(e.wordSeparators),r&&1<f.column&&0===b.get(_.charCodeAt(f.column-2)))return null;if(!r&&2<f.column&&0===b.get(_.charCodeAt(f.column-3)))return null}t.forceTokenization(f.lineNumber),v=t.getLineTokens(f.lineNumber);let C=!1;try{C=g.a.shouldAutoClosePair(l,v,r?f.column:f.column-1)}catch(o){Object(n.f)(o)}if(!C)return null}return u?l.close.substring(0,l.close.length-d.length):l.close}static _runAutoClosingOpenCharType(e,t,i,n,o,r,s){var a=[];for(let d=0,h=n.length;d<h;d++){var l=n[d];a[d]=new m(l,o,r,s)}return new h.e(4,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(e,t){return Object(h.g)(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}static _isSurroundSelectionType(e,t,i,n){if(!p._shouldSurroundChar(e,n)||!e.surroundingPairs.hasOwnProperty(n))return!1;var o=Object(h.g)(n);for(let c=0,u=i.length;c<u;c++){var r=i[c];if(r.isEmpty())return!1;let e=!0;for(let i=r.startLineNumber;i<=r.endLineNumber;i++){var s=t.getLineContent(i),a=i===r.startLineNumber?r.startColumn-1:0,l=i===r.endLineNumber?r.endColumn-1:s.length;s=s.substring(a,l);if(/[^ \t]/.test(s)){e=!1;break}}if(e)return!1;if(o&&r.startLineNumber===r.endLineNumber&&r.startColumn+1===r.endColumn){var d=t.getValueInRange(r);if(Object(h.g)(d))return!1}}return!0}static _runSurroundSelectionType(e,t,i,n,o){var r=[];for(let l=0,h=n.length;l<h;l++){var s=n[l],a=t.surroundingPairs[o];r[l]=new d(s,o,a)}return new h.e(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(e,t,i){return!(1!==i.length||!t.isCheapToTokenize(i[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(t,i,s,l,d){if(i.electricChars.hasOwnProperty(d)&&l.isEmpty()){l=l.getPosition();var c=(s.forceTokenization(l.lineNumber),s.getLineTokens(l.lineNumber));let u;try{u=g.a.onElectricCharacter(d,c,l.column)}catch(e){return Object(n.f)(e),null}if(u&&u.matchOpenBracket){c=(c.getLineContent()+d).lastIndexOf(u.matchOpenBracket)+1,c=s.findMatchingBracketUp(u.matchOpenBracket,{lineNumber:l.lineNumber,column:c});if(c)return c.startLineNumber===l.lineNumber?null:(c=s.getLineContent(c.startLineNumber),c=o.x(c),i=i.normalizeIndentation(c),c=s.getLineContent(l.lineNumber),s=s.getLineFirstNonWhitespaceColumn(l.lineNumber)||l.column,i=i+c.substring(s-1,l.column-1)+d,c=new a.a(l.lineNumber,1,l.lineNumber,l.column),s=new r.a(c,i),new h.e(f(i,t),[s],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0}))}}return null}static compositionEndWithInterceptors(e,t,i,n,o,s){if(!n||l.a.selectionsArrEqual(n,o))return null;let d=null;for(const r of o){if(!r.isEmpty())return null;var c=r.getPosition();c=i.getValueInRange(new a.a(c.lineNumber,c.column-1,c.lineNumber,c.column));if(null===d)d=c;else if(d!==c)return null}return d?this._isAutoClosingOvertype(t,i,o,s,d)?(n=o.map(e=>new r.a(new a.a(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)),new h.e(4,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})):null!==(s=this._getAutoClosingPairClose(t,i,o,d,!1))?this._runAutoClosingOpenCharType(e,t,i,o,d,!1,s):null:null}static typeWithInterceptors(e,t,i,n,o,s,a){if(!e&&"\n"===a){var l=[];for(let e=0,t=o.length;e<t;e++)l[e]=p._enter(i,n,!1,o[e]);return new h.e(4,l,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoIndentType(i,n,o)){var d=[];let e=!1;for(let t=0,r=o.length;t<r;t++)if(d[t]=this._runAutoIndentType(i,n,o[t],a),!d[t]){e=!0;break}if(!e)return new h.e(4,d,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoClosingOvertype(i,n,o,s,a))return this._runAutoClosingOvertype(t,i,n,o,a);if(!e&&(s=this._getAutoClosingPairClose(i,n,o,a,!0),s))return this._runAutoClosingOpenCharType(t,i,n,o,a,!0,s);if(this._isSurroundSelectionType(i,n,o,a))return this._runSurroundSelectionType(t,i,n,o,a);if(!e&&this._isTypeInterceptorElectricChar(i,n,o)&&(s=this._typeInterceptorElectricChar(t,i,n,o[0],a),s))return s;var c=[];for(let h=0,u=o.length;h<u;h++)c[h]=new r.a(o[h],a);return e=f(a,t),new h.e(e,c,{shouldPushStackElementBefore:_(t,e),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(e,t,i,n,o){var s=[];for(let l=0,d=n.length;l<d;l++)s[l]=new r.a(n[l],o);var a=f(o,e);return new h.e(a,s,{shouldPushStackElementBefore:_(e,a),shouldPushStackElementAfter:!1})}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];var n=[];for(let l=0,d=i.length;l<d;l++){var o,s=i[l].positionLineNumber;1===s?n[l]=new r.e(new a.a(1,1,1,1),"\n"):(s--,o=t.getLineMaxColumn(s),n[l]=this._enter(e,t,!1,new a.a(s,o,s,o)))}return n}static lineInsertAfter(e,t,i){if(null===t||null===i)return[];var n=[];for(let s=0,l=i.length;s<l;s++){var o=i[s].positionLineNumber,r=t.getLineMaxColumn(o);n[s]=this._enter(e,t,!1,new a.a(o,r,o,r))}return n}static lineBreakInsert(e,t,i){var n=[];for(let o=0,r=i.length;o<r;o++)n[o]=this._enter(e,t,!0,i[o]);return n}}class m extends r.d{constructor(e,t,i,n){super(e,(i?t:"")+n,0,-n.length),this._openCharacter=t,this._closeCharacter=n,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(e,t){var i=t.getInverseEditOperations()[0].range;return this.closeCharacterRange=new a.a(i.startLineNumber,i.endColumn-this._closeCharacter.length,i.endLineNumber,i.endColumn),this.enclosingRange=new a.a(i.startLineNumber,i.endColumn-this._openCharacter.length-this._closeCharacter.length,i.endLineNumber,i.endColumn),super.computeCursorState(e,t)}}function f(e,t){return" "===e?5===t||6===t?6:5:4}function _(e,t){return!(!v(e)||v(t))||5!==e&&b(e)!==b(t)}function b(e){return 6===e||5===e?"space":e}function v(e){return 4===e||5===e||6===e}},"199a":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return i.e("chunk-2d0aeb45").then(i.bind(null,"0aca"))}})},"19bd":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return i.e("chunk-2d2214b3").then(i.bind(null,"ca76"))}})},"1aa7":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return i.e("chunk-2d0b1fd5").then(i.bind(null,"21cc"))}})},"1af3":function(e,t,i){"use strict";i.r(t);var n=i("dff7"),o=i("6a89"),r=i("8025"),s=i("c101"),a=(t=i("b2cc"),i("a40b"));class l{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){return t=t.getInverseEditOperations()[0].range,this._originalSelection.isEmpty()?new r.a(t.endLineNumber,Math.min(this._originalSelection.positionColumn,t.endColumn),t.endLineNumber,Math.min(this._originalSelection.positionColumn,t.endColumn)):new r.a(t.endLineNumber,t.endColumn-this._text.length,t.endLineNumber,t.endColumn)}}var d=i("bc04"),h=i("b7d0"),c=i("918c"),u=i("b57f"),g=i("5fe7"),p=i("fdcc"),m=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});let f=class e{constructor(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}static get(t){return t.getContribution(e.ID)}dispose(){}run(t,i){this.currentRequest&&this.currentRequest.cancel();var n=this.editor.getSelection(),s=this.editor.getModel();if(s&&n){let a=n;if(a.startLineNumber===a.endLineNumber){const n=new d.a(this.editor,5),h=s.uri;return this.editorWorkerService.canNavigateValueSet(h)?(this.currentRequest=Object(g.h)(e=>this.editorWorkerService.navigateValueSet(h,a,i)),this.currentRequest.then(i=>{var s,d,h;i&&i.range&&i.value&&n.validate(this.editor)&&(s=o.a.lift(i.range),d=i.range,h=i.value.length-(a.endColumn-a.startColumn),d={startLineNumber:d.startLineNumber,startColumn:d.startColumn,endLineNumber:d.endLineNumber,endColumn:d.startColumn+i.value.length},1<h&&(a=new r.a(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+h-1)),h=new l(s,a,i.value),this.editor.pushUndoStop(),this.editor.executeCommand(t,h),this.editor.pushUndoStop(),this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[{range:d,options:e.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=Object(g.n)(350),this.decorationRemover.then(()=>this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[])).catch(p.f))}).catch(p.f)):Promise.resolve(void 0)}}}};f.ID="editor.contrib.inPlaceReplaceController",f.DECORATION=u.a.register({description:"in-place-replace",className:"valueSetReplacement"}),f=i([m(1,a.a)],f);class _ extends t.b{constructor(){super({id:"editor.action.inPlaceReplace.up",label:n.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:3154,weight:100}})}run(e,t){return t=f.get(t),t?t.run(this.id,!0):Promise.resolve(void 0)}}class b extends t.b{constructor(){super({id:"editor.action.inPlaceReplace.down",label:n.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:3156,weight:100}})}run(e,t){return t=f.get(t),t?t.run(this.id,!1):Promise.resolve(void 0)}}Object(t.l)(f.ID,f),Object(t.j)(_),Object(t.j)(b),Object(h.f)((e,t)=>{e=e.getColor(c.k),e&&t.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${e}; }`)})},"1b0e":function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return h}));class n{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var o=i("eda7");class r{constructor(e){this.source=e}getElements(){var e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i<n;i++)t[i]=e.charCodeAt(i);return t}}function s(e,t,i){return new h(new r(e),new r(t)).ComputeDiff(i).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,i,n,o){for(let r=0;r<o;r++)i[n+r]=e[t+r]}static Copy2(e,t,i,n,o){for(let r=0;r<o;r++)i[n+r]=e[t+r]}}class d{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(0<this.m_originalCount||0<this.m_modifiedCount)&&this.m_changes.push(new n(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(0<this.m_originalCount||0<this.m_modifiedCount)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(0<this.m_originalCount||0<this.m_modifiedCount)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class h{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;var[i,e,n]=h._getElements(e),[t,o,r]=h._getElements(t);this._hasStrings=n&&r,this._originalStringElements=i,this._originalElementsOrHash=e,this._modifiedStringElements=t,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return 0<e.length&&"string"==typeof e[0]}static _getElements(e){var t=e.getElements();if(h._isStringArray(t)){var i=new Int32Array(t.length);for(let e=0,n=t.length;e<n;e++)i[e]=Object(o.d)(t[e],0);return[t,i,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){return!!this.ElementsAreEqual(e,t)&&h._getStrictElement(this._originalSequence,e)===h._getStrictElement(this._modifiedSequence,t)}static _getStrictElement(e,t){return"function"==typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,i,n,o){var r=[!1];let s=this.ComputeDiffRecursive(e,t,i,n,r);return o&&(s=this.PrettifyChanges(s)),{quitEarly:r[0],changes:s}}ComputeDiffRecursive(e,t,i,o,r){for(r[0]=!1;e<=t&&i<=o&&this.ElementsAreEqual(e,i);)e++,i++;for(;e<=t&&i<=o&&this.ElementsAreEqual(t,o);)t--,o--;if(t<e||o<i){let r;return r=i<=o?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),[new n(e,0,i,o-i+1)]):e<=t?(a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),[new n(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),[])}var s=[0],l=[0],d=this.ComputeRecursionPoint(e,t,i,o,s,l,r);s=s[0],l=l[0];if(null!==d)return d;if(r[0])return[new n(e,t-e+1,i,o-i+1)];{d=this.ComputeDiffRecursive(e,s,i,l,r);let a=[];return a=r[0]?[new n(s+1,t-(s+1)+1,l+1,o-(l+1)+1)]:this.ComputeDiffRecursive(s+1,t,l+1,o,r),this.ConcatenateChanges(d,a)}}WALKTRACE(e,t,i,o,r,s,a,l,h,c,u,g,p,m,f,_,b,v){let C=null,w=new d,y=t,S=i,L=p[0]-_[0]-o,x=-1073741824,k=this.m_forwardHistory.length-1;do{var D=L+e;L=D===y||D<S&&h[D-1]<h[D+1]?(m=(u=h[D+1])-L-o,u<x&&w.MarkNextChange(),x=u,w.AddModifiedElement(u+1,m),D+1-e):(m=(u=h[D-1]+1)-L-o,u<x&&w.MarkNextChange(),x=u-1,w.AddOriginalElement(u,m+1),D-1-e),0<=k&&(e=(h=this.m_forwardHistory[k])[0],y=1,S=h.length-1)}while(-1<=--k);if(t=w.getReverseChanges(),v[0]){let e=p[0]+1,o=_[0]+1;null!==t&&0<t.length&&(i=t[t.length-1],e=Math.max(e,i.getOriginalEnd()),o=Math.max(o,i.getModifiedEnd())),C=[new n(e,g-e+1,o,f-o+1)]}else{w=new d,y=s,S=a,L=p[0]-_[0]-l,x=1073741824,k=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var N=L+r;L=N===y||N<S&&c[N-1]>=c[N+1]?(m=(u=c[N+1]-1)-L-l,u>x&&w.MarkNextChange(),x=u+1,w.AddOriginalElement(u+1,m+1),N+1-r):(m=(u=c[N-1])-L-l,u>x&&w.MarkNextChange(),x=u,w.AddModifiedElement(u+1,m+1),N-1-r),0<=k&&(r=(c=this.m_reverseHistory[k])[0],y=1,S=c.length-1)}while(-1<=--k);C=w.getChanges()}return this.ConcatenateChanges(t,C)}ComputeRecursionPoint(e,t,i,o,r,s,a){let d=0,h=0,c=0,u=0,g=0,p=0;e--,i--,s[r[0]=0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var m=t-e+(o-i),f=1+m,_=new Int32Array(f),b=new Int32Array(f),v=o-i,C=t-e,w=e-i,y=t-o,S=(C-v)%2==0;_[v]=e,b[C]=t,a[0]=!1;for(let D=1;D<=m/2+1;D++){let m=0,N=0;c=this.ClipDiagonalBound(v-D,D,v,f),u=this.ClipDiagonalBound(v+D,D,v,f);for(let e=c;e<=u;e+=2){d=e===c||e<u&&_[e-1]<_[e+1]?_[e+1]:_[e-1]+1,h=d-(e-v)-w;for(var L=d;d<t&&h<o&&this.ElementsAreEqual(d+1,h+1);)d++,h++;if((_[e]=d)+h>m+N&&(m=d,N=h),!S&&Math.abs(e-C)<=D-1&&d>=b[e])return r[0]=d,s[0]=h,L<=b[e]&&D<=1448?this.WALKTRACE(v,c,u,w,C,g,p,y,_,b,d,t,r,h,o,s,S,a):null}var x=(m-e+(N-i)-D)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,x))return a[0]=!0,r[0]=m,s[0]=N,0<x&&D<=1448?this.WALKTRACE(v,c,u,w,C,g,p,y,_,b,d,t,r,h,o,s,S,a):(e++,i++,[new n(e,t-e+1,i,o-i+1)]);g=this.ClipDiagonalBound(C-D,D,C,f),p=this.ClipDiagonalBound(C+D,D,C,f);for(let n=g;n<=p;n+=2){d=n===g||n<p&&b[n-1]>=b[n+1]?b[n+1]-1:b[n-1],h=d-(n-C)-y;for(var k=d;d>e&&h>i&&this.ElementsAreEqual(d,h);)d--,h--;if(b[n]=d,S&&Math.abs(n-v)<=D&&d<=_[n])return r[0]=d,s[0]=h,k>=_[n]&&D<=1448?this.WALKTRACE(v,c,u,w,C,g,p,y,_,b,d,t,r,h,o,s,S,a):null}if(D<=1447){let e=new Int32Array(u-c+2);e[0]=v-c+1,l.Copy2(_,c,e,1,u-c+1),this.m_forwardHistory.push(e),(e=new Int32Array(p-g+2))[0]=C-g+1,l.Copy2(b,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,c,u,w,C,g,p,y,_,b,d,t,r,h,o,s,S,a)}PrettifyChanges(e){for(let S=0;S<e.length;S++){for(var t=e[S],i=S<e.length-1?e[S+1].originalStart:this._originalElementsOrHash.length,n=S<e.length-1?e[S+1].modifiedStart:this._modifiedElementsOrHash.length,o=0<t.originalLength,r=0<t.modifiedLength;t.originalStart+t.originalLength<i&&t.modifiedStart+t.modifiedLength<n&&(!o||this.OriginalElementsAreEqual(t.originalStart,t.originalStart+t.originalLength))&&(!r||this.ModifiedElementsAreEqual(t.modifiedStart,t.modifiedStart+t.modifiedLength));){var s=this.ElementsAreStrictEqual(t.originalStart,t.modifiedStart);if(this.ElementsAreStrictEqual(t.originalStart+t.originalLength,t.modifiedStart+t.modifiedLength)&&!s)break;t.originalStart++,t.modifiedStart++}var a=[null];S<e.length-1&&this.ChangesOverlap(e[S],e[S+1],a)&&(e[S]=a[0],e.splice(S+1,1),S--)}for(let S=e.length-1;0<=S;S--){var l=e[S];let t=0,i=0;0<S&&(g=e[S-1],t=g.originalStart+g.originalLength,i=g.modifiedStart+g.modifiedLength);var d=0<l.originalLength,h=0<l.modifiedLength;let n=0,o=this._boundaryScore(l.originalStart,l.originalLength,l.modifiedStart,l.modifiedLength);for(let e=1;;e++){var c=l.originalStart-e,u=l.modifiedStart-e;if(c<t||u<i)break;if(d&&!this.OriginalElementsAreEqual(c,c+l.originalLength))break;if(h&&!this.ModifiedElementsAreEqual(u,u+l.modifiedLength))break;c=(c===t&&u===i?5:0)+this._boundaryScore(c,l.originalLength,u,l.modifiedLength),c>o&&(o=c,n=e)}l.originalStart-=n,l.modifiedStart-=n;var g=[null];0<S&&this.ChangesOverlap(e[S-1],e[S],g)&&(e[S-1]=g[0],e.splice(S,1),S++)}if(this._hasStrings)for(let S=1,L=e.length;S<L;S++){var p=e[S-1],m=e[S],f=m.originalStart-p.originalStart-p.originalLength,_=p.originalStart,b=m.originalStart+m.originalLength,v=b-_,C=p.modifiedStart,w=m.modifiedStart+m.modifiedLength,y=w-C;f<5&&v<20&&y<20&&(_=this._findBetterContiguousSequence(_,v,C,y,f))&&([v,C]=_,v===p.originalStart+p.originalLength&&C===p.modifiedStart+p.modifiedLength||(p.originalLength=v-p.originalStart,p.modifiedLength=C-p.modifiedStart,m.originalStart=v+f,m.modifiedStart=C+f,m.originalLength=b-m.originalStart,m.modifiedLength=w-m.modifiedStart))}return e}_findBetterContiguousSequence(e,t,i,n,o){if(t<o||n<o)return null;var r=e+t-o+1,s=i+n-o+1;let a=0,l=0,d=0;for(let c=e;c<r;c++)for(let e=i;e<s;e++){var h=this._contiguousSequenceScore(c,e,o);0<h&&h>a&&(a=h,l=c,d=e)}return 0<a?[l,d]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o<i;o++){if(!this.ElementsAreEqual(e+o,t+o))return 0;n+=this._originalStringElements[e+o].length}return n}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){return!(!this._OriginalIsBoundary(e)&&!this._OriginalIsBoundary(e-1))||!!(0<t&&(e+=t,this._OriginalIsBoundary(e-1)||this._OriginalIsBoundary(e)))}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){return!(!this._ModifiedIsBoundary(e)&&!this._ModifiedIsBoundary(e-1))||!!(0<t&&(e+=t,this._ModifiedIsBoundary(e-1)||this._ModifiedIsBoundary(e)))}_boundaryScore(e,t,i,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,n)?1:0)}ConcatenateChanges(e,t){var i,n=[];return 0===e.length||0===t.length?0<t.length?t:e:this.ChangesOverlap(e[e.length-1],t[0],n)?(i=new Array(e.length+t.length-1),l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i):(n=new Array(e.length+t.length),l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n)}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var o=e.originalStart;let s=e.originalLength;var r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new n(o,s,r,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){return 0<=e&&e<n?e:(t=t%2==0,e<0?t==(i%2==0)?0:1:t==((n-i-1)%2==0)?n-1:n-2)}}},"1b69":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o})),t=i("0a0f");const n=Object(t.c)("modelService");function o(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},"1b7d":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i("11f7"),o=i("b835"),r=i("5d28"),s=i("a60f");class a extends i("a666").a{onclick(e,t){this._register(n.i(e,n.d.CLICK,e=>t(new r.a(e))))}onmousedown(e,t){this._register(n.i(e,n.d.MOUSE_DOWN,e=>t(new r.a(e))))}onmouseover(e,t){this._register(n.i(e,n.d.MOUSE_OVER,e=>t(new r.a(e))))}onnonbubblingmouseout(e,t){this._register(n.j(e,e=>t(new r.a(e))))}onkeydown(e,t){this._register(n.i(e,n.d.KEY_DOWN,e=>t(new o.a(e))))}onkeyup(e,t){this._register(n.i(e,n.d.KEY_UP,e=>t(new o.a(e))))}oninput(e,t){this._register(n.i(e,n.d.INPUT,t))}onblur(e,t){this._register(n.i(e,n.d.BLUR,t))}onfocus(e,t){this._register(n.i(e,n.d.FOCUS,t))}ignoreGesture(e){s.b.ignoreTarget(e)}}},"1bd1":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return i.e("chunk-2d0c86e3").then(i.bind(null,"559f"))}})},"1ddc":function(e,t,i){"use strict";i.d(t,"b",(function(){return g})),i.d(t,"a",(function(){return m}));var n=i("0f70"),o=i("308f"),r=(t=i("a666"),i("30db"));class s{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class a{constructor(e,t){this._bareFontInfo=e,this._requests=t,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(){var e=document.createElement("div"),t=(e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px",document.createElement("div")),i=(t.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),t.style.fontWeight=this._bareFontInfo.fontWeight,t.style.fontSize=this._bareFontInfo.fontSize+"px",t.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,t.style.lineHeight=this._bareFontInfo.lineHeight+"px",t.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(t),document.createElement("div")),n=(i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight="bold",i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(i),document.createElement("div")),o=(n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight=this._bareFontInfo.fontWeight,n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",n.style.fontStyle="italic",e.appendChild(n),[]);for(const s of this._requests){let e;0===s.type&&(e=t),2===s.type&&(e=i),(e=1===s.type?n:e).appendChild(document.createElement("br"));var r=document.createElement("span");a._render(r,s),e.appendChild(r),o.push(r)}this._container=e,this._testElements=o}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let i=0,n=this._requests.length;i<n;i++){var e=this._requests[i],t=this._testElements[i];e.fulfill(t.offsetWidth/256)}}}var l=i("a37f"),d=i("8830"),h=i("fd49"),c=i("fb71");class u{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){return e=e.getId(),!!this._values[e]}get(e){return e=e.getId(),this._values[e]}put(e,t){var i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){e=e.getId(),delete this._keys[e],delete this._values[e]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}function g(){p.INSTANCE.clearCache()}class p extends t.a{constructor(){super(),this._onDidChange=this._register(new o.b),this.onDidChange=this._onDidChange.event,this._cache=new u,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new u,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){let e=!1;for(const t of this._cache.getValues())t.isTrusted||(e=!0,this._cache.remove(t));e&&this._onDidChange.fire()}readConfiguration(e){if(!this._cache.has(e)){let t=p._actualReadConfiguration(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new c.b({zoomLevel:n.d(),pixelRatio:n.a(),fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}static createRequest(e,t,i,n){return e=new s(e,t),i.push(e),n&&n.push(e),e}static _actualReadConfiguration(e){var t=[],i=[],o=this.createRequest("n",0,t,i),r=this.createRequest("m",0,t,null),s=this.createRequest(" ",0,t,i),l=this.createRequest("0",0,t,i),d=this.createRequest("1",0,t,i),u=this.createRequest("2",0,t,i),g=this.createRequest("3",0,t,i),p=this.createRequest("4",0,t,i),m=this.createRequest("5",0,t,i),f=this.createRequest("6",0,t,i),_=this.createRequest("7",0,t,i),b=this.createRequest("8",0,t,i),v=this.createRequest("9",0,t,i),C=this.createRequest("→",0,t,i),w=this.createRequest("→",0,t,null),y=this.createRequest("·",0,t,i),S=this.createRequest(String.fromCharCode(11825),0,t,null),L=(this.createRequest("|",0,t,i),this.createRequest("/",0,t,i),this.createRequest("-",0,t,i),this.createRequest("_",0,t,i),this.createRequest("i",0,t,i),this.createRequest("l",0,t,i),this.createRequest("m",0,t,i),this.createRequest("|",1,t,i),this.createRequest("_",1,t,i),this.createRequest("i",1,t,i),this.createRequest("l",1,t,i),this.createRequest("m",1,t,i),this.createRequest("n",1,t,i),this.createRequest("|",2,t,i),this.createRequest("_",2,t,i),this.createRequest("i",2,t,i),this.createRequest("l",2,t,i),this.createRequest("m",2,t,i),this.createRequest("n",2,t,i),L=e,t=t,new a(L,t).read(),Math.max(l.width,d.width,u.width,g.width,p.width,m.width,f.width,_.width,b.width,v.width));let x=e.fontFeatureSettings===h.e.OFF;var k=i[0].width;for(let n=1,a=i.length;x&&n<a;n++){var D=k-i[n].width;if(D<-.001||.001<D){x=!1;break}}let N=!0;return x&&w.width!==k&&(N=!1),w.width>C.width&&(N=!1),t=2e3<n.b(),new c.b({zoomLevel:n.d(),pixelRatio:n.a(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:x,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:N,spaceWidth:s.width,middotWidth:y.width,wsmiddotWidth:S.width,maxDigitWidth:L},t)}}p.INSTANCE=new p;class m extends d.a{constructor(e,t,i=null,o){super(e,t),this.accessibilityService=o,this._elementSizeObserver=this._register(new l.a(i,t.dimension,()=>this._recomputeOptions())),this._register(p.INSTANCE.onDidChange(()=>this._recomputeOptions())),this._validatedOptions.get(10)&&this._elementSizeObserver.startObserving(),this._register(n.l(e=>this._recomputeOptions())),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions())),this._recomputeOptions()}static applyFontInfoSlow(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"}static applyFontInfo(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)}observeReferenceElement(e){this._elementSizeObserver.observe(e)}updatePixelRatio(){this._recomputeOptions()}static _getExtraEditorClassName(){let e="";return n.h||n.k||(e+="no-user-select "),n.h&&(e+="no-minimap-shadow "),r.f&&(e+="mac "),e}_getEnvConfiguration(){return{extraEditorClassName:m._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:n.j||n.g,pixelRatio:n.a(),zoomLevel:n.d(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(e){return p.INSTANCE.readConfiguration(e)}}},"1e03":function(e,t,i){},"1e93":function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return s})),i.d(t,"e",(function(){return a})),i.d(t,"c",(function(){return l})),i.d(t,"f",(function(){return d})),i.d(t,"d",(function(){return h})),i.d(t,"g",(function(){return c}));const n=void 0!==e;let o;class r{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}static wrap(t){return n&&!e.isBuffer(t)&&(t=e.from(t.buffer,t.byteOffset,t.byteLength)),new r(t)}toString(){return n?this.buffer.toString():(o=o||new TextDecoder).decode(this.buffer)}}function s(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function a(e,t,i){e[i+0]=255&t,e[i+1]=255&(t>>>=8)}function l(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}function d(e,t,i){e[i+3]=t,e[i+2]=t>>>=8,e[i+1]=t>>>=8,e[i]=t>>>=8}function h(e,t){return e[t]}function c(e,t,i){e[i]=t}}).call(this,i("1c35").Buffer)},"1f26":function(e,t,i){},"1f84":function(e,t,i){"use strict";i.r(t),i.d(t,"GotoDefinitionAtPositionEditorContribution",(function(){return S})),i("eb68");var n=i("dff7"),o=i("5fe7"),r=i("fdcc"),s=i("78bc"),a=(t=i("5818"),i("6a89")),l=i("b707"),d=i("b2cc"),h=i("bd13"),c=i("a666"),u=i("b78f"),g=i("b7d0"),p=i("303e"),m=i("bc04"),f=i("f187"),_=i("6816"),b=i("7061"),v=i("ef8e9"),C=i("88d4"),w=i("4fc3"),y=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});let S=class e{constructor(e,t,i){this.textModelResolverService=t,this.modeService=i,this.toUnhook=new c.b,this.toUnhookForKeyboard=new c.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,t=new _.a(e),this.toUnhook.add(t),this.toUnhook.add(t.onMouseMoveOrRelevantKeyDown(([e,t])=>{this.startFindDefinitionFromMouse(e,Object(v.o)(t))})),this.toUnhook.add(t.onExecute(e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},e=>{this.removeLinkDecorations(),Object(r.f)(e)})})),this.toUnhook.add(t.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(t){return t.getContribution(e.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){9===e.target.type&&0<this.linkDecorations.length||(this.editor.hasModel()&&this.isEnabled(e,t)?(t=e.target.position,this.startFindDefinition(t)):(this.currentWordAtPosition=null,this.removeLinkDecorations()))}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?null==(t=this.editor.getModel())?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return Promise.resolve(0);this.currentWordAtPosition=i;let l=new m.a(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(o.h)(t=>this.findDefinition(e,t)),this.previousPromise.then(t=>{if(t&&t.length&&l.validate(this.editor))if(1<t.length)this.addDecoration(new a.a(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),(new s.a).appendText(n.a("multipleResults","Click to show {0} definitions.",t.length)));else{let n=t[0];n.uri&&this.textModelResolverService.createModelReference(n.uri).then(t=>{if(t.object&&t.object.textEditorModel){var o=t["object"]["textEditorModel"],r=n.range["startLineNumber"];if(!(r<1||r>o.getLineCount())){let t;r=this.getPreviewValue(o,r,n),t=n.originSelectionRange?a.a.lift(n.originSelectionRange):new a.a(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),o=this.modeService.getModeIdByFilepathOrFirstLine(o.uri),this.addDecoration(t,(new s.a).appendCodeblock(o||"",r))}}t.dispose()})}else this.removeLinkDecorations()}).then(void 0,r.f)}getPreviewValue(t,i,n){let o=n.targetSelectionRange?n.range:this.getPreviewRangeBasedOnBrackets(t,i);return o.endLineNumber-o.startLineNumber>=e.MAX_SOURCE_PREVIEW_LINES&&(o=this.getPreviewRangeBasedOnIndentation(t,i)),n=this.stripIndentationFromPreviewRange(t,i,o),n}stripIndentationFromPreviewRange(e,t,i){let n=e.getLineFirstNonWhitespaceColumn(t);for(let r=t+1;r<i.endLineNumber;r++){var o=e.getLineFirstNonWhitespaceColumn(r);n=Math.min(n,o)}return e.getValueInRange(i).replace(new RegExp(`^\\s{${n-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(t,i){var n=t.getLineFirstNonWhitespaceColumn(i),o=Math.min(t.getLineCount(),i+e.MAX_SOURCE_PREVIEW_LINES);let r=i+1;for(;r<o;r++)if(n===t.getLineFirstNonWhitespaceColumn(r))break;return new a.a(i,1,r+1,1)}getPreviewRangeBasedOnBrackets(t,i){var n=Math.min(t.getLineCount(),i+e.MAX_SOURCE_PREVIEW_LINES),o=[];let r=!0,s=t.findNextBracket(new b.a(i,1));for(;null!==s;){if(0===o.length)o.push(s);else{var l=o[o.length-1];if(l.open[0]===s.open[0]&&l.isOpen&&!s.isOpen?o.pop():o.push(s),0===o.length){if(!r)return new a.a(i,1,s.range.endLineNumber+1,1);r=!1}}l=t.getLineMaxColumn(i);let e=s.range.endLineNumber,d=s.range.endColumn;if(l===s.range.endColumn&&(e++,d=1),e>n)return new a.a(i,1,n+1,1);s=t.findNextBracket(new b.a(e,d))}return new a.a(i,1,n+1,1)}addDecoration(e,t){this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[{range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}}])}removeLinkDecorations(){0<this.linkDecorations.length&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))}isEnabled(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&l.f.has(this.editor.getModel())}findDefinition(e,t){var i=this.editor.getModel();return i?Object(h.b)(i,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext(e=>{var i=!t&&this.editor.getOption(77)&&!this.isInPeekEditor(e);return new f.DefinitionAction({openToSide:t,openInPeek:i,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(e,this.editor)})}isInPeekEditor(e){return e=e.get(w.b),C.b.inPeekEditor.getValue(e)}dispose(){this.toUnhook.dispose()}};S.ID="editor.contrib.gotodefinitionatposition",S.MAX_SOURCE_PREVIEW_LINES=8,S=i([y(1,u.a),y(2,t.a)],S),Object(d.l)(S.ID,S),Object(g.f)((e,t)=>{e=e.getColor(p.q),e&&t.addRule(`.monaco-editor .goto-definition-link { color: ${e} !important; }`)})},"1fa1":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return i.e("chunk-2d0e57ec").then(i.bind(null,"9571"))}})},"1fe0":function(e,t,i){"use strict";i.d(t,"a",(function(){return h}));var n=i("3352"),o=i("b7d0"),r=i("918c"),s=i("a666"),a=i("b055"),l=i("ef8e9"),d=i("0bfb");class h{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i,n=new s.b;e.canAcceptInBackground=!(null==(i=this.options)||!i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const o=n.add(new s.d);return o.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{o.value=void 0,o.value=this.doProvide(e,t)})),n}doProvide(e,t){var i=new s.b;const n=this.activeTextEditorControl;if(n&&this.canProvideWithTextEditor(n)){const r={editor:n};var o=Object(a.a)(n);if(o){let e=Object(l.o)(n.saveViewState());i.add(o.onDidChangeCursorPosition(()=>{e=Object(l.o)(n.saveViewState())})),r.restoreViewState=()=>{e&&n===this.activeTextEditorControl&&n.restoreViewState(e)},i.add(Object(d.a)(t.onCancellationRequested)(()=>{var e;return null==(e=r.restoreViewState)?void 0:e.call(r)}))}i.add(Object(s.i)(()=>this.clearDecorations(n))),i.add(this.provideWithTextEditor(r,e,t))}else i.add(this.provideWithoutTextEditor(e,t));return i}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return Object(a.c)(e)?null==(t=e.getModel())?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(e=>{var i=[],s=(this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0),[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Object(o.g)(r.B),position:n.d.Full}}}]),[e,i]=e.deltaDecorations(i,s);this.rangeHighlightDecorationId={rangeHighlightId:e,overviewRulerDecorationId:i}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}},"23ec":function(e,t,i){"use strict";i.r(t);var n=i("5fe7"),o=(t=i("a666"),i("b2cc")),r=i("b707"),s=i("1b69"),a=i("252f"),l=i("b7d0"),d=i("fbba"),h=i("d1a7"),c=i("74ce"),u=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});let g=class extends t.a{constructor(e,t,i,o){super(),this._modelService=t,this._themeService=i,this._configurationService=o,this._editor=e,this._tokenizeViewport=new n.e(()=>this._tokenizeViewportNow(),100),this._outstandingRequests=[],this._register(this._editor.onDidScrollChange(()=>{this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModelContent(e=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(r.k.onDidChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(h.b)&&(this._cancelAll(),this._tokenizeViewport.schedule())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(this._editor.hasModel()){const t=this._editor.getModel();if(!t.hasCompleteSemanticTokens())if(Object(h.c)(t,this._themeService,this._configurationService)){const i=Object(c.a)(t);if(i){const n=this._modelService.getSemanticTokensProviderStyling(i);var e=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(e.map(e=>this._requestRange(t,e,i,n)))}else t.hasSomeSemanticTokens()&&t.setSemanticTokens(null,!1)}else t.hasSomeSemanticTokens()&&t.setSemanticTokens(null,!1)}}_requestRange(e,t,i,o){const r=e.getVersionId(),s=Object(n.h)(n=>Promise.resolve(i.provideDocumentRangeSemanticTokens(e,t,n)));return s.then(i=>{i&&!e.isDisposed()&&e.getVersionId()===r&&e.setPartialSemanticTokens(t,Object(a.b)(i,o,e.getLanguageIdentifier()))}).then(()=>this._removeOutstandingRequest(s),()=>this._removeOutstandingRequest(s)),s}};g.ID="editor.contrib.viewportSemanticTokens",g=i([u(1,s.a),u(2,l.b),u(3,d.a)],g),Object(o.l)(g.ID,g)},"23f2":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return i.e("chunk-2d221a34").then(i.bind(null,"cacc"))}})},2504:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return l}));var n,o,r=i("308f");const s=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));(o=n=n||{}).isCancellationToken=function(e){return e===o.None||e===o.Cancelled||e instanceof a||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},o.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.c.None}),o.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:s});class a{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?s:(this._emitter||(this._emitter=new r.b),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class l{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new a),this._token}cancel(){this._token?this._token instanceof a&&this._token.cancel():this._token=n.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof a&&this._token.dispose():this._token=n.None}}},"252f":function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return a}));var n=i("b707"),o=i("d3d7"),r=i("4111");class s{constructor(e,t,i){this._legend=e,this._themeService=t,this._logService=i,this._hashTable=new d,this._hasWarnedOverlappingTokens=!1}getMetadata(e,t,i){var r=this._hashTable.get(e,t,i.id);let s;if(r)s=r.metadata,this._logService.getLevel()===o.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${n.E.getForeground(s)}, fontStyle `+n.E.getFontStyle(s).toString(2));else{let d=this._legend.tokenTypes[e];var a=[];if(d){let e=t;for(let t=0;0<e&&t<this._legend.tokenModifiers.length;t++)1&e&&a.push(this._legend.tokenModifiers[t]),e>>=1;0<e&&this._logService.getLevel()===o.c.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: `+JSON.stringify(this._legend.tokenModifiers)),a.push("not-in-legend"));var l;r=this._themeService.getColorTheme().getTokenStyleMetadata(d,a,i.language);void 0!==r&&(void(s=0)!==r.italic&&(l=(r.italic?1:0)<<11,s|=1|l),void 0!==r.bold&&(l=(r.bold?2:0)<<11,s|=2|l),void 0!==r.underline&&(l=(r.underline?4:0)<<11,s|=4|l),r.foreground&&(l=r.foreground<<14,s|=8|l),0!==s)||(s=2147483647)}else this._logService.getLevel()===o.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: `+JSON.stringify(this._legend.tokenTypes)),s=2147483647,d="not-in-legend";this._hashTable.add(e,t,i.id,s),this._logService.getLevel()===o.c.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${d}) / ${t} (${a.join(" ")}): foreground ${n.E.getForeground(s)}, fontStyle `+n.E.getFontStyle(s).toString(2))}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0)}}function a(e,t,i){var n=e.data,o=e.data.length/5|0,s=Math.max(Math.ceil(o/1024),400),a=[];let l=0,d=1,h=0;for(;l<o;){var c=l;let e=Math.min(c+s,o);if(e<o){let t=e;for(;t-1>c&&0===n[5*t];)t--;if(t-1===c){let t=e;for(;t+1<o&&0===n[5*t];)t++;e=t}else e=t}let _=new Uint32Array(4*(e-c)),b=0,v=0,C=0,w=0,y=0;for(;l<e;){var u=5*l,g=n[u],p=n[1+u],m=d+g,f=(g=0===g?h+p:p,p=n[2+u],n[3+u]);u=n[4+u],f=t.getMetadata(f,u,i);2147483647!==f&&(0===v&&(v=m),C===m&&y>g&&(t.warnOverlappingSemanticTokens(m,g+1),w<g?_[b-4+2]=g:b-=4),_[b]=m-v,_[b+1]=g,_[b+2]=g+p,_[b+3]=f,b+=4,C=m,w=g,y=g+p),d=m,h=g,l++}b!==_.length&&(_=_.subarray(0,b));const S=new r.a(v,new r.c(_));a.push(S)}return a}class l{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class d{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=d._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<d._SIZES.length?2/3*this._currentLength:0),this._elements=[],d._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let i=0;i<t;i++)e[i]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,i){return this._hash2(this._hash2(e,t),i)%this._currentLength}get(e,t,i){var n=this._hashFunc(e,t,i);let o=this._elements[n];for(;o;){if(o.tokenTypeIndex===e&&o.tokenModifierSet===t&&o.languageId===i)return o;o=o.next}return null}add(e,t,i,n){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){var o=this._elements;this._currentLengthIndex++,this._currentLength=d._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<d._SIZES.length?2/3*this._currentLength:0),this._elements=[],d._nullOutEntries(this._elements,this._currentLength);for(const e of o){let t=e;for(;t;){var r=t.next;t.next=null,this._add(t),t=r}}}this._add(new l(e,t,i,n))}_add(e){var t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}d._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]},"258a":function(e,t,i){"use strict";var n;i.d(t,"a",(function(){return n}));{var o=n=n||{};o.is=function(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]};const e=Object.freeze([]);o.empty=function(){return e},o.single=function*(e){yield e},o.from=function(t){return t||e},o.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},o.first=function(e){return e[Symbol.iterator]().next().value},o.some=function(e,t){for(const i of e)if(t(i))return!0;return!1},o.find=function(e,t){for(const i of e)if(t(i))return i},o.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},o.map=function*(e,t){let i=0;for(const n of e)yield t(n,i++)},o.concat=function*(...e){for(const t of e)for(const e of t)yield e},o.concatNested=function*(e){for(const t of e)for(const e of t)yield e},o.reduce=function(e,t,i){let n=i;for(const o of e)n=t(n,o);return n},o.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},o.consume=function(e,t=Number.POSITIVE_INFINITY){var i=[];if(0===t)return[i,e];const n=e[Symbol.iterator]();for(let s=0;s<t;s++){var r=n.next();if(r.done)return[i,o.empty()];i.push(r.value)}return[i,{[Symbol.iterator](){return n}}]},o.equals=function(e,t,i=((e,t)=>e===t)){for(var n=e[Symbol.iterator](),o=t[Symbol.iterator]();;){var r=n.next(),s=o.next();if(r.done!==s.done)return!1;if(r.done)return!0;if(!i(r.value,s.value))return!1}}}},2652:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return i.e("chunk-2d0d2f22").then(i.bind(null,"5b54"))}})},"27e6":function(e,t,i){},2837:function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return r})),(i=n=n||{})[i.None=0]="None",i[i.Indent=1]="Indent",i[i.IndentOutdent=2]="IndentOutdent",i[i.Outdent=3]="Outdent";class o{constructor(e){if(this._standardAutoClosingPairConditionalBrand=void 0,this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++)switch(e.notIn[t]){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4}}isOK(e){return 0==(this._standardTokenMask&e)}}class r{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)s(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),s(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),s(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),s(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&s(this.autoClosingPairsCloseSingleChar,t.close,t)}}function s(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},2935:function(e,t,i){"use strict";i.r(t);var n=i("dff7"),o=(t=i("b2cc"),i("c101")),r=i("6a89"),s=i("8025");class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){var i,n,o,s,a;this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty()||(i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn,this._isMovingLeft&&1===n)||!this._isMovingLeft&&o===e.getLineMaxColumn(i)||(this._isMovingLeft?(s=new r.a(i,n-1,i,n),a=e.getValueInRange(s),t.addEditOperation(s,null),t.addEditOperation(new r.a(i,o,i,o),a)):(s=new r.a(i,o,i,o+1),a=e.getValueInRange(s),t.addEditOperation(s,null),t.addEditOperation(new r.a(i,n,i,n),a)))}computeCursorState(e,t){return this._isMovingLeft?new s.a(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new s.a(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class l extends t.b{constructor(e,t){super(t),this.left=e}run(e,t){if(t.hasModel()){var i=[];for(const e of t.getSelections())i.push(new a(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}}Object(t.j)(class extends l{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:n.a("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:o.a.writable})}}),Object(t.j)(class extends l{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:n.a("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:o.a.writable})}})},"29a1":function(e,t,i){},"2a04":function(e,t,i){},"2ab7":function(e,t,i){},"2c29":function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"c",(function(){return r})),i.d(t,"e",(function(){return s})),i.d(t,"d",(function(){return a})),i.d(t,"b",(function(){return l}));var n=i("8025");class o{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){return t=t.getInverseEditOperations()[0].range,new n.a(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}}class r{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){return t=t.getInverseEditOperations()[0].range,new n.a(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn)}}class s{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){return t=t.getInverseEditOperations()[0].range,new n.a(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}}class a{constructor(e,t,i,n,o=!1){this._range=e,this._text=t,this._columnDeltaOffset=n,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=o}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){return t=t.getInverseEditOperations()[0].range,new n.a(t.endLineNumber+this._lineNumberDeltaOffset,t.endColumn+this._columnDeltaOffset,t.endLineNumber+this._lineNumberDeltaOffset,t.endColumn+this._columnDeltaOffset)}}class l{constructor(e,t,i,n=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=n,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},"2cd0":function(e,t,i){"use strict";i("33f9"),i("09d1"),i("db7a"),i("38e9"),i("962f"),i("d1c2"),i("91d3"),i("0292"),i("8eb6"),i("82a1"),i("a771"),i("13e8"),i("f41d"),i("f5ba"),i("4af6"),i("a8f5"),i("9d48"),i("23f2"),i("2dec"),i("d282"),i("f9ad"),i("77db"),i("8457"),i("cd01"),i("93b9"),i("7257"),i("daaa"),i("0ef9"),i("16f5"),i("38f6"),i("66f1"),i("1aa7"),i("2e5e"),i("4058"),i("6640"),i("fdc0"),i("c5834"),i("8d5c"),i("ea53"),i("abca"),i("b12b"),i("a0a2"),i("1fa1"),i("cb70"),i("2652"),i("8f6a"),i("c286"),i("88b6"),i("4da7"),i("32cc"),i("6a38"),i("4220"),i("a48d"),i("c8aa"),i("8a3f"),i("5d08"),i("19bd"),i("1bd1"),i("c663"),i("73d3"),i("333a"),i("199a"),i("d65c"),i("e8cb"),i("c3d4"),i("b9f8"),i("2d19"),i("d2ce"),i("0542"),i("9f5f"),i("10eb"),i("9eb0"),i("0447"),i("1389")},"2d19":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return i.e("chunk-2d21dcd2").then(i.bind(null,"d39f"))}})},"2d47":function(e,t,i){"use strict";i.r(t),i.d(t,"DeleteWordPartLeft",(function(){return a})),i.d(t,"DeleteWordPartRight",(function(){return l})),i.d(t,"WordPartLeftCommand",(function(){return d})),i.d(t,"CursorWordPartLeft",(function(){return h})),i.d(t,"CursorWordPartLeftSelect",(function(){return c})),i.d(t,"WordPartRightCommand",(function(){return u})),i.d(t,"CursorWordPartRight",(function(){return g})),i.d(t,"CursorWordPartRightSelect",(function(){return p}));t=i("b2cc");var n=i("d48d"),o=i("6a89"),r=i("c101"),s=i("b3b2");i=i("9e74");class a extends s.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:r.a.writable,kbOpts:{kbExpr:r.a.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){return e=n.b.deleteWordPartLeft(e),e||new o.a(1,1,1,1)}}class l extends s.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:r.a.writable,kbOpts:{kbExpr:r.a.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){var i=n.b.deleteWordPartRight(e);return i||(i=e.model.getLineCount(),e=e.model.getLineMaxColumn(i),new o.a(i,e,i,e))}}class d extends s.MoveWordCommand{_move(e,t,i,o){return n.b.moveWordPartLeft(e,t,i)}}class h extends d{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:r.a.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}i.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class c extends d{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:r.a.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}i.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class u extends s.MoveWordCommand{_move(e,t,i,o){return n.b.moveWordPartRight(e,t,i)}}class g extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:r.a.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class p extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:r.a.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}Object(t.k)(new a),Object(t.k)(new l),Object(t.k)(new h),Object(t.k)(new c),Object(t.k)(new g),Object(t.k)(new p)},"2de5":function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return r}));var n=i("099d");class o{constructor(e,t){this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class r{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Object(n.a)(e);var i=this.values,o=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(i.length+r),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),0<=this.prefixSumValidIndex[0]&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=Object(n.a)(e),t=Object(n.a)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=Object(n.a)(e),t=Object(n.a)(t);var i,o=this.values,r=this.prefixSum;return!(e>=o.length||0===(t=(i=o.length-e)<=t?i:t)||(this.values=new Uint32Array(o.length-t),this.values.set(o.subarray(0,e),0),this.values.set(o.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),0<=this.prefixSumValidIndex[0]&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),0))}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Object(n.a)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(!(e<=this.prefixSumValidIndex[0])){let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e)}return this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0;var r;let s=0;for(;t<=i;)if(n=t+(i-t)/2|0,r=this.prefixSum[n],e<(s=r-this.values[n]))i=n-1;else{if(!(r<=e))break;t=n+1}return new o(n,e-s)}}},"2dec":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return i.e("chunk-2d0e542a").then(i.bind(null,"9470"))}})},"2e4b":function(e,t,i){"use strict";i.r(t),i.d(t,"StandaloneCommandsQuickAccessProvider",(function(){return W})),i.d(t,"GotoLineAction",(function(){return V}));t=i("89cd");var n=i("2f1e"),o=i("03d9"),r=i("5717"),s=i("e8e3"),a=i("ef8e9"),l=i("dff7");function d(e,t){return t&&(e.stack||e.stacktrace)?l.a("stackTrace.format","{0}: {1}",c(e),h(e.stack)||h(e.stacktrace)):c(e)}function h(e){return Array.isArray(e)?e.join("\n"):e}function c(e){return"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?l.a("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||l.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var u,g=i("fdcc"),p=i("7e93"),m=i("a666"),f=i("40355"),_=i("4b76"),b=i("9e74"),v=i("fbba"),C=i("eafb"),w=i("0a0f"),y=i("6dec"),S=i("5fe7"),L=i("2504"),x=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function k(e){return Array.isArray(e.items)}(N=u=u||{})[N.NO_ACTION=0]="NO_ACTION",N[N.CLOSE_PICKER=1]="CLOSE_PICKER",N[N.REFRESH_PICKER=2]="REFRESH_PICKER",N[N.REMOVE_ITEM=3]="REMOVE_ITEM";class D extends m.a{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var i,n=new m.b;e.canAcceptInBackground=!(null==(i=this.options)||!i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let o=void 0;const r=n.add(new m.d),s=()=>x(this,void 0,void 0,(function*(){var i=r.value=new m.b;null!==o&&void 0!==o&&o.dispose(!0),e.busy=!1;const n=(o=new L.b(t)).token,s=e.value.substr(this.prefix.length).trim(),a=this._getPicks(s,i,n),l=(t,i)=>{let n,o=void 0;if(k(t)?(n=t.items,o=t.active):n=t,0===n.length){if(i)return!1;0<s.length&&null!=(t=this.options)&&t.noResultsPick&&(n=[this.options.noResultsPick])}return e.items=n,o&&(e.activeItems=[o]),!0};if(null!==a)if((i=a).picks&&i.additionalPicks instanceof Promise){let t=!1,i=!1;yield Promise.all([x(this,void 0,void 0,(function*(){yield Object(S.n)(D.FAST_PICKS_RACE_DELAY),n.isCancellationRequested||i||(t=l(a.picks,!0))})),x(this,void 0,void 0,(function*(){e.busy=!0;try{var o,r=yield a.additionalPicks;if(!n.isCancellationRequested){let i,n=void 0;k(a.picks)?(i=a.picks.items,n=a.picks.active):i=a.picks;let s,d=void 0;if(k(r)?(s=r.items,d=r.active):s=r,0<s.length||!t){let t=void 0;n||d||(o=e.activeItems[0])&&-1!==i.indexOf(o)&&(t=o),l({items:[...i,...s],active:n||d||t})}}}finally{n.isCancellationRequested||(e.busy=!1),i=!0}}))])}else if(a instanceof Promise){e.busy=!0;try{var d=yield a;n.isCancellationRequested||l(d)}finally{n.isCancellationRequested||(e.busy=!1)}}else l(a)}));return n.add(e.onDidChangeValue(()=>s())),s(),n.add(e.onDidAccept(t=>{var[i]=e.selectedItems;"function"==typeof(null==i?void 0:i.accept)&&(t.inBackground||e.hide(),i.accept(e.keyMods,t))})),n.add(e.onDidTriggerItemButton(({button:i,item:n})=>x(this,void 0,void 0,(function*(){if("function"==typeof n.trigger){var o=null!=(o=null==(o=n.buttons)?void 0:o.indexOf(i))?o:-1;if(0<=o&&(o=n.trigger(o,e.keyMods),o="number"==typeof o?o:yield o,!t.isCancellationRequested))switch(o){case u.NO_ACTION:break;case u.CLOSE_PICKER:e.hide();break;case u.REFRESH_PICKER:s();break;case u.REMOVE_ITEM:var r,a=e.items.indexOf(n);-1!==a&&((r=e.items.slice()).splice(a,1),e.items=r)}}})))),n}}D.FAST_PICKS_RACE_DELAY=200;var N=i("03e8"),O=i("5d75"),E=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},I=function(e,t){return function(i,n){t(i,n,e)}},M=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},T=class e extends D{constructor(t,i,n,o,r,s){super(e.PREFIX,t),this.instantiationService=i,this.keybindingService=n,this.commandService=o,this.telemetryService=r,this.dialogService=s,this.commandsHistory=this._register(this.instantiationService.createInstance(A)),this.options=t}_getPicks(t,i,n){return M(this,void 0,void 0,(function*(){var o=yield this.getCommandPicks(i,n);if(n.isCancellationRequested)return[];var r=[];for(const i of o){var h=Object(a.o)(e.WORD_FILTER(t,i.label)),c=i.commandAlias?Object(a.o)(e.WORD_FILTER(t,i.commandAlias)):void 0;h||c?(i.highlights={label:h,detail:this.options.showAlias?c:void 0},r.push(i)):t===i.commandId&&r.push(i)}var u=new Map;for(const e of r){var p=u.get(e.label);p?(e.description=e.commandId,p.description=p.commandId):u.set(e.label,e)}r.sort((e,t)=>{var i=this.commandsHistory.peek(e.commandId),n=this.commandsHistory.peek(t.commandId);return i&&n?n<i?-1:1:i?-1:n?1:e.label.localeCompare(t.label)});var m=[];let f=!1;for(let e=0;e<r.length;e++){const t=r[e];var b=this.keybindingService.lookupKeybinding(t.commandId),v=b?Object(l.a)("commandPickAriaLabelWithKeybinding","{0}, {1}",t.label,b.getAriaLabel()):t.label;0===e&&this.commandsHistory.peek(t.commandId)&&(m.push({type:"separator",label:Object(l.a)("recentlyUsed","recently used")}),f=!0),0!==e&&f&&!this.commandsHistory.peek(t.commandId)&&(m.push({type:"separator",label:Object(l.a)("morecCommands","other commands")}),f=!1),m.push(Object.assign(Object.assign({},t),{ariaLabel:v,detail:this.options.showAlias&&t.commandAlias!==t.label?t.commandAlias:void 0,keybinding:b,accept:()=>M(this,void 0,void 0,(function*(){this.commandsHistory.push(t.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:t.commandId,from:"quick open"});try{yield this.commandService.executeCommand(t.commandId)}catch(e){Object(g.e)(e)||this.dialogService.show(_.a.Error,Object(l.a)("canNotRun","Command '{0}' resulted in an error ({1})",t.label,function e(t=null,i=!1){if(!t)return l.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");var n;if(Array.isArray(t))return n=e((o=s.e(t))[0],i),1<o.length?l.a("error.moreErrors","{0} ({1} errors in total)",n,o.length):n;if(a.k(t))return t;if(t.detail){var o=t.detail;if(o.error)return d(o.error,i);if(o.exception)return d(o.exception,i)}return t.stack?d(t,i):t.message||l.a("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}(e)))}}))}))}return m}))}};T.PREFIX=">",T.WORD_FILTER=Object(p.j)(p.h,p.i,p.f),T=E([I(1,w.a),I(2,y.a),I(3,b.b),I(4,O.a),I(5,C.a)],T);let A=class e extends m.a{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=e.getConfiguredCommandHistoryLength(this.configurationService),e.cache&&e.cache.limit!==this.configuredCommandsHistoryLength&&(e.cache.limit=this.configuredCommandsHistoryLength,e.saveState(this.storageService))}load(){var t=this.storageService.get(e.PREF_KEY_CACHE,0);let i;if(t)try{i=JSON.parse(t)}catch(t){}const n=e.cache=new f.a(this.configuredCommandsHistoryLength,1);if(i){let e;(e=i.usesLRU?i.entries:i.entries.sort((e,t)=>e.value-t.value)).forEach(e=>n.set(e.key,e.value))}e.counter=this.storageService.getNumber(e.PREF_KEY_COUNTER,0,e.counter)}push(t){e.cache&&(e.cache.set(t,e.counter++),e.saveState(this.storageService))}peek(t){var i;return null==(i=e.cache)?void 0:i.peek(t)}static saveState(t){if(e.cache){const i={usesLRU:!0,entries:[]};e.cache.forEach((e,t)=>i.entries.push({key:t,value:e})),t.store(e.PREF_KEY_CACHE,JSON.stringify(i),0,0),t.store(e.PREF_KEY_COUNTER,e.counter,0,0)}}static getConfiguredCommandHistoryLength(t){return t=null==(t=null==(t=t.getValue().workbench)?void 0:t.commandPalette)?void 0:t.history,"number"==typeof t?t:e.DEFAULT_COMMANDS_HISTORY_LENGTH}};A.DEFAULT_COMMANDS_HISTORY_LENGTH=50,A.PREF_KEY_CACHE="commandPalette.mru.cache",A.PREF_KEY_COUNTER="commandPalette.mru.counter",A.counter=1,A=E([I(0,N.a),I(1,v.a)],A);var R=i("1097");class P extends T{constructor(e,t,i,n,o,r){super(e,t,i,n,o,r)}getCodeEditorCommandPicks(){var e=this.activeTextEditorControl;if(!e)return[];var t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:Object(R.e)(i.label)||i.id});return t}}p=i("b2cc");var F=i("c101"),B=i("66bd"),j=(E=function(e,t){return function(i,n){t(i,n,e)}},function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});let W=class extends P{constructor(e,t,i,n,o,r){super({showAlias:!1},e,i,n,o,r),this.codeEditorService=t}get activeTextEditorControl(){return Object(a.o)(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return j(this,void 0,void 0,(function*(){return this.getCodeEditorCommandPicks()}))}};W=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}([E(0,w.a),E(1,r.a),E(2,y.a),E(3,b.b),E(4,O.a),E(5,C.a)],W),t.a.as(n.b.Quickaccess).registerQuickAccessProvider({ctor:W,prefix:W.PREFIX,helpEntries:[{description:o.d.quickCommandHelp,needsEditor:!0}]});class V extends p.b{constructor(){super({id:"editor.action.quickCommand",label:o.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:F.a.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(B.a).quickAccess.show(W.PREFIX)}}Object(p.j)(V)},"2e5d":function(e,t,i){"use strict";i.d(t,"b",(function(){return g})),i.d(t,"f",(function(){return p})),i.d(t,"c",(function(){return m})),i.d(t,"d",(function(){return b})),i.d(t,"e",(function(){return v})),i.d(t,"a",(function(){return C})),i.d(t,"g",(function(){return w}));var n=i("fdcc"),o=i("3742"),r=i("7061"),s=i("6a89"),a=i("8025"),l=i("b57f"),d=i("70cb");const h=()=>!0,c=()=>!1,u=e=>" "===e||"\t"===e;class g{constructor(e,t,i){this._cursorMoveConfigurationBrand=void 0,this._languageIdentifier=e;i=i.options;var n=i.get(130);this.readOnly=i.get(80),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=i.get(104),this.lineHeight=i.get(58),this.pageSize=Math.max(1,Math.floor(n.height/this.lineHeight)-2),this.useTabStops=i.get(115),this.wordSeparators=i.get(116),this.emptySelectionClipboard=i.get(31),this.copyWithSyntaxHighlighting=i.get(20),this.multiCursorMergeOverlapping=i.get(68),this.multiCursorPaste=i.get(70),this.autoClosingBrackets=i.get(5),this.autoClosingQuotes=i.get(8),this.autoClosingDelete=i.get(6),this.autoClosingOvertype=i.get(7),this.autoSurround=i.get(11),this.autoIndent=i.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:g._getShouldAutoClose(e,this.autoClosingQuotes),bracket:g._getShouldAutoClose(e,this.autoClosingBrackets)},this.autoClosingPairs=d.a.getAutoClosingPairs(e.id),t=g._getSurroundingPairs(e);if(t)for(const o of t)this.surroundingPairs[o.open]=o.close}static shouldRecreate(e){return e.hasChanged(130)||e.hasChanged(116)||e.hasChanged(31)||e.hasChanged(68)||e.hasChanged(70)||e.hasChanged(5)||e.hasChanged(8)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(115)||e.hasChanged(58)||e.hasChanged(80)}get electricChars(){if(!this._electricChars){this._electricChars={};var e=g._getElectricCharacters(this._languageIdentifier);if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}normalizeIndentation(e){return l.b.normalizeIndentation(e,this.indentSize,this.insertSpaces)}static _getElectricCharacters(e){try{return d.a.getElectricCharacters(e.id)}catch(e){return Object(n.f)(e),null}}static _getShouldAutoClose(e,t){switch(t){case"beforeWhitespace":return u;case"languageDefined":return g._getLanguageDefinedShouldAutoClose(e);case"always":return h;case"never":return c}}static _getLanguageDefinedShouldAutoClose(e){try{const t=d.a.getAutoCloseBeforeSet(e.id);return e=>-1!==t.indexOf(e)}catch(e){return Object(n.f)(e),c}}static _getSurroundingPairs(e){try{return d.a.getSurroundingPairs(e.id)}catch(e){return Object(n.f)(e),null}}}class p{constructor(e,t,i,n){this._singleCursorStateBrand=void 0,this.selectionStart=e,this.selectionStartLeftoverVisibleColumns=t,this.position=i,this.leftoverVisibleColumns=n,this.selection=p._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,n){return e?new p(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new r.a(t,i),n):new p(new s.a(t,i,t,i),n,new r.a(t,i),n)}static _computeSelection(e,t){let i,n,o,r;return n=!e.isEmpty()&&t.isBeforeOrEqual(e.getStartPosition())?(i=e.endLineNumber,e.endColumn):(i=e.startLineNumber,e.startColumn),o=t.lineNumber,r=t.column,new a.a(i,n,o,r)}}class m{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}class f{constructor(e){this.modelState=e,this.viewState=null}}class _{constructor(e){this.modelState=null,this.viewState=e}}class b{constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}static fromModelState(e){return new f(e)}static fromViewState(e){return new _(e)}static fromModelSelection(e){var t=e.selectionStartLineNumber,i=e.selectionStartColumn,n=e.positionLineNumber;e=e.positionColumn,t=new p(new s.a(t,i,t,i),0,new r.a(n,e),0);return b.fromModelState(t)}static fromModelSelections(e){var t=[];for(let i=0,n=e.length;i<n;i++)t[i]=this.fromModelSelection(e[i]);return t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class v{constructor(e,t,i){this._editOperationResultBrand=void 0,this.type=e,this.commands=t,this.shouldPushStackElementBefore=i.shouldPushStackElementBefore,this.shouldPushStackElementAfter=i.shouldPushStackElementAfter}}class C{static visibleColumnFromColumn(e,t,i){var n=e.length,r=t-1<n?t-1:n;let s=0,a=0;for(;a<r;){var l=o.z(e,r,a);if(a+=65536<=l?2:1,9===l)s=C.nextRenderTabStop(s,i);else{let t=o.w(l);for(;a<r;){var d=o.z(e,r,a),h=o.w(d);if(o.c(t,h))break;a+=65536<=d?2:1,t=h}o.D(l)||o.B(l)?s+=2:s+=1}}return s}static visibleColumnsByColumns(e,t){var i=e.length,n=new Array;n.push(-1);let r=0,s=0;for(;s<i;){var a=o.z(e,i,s);if(s+=65536<=a?2:1,n.push(r),65536<=a&&n.push(r),9===a)r=C.nextRenderTabStop(r,t);else{let t=o.w(a);for(;s<i;){var l=o.z(e,i,s),d=o.w(l);if(o.c(t,d))break;s+=65536<=l?2:1,n.push(r),65536<=a&&n.push(r),t=d}o.D(a)||o.B(a)?r+=2:r+=1}}return n.push(r),n}static visibleColumnFromColumn2(e,t,i){return this.visibleColumnFromColumn(t.getLineContent(i.lineNumber),i.column,e.tabSize)}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;var n=e.length;let r=0,s=1,a=0;for(;a<n;){var l=o.z(e,n,a);let u;if(a+=65536<=l?2:1,9===l)u=C.nextRenderTabStop(r,i);else{let t=o.w(l);for(;a<n;){var d=o.z(e,n,a),h=o.w(d);if(o.c(t,h))break;a+=65536<=d?2:1,t=h}u=o.D(l)||o.B(l)?r+2:r+1}var c;l=a+1;if(u>=t)return c=t-r,u-t<c?l:s;r=u,s=l}return n+1}static columnFromVisibleColumn2(e,t,i,n){n=this.columnFromVisibleColumn(t.getLineContent(i),n,e.tabSize),e=t.getLineMinColumn(i);return n<e||(e=t.getLineMaxColumn(i))<n?e:n}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function w(e){return"'"===e||'"'===e||"`"===e}},"2e5e":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return i.e("chunk-2d0c4a95").then(i.bind(null,"3c7f"))}})},"2e66":function(e,t,i){"use strict";i.r(t),i.d(t,"GhostTextController",(function(){return ge})),i.d(t,"ActiveGhostTextController",(function(){return me})),i.d(t,"commitInlineSuggestionAction",(function(){return fe})),i.d(t,"ShowNextInlineSuggestionAction",(function(){return _e})),i.d(t,"ShowPreviousInlineSuggestionAction",(function(){return be})),i.d(t,"TriggerInlineSuggestionAction",(function(){return ve}));var n=i("a666"),o=i("b2cc"),r=i("c101"),s=(i("aa80"),i("11f7")),a=i("6a89"),l=(t=i("5717"),i("3742")),d=i("6da2"),h=i("fd49"),c=i("7ab3"),u=i("1ddc"),g=i("e1b5"),p=i("7061"),m=i("b7d0"),f=i("918c"),_=i("ceb8"),b=i("2e5d"),v=i("7416"),C=i("4fc3"),w=i("0a0f"),y=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},S=function(e,t){return function(i,n){t(i,n,e)}};const L=null==(B=window.trustedTypes)?void 0:B.createPolicy("editorGhostText",{createHTML:e=>e});let x=class extends n.a{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.disposed=!1,this.partsWidget=this._register(this.instantiationService.createInstance(k,this.editor)),this.additionalLinesWidget=this._register(new N(this.editor)),this.viewMoreContentWidget=void 0,this._register(this.editor.onDidChangeConfiguration(e=>{(e.hasChanged(28)||e.hasChanged(105)||e.hasChanged(88)||e.hasChanged(82)||e.hasChanged(43)||e.hasChanged(42)||e.hasChanged(58))&&this.update()})),this._register(Object(n.i)(()=>{var e;this.disposed=!0,this.update(),null!=(e=this.viewMoreContentWidget)&&e.dispose(),this.viewMoreContentWidget=void 0})),this._register(t.onDidChange(()=>{this.update()})),this.update()}shouldShowHoverAtViewZone(e){return this.additionalLinesWidget.viewZoneId===e}update(){var e=this.model.ghostText;if(this.editor.hasModel()&&e&&!this.disposed){var t=new Array;const o=new Array;var i=this.editor.getModel().getLineContent(e.lineNumber);this.editor.getModel().getLineTokens(e.lineNumber);let r=void 0,s=0;for(const a of e.parts){let e=a.lines;void 0===r?(t.push({column:a.column,text:e[0],preview:a.preview}),e=e.slice(1)):n([i.substring(s,a.column-1)],void 0),0<e.length&&(n(e,"ghost-text"),void 0===r)&&a.column<=i.length&&(r=a.column),s=a.column-1}function n(e,t){var i;0<o.length&&(i=o[o.length-1],t&&i.decorations.push(new v.a(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1));for(const n of e)o.push({content:n,decorations:t?[new v.a(1,n.length+1,t,0)]:[]})}void 0!==r&&n([i.substring(s)],void 0),this.partsWidget.setParts(e.lineNumber,t,void 0!==r?{column:r,length:i.length+1-r}:void 0),this.additionalLinesWidget.updateLines(e.lineNumber,o,e.additionalReservedLineCount),e.parts.some(e=>e.lines.length<0)?this.viewMoreContentWidget=this.renderViewMoreLines(new p.a(e.lineNumber,this.editor.getModel().getLineMaxColumn(e.lineNumber)),"",0):(null!=(e=this.viewMoreContentWidget)&&e.dispose(),this.viewMoreContentWidget=void 0)}else this.partsWidget.clear(),this.additionalLinesWidget.clear()}renderViewMoreLines(e,t,i){var o=this.editor.getOption(42),r=document.createElement("div");r.className="suggest-preview-additional-widget",u.a.applyFontInfoSlow(r,o),o=document.createElement("span"),o.className="content-spacer",o.append(t),r.append(o),t=document.createElement("span"),t.className="content-newline suggest-preview-text",t.append("⏎ "),r.append(t),o=new n.b,t=document.createElement("div");return t.className="button suggest-preview-text",t.append(`+${i} lines…`),o.add(s.o(t,"mousedown",e=>{var t;null!=(t=this.model)&&t.setExpanded(!0),e.preventDefault(),this.editor.focus()})),r.append(t),new E(this.editor,e,r,o)}},k=(x=y([S(2,w.a)],x),class{constructor(e,t,i,o){this.editor=e,this.codeEditorService=t,this.themeService=i,this.contextKeyService=o,this.decorationIds=[],this.disposableStore=new n.b}dispose(){this.clear(),this.disposableStore.dispose()}clear(){this.editor.deltaDecorations(this.decorationIds,[]),this.disposableStore.clear()}setParts(e,t,i){this.disposableStore.clear();var n=this.themeService.getColorTheme(),o=n.getColor(f.y);let r=void 0,s=void 0;o&&(r=String(o.rgba.a),s=_.a.Format.CSS.format(D(o))),o=n.getColor(f.x);let l=void 0;if(o&&(l="2px dashed "+o),n=this.editor.getModel(),n){const d=n.getOptions()["tabSize"],h=n.getLineContent(e)||"";let c=0,u="";o=new Array,i&&o.push({range:a.a.fromPositions(new p.a(e,i.column),new p.a(e,i.column+i.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}}),n=this.contextKeyService.getContextKeyValue("config.editor.useInjectedText");const g=void 0===n||!!n;this.decorationIds=this.editor.deltaDecorations(this.decorationIds,t.map(t=>{u+=h.substring(c,t.column-1),c=t.column-1;var i=g?t.text:this.renderSingleLineText(t.text,u,d,!1),n=this.disposableStore.add(function(e,t,i,n){const o=i+O++;return e.registerDecorationType(t,o,n),{dispose(){e.removeDecorationType(o)},resolve(){return e.resolveDecorationOptions(o,!0)}}}(this.codeEditorService,"ghost-text","0-ghost-text-",{after:{contentText:i,opacity:r,color:s,border:l,fontWeight:t.preview?"bold":"normal"}}));return{range:a.a.fromPositions(new p.a(e,t.column)),options:g?{description:"ghost-text",after:{content:i,inlineClassName:t.preview?"ghost-text-decoration-preview":"ghost-text-decoration"}}:Object.assign({},n.resolve())}}).concat(o))}}renderSingleLineText(e,t,i,n){var o=b.a.visibleColumnsByColumns(t+e,i);let r="",s=t.length+1;for(const l of e){if("\t"===l){var a=o[s+1]-o[s];if(n){r+="→";for(let e=1;e<a;e++)r+=" "}else for(let e=0;e<a;e++)r+=" "}else r+=" "===l?n?"·":" ":l;s+=1}return r}});function D(e){var{r:e,b:t,g:i}=e.rgba;return new _.a(new _.c(e,i,t,255))}k=y([S(1,t.a),S(2,m.b),S(3,C.b)],k);class N{constructor(e){this.editor=e,this._viewZoneId=void 0}get viewZoneId(){return this._viewZoneId}dispose(){this.clear()}clear(){this.editor.changeViewZones(e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(e,t,i){var n=this.editor.getModel();if(n){const o=n.getOptions()["tabSize"];this.editor.changeViewZones(n=>{this._viewZoneId&&(n.removeZone(this._viewZoneId),this._viewZoneId=void 0);var r=Math.max(t.length,i);if(0<r){var s=document.createElement("div"),a=s,p=o,m=t,f=this.editor.getOptions(),_=f.get(28),b=f.get(105),v=f.get(82),C=f.get(43),w=f.get(42),y=f.get(58),S=Object(c.a)(1e4);S.appendASCIIString('<div class="suggest-preview-text">');for(let e=0,t=m.length;e<t;e++){var x=m[e],k=x.content,D=(S.appendASCIIString('<div class="view-line'),S.appendASCIIString('" style="top:'),S.appendASCIIString(String(e*y)),S.appendASCIIString('px;width:1000000px;">'),l.A(k)),N=l.m(k),O=g.a.createEmpty(k);Object(d.d)(new d.c(w.isMonospace&&!_,w.canUseHalfwidthRightwardsArrow,k,!1,D,N,0,O,x.decorations,p,0,w.spaceWidth,w.middotWidth,w.wsmiddotWidth,b,"none",v,C!==h.e.OFF,null),S),S.appendASCIIString("</div>")}S.appendASCIIString("</div>"),u.a.applyFontInfoSlow(a,w),f=S.build(),f=L?L.createHTML(f):f,a.innerHTML=f,this._viewZoneId=n.addZone({afterLineNumber:e,heightInLines:r,domNode:s})}})}}}let O=0;class E extends n.a{constructor(e,t,i,o){super(),this.editor=e,this.position=t,this.domNode=i,this.allowEditorOverflow=!1,this.suppressMouseDown=!1,this._register(o),this._register(Object(n.i)(()=>{this.editor.removeContentWidget(this)})),this.editor.addContentWidget(this)}getId(){return"editor.widget.viewMoreLinesWidget"}getDomNode(){return this.domNode}getPosition(){return{position:this.position,preference:[0]}}}Object(m.f)((e,t)=>{var i,n,o=e.getColor(f.y);o&&(i=String(o.rgba.a),n=_.a.Format.CSS.format(D(o)),t.addRule(`.monaco-editor .ghost-text-decoration { opacity: ${i}; color: ${n}; }`),t.addRule(`.monaco-editor .ghost-text-decoration-preview { color: ${o.toString()}; }`),t.addRule(`.monaco-editor .suggest-preview-text .ghost-text { opacity: ${i}; color: ${n}; }`)),o=e.getColor(f.x);o&&t.addRule(`.monaco-editor .suggest-preview-text .ghost-text { border: 2px dashed ${o}; }`)});var I=i("dff7"),M=i("5fe7"),T=i("2504"),A=i("fdcc"),R=i("308f"),P=i("b707"),F=i("d3f4"),B=i("9e74"),j=i("d585");class W{constructor(e,t,i=0){this.lineNumber=e,this.parts=t,this.additionalReservedLineCount=i}renderForScreenReader(e){var t;return 0===this.parts.length?"":(t=this.parts[this.parts.length-1],function(e,t){const i=new V(e),n=t.map(e=>{var t=a.a.lift(e.range);return{startOffset:i.getOffset(t.getStartPosition()),endOffset:i.getOffset(t.getEndPosition()),text:e.text}});n.sort((e,t)=>t.startOffset-e.startOffset);for(const o of n)e=e.substring(0,o.startOffset)+o.text+e.substring(o.endOffset);return e}(e.substr(0,t.column-1),this.parts.map(e=>({range:{startLineNumber:1,endLineNumber:1,startColumn:e.column,endColumn:e.column},text:e.lines.join("\n")}))).substring(this.parts[0].column-1))}}class V{constructor(e){this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)"\n"===e.charAt(t)&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}}class H{constructor(e,t,i){this.column=e,this.lines=t,this.preview=i}}class z extends n.a{constructor(e){super(),this.editor=e,this._expanded=void 0,this.onDidChangeEmitter=new R.b,this.onDidChange=this.onDidChangeEmitter.event,this._register(e.onDidChangeConfiguration(e=>{e.hasChanged(106)&&void 0===this._expanded&&this.onDidChangeEmitter.fire()}))}setExpanded(e){this._expanded=!0,this.onDidChangeEmitter.fire()}}var U=i("1b0e");function K(e,t,i,n,o=0){if(e.range.startLineNumber===e.range.endLineNumber){var r=e.text.length-o,s=t.getValueInRange(e.range),a=(o=function(e,t){var i;return(null===q||void 0===q?void 0:q.originalValue)===e&&(null===q||void 0===q?void 0:q.newValue)===t?null===q||void 0===q?void 0:q.changes:(i=function(e,t){function i(e){let t=0;for(let n=0,o=e.length;n<o;n++){var i=e.charCodeAt(n);i>t&&(t=i)}return t}const n=Math.max(i(e),i(t));function o(e){if(e<0)throw new Error("unexpected");return n+e+1}function r(e){let t=0,i=0;var n=new Int32Array(e.length);for(let s=0,a=e.length;s<a;s++){var r=100*i+t;"("===e[s]?(n[s]=o(2*r),t++):")"===e[s]?(n[s]=o(2*r+1),1===t&&i++,t=Math.max(t-1,0)):n[s]=e.charCodeAt(s)}return n}const s=r(e),a=r(t);return new U.a({getElements:()=>s},{getElements:()=>a}).ComputeDiff(!1).changes}(e,t),q={originalValue:e,newValue:t,changes:i},i)}(s,e.text),e.range.startLineNumber),d=new Array;if("prefix"===i){var h=o.filter(e=>0===e.originalLength);if(1<h.length||1===h.length&&h[0].originalStart!==s.length)return}for(const h of o){var c,u,g=e.range.startColumn+h.originalStart+h.originalLength;if("subwordSmart"===i&&n&&n.lineNumber===e.range.startLineNumber&&g<n.column)return;if(0<h.originalLength){var p=s.substr(h.originalStart,h.originalLength),m=t.getLineFirstNonWhitespaceColumn(a);if(!/^(\t| )*$/.test(p)||!(0===m||g<=m))return}0!==h.modifiedLength&&(p=h.modifiedStart+h.modifiedLength,m=Math.max(h.modifiedStart,Math.min(p,r)),u=e.text.substring(h.modifiedStart,m),c=e.text.substring(m,Math.max(h.modifiedStart,p)),0<u.length&&(u=l.Q(u),d.push(new H(g,u,!1))),0<c.length)&&(u=l.Q(c),d.push(new H(g,u,!0)))}return new W(a,d,0)}}let q=void 0;const $="editor.action.inlineSuggest.commit";y=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},t=function(e,t){return function(i,n){t(i,n,e)}};var G=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};let Z=class extends n.a{constructor(e,t,i){super(),this.editor=e,this.cache=t,this.commandService=i,this.onDidChangeEmitter=new R.b,this.onDidChange=this.onDidChangeEmitter.event,this.completionSession=this._register(new n.d),this.active=!1,this.disposed=!1,this._register(i.onDidExecuteCommand(t=>{new Set([o.i.id,o.g.id,j.CoreEditingCommands.Tab.id,j.CoreEditingCommands.DeleteLeft.id,j.CoreEditingCommands.DeleteRight.id,$,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this.handleUserInput()})),this._register(this.editor.onDidType(e=>{this.handleUserInput()})),this._register(this.editor.onDidChangeCursorPosition(e=>{this.session&&!this.session.isValid&&this.hide()})),this._register(Object(n.i)(()=>{this.disposed=!0}))}handleUserInput(){this.session&&!this.session.isValid&&this.hide(),setTimeout(()=>{this.disposed||this.startSessionIfTriggered()},0)}get session(){return this.completionSession.value}get ghostText(){var e;return null==(e=this.session)?void 0:e.ghostText}get minReservedLineCount(){return this.session?this.session.minReservedLineCount:0}setExpanded(e){var t;null!=(t=this.session)&&t.setExpanded(e)}setActive(e){(this.active=e)&&null!=(e=this.session)&&e.scheduleAutomaticUpdate()}startSessionIfTriggered(){!this.editor.getOption(54).enabled||this.session&&this.session.isValid||this.trigger(P.s.Automatic)}trigger(e){this.completionSession.value?e===P.s.Explicit&&this.completionSession.value.ensureUpdateWithExplicitContext():(this.completionSession.value=new Y(this.editor,this.editor.getPosition(),()=>this.active,this.commandService,this.cache,e),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange(()=>{this.onDidChangeEmitter.fire()})))}hide(){this.completionSession.clear(),this.onDidChangeEmitter.fire()}commitCurrentSuggestion(){var e;null!=(e=this.session)&&e.commitCurrentCompletion()}showNext(){var e;null!=(e=this.session)&&e.showNextInlineCompletion()}showPrevious(){var e;null!=(e=this.session)&&e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return G(this,void 0,void 0,(function*(){var t=yield null==(e=this.session)?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};Z=y([t(2,B.b)],Z);class Y extends z{constructor(e,t,i,o,r,s){super(e),this.triggerPosition=t,this.shouldUpdate=i,this.commandService=o,this.cache=r,this.initialTriggerKind=s,this.minReservedLineCount=0,this.updateOperation=this._register(new n.d),this.updateSoon=this._register(new M.e(()=>{var e=this.initialTriggerKind;return this.initialTriggerKind=P.s.Automatic,this.update(e)},50));let a=this.currentlySelectedCompletionId=void 0;this._register(this.onDidChange(()=>{var e,t=this.currentCompletion;t&&t.sourceInlineCompletion!==a&&(a=t.sourceInlineCompletion,(e=t.sourceProvider).handleItemDidShow)&&e.handleItemDidShow(t.sourceInlineCompletions,a)})),this._register(Object(n.i)(()=>{this.cache.clear()})),this._register(this.editor.onDidChangeCursorPosition(e=>{this.cache.value&&this.onDidChangeEmitter.fire()})),this._register(this.editor.onDidChangeModelContent(e=>{this.scheduleAutomaticUpdate()})),this._register(P.t.onDidChange(()=>{this.updateSoon.schedule()})),this.scheduleAutomaticUpdate()}fixAndGetIndexOfCurrentSelection(){var e;return this.currentlySelectedCompletionId&&this.cache.value&&0!==this.cache.value.completions.length?-1===(e=this.cache.value.completions.findIndex(e=>e.semanticId===this.currentlySelectedCompletionId))?(this.currentlySelectedCompletionId=void 0,0):e:0}get currentCachedCompletion(){if(this.cache.value)return this.cache.value.completions[this.fixAndGetIndexOfCurrentSelection()]}showNextInlineCompletion(){var e;return G(this,void 0,void 0,(function*(){yield this.ensureUpdateWithExplicitContext();var t,i=(null==(e=this.cache.value)?void 0:e.completions)||[];0<i.length?(t=(this.fixAndGetIndexOfCurrentSelection()+1)%i.length,this.currentlySelectedCompletionId=i[t].semanticId):this.currentlySelectedCompletionId=void 0,this.onDidChangeEmitter.fire()}))}showPreviousInlineCompletion(){var e;return G(this,void 0,void 0,(function*(){yield this.ensureUpdateWithExplicitContext();var t,i=(null==(e=this.cache.value)?void 0:e.completions)||[];0<i.length?(t=(this.fixAndGetIndexOfCurrentSelection()+i.length-1)%i.length,this.currentlySelectedCompletionId=i[t].semanticId):this.currentlySelectedCompletionId=void 0,this.onDidChangeEmitter.fire()}))}ensureUpdateWithExplicitContext(){var e;return G(this,void 0,void 0,(function*(){this.updateOperation.value?this.updateOperation.value.triggerKind===P.s.Explicit?yield this.updateOperation.value.promise:yield this.update(P.s.Explicit):(null==(e=this.cache.value)?void 0:e.triggerKind)!==P.s.Explicit&&(yield this.update(P.s.Explicit))}))}hasMultipleInlineCompletions(){var e;return G(this,void 0,void 0,(function*(){return yield this.ensureUpdateWithExplicitContext(),1<((null==(e=this.cache.value)?void 0:e.completions.length)||0)}))}get ghostText(){var e=this.currentCompletion,t=this.editor.getOptions().get(54).mode;return e?K(e,this.editor.getModel(),t,this.editor.getPosition()):void 0}get currentCompletion(){var e=this.currentCachedCompletion;if(e)return e.toLiveInlineCompletion()}get isValid(){return this.editor.getPosition().lineNumber===this.triggerPosition.lineNumber}scheduleAutomaticUpdate(){this.updateOperation.clear(),this.updateSoon.schedule()}update(e){return G(this,void 0,void 0,(function*(){if(this.shouldUpdate()){const n=this.editor.getPosition();var t=Object(M.h)(t=>G(this,void 0,void 0,(function*(){let i;try{i=yield ee(n,this.editor.getModel(),{triggerKind:e,selectedSuggestionInfo:void 0},t)}catch(i){return void Object(A.f)(i)}t.isCancellationRequested||(this.cache.setValue(this.editor,i,e),this.onDidChangeEmitter.fire())}))),i=new X(t,e);this.updateOperation.value=i,yield t,this.updateOperation.value===i&&this.updateOperation.clear()}}))}takeOwnership(e){this._register(e)}commitCurrentCompletion(){var e;this.ghostText&&(e=this.currentCompletion)&&this.commit(e)}commit(e){const t=this.cache.clearAndLeak();this.editor.executeEdits("inlineSuggestion.accept",[F.a.replaceMove(e.range,e.text)]),e.command?this.commandService.executeCommand(e.command.id,...e.command.arguments||[]).finally(()=>{null!==t&&void 0!==t&&t.dispose()}).then(void 0,A.g):null!==t&&void 0!==t&&t.dispose(),this.onDidChangeEmitter.fire()}}class X{constructor(e,t){this.promise=e,this.triggerKind=t}dispose(){this.promise.cancel()}}class Q extends n.a{constructor(e,t,i,o){super(),this.triggerKind=o;const r=e.deltaDecorations([],t.items.map(e=>({range:e.range,options:{description:"inline-completion-tracking-range"}})));this._register(Object(n.i)(()=>{e.deltaDecorations(r,[])})),this.completions=t.items.map((e,t)=>new J(e,r[t])),this._register(e.onDidChangeModelContent(()=>{let t=!1;var n=e.getModel();for(const e of this.completions){var o=n.getDecorationRange(e.decorationId);o?e.synchronizedRange.equalsRange(o)||(t=!0,e.synchronizedRange=o):Object(A.f)(new Error("Decoration has no range"))}t&&i()})),this._register(t)}}class J{constructor(e,t){this.inlineCompletion=e,this.decorationId=t,this.semanticId=JSON.stringify({text:this.inlineCompletion.text,startLine:this.inlineCompletion.range.startLineNumber,startColumn:this.inlineCompletion.range.startColumn,command:this.inlineCompletion.command}),this.synchronizedRange=e.range}toLiveInlineCompletion(){return{text:this.inlineCompletion.text,range:this.synchronizedRange,command:this.inlineCompletion.command,sourceProvider:this.inlineCompletion.sourceProvider,sourceInlineCompletions:this.inlineCompletion.sourceInlineCompletions,sourceInlineCompletion:this.inlineCompletion.sourceInlineCompletion}}}function ee(e,t,i,n=T.a.None){return G(this,void 0,void 0,(function*(){r=e,l=(s=t).getWordAtPosition(r),s=s.getLineMaxColumn(r.lineNumber);const o=l?new a.a(r.lineNumber,l.startColumn,r.lineNumber,s):a.a.fromPositions(r,r.with(void 0,s));var r,s,l=P.t.all(t);const d=yield Promise.all(l.map(o=>G(this,void 0,void 0,(function*(){const r=yield o.provideInlineCompletions(t,e,i,n);return{completions:r,provider:o,dispose:()=>{r&&o.freeInlineCompletions(r)}}}))));var h=new Map;for(const e of d){const t=e.completions;if(t)for(const i of t.items.map(i=>({text:i.text,range:i.range?a.a.lift(i.range):o,command:i.command,sourceProvider:e.provider,sourceInlineCompletions:t,sourceInlineCompletion:i})))i.range.startLineNumber===i.range.endLineNumber&&h.set(JSON.stringify({text:i.text,range:i.range}),i)}return{items:[...h.values()],dispose:()=>{for(const e of d)e.dispose()}}}))}var te=i("b800"),ie=i("59a4"),ne=i("7a9e");class oe extends n.a{constructor(e){super(),this.editor=e,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentInlineCompletion=void 0,this.onDidChangeEmitter=new R.b,this.onDidChange=this.onDidChangeEmitter.event,this.setInactiveDelayed=this._register(new M.e(()=>{this.isSuggestWidgetVisible||this._isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100)),this._register(e.onKeyDown(e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));const t=ne.SuggestController.get(this.editor);if(t){let e=!1;const i=()=>{e||(e=!0,this._register(t.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(t.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.update(this._isActive)})),this._register(t.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(R.c.once(t.model.onDidTrigger)(e=>{i()}))}this.update(this._isActive)}get state(){if(this._isActive)return{selectedItemAsInlineCompletion:this._currentInlineCompletion}}update(e){var t=this.getInlineCompletion();let i=!1;this._currentInlineCompletion!==t&&(this._currentInlineCompletion=t,i=!0),this._isActive!==e&&(this._isActive=e,i=!0),i&&this.onDidChangeEmitter.fire()}getInlineCompletion(){var e=ne.SuggestController.get(this.editor);if(e&&this.isSuggestWidgetVisible){var t,i=e.widget.value.getFocusedItem();if(i){var n=this.editor.getPosition(),o=this.isShiftKeyPressed;if(i=i.item,Array.isArray(i.completion.additionalTextEdits)&&0<i.completion.additionalTextEdits.length)return{text:"",range:a.a.fromPositions(n,n)};let s=i.completion["insertText"];4&i.completion.insertTextRules&&(t=(new te.c).parse(s),r=e.editor.getModel(),ie.a.adjustWhitespace(r,n,t,!0,!0),s=t.toString());var r=e.getOverwriteInfo(i,o);return{text:s,range:a.a.fromPositions(n.delta(0,-r.overwriteBefore),n.delta(0,Math.max(r.overwriteAfter,0)))}}}}stopForceRenderingAbove(){var e=ne.SuggestController.get(this.editor);e&&e.stopForceRenderingAbove()}forceRenderingAbove(){var e=ne.SuggestController.get(this.editor);e&&e.forceRenderingAbove()}}var re=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class se extends z{constructor(e,t){super(e),this.cache=t,this.suggestionInlineCompletionSource=this._register(new oe(this.editor)),this.updateOperation=this._register(new n.d),this.updateCacheSoon=this._register(new M.e(()=>this.updateCache(),50)),this.minReservedLineCount=0,this._register(this.suggestionInlineCompletionSource.onDidChange(()=>{this.updateCacheSoon.schedule(),this.suggestionInlineCompletionSource.state||(this.minReservedLineCount=0);var e=this.ghostText;e&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,e.parts.map(e=>e.lines.length-1).reduce((e,t)=>e+t,0))),1<=this.minReservedLineCount&&this.isSuggestionPreviewEnabled()?this.suggestionInlineCompletionSource.forceRenderingAbove():this.suggestionInlineCompletionSource.stopForceRenderingAbove(),this.onDidChangeEmitter.fire()})),this._register(this.cache.onDidChange(()=>{this.onDidChangeEmitter.fire()})),this._register(this.editor.onDidChangeCursorPosition(e=>{this.isSuggestionPreviewEnabled()&&(this.minReservedLineCount=0,this.updateCacheSoon.schedule(),this.onDidChangeEmitter.fire())})),this._register(Object(n.i)(()=>this.suggestionInlineCompletionSource.stopForceRenderingAbove()))}get isActive(){return void 0!==this.suggestionInlineCompletionSource.state}isSuggestionPreviewEnabled(){return this.editor.getOption(106).preview}updateCache(){return re(this,void 0,void 0,(function*(){var e=this.suggestionInlineCompletionSource.state;if(e&&e.selectedItemAsInlineCompletion){const i={text:e.selectedItemAsInlineCompletion.text,range:e.selectedItemAsInlineCompletion.range},n=this.editor.getPosition();e=Object(M.h)(e=>re(this,void 0,void 0,(function*(){let t;try{t=yield ee(n,this.editor.getModel(),{triggerKind:P.s.Automatic,selectedSuggestionInfo:i},e)}catch(t){return void Object(A.f)(t)}e.isCancellationRequested||(this.cache.setValue(this.editor,t,P.s.Automatic),this.onDidChangeEmitter.fire())})));var t=new X(e,P.s.Automatic);this.updateOperation.value=t,yield e,this.updateOperation.value===t&&this.updateOperation.clear()}}))}get ghostText(){var e=this.suggestionInlineCompletionSource.state,t=(e=ae(this.editor.getModel(),null==e?void 0:e.selectedItemAsInlineCompletion),ae(this.editor.getModel(),null==(t=null==(t=this.cache.value)?void 0:t.completions[0])?void 0:t.toLiveInlineCompletion()));t=!(t&&e&&t.text.startsWith(e.text)&&t.range.equalsRange(e.range))&&e||t;const i=e?((null==t?void 0:t.text.length)||0)-e.text.length:0;return e=t,t=this.editor.getOptions().get(106).previewMode,t=e?K(e,this.editor.getModel(),t,this.editor.getPosition(),i)||new W(e.range.endLineNumber,[],this.minReservedLineCount):void 0,this.isSuggestionPreviewEnabled()?t:void 0}}function ae(e,t){var i,n,o,r;return t&&(i=function(e,t){let i=0;for(;i<e.length&&i<t.length&&e[i]===t[i];)i++;return i}(o=e.getValueInRange(t.range),t.text),r=e.getOffsetAt(t.range.getStartPosition())+i,n=e.getPositionAt(r),o=function(e,t){let i=0;for(;i<e.length&&i<t.length&&e[e.length-i-1]===t[t.length-i-1];)i++;return i}(o.substr(i),t.text),r=e.getPositionAt(Math.max(r,e.getOffsetAt(t.range.getEndPosition())-o)),{range:a.a.fromPositions(n,r),text:t.text.substr(i,t.text.length-i-o)})}S=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},m=function(e,t){return function(i,n){t(i,n,e)}};var le=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class de extends n.a{constructor(){super(...arguments),this.onDidChangeEmitter=new R.b,this.onDidChange=this.onDidChangeEmitter.event,this.hasCachedGhostText=!1,this.currentModelRef=this._register(new n.d)}get targetModel(){var e;return null==(e=this.currentModelRef.value)?void 0:e.object}setTargetModel(e){var t,i;(null==(t=this.currentModelRef.value)?void 0:t.object)!==e&&(this.currentModelRef.clear(),this.currentModelRef.value=e?(i=(t=e).onDidChange(()=>{this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire()}),{object:t,dispose:()=>null==i?void 0:i.dispose()}):void 0,this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire())}get ghostText(){var e;return this.hasCachedGhostText||(this.cachedGhostText=null==(e=null==(e=this.currentModelRef.value)?void 0:e.object)?void 0:e.ghostText,this.hasCachedGhostText=!0),this.cachedGhostText}setExpanded(e){var t;null!=(t=this.targetModel)&&t.setExpanded(e)}get minReservedLineCount(){return this.targetModel?this.targetModel.minReservedLineCount:0}}let he=class extends de{constructor(e,t){super(),this.editor=e,this.commandService=t,this.sharedCache=this._register(new ce),this.suggestWidgetAdapterModel=this._register(new se(this.editor,this.sharedCache)),this.inlineCompletionsModel=this._register(new Z(this.editor,this.sharedCache,this.commandService)),this._register(this.suggestWidgetAdapterModel.onDidChange(()=>{this.updateModel()})),this.updateModel()}get activeInlineCompletionsModel(){if(this.targetModel===this.inlineCompletionsModel)return this.inlineCompletionsModel}updateModel(){this.setTargetModel(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.targetModel===this.inlineCompletionsModel)}shouldShowHoverAt(e){var t;const i=null==(t=this.activeInlineCompletionsModel)?void 0:t.ghostText;return!!i&&i.parts.some(t=>e.containsPosition(new p.a(i.lineNumber,t.column)))}triggerInlineCompletion(){var e;null!=(e=this.activeInlineCompletionsModel)&&e.trigger(P.s.Explicit)}commitInlineCompletion(){var e;null!=(e=this.activeInlineCompletionsModel)&&e.commitCurrentSuggestion()}hideInlineCompletion(){var e;null!=(e=this.activeInlineCompletionsModel)&&e.hide()}showNextInlineCompletion(){var e;null!=(e=this.activeInlineCompletionsModel)&&e.showNext()}showPreviousInlineCompletion(){var e;null!=(e=this.activeInlineCompletionsModel)&&e.showPrevious()}hasMultipleInlineCompletions(){var e;return le(this,void 0,void 0,(function*(){var t=yield null==(e=this.activeInlineCompletionsModel)?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};he=S([m(1,B.b)],he);class ce extends n.a{constructor(){super(...arguments),this.onDidChangeEmitter=new R.b,this.onDidChange=this.onDidChangeEmitter.event,this.cache=this._register(new n.d)}get value(){return this.cache.value}setValue(e,t,i){this.cache.value=new Q(e,t,()=>this.onDidChangeEmitter.fire(),i)}clearAndLeak(){return this.cache.clearAndLeak()}clear(){this.cache.clear()}}y=i("9eb8"),t=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},S=function(e,t){return function(i,n){t(i,n,e)}};var ue=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};let ge=class e extends n.a{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new n.d),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(e=>{e.hasChanged(106)&&this.updateModelController(),e.hasChanged(54)&&this.updateModelController()})),this.updateModelController()}static get(t){return t.getContribution(e.ID)}get activeModel(){var e;return null==(e=this.activeController.value)?void 0:e.model}updateModelController(){var e=this.editor.getOption(106),t=this.editor.getOption(54);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(me,this.editor):void 0}shouldShowHoverAt(e){var t;return(null==(t=this.activeModel)?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t;return(null==(t=null==(t=this.activeController.value)?void 0:t.widget)?void 0:t.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,this.activeController.value||this.updateModelController(),null!=(e=this.activeModel)&&e.triggerInlineCompletion()}commit(){var e;null!=(e=this.activeModel)&&e.commitInlineCompletion()}hide(){var e;null!=(e=this.activeModel)&&e.hideInlineCompletion()}showNextInlineCompletion(){var e;null!=(e=this.activeModel)&&e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;null!=(e=this.activeModel)&&e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return ue(this,void 0,void 0,(function*(){var t=yield null==(e=this.activeModel)?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};ge.inlineSuggestionVisible=new C.c("inlineSuggestionVisible",!1,I.a("inlineSuggestionVisible","Whether an inline suggestion is visible")),ge.inlineSuggestionHasIndentation=new C.c("inlineSuggestionHasIndentation",!1,I.a("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),ge.ID="editor.contrib.ghostTextController",ge=t([S(1,w.a)],ge);class pe{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=ge.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=ge.inlineSuggestionHasIndentation.bindTo(this.contextKeyService)}}let me=class extends n.a{constructor(e,t,i){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.contextKeys=new pe(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(he,this.editor)),this.widget=this._register(this.instantiationService.createInstance(x,this.editor,this.model)),this._register(Object(n.i)(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){this.contextKeys.inlineCompletionVisible.set(void 0!==(null==(i=this.model.activeInlineCompletionsModel)?void 0:i.ghostText));var e,t,i=this.model.inlineCompletionsModel.ghostText;i&&0<i.parts.length?(({column:e,lines:t}=i.parts[0]),t=t[0].startsWith(" ")||t[0].startsWith("\t"),i=this.editor.getModel().getLineIndentColumn(i.lineNumber),this.contextKeys.inlineCompletionSuggestsIndentation.set(!!this.model.activeInlineCompletionsModel&&t&&e<=i)):this.contextKeys.inlineCompletionSuggestsIndentation.set(!1)}};me=t([S(1,w.a),S(2,C.b)],me),m=o.c.bindToContribution(ge.get);const fe=new m({id:$,precondition:ge.inlineSuggestionVisible,handler(e){e.commit(),e.editor.focus()}});Object(o.k)(fe),y.a.registerKeybindingRule({primary:2,weight:200,id:fe.id,when:C.a.and(fe.precondition,r.a.tabMovesFocus.toNegated(),ge.inlineSuggestionHasIndentation.toNegated())}),Object(o.k)(new m({id:"editor.action.inlineSuggest.hide",precondition:ge.inlineSuggestionVisible,kbOpts:{weight:100,primary:9},handler(e){e.hide()}}));class _e extends o.b{constructor(){super({id:_e.ID,label:I.a("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:C.a.and(r.a.writable,ge.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}run(e,t){return ue(this,void 0,void 0,(function*(){var e=ge.get(t);e&&(e.showNextInlineCompletion(),t.focus())}))}}_e.ID="editor.action.inlineSuggest.showNext";class be extends o.b{constructor(){super({id:be.ID,label:I.a("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:C.a.and(r.a.writable,ge.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}run(e,t){return ue(this,void 0,void 0,(function*(){var e=ge.get(t);e&&(e.showPreviousInlineCompletion(),t.focus())}))}}be.ID="editor.action.inlineSuggest.showPrevious";class ve extends o.b{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:I.a("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:r.a.writable})}run(e,t){return ue(this,void 0,void 0,(function*(){var e=ge.get(t);e&&e.trigger()}))}}Object(o.l)(ge.ID,ge),Object(o.j)(ve),Object(o.j)(_e),Object(o.j)(be)},"2f1e":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return s}));var n,o=i("e8e3"),r=i("a666");t=i("89cd");(i=n=n||{})[i.PRESERVE=0]="PRESERVE",i[i.LAST=1]="LAST";const s={Quickaccess:"workbench.contributions.quickaccess"};t.a.add(s.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort((e,t)=>t.prefix.length-e.prefix.length),Object(r.i)(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return Object(o.e)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find(t=>e.startsWith(t.prefix))||this.defaultProvider}})},"303e":function(e,t,i){"use strict";i.d(t,"a",(function(){return l})),i.d(t,"wc",(function(){return h})),i.d(t,"eb",(function(){return c})),i.d(t,"cb",(function(){return u})),i.d(t,"fb",(function(){return g})),i.d(t,"db",(function(){return p})),i.d(t,"h",(function(){return m})),i.d(t,"b",(function(){return f})),i.d(t,"Jc",(function(){return _})),i.d(t,"Ic",(function(){return b})),i.d(t,"Hc",(function(){return v})),i.d(t,"Nc",(function(){return C})),i.d(t,"jb",(function(){return w})),i.d(t,"lb",(function(){return y})),i.d(t,"kb",(function(){return S})),i.d(t,"hb",(function(){return L})),i.d(t,"gb",(function(){return x})),i.d(t,"ib",(function(){return k})),i.d(t,"pb",(function(){return D})),i.d(t,"rb",(function(){return N})),i.d(t,"qb",(function(){return O})),i.d(t,"sb",(function(){return E})),i.d(t,"ub",(function(){return I})),i.d(t,"tb",(function(){return M})),i.d(t,"mb",(function(){return T})),i.d(t,"ob",(function(){return A})),i.d(t,"nb",(function(){return R})),i.d(t,"f",(function(){return B})),i.d(t,"e",(function(){return j})),i.d(t,"g",(function(){return W})),i.d(t,"c",(function(){return V})),i.d(t,"d",(function(){return H})),i.d(t,"yc",(function(){return z})),i.d(t,"Ac",(function(){return U})),i.d(t,"Bc",(function(){return K})),i.d(t,"zc",(function(){return q})),i.d(t,"pc",(function(){return $})),i.d(t,"s",(function(){return G})),i.d(t,"u",(function(){return Z})),i.d(t,"t",(function(){return Y})),i.d(t,"V",(function(){return X})),i.d(t,"X",(function(){return Q})),i.d(t,"W",(function(){return J})),i.d(t,"K",(function(){return ee})),i.d(t,"M",(function(){return te})),i.d(t,"L",(function(){return ie})),i.d(t,"D",(function(){return ne})),i.d(t,"C",(function(){return oe})),i.d(t,"r",(function(){return re})),i.d(t,"B",(function(){return se})),i.d(t,"Y",(function(){return ae})),i.d(t,"ab",(function(){return le})),i.d(t,"Z",(function(){return de})),i.d(t,"bb",(function(){return he})),i.d(t,"qc",(function(){return ce})),i.d(t,"rc",(function(){return ue})),i.d(t,"vc",(function(){return ge})),i.d(t,"lc",(function(){return pe})),i.d(t,"kc",(function(){return me})),i.d(t,"vb",(function(){return fe})),i.d(t,"yb",(function(){return _e})),i.d(t,"wb",(function(){return be})),i.d(t,"xb",(function(){return ve})),i.d(t,"R",(function(){return Ce})),i.d(t,"S",(function(){return we})),i.d(t,"J",(function(){return ye})),i.d(t,"T",(function(){return Se})),i.d(t,"U",(function(){return Le})),i.d(t,"v",(function(){return xe})),i.d(t,"x",(function(){return ke})),i.d(t,"z",(function(){return De})),i.d(t,"w",(function(){return Ne})),i.d(t,"y",(function(){return Oe})),i.d(t,"A",(function(){return Ee})),i.d(t,"H",(function(){return Ie})),i.d(t,"E",(function(){return Me})),i.d(t,"G",(function(){return Te})),i.d(t,"F",(function(){return Ae})),i.d(t,"I",(function(){return Re})),i.d(t,"q",(function(){return Pe})),i.d(t,"O",(function(){return Fe})),i.d(t,"N",(function(){return Be})),i.d(t,"Q",(function(){return je})),i.d(t,"P",(function(){return We})),i.d(t,"i",(function(){return Ve})),i.d(t,"j",(function(){return He})),i.d(t,"m",(function(){return ze})),i.d(t,"o",(function(){return Ue})),i.d(t,"n",(function(){return Ke})),i.d(t,"p",(function(){return qe})),i.d(t,"k",(function(){return $e})),i.d(t,"l",(function(){return Ge})),i.d(t,"Gb",(function(){return Ze})),i.d(t,"Hb",(function(){return Ye})),i.d(t,"Jb",(function(){return Xe})),i.d(t,"zb",(function(){return Qe})),i.d(t,"Ab",(function(){return Je})),i.d(t,"Bb",(function(){return et})),i.d(t,"Pb",(function(){return tt})),i.d(t,"Qb",(function(){return it})),i.d(t,"Rb",(function(){return nt})),i.d(t,"Nb",(function(){return ot})),i.d(t,"Ob",(function(){return rt})),i.d(t,"Lb",(function(){return st})),i.d(t,"Mb",(function(){return at})),i.d(t,"Cb",(function(){return lt})),i.d(t,"Kb",(function(){return dt})),i.d(t,"Ib",(function(){return ht})),i.d(t,"Db",(function(){return ct})),i.d(t,"Fb",(function(){return ut})),i.d(t,"Eb",(function(){return gt})),i.d(t,"Mc",(function(){return pt})),i.d(t,"Gc",(function(){return mt})),i.d(t,"tc",(function(){return _t})),i.d(t,"uc",(function(){return bt})),i.d(t,"sc",(function(){return vt})),i.d(t,"Tb",(function(){return Ct})),i.d(t,"Ub",(function(){return wt})),i.d(t,"Sb",(function(){return yt})),i.d(t,"Xb",(function(){return St})),i.d(t,"Vb",(function(){return Lt})),i.d(t,"Wb",(function(){return xt})),i.d(t,"Yb",(function(){return kt})),i.d(t,"Kc",(function(){return Dt})),i.d(t,"Ec",(function(){return Nt})),i.d(t,"Fc",(function(){return Ot})),i.d(t,"Cc",(function(){return Et})),i.d(t,"Dc",(function(){return It})),i.d(t,"ic",(function(){return Mt})),i.d(t,"jc",(function(){return Tt})),i.d(t,"bc",(function(){return At})),i.d(t,"cc",(function(){return Rt})),i.d(t,"ac",(function(){return Pt})),i.d(t,"gc",(function(){return Ft})),i.d(t,"Zb",(function(){return Bt})),i.d(t,"ec",(function(){return jt})),i.d(t,"fc",(function(){return Wt})),i.d(t,"dc",(function(){return Vt})),i.d(t,"mc",(function(){return Ht})),i.d(t,"oc",(function(){return zt})),i.d(t,"nc",(function(){return Ut})),i.d(t,"Lc",(function(){return $t})),i.d(t,"hc",(function(){return Gt})),i.d(t,"xc",(function(){return Yt}));t=i("5fe7");var n=i("ceb8"),o=i("308f"),r=i("ef8e9"),s=i("dff7"),a=i("dd1b");i=i("89cd");const l={ColorContribution:"base.contributions.colors"},d=new class{constructor(){this._onDidChangeSchema=new o.b,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,o){return this.colorsById[e]={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:o},t={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]},o&&(t.deprecationMessage=o),this.colorSchema.properties[e]=t,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}resolveDefaultColor(e,t){if(e=this.colorsById[e],e&&e.defaults)return Yt(e.defaults[t.type],t)}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort((e,t)=>{var i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!=n?i-n:e.localeCompare(t)}).map(e=>`- \`${e}\`: `+this.colorsById[e].description).join("\n")}};function h(e,t,i,n,o){return d.registerColor(e,t,i,n,o)}i.a.add(l.ColorContribution,d);const c=h("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},s.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),u=h("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},s.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),g=h("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},s.a("iconForeground","The default color for icons in the workbench.")),p=h("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},s.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),m=h("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},s.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),f=h("contrastActiveBorder",{light:null,dark:null,hc:p},s.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),_=h("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},s.a("textLinkForeground","Foreground color for links in text.")),b=h("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},s.a("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),v=h("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:n.a.black},s.a("textCodeBlockBackground","Background color for code blocks in text.")),C=h("widget.shadow",{dark:$t(n.a.black,.36),light:$t(n.a.black,.16),hc:null},s.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),w=h("input.background",{dark:"#3C3C3C",light:n.a.white,hc:n.a.black},s.a("inputBoxBackground","Input box background.")),y=h("input.foreground",{dark:c,light:c,hc:c},s.a("inputBoxForeground","Input box foreground.")),S=h("input.border",{dark:null,light:null,hc:m},s.a("inputBoxBorder","Input box border.")),L=h("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:m},s.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),x=h("inputOption.activeBackground",{dark:$t(p,.4),light:$t(p,.2),hc:n.a.transparent},s.a("inputOption.activeBackground","Background color of activated options in input fields.")),k=h("inputOption.activeForeground",{dark:n.a.white,light:n.a.black,hc:null},s.a("inputOption.activeForeground","Foreground color of activated options in input fields.")),D=h("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:n.a.black},s.a("inputValidationInfoBackground","Input validation background color for information severity.")),N=h("inputValidation.infoForeground",{dark:null,light:null,hc:null},s.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),O=h("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:m},s.a("inputValidationInfoBorder","Input validation border color for information severity.")),E=h("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:n.a.black},s.a("inputValidationWarningBackground","Input validation background color for warning severity.")),I=h("inputValidation.warningForeground",{dark:null,light:null,hc:null},s.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),M=h("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:m},s.a("inputValidationWarningBorder","Input validation border color for warning severity.")),T=h("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:n.a.black},s.a("inputValidationErrorBackground","Input validation background color for error severity.")),A=h("inputValidation.errorForeground",{dark:null,light:null,hc:null},s.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),R=h("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:m},s.a("inputValidationErrorBorder","Input validation border color for error severity."));var P=h("dropdown.background",{dark:"#3C3C3C",light:n.a.white,hc:n.a.black},s.a("dropdownBackground","Dropdown background.")),F=h("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:n.a.white},s.a("dropdownForeground","Dropdown foreground."));const B=h("button.foreground",{dark:n.a.white,light:n.a.white,hc:n.a.white},s.a("buttonForeground","Button foreground color.")),j=h("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},s.a("buttonBackground","Button background color.")),W=h("button.hoverBackground",{dark:qt(j,.2),light:Kt(j,.2),hc:null},s.a("buttonHoverBackground","Button background color when hovering.")),V=h("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:n.a.black},s.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),H=h("badge.foreground",{dark:n.a.white,light:"#333",hc:n.a.white},s.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),z=h("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},s.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),U=h("scrollbarSlider.background",{dark:n.a.fromHex("#797979").transparent(.4),light:n.a.fromHex("#646464").transparent(.4),hc:$t(m,.6)},s.a("scrollbarSliderBackground","Scrollbar slider background color.")),K=h("scrollbarSlider.hoverBackground",{dark:n.a.fromHex("#646464").transparent(.7),light:n.a.fromHex("#646464").transparent(.7),hc:$t(m,.8)},s.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),q=h("scrollbarSlider.activeBackground",{dark:n.a.fromHex("#BFBFBF").transparent(.4),light:n.a.fromHex("#000000").transparent(.6),hc:m},s.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),$=h("progressBar.background",{dark:n.a.fromHex("#0E70C0"),light:n.a.fromHex("#0E70C0"),hc:m},s.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),G=h("editorError.background",{dark:null,light:null,hc:null},s.a("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Z=h("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hc:null},s.a("editorError.foreground","Foreground color of error squigglies in the editor.")),Y=h("editorError.border",{dark:null,light:null,hc:n.a.fromHex("#E47777").transparent(.8)},s.a("errorBorder","Border color of error boxes in the editor.")),X=h("editorWarning.background",{dark:null,light:null,hc:null},s.a("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Q=h("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hc:null},s.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),J=h("editorWarning.border",{dark:null,light:null,hc:n.a.fromHex("#FFCC00").transparent(.8)},s.a("warningBorder","Border color of warning boxes in the editor.")),ee=h("editorInfo.background",{dark:null,light:null,hc:null},s.a("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),te=h("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hc:"#3794FF"},s.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),ie=h("editorInfo.border",{dark:null,light:null,hc:n.a.fromHex("#3794FF").transparent(.8)},s.a("infoBorder","Border color of info boxes in the editor.")),ne=h("editorHint.foreground",{dark:n.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},s.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),oe=h("editorHint.border",{dark:null,light:null,hc:n.a.fromHex("#eeeeee").transparent(.8)},s.a("hintBorder","Border color of hint boxes in the editor.")),re=h("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:n.a.black},s.a("editorBackground","Editor background color.")),se=h("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:n.a.white},s.a("editorForeground","Editor default foreground color.")),ae=h("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},s.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),le=h("editorWidget.foreground",{dark:c,light:c,hc:c},s.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),de=h("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:m},s.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),he=h("editorWidget.resizeBorder",{light:null,dark:null,hc:null},s.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),ce=h("quickInput.background",{dark:ae,light:ae,hc:ae},s.a("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ue=h("quickInput.foreground",{dark:le,light:le,hc:le},s.a("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),ge=h("quickInputTitle.background",{dark:new n.a(new n.c(255,255,255,.105)),light:new n.a(new n.c(0,0,0,.06)),hc:"#000000"},s.a("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),pe=h("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:n.a.white},s.a("pickerGroupForeground","Quick picker color for grouping labels.")),me=h("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:n.a.white},s.a("pickerGroupBorder","Quick picker color for grouping borders.")),fe=h("keybindingLabel.background",{dark:new n.a(new n.c(128,128,128,.17)),light:new n.a(new n.c(221,221,221,.4)),hc:n.a.transparent},s.a("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),_e=h("keybindingLabel.foreground",{dark:n.a.fromHex("#CCCCCC"),light:n.a.fromHex("#555555"),hc:n.a.white},s.a("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),be=h("keybindingLabel.border",{dark:new n.a(new n.c(51,51,51,.6)),light:new n.a(new n.c(204,204,204,.4)),hc:new n.a(new n.c(111,195,223))},s.a("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),ve=h("keybindingLabel.bottomBorder",{dark:new n.a(new n.c(68,68,68,.6)),light:new n.a(new n.c(187,187,187,.4)),hc:new n.a(new n.c(111,195,223))},s.a("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Ce=h("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},s.a("editorSelectionBackground","Color of the editor selection.")),we=h("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},s.a("editorSelectionForeground","Color of the selected text for high contrast.")),ye=h("editor.inactiveSelectionBackground",{light:$t(Ce,.5),dark:$t(Ce,.5),hc:$t(Ce,.5)},s.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Se=h("editor.selectionHighlightBackground",{light:Zt(Ce,re,.3,.6),dark:Zt(Ce,re,.3,.6),hc:null},s.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Le=h("editor.selectionHighlightBorder",{light:null,dark:null,hc:f},s.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),xe=h("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},s.a("editorFindMatch","Color of the current search match.")),ke=h("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},s.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),De=h("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},s.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Ne=h("editor.findMatchBorder",{light:null,dark:null,hc:f},s.a("editorFindMatchBorder","Border color of the current search match.")),Oe=h("editor.findMatchHighlightBorder",{light:null,dark:null,hc:f},s.a("findMatchHighlightBorder","Border color of the other search matches.")),Ee=h("editor.findRangeHighlightBorder",{dark:null,light:null,hc:$t(f,.4)},s.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Ie=h("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},s.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Me=h("editorHoverWidget.background",{light:ae,dark:ae,hc:ae},s.a("hoverBackground","Background color of the editor hover.")),Te=h("editorHoverWidget.foreground",{light:le,dark:le,hc:le},s.a("hoverForeground","Foreground color of the editor hover.")),Ae=h("editorHoverWidget.border",{light:de,dark:de,hc:de},s.a("hoverBorder","Border color of the editor hover.")),Re=h("editorHoverWidget.statusBarBackground",{dark:qt(Me,.2),light:Kt(Me,.05),hc:ae},s.a("statusBarBackground","Background color of the editor hover status bar.")),Pe=h("editorLink.activeForeground",{dark:"#4E94CE",light:n.a.blue,hc:n.a.cyan},s.a("activeLinkForeground","Color of active links.")),Fe=h("editorInlayHint.foreground",{dark:$t(H,.8),light:$t(H,.8),hc:H},s.a("editorInlayHintForeground","Foreground color of inline hints")),Be=h("editorInlayHint.background",{dark:$t(V,.6),light:$t(V,.3),hc:V},s.a("editorInlayHintBackground","Background color of inline hints")),je=h("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},s.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),We=h("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},s.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),Ve=new n.a(new n.c(155,185,85,.2)),He=new n.a(new n.c(255,0,0,.2)),ze=h("diffEditor.insertedTextBackground",{dark:Ve,light:Ve,hc:null},s.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Ue=h("diffEditor.removedTextBackground",{dark:He,light:He,hc:null},s.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Ke=h("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},s.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),qe=h("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},s.a("diffEditorRemovedOutline","Outline color for text that got removed.")),$e=h("diffEditor.border",{dark:null,light:null,hc:m},s.a("diffEditorBorder","Border color between the two text editors.")),Ge=h("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},s.a("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),Ze=h("list.focusBackground",{dark:null,light:null,hc:null},s.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ye=h("list.focusForeground",{dark:null,light:null,hc:null},s.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Xe=h("list.focusOutline",{dark:p,light:p,hc:f},s.a("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Qe=h("list.activeSelectionBackground",{dark:"#094771",light:"#0060C0",hc:null},s.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Je=h("list.activeSelectionForeground",{dark:n.a.white,light:n.a.white,hc:null},s.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),et=h("list.activeSelectionIconForeground",{dark:null,light:null,hc:null},s.a("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tt=h("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},s.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),it=h("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},s.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),nt=h("list.inactiveSelectionIconForeground",{dark:null,light:null,hc:null},s.a("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ot=h("list.inactiveFocusBackground",{dark:null,light:null,hc:null},s.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),rt=h("list.inactiveFocusOutline",{dark:null,light:null,hc:null},s.a("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),st=h("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},s.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),at=h("list.hoverForeground",{dark:null,light:null,hc:null},s.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),lt=h("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},s.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),dt=h("list.highlightForeground",{dark:"#18A3FF",light:"#0066BF",hc:p},s.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),ht=h("list.focusHighlightForeground",{dark:dt,light:{op:5,if:Qe,then:dt,else:"#9DDDFF"},hc:dt},s.a("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),ct=h("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:n.a.black},s.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),ut=h("listFilterWidget.outline",{dark:n.a.transparent,light:n.a.transparent,hc:"#f38518"},s.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),gt=h("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:m},s.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),pt=h("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},s.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),mt=h("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hc:null},s.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides."));var ft=h("quickInput.list.focusBackground",{dark:null,light:null,hc:null},"",void 0,s.a("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead"));const _t=h("quickInputList.focusForeground",{dark:Je,light:Je,hc:Je},s.a("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),bt=h("quickInputList.focusIconForeground",{dark:et,light:et,hc:et},s.a("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),vt=h("quickInputList.focusBackground",{dark:Gt(ft,Qe),light:Gt(ft,Qe),hc:null},s.a("quickInput.listFocusBackground","Quick picker background color for the focused item.")),Ct=h("menu.border",{dark:null,light:null,hc:m},s.a("menuBorder","Border color of menus.")),wt=h("menu.foreground",{dark:F,light:c,hc:F},s.a("menuForeground","Foreground color of menu items.")),yt=h("menu.background",{dark:P,light:P,hc:P},s.a("menuBackground","Background color of menu items.")),St=h("menu.selectionForeground",{dark:Je,light:Je,hc:Je},s.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Lt=h("menu.selectionBackground",{dark:Qe,light:Qe,hc:Qe},s.a("menuSelectionBackground","Background color of the selected menu item in menus.")),xt=h("menu.selectionBorder",{dark:null,light:null,hc:f},s.a("menuSelectionBorder","Border color of the selected menu item in menus.")),kt=h("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:m},s.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Dt=h("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hc:null},s.a("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),Nt=h("editor.snippetTabstopHighlightBackground",{dark:new n.a(new n.c(124,124,124,.3)),light:new n.a(new n.c(10,50,100,.2)),hc:new n.a(new n.c(124,124,124,.3))},s.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Ot=h("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},s.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Et=h("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},s.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),It=h("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new n.a(new n.c(10,50,100,.5)),hc:"#525252"},s.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),Mt=h("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},s.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Tt=h("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},s.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),At=h("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},s.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Rt=h("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},s.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Pt=h("minimap.errorHighlight",{dark:new n.a(new n.c(255,18,18,.7)),light:new n.a(new n.c(255,18,18,.7)),hc:new n.a(new n.c(255,50,50,1))},s.a("minimapError","Minimap marker color for errors.")),Ft=h("minimap.warningHighlight",{dark:Q,light:Q,hc:J},s.a("overviewRuleWarning","Minimap marker color for warnings.")),Bt=h("minimap.background",{dark:null,light:null,hc:null},s.a("minimapBackground","Minimap background color.")),jt=h("minimapSlider.background",{light:$t(U,.5),dark:$t(U,.5),hc:$t(U,.5)},s.a("minimapSliderBackground","Minimap slider background color.")),Wt=h("minimapSlider.hoverBackground",{light:$t(K,.5),dark:$t(K,.5),hc:$t(K,.5)},s.a("minimapSliderHoverBackground","Minimap slider background color when hovering.")),Vt=h("minimapSlider.activeBackground",{light:$t(q,.5),dark:$t(q,.5),hc:$t(q,.5)},s.a("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),Ht=h("problemsErrorIcon.foreground",{dark:Z,light:Z,hc:Z},s.a("problemsErrorIconForeground","The color used for the problems error icon.")),zt=h("problemsWarningIcon.foreground",{dark:Q,light:Q,hc:Q},s.a("problemsWarningIconForeground","The color used for the problems warning icon.")),Ut=h("problemsInfoIcon.foreground",{dark:te,light:te,hc:te},s.a("problemsInfoIconForeground","The color used for the problems info icon."));function Kt(e,t){return{op:0,value:e,factor:t}}function qt(e,t){return{op:1,value:e,factor:t}}function $t(e,t){return{op:2,value:e,factor:t}}function Gt(...e){return{op:3,values:e}}function Zt(e,t,i,n){return{op:4,value:e,background:t,factor:i,transparency:n}}function Yt(e,t){if(null!==e){if("string"==typeof e)return"#"===e[0]?n.a.fromHex(e):t.getColor(e);if(e instanceof n.a)return e;if("object"==typeof e){var i=e,o=t;switch(i.op){case 0:return null==(l=Yt(i.value,o))?void 0:l.darken(i.factor);case 1:return null==(l=Yt(i.value,o))?void 0:l.lighten(i.factor);case 2:return null==(l=Yt(i.value,o))?void 0:l.transparent(i.factor);case 3:for(const e of i.values){var s=Yt(e,o);if(s)return s}return;case 5:return Yt(o.defines(i.if)?i.then:i.else,o);case 4:var a,l=Yt(i.value,o);return l?(a=Yt(i.background,o))?(l.isDarkerThan(a)?n.a.getLighterColor(l,a,i.factor):n.a.getDarkerColor(l,a,i.factor)).transparent(i.transparency):l.transparent(i.factor*i.transparency):void 0;default:throw Object(r.b)(i)}}}}const Xt="vscode://schemas/workbench-colors";let Qt=i.a.as(a.a.JSONContribution);Qt.registerSchema(Xt,d.getColorSchema());const Jt=new t.e(()=>Qt.notifySchemaChanged(Xt),200);d.onDidChangeSchema(()=>{Jt.isScheduled()||Jt.schedule()})},"308f":function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"b",(function(){return b})),i.d(t,"e",(function(){return v})),i.d(t,"a",(function(){return C})),i.d(t,"d",(function(){return w})),i.d(t,"f",(function(){return y}));var n,o=i("fdcc"),r=i("a666"),s=i("db88"),a=i("e58e");{var l=n=n||{};function d(e){return(t,i=null,n)=>{let o,r=!1;return o=e(e=>{if(!r)return o?o.dispose():r=!0,t.call(i,e)},null,n),r&&o.dispose(),o}}function h(e,t){return p((i,n=null,o)=>e(e=>i.call(n,t(e)),null,o))}function c(e,t){return p((i,n=null,o)=>e(e=>{t(e),i.call(n,e)},null,o))}function u(e,t){return p((i,n=null,o)=>e(e=>t(e)&&i.call(n,e),null,o))}function g(e,t,i){let n=i;return h(e,e=>n=t(n,e))}function p(e){let t;const i=new b({onFirstListenerAdd(){t=e(i.fire,i)},onLastListenerRemove(){t.dispose()}});return i.event}function m(e,t,i=100,n=!1,o){let r,s=void 0,a=void 0,l=0;const d=new b({leakWarningThreshold:o,onFirstListenerAdd(){r=e(e=>{l++,s=t(s,e),n&&!a&&(d.fire(s),s=void 0),clearTimeout(a),a=setTimeout(()=>{var e=s;s=void 0,a=void 0,(!n||1<l)&&d.fire(e),l=0},i)})},onLastListenerRemove(){r.dispose()}});return d.event}function f(e,t=((e,t)=>e===t)){let i,n=!0;return u(e,e=>{var o=n||!t(e,i);return n=!1,i=e,o})}l.None=()=>r.a.None,l.once=d,l.map=h,l.forEach=c,l.filter=u,l.signal=function(e){return e},l.any=function(...e){return(t,i=null,n)=>Object(r.e)(...e.map(e=>e(e=>t.call(i,e),null,n)))},l.reduce=g,l.debounce=m,l.latch=f,l.split=function(e,t){return[l.filter(e,t),l.filter(e,e=>!t(e))]},l.buffer=function(e,t=!1,i=[]){let n=i.slice(),o=e(e=>{n?n.push(e):s.fire(e)});const r=()=>{n&&n.forEach(e=>s.fire(e)),n=null},s=new b({onFirstListenerAdd(){o=o||e(e=>s.fire(e))},onFirstListenerDidAdd(){n&&(t?setTimeout(r):r())},onLastListenerRemove(){o&&o.dispose(),o=null}});return s.event};class e{constructor(e){this.event=e}map(t){return new e(h(this.event,t))}forEach(t){return new e(c(this.event,t))}filter(t){return new e(u(this.event,t))}reduce(t,i){return new e(g(this.event,t,i))}latch(){return new e(f(this.event))}debounce(t,i=100,n=!1,o){return new e(m(this.event,t,i,n,o))}on(e,t,i){return this.event(e,t,i)}once(e,t,i){return d(this.event)(e,t,i)}}l.chain=function(t){return new e(t)},l.fromNodeEventEmitter=function(e,t,i=(e=>e)){const n=(...e)=>o.fire(i(...e)),o=new b({onFirstListenerAdd:()=>e.on(t,n),onLastListenerRemove:()=>e.removeListener(t,n)});return o.event},l.fromDOMEventEmitter=function(e,t,i=(e=>e)){const n=(...e)=>o.fire(i(...e)),o=new b({onFirstListenerAdd:()=>e.addEventListener(t,n),onLastListenerRemove:()=>e.removeEventListener(t,n)});return o.event},l.toPromise=function(e){return new Promise(t=>d(e)(t))}}class _{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=e+"_"+_._idPool++}start(e){this._stopWatch=new a.a(!0),this._listenerCount=e}stop(){var e;this._stopWatch&&(e=this._stopWatch.elapsed(),this._elapsedOverall+=e,this._invocationCount+=1,this._stopWatch=void 0)}}_._idPool=0;class b{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=void 0,this._perfMon=null!=(e=this._options)&&e._profName?new _(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,i)=>{this._listeners||(this._listeners=new s.a);var n=this._listeners.isEmpty();n&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const o=this._listeners.push(t?[e,t]:e),a=(n&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t),null==(n=this._leakageMon)?void 0:n.check(this._listeners.size));return e=Object(r.i)(()=>{a&&a(),this._disposed||(o(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))}),i instanceof r.b?i.add(e):Array.isArray(i)&&i.push(e),e}),this._event}fire(e){var t;if(this._listeners){for(var i of(this._deliveryQueue||(this._deliveryQueue=new s.a),this._listeners))this._deliveryQueue.push([i,e]);for(null!=(t=this._perfMon)&&t.start(this._deliveryQueue.size);0<this._deliveryQueue.size;){const[t,i]=this._deliveryQueue.shift();try{"function"==typeof t?t.call(void 0,i):t[0].call(t[1],i)}catch(e){Object(o.f)(e)}}null!=(t=this._perfMon)&&t.stop()}}dispose(){var e,t;this._disposed||(this._disposed=!0,null!=(e=this._listeners)&&e.clear(),null!=(e=this._deliveryQueue)&&e.clear(),null!=(t=null==(e=this._options)?void 0:e.onLastListenerRemove)&&t.call(e),null!=(t=this._leakageMon)&&t.dispose())}}class v extends b{constructor(e){super(e),this._isPaused=0,this._eventQueue=new s.a,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){var e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class C extends v{constructor(e){super(e),this._delay=null!=(e=e.delay)?e:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class w{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,n)=>e(e=>{var n=this.buffers[this.buffers.length-1];n?n.push(()=>t.call(i,e)):t.call(i,e)},void 0,n)}bufferEvents(e){var t=[];this.buffers.push(t),e=e();return this.buffers.pop(),t.forEach(e=>e()),e}}class y{constructor(){this.listening=!1,this.inputEvent=n.None,this.inputEventListener=r.a.None,this.emitter=new b({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},"30d5":function(e,t,i){},"30db":function(e,t,i){"use strict";(function(e,n){i.d(t,"b",(function(){return g})),i.d(t,"i",(function(){return b})),i.d(t,"f",(function(){return v})),i.d(t,"d",(function(){return C})),i.d(t,"g",(function(){return w})),i.d(t,"h",(function(){return y})),i.d(t,"c",(function(){return S})),i.d(t,"k",(function(){return L})),i.d(t,"j",(function(){return x})),i.d(t,"a",(function(){return k})),i.d(t,"e",(function(){return O}));let o=!1,r=!1,s=!1,a=!1,l=!1,d=!1,h=void 0,c="en",u=void 0;const g="object"==typeof self?self:"object"==typeof e?e:{};let p=void 0;if(void 0!==g.vscode&&void 0!==g.vscode.process?p=g.vscode.process:void 0!==n&&(p=n),n="string"==typeof(null==(e=null===p||void 0===p?void 0:p.versions)?void 0:e.electron)&&"renderer"===p.type,"object"!=typeof navigator||n){if("object"==typeof p){if(o="win32"===p.platform,r="darwin"===p.platform,(s="linux"===p.platform)&&!!p.env.SNAP&&p.env.SNAP_REVISION,h="en",c="en",e=p.env.VSCODE_NLS_CONFIG,e)try{var m=JSON.parse(e),f=m.availableLanguages["*"];h=m.locale,c=f||"en",m._translationsConfigFile}catch(e){}a=!0}}else u=navigator.userAgent,o=0<=u.indexOf("Windows"),r=0<=u.indexOf("Macintosh"),d=(0<=u.indexOf("Macintosh")||0<=u.indexOf("iPad")||0<=u.indexOf("iPhone"))&&!!navigator.maxTouchPoints&&0<navigator.maxTouchPoints,s=0<=u.indexOf("Linux"),l=!0,h=navigator.language,c=h;let _=0;r?_=1:o?_=3:s&&(_=2);const b=o,v=r,C=s,w=a,y=l,S=d,L=u,x=function(){if(g.setImmediate)return g.setImmediate.bind(g);if("function"==typeof g.postMessage&&!g.importScripts){let e=[],t=(g.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,o=e.length;n<o;n++){var i=e[n];if(i.id===t.data.vscodeSetImmediateId)return e.splice(n,1),void i.callback()}}),0);return i=>{var n=++t;e.push({id:n,callback:i}),g.postMessage({vscodeSetImmediateId:n},"*")}}if("function"==typeof(null===p||void 0===p?void 0:p.nextTick))return p.nextTick.bind(p);const e=Promise.resolve();return t=>e.then(t)}(),k=r||d?2:o?1:3;let D=!0,N=!1;function O(){var e;return N||(N=!0,(e=new Uint8Array(2))[0]=1,e[1]=2,e=new Uint16Array(e.buffer),D=513===e[0]),D}}).call(this,i("c8ba"),i("f28c"))},3170:function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return r}));var n=i("099d");class o{constructor(e){e=Object(n.b)(e),this._defaultValue=e,this._asciiMap=o._createAsciiMap(e),this._map=new Map}static _createAsciiMap(e){var t=new Uint8Array(256);for(let i=0;i<256;i++)t[i]=e;return t}set(e,t){t=Object(n.b)(t),0<=e&&e<256?this._asciiMap[e]=t:this._map.set(e,t)}get(e){return 0<=e&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class r{constructor(){this._actual=new o(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}}},"31df":function(e,t,i){"use strict";i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return s}));var n=i("11f7");function o(e,t={}){return t=s(t),t.textContent=e,t}function r(e,t={}){var i=s(t);return function e(t,i,o,r){let s;if(2===i.type)s=document.createTextNode(i.content||"");else if(3===i.type)s=document.createElement("b");else if(4===i.type)s=document.createElement("i");else if(7===i.type&&r)s=document.createElement("code");else if(5===i.type&&o){const e=document.createElement("a");e.href="#",o.disposables.add(n.o(e,"click",e=>{o.callback(String(i.index),e)})),s=e}else 8===i.type?s=document.createElement("br"):1===i.type&&(s=t);s&&t!==s&&t.appendChild(s),s&&Array.isArray(i.children)&&i.children.forEach(t=>{e(s,t,o,r)})}(i,function(e,t){var i={type:1,children:[]};let n=0,o=i;for(var r=[],s=new a(e);!s.eos();){let e=s.next();var d,h="\\"===e&&0!==l(s.peek(),t);h&&(e=s.next()),!h&&function(e,t){return 0!==l(e,t)}(e,t)&&e===s.peek()?(s.advance(),2===o.type&&(o=r.pop()),h=l(e,t),o=o.type===h||5===o.type&&6===h?r.pop():(d={type:h,children:[]},5===h&&(d.index=n,n++),o.children.push(d),r.push(o),d)):"\n"===e?(o=2===o.type?r.pop():o).children.push({type:8}):2!==o.type?(h={type:2,content:e},o.children.push(h),r.push(o),o=h):o.content+=e}return 2===o.type&&(o=r.pop()),i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function s(e){var t=e.inline?"span":"div";t=document.createElement(t);return e.className&&(t.className=e.className),t}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){var e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},"32a4":function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"c",(function(){return l})),i.d(t,"b",(function(){return d}));t=i("dff7");var n=i("308f"),o=i("b707"),r=i("70cb"),s=i("89cd");i=i("b9b4");const a=new class{constructor(){this._onDidChangeLanguages=new n.b,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t<i;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return[].concat(this._languages).concat(this._dynamicLanguages)}},l=(s.a.add("editor.modesRegistry",a),"plaintext"),d=new o.u(l,1);a.registerLanguage({id:l,extensions:[".txt"],aliases:[t.a("plainText.alias","Plain Text"),"text"],mimetypes:[i.a.text]}),r.a.register(d,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}},0)},"32b8":function(e,t,i){"use strict";i.d(t,"i",(function(){return c})),i.d(t,"e",(function(){return u})),i.d(t,"d",(function(){return g})),i.d(t,"g",(function(){return p})),i.d(t,"f",(function(){return m})),i.d(t,"b",(function(){return f})),i.d(t,"a",(function(){return _})),i.d(t,"c",(function(){return b})),i.d(t,"h",(function(){return v}));var n=i("c317");class o extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var o=-1!==e.indexOf(".")?"property":"argument";e=`The "${e}" ${o} ${n} of type `+t;super(e+=". Received type "+typeof i),this.code="ERR_INVALID_ARG_TYPE"}}function r(e,t){if("string"!=typeof e)throw new o(t,"string",e)}function s(e){return 47===e||92===e}function a(e){return 47===e}function l(e){return 65<=e&&e<=90||97<=e&&e<=122}function d(e,t,i,n){let o="",r=0,s=-1,a=0,l=0;for(let h=0;h<=e.length;++h){if(h<e.length)l=e.charCodeAt(h);else{if(n(l))break;l=47}if(n(l)){if(s!==h-1&&1!==a)if(2===a){if(o.length<2||2!==r||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2)){if(2<o.length){var d=o.lastIndexOf(i);r=-1===d?(o="",0):(o=o.slice(0,d)).length-1-o.lastIndexOf(i),s=h,a=0;continue}if(0!==o.length){o="",r=0,s=h,a=0;continue}}t&&(o+=0<o.length?i+"..":"..",r=2)}else 0<o.length?o+=""+i+e.slice(s+1,h):o=e.slice(s+1,h),r=h-s-1;s=h,a=0}else 46===l&&-1!==a?++a:a=-1}return o}function h(e,t){if(null===t||"object"!=typeof t)throw new o("pathObject","Object",t);var i=t.dir||t.root,n=t.base||""+(t.name||"")+(t.ext||"");return i?i===t.root?""+i+n:""+i+e+n:n}const c={resolve(...e){let t="",i="",o=!1;for(let d=e.length-1;-1<=d;d--){let g;if(0<=d){if(r(g=e[d],"path"),0===g.length)continue}else 0===t.length?g=n.a():(void 0===(g=n.b["="+t]||n.a())||g.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===g.charCodeAt(2))&&(g=t+"\\");var a=g.length;let p=0,m="",f=!1;var h=g.charCodeAt(0);if(1===a)s(h)&&(p=1,f=!0);else if(s(h))if(f=!0,s(g.charCodeAt(1))){let e=2;for(var c=e;e<a&&!s(g.charCodeAt(e));)e++;if(e<a&&e!==c){var u=g.slice(c,e);for(c=e;e<a&&s(g.charCodeAt(e));)e++;if(e<a&&e!==c){for(c=e;e<a&&!s(g.charCodeAt(e));)e++;e!==a&&e===c||(m=`\\\\${u}\\`+g.slice(c,e),p=e)}}}else p=1;else l(h)&&58===g.charCodeAt(1)&&(m=g.slice(0,2),(p=2)<a)&&s(g.charCodeAt(2))&&(f=!0,p=3);if(0<m.length)if(0<t.length){if(m.toLowerCase()!==t.toLowerCase())continue}else t=m;if(o){if(0<t.length)break}else if(i=g.slice(p)+"\\"+i,(o=f)&&0<t.length)break}return i=d(i,!o,"\\",s),o?t+"\\"+i:""+t+i||"."},normalize(e){r(e,"path");var t=e.length;if(0===t)return".";let i,n=0,o=!1;var a=e.charCodeAt(0);if(1===t)return 47===a?"\\":e;if(s(a))if(o=!0,s(e.charCodeAt(1))){let o=2;for(var h=o;o<t&&!s(e.charCodeAt(o));)o++;if(o<t&&o!==h){var c=e.slice(h,o);for(h=o;o<t&&s(e.charCodeAt(o));)o++;if(o<t&&o!==h){for(h=o;o<t&&!s(e.charCodeAt(o));)o++;if(o===t)return`\\\\${c}\\${e.slice(h)}\\`;o!==h&&(i=`\\\\${c}\\`+e.slice(h,o),n=o)}}}else n=1;else l(a)&&58===e.charCodeAt(1)&&(i=e.slice(0,2),(n=2)<t)&&s(e.charCodeAt(2))&&(o=!0,n=3);let u=n<t?d(e.slice(n),!o,"\\",s):"";return 0<(u=0!==u.length||o?u:".").length&&s(e.charCodeAt(t-1))&&(u+="\\"),void 0===i?o?"\\"+u:u:o?i+"\\"+u:""+i+u},isAbsolute(e){r(e,"path");var t,i=e.length;return 0!==i&&(s(t=e.charCodeAt(0))||2<i&&l(t)&&58===e.charCodeAt(1)&&s(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let t,i;for(let s=0;s<e.length;++s){var n=e[s];r(n,"path"),0<n.length&&(void 0===t?t=i=n:t+="\\"+n)}if(void 0===t)return".";let o=!0,a=0;var l;if("string"==typeof i&&s(i.charCodeAt(0))&&(++a,1<(l=i.length))&&s(i.charCodeAt(1))&&(++a,2<l)&&(s(i.charCodeAt(2))?++a:o=!1),o){for(;a<t.length&&s(t.charCodeAt(a));)a++;2<=a&&(t="\\"+t.slice(a))}return c.normalize(t)},relative(e,t){if(r(e,"from"),r(t,"to"),e===t)return"";var i=c.resolve(e),n=c.resolve(t);if(i===n)return"";if((e=i.toLowerCase())===(t=n.toLowerCase()))return"";let o=0;for(;o<e.length&&92===e.charCodeAt(o);)o++;let s=e.length;for(;s-1>o&&92===e.charCodeAt(s-1);)s--;i=s-o;let a=0;for(;a<t.length&&92===t.charCodeAt(a);)a++;let l=t.length;for(;l-1>a&&92===t.charCodeAt(l-1);)l--;var d=l-a,h=i<d?i:d;let u=-1,g=0;for(;g<h;g++){var p=e.charCodeAt(o+g);if(p!==t.charCodeAt(a+g))break;92===p&&(u=g)}if(g!==h){if(-1===u)return n}else{if(h<d){if(92===t.charCodeAt(a+g))return n.slice(a+g+1);if(2===g)return n.slice(a+g)}h<i&&(92===e.charCodeAt(o+g)?u=g:2===g&&(u=3)),-1===u&&(u=0)}let m="";for(g=o+u+1;g<=s;++g)g!==s&&92!==e.charCodeAt(g)||(m+=0===m.length?"..":"\\..");return a+=u,0<m.length?""+m+n.slice(a,l):(92===n.charCodeAt(a)&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"==typeof e){if(0===e.length)return"";var t=c.resolve(e);if(!(t.length<=2))if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){var i=t.charCodeAt(2);if(63!==i&&46!==i)return"\\\\?\\UNC\\"+t.slice(2)}}else if(l(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return"\\\\?\\"+t}return e},dirname(e){r(e,"path");var t=e.length;if(0===t)return".";let i=-1,n=0;var o=e.charCodeAt(0);if(1===t)return s(o)?e:".";if(s(o)){if(i=n=1,s(e.charCodeAt(1))){let o=2;for(var a=o;o<t&&!s(e.charCodeAt(o));)o++;if(o<t&&o!==a){for(a=o;o<t&&s(e.charCodeAt(o));)o++;if(o<t&&o!==a){for(a=o;o<t&&!s(e.charCodeAt(o));)o++;if(o===t)return e;o!==a&&(i=n=o+1)}}}}else l(o)&&58===e.charCodeAt(1)&&(i=2<t&&s(e.charCodeAt(2))?3:2,n=i);let d=-1,h=!0;for(let r=t-1;r>=n;--r)if(s(e.charCodeAt(r))){if(!h){d=r;break}}else h=!1;if(-1===d){if(-1===i)return".";d=i}return e.slice(0,d)},basename(e,t){void 0!==t&&r(t,"ext"),r(e,"path");let i,n=0,o=-1,a=!0;if(2<=e.length&&l(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2),void 0!==t&&0<t.length&&t.length<=e.length){if(t===e)return"";let r=t.length-1,l=-1;for(i=e.length-1;i>=n;--i){var d=e.charCodeAt(i);if(s(d)){if(!a){n=i+1;break}}else-1===l&&(a=!1,l=i+1),0<=r&&(d===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=l))}return n===o?o=l:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=n;--i)if(s(e.charCodeAt(i))){if(!a){n=i+1;break}}else-1===o&&(a=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){r(e,"path");let t=0,i=-1,n=0,o=-1,a=!0,d=0;2<=e.length&&58===e.charCodeAt(1)&&l(e.charCodeAt(0))&&(t=n=2);for(let r=e.length-1;r>=t;--r){var h=e.charCodeAt(r);if(s(h)){if(a)continue;n=r+1;break}-1===o&&(a=!1,o=r+1),46===h?-1===i?i=r:1!==d&&(d=1):-1!==i&&(d=-1)}return-1===i||-1===o||0===d||1===d&&i===o-1&&i===n+1?"":e.slice(i,o)},format:h.bind(null,"\\"),parse(e){r(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0!==e.length){var i=e.length;let o=0,r=e.charCodeAt(0);if(1===i)s(r)?t.root=t.dir=e:t.base=t.name=e;else{if(s(r)){if(o=1,s(e.charCodeAt(1))){let t=2;for(var n=t;t<i&&!s(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&s(e.charCodeAt(t));)t++;if(t<i&&t!==n){for(n=t;t<i&&!s(e.charCodeAt(t));)t++;t===i?o=t:t!==n&&(o=t+1)}}}}else if(l(r)&&58===e.charCodeAt(1)){if(i<=2)return t.root=t.dir=e,t;if(o=2,s(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;o=3}}0<o&&(t.root=e.slice(0,o));let a=-1,d=o,h=-1,c=!0,u=e.length-1,g=0;for(;u>=o;--u){if(s(r=e.charCodeAt(u))){if(c)continue;d=u+1;break}-1===h&&(c=!1,h=u+1),46===r?-1===a?a=u:1!==g&&(g=1):-1!==a&&(g=-1)}-1!==h&&(-1===a||0===g||1===g&&a===h-1&&a===d+1?t.base=t.name=e.slice(d,h):(t.name=e.slice(d,a),t.base=e.slice(d,h),t.ext=e.slice(a,h))),t.dir=0<d&&d!==o?e.slice(0,d-1):t.root}}return t},sep:"\\",delimiter:";",win32:null,posix:null},u={resolve(...e){let t="",i=!1;for(let s=e.length-1;-1<=s&&!i;s--){var o=0<=s?e[s]:n.a();r(o,"path"),0!==o.length&&(t=o+"/"+t,i=47===o.charCodeAt(0))}return t=d(t,!i,"/",a),i?"/"+t:0<t.length?t:"."},normalize(e){var t,i;return r(e,"path"),0===e.length?".":(t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1),0===(e=d(e,!t,"/",a)).length?t?"/":i?"./":".":(i&&(e+="/"),t?"/"+e:e))},isAbsolute(e){return r(e,"path"),0<e.length&&47===e.charCodeAt(0)},join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){var i=e[n];r(i,"path"),0<i.length&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":u.normalize(t)},relative(e,t){if(r(e,"from"),r(t,"to"),e===t)return"";if((e=u.resolve(e))===(t=u.resolve(t)))return"";var i=e.length,n=i-1,o=t.length-1,s=n<o?n:o;let a=-1,l=0;for(;l<s;l++){var d=e.charCodeAt(1+l);if(d!==t.charCodeAt(1+l))break;47===d&&(a=l)}if(l===s)if(s<o){if(47===t.charCodeAt(1+l))return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else s<n&&(47===e.charCodeAt(1+l)?a=l:0===l&&(a=0));let h="";for(l=1+a+1;l<=i;++l)l!==i&&47!==e.charCodeAt(l)||(h+=0===h.length?"..":"/..");return""+h+t.slice(1+a)},toNamespacedPath(e){return e},dirname(e){if(r(e,"path"),0===e.length)return".";var t=47===e.charCodeAt(0);let i=-1,n=!0;for(let o=e.length-1;1<=o;--o)if(47===e.charCodeAt(o)){if(!n){i=o;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&r(t,"ext"),r(e,"path");let i,n=0,o=-1,s=!0;if(void 0!==t&&0<t.length&&t.length<=e.length){if(t===e)return"";let r=t.length-1,l=-1;for(i=e.length-1;0<=i;--i){var a=e.charCodeAt(i);if(47===a){if(!s){n=i+1;break}}else-1===l&&(s=!1,l=i+1),0<=r&&(a===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=l))}return n===o?o=l:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;0<=i;--i)if(47===e.charCodeAt(i)){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){r(e,"path");let t=-1,i=0,n=-1,o=!0,s=0;for(let r=e.length-1;0<=r;--r){var a=e.charCodeAt(r);if(47===a){if(o)continue;i=r+1;break}-1===n&&(o=!1,n=r+1),46===a?-1===t?t=r:1!==s&&(s=1):-1!==t&&(s=-1)}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===i+1?"":e.slice(t,n)},format:h.bind(null,"/"),parse(e){r(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0!==e.length){var i=47===e.charCodeAt(0);let o,r=(o=i?(t.root="/",1):0,-1),s=0,a=-1,l=!0,d=e.length-1,h=0;for(;d>=o;--d){var n=e.charCodeAt(d);if(47===n){if(l)continue;s=d+1;break}-1===a&&(l=!1,a=d+1),46===n?-1===r?r=d:1!==h&&(h=1):-1!==r&&(h=-1)}if(-1!==a){const n=0===s&&i?1:s;-1===r||0===h||1===h&&r===a-1&&r===s+1?t.base=t.name=e.slice(n,a):(t.name=e.slice(n,r),t.base=e.slice(n,a),t.ext=e.slice(r,a))}0<s?t.dir=e.slice(0,s-1):i&&(t.dir="/")}return t},sep:"/",delimiter:":",win32:null,posix:null},g=(u.win32=c.win32=c,u.posix=c.posix=u,("win32"===n.c?c:u).normalize),p=("win32"===n.c?c:u).resolve,m=("win32"===n.c?c:u).relative,f=("win32"===n.c?c:u).dirname,_=("win32"===n.c?c:u).basename,b=("win32"===n.c?c:u).extname,v=("win32"===n.c?c:u).sep},"32cc":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return i.e("chunk-2d0c0a09").then(i.bind(null,"431e"))}})},"32f2":function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return r}));class n{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class o{constructor(e,t,i){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.color=i,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class r{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(o.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0)}resolveColorZones(){var e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),o=i/Math.floor(this._outerHeight),r=Math.floor(4*this._pixelRatio/2),s=[];for(let h=0,c=this._zones.length;h<c;h++){var a=this._zones[h];if(!e){var l=a.getColorZones();if(l){s.push(l);continue}}l=Math.floor(o*this._getVerticalOffsetForLine(a.startLineNumber));var d=Math.floor(o*(this._getVerticalOffsetForLine(a.endLineNumber)+t));let c=Math.floor((l+d)/2),u=d-c;u<r&&(u=r),(c=c-u<0?u:c)+u>i&&(c=i-u),d=a.color;let g=this._color2Id[d];g||(g=++this._lastAssignedId,this._color2Id[d]=g,this._id2Color[g]=d),d=new n(c-u,c+u,g),a.setColorZone(d),s.push(d)}return this._colorZonesInvalid=!1,s.sort(n.compare),s}}},3323:function(e,t,i){"use strict";i.r(t),i.d(t,"StandaloneGotoLineQuickAccessProvider",(function(){return m})),i.d(t,"GotoLineAction",(function(){return f}));var n=i("dff7"),o=i("a666"),r=(t=i("1fe0"),i("b055"));class s extends t.a{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){var t=Object(n.a)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,o.a.None}provideWithTextEditor(e,t,i){const n=e.editor;var a=new o.b;a.add(t.onDidAccept(i=>{var[o]=t.selectedItems;o&&this.isValidLineNumber(n,o.lineNumber)&&(this.gotoLocation(e,{range:this.toRange(o.lineNumber,o.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide())}));const l=()=>{var e=this.parsePosition(n,t.value.trim().substr(s.PREFIX.length)),i=this.getPickLabel(n,e.lineNumber,e.column);t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,this.isValidLineNumber(n,e.lineNumber)?(i=this.toRange(e.lineNumber,e.column),n.revealRangeInCenter(i,0),this.addDecorations(n,i)):this.clearDecorations(n)},d=(l(),a.add(t.onDidChangeValue(()=>l())),Object(r.a)(n));return d&&2===d.getOptions().get(59).renderType&&(d.updateOptions({lineNumbers:"on"}),a.add(Object(o.i)(()=>d.updateOptions({lineNumbers:"relative"})))),a}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){return t=t.split(/,|:|#/).map(e=>parseInt(e,10)).filter(e=>!isNaN(e)),e=this.lineCount(e)+1,{lineNumber:0<t[0]?t[0]:e+t[0],column:t[1]}}getPickLabel(e,t,i){return this.isValidLineNumber(e,t)?this.isValidColumn(e,t,i)?Object(n.a)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):Object(n.a)("gotoLineLabel","Go to line {0}.",t):(i=e.getPosition()||{lineNumber:1,column:1},1<(t=this.lineCount(e))?Object(n.a)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",i.lineNumber,i.column,t):Object(n.a)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",i.lineNumber,i.column))}isValidLineNumber(e,t){return!(!t||"number"!=typeof t)&&0<t&&t<=this.lineCount(e)}isValidColumn(e,t,i){return!(!i||"number"!=typeof i||!(e=this.getModel(e)))&&e.validatePosition(e={lineNumber:t,column:i}).equals(e)}lineCount(e){return null!=(e=null==(e=this.getModel(e))?void 0:e.getLineCount())?e:0}}s.PREFIX=":";t=i("89cd");var a=i("2f1e"),l=i("5717"),d=i("ef8e9"),h=i("03d9"),c=i("308f"),u=i("b2cc"),g=i("c101"),p=i("66bd");let m=class extends s{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=c.c.None}get activeTextEditorControl(){return Object(d.o)(this.editorService.getFocusedCodeEditor())}};m=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}([function(e,t){return function(i,n){t(i,n,e)}}(0,l.a)],m),t.a.as(a.b.Quickaccess).registerQuickAccessProvider({ctor:m,prefix:m.PREFIX,helpEntries:[{description:h.b.gotoLineActionLabel,needsEditor:!0}]});class f extends u.b{constructor(){super({id:"editor.action.gotoLine",label:h.b.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:g.a.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(p.a).quickAccess.show(m.PREFIX)}}Object(u.j)(f)},"333a":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return i.e("chunk-2d0e6553").then(i.bind(null,"97fe"))}})},3352:function(e,t,i){"use strict";i.d(t,"d",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"e",(function(){return s})),i.d(t,"b",(function(){return a})),i.d(t,"f",(function(){return l})),i.d(t,"a",(function(){return d}));var n,o,r=i("aa3d");(t=n=n||{})[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=4]="Right",t[t.Full=7]="Full",(i=o=o||{})[i.Inline=1]="Inline",i[i.Gutter=2]="Gutter";class s{constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&Object(r.d)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class a{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class l{constructor(e,t,i,n,o,r){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=o,this._isTracked=r}}class d{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}},"338e":function(e,t,i){"use strict";i.d(t,"f",(function(){return n})),i.d(t,"b",(function(){return o})),i.d(t,"g",(function(){return r})),i.d(t,"h",(function(){return s})),i.d(t,"i",(function(){return a})),i.d(t,"e",(function(){return l})),i.d(t,"d",(function(){return d})),i.d(t,"c",(function(){return h})),i.d(t,"a",(function(){return c}));class n{constructor(){this.changeType=1}}class o{constructor(e,t,i,n,o){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=o}static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",n=0;for(const o of t)i+=e.substring(n,o.column-1),n=o.column-1,i+=o.options.content;return i+e.substring(n)}static fromDecorations(e){var t=[];for(const i of e)i.options.before&&0<i.options.before.content.length&&t.push(new o(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&0<i.options.after.content.length&&t.push(new o(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber),t}}class r{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class s{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class l{constructor(){this.changeType=5}}class d{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t<i;t++)if(this.changes[t].changeType===e)return!0;return!1}static merge(e,t){var i=[].concat(e.changes).concat(t.changes),n=t.versionId,o=e.isUndoing||t.isUndoing;e=e.isRedoing||t.isRedoing;return new d(i,n,o,e)}}class h{constructor(e){this.changes=e}}class c{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){var t=d.merge(this.rawContentChangedEvent,e.rawContentChangedEvent);e=c._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new c(t,e)}static _mergeChangeEvents(e,t){return{changes:[].concat(e.changes).concat(t.changes),eol:t.eol,versionId:t.versionId,isUndoing:e.isUndoing||t.isUndoing,isRedoing:e.isRedoing||t.isRedoing,isFlush:e.isFlush||t.isFlush}}}},"33f9":function(e,t,i){var n;self.MonacoEnvironment={globalAPI:!(n={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"}),getWorkerUrl:function(e,t){var o=i.p;o=(o?o.replace(/\/$/,"")+"/":"")+n[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(o)){var r=String(window.location);r=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(o.substring(0,r.length)!==r)return/^(\/\/)/.test(o)&&(o=window.location.protocol+o),r=new Blob(["/*"+t+'*/importScripts("'+o+'");'],{type:"application/javascript"}),URL.createObjectURL(r)}return o}},i("4816"),i("3765"),i("6e4e"),i("2935"),i("c36f"),i("0b112"),i("77a4"),i("db2d"),i("9f4d"),i("7c3e"),i("d585"),i("e516"),i("fd11"),i("891c"),i("a106"),i("7605"),i("6df4"),i("7082"),i("958f"),i("3323"),i("f187"),i("1f84"),i("aee8"),i("a222"),i("1af3"),i("bc61"),i("6e62"),i("2e66"),i("8090"),i("747f"),i("7eb7"),i("d844"),i("f17c"),i("5b02"),i("2e4b"),i("6c8c"),i("8452"),i("e2c2"),i("43ad"),i("d741"),i("b574"),i("7a9e"),i("bd50"),i("93ba"),i("6daf"),i("87a3"),i("23ec"),i("5ed2"),i("b3b2"),i("2d47"),e.exports=i("f33e"),i("09d1"),i("db7a"),i("38e9"),i("962f"),i("d1c2"),i("91d3"),i("0292"),i("8eb6"),i("82a1"),i("a771"),i("13e8"),i("f41d"),i("f570"),i("f5ba"),i("4af6"),i("a8f5"),i("9d48"),i("23f2"),i("2dec"),i("d282"),i("f9ad"),i("77db"),i("8457"),i("7367"),i("cd01"),i("93b9"),i("7257"),i("a79b"),i("daaa"),i("0ef9"),i("16f5"),i("38f6"),i("1aa7"),i("66f1"),i("2e5e"),i("4058"),i("6640"),i("fdc0"),i("c5834"),i("8d5c"),i("ea53"),i("abca"),i("b12b"),i("a0a2"),i("1fa1"),i("cb70"),i("2652"),i("8f6a"),i("c286"),i("88b6"),i("4da7"),i("32cc"),i("6a38"),i("4220"),i("a48d"),i("c8aa"),i("8a3f"),i("5d08"),i("19bd"),i("1bd1"),i("c663"),i("73d3"),i("333a"),i("199a"),i("d65c"),i("e8cb"),i("c3d4"),i("b9f8"),i("2d19"),i("d2ce"),i("0542"),i("9f5f"),i("10eb"),i("cf78"),i("9eb0"),i("0447"),i("1389")},3502:function(e,t,i){"use strict";var n=i("33f9");i.o(n,"Emitter")&&i.d(t,"Emitter",(function(){return n.Emitter})),i.o(n,"Range")&&i.d(t,"Range",(function(){return n.Range})),i.o(n,"Uri")&&i.d(t,"Uri",(function(){return n.Uri})),i.o(n,"editor")&&i.d(t,"editor",(function(){return n.editor})),i.o(n,"languages")&&i.d(t,"languages",(function(){return n.languages}))},"351f":function(e,t,i){"use strict";i.d(t,"a",(function(){return g})),i("b329");var n=i("dff7"),o=i("5fe7"),r=i("a666"),s=i("3813"),a=i("6a89"),l=(t=i("b2cc"),i("4fc3")),d=i("b7d0"),h=i("303e"),c=i("9c41"),u=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});let g=class e{constructor(t,i){this._messageWidget=new r.d,this._messageListeners=new r.b,this._editor=t,this._visible=e.MESSAGE_VISIBLE.bindTo(i),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(t){return t.getContribution(e.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;Object(s.a)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new p(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new o.g(()=>this.closeMessage(),3e3)),this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new a.a(t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(p.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(n.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};g.ID="editor.contrib.messageController",g.MESSAGE_VISIBLE=new l.c("messageVisible",!1,n.a("messageVisible","Whether the editor is currently showing an inline message")),g=i([u(1,l.b)],g),i=t.c.bindToContribution(g.get),Object(t.k)(new i({id:"leaveEditorMessage",precondition:g.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class p{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),e=document.createElement("div"),e.classList.add("anchor","top"),this._domNode.appendChild(e),t=document.createElement("div"),t.classList.add("message"),t.textContent=n,this._domNode.appendChild(t),i=document.createElement("div"),i.classList.add("anchor","below"),this._domNode.appendChild(i),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const i=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",i)};return t=setTimeout(i,110),e.getDomNode().addEventListener("animationend",i),e.getDomNode().classList.add("fadeOut"),{dispose:i}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}Object(t.l)(g.ID,g),Object(d.f)((e,t)=>{var i=e.getColor(h.qb),n=(i&&(n=e.type===c.a.HIGH_CONTRAST?2:1,t.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.below { border-top-color: ${i}; }`),t.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.top { border-bottom-color: ${i}; }`),t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${n}px solid ${i}; }`)),e.getColor(h.pb));n&&t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${n}; }`),i=e.getColor(h.rb);i&&t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${i}; }`)})},3742:function(e,t,i){"use strict";function n(e){return!e||"string"!=typeof e||0===e.trim().length}i.d(t,"C",(function(){return n})),i.d(t,"v",(function(){return r})),i.d(t,"s",(function(){return s})),i.d(t,"t",(function(){return a})),i.d(t,"U",(function(){return l})),i.d(t,"J",(function(){return d})),i.d(t,"O",(function(){return h})),i.d(t,"p",(function(){return c})),i.d(t,"T",(function(){return u})),i.d(t,"q",(function(){return g})),i.d(t,"N",(function(){return p})),i.d(t,"M",(function(){return m})),i.d(t,"Q",(function(){return f})),i.d(t,"u",(function(){return _})),i.d(t,"x",(function(){return b})),i.d(t,"I",(function(){return v})),i.d(t,"f",(function(){return C})),i.d(t,"h",(function(){return w})),i.d(t,"g",(function(){return y})),i.d(t,"i",(function(){return S})),i.d(t,"G",(function(){return L})),i.d(t,"H",(function(){return x})),i.d(t,"r",(function(){return D})),i.d(t,"R",(function(){return O})),i.d(t,"d",(function(){return E})),i.d(t,"e",(function(){return I})),i.d(t,"E",(function(){return M})),i.d(t,"F",(function(){return T})),i.d(t,"j",(function(){return A})),i.d(t,"z",(function(){return R})),i.d(t,"K",(function(){return F})),i.d(t,"L",(function(){return B})),i.d(t,"m",(function(){return W})),i.d(t,"k",(function(){return H})),i.d(t,"A",(function(){return U})),i.d(t,"a",(function(){return K})),i.d(t,"n",(function(){return q})),i.d(t,"l",(function(){return $})),i.d(t,"D",(function(){return G})),i.d(t,"B",(function(){return Z})),i.d(t,"b",(function(){return Y})),i.d(t,"S",(function(){return X})),i.d(t,"o",(function(){return Q})),i.d(t,"P",(function(){return J})),i.d(t,"w",(function(){return ee})),i.d(t,"c",(function(){return te})),i.d(t,"y",(function(){return ne}));const o=/{(\d+)}/g;function r(e,...t){return 0===t.length?e:e.replace(o,(function(e,i){return i=parseInt(i,10),isNaN(i)||i<0||i>=t.length?e:t[i]}))}function s(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return e}}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t=" "){return h(d(e,t),t)}function d(e,t){if(!e||!t)return e;var i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function h(e,t){if(!e||!t)return e;var i=t.length,n=e.length;if(0===i||0===n)return e;let o,r=n;for(;;){if(-1===(o=e.lastIndexOf(t,r-1))||o+i!==r)break;if(0===o)return"";r=o}return e.substring(0,r)}function c(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function u(e){return e.replace(/\*/g,"")}function g(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function p(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function m(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function f(e){return e.split(/\r\n|\r|\n/)}function _(e){for(let i=0,n=e.length;i<n;i++){var t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function b(e,t=0,i=e.length){for(let o=t;o<i;o++){var n=e.charCodeAt(o);if(32!==n&&9!==n)return e.substring(t,o)}return e.substring(t,i)}function v(e,t=e.length-1){for(let n=t;0<=n;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n}return-1}function C(e,t){return e<t?-1:t<e?1:0}function w(e,t,i=0,n=e.length,o=0,r=t.length){for(;i<n&&o<r;i++,o++){var s=e.charCodeAt(i),a=t.charCodeAt(o);if(s<a)return-1;if(a<s)return 1}var l=n-i,d=r-o;return l<d?-1:d<l?1:0}function y(e,t){return S(e,t,0,e.length,0,t.length)}function S(e,t,i=0,n=e.length,o=0,r=t.length){for(;i<n&&o<r;i++,o++){var s=e.charCodeAt(i),a=t.charCodeAt(o);if(s!==a){var l=s-a;if(!(32==l&&x(a)||-32==l&&x(s)))return L(s)&&L(a)?l:w(e.toLowerCase(),t.toLowerCase(),i,n,o,r)}}var d=n-i,h=r-o;return d<h?-1:h<d?1:0}function L(e){return 97<=e&&e<=122}function x(e){return 65<=e&&e<=90}function k(e){return L(e)||x(e)}function D(e,t){return e.length===t.length&&N(e,t)}function N(e,t,i=e.length){for(let s=0;s<i;s++){var n=e.charCodeAt(s),o=t.charCodeAt(s);if(n!==o)if(k(n)&&k(o)){var r=Math.abs(n-o);if(0!==r&&32!==r)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(o).toLowerCase())return!1}return!0}function O(e,t){var i=t.length;return!(t.length>e.length)&&N(e,t,i)}function E(e,t){let i,n=Math.min(e.length,t.length);for(i=0;i<n;i++)if(e.charCodeAt(i)!==t.charCodeAt(i))return i;return n}function I(e,t){let i,n=Math.min(e.length,t.length);var o=e.length-1,r=t.length-1;for(i=0;i<n;i++)if(e.charCodeAt(o-i)!==t.charCodeAt(r-i))return i;return n}function M(e){return 55296<=e&&e<=56319}function T(e){return 56320<=e&&e<=57343}function A(e,t){return t-56320+(e-55296<<10)+65536}function R(e,t,i){var n=e.charCodeAt(i);return M(n)&&i+1<t&&(t=e.charCodeAt(i+1),T(t))?A(n,t):n}function P(e,t){var i=e.charCodeAt(t-1);return T(i)&&1<t&&(e=e.charCodeAt(t-2),M(e))?A(e,i):i}function F(e,t){var i=ie.getInstance(),n=t,o=e.length,r=R(e,o,t);t+=65536<=r?2:1;let s=i.getGraphemeBreakType(r);for(;t<o;){var a=R(e,o,t),l=i.getGraphemeBreakType(a);if(te(s,l))break;t+=65536<=a?2:1,s=l}return t-n}function B(e,t){var i=ie.getInstance(),n=t,o=P(e,t);t-=65536<=o?2:1;let r=i.getGraphemeBreakType(o);for(;0<t;){var s=P(e,t),a=i.getGraphemeBreakType(s);if(te(a,r))break;t-=65536<=s?2:1,r=a}return n-t}const j=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function W(e){return j.test(e)}const V=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function H(e){return V.test(e)}const z=/^[\t\n\r\x20-\x7E]*$/;function U(e){return z.test(e)}const K=/[\u2028\u2029]/;function q(e){return K.test(e)}function $(e){for(let t=0,i=e.length;t<i;t++)if(G(e.charCodeAt(t)))return!0;return!1}function G(e){return 11904<=(e=+e)&&e<=55215||63744<=e&&e<=64255||65281<=e&&e<=65374}function Z(e){return 127462<=e&&e<=127487||8986===e||8987===e||9200===e||9203===e||9728<=e&&e<=10175||11088===e||11093===e||127744<=e&&e<=128591||128640<=e&&e<=128764||128992<=e&&e<=129003||129280<=e&&e<=129535||129648<=e&&e<=129750}const Y=String.fromCharCode(65279);function X(e){return!!(e&&0<e.length&&65279===e.charCodeAt(0))}function Q(e,t=!1){return!!e&&(e=t?e.replace(/\\./g,""):e).toLowerCase()!==e}function J(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function ee(e){return ie.getInstance().getGraphemeBreakType(e)}function te(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&(11!==e&&9!==e||9!==t&&10!==t)&&(12!==e&&10!==e||10!==t)&&5!==t&&13!==t&&7!==t&&1!==e&&!(13===e&&14===t||6===e&&6===t))}class ie{constructor(){this._data=JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}static getInstance(){return ie._INSTANCE||(ie._INSTANCE=new ie),ie._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(!(e<127)){var t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(e<t[3*n])n*=2;else{if(!(e>t[3*n+1]))return t[3*n+2];n=2*n+1}}return 0}}function ne(e,t){var i;return 0===e?0:void 0!==(i=function(e,t){let i=P(t,e);for(e-=oe(i);function(e){return 127995<=e&&e<=127999}(i)||65039===i||8419===i;){if(0===e)return;i=P(t,e),e-=oe(i)}var n;if(Z(i))return 0<=e&&8205===(n=P(t,e))&&(e-=oe(n)),e}(e,t))?i:e-oe(P(t,e))}function oe(e){return 65536<=e?2:1}ie._INSTANCE=null},3765:function(e,t,i){"use strict";i.r(t),i.d(t,"SelectionAnchorSet",(function(){return u})),i("1754");t=i("b2cc");var n=i("dff7"),o=i("c101"),r=i("8025"),s=i("fe45"),a=i("4fc3"),l=i("78bc"),d=i("3813"),h=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}}),c=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const u=new a.c("selectionAnchorSet",!1);let g=class e{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=u.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(t){return t.getContribution(e.ID)}setSelectionAnchor(){var e,t;this.editor.hasModel()&&(e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],t=this.editor.deltaDecorations(t,[{range:r.a.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:(new l.a).appendText(Object(n.a)("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]),this.decorationId=t[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Object(d.a)(Object(n.a)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column)))}goToSelectionAnchor(){var e;this.editor.hasModel()&&this.decorationId&&(e=this.editor.getModel().getDecorationRange(this.decorationId))&&this.editor.setPosition(e.getStartPosition())}selectFromAnchorToCursor(){var e,t;this.editor.hasModel()&&this.decorationId&&(e=this.editor.getModel().getDecorationRange(this.decorationId))&&(t=this.editor.getPosition(),this.editor.setSelection(r.a.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor())}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};g.ID="editor.contrib.selectionAnchorController",g=i([h(1,a.b)],g);class p extends t.b{constructor(){super({id:"editor.action.setSelectionAnchor",label:Object(n.a)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:o.a.editorTextFocus,primary:Object(s.a)(2089,2080),weight:100}})}run(e,t){return c(this,void 0,void 0,(function*(){g.get(t).setSelectionAnchor()}))}}class m extends t.b{constructor(){super({id:"editor.action.goToSelectionAnchor",label:Object(n.a)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:u})}run(e,t){return c(this,void 0,void 0,(function*(){g.get(t).goToSelectionAnchor()}))}}class f extends t.b{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:Object(n.a)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:u,kbOpts:{kbExpr:o.a.editorTextFocus,primary:Object(s.a)(2089,2089),weight:100}})}run(e,t){return c(this,void 0,void 0,(function*(){g.get(t).selectFromAnchorToCursor()}))}}class _ extends t.b{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:Object(n.a)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:u,kbOpts:{kbExpr:o.a.editorTextFocus,primary:9,weight:100}})}run(e,t){return c(this,void 0,void 0,(function*(){g.get(t).cancelSelectionAnchor()}))}}Object(t.l)(g.ID,g),Object(t.j)(p),Object(t.j)(m),Object(t.j)(f),Object(t.j)(_)},3803:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return r})),i.d(t,"d",(function(){return s})),t=i("0a0f");const n=Object(t.c)("undoRedoService");class o{constructor(e,t){this.resource=e,this.elements=t}}class r{constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}r._ID=0,r.None=new r;class s{constructor(){this.id=s._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}s._ID=0,s.None=new s},3813:function(e,t,i){"use strict";i.d(t,"b",(function(){return c})),i.d(t,"a",(function(){return u})),i.d(t,"c",(function(){return g}));var n=i("11f7"),o=i("30db");i("5029");const r=2e4;let s,a,l,d,h;function c(e){(s=document.createElement("div")).className="monaco-aria-container";var t=()=>{var e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};a=t(),l=t(),t=()=>{var e=document.createElement("div");return e.className="monaco-status",e.setAttribute("role","complementary"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};d=t(),h=t(),e.appendChild(s)}function u(e){s&&(a.textContent!==e?(n.t(l),p(a,e)):(n.t(a),p(l,e)))}function g(e){s&&(o.f?u(e):d.textContent!==e?(n.t(h),p(d,e)):(n.t(d),p(h,e)))}function p(e,t){n.t(e),t.length>r&&(t=t.substr(0,r)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},"38a2b":function(e,t,i){},"38e9":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return i.e("chunk-2d0ba136").then(i.bind(null,"3652"))}})},"38f6":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return i.e("chunk-2d0dda4e").then(i.bind(null,"81ed"))}})},"3a19":function(e,t,i){},"3bfb":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i("11f7"),o=(t=i("ceb8"),i("aa3d")),r=i("3742");i("54f2");const s={badgeBackground:t.a.fromHex("#4D4D4D"),badgeForeground:t.a.fromHex("#FFFFFF")};class a{constructor(e,t){this.count=0,this.options=t||Object.create(null),Object(o.f)(this.options,s,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(n.q)(e,Object(n.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=Object(r.v)(this.countFormat,this.count),this.element.title=Object(r.v)(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){var e,t,i;this.element&&(e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",i=this.badgeBorder?this.badgeBorder.toString():"",this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i)}}},"3d378":function(e,t,i){"use strict";i.d(t,"d",(function(){return s})),i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return l})),i.d(t,"a",(function(){return d}));var n=i("32b8"),o=i("30db"),r=i("3742");function s(e){return-1===e.indexOf("/")&&(e=e.replace(/[\\/]/g,n.e.sep)),/^[a-zA-Z]:(\/|$)/.test(e)?"/"+e:e}function a(e,t,i,o=n.h){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(i){if(!Object(r.R)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===o&&i--,e.charAt(i)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)}function l(e){var t=Object(n.d)(e);return o.i?!(3<e.length)&&d(t)&&(2===e.length||92===t.charCodeAt(2)):t===n.e.sep}function d(e){var t;return!!o.i&&(65<=(t=e.charCodeAt(0))&&t<=90||97<=t&&t<=122)&&58===e.charCodeAt(1)}},40355:function(e,t,i){"use strict";i.d(t,"c",(function(){return u})),i.d(t,"b",(function(){return g})),i.d(t,"a",(function(){return m}));var n,o,r=i("3742"),s=i("6d8e");class a{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}class l{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++)if(46===this._value.charCodeAt(this._to)){if(!e)break;this._from++}else e=!1;return this}cmp(e){return(this._caseSensitive?Object(r.h):Object(r.i))(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class d{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return(this._caseSensitive?Object(r.h):Object(r.i))(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class h{constructor(e){this._ignorePathCasing=e,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new d(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value())&&this._states.push(3),this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return Object(r.g)(e,this._value.scheme);if(2===this._states[this._stateIdx])return Object(r.g)(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return Object(r.f)(e,this._value.query);if(5===this._states[this._stateIdx])return Object(r.f)(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}class c{isEmpty(){return!(this.left||this.mid||this.right||this.value)}}class u{constructor(e){this._iter=e}static forUris(e=(()=>!1)){return new u(new h(e))}static forStrings(){return new u(new a)}static forConfigKeys(){return new u(new l)}clear(){this._root=void 0}set(e,t){var i=this._iter.reset(e);let n;for(this._root||(this._root=new c,this._root.segment=i.value()),n=this._root;;){var o=i.cmp(n.segment);if(0<o)n.left||(n.left=new c,n.left.segment=i.value()),n=n.left;else if(o<0)n.right||(n.right=new c,n.right.segment=i.value()),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new c,n.mid.segment=i.value()),n=n.mid}}var r=n.value;return n.value=t,n.key=e,r}get(e){return null==(e=this._getNode(e))?void 0:e.value}_getNode(e){var t=this._iter.reset(e);let i=this._root;for(;i;){var n=t.cmp(i.segment);if(0<n)i=i.left;else if(n<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){return e=this._getNode(e),!(void 0===(null==e?void 0:e.value)&&void 0===(null==e?void 0:e.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i=this._iter.reset(e),n=[];let o=this._root;for(;o;){var r=i.cmp(o.segment);if(0<r)n.push([1,o]),o=o.left;else if(r<0)n.push([-1,o]),o=o.right;else{if(!i.hasNext()){for(t?(o.left=void 0,o.mid=void 0,o.right=void 0):o.value=void 0;0<n.length&&o.isEmpty();){var[s,a]=n.pop();switch(s){case 1:a.left=void 0;break;case 0:a.mid=void 0;break;case-1:a.right=void 0}o=a}break}i.next(),n.push([0,o]),o=o.mid}}}findSubstr(e){var t=this._iter.reset(e);let i=this._root,n=void 0;for(;i;){var o=t.cmp(i.segment);if(0<o)i=i.left;else if(o<0)i=i.right;else{if(!t.hasNext())break;t.next(),n=i.value||n,i=i.mid}}return i&&i.value||n}findSuperstr(e){var t=this._iter.reset(e);let i=this._root;for(;i;){var n=t.cmp(i.segment);if(0<n)i=i.left;else if(n<0)i=i.right;else{if(!t.hasNext())return i.mid?this._entries(i.mid):void 0;t.next(),i=i.mid}}}forEach(e){for(var[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(e){if(e)for(var t=[e];0<t.length;){const e=t.pop();e&&(e.value&&(yield[e.key,e.value]),e.left&&t.push(e.left),e.mid&&t.push(e.mid),e.right)&&t.push(e.right)}}}class g{constructor(e,t){this[n]="ResourceMap",e instanceof g?(this.map=new Map(e.map),this.toKey=null!=t?t:g.defaultToKey):(this.map=new Map,this.toKey=null!=e?e:g.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),t),this}get(e){return this.map.get(this.toKey(e))}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){for(var[i,n]of(void 0!==t&&(e=e.bind(t)),this.map))e(n,s.a.parse(i),this)}values(){return this.map.values()}*keys(){for(var e of this.map.keys())yield s.a.parse(e)}*entries(){for(var e of this.map.entries())yield[s.a.parse(e[0]),e[1]]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(var e of this.map)yield[s.a.parse(e[0]),e[1]]}}g.defaultToKey=e=>e.toString();class p{constructor(){this[o]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null==(e=this._head)?void 0:e.value}get last(){var e;return null==(e=this._tail)?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){if(e=this._map.get(e),e)return 0!==t&&this.touch(e,t),e.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;default:this.addItemLast(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(this._head||this._tail){var e;if(this._head&&this._tail)return e=this._head,this._map.delete(e.key),this.removeItem(e),this._size--,e.value;throw new Error("Invalid list")}}forEach(e,t){var i=this._state;let n=this._head;for(;n;){if((t?e.bind(t):e)(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");var n;return i?(n={value:i.key,done:!1},i=i.next,n):{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");var n;return i?(n={value:i.value,done:!1},i=i.next,n):{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");var n;return i?(n={value:[i.key,i.value],done:!1},i=i.next,n):{value:void 0,done:!0}}};return n}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(!(e>=this.size))if(0===e)this.clear();else{let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");(t.previous=i).next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");var i,n;1!==t&&2!==t||(1===t?e!==this._head&&(n=e.next,i=e.previous,e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i).next=n,e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++):2===t&&e!==this._tail&&(i=e.next,n=e.previous,e===this._head?(i.previous=void 0,this._head=i):(i.previous=n).next=i,e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++))}toJSON(){const e=[];return this.forEach((t,i)=>{e.push([i,t])}),e}fromJSON(e){for(var[t,i]of(this.clear(),e))this.set(t,i)}}class m extends p{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},4058:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return i.e("chunk-2d0c512b").then(i.bind(null,"3e14"))}})},"40c2":function(e,t,i){},4111:function(e,t,i){"use strict";i.d(t,"f",(function(){return l})),i.d(t,"b",(function(){return c})),i.d(t,"c",(function(){return u})),i.d(t,"a",(function(){return p})),i.d(t,"e",(function(){return _})),i.d(t,"d",(function(){return b}));var n=i("e8e3"),o=i("e1b5"),r=i("7061"),s=i("6a89"),a=i("b707");function l(e){let t=0,i=0,n=0,o=0;for(let s=0,a=e.length;s<a;s++){var r=e.charCodeAt(s);13===r?(0===t&&(i=s),t++,s+1<a&&10===e.charCodeAt(s+1)?(o|=2,s++):o|=3,n=s+1):10===r&&(o|=1,0===t&&(i=s),t++,n=s+1)}return 0===t&&(i=e.length),[t,i,e.length-n,o]}function d(e){return(e<<0|16384|2<<23)>>>0}const h=new Uint32Array(0).buffer;class c{constructor(){this.tokens=[]}add(e,t){if(0<this.tokens.length){var i=this.tokens[this.tokens.length-1];if(i.startLineNumber+i.tokens.length-1+1===e)return void i.tokens.push(t)}this.tokens.push(new m(e,[t]))}}class u{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){var t=[];for(let i=0;i<this._tokenCount;i++)t.push(`(${this._getDeltaLine(i)+e},${this._getStartCharacter(i)}-${this._getEndCharacter(i)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){var e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){var e,t,i=this._getTokenCount();return 0===i?null:(e=this._getStartCharacter(0),t=this._getDeltaLine(i-1),i=this._getEndCharacter(i-1),new s.a(0,e+1,t,i+1))}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,i=this._getTokenCount()-1;for(;t<i;){var n=t+Math.floor((i-t)/2),o=this._getDeltaLine(n);if(o<e)t=n+1;else{if(!(e<o)){let o=n;for(;o>t&&this._getDeltaLine(o-1)===e;)o--;let r=n;for(;r<i&&this._getDeltaLine(r+1)===e;)r++;return new g(this._tokens.subarray(4*o,4*r+4))}i=n-1}}return this._getDeltaLine(t)===e?new g(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,i,n){var o=this._tokens,r=this._tokenCount;let s=0,a=!1,l=0;for(let p=0;p<r;p++){var d,h=4*p,c=o[h],u=o[1+h],g=o[2+h];h=o[3+h];(e<c||c===e&&t<=g)&&(c<i||c===i&&u<=n)?a=!0:(0===s&&(l=c),a&&(o[d=4*s]=c-l,o[1+d]=u,o[2+d]=g,o[3+d]=h),s++)}return this._tokenCount=s,l}split(e,t,i,n){var o=this._tokens,r=this._tokenCount,s=[],a=[];let l=s,d=0,h=0;for(let u=0;u<r;u++){var c=4*u,g=o[c],p=o[1+c],m=o[2+c];c=o[3+c];if(e<g||g===e&&t<=m){if(g<i||g===i&&p<=n)continue;l!==a&&(l=a,d=0,h=g)}l[d++]=g-h,l[d++]=p,l[d++]=m,l[d++]=c}return[new u(new Uint32Array(s)),new u(new Uint32Array(a)),h]}acceptDeleteRange(e,t,i,n,o){var r=this._tokens,s=this._tokenCount,a=n-t;let l=0,d=!1;for(let u=0;u<s;u++){var h=4*u;let g=r[h],p=r[1+h],m=r[2+h];if(h=r[3+h],g<t||g===t&&m<=i);else{if(g===t&&p<i)g===n&&m>o?m-=o-i:m=i;else if(g===t&&p===i){if(!(g===n&&m>o)){d=!0;continue}m-=o-i}else if(g<n||g===n&&p<o){if(!(g===n&&m>o)){d=!0;continue}m=(p=g===t?i:0)+(m-o)}else if(g>n){if(0==a&&!d){l=s;break}g-=a}else{if(!(g===n&&p>=o))throw new Error("Not possible!");e&&0===g&&(p+=e,m+=e),g-=a,p-=o-i,m-=o-i}var c=4*l;r[c]=g,r[1+c]=p,r[2+c]=m,r[3+c]=h}l++}this._tokenCount=l}acceptInsertText(e,t,i,n,o,r){var s=0===i&&1===n&&(48<=r&&r<=57||65<=r&&r<=90||97<=r&&r<=122),a=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){var d,h=4*c;let r=a[h],l=a[1+h],u=a[2+h];if(!(r<e||r===e&&u<t)){if(r===e&&u===t){if(!s)continue;u+=1}else if(r===e&&l<t&&t<u)0===i?u+=n:u=t;else{if(r===e&&l===t&&s)continue;r===e?(r+=i,0===i?(l+=n,u+=n):(d=u-l,l=o+(l-t),u=l+d)):r+=i}a[h]=r,a[1+h]=l,a[2+h]=u}}}}class g{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}class p{constructor(e,t){this.startLineNumber=e,this.tokens=t,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}toString(){return this.tokens.toString(this.startLineNumber)}_updateEndLineNumber(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}isEmpty(){return this.tokens.isEmpty()}getLineTokens(e){return this.startLineNumber<=e&&e<=this.endLineNumber?this.tokens.getLineTokens(e-this.startLineNumber):null}getRange(){var e=this.tokens.getRange();return e&&new s.a(this.startLineNumber+e.startLineNumber,e.startColumn,this.startLineNumber+e.endLineNumber,e.endColumn)}removeTokens(e){var t=e.startLineNumber-this.startLineNumber,i=e.endLineNumber-this.startLineNumber;this.startLineNumber+=this.tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){var t=e.startLineNumber-this.startLineNumber,i=e.endLineNumber-this.startLineNumber,[t,i,e]=this.tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new p(this.startLineNumber,t),new p(this.startLineNumber+e,i)]}applyEdit(e,t){var[i,n,o]=l(t);this.acceptEdit(e,i,n,o,0<t.length?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,o){this._acceptDeleteRange(e),this._acceptInsertText(new r.a(e.startLineNumber,e.startColumn),t,i,n,o),this._updateEndLineNumber()}_acceptDeleteRange(e){var t,i,n;e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn||(t=e.startLineNumber-this.startLineNumber,(i=e.endLineNumber-this.startLineNumber)<0?this.startLineNumber-=i-t:(n=this.tokens.getMaxDeltaLine())+1<=t||(t<0&&n+1<=i?(this.startLineNumber=0,this.tokens.clear()):t<0?(this.startLineNumber-=-t,this.tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)):this.tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)))}_acceptInsertText(e,t,i,n,o){var r;0===t&&0===i||((r=e.lineNumber-this.startLineNumber)<0?this.startLineNumber+=t:this.tokens.getMaxDeltaLine()+1<=r||this.tokens.acceptInsertText(r,e.column-1,t,i,n,o))}}class m{constructor(e,t){this.startLineNumber=e,this.tokens=t}}function f(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class _{constructor(){this._pieces=[],this._isComplete=!1}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(0<t.length){var o=t[0].getRange(),r=t[t.length-1].getRange();if(!o||!r)return e;i=e.plusRange(o).plusRange(r)}let s=null;for(let n=0,d=this._pieces.length;n<d;n++){var a,l=this._pieces[n];if(!(l.endLineNumber<i.startLineNumber)){if(l.startLineNumber>i.endLineNumber){s=s||{index:n};break}l.removeTokens(i),l.isEmpty()?(this._pieces.splice(n,1),n--,d--):l.endLineNumber<i.startLineNumber||(l.startLineNumber>i.endLineNumber||([l,a]=l.split(i),l.isEmpty())?s=s||{index:n}:a.isEmpty()||(this._pieces.splice(n,1,l,a),n++,d++,s=s||{index:n}))}}return s=s||{index:this._pieces.length},0<t.length&&(this._pieces=n.b(this._pieces,s.index,t)),i}isComplete(){return this._isComplete}addSemanticTokens(e,t){var i=this._pieces;if(0===i.length)return t;var n=i[_._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!n)return t;var r=t.getCount(),s=n.getCount();let a=0,l=[],d=0,h=0;var c=(e,t)=>{e!==h&&(h=e,l[d++]=e,l[d++]=t)};for(let o=0;o<s;o++){for(var u,g=n.getStartCharacter(o),p=n.getEndCharacter(o),m=n.getMetadata(o),f=((1&m?2048:0)|(2&m?4096:0)|(4&m?8192:0)|(8&m?8372224:0)|(16&m?4286578688:0))>>>0,b=~f>>>0;a<r&&t.getEndOffset(a)<=g;)c(t.getEndOffset(a),t.getMetadata(a)),a++;for(a<r&&t.getStartOffset(a)<g&&c(g,t.getMetadata(a));a<r&&t.getEndOffset(a)<p;)c(t.getEndOffset(a),t.getMetadata(a)&b|m&f),a++;a<r?(c(p,t.getMetadata(a)&b|m&f),t.getEndOffset(a)===p&&a++):(u=Math.min(Math.max(0,a-1),r-1),c(p,t.getMetadata(u)&b|m&f))}for(;a<r;)c(t.getEndOffset(a),t.getMetadata(a)),a++;return new o.a(new Uint32Array(l),t.getLineContent())}static _findFirstPieceWithLine(e,t){let i=0,n=e.length-1;for(;i<n;){let o=i+Math.floor((n-i)/2);if(e[o].endLineNumber<t)i=o+1;else{if(!(e[o].startLineNumber>t)){for(;o>i&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}n=o-1}}return i}acceptEdit(e,t,i,n,o){for(const r of this._pieces)r.acceptEdit(e,t,i,n,o)}}class b{constructor(){this._lineTokens=[],this._len=0}flush(){this._lineTokens=[],this._len=0}getTokens(e,t,i){let n=null;return null!==(n=t<this._len?this._lineTokens[t]:n)&&n!==h?new o.a(f(n),i):((t=new Uint32Array(2))[0]=i.length,t[1]=d(e),new o.a(t,i))}static _massageTokens(e,t,i){const n=i?f(i):null;if(0===t){let t=!1;if(!(t=n&&1<n.length?a.E.getLanguageId(n[1])!==e:t))return h}if(n&&0!==n.length)return n[n.length-2]=t,0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n.buffer:n;{const i=new Uint32Array(2);return i[0]=t,i[1]=d(e),i.buffer}}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0!==t){var i=[];for(let e=0;e<t;e++)i[e]=null;this._lineTokens=n.b(this._lineTokens,e,i),this._len+=t}}setTokens(e,t,i,n,o){return e=b._massageTokens(e,i,n),this._ensureLine(t),i=this._lineTokens[t],this._lineTokens[t]=e,!!o&&!b._equals(i,e)}static _equals(e,t){if(!e||!t)return!e&&!t;var i=f(e),n=f(t);if(i.length!==n.length)return!1;for(let o=0,r=i.length;o<r;o++)if(i[o]!==n[o])return!1;return!0}acceptEdit(e,t,i){this._acceptDeleteRange(e),this._acceptInsertText(new r.a(e.startLineNumber,e.startColumn),t,i)}_acceptDeleteRange(e){var t=e.startLineNumber-1;if(!(t>=this._len)){if(e.startLineNumber===e.endLineNumber)return e.startColumn===e.endColumn?void 0:void(this._lineTokens[t]=b._delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1));this._lineTokens[t]=b._deleteEnding(this._lineTokens[t],e.startColumn-1);var i=e.endLineNumber-1;let n=null;i<this._len&&(n=b._deleteBeginning(this._lineTokens[i],e.endColumn-1)),this._lineTokens[t]=b._append(this._lineTokens[t],n),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}}_acceptInsertText(e,t,i){var n;0===t&&0===i||(n=e.lineNumber-1)>=this._len||(0===t?this._lineTokens[n]=b._insert(this._lineTokens[n],e.column-1,i):(this._lineTokens[n]=b._deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=b._insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)))}static _deleteBeginning(e,t){return null===e||e===h?e:b._delete(e,0,t)}static _deleteEnding(e,t){var i;return null===e||e===h?e:(i=(i=f(e))[i.length-2],b._delete(e,t,i))}static _delete(e,t,i){if(null===e||e===h||t===i)return e;var n=f(e),r=n.length>>>1;if(0===t&&n[n.length-2]===i)return h;var s=o.a.findIndexInTokensArray(n,t),a=0<s?n[s-1<<1]:0;if(i<n[s<<1]){const o=i-t;for(let e=s;e<r;e++)n[e<<1]-=o;return e}let l,d;d=a!==t?(n[s<<1]=t,l=s+1<<1,t):(l=s<<1,a);const c=i-t;for(let o=s+1;o<r;o++){var u=n[o<<1]-c;u>d&&(n[l++]=u,n[l++]=n[1+(o<<1)],d=u)}return l===n.length?e:((a=new Uint32Array(l)).set(n.subarray(0,l),0),a.buffer)}static _append(e,t){if(t===h)return e;if(e===h)return t;if(null===e)return e;if(null===t)return null;e=f(e);var i=f(t),n=i.length>>>1,o=new Uint32Array(e.length+i.length);o.set(e,0);let r=e.length;var s=e[e.length-2];for(let a=0;a<n;a++)o[r++]=i[a<<1]+s,o[r++]=i[1+(a<<1)];return o.buffer}static _insert(e,t,i){if(null!==e&&e!==h){var n=f(e),r=n.length>>>1;let s=o.a.findIndexInTokensArray(n,t);0<s&&n[s-1<<1]===t&&s--;for(let e=s;e<r;e++)n[e<<1]+=i}return e}}},4153:function(e,t,i){"use strict";i.d(t,"b",(function(){return b})),i.d(t,"g",(function(){return v})),i.d(t,"a",(function(){return w})),i.d(t,"c",(function(){return S})),i.d(t,"e",(function(){return x})),i.d(t,"d",(function(){return N})),i.d(t,"f",(function(){return E}));var n=i("fdcc"),o=i("b707"),r=i("7061"),s=(t=i("4fc3"),i("2504")),a=i("6a89"),l=i("7e93"),d=i("a666"),h=i("7e32"),c=i("b800"),u=i("e58e"),g=i("9e74"),p=i("ef8e9"),m=i("6d8e"),f=i("b78f"),_=(i=i("dff7"),function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});const b={Visible:new t.c("suggestWidgetVisible",!1,Object(i.a)("suggestWidgetVisible","Whether suggestion are visible")),DetailsVisible:new t.c("suggestWidgetDetailsVisible",!1,Object(i.a)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new t.c("suggestWidgetMultipleSuggestions",!1,Object(i.a)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new t.c("suggestionMakesTextEdit",!0,Object(i.a)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new t.c("acceptSuggestionOnEnter",!0,Object(i.a)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new t.c("suggestionHasInsertAndReplaceRange",!1,Object(i.a)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new t.c("suggestionInsertMode",void 0,{type:"string",description:Object(i.a)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new t.c("suggestionCanResolve",!1,Object(i.a)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},v=new h.b("suggestWidgetStatusBar");class C{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=l.a.Default,this.distance=0,this.textLabel=("string"==typeof t.label?t:t.label).label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),a.a.isIRange(t.range)?(this.editStart=new r.a(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new r.a(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new r.a(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||a.a.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new r.a(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new r.a(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new r.a(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||a.a.spansMultipleLines(t.range.insert)||a.a.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!=typeof n.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return _(this,void 0,void 0,(function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(e=>{Object.assign(this.completion,e),this._isResolved=!0,t.dispose()},e=>{Object(n.e)(e)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache}))}}class w{constructor(e=2,t=new Set,i=new Set,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.showDeprecated=n}}let y;function S(){return y}w.default=new w;class L{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function x(e,t,i=w.default,r={triggerKind:0},l=s.a.None){return _(this,void 0,void 0,(function*(){var s=new u.a(!0),h=(t=t.clone(),e.getWordAtPosition(t));h=h?new a.a(t.lineNumber,h.startColumn,t.lineNumber,h.endColumn):a.a.fromPositions(t);const g={replace:h,insert:h.setEndPosition(t.lineNumber,t.column)},p=[],m=new d.b,f=[];let b=!1;const v=(e,n,o)=>{var r,s;if(n){for(var a of n.suggestions)i.kindFilter.has(a.kind)||!i.showDeprecated&&null!=(r=null===a||void 0===a?void 0:a.tags)&&r.includes(1)||(a.range||(a.range=g),a.sortText||(a.sortText=("string"==typeof a.label?a:a.label).label),!b&&a.insertTextRules&&4&a.insertTextRules&&(b=c.c.guessNeedsClipboard(a.insertText)),p.push(new C(t,a,n,e)));Object(d.g)(n)&&m.add(n),f.push({providerName:null!=(s=e._debugDisplayName)?s:"unkown_provider",elapsedProvider:null!=(s=n.duration)?s:-1,elapsedOverall:o.elapsed()})}};var w;h=_(this,void 0,void 0,(function*(){var n,o;!y||i.kindFilter.has(27)||0<i.providerFilter.size&&!i.providerFilter.has(y)||(n=new u.a(!0),o=yield y.provideCompletionItems(e,t,r,l),v(y,o,n))}));for(w of o.d.orderedGroups(e)){var S=p.length;if(yield Promise.all(w.map(o=>_(this,void 0,void 0,(function*(){if(!(0<i.providerFilter.size)||i.providerFilter.has(o))try{var s=new u.a(!0),a=yield o.provideCompletionItems(e,t,r,l);v(o,a,s)}catch(s){Object(n.g)(s)}})))),S!==p.length||l.isCancellationRequested)break}return yield h,l.isCancellationRequested?(m.dispose(),Promise.reject(Object(n.b)())):new L(p.sort(N(i.snippetSortOrder)),b,{entries:f,elapsed:s.elapsed()},m)}))}function k(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.completion.label<t.completion.label?-1:e.completion.label>t.completion.label?1:e.completion.kind-t.completion.kind}const D=new Map;function N(e){return D.get(e)}D.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return k(e,t)})),D.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return k(e,t)})),D.set(1,k),g.a.registerCommand("_executeCompletionItemProvider",(e,...t)=>_(void 0,void 0,void 0,(function*(){var[i,n,o,a]=t,i=(Object(p.c)(m.a.isUri(i)),Object(p.c)(r.a.isIPosition(n)),Object(p.c)("string"==typeof o||!o),Object(p.c)("number"==typeof a||!a),yield e.get(f.a).createModelReference(i));try{var l={incomplete:!1,suggestions:[]},d=[];const e=yield x(i.object.textEditorModel,r.a.lift(n),void 0,{triggerCharacter:o,triggerKind:o?1:0});for(const t of e.items)d.length<(null!=a?a:0)&&d.push(t.resolve(s.a.None)),l.incomplete=l.incomplete||t.container.incomplete,l.suggestions.push(t.completion);try{return yield Promise.all(d),l}finally{setTimeout(()=>e.disposable.dispose(),100)}}finally{i.dispose()}})));const O=new class{constructor(){this.onlyOnceSuggestions=[]}provideCompletionItems(){var e={suggestions:this.onlyOnceSuggestions.slice(0)};return this.onlyOnceSuggestions.length=0,e}};function E(e,t){setTimeout(()=>{O.onlyOnceSuggestions.push(...t),e.getContribution("editor.contrib.suggestController").triggerSuggest((new Set).add(O))},0)}o.d.register("*",O)},"418f":function(e,t,i){"use strict";i.d(t,"a",(function(){return ee}));var n=i("dff7"),o=i("fdcc"),r=i("a666"),s=(t=i("5717"),i("0a0f")),a=i("4fc3"),l=i("fbba"),d=i("03e8"),h=i("f68e"),c=(i("29a1"),i("11f7")),u=i("ceb8"),g=i("308f"),p=i("b589"),m=i("82c9"),f=i("d379"),_=i("6a89"),b=i("b57f"),v=i("b78f"),C=i("c4e3"),w=i("3bfb"),y=i("47cb"),S=i("b7d0"),L=i("a6d7"),x=i("debc"),k=i("6dec"),D=i("7e93"),N=i("ee56"),O=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},E=function(e,t){return function(i,n){t(i,n,e)}};let I=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof h.c||e instanceof h.a}getChildren(e){if(e instanceof h.c)return e.groups;if(e instanceof h.a)return e.resolve(this._resolverService).then(e=>e.children);throw new Error("bad tree")}};I=O([E(0,v.a)],I);class M{getHeight(){return 23}getTemplateId(e){return(e instanceof h.a?P:B).id}}let T=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){if(e instanceof h.b){var t=null==(t=e.parent.getPreview(e))?void 0:t.preview(e.range);if(t)return t.value}return Object(m.b)(e.uri)}};T=O([E(0,k.a)],T);class A{getId(e){return e instanceof h.b?e.id:e.uri}}let R=class extends r.a{constructor(e,t,i){super(),this._uriLabel=t,t=document.createElement("div"),t.classList.add("reference-file"),this.file=this._register(new C.a(t,{supportHighlights:!0})),this.badge=new w.a(c.q(t,c.a(".count"))),this._register(Object(L.a)(this.badge,i)),e.appendChild(t)}set(e,t){var i=Object(m.d)(e.uri);this.file.setLabel(Object(x.a)(e.uri),this._uriLabel.getUriLabel(i,{relative:!0}),{title:this._uriLabel.getUriLabel(e.uri),matches:t}),i=e.children.length;this.badge.setCount(i),1<i?this.badge.setTitleFormat(Object(n.a)("referencesCount","{0} references",i)):this.badge.setTitleFormat(Object(n.a)("referenceCount","{0} reference",i))}},P=(R=O([E(1,y.a),E(2,S.b)],R),class e{constructor(t){this._instantiationService=t,this.templateId=e.id}renderTemplate(e){return this._instantiationService.createInstance(R,e)}renderElement(e,t,i){i.set(e.element,Object(D.c)(e.filterData))}disposeTemplate(e){e.dispose()}});P.id="FileReferencesRenderer",P=O([E(0,s.a)],P);class F{constructor(e){this.label=new N.a(e,!1)}set(e,t){var i,n=null==(n=e.parent.getPreview(e))?void 0:n.preview(e.range);n&&n.value?(({value:n,highlight:i}=n),t&&!D.a.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(n,Object(D.c)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(n,[i]))):this.label.set(`${Object(m.b)(e.uri)}:${e.range.startLineNumber+1}:`+(e.range.startColumn+1))}}class B{constructor(){this.templateId=B.id}renderTemplate(e){return new F(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}B.id="OneReferenceRenderer";class j{getWidgetAriaLabel(){return Object(n.a)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var W=i("93d9"),V=i("303e"),H=i("88d4"),z=i("e385"),U=(O=i("3803"),E=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}}),K=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class q{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new r.b,this._callOnModelChange=new r.b,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();var e=this._editor.getModel();if(e)for(var t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(this._editor.hasModel()){this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));var t=[],i=[];for(let o=0,r=e.children.length;o<r;o++){var n=e.children[o];this._decorationIgnoreSet.has(n.id)||n.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:n.range,options:q.DecorationOptions}),i.push(o))}var o=this._editor.deltaDecorations([],t);for(let t=0;t<o.length;t++)this._decorations.set(o[t],e.children[i[t]])}}_onDecorationChanged(){var e=[],t=this._editor.getModel();if(t){for(var[i,n]of this._decorations){var o=t.getDecorationRange(i);if(o){let t=!1;_.a.equalsRange(o,n.range)||((t=!(!_.a.spansMultipleLines(o)&&n.range.endColumn-n.range.startColumn==o.endColumn-o.startColumn)||t)?(this._decorationIgnoreSet.add(n.id),e.push(i)):n.range=o)}}for(let t=0,i=e.length;t<i;t++)this._decorations.delete(e[t]);this._editor.deltaDecorations(e,[])}}removeDecorations(){this._editor.deltaDecorations([...this._decorations.keys()],[]),this._decorations.clear()}}q.DecorationOptions=b.a.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class ${constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{var n=JSON.parse(e);t=n.ratio,i=n.heightInLines}catch(e){}return{ratio:t||.7,heightInLines:i||18}}}class G extends W.c{}let Z=class extends H.c{constructor(e,t,i,n,o,s,a,l,d,h){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},s),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=o,this._instantiationService=s,this._peekViewService=a,this._uriLabel=l,this._undoRedoService=d,this._keybindingService=h,this._disposeOnNewModel=new r.b,this._callOnDispose=new r.b,this._onDidSelectReference=new g.b,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new c.b(0,0),this._applyTheme(n.getColorTheme()),this._callOnDispose.add(n.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(r.f)(this._preview),Object(r.f)(this._previewNotAvailableMessage),Object(r.f)(this._tree),Object(r.f)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){var t=e.getColor(H.e)||u.a.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(H.p)||u.a.transparent,primaryHeadingColor:e.getColor(H.q),secondaryHeadingColor:e.getColor(H.r)})}show(e){this.editor.revealRangeInCenterIfOutsideViewport(e,0),super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=c.q(e,c.a("div.messages")),c.K(this._messageContainer),this._splitView=new z.b(e,{orientation:1}),this._previewContainer=c.q(e,c.a("div.preview.inline")),this._preview=this._instantiationService.createInstance(f.a,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},this.editor),c.K(this._previewContainer),this._previewNotAvailableMessage=new b.b(n.a("missingPreviewMessage","no preview available"),b.b.DEFAULT_CREATION_OPTIONS,null,null,this._undoRedoService),this._treeContainer=c.q(e,c.a("div.ref-tree.inline")),e={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new j,keyboardNavigationLabelProvider:this._instantiationService.createInstance(T),identityProvider:new A,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:H.j}},this._defaultTreeKeyboardSupport&&this._callOnDispose.add(c.o(this._treeContainer,"keydown",e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(G,"ReferencesWidget",this._treeContainer,new M,[this._instantiationService.createInstance(P),this._instantiationService.createInstance(B)],this._instantiationService.createInstance(I),e),this._splitView.addView({onDidChange:g.c.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},z.a.Distribute),this._splitView.addView({onDidChange:g.c.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=this._dim.height+"px",this._treeContainer.style.width=e+"px",this._tree.layout(this._dim.height,e)}},z.a.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let t=(e,t)=>{e instanceof h.b&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._tree.onDidOpen(e=>{e.sideBySide?t(e.element,"side"):e.editorOptions.pinned?t(e.element,"goto"):t(e.element,"show")}),c.K(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new c.b(t,e),this.layoutData.heightInLines=(this._viewZone||this.layoutData).heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=n.a("noResults","No results"),c.W(this._messageContainer),Promise.resolve(void 0)):(c.K(this._messageContainer),this._decorationsManager=new q(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{var t,{event:e,target:i}=e;2===e.detail&&(t=this._getFocusedReference())&&this._onDidSelectReference.fire({element:{uri:t.uri,range:i.range},kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),c.W(this._treeContainer),c.W(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){var[e]=this._tree.getFocus();return e instanceof h.b?e:e instanceof h.a&&0<e.children.length?e.children[0]:void 0}revealReference(e){return K(this,void 0,void 0,(function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}))}_revealReference(e,t){return K(this,void 0,void 0,(function*(){var i,o,s,a;this._revealedReference!==e&&((this._revealedReference=e).uri.scheme!==p.c.inMemory?this.setTitle(Object(m.c)(e.uri),this._uriLabel.getUriLabel(Object(m.d)(e.uri))):this.setTitle(n.a("peekView.alternateTitle","References")),i=this._textModelResolverService.createModelReference(e.uri),this._tree.getInput()!==e.parent&&(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent)),this._tree.reveal(e),i=yield i,this._model?(Object(r.f)(this._previewModelReference),(o=i.object)?(s=this._preview.getModel()===o.textEditorModel?0:1,a=_.a.lift(e.range).collapseToStart(),this._previewModelReference=i,this._preview.setModel(o.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,s)):(this._preview.setModel(this._previewNotAvailableMessage),i.dispose())):i.dispose())}))}};Z=E([U(3,S.b),U(4,v.a),U(5,s.a),U(6,H.a),U(7,y.a),U(8,O.a),U(9,k.a)],Z),Object(S.f)((e,t)=>{var i=e.getColor(H.m);i&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: ${i}; }`),i=e.getColor(H.h),i&&t.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: ${i}; }`),i=e.getColor(H.i),i&&t.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid ${i}; box-sizing: border-box; }`),i=e.getColor(V.b),i&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted ${i}; box-sizing: border-box; }`),i=e.getColor(H.j),i&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree { background-color: ${i}; }`),i=e.getColor(H.l),i&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree { color: ${i}; }`),i=e.getColor(H.k),i&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .reference-file { color: ${i}; }`),i=e.getColor(H.n),i&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: ${i}; }`),i=e.getColor(H.o),i&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: ${i} !important; }`),i=e.getColor(H.f),i&&t.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: ${i};}`),i=e.getColor(H.g);i&&t.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: ${i};}`)});var Y=i("7061"),X=(E=i("b0cd"),i("5fe7")),Q=(v=i("9eb8"),y=i("fe45"),O=i("9e74"),U=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},k=function(e,t){return function(i,n){t(i,n,e)}},function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});const J=new a.c("referenceSearchVisible",!1,n.a("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let ee=class e{constructor(e,t,i,n,o,s,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=o,this._instantiationService=s,this._storageService=a,this._configurationService=l,this._disposables=new r.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=J.bindTo(i)}static get(t){return t.getContribution(e.ID)}dispose(){var e;this._referenceSearchVisible.reset(),this._disposables.dispose(),null!=(e=this._widget)&&e.dispose(),null!=(e=this._model)&&e.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let o;if(this._widget&&(o=this._widget.position),this.closeWidget(),!o||!e.containsPosition(o)){this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const o="peekViewLayout";var r=$.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(Z,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(n.a("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(o,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(e=>{var{element:t,kind:n}=e;if(t)switch(n){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t):this.openReference(t,!1,!0)}}));const s=++this._requestIdPool;t.then(t=>{var i;if(s===this._requestIdPool&&this._widget)return null!=(i=this._model)&&i.dispose(),this._model=t,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(n.a("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));var t=this._editor.getModel().uri,i=new Y.a(e.startLineNumber,e.startColumn);t=this._model.nearestReference(t,i);if(t)return this._widget.setSelection(t).then(()=>{this._widget&&"editor"===this._editor.getOption(76)&&this._widget.focusOnPreviewEditor()})}});t.dispose()},e=>{this._notificationService.error(e)})}}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return Q(this,void 0,void 0,(function*(){var t,i,n;this._editor.hasModel()&&this._model&&this._widget&&(t=this._widget.position)&&(t=this._model.nearestReference(this._editor.getModel().uri,t))&&(t=this._model.nextOrPreviousReference(t,e),i=this._editor.hasTextFocus(),n=this._widget.isPreviewEditorFocused(),yield this._widget.setSelection(t),yield this._gotoReference(t),i?this._editor.focus():this._widget&&n&&this._widget.focusOnPreviewEditor())}))}revealReference(e){return Q(this,void 0,void 0,(function*(){this._editor.hasModel()&&this._model&&this._widget&&(yield this._widget.revealReference(e))}))}closeWidget(e=!0){var t;null!=(t=this._widget)&&t.dispose(),null!=(t=this._model)&&t.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(t){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const i=_.a.lift(t.range).collapseToStart();return this._editorService.openCodeEditor({resource:t.uri,options:{selection:i}},this._editor).then(t=>{if(this._ignoreModelChangeEvent=!1,t&&this._widget)if(this._editor===t)this._widget.show(i),this._widget.focusOnReferenceTree();else{var n=e.get(t);const o=this._model.clone();this.closeWidget(),t.focus(),n.toggleWidget(i,Object(X.h)(e=>Promise.resolve(o)),null!=(t=this._peekMode)&&t)}else this.closeWidget()},e=>{this._ignoreModelChangeEvent=!1,Object(o.f)(e)})}openReference(e,t,i){t||this.closeWidget();var{uri:e,range:n}=e;this._editorService.openCodeEditor({resource:e,options:{selection:n,pinned:i}},this._editor,t)}};function te(e,t){e=Object(H.d)(e);e&&(e=ee.get(e))&&t(e)}ee.ID="editor.contrib.referencesController",ee=U([k(2,a.b),k(3,t.a),k(4,E.a),k(5,s.a),k(6,d.a),k(7,l.a)],ee),v.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(y.a)(2089,60),when:a.a.or(J,H.b.inPeekEditor),handler(e){te(e,e=>{e.changeFocusBetweenPreviewAndReferences()})}}),v.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:a.a.or(J,H.b.inPeekEditor),handler(e){te(e,e=>{e.goToNextOrPreviousReference(!0)})}}),v.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:a.a.or(J,H.b.inPeekEditor),handler(e){te(e,e=>{e.goToNextOrPreviousReference(!1)})}}),O.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),O.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),O.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),O.a.registerCommand("closeReferenceSearch",e=>te(e,e=>e.closeWidget())),v.a.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:a.a.and(H.b.inPeekEditor,a.a.not("config.editor.stablePeek"))}),v.a.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:a.a.and(J,a.a.not("config.editor.stablePeek"))}),v.a.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:a.a.and(J,W.e),handler(e){var t;const i=null==(t=e.get(W.a).lastFocusedList)?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof h.b&&te(e,e=>e.revealReference(i[0]))}}),v.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:a.a.and(J,W.e),handler(e){var t;const i=null==(t=e.get(W.a).lastFocusedList)?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof h.b&&te(e,e=>e.openReference(i[0],!0,!0))}}),O.a.registerCommand("openReference",e=>{var t;const i=null==(t=e.get(W.a).lastFocusedList)?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof h.b&&te(e,e=>e.openReference(i[0],!1,!0))})},"41a0":function(e,t,i){},4220:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return i.e("chunk-2d0ea098").then(i.bind(null,"8fa5"))}})},"42e39":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i("308f");class o{constructor(e,t,i,n,o,r){this._scrollStateBrand=void 0,e|=0,n|=0,o|=0,r|=0,(i=(t|=0)<(this.rawScrollLeft=i|=0)+(e=e<0?0:e)?t-e:i)<0&&(i=0),(r=o<(this.rawScrollTop=r)+(n=n<0?0:n)?o-n:r)<0&&(r=0),this.width=e,this.scrollWidth=t,this.scrollLeft=i,this.height=n,this.scrollHeight=o,this.scrollTop=r}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new o((void 0!==e.width?e:this).width,(void 0!==e.scrollWidth?e:this).scrollWidth,t?this.rawScrollLeft:this.scrollLeft,(void 0!==e.height?e:this).height,(void 0!==e.scrollHeight?e:this).scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new o(this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){var i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,s=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:r,scrollHeightChanged:s,scrollTopChanged:a}}}class r extends i("a666").a{constructor(e,t){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.b),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e,this._scheduleAtNextAnimationFrame=t,this._state=new o(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){e=this._state.withScrollDimensions(e,t),this._setState(e,Boolean(this._smoothScrolling)),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){e=this._state.withScrollPosition(e),this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(e,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:(void 0===e.scrollLeft?this._smoothScrolling.to:e).scrollLeft,scrollTop:(void 0===e.scrollTop?this._smoothScrolling.to:e).scrollTop};var i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new l(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else t=this._state.withScrollPosition(e),this._smoothScrolling=l.start(this._state,t,this._smoothScrollDuration);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){var e,t;this._smoothScrolling&&(e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e),this._setState(t,!0),this._smoothScrolling)&&(e.isDone?(this._smoothScrolling.dispose(),this._smoothScrolling=null):this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}_setState(e,t){var i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class s{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function a(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class l{constructor(e,t,i,n){this.from=e,this.to=t,this.duration=n,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){var n,o,r;if(2.5*i<Math.abs(e-t)){let s,l;return l=e<t?(s=e+.75*i,t-.75*i):(s=e-.75*i,t+.75*i),n=a(e,s),o=a(l,t),r=.33,function(e){return e<r?n(e/r):o((e-r)/(1-r))}}return a(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){var t;e=(e-this.startTime)/this.duration;return e<1?(t=this.scrollLeft(e),e=this.scrollTop(e),new s(t,e,!1)):new s(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,i){return l.start(e,t,i)}static start(e,t,i){i+=10;var n=Date.now()-10;return new l(e,t,n,i)}}},"438a":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i("1e93"),o=i("6d8e");function r(e){return function e(t,i=0){if(!t||200<i)return t;if("object"==typeof t){switch(t.$mid){case 1:return o.a.revive(t);case 2:return new RegExp(t.source,t.flags)}if(t instanceof n.a||t instanceof Uint8Array)return t;if(Array.isArray(t))for(let n=0;n<t.length;++n)t[n]=e(t[n],i+1);else for(const n in t)Object.hasOwnProperty.call(t,n)&&(t[n]=e(t[n],i+1))}return t}(JSON.parse(e))}},"43ad":function(e,t,i){"use strict";i.r(t),i.d(t,"rename",(function(){return T})),i.d(t,"RenameAction",(function(){return R}));var n=i("dff7"),o=i("fdcc"),r=i("4fc3"),s=(t=i("b539"),i("b2cc")),a=i("c101"),l=(i("0632"),i("a666")),d=i("7061"),h=i("303e"),c=i("b7d0"),u=i("6dec"),g=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},p=function(e,t){return function(i,n){t(i,n,e)}};const m=new r.c("renameInputVisible",!1,Object(n.a)("renameInputVisible","Whether the rename input widget is visible"));let f=class{constructor(e,t,i,n,o){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._disposables=new l.b,this.allowEditorOverflow=!0,this._visibleContextKey=m.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(42)&&this._updateFont()})),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){var e;return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(n.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),(e=()=>{var[e,t]=this._acceptKeybindings;this._keybindingService.lookupKeybinding(e),this._label.innerText=Object(n.a)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null==(e=this._keybindingService.lookupKeybinding(e))?void 0:e.getLabel(),null==(e=this._keybindingService.lookupKeybinding(t))?void 0:e.getLabel())})(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(e)),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,i;this._input&&this._domNode&&(t=e.getColor(h.Nc),this._domNode.style.backgroundColor=String(null!=(i=e.getColor(h.Y))?i:""),this._domNode.style.boxShadow=t?" 0 0 8px 2px "+t:"",this._domNode.style.color=String(null!=(i=e.getColor(h.lb))?i:""),this._input.style.backgroundColor=String(null!=(t=e.getColor(h.jb))?t:""),i=e.getColor(h.kb),this._input.style.borderWidth=i?"1px":"0px",this._input.style.borderStyle=i?"solid":"none",this._input.style.borderColor=null!=(t=null==i?void 0:i.toString())?t:"none")}_updateFont(){var e;this._input&&this._label&&(e=this._editor.getOption(42),this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=e.fontSize+"px",this._label.style.fontSize=.8*e.fontSize+"px")}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}afterRender(e){e||this.cancelInput(!0)}acceptInput(e){this._currentAcceptInput&&this._currentAcceptInput(e)}cancelInput(e){this._currentCancelInput&&this._currentCancelInput(e)}getInput(e,t,i,n,o,r){this._domNode.classList.toggle("preview",o),this._position=new d.a(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",i.toString()),this._input.setAttribute("selectionEnd",n.toString()),this._input.size=Math.max(1.1*(e.endColumn-e.startColumn),20);const s=new l.b;return new Promise(e=>{this._currentCancelInput=t=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,e(t),!0),this._currentAcceptInput=i=>{0===this._input.value.trim().length||this._input.value===t?this.cancelInput(!0):(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,e({newName:this._input.value,wantsPreview:o&&i}))},r.onCancellationRequested(()=>this.cancelInput(!0)),s.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!1))),this._show()}).finally(()=>{s.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};f=g([p(2,c.b),p(3,u.a),p(4,r.b)],f);var _=i("b707"),b=i("3813"),v=i("6a89"),C=i("351f"),w=i("bc04"),y=(g=i("b0cd"),i("c7f5")),S=i("6d8e"),L=i("5717"),x=i("2504"),k=i("5fe7"),D=(c=i("d3d7"),u=i("0a0f"),p=i("89cd"),i("0910")),N=i("7b4a"),O=i("ef8e9"),E=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}}),I=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class M{constructor(e,t){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=_.z.ordered(e)}hasProvider(){return 0<this._providers.length}resolveRenameLocation(e){return I(this,void 0,void 0,(function*(){var t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){var i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;if(i=yield i.resolveRenameLocation(this.model,this.position,e),i){if(!i.rejectReason)return i;t.push(i.rejectReason)}}var n=this.model.getWordAtPosition(this.position);return n?{range:new v.a(this.position.lineNumber,n.startColumn,this.position.lineNumber,n.endColumn),text:n.word,rejectReason:0<t.length?t.join("\n"):void 0}:{range:v.a.fromPositions(this.position),text:"",rejectReason:0<t.length?t.join("\n"):void 0}}))}provideRenameEdits(e,t){return I(this,void 0,void 0,(function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}))}_provideRenameEdits(e,t,i,o){return I(this,void 0,void 0,(function*(){var r=this._providers[t];return r?(r=yield r.provideRenameEdits(this.model,this.position,e,o))?r.rejectReason?this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),o):r:this._provideRenameEdits(e,t+1,i.concat(n.a("no result","No result.")),o):{edits:[],rejectReason:i.join("\n")}}))}}function T(e,t,i){return I(this,void 0,void 0,(function*(){var n=new M(e,t),o=yield n.resolveRenameLocation(x.a.None);return null!=o&&o.rejectReason?{edits:[],rejectReason:o.rejectReason}:n.provideRenameEdits(i,x.a.None)}))}let A=class e{constructor(e,t,i,n,o,r,s){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=o,this._logService=r,this._configService=s,this._dispoableStore=new l.b,this._cts=new x.b,this._renameInputField=this._dispoableStore.add(new k.b(()=>this._dispoableStore.add(this._instaService.createInstance(f,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(t){return t.getContribution(e.ID)}dispose(){this._dispoableStore.dispose(),this._cts.dispose(!0)}run(){return I(this,void 0,void 0,(function*(){if(this._cts.dispose(!0),this.editor.hasModel()){var e=this.editor.getPosition(),i=new M(this.editor.getModel(),e);if(i.hasProvider()){let r;this._cts=new w.b(this.editor,5);try{var o=i.resolveRenameLocation(this._cts.token);this._progressService.showWhile(o,250),r=yield o}catch(t){return void C.a.get(this.editor).showMessage(t||n.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),e)}if(r)if(r.rejectReason)C.a.get(this.editor).showMessage(r.rejectReason,e);else if(!this._cts.token.isCancellationRequested){this._cts.dispose(),this._cts=new w.b(this.editor,5,r.range),o=this.editor.getSelection();let t=0,s=r.text.length;v.a.isEmpty(o)||v.a.spansMultipleLines(o)||!v.a.containsRange(r.range,o)||(t=Math.max(0,o.startColumn-r.range.startColumn),s=Math.min(r.range.endColumn,o.endColumn)-r.range.startColumn),e=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview");const a=yield this._renameInputField.value.getInput(r.range,r.text,t,s,e,this._cts.token);if("boolean"!=typeof a)return this.editor.focus(),o=Object(k.l)(i.provideRenameEdits(a.newName,this._cts.token),this._cts.token).then(e=>I(this,void 0,void 0,(function*(){e&&this.editor.hasModel()&&(e.rejectReason?this._notificationService.info(e.rejectReason):this._bulkEditService.apply(y.b.convert(e),{editor:this.editor,showPreview:a.wantsPreview,label:n.a("label","Renaming '{0}'",null===r||void 0===r?void 0:r.text),quotableLabel:n.a("quotableLabel","Renaming {0}",null===r||void 0===r?void 0:r.text)}).then(e=>{e.ariaSummary&&Object(b.a)(n.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",r.text,a.newName,e.ariaSummary))}).catch(e=>{this._notificationService.error(n.a("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)}))})),e=>{this._notificationService.error(n.a("rename.failed","Rename failed to compute edits")),this._logService.error(e)}),this._progressService.showWhile(o,250),o;a&&this.editor.focus()}}}}))}acceptRenameInput(e){this._renameInputField.value.acceptInput(e)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};A.ID="editor.contrib.renameController",A=i([E(1,u.a),E(2,g.a),E(3,y.a),E(4,t.a),E(5,c.b),E(6,N.a)],A);class R extends s.b{constructor(){super({id:"editor.action.rename",label:n.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:r.a.and(a.a.writable,a.a.hasRenameProvider),kbOpts:{kbExpr:a.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){var i=e.get(L.a);const[n,r]=Array.isArray(t)&&t||[void 0,void 0];return S.a.isUri(n)&&d.a.isIPosition(r)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(r),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},o.f):super.runCommand(e,t)}run(e,t){return t=A.get(t),t?t.run():Promise.resolve()}}Object(s.l)(A.ID,A),Object(s.j)(R),i=s.c.bindToContribution(A.get),Object(s.k)(new i({id:"acceptRenameInput",precondition:m,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:a.a.focus,primary:3}})),Object(s.k)(new i({id:"acceptRenameInputWithPreview",precondition:r.a.and(m,r.a.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:a.a.focus,primary:1027}})),Object(s.k)(new i({id:"cancelRenameInput",precondition:m,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:a.a.focus,primary:9,secondary:[1033]}})),Object(s.n)("_executeDocumentRenameProvider",(function(e,t,...i){var[i]=i;return Object(O.c)("string"==typeof i),T(e,t,i)})),p.a.as(D.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:n.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},"44c7":function(e,t,i){},4779:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o})),t=i("4fc3"),i=i("0a0f");const n=Object(i.c)("accessibilityService"),o=new t.c("accessibilityModeEnabled",!1)},"47cb":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0a0f");const n=Object(t.c)("labelService")},4816:function(e,t,i){"use strict";i.r(t),i("41a0");var n=i("11f7"),o=i("6653"),r=i("31df"),s=i("3813"),a=(t=i("1b7d"),i("a666")),l=i("30db"),d=i("3742"),h=i("6d8e"),c=i("b2cc"),u=i("c101"),g=i("93ba"),p=i("4fc3"),m=i("0a0f"),f=i("6dec"),_=i("5bd73"),b=i("303e"),v=i("b7d0"),C=i("03d9"),w=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});const y=new p.c("accessibilityHelpWidgetVisible",!1);let S=class e extends a.a{constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(L,this._editor))}static get(t){return t.getContribution(e.ID)}show(){this._widget.show()}hide(){this._widget.hide()}};S.ID="editor.contrib.accessibilityHelpController",S=i([w(1,m.a)],S);let L=class e extends t.a{constructor(e,t,i,r){super(),this._contextKeyService=t,this._keybindingService=i,this._openerService=r,this._editor=e,this._isVisibleKey=y.bindTo(this._contextKeyService),this._domNode=Object(o.b)(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=Object(o.b)(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(n.o(this._contentDomNode.domNode,"keydown",e=>{if(this._isVisible&&(e.equals(2083)&&(Object(s.a)(C.a.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),n.t(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){Object(s.a)(C.a.openingDocs);let t=this._editor.getRawOptions().accessibilityHelpUrl;void 0===t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(h.a.parse(t)),e.preventDefault(),e.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return e.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(e,t,i){var n=this._keybindingService.lookupKeybinding(e);return n?d.v(t,n.getAriaLabel()):d.v(i,e)}_buildContent(){var e=this._editor.getOptions(),t=this._editor.getSelections();let i=0;if(t){const e=this._editor.getModel();e&&t.forEach(t=>{i+=e.getValueLengthInRange(t)})}t=t,s=i;let n=t&&0!==t.length?1===t.length?s?d.v(C.a.singleSelectionRange,t[0].positionLineNumber,t[0].positionColumn,s):d.v(C.a.singleSelection,t[0].positionLineNumber,t[0].positionColumn):s?d.v(C.a.multiSelectionRange,t.length,s):0<t.length?d.v(C.a.multiSelection,t.length):"":C.a.noSelection;e.get(53)?e.get(80)?n+=C.a.readonlyDiffEditor:n+=C.a.editableDiffEditor:e.get(80)?n+=C.a.readonlyEditor:n+=C.a.editableEditor;var o=l.f?C.a.changeConfigToOnMac:C.a.changeConfigToOnWinLinux;switch(e.get(2)){case 0:n+="\n\n - "+o;break;case 2:n+="\n\n - "+C.a.auto_on;break;case 1:n=n+"\n\n - "+C.a.auto_off+" "+o}e.get(129)?n+="\n\n - "+this._descriptionForCommand(g.ToggleTabFocusModeAction.ID,C.a.tabFocusModeOnMsg,C.a.tabFocusModeOnMsgNoKb):n+="\n\n - "+this._descriptionForCommand(g.ToggleTabFocusModeAction.ID,C.a.tabFocusModeOffMsg,C.a.tabFocusModeOffMsgNoKb);var s=l.f?C.a.openDocMac:C.a.openDocWinLinux;n=(n+="\n\n - "+s)+"\n\n"+C.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(r.b)(n)),this._contentDomNode.domNode.setAttribute("aria-label",n)}hide(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,n.t(this._contentDomNode.domNode),this._editor.focus())}_layout(){var t=this._editor.getLayoutInfo(),i=Math.max(5,Math.min(e.WIDTH,t.width-40)),n=Math.max(5,Math.min(e.HEIGHT,t.height-40));this._domNode.setWidth(i),this._domNode.setHeight(n),n=Math.round((t.height-n)/2),this._domNode.setTop(n),n=Math.round((t.width-i)/2);this._domNode.setLeft(n)}};L.ID="editor.contrib.accessibilityHelpWidget",L.WIDTH=500,L.HEIGHT=300,L=i([w(1,p.b),w(2,f.a),w(3,_.a)],L);class x extends c.b{constructor(){super({id:"editor.action.showAccessibilityHelp",label:C.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){t=S.get(t),t&&t.show()}}Object(c.l)(S.ID,S),Object(c.j)(x),a=c.c.bindToContribution(S.get),Object(c.k)(new a({id:"closeAccessibilityHelp",precondition:y,handler:e=>e.hide(),kbOpts:{weight:200,kbExpr:u.a.focus,primary:9,secondary:[1033]}})),Object(v.f)((e,t)=>{var i=e.getColor(b.Y);i&&t.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${i}; }`),i=e.getColor(b.ab),i&&t.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${i}; }`),i=e.getColor(b.Nc),i&&t.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${i}; }`),i=e.getColor(b.h);i&&t.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${i}; }`)})},"49d9":function(e,t,i){"use strict";function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o}));class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this}get value(){return this._val}}},"4a64":function(e,t,i){"use strict";i.d(t,"a",(function(){return le})),i("94a7");var n=i("dff7"),o=i("11f7"),r=i("6653"),s=i("70c3"),a=i("5fe7"),l=i("308f"),d=(t=i("a666"),i("1ddc")),h=i("bc04"),c=i("5717"),u=i("9c1d"),g=(i("0d30"),i("5aa5")),p=i("1898"),m=i("f070"),f=i("b2cc"),_=i("fd49"),b=i("e1b5"),v=i("7061"),C=i("918c"),w=i("6da2"),y=i("a8d0"),S=i("4fc3"),L=i("303e"),x=i("b7d0"),k=i("561a"),D=i("bf5b"),N=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class O{constructor(e,t,i,n){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=i,this.modifiedLineEnd=n}getType(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0}}class E{constructor(e){this.entries=e}}const I=Object(D.b)("diff-review-insert",k.b.add,n.a("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),M=Object(D.b)("diff-review-remove",k.b.remove,n.a("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),T=Object(D.b)("diff-review-close",k.b.close,n.a("diffReviewCloseIcon","Icon for 'Close' in diff review."));class A extends t.a{constructor(e){super(),this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=Object(r.b)(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Object(r.b)(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new g.a(this.actionBarContainer.domNode)),this._actionBar.push(new m.a("diffreview.close",n.a("label.close","Close"),"close-diff-review "+x.d.asClassName(T),!0,()=>N(this,void 0,void 0,(function*(){return this.hide()}))),{label:!1,icon:!0}),this.domNode=Object(r.b)(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Object(r.b)(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new p.a(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff(()=>{this._isVisible&&(this._diffs=this._compute(),this._render())})),this._register(e.getModifiedEditor().onDidChangeCursorPosition(()=>{this._isVisible&&this._render()})),this._register(o.o(this.domNode.domNode,"click",e=>{e.preventDefault(),e=o.x(e.target,"diff-review-row"),e&&this._goToRow(e)})),this._register(o.o(this.domNode.domNode,"keydown",e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._goToRow(this._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._goToRow(this._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let t=-1;for(let e=0,i=this._diffs.length;e<i;e++)if(this._diffs[e]===this._currentDiff){t=e;break}e=this._diffs.length+t-1}else e=this._findDiffIndex(this._diffEditor.getPosition());var t;0!==this._diffs.length&&(e%=this._diffs.length,t=this._diffs[e].entries,this._diffEditor.setPosition(new v.a(t[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:t[0].modifiedLineStart,endColumn:1073741824,endLineNumber:t[t.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))}next(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let t=-1;for(let e=0,i=this._diffs.length;e<i;e++)if(this._diffs[e]===this._currentDiff){t=e;break}e=t+1}else e=this._findDiffIndex(this._diffEditor.getPosition());var t;0!==this._diffs.length&&(e%=this._diffs.length,t=this._diffs[e].entries,this._diffEditor.setPosition(new v.a(t[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:t[0].modifiedLineStart,endColumn:1073741824,endLineNumber:t[t.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))}accept(){let e=-1;var t=this._getCurrentFocusedRow();t&&(t=parseInt(t.getAttribute("data-line"),10),isNaN(t)||(e=t)),this.hide(),-1!==e&&(this._diffEditor.setPosition(new v.a(e,1)),this._diffEditor.revealPosition(new v.a(e,1),1))}hide(){this._isVisible=!1,this._diffEditor.updateOptions({readOnly:!1}),this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()}_getPrevRow(){var e=this._getCurrentFocusedRow();return e?e.previousElementSibling||e:this._getFirstRow()}_getNextRow(){var e=this._getCurrentFocusedRow();return e?e.nextElementSibling||e:this._getFirstRow()}_getFirstRow(){return this.domNode.domNode.querySelector(".diff-review-row")}_getCurrentFocusedRow(){var e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null}_goToRow(e){var t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()}isVisible(){return this._isVisible}layout(e,t,i){this._width=t,this.shadow.setTop(e-6),this.shadow.setWidth(t),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(e),this.domNode.setWidth(t),this.domNode.setHeight(i),this._content.setHeight(i),this._content.setWidth(t),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))}_compute(){var e,t,i=this._diffEditor.getLineChanges();return i&&0!==i.length&&(e=this._diffEditor.getOriginalEditor().getModel(),t=this._diffEditor.getModifiedEditor().getModel(),e)&&t?A._mergeAdjacent(i,e.getLineCount(),t.getLineCount()):[]}static _mergeAdjacent(e,t,i){if(!e||0===e.length)return[];let n=[],o=0;for(let v=0,C=e.length;v<C;v++){var r=e[v],s=r.originalStartLineNumber,a=r.originalEndLineNumber,l=r.modifiedStartLineNumber;r=r.modifiedEndLineNumber;let g=[],p=0;{var d,h=0===a?s:s-1,c=0===r?l:l-1;let t=1,i=1,n=(0<v&&(d=e[v-1],t=0===d.originalEndLineNumber?d.originalStartLineNumber+1:d.originalEndLineNumber+1,i=0===d.modifiedEndLineNumber?d.modifiedStartLineNumber+1:d.modifiedEndLineNumber+1),h-3+1),o=c-3+1;n<t&&(d=t-n,n+=d,o+=d),o<i&&(u=i-o,n+=u,o+=u),g[p++]=new O(n,h,o,c)}0!==a&&(g[p++]=new O(s,a,0,0)),0!==r&&(g[p++]=new O(0,0,l,r));{var u=0===a?s+1:a+1;h=0===r?l+1:r+1;let n=t,o=i,d=(v+1<C&&(c=e[v+1],n=0===c.originalEndLineNumber?c.originalStartLineNumber:c.originalStartLineNumber-1,o=0===c.modifiedEndLineNumber?c.modifiedStartLineNumber:c.modifiedStartLineNumber-1),u+3-1),m=h+3-1;d>n&&(s=n-d,d+=s,m+=s),m>o&&(a=o-m,d+=a,m+=a),g[p++]=new O(u,d,h,m)}n[o++]=new E(g)}let g=n[0].entries,p=[],m=0;for(let v=1,C=n.length;v<C;v++){var f=n[v].entries,_=g[g.length-1],b=f[0];0===_.getType()&&0===b.getType()&&b.originalLineStart<=_.originalLineEnd?(g[g.length-1]=new O(_.originalLineStart,b.originalLineEnd,_.modifiedLineStart,b.modifiedLineEnd),g=g.concat(f.slice(1))):(p[m++]=new E(g),g=f)}return p[m++]=new E(g),p}_findDiffIndex(e){var t=e.lineNumber;for(let n=0,o=this._diffs.length;n<o;n++){var i=this._diffs[n].entries;if(t<=i[i.length-1].modifiedLineEnd)return n}return 0}_render(){var e=this._diffEditor.getOriginalEditor().getOptions(),t=this._diffEditor.getModifiedEditor().getOptions(),i=this._diffEditor.getOriginalEditor().getModel(),r=this._diffEditor.getModifiedEditor().getModel(),s=i.getOptions(),a=r.getOptions();if(this._isVisible&&i&&r){this._diffEditor.updateOptions({readOnly:!0});var l=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[l]!==this._currentDiff){this._currentDiff=this._diffs[l];var h=this._diffs[l].entries,c=document.createElement("div");c.className="diff-review-table",c.setAttribute("role","list"),c.setAttribute("aria-label",'Difference review. Use "Stage | Unstage | Revert Selected Ranges" commands'),d.a.applyFontInfoSlow(c,t.get(42));let S=0,L=0,x=0,k=0;for(let e=0,t=h.length;e<t;e++){var u=h[e],g=u.originalLineStart,p=u.originalLineEnd,m=u.modifiedLineStart;u=u.modifiedLineEnd;0!==g&&(0===S||g<S)&&(S=g),0!==p&&(0===L||p>L)&&(L=p),0!==m&&(0===x||m<x)&&(x=m),0!==u&&(0===k||u>k)&&(k=u)}var f=document.createElement("div"),_=(f.className="diff-review-row",document.createElement("div")),b=(_.className="diff-review-cell diff-review-summary",L-S+1),v=k-x+1,C=(_.appendChild(document.createTextNode(`${l+1}/${this._diffs.length}: @@ -${S},${b} +${x},${v} @@`)),f.setAttribute("data-line",String(x)),e=>0===e?n.a("no_lines_changed","no lines changed"):1===e?n.a("one_line_changed","1 line changed"):n.a("more_lines_changed","{0} lines changed",e)),w=(b=C(b),C=C(v),f.setAttribute("aria-label",n.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",l+1,this._diffs.length,S,b,x,C)),f.appendChild(_),f.setAttribute("role","listitem"),c.appendChild(f),t.get(58));let D=x;for(let n=0,o=h.length;n<o;n++){var y=h[n];A._renderSection(c,y,D,w,this._width,e,i,s,t,r,a),0!==y.modifiedLineStart&&(D=y.modifiedLineEnd)}o.t(this._content.domNode),this._content.domNode.appendChild(c),this.scrollbar.scanDomNode()}}else o.t(this._content.domNode),this._currentDiff=null,this.scrollbar.scanDomNode()}static _renderSection(e,t,i,o,r,s,a,l,d,h,c){var u=t.getType();let g="diff-review-row",p="",m=null;switch(u){case 1:g="diff-review-row line-insert",p=" char-insert",m=I;break;case 2:g="diff-review-row line-delete",p=" char-delete",m=M}var f=t.originalLineStart,_=t.originalLineEnd,b=t.modifiedLineStart,v=(t=t.modifiedLineEnd,Math.max(t-b,_-f)),C=(t=s.get(130),t.glyphMarginWidth+t.lineNumbersWidth),w=(_=d.get(130),10+_.glyphMarginWidth+_.lineNumbersWidth);for(let O=0;O<=v;O++){var y,S=0===f?0:f+O,L=0===b?0:b+O,k=document.createElement("div"),D=(k.style.minWidth=r+"px",k.className=g,k.setAttribute("role","listitem"),0!==L&&(i=L),k.setAttribute("data-line",String(i)),document.createElement("div")),N=(D.className="diff-review-cell",D.style.height=o+"px",k.appendChild(D),document.createElement("span"));N=(N.style.width=C+"px",N.style.minWidth=C+"px",N.className="diff-review-line-number"+p,0!==S?N.appendChild(document.createTextNode(String(S))):N.innerText=" ",D.appendChild(N),document.createElement("span")),N=(N.style.width=w+"px",N.style.minWidth=w+"px",N.style.paddingRight="10px",N.className="diff-review-line-number"+p,0!==L?N.appendChild(document.createTextNode(String(L))):N.innerText=" ",D.appendChild(N),document.createElement("span"));let t;if(N.className="diff-review-spacer",m?((y=document.createElement("span")).className=x.d.asClassName(m),y.innerText="  ",N.appendChild(y)):N.innerText="  ",D.appendChild(N),0!==L){let e=this._renderLine(h,d,c.tabSize,L);A._ttPolicy&&(e=A._ttPolicy.createHTML(e)),D.insertAdjacentHTML("beforeend",e),t=h.getLineContent(L)}else{let e=this._renderLine(a,s,l.tabSize,S);A._ttPolicy&&(e=A._ttPolicy.createHTML(e)),D.insertAdjacentHTML("beforeend",e),t=a.getLineContent(S)}0===t.length&&(t=n.a("blankLine","blank"));let _="";switch(u){case 0:_=S===L?n.a({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",t,S):n.a("equalLine","{0} original line {1} modified line {2}",t,S,L);break;case 1:_=n.a("insertLine","+ {0} modified line {1}",t,L);break;case 2:_=n.a("deleteLine","- {0} original line {1}",t,S)}k.setAttribute("aria-label",_),e.appendChild(k)}}static _renderLine(e,t,i,n){n=e.getLineContent(n);var o=t.get(42),r=b.a.createEmpty(n),s=y.f.isBasicASCII(n,e.mightContainNonBasicASCII());e=y.f.containsRTL(n,s,e.mightContainRTL());return Object(w.e)(new w.c(o.isMonospace&&!t.get(28),o.canUseHalfwidthRightwardsArrow,n,!1,s,e,0,r,[],i,0,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,t.get(105),t.get(88),t.get(82),t.get(43)!==_.e.OFF,null)).html}}A._ttPolicy=null==(V=window.trustedTypes)?void 0:V.createPolicy("diffReview",{createHTML:e=>e}),Object(x.f)((e,t)=>{var i=e.getColor(C.r);i&&t.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${i}; }`),i=e.getColor(L.yc);i&&t.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${i} 0 -6px 6px -6px inset; }`)});class R extends f.b{constructor(){super({id:"editor.action.diffReview.next",label:n.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:S.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){e=F(e),e&&e.diffReviewNext()}}class P extends f.b{constructor(){super({id:"editor.action.diffReview.prev",label:n.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:S.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){e=F(e),e&&e.diffReviewPrev()}}function F(e){e=e.get(c.a);var t=e.listDiffEditors(),i=e.getActiveCodeEditor();if(i)for(let o=0,r=t.length;o<r;o++){var n=t[o];if(n.getModifiedEditor().getId()===i.getId()||n.getOriginalEditor().getId()===i.getId())return n}return null}Object(f.j)(R),Object(f.j)(P);var B=i("6a89"),j=i("7ab3"),W=i("8ae8"),V=i("b57f"),H=i("a40b"),z=i("32f2"),U=i("7416"),K=i("0a0f"),q=i("f07b"),$=i("b0cd"),G=i("533b"),Z=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class Y extends t.a{constructor(e,t,i,r,s,a){super(),this._viewZoneId=e,this._marginDomNode=t,this.editor=i,this.diff=r,this._contextMenuService=s,this._clipboardService=a,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=k.b.lightBulb.classNames+" lightbulb-glyph",this._diffActions.style.position="absolute";const l=i.getOption(58),d=i.getModel().getEOL(),h=(this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=l+"px",this._diffActions.style.lineHeight=l+"px",this._marginDomNode.appendChild(this._diffActions),[]);h.push(new m.a("diff.clipboard.copyDeletedContent",r.originalEndLineNumber>r.modifiedStartLineNumber?n.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):n.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,()=>Z(this,void 0,void 0,(function*(){var e=new B.a(r.originalStartLineNumber,1,r.originalEndLineNumber+1,1);e=r.originalModel.getValueInRange(e);yield this._clipboardService.writeText(e)}))));let c=0,u=void 0;r.originalEndLineNumber>r.modifiedStartLineNumber&&(u=new m.a("diff.clipboard.copyDeletedLineContent",n.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",r.originalStartLineNumber),void 0,!0,()=>Z(this,void 0,void 0,(function*(){var e=r.originalModel.getLineContent(r.originalStartLineNumber+c);yield this._clipboardService.writeText(e)}))),h.push(u)),i.getOption(80)||h.push(new m.a("diff.inline.revertChange",n.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>Z(this,void 0,void 0,(function*(){var e,t=new B.a(r.originalStartLineNumber,1,r.originalEndLineNumber,r.originalModel.getLineMaxColumn(r.originalEndLineNumber));t=r.originalModel.getValueInRange(t);0===r.modifiedEndLineNumber?(e=i.getModel().getLineMaxColumn(r.modifiedStartLineNumber),i.executeEdits("diffEditor",[{range:new B.a(r.modifiedStartLineNumber,e,r.modifiedStartLineNumber,e),text:d+t}])):(e=i.getModel().getLineMaxColumn(r.modifiedEndLineNumber),i.executeEdits("diffEditor",[{range:new B.a(r.modifiedStartLineNumber,1,r.modifiedEndLineNumber,e),text:t}]))}))));const g=(e,t)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:e,y:t}),getActions:()=>(u&&(u.label=n.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",r.originalStartLineNumber+c)),h),autoSelectFirstItem:!0})};this._register(o.o(this._diffActions,"mousedown",e=>{var{top:t,height:i}=o.D(this._diffActions),n=Math.floor(l/3);e.preventDefault(),g(e.posx,t+i+n)})),this._register(i.onMouseMove(e=>{8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId!==this._viewZoneId?this.visibility=!1:(this.visibility=!0,c=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l))})),this._register(i.onMouseDown(e=>{!e.event.rightButton||8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId===this._viewZoneId&&(e.event.preventDefault(),c=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l),g(e.event.posx,e.event.posy+l))}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}_updateLightBulbPosition(e,t,i){e=o.D(e)["top"];var n=Math.floor((t-e)/i);if(this._diffActions.style.top=n*i+"px",this.diff.viewLineCounts){let e=0;for(let t=0;t<this.diff.viewLineCounts.length;t++)if(n<(e+=this.diff.viewLineCounts[t]))return t}return n}}var X=i("f577"),Q=i("fdcc"),J=i("b539"),ee=i("a37f"),te=i("e75b"),ie=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});class ne{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter(e=>!this._zonesMap[String(e.id)])}clean(e){0<this._zones.length&&e.changeViewZones(e=>{for(const t of this._zones)e.removeZone(t)}),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])}apply(e,t,i,n){n=n?h.c.capture(e):null,e.changeViewZones(t=>{for(const e of this._zones)t.removeZone(e);for(const e of this._inlineDiffMargins)e.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let r=0,s=i.zones.length;r<s;r++){var n=i.zones[r],o=(n.suppressMouseDown=!0,t.addZone(n));this._zones.push(o),this._zonesMap[String(o)]=!0,i.zones[r].diff&&n.marginDomNode&&(n.suppressMouseDown=!1,this._inlineDiffMargins.push(new Y(o,n.marginDomNode,e,i.zones[r].diff,this._contextMenuService,this._clipboardService)))}}),n&&n.restore(e),this._decorations=e.deltaDecorations(this._decorations,i.decorations),t&&t.setZones(i.overviewZones)}}let oe=0;var re=Object(D.b)("diff-insert",k.b.add,n.a("diffInsertIcon","Line decoration for inserts in the diff editor."));const se=Object(D.b)("diff-remove",k.b.remove,n.a("diffRemoveIcon","Line decoration for removals in the diff editor.")),ae=null==(D=window.trustedTypes)?void 0:D.createPolicy("diffEditorWidget",{createHTML:e=>e});let le=class e extends t.a{constructor(t,i,n,s,d,h,c,u,g,p,m,b){super(),this._editorProgressService=b,this._onDidDispose=this._register(new l.b),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new l.b),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new l.b),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=d,this._codeEditorService=u,this._contextKeyService=this._register(h.createScoped(t)),this._instantiationService=c.createChild(new q.a([S.b,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=g,this._notificationService=p,this._id=++oe,this._state=0,this._updatingDiffProgress=null,this._domElement=t,i=i||{},this._renderSideBySide=!0,void 0!==i.renderSideBySide&&(this._renderSideBySide=i.renderSideBySide),this._maxComputationTime=5e3,void 0!==i.maxComputationTime&&(this._maxComputationTime=i.maxComputationTime),this._ignoreTrimWhitespace=!0,void 0!==i.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=i.ignoreTrimWhitespace),this._renderIndicators=!0,void 0!==i.renderIndicators&&(this._renderIndicators=i.renderIndicators),this._originalIsEditable=Object(_.k)(i.originalEditable,!1),this._diffCodeLens=Object(_.k)(i.diffCodeLens,!1),this._diffWordWrap=be(i.diffWordWrap,"inherit"),void 0!==i.isInEmbeddedEditor?this._contextKeyService.createKey("isInEmbeddedDiffEditor",i.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._renderOverviewRuler=!0,void 0!==i.renderOverviewRuler&&(this._renderOverviewRuler=Boolean(i.renderOverviewRuler)),this._updateDecorationsRunner=this._register(new a.e(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Object(r.b)(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(o.o(this._overviewDomElement,"mousedown",e=>{this._modifiedEditor.delegateVerticalScrollbarMouseDown(e)})),this._renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new ne(m,s),this._modifiedEditorState=new ne(m,s),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new ee.a(this._containerDomElement,i.dimension,()=>this._onDidContainerSizeChanged())),i.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(i,n.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(i,n.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=new A(this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._enableSplitViewResizing=!0,void 0!==i.enableSplitViewResizing&&(this._enableSplitViewResizing=i.enableSplitViewResizing),this._renderSideBySide?this._setStrategy(new pe(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new fe(this._createDataSource(),this._enableSplitViewResizing)),this._register(g.onDidColorThemeChange(t=>{this._strategy&&this._strategy.applyColors(t)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide)}));for(const e of f.d.getDiffEditorContributions())try{this._register(c.createInstance(e.ctor,this))}catch(t){Object(Q.f)(t)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),1===this._state)&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let i="monaco-diff-editor monaco-editor-background ";return t&&(i+="side-by-side "),i+Object(x.e)(e.type)}_recreateOverviewRulers(){this._renderOverviewRuler&&(this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(t,i){const n=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(t),i),o=(this._register(n.onDidScrollChange(e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(n.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(n.onDidChangeConfiguration(e=>{n.getModel()&&(e.hasChanged(42)&&this._updateDecorationsRunner.schedule(),e.hasChanged(131))&&(this._updateDecorationsRunner.cancel(),this._updateDecorations())})),this._register(n.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._contextKeyService.createKey("isInDiffLeftEditor",n.hasWidgetFocus()));return this._register(n.onDidFocusEditorWidget(()=>o.set(!0))),this._register(n.onDidBlurEditorWidget(()=>o.set(!1))),this._register(n.onDidContentSizeChange(t=>{var i=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,n=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:n,contentWidth:i,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})})),n}_createRightHandSideEditor(t,i){const n=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(t),i),o=(this._register(n.onDidScrollChange(e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(n.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(n.onDidChangeConfiguration(e=>{n.getModel()&&(e.hasChanged(42)&&this._updateDecorationsRunner.schedule(),e.hasChanged(131))&&(this._updateDecorationsRunner.cancel(),this._updateDecorations())})),this._register(n.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(n.onDidChangeModelOptions(e=>{e.tabSize&&this._updateDecorationsRunner.schedule()})),this._contextKeyService.createKey("isInDiffRightEditor",n.hasWidgetFocus()));return this._register(n.onDidFocusEditorWidget(()=>o.set(!0))),this._register(n.onDidBlurEditorWidget(()=>o.set(!1))),this._register(n.onDidContentSizeChange(t=>{var i=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,n=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:n,contentWidth:i,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})})),n}_createInnerEditor(e,t,i,n){return e.createInstance(u.a,t,i,n)}dispose(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._renderOverviewRuler&&this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this._originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this._modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return W.a.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this._originalEditor}getModifiedEditor(){return this._modifiedEditor}updateOptions(t){let i=!1,n=(void 0!==t.renderSideBySide&&this._renderSideBySide!==t.renderSideBySide&&(this._renderSideBySide=t.renderSideBySide,i=!0),void 0!==t.maxComputationTime&&(this._maxComputationTime=t.maxComputationTime,this._isVisible)&&this._beginUpdateDecorationsSoon(),!1);void 0!==t.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==t.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=t.ignoreTrimWhitespace,n=!0),void 0!==t.renderIndicators&&this._renderIndicators!==t.renderIndicators&&(this._renderIndicators=t.renderIndicators,n=!0),n&&this._beginUpdateDecorations(),this._originalIsEditable=Object(_.k)(t.originalEditable,this._originalIsEditable),this._diffCodeLens=Object(_.k)(t.diffCodeLens,this._diffCodeLens),this._diffWordWrap=be(t.diffWordWrap,this._diffWordWrap),this._modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(t)),this._originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(t)),void 0!==t.enableSplitViewResizing&&(this._enableSplitViewResizing=t.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),i&&(this._renderSideBySide?this._setStrategy(new pe(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new fe(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide)),void 0!==t.renderOverviewRuler&&this._renderOverviewRuler!==t.renderOverviewRuler&&(this._renderOverviewRuler=t.renderOverviewRuler,this._renderOverviewRuler?this._containerDomElement.appendChild(this._overviewDomElement):this._containerDomElement.removeChild(this._overviewDomElement))}getModel(){return{original:this._originalEditor.getModel(),modified:this._modifiedEditor.getModel()}}setModel(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this._originalEditor.setModel(e?e.original:null),this._modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this._originalEditor.setScrollTop(0),this._modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),e&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getDomNode(){return this._domElement}getVisibleColumnFromPosition(e){return this._modifiedEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._modifiedEditor.getPosition()}setPosition(e){this._modifiedEditor.setPosition(e)}revealLine(e,t=0){this._modifiedEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._modifiedEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._modifiedEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._modifiedEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._modifiedEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._modifiedEditor.revealPositionNearTop(e,t)}getSelection(){return this._modifiedEditor.getSelection()}getSelections(){return this._modifiedEditor.getSelections()}setSelection(e){this._modifiedEditor.setSelection(e)}setSelections(e){this._modifiedEditor.setSelections(e)}revealLines(e,t,i=0){this._modifiedEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._modifiedEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._modifiedEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,n=!0){this._modifiedEditor.revealRange(e,t,i,n)}revealRangeInCenter(e,t=0){this._modifiedEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._modifiedEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._modifiedEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._modifiedEditor.getSupportedActions()}saveViewState(){return{original:this._originalEditor.saveViewState(),modified:this._modifiedEditor.saveViewState()}}restoreViewState(e){e&&e.original&&e.modified&&(this._originalEditor.restoreViewState((e=e).original),this._modifiedEditor.restoreViewState(e.modified))}layout(e){this._elementSizeObserver.observe(e)}focus(){this._modifiedEditor.focus()}hasTextFocus(){return this._originalEditor.hasTextFocus()||this._modifiedEditor.hasTextFocus()}trigger(e,t,i){this._modifiedEditor.trigger(e,t,i)}changeDecorations(e){return this._modifiedEditor.changeDecorations(e)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){var t,i,n;this._renderOverviewRuler&&this._originalOverviewRuler&&this._modifiedOverviewRuler&&(t=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),n=e.ENTIRE_DIFF_OVERVIEW_WIDTH-2*e.ONE_OVERVIEW_WIDTH,this._modifiedEditor.getLayoutInfo())&&(this._originalOverviewRuler.setLayout({top:0,width:e.ONE_OVERVIEW_WIDTH,right:n+e.ONE_OVERVIEW_WIDTH,height:t-i}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:e.ONE_OVERVIEW_WIDTH,height:t-i}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(()=>this._beginUpdateDecorations(),e.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const t=this._originalEditor.getModel(),i=this._modifiedEditor.getModel();if(t&&i){this._diffComputationToken++;const o=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(t.uri,i.uri)?this._editorWorkerService.computeDiff(t.uri,i.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(e=>{o===this._diffComputationToken&&t===this._originalEditor.getModel()&&i===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=e,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},e=>{o===this._diffComputationToken&&t===this._originalEditor.getModel()&&i===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())}):e._equals(t.uri,this._lastOriginalWarning)&&e._equals(i.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=i.uri,this._notificationService.warn(n.a("diff.tooLarge","Cannot compare files because one file is too large.")))}}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(this._originalEditor.getModel()&&this._modifiedEditor.getModel()){var e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),i=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces());e=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,t,i);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,e.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,e.modified,!0)}finally{this._currentlyChangingViewZones=!1}}}_adjustOptionsForSubEditor(e){return e=Object.assign({},e),e.inDiffEditor=!0,e.automaticLayout=!1,e.scrollbar=Object.assign({},e.scrollbar||{}),e.scrollbar.vertical="visible",e.folding=!1,e.codeLens=this._diffCodeLens,e.fixedOverflowWidgets=!0,e.minimap=Object.assign({},e.minimap||{}),e.minimap.enabled=!1,e}_adjustOptionsForLeftHandSide(e){var t=this._adjustOptionsForSubEditor(e);return this._renderSideBySide?t.wordWrapOverride1=this._diffWordWrap:t.wordWrapOverride1="off",e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._originalIsEditable,t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(t){var i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.wordWrapOverride1=this._diffWordWrap,i.revealHorizontalRightPadding=_.g.revealHorizontalRightPadding.defaultValue+e.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},i),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){var t=this._elementSizeObserver.getWidth(),i=this._elementSizeObserver.getHeight(),n=this._getReviewHeight(),o=this._strategy.layout();this._originalDomNode.style.width=o+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=t-o+"px",this._modifiedDomNode.style.left=o+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=i-n+"px",this._overviewDomElement.style.width=e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=t-e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(e.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:o,height:i-n}),this._modifiedEditor.layout({width:t-o-(this._renderOverviewRuler?e.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:i-n}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(i-n,t,n),this._layoutOverviewViewport()}_layoutOverviewViewport(){var e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){var e,t,i,n=this._modifiedEditor.getLayoutInfo();return n?(e=this._modifiedEditor.getScrollTop(),t=this._modifiedEditor.getScrollHeight(),i=Math.max(0,n.height),i=Math.max(0,+i),i=0<t?i/t:0,{height:Math.max(0,Math.floor(n.height*i)),top:Math.floor(e*i)}):null}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),(this._strategy=e).applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){var i=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===i.length||e<t(i[0]))return null;let n=0,o=i.length-1;for(;n<o;){var r=Math.floor((n+o)/2),s=t(i[r]),a=r+1<=o?t(i[r+1]):1073741824;e<s?o=r-1:a<=e?n=r+1:(n=r,o=r)}return i[n]}_getEquivalentLineForOriginalLineNumber(e){var t,i,n,o=this._getLineChangeAtOrBeforeLineNumber(e,e=>e.originalStartLineNumber);return o?(n=o.originalStartLineNumber+(0<o.originalEndLineNumber?-1:0),t=o.modifiedStartLineNumber+(0<o.modifiedEndLineNumber?-1:0),i=0<o.originalEndLineNumber?o.originalEndLineNumber-o.originalStartLineNumber+1:0,o=0<o.modifiedEndLineNumber?o.modifiedEndLineNumber-o.modifiedStartLineNumber+1:0,(n=e-n)<=i?t+Math.min(n,o):t+o-i+n):e}_getEquivalentLineForModifiedLineNumber(e){var t,i,n,o=this._getLineChangeAtOrBeforeLineNumber(e,e=>e.modifiedStartLineNumber);return o?(t=o.originalStartLineNumber+(0<o.originalEndLineNumber?-1:0),n=o.modifiedStartLineNumber+(0<o.modifiedEndLineNumber?-1:0),i=0<o.originalEndLineNumber?o.originalEndLineNumber-o.originalStartLineNumber+1:0,(n=e-n)<=(o=0<o.modifiedEndLineNumber?o.modifiedEndLineNumber-o.modifiedStartLineNumber+1:0)?t+Math.min(n,i):t+i-o+n):e}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};le.ONE_OVERVIEW_WIDTH=15,le.ENTIRE_DIFF_OVERVIEW_WIDTH=30,le.UPDATE_DIFF_DECORATIONS_DELAY=200,le=i([ie(3,X.a),ie(4,H.a),ie(5,S.b),ie(6,K.a),ie(7,c.a),ie(8,x.b),ie(9,$.a),ie(10,G.a),ie(11,J.a)],le);class de extends t.a{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){var t=(e.getColor(L.m)||L.i).transparent(2),i=(e=(e.getColor(L.o)||L.j).transparent(2),!t.equals(this._insertColor)||!e.equals(this._removeColor));return this._insertColor=t,this._removeColor=e,i}getEditorsDiffDecorations(e,t,i,n,o){return o=o.sort((e,t)=>e.afterLineNumber-t.afterLineNumber),n=n.sort((e,t)=>e.afterLineNumber-t.afterLineNumber),n=this._getViewZones(e,n,o,i),o=this._getOriginalEditorDecorations(e,t,i),e=this._getModifiedEditorDecorations(e,t,i),{original:{decorations:o.decorations,overviewZones:o.overviewZones,zones:n.original},modified:{decorations:e.decorations,overviewZones:e.overviewZones,zones:n.modified}}}}class he{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null}}class ce{constructor(e,t,i,n,o){this._lineChanges=e,this._originalForeignVZ=t,this._modifiedForeignVZ=i,this._originalEditor=n,this._modifiedEditor=o}static _getViewLineCount(e,t,i){var n=e.getModel();e=e._getViewModel();return n&&e?(n=ye(n,e,t,i)).endLineNumber-n.startLineNumber+1:i-t+1}getViewZones(){var e=this._originalEditor.getOption(58),t=this._modifiedEditor.getOption(58),i=-1!==this._originalEditor.getOption(131).wrappingColumn,n=-1!==this._modifiedEditor.getOption(131).wrappingColumn,o=i||n,r=this._originalEditor.getModel(),s=this._originalEditor._getViewModel().coordinatesConverter,a=this._modifiedEditor._getViewModel().coordinatesConverter;const l=[],d=[];let h=0,c=0,u=0,g=0,p=0,m=0;var f=(e,t)=>e.afterLineNumber-t.afterLineNumber,_=(e,t)=>{if(null===t.domNode&&0<e.length){var i=e[e.length-1];if(i.afterLineNumber===t.afterLineNumber&&null===i.domNode)return void(i.heightInLines+=t.heightInLines)}e.push(t)},b=new he(this._modifiedForeignVZ),v=new he(this._originalForeignVZ);let C=1,w=1;for(let M=0,T=this._lineChanges.length;M<=T;M++){var y,S=M<T?this._lineChanges[M]:null;m=null!==S?(u=S.originalStartLineNumber+(0<S.originalEndLineNumber?-1:0),g=S.modifiedStartLineNumber+(0<S.modifiedEndLineNumber?-1:0),c=0<S.originalEndLineNumber?ce._getViewLineCount(this._originalEditor,S.originalStartLineNumber,S.originalEndLineNumber):0,h=0<S.modifiedEndLineNumber?ce._getViewLineCount(this._modifiedEditor,S.modifiedStartLineNumber,S.modifiedEndLineNumber):0,p=Math.max(S.originalStartLineNumber,S.originalEndLineNumber),Math.max(S.modifiedStartLineNumber,S.modifiedEndLineNumber)):(u+=1e7+c,g+=1e7+h,p=u,g);let i=[],n=[];if(o){let e;e=S?0<S.originalEndLineNumber?S.originalStartLineNumber-C:S.modifiedStartLineNumber-w:r.getLineCount()-C;for(let t=0;t<e;t++){var L=C+t,x=w+t,k=s.getModelLineViewLineCount(L),D=a.getModelLineViewLineCount(x);k<D?i.push({afterLineNumber:L,heightInLines:D-k,domNode:null,marginDomNode:null}):D<k&&n.push({afterLineNumber:x,heightInLines:k-D,domNode:null,marginDomNode:null})}S&&(C=(0<S.originalEndLineNumber?S.originalEndLineNumber:S.originalStartLineNumber)+1,w=(0<S.modifiedEndLineNumber?S.modifiedEndLineNumber:S.modifiedStartLineNumber)+1)}for(;b.current&&b.current.afterLineNumber<=m;){let e,n=(e=b.current.afterLineNumber<=g?u-g+b.current.afterLineNumber:p,null);S&&S.modifiedStartLineNumber<=b.current.afterLineNumber&&b.current.afterLineNumber<=S.modifiedEndLineNumber&&(n=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),i.push({afterLineNumber:e,heightInLines:b.current.height/t,domNode:null,marginDomNode:n}),b.advance()}for(;v.current&&v.current.afterLineNumber<=p;){let t;t=v.current.afterLineNumber<=u?g-u+v.current.afterLineNumber:m,n.push({afterLineNumber:t,heightInLines:v.current.height/e,domNode:null}),v.advance()}null!==S&&ve(S)&&(y=this._produceOriginalFromDiff(S,c,h))&&i.push(y),null!==S&&Ce(S)&&(y=this._produceModifiedFromDiff(S,c,h))&&n.push(y);let A=0,R=0;for(i=i.sort(f),n=n.sort(f);A<i.length&&R<n.length;){var N=i[A],O=n[R],E=N.afterLineNumber-u,I=O.afterLineNumber-g;E<I?(_(l,N),A++):I<E?(_(d,O),R++):N.shouldNotShrink?(_(l,N),A++):O.shouldNotShrink?(_(d,O),R++):N.heightInLines>=O.heightInLines?(N.heightInLines-=O.heightInLines,R++):(O.heightInLines-=N.heightInLines,A++)}for(;A<i.length;)_(l,i[A]),A++;for(;R<n.length;)_(d,n[R]),R++}return{original:ce._ensureDomNodes(l),modified:ce._ensureDomNodes(d)}}static _ensureDomNodes(e){return e.map(e=>(e.domNode||(e.domNode=we()),e))}}function ue(e,t,i,n,o){return{range:new B.a(e,t,i,n),options:o}}const ge={charDelete:V.a.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:V.a.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:V.a.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:V.a.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:V.a.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:V.a.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+x.d.asClassName(re),marginClassName:"line-insert",isWholeLine:!0}),lineDelete:V.a.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:V.a.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+x.d.asClassName(se),marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:V.a.register({description:"diff-editor-line-delete-margin",marginClassName:"line-delete"})};class pe extends de{constructor(e,t){super(e),this._disableSash=!1===t,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new s.b(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this._onSashDragStart()),this._sash.onDidChange(e=>this._onSashDrag(e)),this._sash.onDidEnd(()=>this._onSashDragEnd()),this._sash.onDidReset(()=>this._onSashReset())}setEnableSplitViewResizing(e){e=!1===e,this._disableSash!==e&&(this._disableSash=e,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){var t=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?le.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let i=Math.floor((e||.5)*t);return e=Math.floor(.5*t),i=!this._disableSash&&i||e,t>2*pe.MINIMUM_EDITOR_WIDTH?(i=i<pe.MINIMUM_EDITOR_WIDTH?pe.MINIMUM_EDITOR_WIDTH:i)>t-pe.MINIMUM_EDITOR_WIDTH&&(i=t-pe.MINIMUM_EDITOR_WIDTH):i=e,this._sashPosition!==i&&(this._sashPosition=i,this._sash.layout()),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){var t=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?le.ENTIRE_DIFF_OVERVIEW_WIDTH:0);e=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=e/t,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,i){var n=this._dataSource.getOriginalEditor(),o=this._dataSource.getModifiedEditor();return new me(e,t,i,n,o).getViewZones()}_getOriginalEditorDecorations(e,t,i){var n=this._dataSource.getOriginalEditor(),o=String(this._removeColor),r={decorations:[],overviewZones:[]},s=n.getModel(),a=n._getViewModel();for(const d of e)if(Ce(d)){r.decorations.push({range:new B.a(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824),options:i?ge.lineDeleteWithSign:ge.lineDelete}),ve(d)&&d.charChanges||r.decorations.push(ue(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824,ge.charDeleteWholeLine));var l=ye(s,a,d.originalStartLineNumber,d.originalEndLineNumber);if(r.overviewZones.push(new z.a(l.startLineNumber,l.endLineNumber,o)),d.charChanges)for(const e of d.charChanges)if(Ce(e))if(t)for(let t=e.originalStartLineNumber;t<=e.originalEndLineNumber;t++){let i,n;i=t===e.originalStartLineNumber?e.originalStartColumn:s.getLineFirstNonWhitespaceColumn(t),n=t===e.originalEndLineNumber?e.originalEndColumn:s.getLineLastNonWhitespaceColumn(t),r.decorations.push(ue(t,i,t,n,ge.charDelete))}else r.decorations.push(ue(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn,ge.charDelete))}return r}_getModifiedEditorDecorations(e,t,i){var n=this._dataSource.getModifiedEditor(),o=String(this._insertColor),r={decorations:[],overviewZones:[]},s=n.getModel(),a=n._getViewModel();for(const d of e)if(ve(d)){r.decorations.push({range:new B.a(d.modifiedStartLineNumber,1,d.modifiedEndLineNumber,1073741824),options:i?ge.lineInsertWithSign:ge.lineInsert}),Ce(d)&&d.charChanges||r.decorations.push(ue(d.modifiedStartLineNumber,1,d.modifiedEndLineNumber,1073741824,ge.charInsertWholeLine));var l=ye(s,a,d.modifiedStartLineNumber,d.modifiedEndLineNumber);if(r.overviewZones.push(new z.a(l.startLineNumber,l.endLineNumber,o)),d.charChanges)for(const e of d.charChanges)if(ve(e))if(t)for(let t=e.modifiedStartLineNumber;t<=e.modifiedEndLineNumber;t++){let i,n;i=t===e.modifiedStartLineNumber?e.modifiedStartColumn:s.getLineFirstNonWhitespaceColumn(t),n=t===e.modifiedEndLineNumber?e.modifiedEndColumn:s.getLineLastNonWhitespaceColumn(t),r.decorations.push(ue(t,i,t,n,ge.charInsert))}else r.decorations.push(ue(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn,ge.charInsert))}return r}}pe.MINIMUM_EDITOR_WIDTH=100;class me extends ce{constructor(e,t,i,n,o){super(e,t,i,n,o)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,i){return t<i?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i-t,domNode:null}:null}_produceModifiedFromDiff(e,t,i){return i<t?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-i,domNode:null}:null}}class fe extends de{constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange(t=>{this._decorationsLeft!==t.decorationsLeft&&(this._decorationsLeft=t.decorationsLeft,e.relayoutEditors())}))}setEnableSplitViewResizing(e){}_getViewZones(e,t,i,n){var o=this._dataSource.getOriginalEditor(),r=this._dataSource.getModifiedEditor();return new _e(e,t,i,o,r,n).getViewZones()}_getOriginalEditorDecorations(e,t,i){var n,o=String(this._removeColor),r={decorations:[],overviewZones:[]},s=this._dataSource.getOriginalEditor(),a=s.getModel(),l=s._getViewModel();for(const d of e)Ce(d)&&(r.decorations.push({range:new B.a(d.originalStartLineNumber,1,d.originalEndLineNumber,1073741824),options:ge.lineDeleteMargin}),n=ye(a,l,d.originalStartLineNumber,d.originalEndLineNumber),r.overviewZones.push(new z.a(n.startLineNumber,n.endLineNumber,o)));return r}_getModifiedEditorDecorations(e,t,i){var n=this._dataSource.getModifiedEditor(),o=String(this._insertColor),r={decorations:[],overviewZones:[]},s=n.getModel(),a=n._getViewModel();for(const d of e)if(ve(d)){r.decorations.push({range:new B.a(d.modifiedStartLineNumber,1,d.modifiedEndLineNumber,1073741824),options:i?ge.lineInsertWithSign:ge.lineInsert});var l=ye(s,a,d.modifiedStartLineNumber,d.modifiedEndLineNumber);if(r.overviewZones.push(new z.a(l.startLineNumber,l.endLineNumber,o)),d.charChanges){for(const e of d.charChanges)if(ve(e))if(t)for(let t=e.modifiedStartLineNumber;t<=e.modifiedEndLineNumber;t++){let i,n;i=t===e.modifiedStartLineNumber?e.modifiedStartColumn:s.getLineFirstNonWhitespaceColumn(t),n=t===e.modifiedEndLineNumber?e.modifiedEndColumn:s.getLineLastNonWhitespaceColumn(t),r.decorations.push(ue(t,i,t,n,ge.charInsert))}else r.decorations.push(ue(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn,ge.charInsert))}else r.decorations.push(ue(d.modifiedStartLineNumber,1,d.modifiedEndLineNumber,1073741824,ge.charInsertWholeLine))}return r}layout(){return Math.max(5,this._decorationsLeft)}}class _e extends ce{constructor(e,t,i,n,o,r){super(e,t,i,n,o),this._originalModel=n.getModel(),this._renderIndicators=r,this._pendingLineChange=[],this._pendingViewZones=[],this._lineBreaksComputer=this._modifiedEditor._getViewModel().createLineBreaksComputer()}getViewZones(){var e=super.getViewZones();return this._finalize(e),e}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){var e=document.createElement("div");return e.className="inline-added-margin-view-zone",e}_produceOriginalFromDiff(e,t,i){var n=document.createElement("div");return n.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i,domNode:document.createElement("div"),marginDomNode:n}}_produceModifiedFromDiff(e,t,i){var n=document.createElement("div"),o=(n.className="view-lines line-delete "+te.a,document.createElement("div"));o.className="inline-deleted-margin-view-zone",t={shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:0,domNode:n,marginDomNode:o,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalModel:this._originalModel,viewLineCounts:null}};for(let r=e.originalStartLineNumber;r<=e.originalEndLineNumber;r++)this._lineBreaksComputer.addRequest(this._originalModel.getLineContent(r),null,null);return this._pendingLineChange.push(e),this._pendingViewZones.push(t),t}_finalize(e){var t=this._modifiedEditor.getOptions(),i=this._modifiedEditor.getModel().getOptions().tabSize,n=t.get(42),o=t.get(28),r=n.typicalHalfwidthCharacterWidth,s=t.get(93),a=this._originalModel.mightContainNonBasicASCII(),l=this._originalModel.mightContainRTL(),h=t.get(58),c=t.get(130).decorationsWidth,u=t.get(105),g=t.get(88),p=t.get(82),m=t.get(43),f=this._lineBreaksComputer.finalize();let _=0;for(let P=0;P<this._pendingLineChange.length;P++){var b=this._pendingLineChange[P],v=this._pendingViewZones[P],C=v.domNode,w=(d.a.applyFontInfoSlow(C,n),v.marginDomNode),S=(d.a.applyFontInfoSlow(w,n),[]);if(b.charChanges)for(const e of b.charChanges)Ce(e)&&S.push(new y.a(new B.a(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),"char-delete",0));var L=0<S.length,x=Object(j.a)(1e4);let t=0,F=0,W=null;for(let r=b.originalStartLineNumber;r<=b.originalEndLineNumber;r++){var k=r-b.originalStartLineNumber,D=this._originalModel.getLineTokens(r),N=D.getLineContent(),O=f[_++],E=U.a.filter(S,r,1,N.length+1);if(O){let s=0;for(const e of O.breakOffsets){var I=D.sliceAndInflate(s,e,0),M=N.substring(s,e);t=Math.max(t,this._renderOriginalLine(F++,M,I,U.a.extractWrapped(E,s,e),L,a,l,n,o,h,c,u,g,p,m,i,x,w)),s=e}for(W=W||[];W.length<k;)W[W.length]=1;W[k]=O.breakOffsets.length,v.heightInLines+=O.breakOffsets.length-1;var T=document.createElement("div");T.className="line-delete",e.original.push({afterLineNumber:r,afterColumn:0,heightInLines:O.breakOffsets.length-1,domNode:we(),marginDomNode:T})}else t=Math.max(t,this._renderOriginalLine(F++,N,D,E,L,a,l,n,o,h,c,u,g,p,m,i,x,w))}t+=s;var A=x.build();A=ae?ae.createHTML(A):A;if(C.innerHTML=A,v.minWidthInPx=t*r,W)for(var R=b.originalEndLineNumber-b.originalStartLineNumber;W.length<=R;)W[W.length]=1;v.diff.viewLineCounts=W}e.original.sort((e,t)=>e.afterLineNumber-t.afterLineNumber)}_renderOriginalLine(e,t,i,n,o,r,s,a,l,d,h,c,u,g,p,m,f,b){return f.appendASCIIString('<div class="view-line'),o||f.appendASCIIString(" char-delete"),f.appendASCIIString('" style="top:'),f.appendASCIIString(String(e*d)),f.appendASCIIString('px;width:1000000px;">'),o=y.f.isBasicASCII(t,r),r=y.f.containsRTL(t,o,s),s=Object(w.d)(new w.c(a.isMonospace&&!l,a.canUseHalfwidthRightwardsArrow,t,!1,o,r,0,i,n,m,0,a.spaceWidth,a.middotWidth,a.wsmiddotWidth,c,u,g,p!==_.e.OFF,null),f),f.appendASCIIString("</div>"),this._renderIndicators&&((l=document.createElement("div")).className="delete-sign "+x.d.asClassName(se),l.setAttribute("style",`position:absolute;top:${e*d}px;width:${h}px;height:${d}px;right:0;`),b.appendChild(l)),s.characterMapping.getAbsoluteOffset(s.characterMapping.length)}}function be(e,t){return Object(_.n)(e,t,["off","on","inherit"])}function ve(e){return 0<e.modifiedEndLineNumber}function Ce(e){return 0<e.originalEndLineNumber}function we(){var e=document.createElement("div");return e.className="diagonal-fill",e}function ye(e,t,i,n){var o=e.getLineCount();return i=Math.min(o,Math.max(1,i)),n=Math.min(o,Math.max(1,n)),t.coordinatesConverter.convertModelRangeToViewRange(new B.a(i,e.getLineMinColumn(i),n,e.getLineMaxColumn(n)))}Object(x.f)((e,t)=>{var i=e.getColor(L.m);i&&(t.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { background-color: ${i}; }`),t.addRule(`.monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: ${i}; }`),t.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${i}; }`)),i=e.getColor(L.o),i&&(t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { background-color: ${i}; }`),t.addRule(`.monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: ${i}; }`),t.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${i}; }`)),i=e.getColor(L.n),i&&t.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${"hc"===e.type?"dashed":"solid"} ${i}; }`),i=e.getColor(L.p),i&&t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${"hc"===e.type?"dashed":"solid"} ${i}; }`),i=e.getColor(L.yc),i&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${i}; }`),i=e.getColor(L.k),i&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${i}; }`),i=e.getColor(L.Ac),i&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport {\n\t\t\t\tbackground: ${i};\n\t\t\t}\n\t\t`),i=e.getColor(L.Bc),i&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:hover {\n\t\t\t\tbackground: ${i};\n\t\t\t}\n\t\t`),i=e.getColor(L.zc),i&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:active {\n\t\t\t\tbackground: ${i};\n\t\t\t}\n\t\t`),i=e.getColor(L.l);t.addRule(`\n\t.monaco-editor .diagonal-fill {\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t${i} 12.5%,\n\t\t\t#0000 12.5%, #0000 50%,\n\t\t\t${i} 50%, ${i} 62.5%,\n\t\t\t#0000 62.5%, #0000 100%\n\t\t);\n\t\tbackground-size: 8px 8px;\n\t}\n\t`)})},"4acc":function(e,t,i){e.exports=function(){"use strict";function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}function i(e,t){if(e){if("string"===typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function o(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=i(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r={exports:{}};function s(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function a(e){r.exports.defaults=e}r.exports={defaults:s(),getDefaults:s,changeDefaults:a};var l=/[&<>"']/,d=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},g=function(e){return u[e]};function p(e,t){if(t){if(l.test(e))return e.replace(d,g)}else if(h.test(e))return e.replace(c,g);return e}var m=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function f(e){return e.replace(m,(function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var _=/(^|[^\[])\^/g;function b(e,t){e=e.source||e,t=t||"";var i={replace:function(t,n){return n=n.source||n,n=n.replace(_,"$1"),e=e.replace(t,n),i},getRegex:function(){return new RegExp(e,t)}};return i}var v=/[^\w:]/g,C=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function w(e,t,i){if(e){var n;try{n=decodeURIComponent(f(i)).replace(v,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!C.test(i)&&(i=k(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(e){return null}return i}var y={},S=/^[^:]+:\/*[^/]*$/,L=/^([^:]+:)[\s\S]*$/,x=/^([^:]+:\/*[^/]*)[\s\S]*$/;function k(e,t){y[" "+e]||(S.test(e)?y[" "+e]=e+"/":y[" "+e]=O(e,"/",!0)),e=y[" "+e];var i=-1===e.indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(L,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(x,"$1")+t:e+t}function D(e){for(var t,i,n=1;n<arguments.length;n++)for(i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}function N(e,t){var i=e.replace(/\|/g,(function(e,t,i){var n=!1,o=t;while(--o>=0&&"\\"===i[o])n=!n;return n?"|":" |"})),n=i.split(/ \|/),o=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else while(n.length<t)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function O(e,t,i){var n=e.length;if(0===n)return"";var o=0;while(o<n){var r=e.charAt(n-o-1);if(r!==t||i){if(r===t||!i)break;o++}else o++}return e.substr(0,n-o)}function E(e,t){if(-1===e.indexOf(t[1]))return-1;for(var i=e.length,n=0,o=0;o<i;o++)if("\\"===e[o])o++;else if(e[o]===t[0])n++;else if(e[o]===t[1]&&(n--,n<0))return o;return-1}function I(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function M(e,t){if(t<1)return"";var i="";while(t>1)1&t&&(i+=e),t>>=1,e+=e;return i+e}var T={escape:p,unescape:f,edit:b,cleanUrl:w,resolveUrl:k,noopTest:{exec:function(){}},merge:D,splitCells:N,rtrim:O,findClosingBracket:E,checkSanitizeDeprecation:I,repeatString:M},A=r.exports.defaults,R=T.rtrim,P=T.splitCells,F=T.escape,B=T.findClosingBracket;function j(e,t,i,n){var o=t.href,r=t.title?F(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?(n.state.inLink=!0,{type:"link",raw:i,href:o,title:r,text:s,tokens:n.inlineTokens(s,[])}):{type:"image",raw:i,href:o,title:r,text:F(s)}}function W(e,t){var i=e.match(/^(\s+)(?:```)/);if(null===i)return t;var n=i[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);if(null===t)return e;var i=t[0];return i.length>=n.length?e.slice(n.length):e})).join("\n")}var V=function(){function e(e){this.options=e||A}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:R(i,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var i=t[0],n=W(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:n}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var i=t[2].trim();if(/#$/.test(i)){var n=R(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}var o={type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var i=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var i,n,o,r,s,a,l,d,h,c,u=t[1].trim(),g=u.length>1,p={type:"list",raw:"",ordered:g,start:g?+u.slice(0,-1):"",loose:!1,items:[]};u=g?"\\d{1,9}\\"+u.slice(-1):"\\"+u,this.options.pedantic&&(u=g?u:"[*+-]");var m=new RegExp("^( {0,3}"+u+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");while(e){if(this.rules.block.hr.test(e))break;if(!(t=m.exec(e)))break;h=t[2].split("\n"),this.options.pedantic?(r=2,c=h[0].trimLeft()):(r=t[2].search(/[^ ]/),r=t[1].length+(r>4?1:r),c=h[0].slice(r-t[1].length)),a=!1,i=t[0],!h[0]&&/^ *$/.test(h[1])&&(i=t[1]+h.slice(0,2).join("\n")+"\n",p.loose=!0,h=[]);var f=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(s=1;s<h.length;s++){if(d=h[s],this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),f.test(d)){i=t[1]+h.slice(0,s).join("\n")+"\n";break}if(a){if(!(d.search(/[^ ]/)>=r)&&d.trim()){i=t[1]+h.slice(0,s).join("\n")+"\n";break}c+="\n"+d.slice(r)}else d.trim()||(a=!0),d.search(/[^ ]/)>=r?c+="\n"+d.slice(r):c+="\n"+d}p.loose||(l?p.loose=!0:/\n *\n *$/.test(i)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(c),n&&(o="[ ] "!==n[0],c=c.replace(/^\[[ xX]\] +/,""))),p.items.push({type:"list_item",raw:i,task:!!n,checked:o,loose:!1,text:c}),p.raw+=i,e=e.slice(i.length)}p.items[p.items.length-1].raw=i.trimRight(),p.items[p.items.length-1].text=c.trimRight(),p.raw=p.raw.trimRight();var _=p.items.length;for(s=0;s<_;s++)this.lexer.state.top=!1,p.items[s].tokens=this.lexer.blockTokens(p.items[s].text,[]),p.items[s].tokens.some((function(e){return"space"===e.type}))&&(p.loose=!0,p.items[s].loose=!0);return p}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t){var i={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(t[0]):F(t[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));var i=t[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:i,raw:t[0],href:t[2],title:t[3]}}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var i={type:"table",header:P(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=t[0];var n,o,r,s,a=i.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(i.align[n])?i.align[n]="right":/^ *:-+: *$/.test(i.align[n])?i.align[n]="center":/^ *:-+ *$/.test(i.align[n])?i.align[n]="left":i.align[n]=null;for(a=i.rows.length,n=0;n<a;n++)i.rows[n]=P(i.rows[n],i.header.length).map((function(e){return{text:e}}));for(a=i.header.length,o=0;o<a;o++)i.header[o].tokens=[],this.lexer.inlineTokens(i.header[o].text,i.header[o].tokens);for(a=i.rows.length,o=0;o<a;o++)for(s=i.rows[o],r=0;r<s.length;r++)s[r].tokens=[],this.lexer.inlineTokens(s[r].text,s[r].tokens);return i}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){var i={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var i={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},t.text=function(e){var t=this.rules.block.text.exec(e);if(t){var i={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(i.text,i.tokens),i}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:F(t[1])}},t.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):F(t[0]):t[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var i=t[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;var n=R(i.slice(0,-1),"\\");if((i.length-n.length)%2===0)return}else{var o=B(t[2],"()");if(o>-1){var r=0===t[0].indexOf("!")?5:4,s=r+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var a=t[2],l="";if(this.options.pedantic){var d=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);d&&(a=d[1],l=d[3])}else l=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(a=this.options.pedantic&&!/>$/.test(i)?a.slice(1):a.slice(1,-1)),j(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:l?l.replace(this.rules.inline._escapes,"$1"):l},t[0],this.lexer)}},t.reflink=function(e,t){var i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(n=t[n.toLowerCase()],!n||!n.href){var o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return j(i,n,i[0],this.lexer)}},t.emStrong=function(e,t,i){void 0===i&&(i="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!i.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=n[1]||n[2]||"";if(!o||o&&(""===i||this.rules.inline.punctuation.exec(i))){var r,s,a=n[0].length-1,l=a,d=0,h="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;h.lastIndex=0,t=t.slice(-1*e.length+a);while(null!=(n=h.exec(t)))if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],r)if(s=r.length,n[3]||n[4])l+=s;else if(!((n[5]||n[6])&&a%3)||(a+s)%3){if(l-=s,!(l>0)){if(s=Math.min(s,s+l+d),Math.min(a,s)%2){var c=e.slice(1,a+n.index+s);return{type:"em",raw:e.slice(0,a+n.index+s+1),text:c,tokens:this.lexer.inlineTokens(c,[])}}var u=e.slice(2,a+n.index+s-1);return{type:"strong",raw:e.slice(0,a+n.index+s+1),text:u,tokens:this.lexer.inlineTokens(u,[])}}}else d+=s}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var i=t[2].replace(/\n/g," "),n=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return n&&o&&(i=i.substring(1,i.length-1)),i=F(i,!0),{type:"codespan",raw:t[0],text:i}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},t.autolink=function(e,t){var i,n,o=this.rules.inline.autolink.exec(e);if(o)return"@"===o[2]?(i=F(this.options.mangle?t(o[1]):o[1]),n="mailto:"+i):(i=F(o[1]),n=i),{type:"link",raw:o[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},t.url=function(e,t){var i;if(i=this.rules.inline.url.exec(e)){var n,o;if("@"===i[2])n=F(this.options.mangle?t(i[0]):i[0]),o="mailto:"+n;else{var r;do{r=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(r!==i[0]);n=F(i[0]),o="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}},t.inlineText=function(e,t){var i,n=this.rules.inline.text.exec(e);if(n)return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):F(n[0]):n[0]:F(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}},e}(),H=T.noopTest,z=T.edit,U=T.merge,K={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:H,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/},q=(K.def=z(K.def).replace("label",K._label).replace("title",K._title).getRegex(),K.bullet=/(?:[*+-]|\d{1,9}[.)])/,K.listItemStart=z(/^( *)(bull) */).replace("bull",K.bullet).getRegex(),K.list=z(K.list).replace(/bull/g,K.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+K.def.source+")").getRegex(),K._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",K._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,K.html=z(K.html,"i").replace("comment",K._comment).replace("tag",K._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),K.paragraph=z(K._paragraph).replace("hr",K.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",K._tag).getRegex(),K.blockquote=z(K.blockquote).replace("paragraph",K.paragraph).getRegex(),K.normal=U({},K),K.gfm=U({},K.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)\\|?(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),K.gfm.table=z(K.gfm.table).replace("hr",K.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",K._tag).getRegex(),K.pedantic=U({},K.normal,{html:z("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",K._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:H,paragraph:z(K.normal._paragraph).replace("hr",K.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",K.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),{escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:H,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:H,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"}),$=(q.punctuation=z(q.punctuation).replace(/punctuation/g,q._punctuation).getRegex(),q.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,q.escapedEmSt=/\\\*|\\_/g,q._comment=z(K._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),q.emStrong.lDelim=z(q.emStrong.lDelim).replace(/punct/g,q._punctuation).getRegex(),q.emStrong.rDelimAst=z(q.emStrong.rDelimAst,"g").replace(/punct/g,q._punctuation).getRegex(),q.emStrong.rDelimUnd=z(q.emStrong.rDelimUnd,"g").replace(/punct/g,q._punctuation).getRegex(),q._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,q._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,q._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,q.autolink=z(q.autolink).replace("scheme",q._scheme).replace("email",q._email).getRegex(),q._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,q.tag=z(q.tag).replace("comment",q._comment).replace("attribute",q._attribute).getRegex(),q._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,q._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,q._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,q.link=z(q.link).replace("label",q._label).replace("href",q._href).replace("title",q._title).getRegex(),q.reflink=z(q.reflink).replace("label",q._label).getRegex(),q.reflinkSearch=z(q.reflinkSearch,"g").replace("reflink",q.reflink).replace("nolink",q.nolink).getRegex(),q.normal=U({},q),q.pedantic=U({},q.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:z(/^!?\[(label)\]\((.*?)\)/).replace("label",q._label).getRegex(),reflink:z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q._label).getRegex()}),q.gfm=U({},q.normal,{escape:z(q.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),q.gfm.url=z(q.gfm.url,"i").replace("email",q.gfm._extended_email).getRegex(),q.breaks=U({},q.gfm,{br:z(q.br).replace("{2,}","*").getRegex(),text:z(q.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),{block:K,inline:q}),G=V,Z=r.exports.defaults,Y=$.block,X=$.inline,Q=T.repeatString;function J(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function ee(e){var t,i,n="",o=e.length;for(t=0;t<o;t++)i=e.charCodeAt(t),Math.random()>.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}var te=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Z,this.options.tokenizer=this.options.tokenizer||new G,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var t={block:Y.normal,inline:X.normal};this.options.pedantic?(t.block=Y.pedantic,t.inline=X.pedantic):this.options.gfm&&(t.block=Y.gfm,this.options.breaks?t.inline=X.breaks:t.inline=X.gfm),this.tokenizer.rules=t}e.lex=function(t,i){var n=new e(i);return n.lex(t)},e.lexInline=function(t,i){var n=new e(i);return n.inlineTokens(t)};var i=e.prototype;return i.lex=function(e){var t;e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);while(t=this.inlineQueue.shift())this.inlineTokens(t.src,t.tokens);return this.tokens},i.blockTokens=function(e,t){var i,n,o,r,s=this;void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));while(e)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(i=n.call({lexer:s},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;s.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},i),"number"===typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(o)))n=t[t.length-1],r&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),r=o.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},i.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},i.inlineTokens=function(e,t){var i,n,o,r=this;void 0===t&&(t=[]);var s,a,l,d=e;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(h.length>0)while(null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(d)))h.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,s.index)+"["+Q("a",s[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(s=this.tokenizer.rules.inline.blockSkip.exec(d)))d=d.slice(0,s.index)+"["+Q("a",s[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(d)))d=d.slice(0,s.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);while(e)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:r},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),n=t[t.length-1],n&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,d,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,ee))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,ee))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},i),"number"===typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(o,J))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(i.raw.length),t.push(i);return t},t(e,null,[{key:"rules",get:function(){return{block:Y,inline:X}}}]),e}(),ie=r.exports.defaults,ne=T.cleanUrl,oe=T.escape,re=function(){function e(e){this.options=e||ie}var t=e.prototype;return t.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,n);null!=o&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+oe(n,!0)+'">'+(i?e:oe(e,!0))+"</code></pre>\n":"<pre><code>"+(i?e:oe(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,i,n){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+n.slug(i)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,i){var n=t?"ol":"ul",o=t&&1!==i?' start="'+i+'"':"";return"<"+n+o+">\n"+e+"</"+n+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var i=t.header?"th":"td",n=t.align?"<"+i+' align="'+t.align+'">':"<"+i+">";return n+e+"</"+i+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,i){if(e=ne(this.options.sanitize,this.options.baseUrl,e),null===e)return i;var n='<a href="'+oe(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+i+"</a>",n},t.image=function(e,t,i){if(e=ne(this.options.sanitize,this.options.baseUrl,e),null===e)return i;var n='<img src="'+e+'" alt="'+i+'"';return t&&(n+=' title="'+t+'"'),n+=this.options.xhtml?"/>":">",n},t.text=function(e){return e},e}(),se=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),ae=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{n++,i=e+"-"+n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),le=re,de=se,he=ae,ce=r.exports.defaults,ue=T.unescape,ge=te,pe=function(){function e(e){this.options=e||ce,this.options.renderer=this.options.renderer||new le,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new de,this.slugger=new he}e.parse=function(t,i){var n=new e(i);return n.parse(t)},e.parseInline=function(t,i){var n=new e(i);return n.parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var i,n,o,r,s,a,l,d,h,c,u,g,p,m,f,_,b,v,C,w="",y=e.length;for(i=0;i<y;i++)if(c=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[c.type]&&(C=this.options.extensions.renderers[c.type].call({parser:this},c),!1!==C||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)))w+=C||"";else switch(c.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(c.tokens),c.depth,ue(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(d="",l="",r=c.header.length,n=0;n<r;n++)l+=this.renderer.tablecell(this.parseInline(c.header[n].tokens),{header:!0,align:c.align[n]});for(d+=this.renderer.tablerow(l),h="",r=c.rows.length,n=0;n<r;n++){for(a=c.rows[n],l="",s=a.length,o=0;o<s;o++)l+=this.renderer.tablecell(this.parseInline(a[o].tokens),{header:!1,align:c.align[o]});h+=this.renderer.tablerow(l)}w+=this.renderer.table(d,h);continue;case"blockquote":h=this.parse(c.tokens),w+=this.renderer.blockquote(h);continue;case"list":for(u=c.ordered,g=c.start,p=c.loose,r=c.items.length,h="",n=0;n<r;n++)f=c.items[n],_=f.checked,b=f.task,m="",f.task&&(v=this.renderer.checkbox(_),p?f.tokens.length>0&&"paragraph"===f.tokens[0].type?(f.tokens[0].text=v+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&"text"===f.tokens[0].tokens[0].type&&(f.tokens[0].tokens[0].text=v+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:v}):m+=v),m+=this.parse(f.tokens,p),h+=this.renderer.listitem(m,b,_);w+=this.renderer.list(h,u,g);continue;case"html":w+=this.renderer.html(c.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":h=c.tokens?this.parseInline(c.tokens):c.text;while(i+1<y&&"text"===e[i+1].type)c=e[++i],h+="\n"+(c.tokens?this.parseInline(c.tokens):c.text);w+=t?this.renderer.paragraph(h):h;continue;default:var S='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(S);throw new Error(S)}return w},t.parseInline=function(e,t){t=t||this.renderer;var i,n,o,r="",s=e.length;for(i=0;i<s;i++)if(n=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]&&(o=this.options.extensions.renderers[n.type].call({parser:this},n),!1!==o||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)))r+=o||"";else switch(n.type){case"escape":r+=t.text(n.text);break;case"html":r+=t.html(n.text);break;case"link":r+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":r+=t.image(n.href,n.title,n.text);break;case"strong":r+=t.strong(this.parseInline(n.tokens,t));break;case"em":r+=t.em(this.parseInline(n.tokens,t));break;case"codespan":r+=t.codespan(n.text);break;case"br":r+=t.br();break;case"del":r+=t.del(this.parseInline(n.tokens,t));break;case"text":r+=t.text(n.text);break;default:var a='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}return r},e}(),me=V,fe=re,_e=se,be=ae,ve=T.merge,Ce=T.checkSanitizeDeprecation,we=T.escape,ye=r.exports.getDefaults,Se=r.exports.changeDefaults,Le=r.exports.defaults;function xe(e,t,i){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"===typeof t&&(i=t,t=null),t=ve({},xe.defaults,t||{}),Ce(t),i){var n,o=t.highlight;try{n=ge.lex(e,t)}catch(e){return i(e)}var r=function e(r){var s;if(!r)try{t.walkTokens&&xe.walkTokens(n,t.walkTokens),s=pe.parse(n,t)}catch(e){r=e}return t.highlight=o,r?i(r):i(null,s)};if(!o||o.length<3)return r();if(delete t.highlight,!n.length)return r();var s=0;return xe.walkTokens(n,(function(e){"code"===e.type&&(s++,setTimeout((function(){o(e.text,e.lang,(function(t,i){if(t)return r(t);null!=i&&i!==e.text&&(e.text=i,e.escaped=!0),s--,0===s&&r()}))}),0))})),void(0===s&&r())}try{var a=ge.lex(e,t);return t.walkTokens&&xe.walkTokens(a,t.walkTokens),pe.parse(a,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+we(e.message+"",!0)+"</pre>";throw e}}return xe.options=xe.setOptions=function(e){return ve(xe.defaults,e),Se(xe.defaults),xe},xe.getDefaults=ye,xe.defaults=Le,xe.use=function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var o,r=ve.apply(void 0,[{}].concat(i)),s=xe.defaults.extensions||{renderers:{},childTokens:{}};i.forEach((function(t){if(t.extensions&&(o=!0,t.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=s.renderers?s.renderers[e.name]:null;s.renderers[e.name]=t?function(){for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];var r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");s[e.level]?s[e.level].unshift(e.tokenizer):s[e.level]=[e.tokenizer],e.start&&("block"===e.level?s.startBlock?s.startBlock.push(e.start):s.startBlock=[e.start]:"inline"===e.level&&(s.startInline?s.startInline.push(e.start):s.startInline=[e.start]))}e.childTokens&&(s.childTokens[e.name]=e.childTokens)}))),t.renderer&&function(){var e=xe.defaults.renderer||new fe,i=function(i){var n=e[i];e[i]=function(){for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];var a=t.renderer[i].apply(e,r);return!1===a&&(a=n.apply(e,r)),a}};for(var n in t.renderer)i(n);r.renderer=e}(),t.tokenizer&&function(){var e=xe.defaults.tokenizer||new me,i=function(i){var n=e[i];e[i]=function(){for(var o=arguments.length,r=new Array(o),s=0;s<o;s++)r[s]=arguments[s];var a=t.tokenizer[i].apply(e,r);return!1===a&&(a=n.apply(e,r)),a}};for(var n in t.tokenizer)i(n);r.tokenizer=e}(),t.walkTokens){var i=xe.defaults.walkTokens;r.walkTokens=function(n){t.walkTokens.call(e,n),i&&i(n)}}o&&(r.extensions=s),xe.setOptions(r)}))},xe.walkTokens=function(e,t){for(var i,n=function(){var e=i.value;switch(t(e),e.type){case"table":for(var n,r=o(e.header);!(n=r()).done;){var s=n.value;xe.walkTokens(s.tokens,t)}for(var a,l=o(e.rows);!(a=l()).done;)for(var d,h=a.value,c=o(h);!(d=c()).done;){var u=d.value;xe.walkTokens(u.tokens,t)}break;case"list":xe.walkTokens(e.items,t);break;default:xe.defaults.extensions&&xe.defaults.extensions.childTokens&&xe.defaults.extensions.childTokens[e.type]?xe.defaults.extensions.childTokens[e.type].forEach((function(i){xe.walkTokens(e[i],t)})):e.tokens&&xe.walkTokens(e.tokens,t)}},r=o(e);!(i=r()).done;)n()},xe.parseInline=function(e,t){if("undefined"===typeof e||null===e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=ve({},xe.defaults,t||{}),Ce(t);try{var i=ge.lexInline(e,t);return t.walkTokens&&xe.walkTokens(i,t.walkTokens),pe.parseInline(i,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+we(e.message+"",!0)+"</pre>";throw e}},xe.Parser=pe,xe.parser=pe.parse,xe.Renderer=fe,xe.TextRenderer=_e,xe.Lexer=ge,xe.lexer=ge.lex,xe.Tokenizer=me,xe.Slugger=be,xe.parse=xe}()},"4af6":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return i.e("chunk-2d0afa49").then(i.bind(null,"0eca"))}})},"4b76":function(e,t,i){"use strict";var n,o,r=i("3742");(i=n=n||{})[i.Ignore=0]="Ignore",i[i.Info=1]="Info",i[i.Warning=2]="Warning",i[i.Error=3]="Error",(o=n=n||{}).fromValue=function(e){return e?r.r("error",e)?o.Error:r.r("warning",e)||r.r("warn",e)?o.Warning:r.r("info",e)?o.Info:o.Ignore:o.Ignore},o.toString=function(e){switch(e){case o.Error:return"error";case o.Warning:return"warning";case o.Info:return"info";default:return"ignore"}},t.a=n},"4d05":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return l}));var n=i("3742"),o=i("e1b5"),r=i("8bf1");const s={getInitialState:()=>r.c,tokenize2:(e,t,i,n)=>Object(r.e)(0,e,i,n)};function a(e,t=s){{var i=t||s;let c='<div class="monaco-tokenized-source">',u=n.Q(e),g=i.getInitialState();for(let e=0,t=u.length;e<t;e++){var r=u[e],a=(0<e&&(c+="<br/>"),i.tokenize2(r,!0,g,0));o.a.convertToEndOffset(a.tokens,r.length);var l=new o.a(a.tokens,r).inflate();let t=0;for(let e=0,i=l.getCount();e<i;e++){var d=l.getClassName(e),h=l.getEndOffset(e);c+=`<span class="${d}">${n.s(r.substring(t,h))}</span>`,t=h}g=a.endState}return c+="</div>"}}function l(e,t,i,n,o,r,s){let a="<div>",l=n,d=0;for(let u=0,g=t.getCount();u<g;u++){var h=t.getEndOffset(u);if(!(h<=n)){let n="";for(;l<h&&l<o;l++){var c=e.charCodeAt(l);switch(c){case 9:let e=r-(l+d)%r;for(d+=e-1;0<e;)n+=s?"&#160;":" ",e--;break;case 60:n+="&lt;";break;case 62:n+="&gt;";break;case 38:n+="&amp;";break;case 0:n+="&#00;";break;case 65279:case 8232:case 8233:case 133:n+="�";break;case 13:n+="&#8203";break;case 32:n+=s?"&#160;":" ";break;default:n+=String.fromCharCode(c)}}if(a+=`<span style="${t.getInlineStyle(u,i)}">${n}</span>`,o<h||l>=o)break}}return a+"</div>"}},"4d3d":function(e,t,i){},"4da7":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:function(){return i.e("chunk-2d21ab79").then(i.bind(null,"bd67"))}})},"4dc7":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return r}));class n{constructor(e,t,i){this._tokenBrand=void 0,this.offset=0|e,this.type=t,this.language=i}toString(){return"("+this.offset+", "+this.type+")"}}class o{constructor(e,t){this._tokenizationResultBrand=void 0,this.tokens=e,this.endState=t}}class r{constructor(e,t){this._tokenizationResult2Brand=void 0,this.tokens=e,this.endState=t}}},"4fc3":function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"c",(function(){return x})),i.d(t,"b",(function(){return k})),i.d(t,"d",(function(){return D})),i.d(t,"e",(function(){return E}));t=i("30db");var n=i("3742"),o=(i=i("0a0f"),t.k||"");const r=new Map,s=(r.set("false",!1),r.set("true",!0),r.set("isMac",t.f),r.set("isLinux",t.d),r.set("isWindows",t.i),r.set("isWeb",t.h),r.set("isMacNative",t.f&&!t.h),r.set("isEdge",0<=o.indexOf("Edg/")),r.set("isFirefox",0<=o.indexOf("Firefox")),r.set("isChrome",0<=o.indexOf("Chrome")),r.set("isSafari",0<=o.indexOf("Safari")),Object.prototype.hasOwnProperty);class a{static has(e){return c.create(e)}static equals(e,t){return u.create(e,t)}static regex(e,t){return w.create(e,t)}static not(e){return f.create(e)}static and(...e){return S.create(e,null)}static or(...e){return L.create(e,null,!0)}static deserialize(e,t=!1){if(e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){return e=e.split("||"),L.create(e.map(e=>this._deserializeAndExpression(e,t)),null,!0)}static _deserializeAndExpression(e,t){return e=e.split("&&"),S.create(e.map(e=>this._deserializeOne(e,t)),null)}static _deserializeOne(e,t){var i;return 0<=(e=e.trim()).indexOf("!=")?(i=e.split("!="),m.create(i[0].trim(),this._deserializeValue(i[1],t))):0<=e.indexOf("==")?(i=e.split("=="),u.create(i[0].trim(),this._deserializeValue(i[1],t))):0<=e.indexOf("=~")?(i=e.split("=~"),w.create(i[0].trim(),this._deserializeRegexValue(i[1],t))):0<=e.indexOf(" in ")?(i=e.split(" in "),g.create(i[0].trim(),i[1].trim())):/^[^<=>]+>=[^<=>]+$/.test(e)?(t=e.split(">="),b.create(t[0].trim(),t[1].trim())):/^[^<=>]+>[^<=>]+$/.test(e)?(i=e.split(">"),_.create(i[0].trim(),i[1].trim())):/^[^<=>]+<=[^<=>]+$/.test(e)?(t=e.split("<="),C.create(t[0].trim(),t[1].trim())):/^[^<=>]+<[^<=>]+$/.test(e)?(i=e.split("<"),v.create(i[0].trim(),i[1].trim())):/^\!\s*/.test(e)?f.create(e.substr(1).trim()):c.create(e)}static _deserializeValue(e,t){var i;return"true"===(e=e.trim())||"false"!==e&&((i=/^'([^']*)'$/.exec(e))?i[1].trim():e)}static _deserializeRegexValue(e,t){if(Object(n.C)(e)){if(t)throw new Error("missing regexp-value for =~-expression");return null}var i=e.indexOf("/"),o=e.lastIndexOf("/");if(i===o||i<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return null}i=e.slice(i+1,o),o="i"===e[o+1]?"i":"";try{return new RegExp(i,o)}catch(i){if(t)throw new Error(`bad regexp-value '${e}', parse error: `+i);return null}}}function l(e,t){return e.cmp(t)}class d{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return h.INSTANCE}}d.INSTANCE=new d;class h{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return d.INSTANCE}}h.INSTANCE=new h;class c{constructor(e,t){this.key=e,this.negated=t,this.type=2}static create(e,t=null){var i=r.get(e);return"boolean"==typeof i?(i?h:d).INSTANCE:new c(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:N(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this)),this.negated}}class u{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}static create(e,t,i=null){var n;return"boolean"==typeof t?(t?c:f).create(e,i):"boolean"==typeof(n=r.get(e))?(t===(n?"true":"false")?h:d).INSTANCE:new u(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:O(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this.value,this)),this.negated}}class g{constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}static create(e,t){return new g(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:O(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}evaluate(e){var t=e.getValue(this.valueKey);e=e.getValue(this.key);return Array.isArray(t)?0<=t.indexOf(e):"string"==typeof e&&"object"==typeof t&&null!==t&&s.call(t,e)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=p.create(this)),this.negated}}class p{constructor(e){this._actual=e,this.type=11}static create(e){return new p(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class m{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}static create(e,t,i=null){var n;return"boolean"==typeof t?(t?f:c).create(e,i):"boolean"==typeof(n=r.get(e))?(t===(n?"true":"false")?d:h).INSTANCE:new m(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:O(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this.value,this)),this.negated}}class f{constructor(e,t){this.key=e,this.negated=t,this.type=3}static create(e,t=null){var i=r.get(e);return"boolean"==typeof i?(i?d:h).INSTANCE:new f(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:N(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}evaluate(e){return!e.getValue(this.key)}serialize(){return"!"+this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=c.create(this.key,this)),this.negated}}class _{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}static create(e,t,i=null){return new _(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:O(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}evaluate(e){return parseFloat(e.getValue(this.key))>parseFloat(this.value)}serialize(){return this.key+" > "+this.value}keys(){return[this.key]}negate(){return this.negated||(this.negated=C.create(this.key,this.value,this)),this.negated}}class b{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}static create(e,t,i=null){return new b(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:O(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}evaluate(e){return parseFloat(e.getValue(this.key))>=parseFloat(this.value)}serialize(){return this.key+" >= "+this.value}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this.key,this.value,this)),this.negated}}class v{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}static create(e,t,i=null){return new v(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:O(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}evaluate(e){return parseFloat(e.getValue(this.key))<parseFloat(this.value)}serialize(){return this.key+" < "+this.value}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}class C{constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}static create(e,t,i=null){return new C(e,t,i)}cmp(e){return e.type!==this.type?this.type-e.type:O(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}evaluate(e){return parseFloat(e.getValue(this.key))<=parseFloat(this.value)}serialize(){return this.key+" <= "+this.value}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class w{constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}static create(e,t){return new w(e,t)}cmp(e){var t;return e.type!==this.type?this.type-e.type:this.key<e.key?-1:this.key>e.key?1:(t=this.regexp?this.regexp.source:"")<(e=e.regexp?e.regexp.source:"")?-1:e<t?1:0}equals(e){var t,i;return e.type===this.type&&(t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"",this.key===e.key)&&t===i}evaluate(e){return e=e.getValue(this.key),!!this.regexp&&this.regexp.test(e)}serialize(){var e=this.regexp?`/${this.regexp.source}/`+(this.regexp.ignoreCase?"i":""):"/invalid/";return this.key+" =~ "+e}keys(){return[this.key]}negate(){return this.negated||(this.negated=y.create(this)),this.negated}}class y{constructor(e){this._actual=e,this.type=8}static create(e){return new y(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class S{constructor(e,t){this.expr=e,this.negated=t,this.type=6}static create(e,t){return S._normalizeArr(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let i=0,n=this.expr.length;i<n;i++){var t=l(this.expr[i],e.expr[i]);if(0!==t)return t}return 0}equals(e){if(e.type!==this.type)return!1;if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t){var i=[];let n=!1;for(const s of e)if(s)if(1===s.type)n=!0;else{if(0===s.type)return d.INSTANCE;6===s.type?i.push(...s.expr):i.push(s)}if(0===i.length&&n)return h.INSTANCE;if(0!==i.length){if(1===i.length)return i[0];i.sort(l);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(1===i.length)return i[0];for(;1<i.length;){var o=i[i.length-1];if(9!==o.type)break;i.pop();const e=i.pop();var r=0===i.length;o=L.create(o.expr.map(t=>S.create([t,e],null)),null,r);o&&(i.push(o),i.sort(l))}return 1===i.length?i[0]:new S(i,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){var e,t=[];for(e of this.expr)t.push(...e.keys());return t}negate(){if(!this.negated){var e,t=[];for(e of this.expr)t.push(e.negate());this.negated=L.create(t,this,!0)}return this.negated}}class L{constructor(e,t){this.expr=e,this.negated=t,this.type=9}static create(e,t,i){return L._normalizeArr(e,t,i)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let i=0,n=this.expr.length;i<n;i++){var t=l(this.expr[i],e.expr[i]);if(0!==t)return t}return 0}equals(e){if(e.type!==this.type)return!1;if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,i){let n=[],o=!1;if(e){for(let t=0,i=e.length;t<i;t++){var r=e[t];if(r)if(0===r.type)o=!0;else{if(1===r.type)return h.INSTANCE;9===r.type?n=n.concat(r.expr):n.push(r)}}if(0===n.length&&o)return d.INSTANCE;n.sort(l)}if(0!==n.length){if(1===n.length)return n[0];for(let e=1;e<n.length;e++)n[e-1].equals(n[e])&&(n.splice(e,1),e--);if(1===n.length)return n[0];if(i){for(let e=0;e<n.length;e++)for(let t=e+1;t<n.length;t++)E(n[e],n[t])&&(n.splice(t,1),t--);if(1===n.length)return n[0]}return new L(n,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){var e,t=[];for(e of this.expr)t.push(...e.keys());return t}negate(){if(!this.negated){var e,t=[];for(e of this.expr)t.push(e.negate());for(;1<t.length;){var i=t.shift(),n=t.shift(),o=[];for(const e of I(i))for(const t of I(n))o.push(S.create([e,t],null));i=0===t.length,t.unshift(L.create(o,null,i))}this.negated=t[0]}return this.negated}}class x extends c{constructor(e,t,i){super(e,null),this._defaultValue=t,"object"==typeof i?x._info.push(Object.assign(Object.assign({},i),{key:e})):!0!==i&&x._info.push({key:e,description:i,type:null!=t?typeof t:void 0})}static all(){return x._info.values()}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return u.create(this.key,e)}}x._info=[];const k=Object(i.c)("contextKeyService"),D="setContext";function N(e,t){return e<t?-1:t<e?1:0}function O(e,t,i,n){return e<i?-1:i<e?1:t<n?-1:n<t?1:0}function E(e,t){if(6===t.type&&9!==e.type&&6!==e.type)for(const r of t.expr)if(e.equals(r))return!0;var i=I(e.negate()).concat(I(t));i.sort(l);for(let r=0;r<i.length;r++){var n=i[r].negate();for(let e=r+1;e<i.length;e++){var o=i[e];if(n.equals(o))return!0}}return!1}function I(e){return 9===e.type?e.expr:[e]}},5029:function(e,t,i){},"533b":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o})),t=i("0a0f");const n=Object(t.c)("contextViewService"),o=Object(t.c)("contextMenuService")},"54f2":function(e,t,i){},"561a":function(e,t,i){"use strict";i.d(t,"d",(function(){return s})),i.d(t,"e",(function(){return a})),i.d(t,"c",(function(){return l})),i.d(t,"b",(function(){return d})),i.d(t,"a",(function(){return n}));var n,o=i("308f");const r=new class{constructor(){this._icons=new Map,this._onDidRegister=new o.b}add(e){var t=this._icons.get(e.id);t?e.description&&(t.description=e.description):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}},s=r;function a(e,t){return new d(e,t)}function l(e){return e?e.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""}class d{constructor(e,t,i){this.id=e,this.definition=t,this.description=i,r.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}{(t=n=n||{}).iconNameSegment="[A-Za-z0-9]+",t.iconNameExpression="[A-Za-z0-9\\-]+",t.iconModifierExpression="~[A-Za-z]+";const e=new RegExp(`^(${t.iconNameExpression})(${t.iconModifierExpression})?$`);function h(t){var i;return t instanceof d?["codicon","codicon-"+t.id]:(t=e.exec(t.id))?([,t,i]=t,t=["codicon","codicon-"+t],i&&t.push("codicon-modifier-"+i.substr(1)),t):h(d.error)}t.asClassNameArray=h,t.asClassName=function(e){return h(e).join(" ")},t.asCSSSelector=function(e){return"."+h(e).join(".")}}(i=d=d||{}).add=new i("add",{fontCharacter:"\\ea60"}),i.plus=new i("plus",{fontCharacter:"\\ea60"}),i.gistNew=new i("gist-new",{fontCharacter:"\\ea60"}),i.repoCreate=new i("repo-create",{fontCharacter:"\\ea60"}),i.lightbulb=new i("lightbulb",{fontCharacter:"\\ea61"}),i.lightBulb=new i("light-bulb",{fontCharacter:"\\ea61"}),i.repo=new i("repo",{fontCharacter:"\\ea62"}),i.repoDelete=new i("repo-delete",{fontCharacter:"\\ea62"}),i.gistFork=new i("gist-fork",{fontCharacter:"\\ea63"}),i.repoForked=new i("repo-forked",{fontCharacter:"\\ea63"}),i.gitPullRequest=new i("git-pull-request",{fontCharacter:"\\ea64"}),i.gitPullRequestAbandoned=new i("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),i.recordKeys=new i("record-keys",{fontCharacter:"\\ea65"}),i.keyboard=new i("keyboard",{fontCharacter:"\\ea65"}),i.tag=new i("tag",{fontCharacter:"\\ea66"}),i.tagAdd=new i("tag-add",{fontCharacter:"\\ea66"}),i.tagRemove=new i("tag-remove",{fontCharacter:"\\ea66"}),i.person=new i("person",{fontCharacter:"\\ea67"}),i.personFollow=new i("person-follow",{fontCharacter:"\\ea67"}),i.personOutline=new i("person-outline",{fontCharacter:"\\ea67"}),i.personFilled=new i("person-filled",{fontCharacter:"\\ea67"}),i.gitBranch=new i("git-branch",{fontCharacter:"\\ea68"}),i.gitBranchCreate=new i("git-branch-create",{fontCharacter:"\\ea68"}),i.gitBranchDelete=new i("git-branch-delete",{fontCharacter:"\\ea68"}),i.sourceControl=new i("source-control",{fontCharacter:"\\ea68"}),i.mirror=new i("mirror",{fontCharacter:"\\ea69"}),i.mirrorPublic=new i("mirror-public",{fontCharacter:"\\ea69"}),i.star=new i("star",{fontCharacter:"\\ea6a"}),i.starAdd=new i("star-add",{fontCharacter:"\\ea6a"}),i.starDelete=new i("star-delete",{fontCharacter:"\\ea6a"}),i.starEmpty=new i("star-empty",{fontCharacter:"\\ea6a"}),i.comment=new i("comment",{fontCharacter:"\\ea6b"}),i.commentAdd=new i("comment-add",{fontCharacter:"\\ea6b"}),i.alert=new i("alert",{fontCharacter:"\\ea6c"}),i.warning=new i("warning",{fontCharacter:"\\ea6c"}),i.search=new i("search",{fontCharacter:"\\ea6d"}),i.searchSave=new i("search-save",{fontCharacter:"\\ea6d"}),i.logOut=new i("log-out",{fontCharacter:"\\ea6e"}),i.signOut=new i("sign-out",{fontCharacter:"\\ea6e"}),i.logIn=new i("log-in",{fontCharacter:"\\ea6f"}),i.signIn=new i("sign-in",{fontCharacter:"\\ea6f"}),i.eye=new i("eye",{fontCharacter:"\\ea70"}),i.eyeUnwatch=new i("eye-unwatch",{fontCharacter:"\\ea70"}),i.eyeWatch=new i("eye-watch",{fontCharacter:"\\ea70"}),i.circleFilled=new i("circle-filled",{fontCharacter:"\\ea71"}),i.primitiveDot=new i("primitive-dot",{fontCharacter:"\\ea71"}),i.closeDirty=new i("close-dirty",{fontCharacter:"\\ea71"}),i.debugBreakpoint=new i("debug-breakpoint",{fontCharacter:"\\ea71"}),i.debugBreakpointDisabled=new i("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),i.debugHint=new i("debug-hint",{fontCharacter:"\\ea71"}),i.primitiveSquare=new i("primitive-square",{fontCharacter:"\\ea72"}),i.edit=new i("edit",{fontCharacter:"\\ea73"}),i.pencil=new i("pencil",{fontCharacter:"\\ea73"}),i.info=new i("info",{fontCharacter:"\\ea74"}),i.issueOpened=new i("issue-opened",{fontCharacter:"\\ea74"}),i.gistPrivate=new i("gist-private",{fontCharacter:"\\ea75"}),i.gitForkPrivate=new i("git-fork-private",{fontCharacter:"\\ea75"}),i.lock=new i("lock",{fontCharacter:"\\ea75"}),i.mirrorPrivate=new i("mirror-private",{fontCharacter:"\\ea75"}),i.close=new i("close",{fontCharacter:"\\ea76"}),i.removeClose=new i("remove-close",{fontCharacter:"\\ea76"}),i.x=new i("x",{fontCharacter:"\\ea76"}),i.repoSync=new i("repo-sync",{fontCharacter:"\\ea77"}),i.sync=new i("sync",{fontCharacter:"\\ea77"}),i.clone=new i("clone",{fontCharacter:"\\ea78"}),i.desktopDownload=new i("desktop-download",{fontCharacter:"\\ea78"}),i.beaker=new i("beaker",{fontCharacter:"\\ea79"}),i.microscope=new i("microscope",{fontCharacter:"\\ea79"}),i.vm=new i("vm",{fontCharacter:"\\ea7a"}),i.deviceDesktop=new i("device-desktop",{fontCharacter:"\\ea7a"}),i.file=new i("file",{fontCharacter:"\\ea7b"}),i.fileText=new i("file-text",{fontCharacter:"\\ea7b"}),i.more=new i("more",{fontCharacter:"\\ea7c"}),i.ellipsis=new i("ellipsis",{fontCharacter:"\\ea7c"}),i.kebabHorizontal=new i("kebab-horizontal",{fontCharacter:"\\ea7c"}),i.mailReply=new i("mail-reply",{fontCharacter:"\\ea7d"}),i.reply=new i("reply",{fontCharacter:"\\ea7d"}),i.organization=new i("organization",{fontCharacter:"\\ea7e"}),i.organizationFilled=new i("organization-filled",{fontCharacter:"\\ea7e"}),i.organizationOutline=new i("organization-outline",{fontCharacter:"\\ea7e"}),i.newFile=new i("new-file",{fontCharacter:"\\ea7f"}),i.fileAdd=new i("file-add",{fontCharacter:"\\ea7f"}),i.newFolder=new i("new-folder",{fontCharacter:"\\ea80"}),i.fileDirectoryCreate=new i("file-directory-create",{fontCharacter:"\\ea80"}),i.trash=new i("trash",{fontCharacter:"\\ea81"}),i.trashcan=new i("trashcan",{fontCharacter:"\\ea81"}),i.history=new i("history",{fontCharacter:"\\ea82"}),i.clock=new i("clock",{fontCharacter:"\\ea82"}),i.folder=new i("folder",{fontCharacter:"\\ea83"}),i.fileDirectory=new i("file-directory",{fontCharacter:"\\ea83"}),i.symbolFolder=new i("symbol-folder",{fontCharacter:"\\ea83"}),i.logoGithub=new i("logo-github",{fontCharacter:"\\ea84"}),i.markGithub=new i("mark-github",{fontCharacter:"\\ea84"}),i.github=new i("github",{fontCharacter:"\\ea84"}),i.terminal=new i("terminal",{fontCharacter:"\\ea85"}),i.console=new i("console",{fontCharacter:"\\ea85"}),i.repl=new i("repl",{fontCharacter:"\\ea85"}),i.zap=new i("zap",{fontCharacter:"\\ea86"}),i.symbolEvent=new i("symbol-event",{fontCharacter:"\\ea86"}),i.error=new i("error",{fontCharacter:"\\ea87"}),i.stop=new i("stop",{fontCharacter:"\\ea87"}),i.variable=new i("variable",{fontCharacter:"\\ea88"}),i.symbolVariable=new i("symbol-variable",{fontCharacter:"\\ea88"}),i.array=new i("array",{fontCharacter:"\\ea8a"}),i.symbolArray=new i("symbol-array",{fontCharacter:"\\ea8a"}),i.symbolModule=new i("symbol-module",{fontCharacter:"\\ea8b"}),i.symbolPackage=new i("symbol-package",{fontCharacter:"\\ea8b"}),i.symbolNamespace=new i("symbol-namespace",{fontCharacter:"\\ea8b"}),i.symbolObject=new i("symbol-object",{fontCharacter:"\\ea8b"}),i.symbolMethod=new i("symbol-method",{fontCharacter:"\\ea8c"}),i.symbolFunction=new i("symbol-function",{fontCharacter:"\\ea8c"}),i.symbolConstructor=new i("symbol-constructor",{fontCharacter:"\\ea8c"}),i.symbolBoolean=new i("symbol-boolean",{fontCharacter:"\\ea8f"}),i.symbolNull=new i("symbol-null",{fontCharacter:"\\ea8f"}),i.symbolNumeric=new i("symbol-numeric",{fontCharacter:"\\ea90"}),i.symbolNumber=new i("symbol-number",{fontCharacter:"\\ea90"}),i.symbolStructure=new i("symbol-structure",{fontCharacter:"\\ea91"}),i.symbolStruct=new i("symbol-struct",{fontCharacter:"\\ea91"}),i.symbolParameter=new i("symbol-parameter",{fontCharacter:"\\ea92"}),i.symbolTypeParameter=new i("symbol-type-parameter",{fontCharacter:"\\ea92"}),i.symbolKey=new i("symbol-key",{fontCharacter:"\\ea93"}),i.symbolText=new i("symbol-text",{fontCharacter:"\\ea93"}),i.symbolReference=new i("symbol-reference",{fontCharacter:"\\ea94"}),i.goToFile=new i("go-to-file",{fontCharacter:"\\ea94"}),i.symbolEnum=new i("symbol-enum",{fontCharacter:"\\ea95"}),i.symbolValue=new i("symbol-value",{fontCharacter:"\\ea95"}),i.symbolRuler=new i("symbol-ruler",{fontCharacter:"\\ea96"}),i.symbolUnit=new i("symbol-unit",{fontCharacter:"\\ea96"}),i.activateBreakpoints=new i("activate-breakpoints",{fontCharacter:"\\ea97"}),i.archive=new i("archive",{fontCharacter:"\\ea98"}),i.arrowBoth=new i("arrow-both",{fontCharacter:"\\ea99"}),i.arrowDown=new i("arrow-down",{fontCharacter:"\\ea9a"}),i.arrowLeft=new i("arrow-left",{fontCharacter:"\\ea9b"}),i.arrowRight=new i("arrow-right",{fontCharacter:"\\ea9c"}),i.arrowSmallDown=new i("arrow-small-down",{fontCharacter:"\\ea9d"}),i.arrowSmallLeft=new i("arrow-small-left",{fontCharacter:"\\ea9e"}),i.arrowSmallRight=new i("arrow-small-right",{fontCharacter:"\\ea9f"}),i.arrowSmallUp=new i("arrow-small-up",{fontCharacter:"\\eaa0"}),i.arrowUp=new i("arrow-up",{fontCharacter:"\\eaa1"}),i.bell=new i("bell",{fontCharacter:"\\eaa2"}),i.bold=new i("bold",{fontCharacter:"\\eaa3"}),i.book=new i("book",{fontCharacter:"\\eaa4"}),i.bookmark=new i("bookmark",{fontCharacter:"\\eaa5"}),i.debugBreakpointConditionalUnverified=new i("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),i.debugBreakpointConditional=new i("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),i.debugBreakpointConditionalDisabled=new i("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),i.debugBreakpointDataUnverified=new i("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),i.debugBreakpointData=new i("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),i.debugBreakpointDataDisabled=new i("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),i.debugBreakpointLogUnverified=new i("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),i.debugBreakpointLog=new i("debug-breakpoint-log",{fontCharacter:"\\eaab"}),i.debugBreakpointLogDisabled=new i("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),i.briefcase=new i("briefcase",{fontCharacter:"\\eaac"}),i.broadcast=new i("broadcast",{fontCharacter:"\\eaad"}),i.browser=new i("browser",{fontCharacter:"\\eaae"}),i.bug=new i("bug",{fontCharacter:"\\eaaf"}),i.calendar=new i("calendar",{fontCharacter:"\\eab0"}),i.caseSensitive=new i("case-sensitive",{fontCharacter:"\\eab1"}),i.check=new i("check",{fontCharacter:"\\eab2"}),i.checklist=new i("checklist",{fontCharacter:"\\eab3"}),i.chevronDown=new i("chevron-down",{fontCharacter:"\\eab4"}),i.chevronLeft=new i("chevron-left",{fontCharacter:"\\eab5"}),i.chevronRight=new i("chevron-right",{fontCharacter:"\\eab6"}),i.chevronUp=new i("chevron-up",{fontCharacter:"\\eab7"}),i.chromeClose=new i("chrome-close",{fontCharacter:"\\eab8"}),i.chromeMaximize=new i("chrome-maximize",{fontCharacter:"\\eab9"}),i.chromeMinimize=new i("chrome-minimize",{fontCharacter:"\\eaba"}),i.chromeRestore=new i("chrome-restore",{fontCharacter:"\\eabb"}),i.circleOutline=new i("circle-outline",{fontCharacter:"\\eabc"}),i.debugBreakpointUnverified=new i("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),i.circleSlash=new i("circle-slash",{fontCharacter:"\\eabd"}),i.circuitBoard=new i("circuit-board",{fontCharacter:"\\eabe"}),i.clearAll=new i("clear-all",{fontCharacter:"\\eabf"}),i.clippy=new i("clippy",{fontCharacter:"\\eac0"}),i.closeAll=new i("close-all",{fontCharacter:"\\eac1"}),i.cloudDownload=new i("cloud-download",{fontCharacter:"\\eac2"}),i.cloudUpload=new i("cloud-upload",{fontCharacter:"\\eac3"}),i.code=new i("code",{fontCharacter:"\\eac4"}),i.collapseAll=new i("collapse-all",{fontCharacter:"\\eac5"}),i.colorMode=new i("color-mode",{fontCharacter:"\\eac6"}),i.commentDiscussion=new i("comment-discussion",{fontCharacter:"\\eac7"}),i.compareChanges=new i("compare-changes",{fontCharacter:"\\eafd"}),i.creditCard=new i("credit-card",{fontCharacter:"\\eac9"}),i.dash=new i("dash",{fontCharacter:"\\eacc"}),i.dashboard=new i("dashboard",{fontCharacter:"\\eacd"}),i.database=new i("database",{fontCharacter:"\\eace"}),i.debugContinue=new i("debug-continue",{fontCharacter:"\\eacf"}),i.debugDisconnect=new i("debug-disconnect",{fontCharacter:"\\ead0"}),i.debugPause=new i("debug-pause",{fontCharacter:"\\ead1"}),i.debugRestart=new i("debug-restart",{fontCharacter:"\\ead2"}),i.debugStart=new i("debug-start",{fontCharacter:"\\ead3"}),i.debugStepInto=new i("debug-step-into",{fontCharacter:"\\ead4"}),i.debugStepOut=new i("debug-step-out",{fontCharacter:"\\ead5"}),i.debugStepOver=new i("debug-step-over",{fontCharacter:"\\ead6"}),i.debugStop=new i("debug-stop",{fontCharacter:"\\ead7"}),i.debug=new i("debug",{fontCharacter:"\\ead8"}),i.deviceCameraVideo=new i("device-camera-video",{fontCharacter:"\\ead9"}),i.deviceCamera=new i("device-camera",{fontCharacter:"\\eada"}),i.deviceMobile=new i("device-mobile",{fontCharacter:"\\eadb"}),i.diffAdded=new i("diff-added",{fontCharacter:"\\eadc"}),i.diffIgnored=new i("diff-ignored",{fontCharacter:"\\eadd"}),i.diffModified=new i("diff-modified",{fontCharacter:"\\eade"}),i.diffRemoved=new i("diff-removed",{fontCharacter:"\\eadf"}),i.diffRenamed=new i("diff-renamed",{fontCharacter:"\\eae0"}),i.diff=new i("diff",{fontCharacter:"\\eae1"}),i.discard=new i("discard",{fontCharacter:"\\eae2"}),i.editorLayout=new i("editor-layout",{fontCharacter:"\\eae3"}),i.emptyWindow=new i("empty-window",{fontCharacter:"\\eae4"}),i.exclude=new i("exclude",{fontCharacter:"\\eae5"}),i.extensions=new i("extensions",{fontCharacter:"\\eae6"}),i.eyeClosed=new i("eye-closed",{fontCharacter:"\\eae7"}),i.fileBinary=new i("file-binary",{fontCharacter:"\\eae8"}),i.fileCode=new i("file-code",{fontCharacter:"\\eae9"}),i.fileMedia=new i("file-media",{fontCharacter:"\\eaea"}),i.filePdf=new i("file-pdf",{fontCharacter:"\\eaeb"}),i.fileSubmodule=new i("file-submodule",{fontCharacter:"\\eaec"}),i.fileSymlinkDirectory=new i("file-symlink-directory",{fontCharacter:"\\eaed"}),i.fileSymlinkFile=new i("file-symlink-file",{fontCharacter:"\\eaee"}),i.fileZip=new i("file-zip",{fontCharacter:"\\eaef"}),i.files=new i("files",{fontCharacter:"\\eaf0"}),i.filter=new i("filter",{fontCharacter:"\\eaf1"}),i.flame=new i("flame",{fontCharacter:"\\eaf2"}),i.foldDown=new i("fold-down",{fontCharacter:"\\eaf3"}),i.foldUp=new i("fold-up",{fontCharacter:"\\eaf4"}),i.fold=new i("fold",{fontCharacter:"\\eaf5"}),i.folderActive=new i("folder-active",{fontCharacter:"\\eaf6"}),i.folderOpened=new i("folder-opened",{fontCharacter:"\\eaf7"}),i.gear=new i("gear",{fontCharacter:"\\eaf8"}),i.gift=new i("gift",{fontCharacter:"\\eaf9"}),i.gistSecret=new i("gist-secret",{fontCharacter:"\\eafa"}),i.gist=new i("gist",{fontCharacter:"\\eafb"}),i.gitCommit=new i("git-commit",{fontCharacter:"\\eafc"}),i.gitCompare=new i("git-compare",{fontCharacter:"\\eafd"}),i.gitMerge=new i("git-merge",{fontCharacter:"\\eafe"}),i.githubAction=new i("github-action",{fontCharacter:"\\eaff"}),i.githubAlt=new i("github-alt",{fontCharacter:"\\eb00"}),i.globe=new i("globe",{fontCharacter:"\\eb01"}),i.grabber=new i("grabber",{fontCharacter:"\\eb02"}),i.graph=new i("graph",{fontCharacter:"\\eb03"}),i.gripper=new i("gripper",{fontCharacter:"\\eb04"}),i.heart=new i("heart",{fontCharacter:"\\eb05"}),i.home=new i("home",{fontCharacter:"\\eb06"}),i.horizontalRule=new i("horizontal-rule",{fontCharacter:"\\eb07"}),i.hubot=new i("hubot",{fontCharacter:"\\eb08"}),i.inbox=new i("inbox",{fontCharacter:"\\eb09"}),i.issueClosed=new i("issue-closed",{fontCharacter:"\\eba4"}),i.issueReopened=new i("issue-reopened",{fontCharacter:"\\eb0b"}),i.issues=new i("issues",{fontCharacter:"\\eb0c"}),i.italic=new i("italic",{fontCharacter:"\\eb0d"}),i.jersey=new i("jersey",{fontCharacter:"\\eb0e"}),i.json=new i("json",{fontCharacter:"\\eb0f"}),i.kebabVertical=new i("kebab-vertical",{fontCharacter:"\\eb10"}),i.key=new i("key",{fontCharacter:"\\eb11"}),i.law=new i("law",{fontCharacter:"\\eb12"}),i.lightbulbAutofix=new i("lightbulb-autofix",{fontCharacter:"\\eb13"}),i.linkExternal=new i("link-external",{fontCharacter:"\\eb14"}),i.link=new i("link",{fontCharacter:"\\eb15"}),i.listOrdered=new i("list-ordered",{fontCharacter:"\\eb16"}),i.listUnordered=new i("list-unordered",{fontCharacter:"\\eb17"}),i.liveShare=new i("live-share",{fontCharacter:"\\eb18"}),i.loading=new i("loading",{fontCharacter:"\\eb19"}),i.location=new i("location",{fontCharacter:"\\eb1a"}),i.mailRead=new i("mail-read",{fontCharacter:"\\eb1b"}),i.mail=new i("mail",{fontCharacter:"\\eb1c"}),i.markdown=new i("markdown",{fontCharacter:"\\eb1d"}),i.megaphone=new i("megaphone",{fontCharacter:"\\eb1e"}),i.mention=new i("mention",{fontCharacter:"\\eb1f"}),i.milestone=new i("milestone",{fontCharacter:"\\eb20"}),i.mortarBoard=new i("mortar-board",{fontCharacter:"\\eb21"}),i.move=new i("move",{fontCharacter:"\\eb22"}),i.multipleWindows=new i("multiple-windows",{fontCharacter:"\\eb23"}),i.mute=new i("mute",{fontCharacter:"\\eb24"}),i.noNewline=new i("no-newline",{fontCharacter:"\\eb25"}),i.note=new i("note",{fontCharacter:"\\eb26"}),i.octoface=new i("octoface",{fontCharacter:"\\eb27"}),i.openPreview=new i("open-preview",{fontCharacter:"\\eb28"}),i.package_=new i("package",{fontCharacter:"\\eb29"}),i.paintcan=new i("paintcan",{fontCharacter:"\\eb2a"}),i.pin=new i("pin",{fontCharacter:"\\eb2b"}),i.play=new i("play",{fontCharacter:"\\eb2c"}),i.run=new i("run",{fontCharacter:"\\eb2c"}),i.plug=new i("plug",{fontCharacter:"\\eb2d"}),i.preserveCase=new i("preserve-case",{fontCharacter:"\\eb2e"}),i.preview=new i("preview",{fontCharacter:"\\eb2f"}),i.project=new i("project",{fontCharacter:"\\eb30"}),i.pulse=new i("pulse",{fontCharacter:"\\eb31"}),i.question=new i("question",{fontCharacter:"\\eb32"}),i.quote=new i("quote",{fontCharacter:"\\eb33"}),i.radioTower=new i("radio-tower",{fontCharacter:"\\eb34"}),i.reactions=new i("reactions",{fontCharacter:"\\eb35"}),i.references=new i("references",{fontCharacter:"\\eb36"}),i.refresh=new i("refresh",{fontCharacter:"\\eb37"}),i.regex=new i("regex",{fontCharacter:"\\eb38"}),i.remoteExplorer=new i("remote-explorer",{fontCharacter:"\\eb39"}),i.remote=new i("remote",{fontCharacter:"\\eb3a"}),i.remove=new i("remove",{fontCharacter:"\\eb3b"}),i.replaceAll=new i("replace-all",{fontCharacter:"\\eb3c"}),i.replace=new i("replace",{fontCharacter:"\\eb3d"}),i.repoClone=new i("repo-clone",{fontCharacter:"\\eb3e"}),i.repoForcePush=new i("repo-force-push",{fontCharacter:"\\eb3f"}),i.repoPull=new i("repo-pull",{fontCharacter:"\\eb40"}),i.repoPush=new i("repo-push",{fontCharacter:"\\eb41"}),i.report=new i("report",{fontCharacter:"\\eb42"}),i.requestChanges=new i("request-changes",{fontCharacter:"\\eb43"}),i.rocket=new i("rocket",{fontCharacter:"\\eb44"}),i.rootFolderOpened=new i("root-folder-opened",{fontCharacter:"\\eb45"}),i.rootFolder=new i("root-folder",{fontCharacter:"\\eb46"}),i.rss=new i("rss",{fontCharacter:"\\eb47"}),i.ruby=new i("ruby",{fontCharacter:"\\eb48"}),i.saveAll=new i("save-all",{fontCharacter:"\\eb49"}),i.saveAs=new i("save-as",{fontCharacter:"\\eb4a"}),i.save=new i("save",{fontCharacter:"\\eb4b"}),i.screenFull=new i("screen-full",{fontCharacter:"\\eb4c"}),i.screenNormal=new i("screen-normal",{fontCharacter:"\\eb4d"}),i.searchStop=new i("search-stop",{fontCharacter:"\\eb4e"}),i.server=new i("server",{fontCharacter:"\\eb50"}),i.settingsGear=new i("settings-gear",{fontCharacter:"\\eb51"}),i.settings=new i("settings",{fontCharacter:"\\eb52"}),i.shield=new i("shield",{fontCharacter:"\\eb53"}),i.smiley=new i("smiley",{fontCharacter:"\\eb54"}),i.sortPrecedence=new i("sort-precedence",{fontCharacter:"\\eb55"}),i.splitHorizontal=new i("split-horizontal",{fontCharacter:"\\eb56"}),i.splitVertical=new i("split-vertical",{fontCharacter:"\\eb57"}),i.squirrel=new i("squirrel",{fontCharacter:"\\eb58"}),i.starFull=new i("star-full",{fontCharacter:"\\eb59"}),i.starHalf=new i("star-half",{fontCharacter:"\\eb5a"}),i.symbolClass=new i("symbol-class",{fontCharacter:"\\eb5b"}),i.symbolColor=new i("symbol-color",{fontCharacter:"\\eb5c"}),i.symbolConstant=new i("symbol-constant",{fontCharacter:"\\eb5d"}),i.symbolEnumMember=new i("symbol-enum-member",{fontCharacter:"\\eb5e"}),i.symbolField=new i("symbol-field",{fontCharacter:"\\eb5f"}),i.symbolFile=new i("symbol-file",{fontCharacter:"\\eb60"}),i.symbolInterface=new i("symbol-interface",{fontCharacter:"\\eb61"}),i.symbolKeyword=new i("symbol-keyword",{fontCharacter:"\\eb62"}),i.symbolMisc=new i("symbol-misc",{fontCharacter:"\\eb63"}),i.symbolOperator=new i("symbol-operator",{fontCharacter:"\\eb64"}),i.symbolProperty=new i("symbol-property",{fontCharacter:"\\eb65"}),i.wrench=new i("wrench",{fontCharacter:"\\eb65"}),i.wrenchSubaction=new i("wrench-subaction",{fontCharacter:"\\eb65"}),i.symbolSnippet=new i("symbol-snippet",{fontCharacter:"\\eb66"}),i.tasklist=new i("tasklist",{fontCharacter:"\\eb67"}),i.telescope=new i("telescope",{fontCharacter:"\\eb68"}),i.textSize=new i("text-size",{fontCharacter:"\\eb69"}),i.threeBars=new i("three-bars",{fontCharacter:"\\eb6a"}),i.thumbsdown=new i("thumbsdown",{fontCharacter:"\\eb6b"}),i.thumbsup=new i("thumbsup",{fontCharacter:"\\eb6c"}),i.tools=new i("tools",{fontCharacter:"\\eb6d"}),i.triangleDown=new i("triangle-down",{fontCharacter:"\\eb6e"}),i.triangleLeft=new i("triangle-left",{fontCharacter:"\\eb6f"}),i.triangleRight=new i("triangle-right",{fontCharacter:"\\eb70"}),i.triangleUp=new i("triangle-up",{fontCharacter:"\\eb71"}),i.twitter=new i("twitter",{fontCharacter:"\\eb72"}),i.unfold=new i("unfold",{fontCharacter:"\\eb73"}),i.unlock=new i("unlock",{fontCharacter:"\\eb74"}),i.unmute=new i("unmute",{fontCharacter:"\\eb75"}),i.unverified=new i("unverified",{fontCharacter:"\\eb76"}),i.verified=new i("verified",{fontCharacter:"\\eb77"}),i.versions=new i("versions",{fontCharacter:"\\eb78"}),i.vmActive=new i("vm-active",{fontCharacter:"\\eb79"}),i.vmOutline=new i("vm-outline",{fontCharacter:"\\eb7a"}),i.vmRunning=new i("vm-running",{fontCharacter:"\\eb7b"}),i.watch=new i("watch",{fontCharacter:"\\eb7c"}),i.whitespace=new i("whitespace",{fontCharacter:"\\eb7d"}),i.wholeWord=new i("whole-word",{fontCharacter:"\\eb7e"}),i.window=new i("window",{fontCharacter:"\\eb7f"}),i.wordWrap=new i("word-wrap",{fontCharacter:"\\eb80"}),i.zoomIn=new i("zoom-in",{fontCharacter:"\\eb81"}),i.zoomOut=new i("zoom-out",{fontCharacter:"\\eb82"}),i.listFilter=new i("list-filter",{fontCharacter:"\\eb83"}),i.listFlat=new i("list-flat",{fontCharacter:"\\eb84"}),i.listSelection=new i("list-selection",{fontCharacter:"\\eb85"}),i.selection=new i("selection",{fontCharacter:"\\eb85"}),i.listTree=new i("list-tree",{fontCharacter:"\\eb86"}),i.debugBreakpointFunctionUnverified=new i("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),i.debugBreakpointFunction=new i("debug-breakpoint-function",{fontCharacter:"\\eb88"}),i.debugBreakpointFunctionDisabled=new i("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),i.debugStackframeActive=new i("debug-stackframe-active",{fontCharacter:"\\eb89"}),i.debugStackframeDot=new i("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),i.debugStackframe=new i("debug-stackframe",{fontCharacter:"\\eb8b"}),i.debugStackframeFocused=new i("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),i.debugBreakpointUnsupported=new i("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),i.symbolString=new i("symbol-string",{fontCharacter:"\\eb8d"}),i.debugReverseContinue=new i("debug-reverse-continue",{fontCharacter:"\\eb8e"}),i.debugStepBack=new i("debug-step-back",{fontCharacter:"\\eb8f"}),i.debugRestartFrame=new i("debug-restart-frame",{fontCharacter:"\\eb90"}),i.callIncoming=new i("call-incoming",{fontCharacter:"\\eb92"}),i.callOutgoing=new i("call-outgoing",{fontCharacter:"\\eb93"}),i.menu=new i("menu",{fontCharacter:"\\eb94"}),i.expandAll=new i("expand-all",{fontCharacter:"\\eb95"}),i.feedback=new i("feedback",{fontCharacter:"\\eb96"}),i.groupByRefType=new i("group-by-ref-type",{fontCharacter:"\\eb97"}),i.ungroupByRefType=new i("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),i.account=new i("account",{fontCharacter:"\\eb99"}),i.bellDot=new i("bell-dot",{fontCharacter:"\\eb9a"}),i.debugConsole=new i("debug-console",{fontCharacter:"\\eb9b"}),i.library=new i("library",{fontCharacter:"\\eb9c"}),i.output=new i("output",{fontCharacter:"\\eb9d"}),i.runAll=new i("run-all",{fontCharacter:"\\eb9e"}),i.syncIgnored=new i("sync-ignored",{fontCharacter:"\\eb9f"}),i.pinned=new i("pinned",{fontCharacter:"\\eba0"}),i.githubInverted=new i("github-inverted",{fontCharacter:"\\eba1"}),i.debugAlt=new i("debug-alt",{fontCharacter:"\\eb91"}),i.serverProcess=new i("server-process",{fontCharacter:"\\eba2"}),i.serverEnvironment=new i("server-environment",{fontCharacter:"\\eba3"}),i.pass=new i("pass",{fontCharacter:"\\eba4"}),i.stopCircle=new i("stop-circle",{fontCharacter:"\\eba5"}),i.playCircle=new i("play-circle",{fontCharacter:"\\eba6"}),i.record=new i("record",{fontCharacter:"\\eba7"}),i.debugAltSmall=new i("debug-alt-small",{fontCharacter:"\\eba8"}),i.vmConnect=new i("vm-connect",{fontCharacter:"\\eba9"}),i.cloud=new i("cloud",{fontCharacter:"\\ebaa"}),i.merge=new i("merge",{fontCharacter:"\\ebab"}),i.exportIcon=new i("export",{fontCharacter:"\\ebac"}),i.graphLeft=new i("graph-left",{fontCharacter:"\\ebad"}),i.magnet=new i("magnet",{fontCharacter:"\\ebae"}),i.notebook=new i("notebook",{fontCharacter:"\\ebaf"}),i.redo=new i("redo",{fontCharacter:"\\ebb0"}),i.checkAll=new i("check-all",{fontCharacter:"\\ebb1"}),i.pinnedDirty=new i("pinned-dirty",{fontCharacter:"\\ebb2"}),i.passFilled=new i("pass-filled",{fontCharacter:"\\ebb3"}),i.circleLargeFilled=new i("circle-large-filled",{fontCharacter:"\\ebb4"}),i.circleLargeOutline=new i("circle-large-outline",{fontCharacter:"\\ebb5"}),i.combine=new i("combine",{fontCharacter:"\\ebb6"}),i.gather=new i("gather",{fontCharacter:"\\ebb6"}),i.table=new i("table",{fontCharacter:"\\ebb7"}),i.variableGroup=new i("variable-group",{fontCharacter:"\\ebb8"}),i.typeHierarchy=new i("type-hierarchy",{fontCharacter:"\\ebb9"}),i.typeHierarchySub=new i("type-hierarchy-sub",{fontCharacter:"\\ebba"}),i.typeHierarchySuper=new i("type-hierarchy-super",{fontCharacter:"\\ebbb"}),i.gitPullRequestCreate=new i("git-pull-request-create",{fontCharacter:"\\ebbc"}),i.runAbove=new i("run-above",{fontCharacter:"\\ebbd"}),i.runBelow=new i("run-below",{fontCharacter:"\\ebbe"}),i.notebookTemplate=new i("notebook-template",{fontCharacter:"\\ebbf"}),i.debugRerun=new i("debug-rerun",{fontCharacter:"\\ebc0"}),i.workspaceTrusted=new i("workspace-trusted",{fontCharacter:"\\ebc1"}),i.workspaceUntrusted=new i("workspace-untrusted",{fontCharacter:"\\ebc2"}),i.workspaceUnspecified=new i("workspace-unspecified",{fontCharacter:"\\ebc3"}),i.terminalCmd=new i("terminal-cmd",{fontCharacter:"\\ebc4"}),i.terminalDebian=new i("terminal-debian",{fontCharacter:"\\ebc5"}),i.terminalLinux=new i("terminal-linux",{fontCharacter:"\\ebc6"}),i.terminalPowershell=new i("terminal-powershell",{fontCharacter:"\\ebc7"}),i.terminalTmux=new i("terminal-tmux",{fontCharacter:"\\ebc8"}),i.terminalUbuntu=new i("terminal-ubuntu",{fontCharacter:"\\ebc9"}),i.terminalBash=new i("terminal-bash",{fontCharacter:"\\ebca"}),i.arrowSwap=new i("arrow-swap",{fontCharacter:"\\ebcb"}),i.copy=new i("copy",{fontCharacter:"\\ebcc"}),i.personAdd=new i("person-add",{fontCharacter:"\\ebcd"}),i.filterFilled=new i("filter-filled",{fontCharacter:"\\ebce"}),i.wand=new i("wand",{fontCharacter:"\\ebcf"}),i.debugLineByLine=new i("debug-line-by-line",{fontCharacter:"\\ebd0"}),i.inspect=new i("inspect",{fontCharacter:"\\ebd1"}),i.layers=new i("layers",{fontCharacter:"\\ebd2"}),i.layersDot=new i("layers-dot",{fontCharacter:"\\ebd3"}),i.layersActive=new i("layers-active",{fontCharacter:"\\ebd4"}),i.compass=new i("compass",{fontCharacter:"\\ebd5"}),i.compassDot=new i("compass-dot",{fontCharacter:"\\ebd6"}),i.compassActive=new i("compass-active",{fontCharacter:"\\ebd7"}),i.azure=new i("azure",{fontCharacter:"\\ebd8"}),i.issueDraft=new i("issue-draft",{fontCharacter:"\\ebd9"}),i.gitPullRequestClosed=new i("git-pull-request-closed",{fontCharacter:"\\ebda"}),i.gitPullRequestDraft=new i("git-pull-request-draft",{fontCharacter:"\\ebdb"}),i.debugAll=new i("debug-all",{fontCharacter:"\\ebdc"}),i.debugCoverage=new i("debug-coverage",{fontCharacter:"\\ebdd"}),i.runErrors=new i("run-errors",{fontCharacter:"\\ebde"}),i.folderLibrary=new i("folder-library",{fontCharacter:"\\ebdf"}),i.dropDownButton=new i("drop-down-button",i.chevronDown.definition)},"56dc":function(e,t,i){},"56f3":function(e,t,i){},5717:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0a0f");const n=Object(t.c)("codeEditorService")},"580d":function(e,t,i){"use strict";function n(e,t){let i=0;for(let n=0;n<e.length;n++)"\t"===e.charAt(n)?i+=t:i++;return i}function o(e,t,i){e=e<0?0:e;let n="";if(!i){var o=Math.floor(e/t);e%=t;for(let e=0;e<o;e++)n+="\t"}for(let r=0;r<e;r++)n+=" ";return n}i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o}))},5818:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0a0f");const n=Object(t.c)("modeService")},"59a4":function(e,t,i){"use strict";i.d(t,"a",(function(){return R}));var n=i("e8e3"),o=i("a666"),r=i("3742"),s=(i("7457"),i("d3f4")),a=i("6a89"),l=i("8025"),d=(t=i("b57f"),i("1165")),h=i("0a0f"),c=i("b800"),u=i("dff7"),g=i("32b8"),p=i("82c9"),m=i("70cb"),f=i("6d8e");const _="code-workspace";function b(e){return"string"==typeof(null==e?void 0:e.id)&&f.a.isUri(e.uri)}var v=i("debc");const C=new Uint8Array(16),w=[];for(let P=0;P<256;P++)w.push(P.toString(16).padStart(2,"0"));let y;y="object"==typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};class S{constructor(e){this._delegates=e}resolve(e){for(const i of this._delegates){var t=i.resolve(e);if(void 0!==t)return t}}}class L{constructor(e,t,i,n){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=n}resolve(e){var t=e["name"];if("SELECTION"!==t&&"TM_SELECTED_TEXT"!==t)return"TM_CURRENT_LINE"===t?this._model.getLineContent(this._selection.positionLineNumber):"TM_CURRENT_WORD"===t?(i=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn}))&&i.word||void 0:"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):void 0;{let n=this._model.getValueInRange(this._selection)||void 0,o=this._selection.startLineNumber!==this._selection.endLineNumber;if(!n&&this._overtypingCapturer&&(i=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx))&&(n=i.value,o=i.multiline),n&&o&&e.snippet){t=this._model.getLineContent(this._selection.startLineNumber);var i=Object(r.x)(t,0,this._selection.startColumn-1);let o=i;e.snippet.walk(t=>t!==e&&(t instanceof c.d&&(o=Object(r.x)(Object(r.Q)(t.value).pop())),!0));const s=Object(r.d)(o,i);n=n.replace(/(\r\n|\r|\n)(.*)/g,(e,t,i)=>""+t+o.substr(s)+i)}return n}}}class x{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const t=e["name"];if("TM_FILENAME"===t)return g.a(this._model.uri.fsPath);if("TM_FILENAME_BASE"!==t)return"TM_DIRECTORY"===t&&this._labelService?"."===g.b(this._model.uri.fsPath)?"":this._labelService.getUriLabel(Object(p.d)(this._model.uri)):"TM_FILEPATH"===t&&this._labelService?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t&&this._labelService?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0;{const t=g.a(this._model.uri.fsPath);return e=t.lastIndexOf("."),e<=0?t:t.slice(0,e)}}}class k{constructor(e,t,i,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=n}resolve(e){if("CLIPBOARD"===e.name&&(e=this._readClipboardText(),e)){if(this._spread){var t=e.split(/\r\n|\n|\r/).filter(e=>!Object(r.C)(e));if(t.length===this._selectionCount)return t[this._selectionIdx]}return e}}}class D{constructor(e,t){this._model=e,this._selection=t}resolve(e){e=e["name"];var t=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn);t=m.a.getComments(t);if(t)return"LINE_COMMENT"===e?t.lineCommentToken||void 0:"BLOCK_COMMENT_START"===e?t.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===e&&t.blockCommentEndToken||void 0}}class N{constructor(){this._date=new Date}resolve(e){return e=e.name,"CURRENT_YEAR"===e?String(this._date.getFullYear()):"CURRENT_YEAR_SHORT"===e?String(this._date.getFullYear()).slice(-2):"CURRENT_MONTH"===e?String(this._date.getMonth().valueOf()+1).padStart(2,"0"):"CURRENT_DATE"===e?String(this._date.getDate().valueOf()).padStart(2,"0"):"CURRENT_HOUR"===e?String(this._date.getHours().valueOf()).padStart(2,"0"):"CURRENT_MINUTE"===e?String(this._date.getMinutes().valueOf()).padStart(2,"0"):"CURRENT_SECOND"===e?String(this._date.getSeconds().valueOf()).padStart(2,"0"):"CURRENT_DAY_NAME"===e?N.dayNames[this._date.getDay()]:"CURRENT_DAY_NAME_SHORT"===e?N.dayNamesShort[this._date.getDay()]:"CURRENT_MONTH_NAME"===e?N.monthNames[this._date.getMonth()]:"CURRENT_MONTH_NAME_SHORT"===e?N.monthNamesShort[this._date.getMonth()]:"CURRENT_SECONDS_UNIX"===e?String(Math.floor(this._date.getTime()/1e3)):void 0}}N.dayNames=[u.a("Sunday","Sunday"),u.a("Monday","Monday"),u.a("Tuesday","Tuesday"),u.a("Wednesday","Wednesday"),u.a("Thursday","Thursday"),u.a("Friday","Friday"),u.a("Saturday","Saturday")],N.dayNamesShort=[u.a("SundayShort","Sun"),u.a("MondayShort","Mon"),u.a("TuesdayShort","Tue"),u.a("WednesdayShort","Wed"),u.a("ThursdayShort","Thu"),u.a("FridayShort","Fri"),u.a("SaturdayShort","Sat")],N.monthNames=[u.a("January","January"),u.a("February","February"),u.a("March","March"),u.a("April","April"),u.a("May","May"),u.a("June","June"),u.a("July","July"),u.a("August","August"),u.a("September","September"),u.a("October","October"),u.a("November","November"),u.a("December","December")],N.monthNamesShort=[u.a("JanuaryShort","Jan"),u.a("FebruaryShort","Feb"),u.a("MarchShort","Mar"),u.a("AprilShort","Apr"),u.a("MayShort","May"),u.a("JuneShort","Jun"),u.a("JulyShort","Jul"),u.a("AugustShort","Aug"),u.a("SeptemberShort","Sep"),u.a("OctoberShort","Oct"),u.a("NovemberShort","Nov"),u.a("DecemberShort","Dec")];class O{constructor(e){this._workspaceService=e}resolve(e){if(this._workspaceService){var t=(t=this._workspaceService.getWorkspace()).configuration?{id:t.id,configPath:t.configuration}:1===t.folders.length?{id:t.id,uri:t.folders[0].uri}:void 0;if(t)return"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}}_resolveWorkspaceName(e){if(b(e))return g.a(e.uri.path);let t=g.a(e.configPath.path);return t.endsWith(_)?t.substr(0,t.length-_.length-1):t}_resoveWorkspacePath(e){if(b(e))return Object(v.b)(e.uri.fsPath);var t=g.a(e.configPath.path);let i=e.configPath.fsPath;return(i=i.endsWith(t)?i.substr(0,i.length-t.length-1):i)?Object(v.b)(i):"/"}}class E{resolve(e){var t;e=e["name"];return"RANDOM"===e?Math.random().toString().slice(-6):"RANDOM_HEX"===e?Math.random().toString(16).slice(-6):"UUID"===e?(y(C),C[6]=15&C[6]|64,C[8]=63&C[8]|128,e=0,t="",(t+=w[C[e++]])+w[C[e++]]+w[C[e++]]+w[C[e++]]+"-"+w[C[e++]]+w[C[e++]]+"-"+w[C[e++]]+w[C[e++]]+"-"+w[C[e++]]+w[C[e++]]+"-"+w[C[e++]]+w[C[e++]]+w[C[e++]]+w[C[e++]]+w[C[+e]]+w[C[15]]):void 0}}u=i("b7d0");var I=i("303e"),M=i("47cb");Object(u.f)((e,t)=>{function i(t){return t=e.getColor(t),t?t.toString():"transparent"}t.addRule(`.monaco-editor .snippet-placeholder { background-color: ${i(I.Ec)}; outline-color: ${i(I.Fc)}; }`),t.addRule(`.monaco-editor .finish-snippet-placeholder { background-color: ${i(I.Cc)}; outline-color: ${i(I.Dc)}; }`)});class T{constructor(e,t,i,o){this._editor=e,this._snippet=t,this._offset=i,this._snippetLineLeadingWhitespace=o,this._nestingLevel=1,this._placeholderGroups=Object(n.l)(t.placeholders,c.b.compareByIndex),this._placeholderGroupsIdx=-1}dispose(){this._placeholderDecorations&&this._editor.deltaDecorations([...this._placeholderDecorations.values()],[]),this._placeholderGroups.length=0}_initDecorations(){if(!this._placeholderDecorations){this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations(t=>{for(const o of this._snippet.placeholders){var i=this._snippet.offset(o),n=this._snippet.fullLen(o);i=a.a.fromPositions(e.getPositionAt(this._offset+i),e.getPositionAt(this._offset+i+n)),n=o.isFinalTabstop?T._decor.inactiveFinal:T._decor.inactive,i=t.addDecoration(i,n);this._placeholderDecorations.set(o,i)}})}}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),0<=this._placeholderGroupsIdx){var t=[];for(const e of this._placeholderGroups[this._placeholderGroupsIdx])if(e.transform){var i=this._placeholderDecorations.get(e),n=(i=this._editor.getModel().getDecorationRange(i),this._editor.getModel().getValueInRange(i)),o=e.transform.resolve(n).split(/\r\n|\r|\n/);for(let e=1;e<o.length;e++)o[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+o[e]);t.push(s.a.replace(i,o.join(this._editor.getModel().getEOL())))}0<t.length&&this._editor.executeEdits("snippet.placeholderTransform",t)}let r=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,r=!0):!1===e&&0<this._placeholderGroupsIdx&&(--this._placeholderGroupsIdx,r=!0);var a=this._editor.getModel().changeDecorations(e=>{var t,i,n=new Set,o=[];for(const h of this._placeholderGroups[this._placeholderGroupsIdx]){var s=this._placeholderDecorations.get(h),a=this._editor.getModel().getDecorationRange(s);o.push(new l.a(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn)),r=r&&this._hasPlaceholderBeenCollapsed(h),e.changeDecorationOptions(s,h.isFinalTabstop?T._decor.activeFinal:T._decor.active),n.add(h);for(const t of this._snippet.enclosingPlaceholders(h)){var d=this._placeholderDecorations.get(t);e.changeDecorationOptions(d,t.isFinalTabstop?T._decor.activeFinal:T._decor.active),n.add(t)}}for([t,i]of this._placeholderDecorations)n.has(t)||e.changeDecorationOptions(i,t.isFinalTabstop?T._decor.inactiveFinal:T._decor.inactive);return o});return r?this.move(e):null!=a?a:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof c.b){var i=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(i).isEmpty()&&0<t.toString().length)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return 0<this._snippet.placeholders.length}computePossibleSelections(){var e=new Map;for(const i of this._placeholderGroups){let n;for(const o of i){if(o.isFinalTabstop)break;n||(n=[],e.set(o.index,n));var t=this._placeholderDecorations.get(o);t=this._editor.getModel().getDecorationRange(t);if(!t){e.delete(o.index);break}n.push(t)}}return e}get choice(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(i=>{for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){var o=e.shift(),r=o._snippet.placeholderInfo.last.index;for(const e of o._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=n.index+(r+1)/this._nestingLevel:e.index=n.index+e.index/this._nestingLevel;this._snippet.replace(n,o._snippet.children);var s=this._placeholderDecorations.get(n);i.removeDecoration(s),this._placeholderDecorations.delete(n);for(const e of o._snippet.placeholders){var l=o._snippet.offset(e),d=o._snippet.fullLen(e);l=a.a.fromPositions(t.getPositionAt(o._offset+l),t.getPositionAt(o._offset+l+d)),d=i.addDecoration(l,T._decor.inactive);this._placeholderDecorations.set(e,d)}}this._placeholderGroups=Object(n.l)(this._snippet.placeholders,c.b.compareByIndex)})}}T._decor={active:t.a.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:t.a.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:t.a.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:t.a.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const A={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};class R{constructor(e,t,i=A){this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=i}static adjustWhitespace(e,t,i,n,o){var s=e.getLineContent(t.lineNumber);const a=Object(r.x)(s,0,t.column-1);let l;return i.walk(t=>{if(t instanceof c.d&&!(t.parent instanceof c.a)){var o=t.value.split(/\r\n|\r|\n/);if(n){var r=i.offset(t);0===r?o[0]=e.normalizeIndentation(o[0]):10!==(r=(l=null!==l&&void 0!==l?l:i.toString()).charCodeAt(r-1))&&13!==r||(o[0]=e.normalizeIndentation(a+o[0]));for(let t=1;t<o.length;t++)o[t]=e.normalizeIndentation(a+o[t])}r=o.join(e.getEOL()),r!==t.value&&(t.parent.replace(t,[new c.d(r)]),l=void 0)}return!0}),a}static adjustSelection(e,t,i,n){var o,r;return 0===i&&0===n||(({positionLineNumber:o,positionColumn:r}=t),e=e.validateRange({startLineNumber:o,startColumn:r-i,endLineNumber:o,endColumn:r+n}),t=l.a.createWithDirection(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn,t.getDirection())),t}static createEditsAndSnippets(e,t,i,n,o,r,l,u){var g=[],p=[];if(e.hasModel()){const j=e.getModel();var m=e.invokeWithinContext(e=>e.get(d.a,h.d)),f=e.invokeWithinContext(e=>new x(e.get(M.a,h.d),j)),_=()=>l;let W=0;var b,v,C=j.getValueInRange(R.adjustSelection(j,e.getSelection(),i,0)),w=j.getValueInRange(R.adjustSelection(j,e.getSelection(),0,n)),y=j.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),I=e.getSelections().map((e,t)=>({selection:e,idx:t})).sort((e,t)=>a.a.compareRangesUsingStarts(e.selection,t.selection));for({selection:b,idx:v}of I){let a=R.adjustSelection(j,b,i,0),l=R.adjustSelection(j,b,0,n);C!==j.getValueInRange(a)&&(a=b),w!==j.getValueInRange(l)&&(l=b);var A=b.setStartPosition(a.startLineNumber,a.startColumn).setEndPosition(l.endLineNumber,l.endColumn),P=(new c.c).parse(t,!0,o),F=A.getStartPosition(),B=R.adjustWhitespace(j,F,P,r||0<v&&y!==j.getLineFirstNonWhitespaceColumn(b.positionLineNumber),!0);F=(P.resolveVariables(new S([f,new k(_,v,I.length,"spread"===e.getOption(70)),new L(j,b,v,u),new D(j,b),new N,new O(m),new E])),j.getOffsetAt(F)+W);W+=P.toString().length-j.getValueLengthInRange(A),g[v]=s.a.replace(A,P.toString()),g[v].identifier={major:v,minor:0},p[v]=new T(e,P,F,B)}}return{edits:g,snippets:p}}dispose(){Object(o.f)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){var e,t;this._editor.hasModel()&&(({edits:e,snippets:t}=R.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer)),this._snippets=t,this._editor.executeEdits("snippet",e,e=>this._snippets[0].hasPlaceholder?this._move(!0):e.filter(e=>!!e.identifier).map(e=>l.a.fromPositions(e.range.getEndPosition()))),this._editor.revealRange(this._editor.getSelections()[0]))}merge(e,t=A){if(this._editor.hasModel()){this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:n}=R.createEditsAndSnippets(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer);this._editor.executeEdits("snippet",i,e=>{for(const t of this._snippets)t.merge(n);return this._snippets[0].hasPlaceholder?this._move(void 0):e.filter(e=>!!e.identifier).map(e=>l.a.fromPositions(e.range.getEndPosition()))})}}next(){var e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){var e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){var t=[];for(const n of this._snippets){var i=n.move(e);t.push(...i)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get choice(){return this._snippets[0].choice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;var e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;var t,i,n=new Map;for(const s of this._snippets){const t=s.computePossibleSelections();if(0===n.size)for(var[o,r]of t){r.sort(a.a.compareRangesUsingStarts);for(const t of e)if(r[0].containsRange(t)){n.set(o,[]);break}}if(0===n.size)return!1;n.forEach((e,i)=>{e.push(...t.get(i))})}for([t,i]of(e.sort(a.a.compareRangesUsingStarts),n))if(i.length!==e.length)n.delete(t);else{i.sort(a.a.compareRangesUsingStarts);for(let o=0;o<i.length;o++)i[o].containsRange(e[o])||n.delete(t)}return 0<n.size}}},"5aa5":function(e,t,i){"use strict";i.d(t,"a",(function(){return c}));var n=i("11f7"),o=i("b835"),r=i("eff2"),s=i("f070"),a=i("308f"),l=i("a666"),d=i("ef8e9"),h=(i("c84a"),function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});class c extends l.a{constructor(e,t={}){var i;let l,d;switch(super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new a.b),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new a.b({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new a.b),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new a.b),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=null!=(i=t.context)?i:null,this._orientation=null!=(i=this.options.orientation)?i:0,this._triggerKeys={keyDown:null!=(i=null==(i=this.options.triggerKeys)?void 0:i.keyDown)&&i,keys:null!=(i=null==(i=this.options.triggerKeys)?void 0:i.keys)?i:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new s.b,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(e=>this._onDidRun.fire(e))),this._register(this._actionRunner.onBeforeRun(e=>this._onBeforeRun.fire(e))),this._actionIds=[],this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),!(this.domNode.className="monaco-action-bar")!==t.animated&&this.domNode.classList.add("animated"),this._orientation){case 0:l=[15],d=[17];break;case 1:l=[16],d=[18],this.domNode.className+=" vertical"}this._register(n.i(this.domNode,n.d.KEY_DOWN,e=>{e=new o.a(e);let t=!0;var i="number"==typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;l&&(e.equals(l[0])||e.equals(l[1]))?t=this.focusPrevious():d&&(e.equals(d[0])||e.equals(d[1]))?t=this.focusNext():e.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():e.equals(14)?t=this.focusFirst():e.equals(13)?t=this.focusLast():e.equals(2)&&i instanceof r.b&&i.trapsArrowNavigation?t=this.focusNext():this.isTriggerKeyEvent(e)?this._triggerKeys.keyDown?this.doTrigger(e):this.triggerKeyDown=!0:t=!1,t&&(e.preventDefault(),e.stopPropagation())})),this._register(n.i(this.domNode,n.d.KEY_UP,e=>{e=new o.a(e),this.isTriggerKeyEvent(e)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(e)),e.preventDefault(),e.stopPropagation()):(e.equals(2)||e.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(n.Y(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{n.y()!==this.domNode&&n.L(n.y(),this.domNode)||(this._onDidBlur.fire(),this.focusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let t=0;t<this.actionsList.children.length;t++){var e=this.actionsList.children[t];if(n.L(n.y(),e)){this.focusedItem=t;break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach(t=>t.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){e=Array.isArray(e)?e:[e];let i=d.i(t.index)?t.index:null;e.forEach(e=>{var o=document.createElement("li");let s;o.className="action-item",o.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(n.i(o,n.d.CONTEXT_MENU,e=>{n.c.stop(e,!0)})),(s=(s=this.options.actionViewItemProvider?this.options.actionViewItemProvider(e):s)||new r.a(this.context,e,t)).actionRunner=this._actionRunner,s.setActionContext(this.context),s.render(o),this.focusable&&s instanceof r.b&&0===this.viewItems.length&&s.setFocusable(!0),null===i||i<0||i>=this.actionsList.children.length?(this.actionsList.appendChild(o),this.viewItems.push(s),this._actionIds.push(e.id)):(this.actionsList.insertBefore(o,this.actionsList.children[i]),this.viewItems.splice(i,0,s),this._actionIds.splice(i,0,e.id),i++)}),"number"==typeof this.focusedItem&&this.focus(this.focusedItem)}clear(){Object(l.f)(this.viewItems),this.viewItems=[],this._actionIds=[],n.t(this.actionsList)}length(){return this.viewItems.length}focus(e){let t=!1,i=void 0;void 0===e?t=!0:"number"==typeof e?i=e:"boolean"==typeof e&&(t=e),t&&void 0===this.focusedItem?(e=this.viewItems.findIndex(e=>e.isEnabled()),this.focusedItem=-1===e?void 0:e):void 0!==i&&(this.focusedItem=i),this.updateFocus()}focusFirst(){return this.focusedItem=1<this.length()?1:0,this.focusPrevious()}focusLast(){return this.focusedItem=this.length()<2?0:this.length()-2,this.focusNext()}focusNext(){if(void 0===this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;var e,t=this.focusedItem;do{if(this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1}while(this.focusedItem=(this.focusedItem+1)%this.viewItems.length,e=this.viewItems[this.focusedItem],this.focusedItem!==t&&this.options.focusOnlyEnabledItems&&!e.isEnabled());return this.updateFocus(),!0}focusPrevious(){if(void 0===this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;var e,t=this.focusedItem;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}}while(e=this.viewItems[this.focusedItem],this.focusedItem!==t&&this.options.focusOnlyEnabledItems&&!e.isEnabled());return this.updateFocus(!0),!0}updateFocus(e,t){void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t});for(let o=0;o<this.viewItems.length;o++){var i=this.viewItems[o],n=i;if(o===this.focusedItem){let o=!0;d.h(n.focus)||(o=!1),(o=!(this.options.focusOnlyEnabledItems&&d.h(i.isEnabled)&&!i.isEnabled())&&o)?n.focus(e):this.actionsList.focus({preventScroll:t})}else d.h(n.blur)&&n.blur()}}doTrigger(e){var t;void 0!==this.focusedItem&&(t=this.viewItems[this.focusedItem])instanceof r.b&&(e=null===t._context||void 0===t._context?e:t._context,this.run(t._action,e))}run(e,t){return h(this,void 0,void 0,(function*(){yield this._actionRunner.run(e,t)}))}dispose(){Object(l.f)(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}},"5b02":function(e,t,i){"use strict";i.r(t),i.d(t,"TriggerParameterHintsAction",(function(){return z}));var n=i("dff7"),o=i("a666"),r=(t=i("0a0f"),i("c101")),s=i("4fc3"),a=i("b2cc"),l=i("11f7"),d=i("3813"),h=i("1898"),c=i("308f"),u=(i("cab5"),i("5818")),g=i("bfa1"),p=i("fdcc"),m=i("7061"),f=i("b707"),_=i("2504"),b=i("9e74"),v=i("6d8e"),C=i("ef8e9"),w=i("b78f"),y=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const S={Visible:new s.c("parameterHintsVisible",!1),MultipleSignatures:new s.c("parameterHintsMultipleSignatures",!1)};function L(e,t,i,n){return y(this,void 0,void 0,(function*(){for(const r of f.B.ordered(e))try{var o=yield r.provideSignatureHelp(e,t,n,i);if(o)return o}catch(o){Object(p.g)(o)}}))}b.a.registerCommand("_executeSignatureHelpProvider",(e,...t)=>y(void 0,void 0,void 0,(function*(){var[i,n,o]=t,i=(Object(C.c)(v.a.isUri(i)),Object(C.c)(m.a.isIPosition(n)),Object(C.c)("string"==typeof o||!o),yield e.get(w.a).createModelReference(i));try{const e=yield L(i.object.textEditorModel,m.a.lift(n),{triggerKind:f.C.Invoke,isRetrigger:!1,triggerCharacter:o},_.a.None);if(e)return setTimeout(()=>e.dispose(),0),e.value}finally{i.dispose()}})));b=i("5bd73");var x,k=i("303e"),D=i("b7d0"),N=i("5fe7"),O=i("3170"),E=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},I=x=x||{};I.Default={type:0},I.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}},I.Active=class{constructor(e){this.hints=e,this.type=1}};class M extends o.a{constructor(e,t=M.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new c.b),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=x.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new o.d),this.triggerChars=new O.b,this.retriggerChars=new O.b,this.triggerId=0,this.editor=e,this.throttledDelayer=new N.a(t),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(e=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(e=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(e=>this.onCursorChange(e))),this._register(this.editor.onDidChangeModelContent(e=>this.onModelContentChange())),this._register(f.B.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(e=>this.onDidType(e))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=x.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){var i=this.editor.getModel();if(i&&f.B.has(i)){const i=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(i),t).catch(p.f)}}next(){var e,t,i,n;1===this.state.type&&(e=this.state.hints.signatures.length,i=(t=this.state.hints.activeSignature)%e==e-1,n=this.editor.getOption(75).cycle,(e<2||i)&&!n?this.cancel():this.updateActiveSignature(i&&n?0:t+1))}previous(){var e,t,i,n;1===this.state.type&&(e=this.state.hints.signatures.length,i=0===(t=this.state.hints.activeSignature),n=this.editor.getOption(75).cycle,(e<2||i)&&!n?this.cancel():this.updateActiveSignature(i&&n?e-1:t-1))}updateActiveSignature(e){1===this.state.type&&(this.state=new x.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return E(this,void 0,void 0,(function*(){var t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;var n=this._pendingTriggers.reduce(T);this._pendingTriggers=[];const o={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const r=this.editor.getModel(),s=this.editor.getPosition();this.state=new x.Pending(Object(N.h)(e=>L(r,s,o,e)),i);try{var a=yield this.state.request;return e!==this.triggerId?(null!=a&&a.dispose(),!1):a&&a.value.signatures&&0!==a.value.signatures.length?(this.state=new x.Active(a.value),this._lastSignatureHelpResult.value=a,this._onChangedHints.fire(this.state.hints),!0):(null!=a&&a.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(t){return e===this.triggerId&&(this.state=x.Default),Object(p.f)(t),!1}}))}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new O.b,this.retriggerChars=new O.b;var e=this.editor.getModel();if(e)for(const t of f.B.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])this.triggerChars.add(e.charCodeAt(0)),this.retriggerChars.add(e.charCodeAt(0));for(const e of t.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){var t,i;this.triggerOnType&&(t=e.length-1,i=e.charCodeAt(t),this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:f.C.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:f.C.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:f.C.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(75).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function T(e,t){switch(t.triggerKind){case f.C.Invoke:return t;case f.C.ContentChange:return e;default:return f.C.TriggerCharacter,t}}M.DEFAULT_DELAY=120;var A=i("3742"),R=(I=i("561a"),i("9c41")),P=(i=i("bf5b"),function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}),F=function(e,t){return function(i,n){t(i,n,e)}};const B=l.a,j=Object(i.b)("parameter-hints-next",I.b.chevronDown,n.a("parameterHintsNextIcon","Icon for show next parameter hint.")),W=Object(i.b)("parameter-hints-previous",I.b.chevronUp,n.a("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let V=class e extends o.a{constructor(e,t,i,n){super(),this.editor=e,this.renderDisposeables=this._register(new o.b),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new g.a({editor:e},n,i)),this.model=this._register(new M(e)),this.keyVisible=S.Visible.bindTo(t),this.keyMultipleSignatures=S.MultipleSignatures.bindTo(t),this._register(this.model.onChangedHints(e=>{e?(this.show(),this.render(e)):this.hide()}))}createParameterHintDOMNodes(){var e=B(".editor-widget.parameter-hints-widget"),t=l.q(e,B(".phwrapper")),i=(t.tabIndex=-1,l.q(t,B(".controls"))),n=l.q(i,B(".button"+D.d.asCSSSelector(W))),o=l.q(i,B(".overloads"));i=l.q(i,B(".button"+D.d.asCSSSelector(j))),this._register(l.i(n,"click",e=>{l.c.stop(e),this.previous()})),this._register(l.i(i,"click",e=>{l.c.stop(e),this.next()})),n=B(".body"),i=new h.a(n,{}),this._register(i),t.appendChild(i.getDomNode()),t=l.q(n,B(".signature")),n=l.q(n,B(".docs")),e.style.userSelect="text",this.domNodes={element:e,signature:t,overloads:o,docs:n,scrollbar:i},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(e=>{this.visible&&this.editor.layoutContentWidget(this)})),e=()=>{var e;this.domNodes&&(e=this.editor.getOption(42),this.domNodes.element.style.fontSize=e.fontSize+"px")};e(),this._register(c.c.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(e=>e.hasChanged(42)).on(e,null)),this._register(this.editor.onDidLayoutChange(e=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{this.domNodes&&this.domNodes.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&this.domNodes.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){if(this.renderDisposeables.clear(),this.domNodes){var t=1<e.signatures.length;t=(this.domNodes.element.classList.toggle("multiple",t),this.keyMultipleSignatures.set(t),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="",e.signatures[e.activeSignature]);if(t){var i=l.q(this.domNodes.signature,B(".code")),o=this.editor.getOption(42),r=(o=(i.style.fontSize=o.fontSize+"px",i.style.fontFamily=o.fontFamily,0<t.parameters.length),null!=(r=t.activeParameter)?r:e.activeParameter);o=(o?this.renderParameters(i,t,r):l.q(i,B("span")).textContent=t.label,t.parameters[r]),i=(null!=o&&o.documentation&&(i=B("span.documentation"),"string"==typeof o.documentation?i.textContent=o.documentation:(s=this.renderMarkdownDocs(o.documentation),i.appendChild(s.element)),l.q(this.domNodes.docs,B("p",{},i))),void 0!==t.documentation&&("string"==typeof t.documentation?l.q(this.domNodes.docs,B("p",{},t.documentation)):(s=this.renderMarkdownDocs(t.documentation),l.q(this.domNodes.docs,s.element))),this.hasDocs(t,o));if(this.domNodes.signature.classList.toggle("has-docs",i),this.domNodes.docs.classList.toggle("empty",!i),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,o){let e="";var s=t.parameters[r];e=Array.isArray(s.label)?t.label.substring(s.label[0],s.label[1]):s.label,s.documentation&&(e+="string"==typeof s.documentation?", "+s.documentation:", "+s.documentation.value),t.documentation&&(e+="string"==typeof t.documentation?", "+t.documentation:", "+t.documentation.value),this.announcedLabel!==e&&(d.a(n.a("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}}}renderMarkdownDocs(e){return e=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var e;null!=(e=this.domNodes)&&e.scrollbar.scanDomNode()}})),e.element.classList.add("markdown-docs"),e}hasDocs(e,t){return!!(t&&"string"==typeof t.documentation&&0<Object(C.a)(t.documentation).length||t&&"object"==typeof t.documentation&&0<Object(C.a)(t.documentation).value.length||e.documentation&&"string"==typeof e.documentation&&0<Object(C.a)(e.documentation).length||e.documentation&&"object"==typeof e.documentation&&0<Object(C.a)(e.documentation.value).length)}renderParameters(e,t,i){var[i,n]=this.getParameterLabelOffsets(t,i),o=document.createElement("span"),r=(o.textContent=t.label.substring(0,i),document.createElement("span"));r.textContent=t.label.substring(i,n),r.className="parameter active",i=document.createElement("span");i.textContent=t.label.substring(n),l.q(e,o,r,i)}getParameterLabelOffsets(e,t){var i;t=e.parameters[t];return t?Array.isArray(t.label)?t.label:t.label.length&&((i=new RegExp(`(\\W|^)${Object(A.t)(t.label)}(?=\\W|$)`,"g")).test(e.label),0<=(e=i.lastIndex-t.label.length))?[e,i.lastIndex]:[0,0]:[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}cancel(){this.model.cancel()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return e.ID}trigger(e){this.model.trigger(e,0)}updateMaxHeight(){var e,t;this.domNodes&&(e=Math.max(this.editor.getLayoutInfo().height/4,250)+"px",this.domNodes.element.style.maxHeight=e,(t=this.domNodes.element.getElementsByClassName("phwrapper")).length)&&(t[0].style.maxHeight=e)}};V.ID="editor.widget.parameterHintsWidget",V=P([F(1,s.b),F(2,b.a),F(3,u.a)],V),Object(D.f)((e,t)=>{var i=e.getColor(k.F),n=(i&&(n=e.type===R.a.HIGH_CONTRAST?2:1,t.addRule(`.monaco-editor .parameter-hints-widget { border: ${n}px solid ${i}; }`),t.addRule(`.monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid ${i.transparent(.5)}; }`)),e.getColor(k.E));n&&t.addRule(`.monaco-editor .parameter-hints-widget { background-color: ${n}; }`),i=e.getColor(k.Jc),i&&t.addRule(`.monaco-editor .parameter-hints-widget a { color: ${i}; }`),n=e.getColor(k.Ic),n&&t.addRule(`.monaco-editor .parameter-hints-widget a:hover { color: ${n}; }`),i=e.getColor(k.G),i&&t.addRule(`.monaco-editor .parameter-hints-widget { color: ${i}; }`),n=e.getColor(k.Hc);n&&t.addRule(`.monaco-editor .parameter-hints-widget code { background-color: ${n}; }`)}),i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},I=function(e,t){return function(i,n){t(i,n,e)}};let H=class e extends o.a{constructor(e,t){super(),this.editor=e,this.widget=this._register(t.createInstance(V,this.editor))}static get(t){return t.getContribution(e.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(e){this.widget.trigger(e)}};H.ID="editor.controller.parameterHints",H=i([I(1,t.a)],H);class z extends a.b{constructor(){super({id:"editor.action.triggerParameterHints",label:n.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:r.a.hasSignatureHelpProvider,kbOpts:{kbExpr:r.a.editorTextFocus,primary:3082,weight:100}})}run(e,t){t=H.get(t),t&&t.trigger({triggerKind:f.C.Invoke})}}Object(a.l)(H.ID,H),Object(a.j)(z),P=a.c.bindToContribution(H.get),Object(a.k)(new P({id:"closeParameterHints",precondition:S.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:r.a.focus,primary:9,secondary:[1033]}})),Object(a.k)(new P({id:"showPrevParameterHint",precondition:s.a.and(S.Visible,S.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:r.a.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Object(a.k)(new P({id:"showNextParameterHint",precondition:s.a.and(S.Visible,S.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:r.a.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},"5bd73":function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return l})),i.d(t,"c",(function(){return d}));var n=i("a666"),o=i("3742"),r=i("6d8e"),s=(t=i("0a0f"),function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});const a=Object(t.c)("openerService"),l=Object.freeze({_serviceBrand:void 0,registerOpener(){return n.a.None},registerValidator(){return n.a.None},registerExternalUriResolver(){return n.a.None},setDefaultExternalOpener(){},registerExternalOpener(){return n.a.None},open(){return s(this,void 0,void 0,(function*(){return!1}))},resolveExternalUri(e){return s(this,void 0,void 0,(function*(){return{resolved:e,dispose(){}}}))}});function d(e,t){return r.a.isUri(e)?Object(o.r)(e.scheme,t):Object(o.R)(e,t+":")}},"5d08":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return i.e("chunk-2d238465").then(i.bind(null,"ff4c"))}})},"5d28":function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return a}));var n=i("0f70"),o=i("e757"),r=i("30db");class s{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),e=o.a.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view),this.posx-=e.left,this.posy-=e.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class a{constructor(e,t=0,i=0){this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e&&(t=i=e,void 0!==i.wheelDeltaY?this.deltaY=i.wheelDeltaY/120:void 0!==t.VERTICAL_AXIS&&t.axis===t.VERTICAL_AXIS?this.deltaY=-t.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?n.g&&!r.f?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40),void 0!==i.wheelDeltaX?n.h&&r.i?this.deltaX=-i.wheelDeltaX/120:this.deltaX=i.wheelDeltaX/120:void 0!==t.HORIZONTAL_AXIS&&t.axis===t.HORIZONTAL_AXIS?this.deltaX=-e.detail/3:"wheel"===e.type&&(e.deltaMode===e.DOM_DELTA_LINE?n.g&&!r.f?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40),0===this.deltaY)&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},"5d70":function(e,t,i){},"5d75":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0a0f");const n=Object(t.c)("telemetryService")},"5ed2":function(e,t,i){"use strict";i.r(t),i.d(t,"getOccurrencesAtPosition",(function(){return k}));var n=i("dff7"),o=i("e8e3"),r=i("5fe7"),s=i("2504"),a=i("fdcc"),l=i("a666"),d=(t=i("b2cc"),i("6a89")),h=i("c101"),c=i("3352"),u=i("b57f"),g=i("b707"),p=i("4fc3"),m=i("303e"),f=i("b7d0"),_=i("3813"),b=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});const v=Object(m.wc)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},n.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),C=Object(m.wc)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},n.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),w=Object(m.wc)("editor.wordHighlightBorder",{light:null,dark:null,hc:m.b},n.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),y=Object(m.wc)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:m.b},n.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable."));var S=Object(m.wc)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},n.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),L=Object(m.wc)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},n.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0);const x=new p.c("hasWordHighlights",!1);function k(e,t,i){var n=g.i.ordered(e);return Object(r.j)(n.map(n=>()=>Promise.resolve(n.provideDocumentHighlights(e,t,i)).then(void 0,a.g)),o.n)}class D{constructor(e,t,i){this._wordRange=this._getCurrentWordRange(e,t),this.result=Object(r.h)(n=>this._compute(e,t,i,n))}_getCurrentWordRange(e,t){return e=e.getWordAtPosition(t.getPosition()),e?new d.a(t.startLineNumber,e.startColumn,t.startLineNumber,e.endColumn):null}isValid(e,t,i){var n=t.startLineNumber,o=t.startColumn,r=t.endColumn;t=this._getCurrentWordRange(e,t);let s=Boolean(this._wordRange&&this._wordRange.equalsRange(t));for(let l=0,d=i.length;!s&&l<d;l++){var a=e.getDecorationRange(i[l]);a&&a.startLineNumber===n&&a.startColumn<=o&&a.endColumn>=r&&(s=!0)}return s}cancel(){this.result.cancel()}}class N extends D{_compute(e,t,i,n){return k(e,t.getPosition(),n).then(e=>e||[])}}class O extends D{constructor(e,t,i){super(e,t,i),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,i,n){return Object(r.n)(250,n).then(()=>{var n;return!t.isEmpty()||!(n=e.getWordAtPosition(t.getPosition()))||1e3<n.word.length?[]:e.findMatches(n.word,!0,!1,!0,i,!1).map(e=>({range:e.range,kind:g.h.Text}))})}isValid(e,t,i){var n=t.isEmpty();return this._selectionIsEmpty===n&&super.isValid(e,t,i)}}Object(t.n)("_executeDocumentHighlights",(e,t)=>k(e,t,s.a.None));class E{constructor(e,t){this.toUnhook=new l.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=x.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(71),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(e=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(e)})),this.toUnhook.add(e.onDidChangeModelContent(e=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(e=>{var t=this.editor.getOption(71);this.occurrencesHighlight!==t&&(this.occurrencesHighlight=t,this._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return 0<this._decorationIds.length}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return o.e(this._decorationIds.map(e=>this.model.getDecorationRange(e)).sort(d.a.compareRangesUsingStarts))}moveNext(){var e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))+1)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);var n,o=this._getWord();o&&(n=this.editor.getModel().getLineContent(i.startLineNumber),Object(_.a)(`${n}, ${1+t} of ${e.length} for '${o.word}'`))}finally{this._ignorePositionChangeEvent=!1}}moveBack(){var e=this._getSortedHighlights(),t=(e.findIndex(e=>e.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);var n,o=this._getWord();o&&(n=this.editor.getModel().getLineContent(i.startLineNumber),Object(_.a)(`${n}, ${1+t} of ${e.length} for '${o.word}'`))}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){0<this._decorationIds.length&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll()}_getWord(){var e=this.editor.getSelection(),t=e.startLineNumber;e=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:e})}_run(){var e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber)this._stopAll();else{var t=e.startColumn,i=e.endColumn,n=this._getWord();if(!n||n.startColumn>t||n.endColumn<i)this._stopAll();else if(t=this.workerRequest&&this.workerRequest.isValid(this.model,e,this._decorationIds),this.lastCursorPositionChangeTime=(new Date).getTime(),t)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();let t=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=(n=this.model,i=this.editor.getSelection(),e=this.editor.getOption(116),new(g.i.has(n)?N:O)(n,i,e)),this.workerRequest.result.then(e=>{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())},a.f)}}}_beginRenderDecorations(){var e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;t<=e?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;var e=[];for(const t of this.workerRequestValue)t.range&&e.push({range:t.range,options:E._getDecorationOptions(t.kind)});this._decorationIds=this.editor.deltaDecorations(this._decorationIds,e),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(e){return e===g.h.Write?this._WRITE_OPTIONS:e===g.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}E._WRITE_OPTIONS=u.a.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(f.g)(L),position:c.d.Center}}),E._TEXT_OPTIONS=u.a.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(f.g)(m.jc),position:c.d.Center}}),E._REGULAR_OPTIONS=u.a.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(f.g)(S),position:c.d.Center}});let I=class e extends l.a{constructor(e,t){super(),this.wordHighlighter=null;const i=()=>{e.hasModel()&&(this.wordHighlighter=new E(e,t))};this._register(e.onDidChangeModel(e=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),i()})),i()}static get(t){return t.getContribution(e.ID)}saveViewState(){return!(!this.wordHighlighter||!this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};I.ID="editor.contrib.wordHighlighter",I=i([b(1,p.b)],I);class M extends t.b{constructor(e,t){super(t),this._isNext=e}run(e,t){t=I.get(t),t&&(this._isNext?t.moveNext():t.moveBack())}}class T extends t.b{constructor(){super({id:"editor.action.wordHighlight.trigger",label:n.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:x.toNegated(),kbOpts:{kbExpr:h.a.editorTextFocus,primary:0,weight:100}})}run(e,t,i){t=I.get(t),t&&t.restoreViewState(!0)}}Object(t.l)(I.ID,I),Object(t.j)(class extends M{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:n.a("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:x,kbOpts:{kbExpr:h.a.editorTextFocus,primary:65,weight:100}})}}),Object(t.j)(class extends M{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:n.a("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:x,kbOpts:{kbExpr:h.a.editorTextFocus,primary:1089,weight:100}})}}),Object(t.j)(T),Object(f.f)((e,t)=>{var i=e.getColor(m.T);i&&(t.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${i}; }`),t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)),i=e.getColor(v),i&&t.addRule(`.monaco-editor .wordHighlight { background-color: ${i}; }`),i=e.getColor(C),i&&t.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${i}; }`),i=e.getColor(m.U),i&&t.addRule(`.monaco-editor .selectionHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${i}; box-sizing: border-box; }`),i=e.getColor(w),i&&t.addRule(`.monaco-editor .wordHighlight { border: 1px ${"hc"===e.type?"dashed":"solid"} ${i}; box-sizing: border-box; }`),i=e.getColor(y);i&&t.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${"hc"===e.type?"dashed":"solid"} ${i}; box-sizing: border-box; }`)})},"5fe7":function(e,t,i){"use strict";i.d(t,"k",(function(){return l})),i.d(t,"h",(function(){return d})),i.d(t,"l",(function(){return h})),i.d(t,"a",(function(){return u})),i.d(t,"f",(function(){return g})),i.d(t,"n",(function(){return p})),i.d(t,"i",(function(){return m})),i.d(t,"j",(function(){return f})),i.d(t,"g",(function(){return _})),i.d(t,"c",(function(){return b})),i.d(t,"e",(function(){return v})),i.d(t,"m",(function(){return C})),i.d(t,"b",(function(){return w})),i.d(t,"d",(function(){return n}));var n,o=i("2504"),r=i("fdcc"),s=i("a666"),a=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function l(e){return!!e&&"function"==typeof e.then}function d(e){const t=new o.b,i=e(t.token),n=new Promise((e,n)=>{const o=t.token.onCancellationRequested(()=>{o.dispose(),t.dispose(),n(Object(r.b)())});Promise.resolve(i).then(i=>{o.dispose(),t.dispose(),e(i)},e=>{o.dispose(),t.dispose(),n(e)})});return new class{cancel(){t.cancel()}then(e,t){return n.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return n.finally(e)}}}function h(e,t,i){return Promise.race([e,new Promise(e=>t.onCancellationRequested(()=>e(i)))])}class c{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{this.queuedPromise=null;var e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}}class u{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{var e;if(this.completionPromise=null,this.doResolve=null,this.task)return e=this.task,this.task=null,e()})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve&&this.doResolve(null)},t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(Object(r.b)()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancel()}}class g{constructor(e){this.delayer=new u(e),this.throttler=new c}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}dispose(){this.delayer.dispose()}}function p(e,t){return t?new Promise((i,n)=>{const o=setTimeout(()=>{s.dispose(),i()},e),s=t.onCancellationRequested(()=>{clearTimeout(o),s.dispose(),n(Object(r.b)())})}):d(t=>p(e,t))}function m(e,t=0){const i=setTimeout(e,t);return Object(s.i)(()=>clearTimeout(i))}function f(e,t=(e=>!!e),i=null){let n=0;const o=e.length,r=()=>{var s;return n>=o?Promise.resolve(i):(s=e[n++],Promise.resolve(s()).then(e=>t(e)?Promise.resolve(e):r()))};return r()}class _{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class b{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class v{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let C;if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){const e=Object.freeze({didTimeout:!0,timeRemaining(){return 15}});C=t=>{const i=setTimeout(()=>t(e));let n=!1;return{dispose(){n||(n=!0,clearTimeout(i))}}}}else C=(e,t)=>{const i=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(i))}}};class w{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=C(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}(n||(n={})).settled=function(e){return a(this,void 0,void 0,(function*(){let t=void 0;var i=yield Promise.all(e.map(e=>e.then(e=>e,e=>{t=t||e})));if(void 0!==t)throw t;return i}))}},"607c":function(e,t,i){},"62bd":function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("308f");const o=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new n.b,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},6424:function(e,t,i){"use strict";function n(e,t,i){let n=null,o=null;if("function"==typeof i.value?(n="value",(o=i.value).length):"function"==typeof i.get&&(n="get",o=i.get),!o)throw new Error("not supported");const r="$memoize$"+t;i[n]=function(...e){return this.hasOwnProperty(r)||Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:o.apply(this,e)}),this[r]}}i.d(t,"a",(function(){return n}))},6483:function(e,t,i){"use strict";i.d(t,"b",(function(){return d})),i.d(t,"a",(function(){return h}));var n=i("2504"),o=i("fdcc"),r=i("6d8e"),s=i("6a89"),a=i("b707"),l=i("1b69");t=i("9e74");function d(e,t){const i=[];var n=a.c.ordered(e).reverse().map(n=>Promise.resolve(n.provideDocumentColors(e,t)).then(e=>{if(Array.isArray(e))for(var t of e)i.push({colorInfo:t,provider:n})}));return Promise.all(n).then(()=>i)}function h(e,t,i,n){return Promise.resolve(i.provideColorPresentations(e,t,n))}t.a.registerCommand("_executeDocumentColorProvider",(function(e,...t){var[t]=t;if(!(t instanceof r.a))throw Object(o.c)();const i=e.get(l.a).getModel(t);if(!i)throw Object(o.c)();const s=[];return e=a.c.ordered(i).reverse().map(e=>Promise.resolve(e.provideDocumentColors(i,n.a.None)).then(e=>{if(Array.isArray(e))for(var t of e)s.push({range:t.range,color:[t.color.red,t.color.green,t.color.blue,t.color.alpha]})})),Promise.all(e).then(()=>s)})),t.a.registerCommand("_executeColorPresentationProvider",(function(e,...t){var[t,i]=t,{uri:i,range:d}=i;if(!(i instanceof r.a&&Array.isArray(t)&&4===t.length&&s.a.isIRange(d)))throw Object(o.c)();var[t,h,c,u]=t;const g=e.get(l.a).getModel(i);if(!g)throw Object(o.c)();const p={range:d,color:{red:t,green:h,blue:c,alpha:u}},m=[];return e=a.c.ordered(g).reverse().map(e=>Promise.resolve(e.provideColorPresentations(g,p,n.a.None)).then(e=>{Array.isArray(e)&&m.push(...e)})),Promise.all(e).then(()=>m)}))},"650e":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return r}));const n={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i("b9b4").a.text,TERMINALS:"Terminals"};class o{constructor(e){this.data=e}update(){}getData(){return this.data}}const r={CurrentDragAndDropData:void 0}},6640:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return i.e("chunk-2d0af08c").then(i.bind(null,"0d35"))}})},6653:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o}));class n{constructor(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")}setHeight(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")}setTop(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")}unsetTop(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")}setLeft(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")}setBottom(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")}setRight(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setLineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function o(e){return new n(e)}},"66bd":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i("0a0f"),o=i("cdd6");i.d(t,"b",(function(){return o.a}));const r=Object(n.c)("quickInputService")},"66f1":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return i.e("chunk-2d217e5b").then(i.bind(null,"c94c"))}})},"675a4":function(e,t,i){},"67b4":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i("7061"),o=i("6a89"),r=i("db88"),s=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class a{provideSelectionRanges(e,t){return s(this,void 0,void 0,(function*(){var i=[];for(const n of t){const t=[],o=(i.push(t),new Map);yield new Promise(t=>a._bracketsRightYield(t,0,e,n,o)),yield new Promise(i=>a._bracketsLeftYield(i,0,e,n,o,t))}return i}))}static _bracketsRightYield(e,t,i,n,o){for(var s=new Map,l=Date.now();;){if(t>=a._maxRounds){e();break}if(!n){e();break}var d=i.findNextBracket(n);if(!d){e();break}if(Date.now()-l>a._maxDuration){setTimeout(()=>a._bracketsRightYield(e,t+1,i,n,o));break}var h=d.close[0];if(d.isOpen){var c=s.has(h)?s.get(h):0;s.set(h,c+1)}else if(c=s.has(h)?s.get(h):0,--c,s.set(h,Math.max(0,c)),c<0){let e=o.get(h);e||(e=new r.a,o.set(h,e)),e.push(d.range)}n=d.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,n,r,s){for(var l=new Map,d=Date.now();;){if(t>=a._maxRounds&&0===r.size){e();break}if(!n){e();break}var h=i.findPrevBracket(n);if(!h){e();break}if(Date.now()-d>a._maxDuration){setTimeout(()=>a._bracketsLeftYield(e,t+1,i,n,r,s));break}var c,u,g=h.close[0];h.isOpen?(u=l.has(g)?l.get(g):0,--u,l.set(g,Math.max(0,u)),u<0&&(u=r.get(g))&&(c=u.shift(),0===u.size&&r.delete(g),u=o.a.fromPositions(h.range.getEndPosition(),c.getStartPosition()),c=o.a.fromPositions(h.range.getStartPosition(),c.getEndPosition()),s.push({range:u}),s.push({range:c}),a._addBracketLeading(i,c,s))):(u=l.has(g)?l.get(g):0,l.set(g,u+1)),n=h.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber!==t.endLineNumber){var r=t.startLineNumber;const s=e.getLineFirstNonWhitespaceColumn(r);if(0!==s&&s!==t.startColumn&&(i.push({range:o.a.fromPositions(new n.a(r,s),t.getEndPosition())}),i.push({range:o.a.fromPositions(new n.a(r,1),t.getEndPosition())})),r-=1,0<r){const s=e.getLineFirstNonWhitespaceColumn(r);s===t.startColumn&&s!==e.getLineLastNonWhitespaceColumn(r)&&(i.push({range:o.a.fromPositions(new n.a(r,s),t.getEndPosition())}),i.push({range:o.a.fromPositions(new n.a(r,1),t.getEndPosition())}))}}}}a._maxDuration=30,a._maxRounds=2},6816:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));t=i("a666");var n=i("308f"),o=i("30db");class r{constructor(e,t){this.target=e.target,this.hasTriggerModifier=!!e.event[t.triggerModifier],this.hasSideBySideModifier=!!e.event[t.triggerSideBySideModifier],this.isNoneOrSingleMouseDown=e.event.detail<=1}}class s{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=!!e[t.triggerModifier]}}class a{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function l(e){return"altKey"===e?o.f?new a(57,"metaKey",6,"altKey"):new a(5,"ctrlKey",6,"altKey"):o.f?new a(6,"altKey",57,"metaKey"):new a(6,"altKey",5,"ctrlKey")}class d extends t.a{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new n.b),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new n.b),this.onExecute=this._onExecute.event,this._onCancel=this._register(new n.b),this.onCancel=this._onCancel.event,this._editor=e,this._opts=l(this._editor.getOption(69)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(69)&&(e=l(this._editor.getOption(69)),this._opts.equals(e)||(this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()))})),this._register(this._editor.onMouseMove(e=>this._onEditorMouseMove(new r(e,this._opts)))),this._register(this._editor.onMouseDown(e=>this._onEditorMouseDown(new r(e,this._opts)))),this._register(this._editor.onMouseUp(e=>this._onEditorMouseUp(new r(e,this._opts)))),this._register(this._editor.onKeyDown(e=>this._onEditorKeyDown(new s(e,this._opts)))),this._register(this._editor.onKeyUp(e=>this._onEditorKeyUp(new s(e,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(e=>this._onDidChangeCursorSelection(e))),this._register(this._editor.onDidChangeModel(e=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){var t=e.target.position?e.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},"6a38":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return i.e("chunk-2d0abc00").then(i.bind(null,"1737"))}})},"6a5d":function(e,t,i){"use strict";i.d(t,"a",(function(){return u})),i.d(t,"b",(function(){return m}));var n=i("308f"),o=i("eda7"),r=i("a666"),s=i("40355"),a=i("49d9"),l=i("9768"),d=i("32b8"),h=i("1b69");function c(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(c):!!e.exclusive)}class u{constructor(){this._clock=0,this._entries=[],this._onDidChange=new n.b}get onDidChange(){return this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(r.i)(()=>{var e;i&&0<=(e=this._entries.indexOf(i))&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)})}has(e){return 0<this.all(e).length}all(e){if(!e)return[];this._updateScores(e);var t,i=[];for(t of this._entries)0<t._score&&i.push(t.provider);return i}ordered(e){const t=[];return this._orderedForEach(e,e=>t.push(e.provider)),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,e=>{i&&n===e._score?i.push(e.provider):(n=e._score,i=[e.provider],t.push(i))}),t}_orderedForEach(e,t){if(e){this._updateScores(e);for(const e of this._entries)0<e._score&&t(e)}}_updateScores(e){var t={uri:e.uri.toString(),language:e.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==t.language||this._lastCandidate.uri!==t.uri){for(var i of(this._lastCandidate=t,this._entries))if(i._score=function e(t,i,n,o){if(Array.isArray(t)){let s=0;for(const a of t){var r=e(a,i,n,o);if(10===r)return r;r>s&&(s=r)}return s}if("string"==typeof t)return o?"*"===t?5:t===n?10:0:0;if(t){var{language:t,pattern:s,scheme:a,hasAccessToAllModels:h}=t;if(!o&&!h)return 0;let e=0;if(a)if(a===i.scheme)e=10;else{if("*"!==a)return 0;e=5}if(t)if(t===n)e=10;else{if("*"!==t)return 0;e=Math.max(e,5)}if(s){let t;if((t="string"==typeof s?s:Object.assign(Object.assign({},s),{base:Object(d.d)(s.base)}))!==i.fsPath&&!Object(l.a)(t,i.fsPath))return 0;e=10}return e}return 0}(i.selector,e.uri,e.getLanguageIdentifier().language,Object(h.b)(e)),c(i.selector)&&0<i._score){for(var n of this._entries)n._score=0;i._score=1e3;break}this._entries.sort(u._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0}}const g=new WeakMap;let p=0;class m{constructor(e,t,i=Number.MAX_SAFE_INTEGER){this._registry=e,this.min=t,this.max=i,this._cache=new s.a(50,.7)}_key(e){return e.id+this._registry.all(e).reduce((e,t)=>Object(o.b)(function(e){let t=g.get(e);return void 0===t&&(t=++p,g.set(e,t)),t}(t),e),0)}_clamp(e){return void 0===e?this.min:Math.min(this.max,Math.max(this.min,Math.floor(1.3*e)))}get(e){return e=this._key(e),e=this._cache.get(e),this._clamp(null==e?void 0:e.value)}update(e,t){var i=this._key(e);let n=this._cache.get(i);return n||(n=new a.a,this._cache.set(i,n)),n.update(t),this.get(e)}}},"6a89":function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("7061");class o{constructor(e,t,i,n){i<e||e===i&&n<t?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return o.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return o.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<e.startColumn||t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}containsRange(e){return o.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(e){return o.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber||t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return o.plusRange(this,e)}static plusRange(e,t){let i,n,r,s;return n=t.startLineNumber<e.startLineNumber?(i=t.startLineNumber,t.startColumn):t.startLineNumber===e.startLineNumber?(i=t.startLineNumber,Math.min(t.startColumn,e.startColumn)):(i=e.startLineNumber,e.startColumn),s=t.endLineNumber>e.endLineNumber?(r=t.endLineNumber,t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,e.endColumn),new o(i,n,r,s)}intersectRanges(e){return o.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,r=e.endLineNumber,s=e.endColumn;e=t.startLineNumber;var a=t.startColumn,l=t.endLineNumber;t=t.endColumn;return i<e?(i=e,n=a):i===e&&(n=Math.max(n,a)),r>l?(r=l,s=t):r===l&&(s=Math.min(s,t)),i>r||i===r&&n>s?null:new o(i,n,r,s)}equalsRange(e){return o.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return o.getEndPosition(this)}static getEndPosition(e){return new n.a(e.endLineNumber,e.endColumn)}getStartPosition(){return o.getStartPosition(this)}static getStartPosition(e){return new n.a(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new o(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new o(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return o.collapseToStart(this)}static collapseToStart(e){return new o(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn||t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){var i,n,o,r,s,a;return e&&t?(i=0|e.startLineNumber)==(n=0|t.startLineNumber)?(o=0|e.startColumn)==(r=0|t.startColumn)?(s=0|e.endLineNumber)==(a=0|t.endLineNumber)?(0|e.endColumn)-(0|t.endColumn):s-a:o-r:i-n:(e?1:0)-(t?1:0)}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}}},"6c8c":function(e,t,i){"use strict";i.r(t);var n=i("89cd"),o=i("2f1e"),r=(t=i("03d9"),i("a666")),s=i("dff7"),a=(i=i("66bd"),function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}),l=function(e,t){return function(i,n){t(i,n,e)}},d=class e{constructor(e){this.quickInputService=e,this.registry=n.a.as(o.b.Quickaccess)}provide(t){var i=new r.b,{editorProviders:n,globalProviders:o}=(i.add(t.onDidAccept(()=>{var[e]=t.selectedItems;e&&this.quickInputService.quickAccess.show(e.prefix,{preserveValue:!0})})),i.add(t.onDidChangeValue(t=>{t=this.registry.getQuickAccessProvider(t.substr(e.PREFIX.length)),t&&t.prefix&&t.prefix!==e.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})})),this.getQuickAccessProviders());return t.items=0===n.length||0===o.length?[...0===n.length?o:n]:[{label:Object(s.a)("globalCommands","global commands"),type:"separator"},...o,{label:Object(s.a)("editorCommands","editor commands"),type:"separator"},...n],i}getQuickAccessProviders(){var t=[],i=[];for(const r of this.registry.getQuickAccessProviders().sort((e,t)=>e.prefix.localeCompare(t.prefix)))if(r.prefix!==e.PREFIX)for(const e of r.helpEntries){var n=e.prefix||r.prefix,o=n||"…";(e.needsEditor?i:t).push({prefix:n,label:o,ariaLabel:Object(s.a)("helpPickAriaLabel","{0}, {1}",o,e.description),description:e.description})}return{editorProviders:i,globalProviders:t}}};d.PREFIX="?",d=a([l(0,i.a)],d),n.a.as(o.b.Quickaccess).registerQuickAccessProvider({ctor:d,prefix:"",helpEntries:[{description:t.e.helpQuickAccessActionLabel,needsEditor:!0}]})},"6d8e":function(e,t,i){"use strict";i.d(t,"a",(function(){return h})),i.d(t,"b",(function(){return f}));var n=i("32b8"),o=i("30db");const r=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!r.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!s.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{constructor(e,t,i,n,o,r=!1){var s;"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=(s=r,(e=e)||s?e:"file"),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/"}return t}(this.scheme,i||""),this.query=n||"",this.fragment=o||"",l(this,r))}static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}get fsPath(){return f(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:r}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===n?n=this.path:null===n&&(n=""),void 0===o?o=this.query:null===o&&(o=""),void 0===r?r=this.fragment:null===r&&(r=""),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&r===this.fragment?this:new u(t,i,n,o,r)}static parse(e,t=!1){return e=d.exec(e),e?new u(e[2]||"",v(e[4]||""),v(e[5]||""),v(e[7]||""),v(e[9]||""),t):new u("","","","","")}static file(e){let t="";var i;return"/"===(e=o.i?e.replace(/\\/g,"/"):e)[0]&&"/"===e[1]&&(e=-1===(i=e.indexOf("/",2))?(t=e.substring(2),"/"):(t=e.substring(2,i),e.substring(i)||"/")),new u("file",t,e,"","")}static from(e){return e=new u(e.scheme,e.authority,e.path,e.query,e.fragment),l(e,!0),e}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=o.i&&"file"===e.scheme?h.file(n.i.join(f(e,!0),...t)).path:n.e.join(e.path,...t),e.with({path:i})}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){var t;return e&&(e instanceof h?e:((t=new u(e))._formatted=e.external,t._fsPath=e._sep===c?e.fsPath:null,t))}}const c=o.i?1:void 0;class u extends h{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=f(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=c),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const g={[58]:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function p(e,t){let i=void 0,n=-1;for(let r=0;r<e.length;r++){var o=e.charCodeAt(r);97<=o&&o<=122||65<=o&&o<=90||48<=o&&o<=57||45===o||46===o||95===o||126===o||t&&47===o?(-1!==n&&(i+=encodeURIComponent(e.substring(n,r)),n=-1),void 0!==i&&(i+=e.charAt(r))):(void 0===i&&(i=e.substr(0,r)),void 0!==(o=g[o])?(-1!==n&&(i+=encodeURIComponent(e.substring(n,r)),n=-1),i+=o):-1===n&&(n=r))}return-1!==n&&(i+=encodeURIComponent(e.substring(n))),void 0!==i?i:e}function m(e){let t=void 0;for(let n=0;n<e.length;n++){var i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=g[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function f(e,t){let i;return i=e.authority&&1<e.path.length&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(65<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=90||97<=e.path.charCodeAt(1)&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o.i?i.replace(/\//g,"\\"):i}function _(e,t){var i=t?m:p;let n="",{scheme:o,authority:r,path:s,query:a,fragment:l}=e;if(o&&(n=n+o+":"),!r&&"file"!==o||(n+="//"),r){let t=r.indexOf("@");-1!==t&&(e=r.substr(0,t),r=r.substr(t+1),-1===(t=e.indexOf(":"))?n+=i(e,!1):n=(n=n+i(e.substr(0,t),!1)+":")+i(e.substr(t+1),!1),n+="@"),r=r.toLowerCase(),-1===(t=r.indexOf(":"))?n+=i(r,!1):n=(n+=i(r.substr(0,t),!1))+r.substr(t)}return s&&(3<=s.length&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)?65<=(e=s.charCodeAt(1))&&e<=90&&(s=`/${String.fromCharCode(e+32)}:`+s.substr(3)):2<=s.length&&58===s.charCodeAt(1)&&65<=(e=s.charCodeAt(0))&&e<=90&&(s=String.fromCharCode(e+32)+":"+s.substr(2)),n+=i(s,!0)),a&&(n=(n+="?")+i(a,!1)),l?(n+="#")+(t?l:p(l,!1)):n}const b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function v(e){return e.match(b)?e.replace(b,e=>function t(i){try{return decodeURIComponent(i)}catch(e){return 3<i.length?i.substr(0,3)+t(i.substr(3)):i}}(e)):e}},"6da2":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return l})),i.d(t,"a",(function(){return d})),i.d(t,"d",(function(){return u})),i.d(t,"e",(function(){return p}));var n=i("3742"),o=i("7ab3"),r=i("7416");class s{constructor(e,t,i){this._linePartBrand=void 0,this.endIndex=e,this.type=t,this.metadata=i}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class a{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class l{constructor(e,t,i,n,o,s,a,l,d,h,c,u,g,p,m,f,_,b,v){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=o,this.containsRTL=s,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=d.sort(r.a.compare),this.tabSize=h,this.startVisibleColumn=c,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=_,this.fontLigatures=b,this.selectionsOnLine=v&&v.sort((e,t)=>e.startOffset<t.startOffset?-1:1),Math.abs(p-u)<Math.abs(g-u)?(this.renderSpaceWidth=p,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=g,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&r.a.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class d{constructor(e,t){this.partIndex=e,this.charIndex=t}}class h{constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}setColumnInfo(e,t,i,n){this._data[e-1]=(t<<16|i<<0)>>>0,this._absoluteOffsets[e-1]=n+i}getAbsoluteOffset(e){return 0===this._absoluteOffsets.length?0:this._absoluteOffsets[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){e=this.charOffsetToPartData(e-1);var t=h.getPartIndex(e);e=h.getCharIndex(e);return new d(t,e)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;var n=(e<<16|i<<0)>>>0;let o=0,r=this.length-1;for(;o+1<r;){var s=o+r>>>1,a=this._data[s];if(a===n)return s;n<a?r=s:o=s}if(o===r)return o;e=this._data[o];var l=this._data[r];if(e===n)return o;if(l===n)return r;var d=h.getPartIndex(e),c=(e=h.getCharIndex(e),h.getPartIndex(l));let u;return i-e<=(u=d!==c?t:h.getCharIndex(l))-i?o:r}}class c{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function u(e,t){if(0!==e.lineContent.length){var i=function(e){var t=e.lineContent;let i,o;o=-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(i=!0,e.stopRenderingLineAfter):(i=!1,t.length);let a=function(e,t,i){let n=[],o=0;0<t&&(n[o++]=new s(t,"",0));for(let l=0,d=e.getCount();l<d;l++){var r=e.getEndOffset(l);if(!(r<=t)){var a=e.getClassName(l);if(i<=r){n[o++]=new s(i,a,0);break}n[o++]=new s(r,a,0)}}return n}(e.lineTokens,e.fauxIndentLength,o);(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace)&&(a=function(e,t,i,o){var r=e.continuesWithWrappedLine,a=e.fauxIndentLength,l=e.tabSize,d=e.startVisibleColumn,h=e.useMonospaceOptimizations,c=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth;let m=[],f=0,_=0,b=o[_].type,v=o[_].endIndex;var C=o.length;let w,y=!1,S=n.u(t);w=-1===S?(y=!0,S=i,i):n.I(t);let L=!1,x=0,k=c&&c[x],D=d%l;for(let I=a;I<i;I++){var N,O=t.charCodeAt(I);let e;if(k&&I>=k.endOffset&&(x++,k=c&&c[x]),(e=(e=I<S||I>w||9===O||!(32!==O||u&&!L&&32!==(N=I+1<i?t.charCodeAt(I+1):0)&&9!==N))&&c?!!k&&k.startOffset<=I&&k.endOffset>I:e)&&g&&(e=y||I>w),L){if(!e||!h&&D>=l){if(p)for(let e=(0<f?m[f-1].endIndex:a)+1;e<=I;e++)m[f++]=new s(e,"mtkw",1);else m[f++]=new s(I,"mtkw",1);D%=l}}else(I===v||e&&I>a)&&(m[f++]=new s(I,b,0),D%=l);for(9===O?D=l:n.D(O)?D+=2:D++,L=e;I===v&&++_<C;)b=o[_].type,v=o[_].endIndex}let E=!1;if(!L||r&&u&&(e=0<i?t.charCodeAt(i-1):0,d=1<i?t.charCodeAt(i-2):0,32===e)&&32!==d&&9!==d||(E=!0),E)if(p)for(let n=(0<f?m[f-1].endIndex:a)+1;n<=i;n++)m[f++]=new s(n,"mtkw",1);else m[f++]=new s(i,"mtkw",1);else m[f++]=new s(i,b,0);return m}(e,t,o,a));let l=0;if(0<e.lineDecorations.length){for(let t=0,i=e.lineDecorations.length;t<i;t++){var d=e.lineDecorations[t];3===d.type||1===d.type?l|=1:2===d.type&&(l|=2)}a=function(e,t,i){i.sort(r.a.compare);var n=r.b.normalize(e,i),o=n.length;let a=0,l=[],d=0,h=0;for(let r=0,b=t.length;r<b;r++){for(var c=t[r],u=c.endIndex,g=c.type,p=c.metadata;a<o&&n[a].startOffset<u;){var m=n[a];if(m.startOffset>h&&(h=m.startOffset,l[d++]=new s(h,g,p)),!(m.endOffset+1<=u)){h=u,l[d++]=new s(h,g+" "+m.className,p|m.metadata);break}h=m.endOffset+1,l[d++]=new s(h,g+" "+m.className,p|m.metadata),a++}u>h&&(h=u,l[d++]=new s(h,g,p))}var f=t[t.length-1].endIndex;if(a<o&&n[a].startOffset===f)for(;a<o&&n[a].startOffset===f;){var _=n[a];l[d++]=new s(h,_.className,_.metadata),a++}return l}(t,a,e.lineDecorations)}return e.containsRTL||(a=function(e,t,i){let n=0,o=[],r=0;if(i)for(let b=0,v=t.length;b<v;b++){var a=t[b],l=a.endIndex;if(n+50<l){var d=a.type,h=a.metadata;let t=-1,i=n;for(let a=n;a<l;a++)-1!==(t=32===e.charCodeAt(a)?a:t)&&50<=a-i&&(o[r++]=new s(t+1,d,h),i=t+1,t=-1);i!==l&&(o[r++]=new s(l,d,h))}else o[r++]=a;n=l}else for(let b=0,v=t.length;b<v;b++){var c=t[b],u=c.endIndex,g=u-n;if(50<g){var p=c.type,m=c.metadata,f=Math.ceil(g/50);for(let e=1;e<f;e++){var _=n+50*e;o[r++]=new s(_,p,m)}o[r++]=new s(u,p,m)}else o[r++]=c;n=u}return o}(t,a,!e.isBasicASCII||e.fontLigatures)),new m(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,o,i,a,l,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}(e),o=t,a=i.fontIsMonospace,l=i.canUseHalfwidthRightwardsArrow,d=i.containsForeignElements,u=i.lineContent,g=i.len,p=i.isOverflowing,f=i.parts,_=i.fauxIndentLength,b=i.tabSize,v=i.startVisibleColumn,C=i.containsRTL,w=i.spaceWidth,y=i.renderSpaceCharCode,S=i.renderWhitespace,L=i.renderControlCharacters,x=new h(g+1,f.length);let R=!1,P=0,F=v,B=0,j=0,W=0,V=0;C?o.appendASCIIString('<span dir="ltr">'):o.appendASCIIString("<span>");for(let e=0,t=f.length;e<t;e++){V+=W;var k=f[e],D=k.endIndex,N=k.type,O=0!==S&&k.isWhitespace(),E=O&&!a&&("mtkw"===N||!d),I=P===D&&k.isPseudoAfter();if(B=0,o.appendASCIIString('<span class="'),o.appendASCIIString(E?"mtkz":N),o.appendASCII(34),O){let t=0;{let e=P,i=F;for(;e<D;e++){var M=0|(9===u.charCodeAt(e)?b-i%b:1);t+=M,e>=_&&(i+=M)}}for(E&&(o.appendASCIIString(' style="width:'),o.appendASCIIString(String(w*t)),o.appendASCIIString('px"')),o.appendASCII(62);P<D;P++){x.setColumnInfo(P+1,e-j,B,V),j=0;var T=u.charCodeAt(P);let t;if(9===T){t=b-F%b|0,!l||1<t?o.write1(8594):o.write1(65515);for(let e=2;e<=t;e++)o.write1(160)}else t=1,o.write1(y);B+=t,P>=_&&(F+=t)}W=t}else{let t=0;for(o.appendASCII(62);P<D;P++){x.setColumnInfo(P+1,e-j,B,V),j=0;var A=u.charCodeAt(P);let i=1,r=1;switch(A){case 9:i=b-F%b,r=i;for(let e=1;e<=i;e++)o.write1(160);break;case 32:o.write1(160);break;case 60:o.appendASCIIString("&lt;");break;case 62:o.appendASCIIString("&gt;");break;case 38:o.appendASCIIString("&amp;");break;case 0:L?o.write1(9216):o.appendASCIIString("&#00;");break;case 65279:case 8232:case 8233:case 133:o.write1(65533);break;default:n.D(A)&&r++,L&&A<32?o.write1(9216+A):L&&127===A?o.write1(9249):o.write1(A)}B+=i,t+=i,P>=_&&(F+=r)}W=t}I?j++:j=0,P>=g&&!R&&k.isPseudoAfter()&&(R=!0,x.setColumnInfo(P+1,e,B,V)),o.appendASCIIString("</span>")}return R||x.setColumnInfo(g+1,f.length-1,B,V),p&&o.appendASCIIString("<span>&hellip;</span>"),o.appendASCIIString("</span>"),new c(x,C,d)}if(0<e.lineDecorations.length){t.appendASCIIString("<span>");let n=0,o=0,r=0;for(const i of e.lineDecorations)1!==i.type&&2!==i.type||(t.appendASCIIString('<span class="'),t.appendASCIIString(i.className),t.appendASCIIString('"></span>'),1===i.type&&(r|=1,n++),2===i.type&&(r|=2,o++));return t.appendASCIIString("</span>"),i=new h(1,n+o),i.setColumnInfo(1,n,0,0),new c(i,!1,r)}return t.appendASCIIString("<span><span></span></span>"),new c(new h(0,0),!1,0)}class g{constructor(e,t,i,n){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=n}}function p(e){var t=Object(o.a)(1e4);e=u(e,t);return new g(e.characterMapping,t.build(),e.containsRTL,e.containsForeignElements)}class m{constructor(e,t,i,n,o,r,s,a,l,d,h,c,u,g,p){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=n,this.isOverflowing=o,this.parts=r,this.containsForeignElements=s,this.fauxIndentLength=a,this.tabSize=l,this.startVisibleColumn=d,this.containsRTL=h,this.spaceWidth=c,this.renderSpaceCharCode=u,this.renderWhitespace=g,this.renderControlCharacters=p}}},"6daf":function(e,t,i){"use strict";i.r(t);var n=i("dff7"),o=(t=i("b2cc"),i("2c29")),r=i("6a89"),s=i("c101"),a=i("f85a");class l extends t.b{constructor(){super({id:"editor.action.transposeLetters",label:n.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:s.a.writable,kbOpts:{kbExpr:s.a.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(t.hasModel()){var i,n,s,l,d,h=t.getModel(),c=[];for(i of t.getSelections())i.isEmpty()&&(n=i.startLineNumber,l=i.startColumn,d=h.getLineMaxColumn(n),1===n&&(1===l||2===l&&2===d)||(n=l===d?i.getPosition():a.a.rightPosition(h,i.getPosition().lineNumber,i.getPosition().column),l=a.a.leftPosition(h,n),d=a.a.leftPosition(h,l),s=h.getValueInRange(r.a.fromPositions(d,l)),l=h.getValueInRange(r.a.fromPositions(l,n)),d=r.a.fromPositions(d,n),c.push(new o.a(d,l+s))));0<c.length&&(t.pushUndoStop(),t.executeCommands(this.id,c),t.pushUndoStop())}}}Object(t.j)(l)},"6dec":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0a0f");const n=Object(t.c)("keybindingService")},"6df4":function(e,t,i){"use strict";i.r(t);var n=i("dff7"),o=(t=i("b2cc"),i("62bd"));class r extends t.b{constructor(){super({id:"editor.action.fontZoomIn",label:n.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){o.a.setZoomLevel(o.a.getZoomLevel()+1)}}class s extends t.b{constructor(){super({id:"editor.action.fontZoomOut",label:n.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){o.a.setZoomLevel(o.a.getZoomLevel()-1)}}class a extends t.b{constructor(){super({id:"editor.action.fontZoomReset",label:n.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){o.a.setZoomLevel(0)}}Object(t.j)(r),Object(t.j)(s),Object(t.j)(a)},"6e4e":function(e,t,i){"use strict";i.r(t),i.d(t,"BracketMatchingController",(function(){return b})),i("f004");var n=i("dff7"),o=i("5fe7"),r=(t=i("a666"),i("b2cc")),s=i("7061"),a=i("6a89"),l=i("8025"),d=i("c101"),h=i("3352"),c=i("b57f"),u=i("918c"),g=i("303e"),p=i("b7d0");i=i("7e32"),g=Object(g.wc)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},n.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class m extends r.b{constructor(){super({id:"editor.action.jumpToBracket",label:n.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:d.a.editorTextFocus,primary:3160,weight:100}})}run(e,t){t=b.get(t),t&&t.jumpToBracket()}}class f extends r.b{constructor(){super({id:"editor.action.selectToBracket",label:n.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){if(t=b.get(t),t){let e=!0;i&&!1===i.selectBrackets&&(e=!1),t.selectToBracket(e)}}}class _{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class b extends t.a{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new o.e(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(63),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(e=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(e=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(e=>{e.hasChanged(63)&&(this._matchBrackets=this._editor.getOption(63),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))}static get(e){return e.getContribution(b.ID)}jumpToBracket(){if(this._editor.hasModel()){const t=this._editor.getModel();var e=this._editor.getSelections().map(e=>{e=e.getStartPosition();var i=t.matchBracket(e);let n=null;return i?i[0].containsPosition(e)?n=i[1].getStartPosition():i[1].containsPosition(e)&&(n=i[0].getStartPosition()):(i=t.findEnclosingBrackets(e))?n=i[0].getStartPosition():(i=t.findNextBracket(e))&&i.range&&(n=i.range.getStartPosition()),n?new l.a(n.lineNumber,n.column,n.lineNumber,n.column):new l.a(e.lineNumber,e.column,e.lineNumber,e.column)});this._editor.setSelections(e),this._editor.revealRange(e[0])}}selectToBracket(e){if(this._editor.hasModel()){const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{var o,r;n=n.getStartPosition();let s=t.matchBracket(n),d=((s=s||t.findEnclosingBrackets(n))||(r=t.findNextBracket(n))&&r.range&&(s=t.matchBracket(r.range.getStartPosition())),null),h=null;s&&(s.sort(a.a.compareRangesUsingStarts),[r,o]=s,d=e?r.getStartPosition():r.getEndPosition(),h=e?o.getEndPosition():o.getStartPosition(),o.containsPosition(n))&&(r=d,d=h,h=r),d&&h&&i.push(new l.a(d.lineNumber,d.column,h.lineNumber,h.column))}),0<i.length&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}}_updateBrackets(){if("never"!==this._matchBrackets){this._recomputeBrackets();let t=[],i=0;for(const n of this._lastBracketsData){var e=n.brackets;e&&(t[i++]={range:e[0],options:n.options},t[i++]={range:e[1],options:n.options})}this._decorations=this._editor.deltaDecorations(this._decorations,t)}}_recomputeBrackets(){if(this._editor.hasModel()){var e=this._editor.getSelections();if(100<e.length)this._lastBracketsData=[],this._lastVersionId=0;else{var t=this._editor.getModel(),i=t.getVersionId();let r=[],a=(this._lastVersionId===i&&(r=this._lastBracketsData),[]),l=0;for(let t=0,i=e.length;t<i;t++){var n=e[t];n.isEmpty()&&(a[l++]=n.getStartPosition())}1<a.length&&a.sort(s.a.compare);let d=[],h=0,c=0,u=r.length;for(let e=0,i=a.length;e<i;e++){for(var o=a[e];c<u&&r[c].position.isBefore(o);)c++;if(c<u&&r[c].position.equals(o))d[h++]=r[c];else{let e=t.matchBracket(o),i=b._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;e||"always"!==this._matchBrackets||(e=t.findEnclosingBrackets(o,20),i=b._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),d[h++]=new _(o,e,i)}}this._lastBracketsData=d,this._lastVersionId=i}}else this._lastBracketsData=[],this._lastVersionId=0}}b.ID="editor.contrib.bracketMatchingController",b._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=c.a.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Object(p.g)(g),position:h.d.Center}}),b._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=c.a.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"}),Object(r.l)(b.ID,b),Object(r.j)(f),Object(r.j)(m),Object(p.f)((e,t)=>{var i=e.getColor(u.j);i&&t.addRule(`.monaco-editor .bracket-match { background-color: ${i}; }`),i=e.getColor(u.k);i&&t.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)}),i.d.appendMenuItem(i.b.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:n.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},"6e62":function(e,t,i){"use strict";i.r(t),i.d(t,"getInlayHints",(function(){return S})),i.d(t,"InlayHintsController",(function(){return L}));var n=i("5fe7"),o=i("fdcc"),r=i("eda7"),s=i("a666"),a=(t=i("b2cc"),i("5717")),l=i("b707"),d=i("e8e3"),h=i("303e"),c=i("2504"),u=i("b7d0"),g=i("6a89"),p=i("6a5d"),m=i("9e74"),f=i("6d8e"),_=i("ef8e9"),b=i("b78f"),v=i("7061"),C=(i=i("fbba"),function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}),w=function(e,t){return function(i,n){t(i,n,e)}},y=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function S(e,t,i){return y(this,void 0,void 0,(function*(){const n=[];var r=l.r.ordered(e).reverse();r=Object(d.k)(r.map(r=>t.map(t=>Promise.resolve(r.provideInlayHints(e,t,i)).then(e=>{e=null==e?void 0:e.filter(e=>t.containsPosition(e.position)),null!=e&&e.length&&n.push({list:e,provider:r})},e=>{Object(o.g)(e)}))));return yield Promise.all(r),n}))}let L=class{constructor(e,t,i,n){this._editor=e,this._codeEditorService=t,this._themeService=i,this._configurationService=n,this._disposables=new s.b,this._sessionDisposables=new s.b,this._getInlayHintsDelays=new p.b(l.r,25,2500),this._decorationsTypeIds=[],this._decorationIds=[],this._disposables.add(l.r.onDidChange(()=>this._update())),this._disposables.add(i.onDidColorThemeChange(()=>this._update())),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(e=>{e.hasChanged(126)&&this._update()})),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){if(this._sessionDisposables.clear(),this._editor.getOption(126).enabled){const t=this._editor.getModel();if(t&&l.r.has(t)){const i=new n.e(()=>y(this,void 0,void 0,(function*(){var e=Date.now();const n=new c.b;this._sessionDisposables.add(Object(s.i)(()=>n.dispose(!0)));var o=this._editor.getVisibleRangesPlusViewportAboveBelow();o=yield S(t,o,n.token),e=this._getInlayHintsDelays.update(t,Date.now()-e);i.delay=e,this._updateHintsDecorators(o)})),this._getInlayHintsDelays.get(t));this._sessionDisposables.add(i),this._sessionDisposables.add(this._editor.onDidChangeModelContent(()=>i.schedule())),this._disposables.add(this._editor.onDidScrollChange(()=>i.schedule())),i.schedule();var e=new s.b;this._sessionDisposables.add(e);for(const n of l.r.all(t))"function"==typeof n.onDidChangeInlayHints&&e.add(n.onDidChangeInlayHints(()=>i.schedule()))}else this._removeAllDecorations()}else this._removeAllDecorations()}_updateHintsDecorators(e){var{fontSize:t,fontFamily:i}=this._getLayoutInfo(),n=this._themeService.getColorTheme().getColor(h.N),o=this._themeService.getColorTheme().getColor(h.O),s=[],a=[],l="--inlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(l,i);const d=this._configurationService.getValue("editor.useInjectedText");var c,u=void 0===d||!!d;for({list:c}of e)for(let e=0;e<c.length&&a.length<500;e++){var{text:p,position:m,whitespaceBefore:f,whitespaceAfter:_}=c[e],f=f?t/3|0:0,_=_?t/3|0:0,p=(p=p.replace(/[ \t]/g," "),{contentText:p,backgroundColor:""+n,color:""+o,margin:`0px ${_}px 0px ${f}px`,fontSize:t+"px",fontFamily:`var(${l})`,padding:`0px ${t/4|0}px`,borderRadius:(t/4|0)+"px",verticalAlign:"middle"});const i="inlayHints-"+Object(r.c)(p).toString(16);this._codeEditorService.registerDecorationType("inlay-hints-controller",i,u?{beforeInjectedText:Object.assign(Object.assign({},p),{affectsLetterSpacing:!0})}:{before:p},void 0,this._editor),s.push(i),_=this._codeEditorService.resolveDecorationOptions(i,!0),a.push({range:g.a.fromPositions(m),options:_})}this._decorationsTypeIds.forEach(this._codeEditorService.removeDecorationType,this._codeEditorService),this._decorationsTypeIds=s,this._decorationIds=this._editor.deltaDecorations(this._decorationIds,a)}_getLayoutInfo(){var e=this._editor.getOption(126),t=this._editor.getOption(44);let i=e.fontSize;return(!i||i<5||i>t)&&(i=.9*t|0),t=e.fontFamily||this._editor.getOption(41),{fontSize:i,fontFamily:t}}_removeAllDecorations(){this._decorationIds=this._editor.deltaDecorations(this._decorationIds,[]),this._decorationsTypeIds.forEach(this._codeEditorService.removeDecorationType,this._codeEditorService),this._decorationsTypeIds=[]}};L.ID="editor.contrib.InlayHints",L=C([w(1,a.a),w(2,u.b),w(3,i.a)],L),Object(t.l)(L.ID,L),m.a.registerCommand("_executeInlayHintProvider",(e,...t)=>y(void 0,void 0,void 0,(function*(){var[i,n]=t,i=(Object(_.c)(f.a.isUri(i)),Object(_.c)(g.a.isIRange(n)),yield e.get(b.a).createModelReference(i));try{var o=yield S(i.object.textEditorModel,[g.a.lift(n)],c.a.None);return Object(d.k)(o.map(e=>e.list)).sort((e,t)=>v.a.compare(e.position,t.position))}finally{i.dispose()}})))},7061:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));class n{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new n(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return n.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return n.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return n.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){var i=0|e.lineNumber,n=0|t.lineNumber;return i==n?(0|e.column)-(0|t.column):i-n}clone(){return new n(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new n(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}},7082:function(e,t,i){"use strict";i.r(t);var n=i("e8e3"),o=i("2504"),r=i("fe45"),s=i("a666"),a=(t=i("b2cc"),i("5717")),l=i("3170"),d=i("6a89"),h=i("c101"),c=i("b707"),u=i("a40b"),g=i("84df"),p=i("09db"),m=i("dff7"),f=i("9e74"),_=i("4fc3"),b=i("0a0f"),v=i("fdcc"),C=i("b539"),w=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}}),y=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};let S=class{constructor(e,t){this._workerService=t,this._callOnDispose=new s.b,this._callOnModel=new s.b,this._editor=e,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(c.x.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){if(this._callOnModel.clear(),this._editor.getOption(47)&&this._editor.hasModel()){var e=this._editor.getModel(),[e]=c.x.ordered(e);if(e&&e.autoFormatTriggerCharacters){let i=new l.b;for(var t of e.autoFormatTriggerCharacters)i.add(t.charCodeAt(0));this._callOnModel.add(this._editor.onDidType(e=>{e=e.charCodeAt(e.length-1),i.has(e)&&this._trigger(String.fromCharCode(e))}))}}}_trigger(e){if(this._editor.hasModel()&&!(1<this._editor.getSelections().length)){var t=this._editor.getModel();const i=this._editor.getPosition();let o=!1;const r=this._editor.onDidChangeModelContent(e=>{if(e.isFlush)o=!0,r.dispose();else for(let t=0,n=e.changes.length;t<n;t++)if(e.changes[t].range.endLineNumber<=i.lineNumber)return o=!0,void r.dispose()});Object(g.e)(this._workerService,t,i,e,t.getFormattingOptions()).then(e=>{r.dispose(),o||Object(n.n)(e)&&(p.a.execute(this._editor,e,!0),Object(g.b)(e))},e=>{throw r.dispose(),e})}}},L=(S.ID="editor.contrib.autoFormat",S=i([w(1,u.a)],S),class{constructor(e,t){this.editor=e,this._instantiationService=t,this._callOnDispose=new s.b,this._callOnModel=new s.b,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(c.j.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(46)&&this.editor.hasModel()&&c.j.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e)))}_trigger(e){!this.editor.hasModel()||1<this.editor.getSelections().length||this._instantiationService.invokeFunction(g.c,this.editor,e,2,C.b.None,o.a.None).catch(v.f)}});L.ID="editor.contrib.formatOnPaste",L=i([w(1,b.a)],L);class x extends t.b{constructor(){super({id:"editor.action.formatDocument",label:m.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:_.a.and(h.a.notInCompositeEditor,h.a.writable,h.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:h.a.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return y(this,void 0,void 0,(function*(){var i;t.hasModel()&&(i=e.get(b.a),yield e.get(C.a).showWhile(i.invokeFunction(g.d,t,1,C.b.None,o.a.None),250))}))}}class k extends t.b{constructor(){super({id:"editor.action.formatSelection",label:m.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:_.a.and(h.a.writable,h.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:h.a.editorTextFocus,primary:Object(r.a)(2089,2084),weight:100},contextMenuOpts:{when:h.a.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return y(this,void 0,void 0,(function*(){if(t.hasModel()){var i=e.get(b.a);const r=t.getModel();var n=t.getSelections().map(e=>e.isEmpty()?new d.a(e.startLineNumber,1,e.startLineNumber,r.getLineMaxColumn(e.startLineNumber)):e);yield e.get(C.a).showWhile(i.invokeFunction(g.c,t,n,1,C.b.None,o.a.None),250)}}))}}Object(t.l)(S.ID,S),Object(t.l)(L.ID,L),Object(t.j)(x),Object(t.j)(k),f.a.registerCommand("editor.action.format",e=>y(void 0,void 0,void 0,(function*(){var t,i=e.get(a.a).getFocusedCodeEditor();i&&i.hasModel()&&(t=e.get(f.b),i.getSelection().isEmpty()?yield t.executeCommand("editor.action.formatDocument"):yield t.executeCommand("editor.action.formatSelection"))})))},"708a":function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("2e5d");class o{static whitespaceVisibleColumn(e,t,i){var o=e.length;let r=0,s=-1,a=-1;for(let l=0;l<o;l++){if(l===t)return[s,a,r];switch(r%i==0&&(s=l,a=r),e.charCodeAt(l)){case 32:r+=1;break;case 9:r=n.a.nextRenderTabStop(r,i);break;default:return[-1,-1,-1]}}return t===o?[s,a,r]:[-1,-1,-1]}static atomicPosition(e,t,i,r){var s=e.length,[a,l,d]=o.whitespaceVisibleColumn(e,t,i);if(-1===d)return-1;let h;switch(r){case 0:h=!0;break;case 1:h=!1;break;case 2:if(d%i==0)return t;h=d%i<=i/2}if(h){if(-1===a)return-1;let t=l;for(let o=a;o<s;++o){if(t===l+i)return a;switch(e.charCodeAt(o)){case 32:t+=1;break;case 9:t=n.a.nextRenderTabStop(t,i);break;default:return-1}}return t===l+i?a:-1}var c=n.a.nextRenderTabStop(d,i);let u=d;for(let o=t;o<s;o++){if(u===c)return o;switch(e.charCodeAt(o)){case 32:u+=1;break;case 9:u=n.a.nextRenderTabStop(u,i);break;default:return-1}}return u===c?s:-1}}},"70c3":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return _}));var n,o,r=i("11f7"),s=i("e32d"),a=i("a60f"),l=i("5fe7"),d=(t=i("6424"),i("308f")),h=i("a666"),c=i("30db");i("ba77"),i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s};(o=n=n||{}).North="north",o.South="south",o.East="east",o.West="west";const u=new d.b,g=new d.b;class p{constructor(){this.disposables=new h.b}get onPointerMove(){return this.disposables.add(new s.a(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new s.a(window,"mouseup")).event}dispose(){this.disposables.dispose()}}i([t.a],p.prototype,"onPointerMove",null),i([t.a],p.prototype,"onPointerUp",null);class m{constructor(e){this.el=e,this.disposables=new h.b}get onPointerMove(){return this.disposables.add(new s.a(this.el,a.a.Change)).event}get onPointerUp(){return this.disposables.add(new s.a(this.el,a.a.End)).event}dispose(){this.disposables.dispose()}}i([t.a],m.prototype,"onPointerMove",null),i([t.a],m.prototype,"onPointerUp",null);class f{constructor(e){this.factory=e}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}i([t.a],f.prototype,"onPointerMove",null),i([t.a],f.prototype,"onPointerUp",null);class _ extends h.a{constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new l.a(this.hoverDelay)),this._state=3,this._onDidEnablementChange=this._register(new d.b),this.onDidEnablementChange=this._onDidEnablementChange.event,this._onDidStart=this._register(new d.b),this.onDidStart=this._onDidStart.event,this._onDidChange=this._register(new d.b),this.onDidChange=this._onDidChange.event,this._onDidReset=this._register(new d.b),this.onDidReset=this._onDidReset.event,this._onDidEnd=this._register(new d.b),this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.orthogonalStartSashDisposables=this._register(new h.b),this.orthogonalStartDragHandleDisposables=this._register(new h.b),this.orthogonalEndSashDisposables=this._register(new h.b),this.orthogonalEndDragHandleDisposables=this._register(new h.b),this.el=Object(r.q)(e,Object(r.a)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add("orthogonal-edge-"+i.orthogonalEdge),c.f&&this.el.classList.add("mac"),e=this._register(new s.a(this.el,"mousedown")).event,this._register(e(e=>this.onPointerStart(e,new p),this)),e=this._register(new s.a(this.el,"dblclick")).event,this._register(e(this.onPointerDoublePress,this)),e=this._register(new s.a(this.el,"mouseenter")).event,this._register(e(()=>_.onMouseEnter(this))),e=this._register(new s.a(this.el,"mouseleave")).event,this._register(e(()=>_.onMouseLeave(this))),this._register(a.b.addTarget(this.el)),e=d.c.map(this._register(new s.a(this.el,a.a.Start)).event,e=>Object.assign(Object.assign({},e),{target:null!=(e=e.initialTarget)?e:null})),this._register(e(e=>this.onPointerStart(e,new m(this.el)),this)),e=this._register(new s.a(this.el,a.a.Tap)).event,e=d.c.map(d.c.filter(d.c.debounce(e,(e,t)=>({event:t,count:(null!=(t=null==e?void 0:e.count)?t:0)+1}),250),({count:e})=>2===e),({event:e})=>Object.assign(Object.assign({},e),{target:null!=(e=e.initialTarget)?e:null})),this._register(e(this.onPointerDoublePress,this)),"number"==typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=this.size+"px":this.el.style.height=this.size+"px"):(this.size=4,this._register(u.event(e=>{this.size=e,this.layout()}))),this._register(g.event(e=>this.hoverDelay=e)),this.hidden=!1,this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",!1),this.layout()}get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){var t;this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e&&(this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=Object(r.q)(this.el,Object(r.a)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Object(h.i)(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new s.a(this._orthogonalStartDragHandle,"mouseenter")).event(()=>_.onMouseEnter(e),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new s.a(this._orthogonalStartDragHandle,"mouseleave")).event(()=>_.onMouseLeave(e),void 0,this.orthogonalStartDragHandleDisposables))},this)),t(e.state)),this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){var t;this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e&&(this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=Object(r.q)(this.el,Object(r.a)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Object(h.i)(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new s.a(this._orthogonalEndDragHandle,"mouseenter")).event(()=>_.onMouseEnter(e),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new s.a(this._orthogonalEndDragHandle,"mouseleave")).event(()=>_.onMouseLeave(e),void 0,this.orthogonalEndDragHandleDisposables))},this)),t(e.state)),this._orthogonalEndSash=e}onPointerStart(e,t){r.c.stop(e);let i=!1;if(e.__orthogonalSashEvent||(n=this.getOrthogonalSash(e))&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new f(t))),this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new f(t))),this.state){const o=Object(r.E)("iframe");for(const e of o)e.style.pointerEvents="none";const s=e.pageX,a=e.pageY,l=e.altKey;var n={startX:s,currentX:s,startY:a,currentY:a,altKey:l};this.el.classList.add("active"),this._onDidStart.fire(n);const d=Object(r.w)(this.el);e=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":c.f?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":c.f?"col-resize":"ew-resize",d.textContent=`* { cursor: ${e} !important; }`};const u=new h.b;e(),i||this.onDidEnablementChange(e,null,u),t.onPointerMove(e=>{r.c.stop(e,!1),e={startX:s,currentX:e.pageX,startY:a,currentY:e.pageY,altKey:l},this._onDidChange.fire(e)},null,u),t.onPointerUp(e=>{r.c.stop(e,!1),this.el.removeChild(d),this.el.classList.remove("active"),this._onDidEnd.fire(),u.dispose();for(const t of o)t.style.pointerEvents="auto"},null,u),u.add(t)}}onPointerDoublePress(e){e=this.getOrthogonalSash(e),e&&e._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger(()=>e.el.classList.add("hover"),e.hoverDelay).then(void 0,()=>{}),!t&&e.linkedSash&&_.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&_.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){_.onMouseLeave(this)}layout(){var e;0===this.orientation?(e=this.layoutProvider,this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")):(e=this.layoutProvider,this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px"))}hide(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")}getOrthogonalSash(e){return e.target&&e.target instanceof HTMLElement&&e.target.classList.contains("orthogonal-drag-handle")?e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},"70cb":function(e,t,i){"use strict";i.d(t,"a",(function(){return C}));var n=i("308f"),o=i("a666"),r=i("3742"),s=i("d093"),a=i("2837"),l=i("045b");class d{constructor(e){var t;e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(e=>new a.c(e)):e.brackets?this._autoClosingPairs=e.brackets.map(e=>new a.c({open:e[0],close:e[1]})):this._autoClosingPairs=[],e.colorizedBracketPairs?this._colorizedBracketPairs=e.colorizedBracketPairs.map(e=>[e[0],e[1]]):e.brackets?this._colorizedBracketPairs=e.brackets.map(e=>[e[0],e[1]]):this._colorizedBracketPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment&&(t=e.__electricCharacterSupport.docComment,this._autoClosingPairs.push(new a.c({open:t.open,close:t.close||""}))),this._autoCloseBefore="string"==typeof e.autoCloseBefore?e.autoCloseBefore:d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}static shouldAutoClosePair(e,t,i){return 0===t.getTokenCount()||(i=t.findTokenIndexAtOffset(i-2),t=t.getStandardTokenType(i),e.isOK(t))}getSurroundingPairs(){return this._surroundingPairs}getColorizedBrackets(){return this._colorizedBracketPairs}}d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t";var h=i("1080");class c{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(const i of this._richEditBrackets.brackets)for(const n of i.close){var t=n.charAt(n.length-1);e.push(t)}return e.filter((e,t,i)=>i.indexOf(e)===t)}onElectricCharacter(e,t,i){var n;return this._richEditBrackets&&0!==this._richEditBrackets.brackets.length&&(n=t.findTokenIndexAtOffset(i-1),!Object(l.b)(t.getStandardTokenType(n)))&&(n=this._richEditBrackets.reversedRegex,i=t.getLineContent().substring(0,i-1)+e,e=h.a.findPrevBracketInRange(n,1,i,0,i.length))&&(n=i.substring(e.startColumn-1,e.endColumn-1).toLowerCase(),!this._richEditBrackets.textIsOpenBracket[n])&&(i=t.getActualLineContentBefore(e.startColumn-1),/^\s*$/.test(i))?{matchOpenBracket:n}:null}}function u(e){return e.global&&(e.lastIndex=0),1}class g{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&(u(this._indentationRules.increaseIndentPattern),this._indentationRules.increaseIndentPattern.test(e)))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&(u(this._indentationRules.decreaseIndentPattern),this._indentationRules.decreaseIndentPattern.test(e)))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&(u(this._indentationRules.indentNextLinePattern),this._indentationRules.indentNextLinePattern.test(e)))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&(u(this._indentationRules.unIndentedLinePattern),this._indentationRules.unIndentedLinePattern.test(e)))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var p=i("fdcc");class m{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(e=>{var t=m._createOpenBracketRegExp(e[0]),i=m._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(3<=e)for(let s=0,a=this._regExpRules.length;s<a;s++){var o=this._regExpRules[s];if([{reg:o.beforeText,text:i},{reg:o.afterText,text:n},{reg:o.previousLineText,text:t}].every(e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text))))return o.action}if(2<=e&&0<i.length&&0<n.length)for(let s=0,l=this._brackets.length;s<l;s++){var r=this._brackets[s];if(r.openRegExp.test(i)&&r.closeRegExp.test(n))return{indentAction:a.b.IndentOutdent}}if(2<=e&&0<i.length)for(let s=0,l=this._brackets.length;s<l;s++)if(this._brackets[s].openRegExp.test(i))return{indentAction:a.b.Indent};return null}static _createOpenBracketRegExp(e){let t=r.t(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",m._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=r.t(e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,m._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(e){return Object(p.f)(e),null}}}class f{constructor(e,t){this._languageIdentifier=e,this._brackets=null,this._electricCharacter=null,this._conf=t,this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new m(this._conf):null,this.comments=f._handleComments(this._conf),this.characterPair=new d(this._conf),this.wordDefinition=this._conf.wordPattern||s.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new g(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}get brackets(){return!this._brackets&&this._conf.brackets&&(this._brackets=new h.b(this._languageIdentifier,this._conf.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new c(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}static _handleComments(e){var t,i;e=e.comments;return e?(t={},e.lineComment&&(t.lineCommentToken=e.lineComment),e.blockComment&&([e,i]=e.blockComment,t.blockCommentStartToken=e,t.blockCommentEndToken=i),t):null}}class _{constructor(e){this.languageIdentifier=e}}class b{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class v{constructor(e){this.languageIdentifier=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new b(e,t,++this._order);return this._entries.push(i),this._resolved=null,Object(o.i)(()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===i){this._entries.splice(e,1),this._resolved=null;break}})}getRichEditSupport(){var e;return this._resolved||(e=this._resolve())&&(this._resolved=new f(this.languageIdentifier,e)),this._resolved}_resolve(){if(0===this._entries.length)return null;this._entries.sort(b.cmp);var e={};for(const i of this._entries){var t=i.configuration;e.comments=t.comments||e.comments,e.brackets=t.brackets||e.brackets,e.wordPattern=t.wordPattern||e.wordPattern,e.indentationRules=t.indentationRules||e.indentationRules,e.onEnterRules=t.onEnterRules||e.onEnterRules,e.autoClosingPairs=t.autoClosingPairs||e.autoClosingPairs,e.surroundingPairs=t.surroundingPairs||e.surroundingPairs,e.autoCloseBefore=t.autoCloseBefore||e.autoCloseBefore,e.folding=t.folding||e.folding,e.colorizedBracketPairs=t.colorizedBracketPairs||e.colorizedBracketPairs,e.__electricCharacterSupport=t.__electricCharacterSupport||e.__electricCharacterSupport}return e}}const C=new class{constructor(){this._entries2=new Map,this._onDidChange=new n.b,this.onDidChange=this._onDidChange.event}register(e,t,i=0){let n=this._entries2.get(e.id);n||(n=new v(e),this._entries2.set(e.id,n));const r=n.register(t,i);return this._onDidChange.fire(new _(e)),Object(o.i)(()=>{r.dispose(),this._onDidChange.fire(new _(e))})}_getRichEditSupport(e){return e=this._entries2.get(e),e?e.getRichEditSupport():null}getIndentationRules(e){return e=this._getRichEditSupport(e),e&&e.indentationRules||null}_getElectricCharacterSupport(e){return e=this._getRichEditSupport(e),e&&e.electricCharacter||null}getElectricCharacters(e){return e=this._getElectricCharacterSupport(e),e?e.getElectricCharacters():[]}onElectricCharacter(e,t,i){t=Object(l.a)(t,i-1);var n=this._getElectricCharacterSupport(t.languageId);return n?n.onElectricCharacter(e,t,i-t.firstCharOffset):null}getComments(e){return e=this._getRichEditSupport(e),e&&e.comments||null}_getCharacterPairSupport(e){return e=this._getRichEditSupport(e),e&&e.characterPair||null}getAutoClosingPairs(e){return e=this._getCharacterPairSupport(e),new a.a(e?e.getAutoClosingPairs():[])}getAutoCloseBeforeSet(e){return e=this._getCharacterPairSupport(e),e?e.getAutoCloseBeforeSet():d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED}getSurroundingPairs(e){return e=this._getCharacterPairSupport(e),e?e.getSurroundingPairs():[]}shouldAutoClosePair(e,t,i){return t=Object(l.a)(t,i-1),d.shouldAutoClosePair(e,t,i-t.firstCharOffset)}getWordDefinition(e){return e=this._getRichEditSupport(e),e?Object(s.c)(e.wordDefinition||null):Object(s.c)(null)}getFoldingRules(e){return e=this._getRichEditSupport(e),e?e.foldingRules:{}}getIndentRulesSupport(e){return e=this._getRichEditSupport(e),e&&e.indentRulesSupport||null}getPrecedingValidLine(e,t,i){var n=e.getLanguageIdAtPosition(t,0);if(1<t){let r,s=-1;for(r=t-1;1<=r;r--){if(e.getLanguageIdAtPosition(r,0)!==n)return s;var o=e.getLineContent(r);if(!i.shouldIgnore(o)&&!/^\s+$/.test(o)&&""!==o)return r;s=r}}return-1}getInheritIndentForLine(e,t,i,n=!0){if(e<4)return null;var o=this.getIndentRulesSupport(t.getLanguageIdentifier().id);if(!o)return null;if(i<=1)return{indentation:"",action:null};if(e=this.getPrecedingValidLine(t,i,o),e<0)return null;if(e<1)return{indentation:"",action:null};if(i=t.getLineContent(e),o.shouldIncrease(i)||o.shouldIndentNextLine(i))return{indentation:r.x(i),action:a.b.Indent,line:e};if(o.shouldDecrease(i))return{indentation:r.x(i),action:null,line:e};if(1===e)return{indentation:r.x(t.getLineContent(e)),action:null,line:e};i=e-1;var s=o.getIndentMetadata(t.getLineContent(i));if(!(3&s)&&4&s){let e=0;for(let n=i-1;0<n;n--)if(!o.shouldIndentNextLine(t.getLineContent(n))){e=n;break}return{indentation:r.x(t.getLineContent(e+1)),action:null,line:e+1}}if(n)return{indentation:r.x(t.getLineContent(e)),action:null,line:e};for(let d=e;0<d;d--){var l=t.getLineContent(d);if(o.shouldIncrease(l))return{indentation:r.x(l),action:a.b.Indent,line:d};if(o.shouldIndentNextLine(l)){let e=0;for(let i=d-1;0<i;i--)if(!o.shouldIndentNextLine(t.getLineContent(d))){e=i;break}return{indentation:r.x(t.getLineContent(e+1)),action:null,line:e+1}}if(o.shouldDecrease(l))return{indentation:r.x(l),action:null,line:d}}return{indentation:r.x(t.getLineContent(1)),action:null,line:1}}getGoodIndentForLine(e,t,i,n,o){if(!(e<4)){var s=this._getRichEditSupport(i);if(s&&(i=this.getIndentRulesSupport(i),i)){var l=this.getInheritIndentForLine(e,t,n);n=t.getLineContent(n);if(l){var d=l.line;if(void 0!==d&&(s=s.onEnter(e,"",t.getLineContent(d),""),s)){let e=r.x(t.getLineContent(d));return s.removeText&&(e=e.substring(0,e.length-s.removeText)),s.indentAction===a.b.Indent||s.indentAction===a.b.IndentOutdent?e=o.shiftIndent(e):s.indentAction===a.b.Outdent&&(e=o.unshiftIndent(e)),i.shouldDecrease(n)&&(e=o.unshiftIndent(e)),s.appendText&&(e+=s.appendText),r.x(e)}return i.shouldDecrease(n)?l.action===a.b.Indent?l.indentation:o.unshiftIndent(l.indentation):l.action===a.b.Indent?o.shiftIndent(l.indentation):l.indentation}}}return null}getIndentForEnter(e,t,i,n){if(e<4)return null;t.forceTokenization(i.startLineNumber);var o=t.getLineTokens(i.startLineNumber),s=Object(l.a)(o,i.startColumn-1),d=s.getLineContent();let h,c,u=!1;if(h=0<s.firstCharOffset&&o.getLanguageId(0)!==s.languageId?(u=!0,d.substr(0,i.startColumn-1-s.firstCharOffset)):o.getLineContent().substring(0,i.startColumn-1),c=i.isEmpty()?d.substr(i.startColumn-1-s.firstCharOffset):this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-s.firstCharOffset),d=this.getIndentRulesSupport(s.languageId),!d)return null;const g=h;s=r.x(h);var p={getLineTokens:e=>t.getLineTokens(e),getLanguageIdentifier:()=>t.getLanguageIdentifier(),getLanguageIdAtPosition:(e,i)=>t.getLanguageIdAtPosition(e,i),getLineContent:e=>e===i.startLineNumber?g:t.getLineContent(e)};o=r.x(o.getLineContent()),e=this.getInheritIndentForLine(e,p,i.startLineNumber+1);if(!e)return{beforeEnter:p=u?o:s,afterEnter:p};let m=u?o:e.indentation;return e.action===a.b.Indent&&(m=n.shiftIndent(m)),d.shouldDecrease(c)&&(m=n.unshiftIndent(m)),{beforeEnter:u?o:s,afterEnter:m}}getIndentActionForType(e,t,i,n,o){if(e<4)return null;var r=this.getScopedLineTokens(t,i.startLineNumber,i.startColumn);if(r.firstCharOffset)return null;var s=this.getIndentRulesSupport(r.languageId);if(!s)return null;var l=r.getLineContent(),d=l.substr(0,i.startColumn-1-r.firstCharOffset);let h;if(h=i.isEmpty()?l.substr(i.startColumn-1-r.firstCharOffset):this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-r.firstCharOffset),s.shouldDecrease(d+h)||!s.shouldDecrease(d+n+h))return null;{if(l=this.getInheritIndentForLine(e,t,i.startLineNumber,!1),!l)return null;let n=l.indentation;return n=l.action!==a.b.Indent?o.unshiftIndent(n):n}}getIndentMetadata(e,t){var i=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return!i||t<1||t>e.getLineCount()?null:i.getIndentMetadata(e.getLineContent(t))}getEnterAction(e,t,i){var n=this.getScopedLineTokens(t,i.startLineNumber,i.startColumn),o=this._getRichEditSupport(n.languageId);if(!o)return null;var r=n.getLineContent(),s=r.substr(0,i.startColumn-1-n.firstCharOffset);let l,d=(l=i.isEmpty()?r.substr(i.startColumn-1-n.firstCharOffset):this.getScopedLineTokens(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-n.firstCharOffset),"");if(1<i.startLineNumber&&0===n.firstCharOffset&&(r=this.getScopedLineTokens(t,i.startLineNumber-1)).languageId===n.languageId&&(d=r.getLineContent()),n=o.onEnter(e,d,s,l),!n)return null;r=n.indentAction;let h=n.appendText;o=n.removeText||0,h?r===a.b.Indent&&(h="\t"+h):h=r===a.b.Indent||r===a.b.IndentOutdent?"\t":"";let c=this.getIndentationAtPosition(t,i.startLineNumber,i.startColumn);return o&&(c=c.substring(0,c.length-o)),{indentAction:r,appendText:h,removeText:o,indentation:c}}getIndentationAtPosition(e,t,i){e=e.getLineContent(t);let n=r.x(e);return n.length>i-1?n.substring(0,i-1):n}getScopedLineTokens(e,t,i){e.forceTokenization(t);var n=e.getLineTokens(t);e=void 0===i?e.getLineMaxColumn(t)-1:i-1;return Object(l.a)(n,e)}getBracketsSupport(e){return e=this._getRichEditSupport(e),e&&e.brackets||null}getColorizedBracketPairs(e){return(null==(e=this._getRichEditSupport(e))?void 0:e.characterPair.getColorizedBrackets())||[]}}},"70f5":function(e,t,i){"use strict";i.d(t,"a",(function(){return u}));var n=i("e8e3"),o=i("2504"),r=i("fdcc"),s=(t=i("40355"),i("6a89")),a=i("b707"),l=i("258a");i=i("6a5d");class d{remove(){this.parent&&this.parent.children.delete(this.id)}static findId(e,t){let i,n=("string"==typeof e?i=t.id+"/"+e:(i=t.id+"/"+e.name,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_`+e.range.startColumn)),i);for(let o=0;void 0!==t.children.get(n);o++)n=i+"_"+o;return n}static empty(e){return 0===e.children.size}}class h extends d{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class c extends d{constructor(e,t,i,n){super(),this.id=e,this.parent=t,this.label=i,this.order=n,this.children=new Map}}class u extends d{constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}static create(e,t){let i=this._keys.for(e,!0),n=u._requests.get(i);if(!n){var r=new o.b;n={promiseCnt:0,source:r,promise:u._create(e,r.token),model:void 0},u._requests.set(i,n);const t=Date.now();n.promise.then(()=>{this._requestDurations.update(e,Date.now()-t)})}return n.model?Promise.resolve(n.model):(n.promiseCnt+=1,t.onCancellationRequested(()=>{0==--n.promiseCnt&&(n.source.cancel(),u._requests.delete(i))}),new Promise((e,t)=>{n.promise.then(t=>{n.model=t,e(t)},e=>{u._requests.delete(i),t(e)})}))}static _create(e,t){const i=new o.b(t),s=new u(e.uri),l=a.m.ordered(e);var h=l.map((t,n)=>{var o;let a=d.findId("provider_"+n,s),l=new c(a,s,null!=(o=t.displayName)?o:"Unknown Outline Provider",n);return Promise.resolve(t.provideDocumentSymbols(e,i.token)).then(e=>{for(const t of e||[])u._makeOutlineElement(t,l);return l},e=>(Object(r.g)(e),l)).then(e=>{d.empty(e)?e.remove():s._groups.set(a,e)})});const g=a.m.onDidChange(()=>{var t=a.m.ordered(e);Object(n.h)(t,l)||i.cancel()});return Promise.all(h).then(()=>i.token.isCancellationRequested&&!t.isCancellationRequested?u._create(e,t):s._compact()).finally(()=>{g.dispose()})}static _makeOutlineElement(e,t){var i=d.findId(e,t),n=new h(i,t,e);if(e.children)for(const o of e.children)u._makeOutlineElement(o,n);t.children.set(n.id,n)}_compact(){let e=0;for(var[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;var n;if(1!==e)this.children=this._groups;else for([,n]of l.a.first(this._groups.values()).children)(n.parent=this).children.set(n.id,n);return this}getTopLevelSymbols(){var e=[];for(const t of this.children.values())t instanceof h?e.push(t.symbol):e.push(...l.a.map(t.children.values(),e=>e.symbol));return e.sort((e,t)=>s.a.compareRangesUsingStarts(e.range,t.range))}asListOfDocumentSymbols(){var e=this.getTopLevelSymbols(),t=[];return u._flattenDocumentSymbols(t,e,""),t.sort((e,t)=>s.a.compareRangesUsingStarts(e.range,t.range))}static _flattenDocumentSymbols(e,t,i){for(const n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||i,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&u._flattenDocumentSymbols(e,n.children,n.name)}}u._requestDurations=new i.b(a.m,350),u._requests=new t.a(9,.75),u._keys=new class{constructor(){this._counter=1,this._data=new WeakMap}for(e,t){return`${e.id}/${t?e.getVersionId():""}/`+this._hash(a.m.all(e))}_hash(e){let t="";for(const i of e){let e=this._data.get(i);void 0===e&&(e=this._counter++,this._data.set(i,e)),t+=e}return t}}},"722f9":function(e,t,i){},7257:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return i.e("chunk-7532b3ea").then(i.bind(null,"ed79"))}})},"725e":function(e,t,i){},"72a7":function(e,t,i){"use strict";i.d(t,"e",(function(){return N})),i.d(t,"f",(function(){return O})),i.d(t,"a",(function(){return I})),i.d(t,"h",(function(){return A})),i.d(t,"g",(function(){return R})),i.d(t,"d",(function(){return F})),i.d(t,"b",(function(){return B})),i.d(t,"c",(function(){return q}));var n=i("11f7"),o=i("e32d"),r=i("b835"),s=i("a60f"),a=i("3813");class l{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach(n=>n.splice(e,t,i))}}var d=i("e8e3"),h=i("5fe7"),c=(t=i("ceb8"),i("6424")),u=i("308f"),g=i("7e93"),p=i("a666"),m=i("49d9"),f=i("aa3d"),_=i("30db"),b=i("ef8e9");i("e2b8");class v extends Error{constructor(e,t){super(`ListError [${e}] `+t)}}var C,w,y=i("7de1"),S=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});class L{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return"template:"+this.trait.trait}renderTemplate(e){return e}renderElement(e,t,i){var n=this.renderedElements.findIndex(e=>e.templateData===i);0<=n?(n=this.renderedElements[n],this.trait.unrender(i),n.index=t):this.renderedElements.push({index:t,templateData:i}),this.trait.renderIndex(t,i)}splice(e,t,i){var n=[];for(const o of this.renderedElements)o.index<e?n.push(o):o.index>=e+t&&n.push({index:o.index+i-t,templateData:o.templateData});this.renderedElements=n}renderIndexes(e){for(var{index:t,templateData:i}of this.renderedElements)-1<e.indexOf(t)&&this.trait.renderIndex(t,i)}disposeTemplate(e){var t=this.renderedElements.findIndex(t=>t.templateData===e);t<0||this.renderedElements.splice(t,1)}}class x{constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new u.b,this.onChange=this._onChange.event}get trait(){return this._trait}get renderer(){return new L(this)}splice(e,t,i){t=Math.max(0,Math.min(t,this.length-e));const n=i.length-t,o=e+t;var r,s=[...this.sortedIndexes.filter(t=>t<e),...i.map((t,i)=>t?i+e:-1).filter(e=>-1!==e),...this.sortedIndexes.filter(e=>e>=o).map(e=>e+n)],a=this.length+n;0<this.sortedIndexes.length&&0===s.length&&0<a&&(r=null!=(r=this.sortedIndexes.find(t=>e<=t))?r:a-1,s.push(Math.min(r,a-1))),this.renderer.splice(e,t,i.length),this._set(s,s),this.length=a}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(H),t)}_set(e,t,i){var n=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t,t=V(o,e);return this.renderer.renderIndexes(t),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return 0<=Object(d.d)(this.sortedIndexes,e,H)}dispose(){Object(p.f)(this._onChange)}}i([c.a],x.prototype,"renderer",null);class k extends x{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class D{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,i.map(()=>!1));const n=this.trait.get().map(e=>this.identityProvider.getId(this.view.element(e)).toString());i=i.map(e=>-1<n.indexOf(this.identityProvider.getId(e).toString())),this.trait.splice(e,t,i)}}function N(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function O(e){return!!e.classList.contains("monaco-editor")||!e.classList.contains("monaco-list")&&!!e.parentElement&&O(e.parentElement)}class E{constructor(e,t,i){this.list=e,this.view=t,this.disposables=new p.b,this.multipleSelectionDisposables=new p.b,this.onKeyDown.filter(e=>3===e.keyCode).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(e=>16===e.keyCode).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(e=>18===e.keyCode).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(e=>11===e.keyCode).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(e=>12===e.keyCode).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(e=>9===e.keyCode).on(this.onEscape,this,this.disposables),!1!==i.multipleSelectionSupport&&this.onKeyDown.filter(e=>(_.f?e.metaKey:e.ctrlKey)&&31===e.keyCode).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return u.c.chain(this.disposables.add(new o.a(this.view.domNode,"keydown")).event).filter(e=>!N(e.target)).map(e=>new r.a(e))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport)&&this.onKeyDown.filter(e=>(_.f?e.metaKey:e.ctrlKey)&&31===e.keyCode).on(this.onCtrlA,this,this.multipleSelectionDisposables)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Object(d.r)(this.list.length),e.browserEvent),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}i([c.a],E.prototype,"onKeyDown",null),(w=C=C||{})[w.Idle=0]="Idle",w[w.Typing=1]="Typing";const I=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(31<=e.keyCode&&e.keyCode<=56||21<=e.keyCode&&e.keyCode<=30||93<=e.keyCode&&e.keyCode<=102||80<=e.keyCode&&e.keyCode<=90)}};class M{constructor(e,t,i,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.delegate=n,this.enabled=!1,this.state=C.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new p.b,this.disposables=new p.b,this.updateOptions(e.options)}updateOptions(e){void 0===e.enableKeyboardNavigation||e.enableKeyboardNavigation?this.enable():this.disable(),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)}enable(){var e,t;this.enabled||(e=u.c.chain(this.enabledDisposables.add(new o.a(this.view.domNode,"keydown")).event).filter(e=>!N(e.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(e=>new r.a(e)).filter(e=>this.delegate.mightProducePrintableCharacter(e)).forEach(e=>{e.stopPropagation(),e.preventDefault()}).map(e=>e.browserEvent.key).event,t=u.c.debounce(e,()=>null,800),u.c.reduce(u.c.any(e,t),(e,t)=>null===t?null:(e||"")+t)(this.onInput,this,this.enabledDisposables),t(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1)}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e,t=this.list.getFocus();0<t.length&&t[0]===this.previouslyFocused&&(e=null==(e=this.list.options.accessibilityProvider)?void 0:e.getAriaLabel(this.list.element(t[0])))&&Object(a.a)(e),this.previouslyFocused=-1}onInput(e){if(e){var t=this.list.getFocus(),i=0<t.length?t[0]:0,n=this.state===C.Idle?1:0;this.state=C.Typing;for(let t=0;t<this.list.length;t++){var o=(i+t+n)%this.list.length,r=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(o));r=r&&r.toString();if(void 0===r||Object(g.h)(e,r))return this.previouslyFocused=i,this.list.setFocus([o]),void this.list.reveal(o)}}else this.state=C.Idle,this.triggered=!1}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class T{constructor(e,t){this.list=e,this.view=t,this.disposables=new p.b,u.c.chain(this.disposables.add(new o.a(t.domNode,"keydown")).event).filter(e=>!N(e.target)).map(e=>new r.a(e)).filter(e=>!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)).on(this.onTab,this,this.disposables)}onTab(e){var t,i;e.target===this.view.domNode&&0!==(i=this.list.getFocus()).length&&(i=this.view.domElement(i[0]))&&(t=i.querySelector("[tabIndex]"))&&t instanceof HTMLElement&&-1!==t.tabIndex&&"hidden"!==(i=window.getComputedStyle(t)).visibility&&"none"!==i.display&&(e.preventDefault(),e.stopPropagation(),t.focus())}dispose(){this.disposables.dispose()}}function A(e){return _.f?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function R(e){return e.browserEvent.shiftKey}const P={isSelectionSingleChangeEvent:A,isSelectionRangeChangeEvent:R};class F{constructor(e){this.list=e,this.disposables=new p.b,this._onPointer=new u.b,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||P),this.mouseSupport=void 0===e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(s.b.addTarget(e.getHTMLElement()))),u.c.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport)&&(this.multipleSelectionController=this.list.options.multipleSelectionController||P)}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){O(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){var t;O(e.browserEvent.target)||(t=void 0===e.index?[]:[e.index],this.list.setFocus(t,e.browserEvent))}onViewPointer(e){if(this.mouseSupport&&!N(e.browserEvent.target)&&!O(e.browserEvent.target)){var t,i=e.index;if(void 0!==i)return this.isSelectionRangeChangeEvent(e)||this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([i],e.browserEvent),this.list.setAnchor(i),(t=e.browserEvent)instanceof MouseEvent&&2===t.button||this.list.setSelection([i],e.browserEvent),void this._onPointer.fire(e));this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0)}}onDoubleClick(e){var t;N(e.browserEvent.target)||O(e.browserEvent.target)||this.isSelectionChangeEvent(e)||(t=this.list.getFocus(),this.list.setSelection(t,e.browserEvent))}changeSelection(e){const t=e.index;let i=this.list.getAnchor();var n,o,r;this.isSelectionRangeChangeEvent(e)?(void 0===i&&(n=this.list.getFocus()[0],i=null!=n?n:t,this.list.setAnchor(i)),n=Math.min(i,t),o=Math.max(i,t),n=Object(d.r)(n,o+1),0!==(r=function(e,t){var i=e.indexOf(t);if(-1===i)return[];var n=[];let o=i-1;for(;0<=o&&e[o]===t-(i-o);)n.push(e[o--]);for(n.reverse(),o=i;o<e.length&&e[o]===t+(o-i);)n.push(e[o++]);return n}(V(o=this.list.getSelection(),[i]),i)).length&&(n=V(n,function(e,t){var i=[];let n=0,o=0;for(;n<e.length||o<t.length;)n>=e.length?i.push(t[o++]):o>=t.length?i.push(e[n++]):e[n]===t[o]?(n++,o++):e[n]<t[o]?i.push(e[n++]):o++;return i}(o,r)),this.list.setSelection(n,e.browserEvent),this.list.setFocus([t],e.browserEvent))):this.isSelectionSingleChangeEvent(e)&&(r=(o=this.list.getSelection()).filter(e=>e!==t),this.list.setFocus([t]),this.list.setAnchor(t),o.length===r.length?this.list.setSelection([...r,t],e.browserEvent):this.list.setSelection(r,e.browserEvent))}dispose(){this.disposables.dispose()}}class B{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){var t=this.selectorSuffix&&"."+this.selectorSuffix,i=[];e.listBackground&&(e.listBackground.isOpaque()?i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):_.f),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&i.push(`.monaco-list${t} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(i.push(`.monaco-list${t} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&i.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&i.push(`.monaco-list${t}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&i.push(`.monaco-list${t} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`),e.listSelectionOutline&&i.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listFocusOutline&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`),e.listInactiveFocusOutline&&i.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&i.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropBackground&&i.push(`\n\t\t\t\t.monaco-list${t}.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropBackground} !important; color: inherit !important; }\n\t\t\t`),e.listFilterWidgetBackground&&i.push(`.monaco-list-type-filter { background-color: ${e.listFilterWidgetBackground} }`),e.listFilterWidgetOutline&&i.push(`.monaco-list-type-filter { border: 1px solid ${e.listFilterWidgetOutline}; }`),e.listFilterWidgetNoMatchesOutline&&i.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${e.listFilterWidgetNoMatchesOutline}; }`),e.listMatchesShadow&&i.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${e.listMatchesShadow}; }`),e.tableColumnsBorder&&i.push(`\n\t\t\t\t.monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t}`),this.styleElement.textContent=i.join("\n")}}const j={listFocusBackground:t.a.fromHex("#7FB0D0"),listActiveSelectionBackground:t.a.fromHex("#0E639C"),listActiveSelectionForeground:t.a.fromHex("#FFFFFF"),listActiveSelectionIconForeground:t.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:t.a.fromHex("#094771"),listFocusAndSelectionForeground:t.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:t.a.fromHex("#3F3F46"),listInactiveSelectionIconForeground:t.a.fromHex("#FFFFFF"),listHoverBackground:t.a.fromHex("#2A2D2E"),listDropBackground:t.a.fromHex("#383B3D"),treeIndentGuidesStroke:t.a.fromHex("#a9a9a9"),tableColumnsBorder:t.a.fromHex("#cccccc").transparent(.2)},W={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function V(e,t){var i=[];let n=0,o=0;for(;n<e.length||o<t.length;)n>=e.length?i.push(t[o++]):o>=t.length?i.push(e[n++]):e[n]===t[o]?(i.push(e[n]),n++,o++):e[n]<t[o]?i.push(e[n++]):i.push(t[o++]);return i}const H=(e,t)=>e-t;class z{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,i,n){let o=0;for(const r of this.renderers)r.renderElement(e,t,i[o++],n)}disposeElement(e,t,i,n){let o=0;for(const r of this.renderers)r.disposeElement&&r.disposeElement(e,t,i[o],n),o+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class U{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,i){var n=this.accessibilityProvider.getAriaLabel(e);n?i.setAttribute("aria-label",n):i.removeAttribute("aria-label"),n=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof n?i.setAttribute("aria-level",""+n):i.removeAttribute("aria-level")}disposeTemplate(e){}}class K{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){var t=this.list.getSelectedElements();return-1<t.indexOf(e)?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)}onDragOver(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)}onDragLeave(e,t,i,n){var o,r;null!=(r=(o=this.dnd).onDragLeave)&&r.call(o,e,t,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}drop(e,t,i,n){this.dnd.drop(e,t,i,n)}}class q{constructor(e,t,i,o,r=W){this.user=e,this._options=r,this.focus=new x("focused"),this.anchor=new x("anchor"),this.eventBufferer=new u.d,this._ariaLabel="",this.disposables=new p.b,this._onDidDispose=new u.b,this.onDidDispose=this._onDidDispose.event,e=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null==(e=this._options.accessibilityProvider)?void 0:e.getWidgetRole():"list",this.selection=new k("listbox"!==e),Object(f.f)(r,j,!1);const s=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(s.push(new U(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant)&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables),o=o.map(e=>new z(e.templateId,[...s,e]));var a=Object.assign(Object.assign({},r),{dnd:r.dnd&&new K(this,r.dnd)});this.view=new y.b(t,i,o,a),this.view.domNode.setAttribute("role",e),r.styleController?this.styleController=r.styleController(this.view.domId):(t=Object(n.w)(this.view.domNode),this.styleController=new B(t,this.view.domId)),this.spliceable=new l([new D(this.focus,this.view,r.identityProvider),new D(this.selection,this.view,r.identityProvider),new D(this.anchor,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new T(this,this.view)),"boolean"==typeof r.keyboardSupport&&!r.keyboardSupport||(this.keyboardController=new E(this,this.view,r),this.disposables.add(this.keyboardController)),r.keyboardNavigationLabelProvider&&(i=r.keyboardNavigationDelegate||I,this.typeLabelController=new M(this,this.view,r.keyboardNavigationLabelProvider,i),this.disposables.add(this.typeLabelController)),this.mouseController=this.createMouseController(r),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return u.c.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e))}get onDidChangeSelection(){return u.c.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;var t=u.c.chain(this.disposables.add(new o.a(this.view.domNode,"keydown")).event).map(e=>new r.a(e)).filter(t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode).map(o.b).filter(()=>!1).event,i=u.c.chain(this.disposables.add(new o.a(this.view.domNode,"keyup")).event).forEach(()=>e=!1).map(e=>new r.a(e)).filter(e=>58===e.keyCode||e.shiftKey&&68===e.keyCode).map(o.b).map(({browserEvent:e})=>{var t=this.getFocus();t=t.length?t[0]:void 0;return{index:t,element:void 0!==t?this.view.element(t):void 0,anchor:void 0!==t?this.view.domElement(t):this.view.domNode,browserEvent:e}}).event,n=u.c.chain(this.view.onContextMenu).filter(t=>!e).map(({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:{x:i.pageX+1,y:i.pageY},browserEvent:i})).event;return u.c.any(t,i,n)}get onKeyDown(){return this.disposables.add(new o.a(this.view.domNode,"keydown")).event}get onDidFocus(){return u.c.signal(this.disposables.add(new o.a(this.view.domNode,"focus",!0)).event)}createMouseController(e){return new F(this)}updateOptions(e={}){var t;this._options=Object.assign(Object.assign({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null!=(t=this.keyboardController)&&t.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new v(this.user,"Invalid start index: "+e);if(t<0)throw new v(this.user,"Invalid delete count: "+t);0===t&&0===i.length||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,i))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const i of e)if(i<0||i>=this.length)throw new v(this.user,"Invalid index "+i);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setAnchor(e){if(void 0===e)this.anchor.set([]);else{if(e<0||e>=this.length)throw new v(this.user,"Invalid index "+e);this.anchor.set([e])}}getAnchor(){return Object(d.j)(this.anchor.get(),void 0)}getAnchorElement(){var e=this.getAnchor();return void 0===e?void 0:this.element(e)}setFocus(e,t){for(const i of e)if(i<0||i>=this.length)throw new v(this.user,"Invalid index "+i);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){var o;0!==this.length&&(o=this.focus.get(),-1<(o=this.findNextIndex(0<o.length?o[0]+e:0,t,n)))&&this.setFocus([o],i)}focusPrevious(e=1,t=!1,i,n){var o;0!==this.length&&(o=this.focus.get(),-1<(o=this.findPreviousIndex(0<o.length?o[0]-e:0,t,n)))&&this.setFocus([o],i)}focusNextPage(e,t){return S(this,void 0,void 0,(function*(){var i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight),n=this.view.element(i=0===i?0:i-1),o=this.getFocusedElements()[0];o!==n?-1<(n=this.findPreviousIndex(i,!1,t))&&o!==this.view.element(n)?this.setFocus([n],e):this.setFocus([i],e):(o=this.view.getScrollTop(),this.view.setScrollTop(o+this.view.renderHeight-this.view.elementHeight(i)),this.view.getScrollTop()!==o&&(this.setFocus([]),yield Object(h.n)(0),yield this.focusNextPage(e,t)))}))}focusPreviousPage(e,t){return S(this,void 0,void 0,(function*(){let i;var n=this.view.getScrollTop(),o=(i=0===n?this.view.indexAt(n):this.view.indexAfter(n-1),this.view.element(i)),r=this.getFocusedElements()[0];r!==o?-1<(o=this.findNextIndex(i,!1,t))&&r!==this.view.element(o)?this.setFocus([o],e):this.setFocus([i],e):(this.view.setScrollTop((r=n)-this.view.renderHeight),this.view.getScrollTop()!==r&&(this.setFocus([]),yield Object(h.n)(0),yield this.focusPreviousPage(e,t)))}))}focusLast(e,t){0!==this.length&&-1<(t=this.findPreviousIndex(this.length-1,!1,t))&&this.setFocus([t],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){0!==this.length&&-1<(e=this.findNextIndex(e,!1,i))&&this.setFocus([e],t)}findNextIndex(e,t=!1,i){for(let n=0;n<this.length;n++){if(e>=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;n<this.length;n++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!i||i(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map(e=>this.view.element(e))}reveal(e,t){if(e<0||e>=this.length)throw new v(this.user,"Invalid index "+e);var i,n=this.view.getScrollTop(),o=this.view.elementTop(e);e=this.view.elementHeight(e);Object(b.i)(t)?(i=e-this.view.renderHeight,this.view.setScrollTop(i*Object(m.b)(t,0,1)+o)):(i=o+e,t=n+this.view.renderHeight,o<n&&t<=i||(o<n||t<=i&&e>=this.view.renderHeight?this.view.setScrollTop(o):t<=i&&this.view.setScrollTop(i-this.view.renderHeight)))}getRelativeTop(e){if(e<0||e>=this.length)throw new v(this.user,"Invalid index "+e);var t=this.view.getScrollTop(),i=this.view.elementTop(e);e=this.view.elementHeight(e);return i<t||i+e>t+this.view.renderHeight?null:(e-=this.view.renderHeight,Math.abs((t-i)/e))}getHTMLElement(){return this.view.domNode}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(e=>this.view.element(e)),browserEvent:t}}_onFocusChange(){var e=this.focus.get();this.view.domNode.classList.toggle("element-focused",0<e.length),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e,t=this.focus.get();if(0<t.length){let i;null!=(e=this.accessibilityProvider)&&e.getActiveDescendantId&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){var e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",1<e.length)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}i([c.a],q.prototype,"onDidChangeFocus",null),i([c.a],q.prototype,"onDidChangeSelection",null),i([c.a],q.prototype,"onContextMenu",null),i([c.a],q.prototype,"onKeyDown",null),i([c.a],q.prototype,"onDidFocus",null)},7367:function(e,t,i){"use strict";i.r(t),i.d(t,"htmlLanguageService",(function(){return c})),i.d(t,"htmlDefaults",(function(){return u})),i.d(t,"handlebarLanguageService",(function(){return g})),i.d(t,"handlebarDefaults",(function(){return p})),i.d(t,"razorLanguageService",(function(){return m})),i.d(t,"razorDefaults",(function(){return f})),i.d(t,"registerHTMLLanguageService",(function(){return _})),i("33f9");var n=i("3502"),o=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},r=function(e,t){var i,n,o,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){var l=[s,a];if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,(l=o?[2&l[0],o.value]:l)[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,n=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(!(o=0<(o=r.trys).length&&o[o.length-1])&&(6===l[0]||2===l[0])){r=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3]))r.label=l[1];else if(6===l[0]&&r.label<o[1])r.label=o[1],o=l;else{if(!(o&&r.label<o[2])){o[2]&&r.ops.pop(),r.trys.pop();continue}r.label=o[2],r.ops.push(l)}}l=t.call(e,r)}catch(a){l=[6,a],n=0}finally{i=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},s=(Object.defineProperty(a.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),a.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},a.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},a);function a(e,t,i){this._onDidChange=new n.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}var l={format:{tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},suggest:{},data:{useDefaultDataProvider:!0}};function d(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===h,documentFormattingEdits:e===h,documentRangeFormattingEdits:e===h}}var h="html",c=(t="handlebars",_(h,l,d(h))),u=c.defaults,g=_(t,l,d(t)),p=g.defaults,m=_("razor",l,d("razor")),f=m.defaults;function _(e,t,a){var h,c=this,u=(void 0===a&&(a=d(e)),new s(e,t=void 0===t?l:t,a)),g=n.languages.onLanguage(e,(function(){return o(c,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,i.e("chunk-1e2736cd").then(i.bind(null,"fa5b"))];case 1:return h=e.sent().setupMode(u),[2]}}))}))}));return{defaults:u,dispose:function(){g.dispose(),null!=h&&h.dispose(),h=void 0}}}n.languages.html={htmlDefaults:u,razorDefaults:f,handlebarDefaults:p,htmlLanguageService:c,handlebarLanguageService:g,razorLanguageService:m,registerHTMLLanguageService:_}},"73d3":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return i.e("chunk-2d0bff92").then(i.bind(null,"4099"))}})},7416:function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return a}));var n=i("3742");class o{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){var i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(!o._equals(e[n],t[n]))return!1;return!0}static extractWrapped(e,t,i){if(0===e.length)return e;var n=t+1,r=i+1,s=i-t,a=[];let l=0;for(const d of e)d.endColumn<=n||d.startColumn>=r||(a[l++]=new o(Math.max(1,d.startColumn-n+1),Math.min(1+s,d.endColumn-n+1),d.className,d.type));return a}static filter(e,t,i,n){if(0===e.length)return[];let r=[],s=0;for(let h=0,c=e.length;h<c;h++){var a,l=e[h],d=l.range;d.endLineNumber<t||d.startLineNumber>t||d.isEmpty()&&(0===l.type||3===l.type)||(a=d.startLineNumber===t?d.startColumn:i,d=d.endLineNumber===t?d.endColumn:n,r[s++]=new o(a,d,l.inlineClassName,l.type))}return r}static _typeCompare(e,t){var i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){var i;return e.startColumn!==t.startColumn?e.startColumn-t.startColumn:e.endColumn!==t.endColumn?e.endColumn-t.endColumn:0!==(i=o._typeCompare(e.type,t.type))?i:e.className!==t.className?e.className<t.className?-1:1:0}}class r{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.className=i,this.metadata=n}}class s{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let i=0,n=e.length;i<n;i++)t|=e[i];return t}consumeLowerThan(e,t,i){for(;0<this.count&&this.stopOffsets[0]<e;){let e=0;for(;e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1];)e++;i.push(new r(t,this.stopOffsets[e],this.classNames.join(" "),s._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1}return 0<this.count&&t<e&&(i.push(new r(t,e-1,this.classNames.join(" "),s._metadata(this.metadata))),t=e),t}insert(e,t,i){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(i);else for(let n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];var i=[],o=new s;let r=0;for(let s=0,u=t.length;s<u;s++){var a=t[s];let u=a.startColumn,g=a.endColumn;var l,d=a.className,h=(a=1===a.type?2:2===a.type?4:0,1<u&&(l=e.charCodeAt(u-2),n.E(l))&&u--,1<g&&(l=e.charCodeAt(g-2),n.E(l))&&g--,u-1),c=g-2;r=o.consumeLowerThan(h,r,i),0===o.count&&(r=h),o.insert(c,d,a)}return o.consumeLowerThan(1073741824,r,i),i}}},7457:function(e,t,i){},"747f":function(e,t,i){"use strict";i.r(t),i.d(t,"DuplicateSelectionAction",(function(){return x})),i.d(t,"AbstractSortLinesAction",(function(){return D})),i.d(t,"SortLinesAscendingAction",(function(){return N})),i.d(t,"SortLinesDescendingAction",(function(){return O})),i.d(t,"TrimTrailingWhitespaceAction",(function(){return E})),i.d(t,"DeleteLinesAction",(function(){return I})),i.d(t,"IndentLinesAction",(function(){return M})),i.d(t,"InsertLineBeforeAction",(function(){return A})),i.d(t,"InsertLineAfterAction",(function(){return R})),i.d(t,"AbstractDeleteAllToBoundaryAction",(function(){return P})),i.d(t,"DeleteAllLeftAction",(function(){return F})),i.d(t,"DeleteAllRightAction",(function(){return B})),i.d(t,"JoinLinesAction",(function(){return j})),i.d(t,"TransposeAction",(function(){return W})),i.d(t,"AbstractCaseAction",(function(){return V})),i.d(t,"UpperCaseAction",(function(){return H})),i.d(t,"LowerCaseAction",(function(){return z})),i.d(t,"TitleCaseAction",(function(){return U})),i.d(t,"SnakeCaseAction",(function(){return q}));var n=i("dff7"),o=i("fe45"),r=i("d585"),s=(t=i("b2cc"),i("2c29")),a=i("3742"),l=i("d3f4"),d=i("6a89");class h{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){var i=function(e,t){t.sort((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber);for(let a=t.length-2;0<=a;a--)t[a].lineNumber===t[a+1].lineNumber&&t.splice(a,1);let i=[],n=0,o=0,r=t.length;for(let u=1,g=e.getLineCount();u<=g;u++){var s=e.getLineContent(u),h=s.length+1;let g=0;if(!(o<r&&t[o].lineNumber===u&&(g=t[o].column,o++,g===h))&&0!==s.length){var c=a.I(s);let e=0;if(-1===c)e=1;else{if(c===s.length-1)continue;e=c+2}e=Math.max(g,e),i[n++]=l.a.delete(new d.a(u,e,u,h))}}return i}(e,this._cursors);for(let o=0,r=i.length;o<r;o++){var n=i[o];t.addEditOperation(n.range,n.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}var c=i("191f"),u=i("7061"),g=i("8025"),p=i("c101");class m{constructor(e,t,i){this._selection=e,this._isCopyingDown=t,this._noop=i||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let i=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._endLineNumberDelta=1,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));var n=[];for(let r=i.startLineNumber;r<=i.endLineNumber;r++)n.push(e.getLineContent(r));var o=n.join("\n");""===o&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new d.a(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber+1,1),i.endLineNumber===e.getLineCount()?"":"\n"):this._isCopyingDown?t.addEditOperation(new d.a(i.startLineNumber,1,i.startLineNumber,1),o+"\n"):t.addEditOperation(new d.a(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+o),this._selectionId=t.trackSelection(i),this._selectionDirection=this._selection.getDirection()}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=i.startLineNumber,t=i.startColumn,n=i.endLineNumber,o=i.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(n+=this._endLineNumberDelta,o=1),i=g.a.createWithDirection(e,t,n,o,this._selectionDirection)}return i}}var f=i("ccde"),_=i("2837"),b=i("70cb"),v=i("580d");class C{constructor(e,t,i){this._selection=e,this._isMovingDown=t,this._autoIndent=i,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){var i=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===i)this._selectionId=t.trackSelection(this._selection);else if(this._isMovingDown||1!==this._selection.startLineNumber){this._moveEndPositionDown=!1;let h=this._selection;h.startLineNumber<h.endLineNumber&&1===h.endColumn&&(this._moveEndPositionDown=!0,h=h.setEndPosition(h.endLineNumber-1,e.getLineMaxColumn(h.endLineNumber-1)));var{tabSize:i,indentSize:n,insertSpaces:o}=e.getOptions(),n=this.buildIndentConverter(i,n,o),r={getLineTokens:t=>e.getLineTokens(t),getLanguageIdentifier:()=>e.getLanguageIdentifier(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i),getLineContent:null};if(h.startLineNumber===h.endLineNumber&&1===e.getLineMaxColumn(h.startLineNumber)){var s=h.startLineNumber,l=this._isMovingDown?s+1:s-1;1===e.getLineMaxColumn(l)?t.addEditOperation(new d.a(1,1,1,1),null):(t.addEditOperation(new d.a(s,1,s,1),e.getLineContent(l)),t.addEditOperation(new d.a(l,1,l,e.getLineMaxColumn(l)),null)),h=new g.a(l,1,l,1)}else{let c,u;if(this._isMovingDown){c=h.endLineNumber+1,u=e.getLineContent(c),t.addEditOperation(new d.a(c-1,e.getLineMaxColumn(c-1),c,e.getLineMaxColumn(c)),null);let g=u;this.shouldAutoIndent(e,h)?(null!==(s=this.matchEnterRule(e,n,i,c,h.startLineNumber-1))?(l=a.x(e.getLineContent(c)),s+=v.b(l,i),l=v.a(s,i,o),g=l+this.trimLeft(u)):(r.getLineContent=t=>t===h.startLineNumber?e.getLineContent(c):e.getLineContent(t),null!==(s=b.a.getGoodIndentForLine(this._autoIndent,r,e.getLanguageIdAtPosition(c,1),h.startLineNumber,n))&&(l=a.x(e.getLineContent(c)),(s=v.b(s,i))!==v.b(l,i))&&(l=v.a(s,i,o),g=l+this.trimLeft(u))),t.addEditOperation(new d.a(h.startLineNumber,1,h.startLineNumber,1),g+"\n"),null!==(s=this.matchEnterRuleMovingDown(e,n,i,h.startLineNumber,c,g))?0!==s&&this.getIndentEditsOfMovingBlock(e,t,h,i,o,s):(r.getLineContent=t=>t===h.startLineNumber?g:t>=h.startLineNumber+1&&t<=h.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t),null!==(l=b.a.getGoodIndentForLine(this._autoIndent,r,e.getLanguageIdAtPosition(c,1),h.startLineNumber+1,n))&&(s=a.x(e.getLineContent(h.startLineNumber)),(l=v.b(l,i))!==(s=v.b(s,i)))&&this.getIndentEditsOfMovingBlock(e,t,h,i,o,l-s))):t.addEditOperation(new d.a(h.startLineNumber,1,h.startLineNumber,1),g+"\n")}else c=h.startLineNumber-1,u=e.getLineContent(c),t.addEditOperation(new d.a(c,1,c+1,1),null),t.addEditOperation(new d.a(h.endLineNumber,e.getLineMaxColumn(h.endLineNumber),h.endLineNumber,e.getLineMaxColumn(h.endLineNumber)),"\n"+u),this.shouldAutoIndent(e,h)&&(r.getLineContent=t=>t===c?e.getLineContent(h.startLineNumber):e.getLineContent(t),null!==(l=this.matchEnterRule(e,n,i,h.startLineNumber,h.startLineNumber-2))?0!==l&&this.getIndentEditsOfMovingBlock(e,t,h,i,o,l):null!==(s=b.a.getGoodIndentForLine(this._autoIndent,r,e.getLanguageIdAtPosition(h.startLineNumber,1),c,n))&&(l=a.x(e.getLineContent(h.startLineNumber)),(r=v.b(s,i))!==(n=v.b(l,i)))&&this.getIndentEditsOfMovingBlock(e,t,h,i,o,r-n))}this._selectionId=t.trackSelection(h)}else this._selectionId=t.trackSelection(this._selection)}buildIndentConverter(e,t,i){return{shiftIndent:n=>f.a.shiftIndent(n,n.length+1,e,t,i),unshiftIndent:n=>f.a.unshiftIndent(n,n.length+1,e,t,i)}}parseEnterResult(e,t,i,n,o){if(o){let r=o.indentation;if(o.indentAction===_.b.None||o.indentAction===_.b.Indent?r=o.indentation+o.appendText:o.indentAction===_.b.IndentOutdent?r=o.indentation:o.indentAction===_.b.Outdent&&(r=t.unshiftIndent(o.indentation)+o.appendText),o=e.getLineContent(n),0<=this.trimLeft(o).indexOf(this.trimLeft(r))){o=a.x(e.getLineContent(n));let s=a.x(r);return e=b.a.getIndentMetadata(e,n),null!==e&&2&e&&(s=t.unshiftIndent(s)),n=v.b(s,i),n-v.b(o,i)}}return null}matchEnterRuleMovingDown(e,t,i,n,o,r){if(0<=a.I(r))return r=e.getLineMaxColumn(o),o=b.a.getEnterAction(this._autoIndent,e,new d.a(o,r,o,r)),this.parseEnterResult(e,t,i,n,o);{let l=n-1;for(;1<=l;){var s=e.getLineContent(l);if(0<=a.I(s))break;l--}return l<1||n>e.getLineCount()?null:(r=e.getLineMaxColumn(l),o=b.a.getEnterAction(this._autoIndent,e,new d.a(l,r,l,r)),this.parseEnterResult(e,t,i,n,o))}}matchEnterRule(e,t,i,n,o,r){let s=o;for(;1<=s;){let t;if(t=s===o&&void 0!==r?r:e.getLineContent(s),0<=a.I(t))break;s--}var l;return s<1||n>e.getLineCount()?null:(l=e.getLineMaxColumn(s),l=b.a.getEnterAction(this._autoIndent,e,new d.a(s,l,s,l)),this.parseEnterResult(e,t,i,n,l))}trimLeft(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){var i;return!(this._autoIndent<4||!e.isCheapToTokenize(t.startLineNumber)||(i=e.getLanguageIdAtPosition(t.startLineNumber,1))!==e.getLanguageIdAtPosition(t.endLineNumber,1)||null===b.a.getIndentRulesSupport(i))}getIndentEditsOfMovingBlock(e,t,i,n,o,r){for(let h=i.startLineNumber;h<=i.endLineNumber;h++){var s=e.getLineContent(h),l=(s=a.x(s),v.b(s,n));l=v.a(l+r,n,o);l!==s&&(t.addEditOperation(new d.a(h,1,h,s.length+1),l),h===i.endLineNumber)&&i.endColumn<=s.length+1&&""===l&&(this._moveEndLineSelectionShrink=!0)}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber<i.endLineNumber?i.setEndPosition(i.endLineNumber,2):i}}class w{constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}static getCollator(){return w._COLLATOR||(w._COLLATOR=new Intl.Collator),w._COLLATOR}getEditOperations(e,t){e=function(e,t,i){return t=y(e,t,i),t?l.a.replace(new d.a(t.startLineNumber,1,t.endLineNumber,e.getLineMaxColumn(t.endLineNumber)),t.after.join("\n")):null}(e,this.selection,this.descending),e&&t.addEditOperation(e.range,e.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null!==e){var n=y(e,t,i);if(n)for(let e=0,t=n.before.length;e<t;e++)if(n.before[e]!==n.after[e])return!0}return!1}}function y(e,t,i){var n=t.startLineNumber;let o=t.endLineNumber;if(1===t.endColumn&&o--,n>=o)return null;var r=[];for(let a=n;a<=o;a++)r.push(e.getLineContent(a));let s=r.slice(0);return s.sort(w.getCollator().compare),!0===i&&(s=s.reverse()),{startLineNumber:n,endLineNumber:o,before:r,after:s}}w._COLLATOR=null;var S=i("7e32");class L extends t.b{constructor(e,t){super(t),this.down=e}run(e,t){if(t.hasModel()){var i=t.getSelections().map((e,t)=>({selection:e,index:t,ignore:!1}));i.sort((e,t)=>d.a.compareRangesUsingStarts(e.selection,t.selection));let e=i[0];for(let t=1;t<i.length;t++){var n=i[t];e.selection.endLineNumber===n.selection.startLineNumber&&(e.index<n.index?n.ignore=!0:(e.ignore=!0,e=n))}var o=[];for(const t of i)o.push(new m(t.selection,this.down,t.ignore));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}}class x extends t.b{constructor(){super({id:"editor.action.duplicateSelection",label:n.a("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:p.a.writable,menuOpts:{menuId:S.b.MenubarSelectionMenu,group:"2_line",title:n.a({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,i){if(t.hasModel()){var n,o=[],r=t.getSelections(),a=t.getModel();for(const e of r)e.isEmpty()?o.push(new m(e,!0)):(n=new g.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn),o.push(new s.c(n,a.getValueInRange(e))));t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}}class k extends t.b{constructor(e,t){super(t),this.down=e}run(e,t){var i=[],n=t.getSelections()||[],o=t.getOption(9);for(const r of n)i.push(new C(r,this.down,o));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class D extends t.b{constructor(e,t){super(t),this.descending=e}run(e,t){var i=t.getSelections()||[];for(const o of i)if(!w.canRun(t.getModel(),o,this.descending))return;var n=[];for(let o=0,r=i.length;o<r;o++)n[o]=new w(i[o],this.descending);t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class N extends D{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:n.a("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:p.a.writable})}}class O extends D{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:n.a("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:p.a.writable})}}class E extends t.b{constructor(){super({id:E.ID,label:n.a("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:Object(o.a)(2089,2102),weight:100}})}run(e,t,i){let n=[];"auto-save"===i.reason&&(n=(t.getSelections()||[]).map(e=>new u.a(e.positionLineNumber,e.positionColumn)));i=t.getSelection();null!==i&&(i=new h(i,n),t.pushUndoStop(),t.executeCommands(this.id,[i]),t.pushUndoStop())}}E.ID="editor.action.trimTrailingWhitespace";class I extends t.b{constructor(){super({id:"editor.action.deleteLines",label:n.a("lines.delete","Delete Line"),alias:"Delete Line",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:3113,weight:100}})}run(e,t){if(t.hasModel()){var i=this._getLinesToRemove(t),n=t.getModel();if(1!==n.getLineCount()||1!==n.getLineMaxColumn(1)){let e=0;var o=[],r=[];for(let t=0,a=i.length;t<a;t++){var s=i[t];let a=s.startLineNumber,d=s.endLineNumber,h=1,c=n.getLineMaxColumn(d);d<n.getLineCount()?(d+=1,c=1):1<a&&(--a,h=n.getLineMaxColumn(a)),o.push(l.a.replace(new g.a(a,h,d,c),"")),r.push(new g.a(a-e,s.positionColumn,a-e,s.positionColumn)),e+=s.endLineNumber-s.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,o,r),t.pushUndoStop()}}}_getLinesToRemove(e){var t=e.getSelections().map(e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&--t,{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}}),i=(t.sort((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber),[]);let n=t[0];for(let o=1;o<t.length;o++)n.endLineNumber+1>=t[o].startLineNumber?n.endLineNumber=t[o].endLineNumber:(i.push(n),n=t[o]);return i.push(n),i}}class M extends t.b{constructor(){super({id:"editor.action.indentLines",label:n.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2137,weight:100}})}run(e,t){var i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.a.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class T extends t.b{constructor(){super({id:"editor.action.outdentLines",label:n.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2135,weight:100}})}run(e,t){r.CoreEditingCommands.Outdent.runEditorCommand(e,t,null)}}class A extends t.b{constructor(){super({id:"editor.action.insertLineBefore",label:n.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:3075,weight:100}})}run(e,t){var i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.a.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class R extends t.b{constructor(){super({id:"editor.action.insertLineAfter",label:n.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:2051,weight:100}})}run(e,t){var i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,c.a.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class P extends t.b{run(e,t){if(t.hasModel()){var i=t.getSelection(),n=this._getRangesToDelete(t),o=[];for(let e=0,t=n.length-1;e<t;e++){var r=n[e],s=n[e+1];null===d.a.intersectRanges(r,s)?o.push(r):n[e+1]=d.a.plusRange(r,s)}o.push(n[n.length-1]);i=this._getEndCursorState(i,o);var a=o.map(e=>l.a.replace(e,""));t.pushUndoStop(),t.executeEdits(this.id,a,i),t.pushUndoStop()}}}class F extends P{constructor(){super({id:"deleteAllLeft",label:n.a("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null,n=[],o=0;return t.forEach(t=>{let r;var s;r=1===t.endColumn&&0<o?(s=t.startLineNumber-o,new g.a(s,t.startColumn,s,t.startColumn)):new g.a(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn),o+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=r:n.push(r)}),i&&n.unshift(i),n}_getRangesToDelete(e){var t=e.getSelections();if(null===t)return[];let i=t,n=e.getModel();return null===n?[]:(i.sort(d.a.compareRangesUsingStarts),i=i.map(e=>{var t,i;return e.isEmpty()?1===e.startColumn?(t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:n.getLineContent(t).length+1,new d.a(t,i,e.startLineNumber,1)):new d.a(e.startLineNumber,1,e.startLineNumber,e.startColumn):new d.a(e.startLineNumber,1,e.endLineNumber,e.endColumn)}))}}class B extends P{constructor(){super({id:"deleteAllRight",label:n.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:p.a.writable,kbOpts:{kbExpr:p.a.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;var n=[];for(let s=0,a=t.length;s<a;s++){var o=t[s],r=new g.a(+o.startLineNumber,o.startColumn,+o.startLineNumber,o.startColumn);o.intersectRanges(e)?i=r:n.push(r)}return i&&n.unshift(i),n}_getRangesToDelete(e){let t=e.getModel();return null===t||null===(e=e.getSelections())?[]:((e=e.map(e=>{var i;return e.isEmpty()?(i=t.getLineMaxColumn(e.startLineNumber),e.startColumn===i?new d.a(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new d.a(e.startLineNumber,e.startColumn,e.startLineNumber,i)):e})).sort(d.a.compareRangesUsingStarts),e)}}class j extends t.b{constructor(){super({id:"editor.action.joinLines",label:n.a("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){var i=t.getSelections();if(null!==i){let e=t.getSelection();if(null!==e){i.sort(d.a.compareRangesUsingStarts);let m=[];i=i.reduce((t,i)=>t.isEmpty()?t.endLineNumber===i.startLineNumber?(e.equalsSelection(t)&&(e=i),i):i.startLineNumber>t.endLineNumber+1?(m.push(t),i):new g.a(t.startLineNumber,t.startColumn,i.endLineNumber,i.endColumn):i.startLineNumber>t.endLineNumber?(m.push(t),i):new g.a(t.startLineNumber,t.startColumn,i.endLineNumber,i.endColumn));var n=(m.push(i),t.getModel());if(null!==n){var o=[],r=[];let i=e,f=0;for(let t=0,_=m.length;t<_;t++){var s=m[t],a=s.startLineNumber;let _,b,v=0;var h=n.getLineContent(s.endLineNumber).length-s.endColumn;b=s.isEmpty()||s.startLineNumber===s.endLineNumber?(p=s.getStartPosition()).lineNumber<n.getLineCount()?(_=a+1,n.getLineMaxColumn(_)):(_=p.lineNumber,n.getLineMaxColumn(p.lineNumber)):(_=s.endLineNumber,n.getLineMaxColumn(_));let C=n.getLineContent(a);for(let e=a+1;e<=_;e++){var c=n.getLineContent(e),u=n.getLineFirstNonWhitespaceColumn(e);if(1<=u){let e=!0;!(e=""!==C&&e)||" "!==C.charAt(C.length-1)&&"\t"!==C.charAt(C.length-1)||(e=!1,C=C.replace(/[\s\uFEFF\xA0]+$/g," ")),c=c.substr(u-1),C+=(e?" ":"")+c,v=e?c.length+1:c.length}else v=0}var p=new d.a(a,1,_,b);if(!p.isEmpty()){let t;t=s.isEmpty()?(o.push(l.a.replace(p,C)),new g.a(p.startLineNumber-f,C.length-v+1,a-f,C.length-v+1)):s.startLineNumber===s.endLineNumber?(o.push(l.a.replace(p,C)),new g.a(s.startLineNumber-f,s.startColumn,s.endLineNumber-f,s.endColumn)):(o.push(l.a.replace(p,C)),new g.a(s.startLineNumber-f,s.startColumn,s.startLineNumber-f,C.length-h)),null!==d.a.intersectRanges(p,e)?i=t:r.push(t)}f+=p.endLineNumber-p.startLineNumber}r.unshift(i),t.pushUndoStop(),t.executeEdits(this.id,o,r),t.pushUndoStop()}}}}}class W extends t.b{constructor(){super({id:"editor.action.transpose",label:n.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:p.a.writable})}run(e,t){var i=t.getSelections();if(null!==i){var n=t.getModel();if(null!==n){var o=[];for(let e=0,t=i.length;e<t;e++){var r,a,l=i[e];l.isEmpty()&&(l=l.getStartPosition(),r=n.getLineMaxColumn(l.lineNumber),l.column>=r?l.lineNumber!==n.getLineCount()&&(r=new d.a(l.lineNumber,Math.max(1,l.column-1),l.lineNumber+1,1),r=n.getValueInRange(r).split("").reverse().join(""),o.push(new s.a(new g.a(l.lineNumber,Math.max(1,l.column-1),l.lineNumber+1,1),r))):(r=new d.a(l.lineNumber,Math.max(1,l.column-1),l.lineNumber,l.column+1),a=n.getValueInRange(r).split("").reverse().join(""),o.push(new s.b(r,a,new g.a(l.lineNumber,l.column+1,l.lineNumber,l.column+1)))))}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}}}class V extends t.b{run(e,t){var i=t.getSelections();if(null!==i){var n=t.getModel();if(null!==n){var o,r,s=t.getOption(116),a=[];for(const e of i)e.isEmpty()?(r=e.getStartPosition(),(o=t.getConfiguredWordAtPosition(r))&&(r=new d.a(r.lineNumber,o.startColumn,r.lineNumber,o.endColumn),o=n.getValueInRange(r),a.push(l.a.replace(r,this._modifyText(o,s))))):(r=n.getValueInRange(e),a.push(l.a.replace(e,this._modifyText(r,s))));t.pushUndoStop(),t.executeEdits(this.id,a),t.pushUndoStop()}}}}class H extends V{constructor(){super({id:"editor.action.transformToUppercase",label:n.a("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:p.a.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}class z extends V{constructor(){super({id:"editor.action.transformToLowercase",label:n.a("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:p.a.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}class U extends V{constructor(){super({id:"editor.action.transformToTitlecase",label:n.a("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:p.a.writable})}_modifyText(e,t){var i=("\r\n\t "+t).split("");let n="",o=!0;for(let s=0;s<e.length;s++){var r=e[s];0<=i.indexOf(r)?(o=!0,n+=r):o?(o=!1,n+=r.toLocaleUpperCase()):n+=r.toLocaleLowerCase()}return n}}class K{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(t){}}return this._actual}isSupported(){return null!==this.get()}}class q extends V{constructor(){super({id:"editor.action.transformToSnakecase",label:n.a("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:p.a.writable})}_modifyText(e,t){var i=q.regExp1.get(),n=q.regExp2.get();return i&&n?e.replace(i,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase():e}}q.regExp1=new K("(\\p{Ll})(\\p{Lu})","gmu"),q.regExp2=new K("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu"),Object(t.j)(class extends L{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:n.a("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:S.b.MenubarSelectionMenu,group:"2_line",title:n.a({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),Object(t.j)(class extends L{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:n.a("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:S.b.MenubarSelectionMenu,group:"2_line",title:n.a({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),Object(t.j)(x),Object(t.j)(class extends k{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:n.a("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:S.b.MenubarSelectionMenu,group:"2_line",title:n.a({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),Object(t.j)(class extends k{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:n.a("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:p.a.writable,kbOpts:{kbExpr:p.a.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:S.b.MenubarSelectionMenu,group:"2_line",title:n.a({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),Object(t.j)(N),Object(t.j)(O),Object(t.j)(E),Object(t.j)(I),Object(t.j)(M),Object(t.j)(T),Object(t.j)(A),Object(t.j)(R),Object(t.j)(F),Object(t.j)(B),Object(t.j)(j),Object(t.j)(W),Object(t.j)(H),Object(t.j)(z),Object(t.j)(U),q.regExp1.isSupported()&&q.regExp2.isSupported()&&Object(t.j)(q)},"74ce":function(e,t,i){"use strict";i.d(t,"c",(function(){return m})),i.d(t,"d",(function(){return f})),i.d(t,"b",(function(){return _})),i.d(t,"a",(function(){return v}));var n=i("2504"),o=i("fdcc"),r=i("6d8e"),s=i("b707"),a=i("1b69"),l=i("9e74"),d=i("ef8e9"),h=i("1e93"),c=i("30db");function u(e){var t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t=(t+=1)+3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const n of e.deltas)t[i++]=n.start,t[i++]=n.deleteCount,n.data?(t[i++]=n.data.length,t.set(n.data,i),i+=n.data.length):t[i++]=0}if(e=t,e=new Uint8Array(e.buffer,e.byteOffset,4*e.length),!c.e()){var n=e;for(let e=0,t=n.length;e<t;e+=4){var o=n[e+0],r=n[e+1],s=n[e+2],a=n[e+3];n[e+0]=a,n[e+1]=s,n[e+2]=r,n[e+3]=o}}return h.a.wrap(e)}var g=i("6a89"),p=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function m(e){return e&&!!e.data}function f(e){return e&&Array.isArray(e.edits)}function _(e,t,i){var n=b(e);return n?{provider:n,request:Promise.resolve(n.provideDocumentSemanticTokens(e,t,i))}:null}function b(e){return e=s.l.ordered(e),0<e.length?e[0]:null}function v(e){return e=s.k.ordered(e),0<e.length?e[0]:null}l.a.registerCommand("_provideDocumentSemanticTokensLegend",(e,...t)=>p(void 0,void 0,void 0,(function*(){var[i]=t,n=(Object(d.c)(i instanceof r.a),e.get(a.a).getModel(i));if(n)return(n=b(n))?n.getLegend():e.get(l.b).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)}))),l.a.registerCommand("_provideDocumentSemanticTokens",(e,...t)=>p(void 0,void 0,void 0,(function*(){var[i]=t,s=(Object(d.c)(i instanceof r.a),e.get(a.a).getModel(i));if(s){var h=_(s,null,n.a.None);if(!h)return e.get(l.b).executeCommand("_provideDocumentRangeSemanticTokens",i,s.getFullModelRange());var{provider:i,request:s}=h;let r;try{r=yield s}catch(t){return void Object(o.g)(t)}return r&&m(r)?(h=u({id:0,type:"full",data:r.data}),r.resultId&&i.releaseDocumentSemanticTokens(r.resultId),h):void 0}}))),l.a.registerCommand("_provideDocumentRangeSemanticTokensLegend",(e,...t)=>p(void 0,void 0,void 0,(function*(){var[i]=t,i=(Object(d.c)(i instanceof r.a),e.get(a.a).getModel(i));if(i&&(i=v(i),i))return i.getLegend()}))),l.a.registerCommand("_provideDocumentRangeSemanticTokens",(e,...t)=>p(void 0,void 0,void 0,(function*(){var[i,s]=t,i=(Object(d.c)(i instanceof r.a),Object(d.c)(g.a.isIRange(s)),e.get(a.a).getModel(i));if(i){var l=v(i);if(l){let t;try{t=yield l.provideDocumentRangeSemanticTokens(i,g.a.lift(s),n.a.None)}catch(e){return void Object(o.g)(e)}if(t&&m(t))return u({id:0,type:"full",data:t.data})}}})))},7605:function(e,t,i){"use strict";i.r(t),i.d(t,"FoldingController",(function(){return U})),i.d(t,"foldBackgroundBackground",(function(){return de})),i.d(t,"editorFoldForeground",(function(){return he})),i("0a33");var n=i("dff7"),o=i("ef8e9"),r=i("3742"),s=i("5fe7"),a=i("fe45"),l=i("a666"),d=i("b2cc"),h=i("308f");const c=16777215;class u{constructor(e,t,i){if(e.length!==t.length||65535<e.length)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let o=[];var e=(e,t)=>{var i=o[o.length-1];return this.getStartLineNumber(i)<=e&&this.getEndLineNumber(i)>=t};for(let r=0,s=this._startIndexes.length;r<s;r++){var t=this._startIndexes[r],i=this._endIndexes[r];if(t>c||i>c)throw new Error("startLineNumber or endLineNumber must not exceed "+c);for(;0<o.length&&!e(t,i);)o.pop();var n=0<o.length?o[o.length-1]:-1;o.push(r),this._startIndexes[r]=t+((255&n)<<24),this._endIndexes[r]=i+((65280&n)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&c}getEndLineNumber(e){return this._endIndexes[e]&c}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return 0!=(this._collapseStates[e/32|0]&1<<e%32)}setCollapsed(e,t){var i=e/32|0,n=(e=e%32,this._collapseStates[i]);this._collapseStates[i]=t?n|1<<e:n&~(1<<e)}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let n=0;n<this._types.length;n++)this._types[n]===e&&(this.setCollapsed(n,t),i=!0);return i}toRegion(e){return new g(this,e)}getParentIndex(e){return this.ensureParentIndices(),e=((4278190080&this._startIndexes[e])>>>24)+((4278190080&this._endIndexes[e])>>>16),65535==e?-1:e}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t<i;){var n=Math.floor((t+i)/2);e<this.getStartLineNumber(n)?i=n:t=n+1}return t-1}findRange(e){let t=this.findIndex(e);if(0<=t){if(e<=this.getEndLineNumber(t))return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){var e=[];for(let t=0;t<this.length;t++)e[t]=`[${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/`+this.getEndLineNumber(t);return e.join(", ")}}class g{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}class p{constructor(e,t){this._updateEventEmitter=new h.b,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new u(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}get regions(){return this._regions}get textModel(){return this._textModel}get isInitialized(){return this._isInitialized}toggleCollapseState(e){if(e.length){e=e.sort((e,t)=>e.regionIndex-t.regionIndex);const t={};this._decorationProvider.changeDecorations(i=>{let n=0,o=-1,r=-1;var s,a=e=>{for(;n<e;){var t=this._regions.getEndLineNumber(n),s=this._regions.isCollapsed(n);t<=o&&i.changeDecorationOptions(this._editorDecorationIds[n],this._decorationProvider.getDecorationOption(s,t<=r)),s&&t>r&&(r=t),n++}};for(s of e){var l=s.regionIndex,d=this._editorDecorationIds[l];d&&!t[d]&&(t[d]=!0,a(l),d=!this._regions.isCollapsed(l),this._regions.setCollapsed(l,d),o=Math.max(o,this._regions.getEndLineNumber(l)))}a(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}}update(e,t=[]){let i=[],n=(e,i)=>{for(var n of t)if(e<n&&n<=i)return!0;return!1},o=-1;var r=(t,r)=>{var s=e.getStartLineNumber(t),a=e.getEndLineNumber(t);(r=r||e.isCollapsed(t))&&n(s,a)&&(r=!1),e.setCollapsed(t,r),t=this._textModel.getLineMaxColumn(s),s={startLineNumber:s,startColumn:Math.max(t-1,1),endLineNumber:s,endColumn:t};i.push({range:s,options:this._decorationProvider.getDecorationOption(r,a<=o)}),r&&a>o&&(o=a)};let s=0;var a=()=>{for(;s<this._regions.length;){var e=this._regions.isCollapsed(s);if(s++,e)return s-1}return-1};let l=0,d=a();for(;-1!==d&&l<e.length;){var h=this._textModel.getDecorationRange(this._editorDecorationIds[d]);if(h){var c=h.startLineNumber;if(h.startColumn===Math.max(h.endColumn-1,1)&&this._textModel.getLineMaxColumn(c)===h.endColumn)for(;l<e.length;){var u=e.getStartLineNumber(l);if(!(u<=c))break;r(l,c===u),l++}}d=a()}for(;l<e.length;)r(l,!1),l++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,i),this._regions=e,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})}getMemento(){var e,t,i=[];for(let n=0;n<this._regions.length;n++)this._regions.isCollapsed(n)&&(t=this._textModel.getDecorationRange(this._editorDecorationIds[n]))&&(e=t.startLineNumber,t=t.endLineNumber+this._regions.getEndLineNumber(n)-this._regions.getStartLineNumber(n),i.push({startLineNumber:e,endLineNumber:t}));if(0<i.length)return i}applyMemento(e){if(Array.isArray(e)){var t,i=[];for(t of e){var n=this.getRegionAtLine(t.startLineNumber);n&&!n.isCollapsed&&i.push(n)}this.toggleCollapseState(i)}}dispose(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])}getAllRegionsAtLine(e,t){var i=[];if(this._regions){let o=this._regions.findRange(e),r=1;for(;0<=o;){var n=this._regions.toRegion(o);t&&!t(n,r)||i.push(n),r++,o=n.parentIndex}}return i}getRegionAtLine(e){return this._regions&&(e=this._regions.findRange(e),0<=e)?this._regions.toRegion(e):null}getRegionsInside(e,t){var i=[],n=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){var r=[];for(let e=n,a=this._regions.length;e<a;e++){var s=this._regions.toRegion(e);if(!(this._regions.getStartLineNumber(e)<o))break;for(;0<r.length&&!s.containedBy(r[r.length-1]);)r.pop();r.push(s),t(s,r.length)&&i.push(s)}}else for(let l=n,d=this._regions.length;l<d;l++){var a=this._regions.toRegion(l);if(!(this._regions.getStartLineNumber(l)<o))break;t&&!t(a)||i.push(a)}return i}}function m(e,t,i=Number.MAX_VALUE,n){var o=[];if(n&&0<n.length)for(var r of n){r=e.getRegionAtLine(r);r&&(r.isCollapsed!==t&&o.push(r),1<i)&&(r=e.getRegionsInside(r,(e,n)=>e.isCollapsed!==t&&n<i),o.push(...r))}else n=e.getRegionsInside(null,(e,n)=>e.isCollapsed!==t&&n<i),o.push(...n);e.toggleCollapseState(o)}function f(e,t,i,n){var o,r=[];for(o of n){var s=e.getAllRegionsAtLine(o,(e,n)=>e.isCollapsed!==t&&n<=i);r.push(...s)}e.toggleCollapseState(r)}function _(e,t,i){let n=[];for(var o of i)n.push(e.getAllRegionsAtLine(o,void 0)[0]);i=e.getRegionsInside(null,e=>n.every(t=>!t.containedBy(e)&&!e.containedBy(t))&&e.isCollapsed!==t),e.toggleCollapseState(i)}function b(e,t,i){var n,o=e.textModel,r=e.regions,s=[];for(let a=r.length-1;0<=a;a--)i!==r.isCollapsed(a)&&(n=r.getStartLineNumber(a),t.test(o.getLineContent(n)))&&s.push(r.toRegion(a));e.toggleCollapseState(s)}function v(e,t,i){var n=e.regions,o=[];for(let r=n.length-1;0<=r;r--)i!==n.isCollapsed(r)&&t===n.getType(r)&&o.push(n.toRegion(r));e.toggleCollapseState(o)}var C=i("b57f"),w=(t=i("561a"),i("bf5b")),y=i("b7d0");const S=Object(w.b)("folding-expanded",t.b.chevronDown,Object(n.a)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),L=Object(w.b)("folding-collapsed",t.b.chevronRight,Object(n.a)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin."));class x{constructor(e){this.editor=e,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}getDecorationOption(e,t){return t?x.HIDDEN_RANGE_DECORATION:e?this.showFoldingHighlights?x.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:x.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?x.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:x.EXPANDED_VISUAL_DECORATION}deltaDecorations(e,t){return this.editor.deltaDecorations(e,t)}changeDecorations(e){return this.editor.changeDecorations(e)}}x.COLLAPSED_VISUAL_DECORATION=C.a.register({description:"folding-collapsed-visual-decoration",stickiness:1,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:y.d.asClassName(L)}),x.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=C.a.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:y.d.asClassName(L)}),x.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=C.a.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:y.d.asClassName(S)}),x.EXPANDED_VISUAL_DECORATION=C.a.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+y.d.asClassName(S)}),x.HIDDEN_RANGE_DECORATION=C.a.register({description:"folding-hidden-range-decoration",stickiness:1});var k=i("c101"),D=i("6a89"),N=i("e8e3");class O{constructor(e){this._updateEventEmitter=new h.b,this._foldingModel=e,this._foldingModelListener=e.onDidChange(e=>this.updateHiddenRanges()),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}updateHiddenRanges(){let e=!1;var t=[];let i=0,n=0,o=Number.MAX_VALUE,r=-1;for(var s,a,l=this._foldingModel.regions;i<l.length;i++)l.isCollapsed(i)&&(s=l.getStartLineNumber(i)+1,a=l.getEndLineNumber(i),o<=s&&a<=r||(!e&&n<this._hiddenRanges.length&&this._hiddenRanges[n].startLineNumber===s&&this._hiddenRanges[n].endLineNumber===a?(t.push(this._hiddenRanges[n]),n++):(e=!0,t.push(new D.a(s,1,a,1))),o=s,r=a));(e||n<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyMemento(e){if(!Array.isArray(e)||0===e.length)return!1;var t,i=[];for(t of e){if(!t.startLineNumber||!t.endLineNumber)return!1;i.push(new D.a(t.startLineNumber+1,1,t.endLineNumber,1))}return this.applyHiddenRanges(i),!0}getMemento(){return this._hiddenRanges.map(e=>({startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}))}applyHiddenRanges(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)}hasRanges(){return 0<this._hiddenRanges.length}isHidden(e){return null!==E(this._hiddenRanges,e)}adjustSelections(e){let t=!1;var i=this._foldingModel.textModel;let n=null;var o=e=>{var t,i;return(n=n&&(t=e,i=n,t>=i.startLineNumber)&&t<=i.endLineNumber?n:E(this._hiddenRanges,e))?n.startLineNumber-1:null};for(let s=0,a=e.length;s<a;s++){let n=e[s];var r=o(n.startLineNumber);r=(r&&(n=n.setStartPosition(r,i.getLineMaxColumn(r)),t=!0),o(n.endLineNumber));r&&(n=n.setEndPosition(r,i.getLineMaxColumn(r)),t=!0),e[s]=n}return t}dispose(){0<this.hiddenRanges.length&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function E(e,t){var i=Object(N.i)(e,e=>t<e.startLineNumber)-1;return 0<=i&&e[i].endLineNumber>=t?e[i]:null}var I=i("70cb");class M{constructor(e){this.editorModel=e,this.id="indent"}dispose(){}compute(e){var t=I.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),i=t&&!!t.offSide;t=t&&t.markers;return Promise.resolve(function(e,t,i,n=5e3){var o=e.getOptions().tabSize;let r=new T(n),s=void 0;i&&(s=new RegExp(`(${i.start.source})|(?:${i.end.source})`));var a=[];n=e.getLineCount()+1;a.push({indent:-1,endAbove:n,line:n});for(let h=e.getLineCount();0<h;h--){var l=e.getLineContent(h),d=C.b.computeIndentLevel(l,o);let i=a[a.length-1];if(-1===d)t&&(i.endAbove=h);else{let e;if(s&&(e=l.match(s))){if(!e[1]){a.push({indent:-2,endAbove:h,line:h});continue}{let e=a.length-1;for(;0<e&&-2!==a[e].indent;)e--;if(0<e){a.length=e+1,i=a[e],r.insertFirst(h,i.line,d),i.line=h,i.indent=d,i.endAbove=h;continue}}}if(i.indent>d){for(;a.pop(),(i=a[a.length-1]).indent>d;);l=i.endAbove-1,1<=l-h&&r.insertFirst(h,l,d)}i.indent===d?i.endAbove=h:a.push({indent:d,endAbove:h,line:h})}}return r.toIndentRanges(e)}(this.editorModel,i,t))}}class T{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){var n;e>c||t>c||(n=this._length,this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1))}toIndentRanges(e){if(this._length<=this._foldingRangesLimit){var t=new Uint32Array(this._length),i=new Uint32Array(this._length);for(let e=this._length-1,n=0;0<=e;e--,n++)t[n]=this._startIndexes[e],i[n]=this._endIndexes[e];return new u(t,i)}{let t=0,i=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){var n=this._indentOccurrences[e];if(n){if(n+t>this._foldingRangesLimit){i=e;break}t+=n}}var o=e.getOptions().tabSize,r=new Uint32Array(this._foldingRangesLimit),s=new Uint32Array(this._foldingRangesLimit);for(let n=this._length-1,d=0;0<=n;n--){var a=this._startIndexes[n],l=e.getLineContent(a);l=C.b.computeIndentLevel(l,o);(l<i||l===i&&t++<this._foldingRangesLimit)&&(r[d]=a,s[d]=this._endIndexes[n],d++)}return new u(r,s)}}}var A=i("b707"),R=i("fdcc");const P={};class F{constructor(e,t,i,n=5e3){this.editorModel=e,this.providers=t,this.limit=n,this.id="syntax";for(const o of t)"function"==typeof o.onDidChange&&(this.disposables||(this.disposables=new l.b),this.disposables.add(o.onDidChange(i)))}compute(e){return function(e,t,i){let n=null,o=e.map((e,o)=>Promise.resolve(e.provideFoldingRanges(t,P,i)).then(e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(n)||(n=[]);var r,s=t.getLineCount();for(r of e)0<r.start&&r.end>r.start&&r.end<=s&&n.push({start:r.start,end:r.end,rank:o,kind:r.kind})}},R.g));return Promise.all(o).then(e=>n)}(this.providers,this.editorModel,e).then(e=>e?j(e,this.limit):null)}dispose(){var e;null!=(e=this.disposables)&&e.dispose()}}class B{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,n){var o;e>c||t>c||(o=this._length,this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=n,this._types[o]=i,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1))}toIndentRanges(){if(this._length<=this._foldingRangesLimit){var e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;i<this._length;i++)e[i]=this._startIndexes[i],t[i]=this._endIndexes[i];return new u(e,t,this._types)}{let e=0,t=this._nestingLevelCounts.length;for(let n=0;n<this._nestingLevelCounts.length;n++){var i=this._nestingLevelCounts[n];if(i){if(i+e>this._foldingRangesLimit){t=n;break}e+=i}}var n=new Uint32Array(this._foldingRangesLimit),o=new Uint32Array(this._foldingRangesLimit),r=[];for(let i=0,a=0;i<this._length;i++){var s=this._nestingLevels[i];(s<t||s===t&&e++<this._foldingRangesLimit)&&(n[a]=this._startIndexes[i],o[a]=this._endIndexes[i],r[a]=this._types[i],a++)}return new u(n,o,r)}}}function j(e,t){e=e.sort((e,t)=>{let i=e.start-t.start;return 0===i?e.rank-t.rank:i});var i=new B(t);let n=void 0;var o,r=[];for(o of e)if(n){if(o.start>n.start){if(o.end<=n.end)r.push(n),n=o;else if(o.start>n.end){for(;(n=r.pop())&&o.start>n.end;);n&&r.push(n),n=o}i.add(o.start,o.end,o.kind&&o.kind.value,r.length)}}else n=o,i.add(o.start,o.end,o.kind&&o.kind.value,r.length);return i.toIndentRanges()}class W{constructor(e,t,i,n){this.editorModel=e,this.id="init",t.length&&(this.decorationIds=e.deltaDecorations([],t.map(t=>({range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{description:"folding-initializing-range-provider",stickiness:1}}))),this.timeout=setTimeout(i,n))}dispose(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"==typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)}compute(e){var t=[];if(this.decorationIds)for(var i of this.decorationIds)i=this.editorModel.getDecorationRange(i),i&&t.push({start:i.startLineNumber,end:i.endLineNumber,rank:1});return Promise.resolve(j(t,Number.MAX_VALUE))}}w=i("4fc3"),t=i("303e");var V=i("bc04"),H=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});const z=new w.c("foldingEnabled",!1);let U=class e extends l.a{constructor(e,t){super(),this.contextKeyService=t,this.localToDispose=this._register(new l.b),this.editor=e,t=this.editor.getOptions(),this._isEnabled=t.get(36),this._useFoldingProviders="indentation"!==t.get(37),this._unfoldOnClickAfterEndOfLine=t.get(40),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=t.get(39),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingStateMemento=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new x(e),this.foldingDecorationProvider.autoHideFoldingControls="mouseover"===t.get(99),this.foldingDecorationProvider.showFoldingHighlights=t.get(38),this.foldingEnabled=z.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(e=>{var t;e.hasChanged(36)&&(this._isEnabled=this.editor.getOptions().get(36),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),(e.hasChanged(99)||e.hasChanged(38))&&(t=this.editor.getOptions(),this.foldingDecorationProvider.autoHideFoldingControls="mouseover"===t.get(99),this.foldingDecorationProvider.showFoldingHighlights=t.get(38),this.onModelContentChanged()),e.hasChanged(37)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(37),this.onFoldingStrategyChanged()),e.hasChanged(40)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(40)),e.hasChanged(39)&&(this._foldingImportsByDefault=this.editor.getOptions().get(39))})),this.onModelChanged()}static get(t){return t.getContribution(e.ID)}saveViewState(){var e,t,i=this.editor.getModel();return i&&this._isEnabled&&!i.isTooLargeForTokenization()?this.foldingModel?(e=(this.foldingModel.isInitialized?this.foldingModel:this.hiddenRangeModel).getMemento(),t=this.rangeProvider?this.rangeProvider.id:void 0,{collapsedRegions:e,lineCount:i.getLineCount(),provider:t,foldedImports:this._currentModelHasFoldedImports}):void 0:{}}restoreViewState(e){var t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&e.lineCount===t.getLineCount()&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions)){"syntax"!==e.provider&&"init"!==e.provider||(this.foldingStateMemento=e);const i=e.collapsedRegions;this.hiddenRangeModel.applyMemento(i)&&(t=this.getFoldingModel())&&t.then(e=>{if(e){this._restoringViewState=!0;try{e.applyMemento(i)}finally{this._restoringViewState=!1}}}).then(void 0,R.f)}}onModelChanged(){this.localToDispose.clear();var e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new p(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new O(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(e=>this.onHiddenRangesChanges(e))),this.updateScheduler=new s.a(200),this.cursorChangedScheduler=new s.e(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(A.o.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(()=>this.onModelContentChanged())),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(e=>this.onEditorMouseDown(e))),this.localToDispose.add(this.editor.onMouseUp(e=>this.onEditorMouseUp(e))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler&&this.updateScheduler.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.foldingStateMemento=null,this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null}}),this.onModelContentChanged())}onFoldingStrategyChanged(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()}getRangeProvider(e){if(!this.rangeProvider){if(this.rangeProvider=new M(e),this._useFoldingProviders&&this.foldingModel){var t=A.o.ordered(this.foldingModel.textModel);if(0===t.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions)return this.rangeProvider=new W(e,this.foldingStateMemento.collapsedRegions,()=>{this.foldingStateMemento=null,this.onFoldingStrategyChanged()},3e4);0<t.length&&(this.rangeProvider=new F(e,t,()=>this.onModelContentChanged()))}this.foldingStateMemento=null}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onModelContentChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{const e=this.foldingModel;if(!e)return null;const t=this.getRangeProvider(e.textModel);let i=this.foldingRegionPromise=Object(s.h)(e=>t.compute(e));return i.then(t=>{if(t&&i===this.foldingRegionPromise){let i;this._foldingImportsByDefault&&!this._currentModelHasFoldedImports&&(n=t.setCollapsedAllOfType(A.n.Imports.value,!0))&&(i=V.c.capture(this.editor),this._currentModelHasFoldedImports=n);var n=this.editor.getSelections();n=n?n.map(e=>e.startLineNumber):[];e.update(t,n),i&&i.restore(this.editor)}return e})}).then(void 0,e=>(Object(R.f)(e),null)))}onHiddenRangesChanges(e){var t;this.hiddenRangeModel&&e.length&&!this._restoringViewState&&(t=this.editor.getSelections())&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t),this.editor.setHiddenAreas(e)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){var e=this.getFoldingModel();e&&e.then(e=>{if(e){var t=this.editor.getSelections();if(t&&0<t.length){var i,n=[];for(i of t){let t=i.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&n.push(...e.getAllRegionsAtLine(t,e=>e.isCollapsed&&t>e.startLineNumber))}n.length&&(e.toggleCollapseState(n),this.reveal(t[0].getPosition()))}}}).then(void 0,R.f)}onEditorMouseDown(e){if(this.mouseDownInfo=null,this.hiddenRangeModel&&e.target&&e.target.range&&(e.event.leftButton||e.event.middleButton)){var t=e.target.range;let o=!1;switch(e.target.type){case 4:var i=e.target.detail,n=e.target.element.offsetLeft;if(i.offsetX-n<5)return;o=!0;break;case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return;case 6:if(this.hiddenRangeModel.hasRanges()&&(i=this.editor.getModel(),i&&t.startColumn===i.getLineMaxColumn(t.startLineNumber)))break;return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:o}}}onEditorMouseUp(e){var t=this.getFoldingModel();if(t&&this.mouseDownInfo&&e.target){let o=this.mouseDownInfo.lineNumber,r=this.mouseDownInfo.iconClicked;var i=e.target.range;if(i&&i.startLineNumber===o){if(r){if(4!==e.target.type)return}else{var n=this.editor.getModel();if(!n||i.startColumn!==n.getLineMaxColumn(o))return}t.then(t=>{if(t){let s=t.getRegionAtLine(o);if(s&&s.startLineNumber===o){var i=s.isCollapsed;if(r||i){let r=[];if(e.event.altKey){var n=t.getRegionsInside(null,e=>!e.containedBy(s)&&!s.containedBy(e));for(const e of n)e.isCollapsed&&r.push(e);0===r.length&&(r=n)}else{if(n=e.event.middleButton||e.event.shiftKey,n)for(const e of t.getRegionsInside(s))e.isCollapsed===i&&r.push(e);!i&&n&&0!==r.length||r.push(s)}t.toggleCollapseState(r),this.reveal({lineNumber:o,column:1})}}}}).then(void 0,R.f)}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};U.ID="editor.contrib.folding",U=i([H(1,w.b)],U);class K extends d.b{runEditorCommand(e,t,i){let n=U.get(t);var o;return n&&(o=n.getFoldingModel())?(this.reportTelemetry(e,t),o.then(e=>{e&&(this.invoke(n,e,t,i),e=t.getSelection())&&n.reveal(e.getStartPosition())})):void 0}getSelectedLines(e){return e=e.getSelections(),e?e.map(e=>e.startLineNumber):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map(e=>e+1):this.getSelectedLines(t)}run(e,t){}}function q(e){if(!o.l(e)){if(!o.j(e))return!1;if(!o.l(e.levels)&&!o.i(e.levels))return!1;if(!o.l(e.direction)&&!o.k(e.direction))return!1;if(!(o.l(e.selectionLines)||o.f(e.selectionLines)&&e.selectionLines.every(o.i)))return!1}return!0}class $ extends K{constructor(){super({id:"editor.unfold",label:n.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:q,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){var o=n&&n.levels||1;i=this.getLineNumbers(n,i);(n&&"up"===n.direction?f:m)(t,!1,o,i)}}class G extends K{constructor(){super({id:"editor.unfoldRecursively",label:n.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(a.a)(2089,2137),weight:100}})}invoke(e,t,i,n){m(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}class Z extends K{constructor(){super({id:"editor.fold",label:n.a("foldAction.label","Fold"),alias:"Fold",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:q,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){i=this.getLineNumbers(n,i);var o=n&&n.levels;n=n&&n.direction;if("number"!=typeof o&&"string"!=typeof n){var r,s=t,a=!0,l=[];for(r of i){var d=s.getAllRegionsAtLine(r,e=>e.isCollapsed!==a);0<d.length&&l.push(d[0])}s.toggleCollapseState(l)}else("up"===n?f:m)(t,!0,o||1,i)}}class Y extends K{constructor(){super({id:"editor.toggleFold",label:n.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(a.a)(2089,2090),weight:100}})}invoke(e,t,i){i=this.getSelectedLines(i);var n,o=t,r=1,s=[];for(n of i){var a=o.getRegionAtLine(n);if(a){const e=!a.isCollapsed;s.push(a),1<r&&(a=o.getRegionsInside(a,(t,i)=>t.isCollapsed!==e&&i<r),s.push(...a))}}o.toggleCollapseState(s)}}class X extends K{constructor(){super({id:"editor.foldRecursively",label:n.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(a.a)(2089,2135),weight:100}})}invoke(e,t,i){i=this.getSelectedLines(i),m(t,!0,Number.MAX_VALUE,i)}}class Q extends K{constructor(){super({id:"editor.foldAllBlockComments",label:n.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(a.a)(2089,2133),weight:100}})}invoke(e,t,i){t.regions.hasTypes()?v(t,A.n.Comment.value,!0):(i=i.getModel())&&(i=I.a.getComments(i.getLanguageIdentifier().id))&&i.blockCommentStartToken&&b(t,new RegExp("^\\s*"+Object(r.t)(i.blockCommentStartToken)),!0)}}class J extends K{constructor(){super({id:"editor.foldAllMarkerRegions",label:n.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(a.a)(2089,2077),weight:100}})}invoke(e,t,i){t.regions.hasTypes()?v(t,A.n.Region.value,!0):(i=i.getModel())&&(i=I.a.getFoldingRules(i.getLanguageIdentifier().id))&&i.markers&&i.markers.start&&b(t,new RegExp(i.markers.start),!0)}}class ee extends K{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:n.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(a.a)(2089,2078),weight:100}})}invoke(e,t,i){t.regions.hasTypes()?v(t,A.n.Region.value,!1):(i=i.getModel())&&(i=I.a.getFoldingRules(i.getLanguageIdentifier().id))&&i.markers&&i.markers.start&&b(t,new RegExp(i.markers.start),!1)}}class te extends K{constructor(){super({id:"editor.foldAllExcept",label:n.a("foldAllExcept.label","Fold All Regions Except Selected"),alias:"Fold All Regions Except Selected",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(a.a)(2089,2131),weight:100}})}invoke(e,t,i){_(t,!0,this.getSelectedLines(i))}}class ie extends K{constructor(){super({id:"editor.unfoldAllExcept",label:n.a("unfoldAllExcept.label","Unfold All Regions Except Selected"),alias:"Unfold All Regions Except Selected",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(a.a)(2089,2129),weight:100}})}invoke(e,t,i){_(t,!1,this.getSelectedLines(i))}}class ne extends K{constructor(){super({id:"editor.foldAll",label:n.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(a.a)(2089,2069),weight:100}})}invoke(e,t,i){m(t,!0)}}class oe extends K{constructor(){super({id:"editor.unfoldAll",label:n.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(a.a)(2089,2088),weight:100}})}invoke(e,t,i){m(t,!1)}}class re extends K{getFoldingLevel(){return parseInt(this.id.substr(re.ID_PREFIX.length))}invoke(e,t,i){var n,o,r;t=t,n=this.getFoldingLevel(),o=!0,r=this.getSelectedLines(i),i=t.getRegionsInside(null,(e,t)=>t===n&&e.isCollapsed!==o&&!r.some(t=>e.containsLine(t))),t.toggleCollapseState(i)}}re.ID_PREFIX="editor.foldLevel",re.ID=e=>re.ID_PREFIX+e;class se extends K{constructor(){super({id:"editor.gotoParentFold",label:n.a("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,weight:100}})}invoke(e,t,i){var n=this.getSelectedLines(i);0<n.length&&null!==(n=function(e,t){let i=null;var n=t.getRegionAtLine(e);return null!==n&&e===(i=n.startLineNumber)&&(e=n.parentIndex,i=-1!==e?t.regions.getStartLineNumber(e):null),i}(n[0],t))&&i.setSelection({startLineNumber:n,startColumn:1,endLineNumber:n,endColumn:1})}}class ae extends K{constructor(){super({id:"editor.gotoPreviousFold",label:n.a("gotoPreviousFold.label","Go to Previous Fold"),alias:"Go to Previous Fold",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,weight:100}})}invoke(e,t,i){var n=this.getSelectedLines(i);0<n.length&&null!==(n=function(e,t){let i=t.getRegionAtLine(e);if(null!==i){if(e!==i.startLineNumber)return i.startLineNumber;{var n=i.parentIndex;let e=0;for(-1!==n&&(e=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(0<i.regionIndex))return null;if((i=t.regions.toRegion(i.regionIndex-1)).startLineNumber<=e)return null;if(i.parentIndex===n)return i.startLineNumber}}}else if(0<t.regions.length)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(-1===i.parentIndex&&i.startLineNumber<e)return i.startLineNumber;i=0<i.regionIndex?t.regions.toRegion(i.regionIndex-1):null}return null}(n[0],t))&&i.setSelection({startLineNumber:n,startColumn:1,endLineNumber:n,endColumn:1})}}class le extends K{constructor(){super({id:"editor.gotoNextFold",label:n.a("gotoNextFold.label","Go to Next Fold"),alias:"Go to Next Fold",precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,weight:100}})}invoke(e,t,i){var n=this.getSelectedLines(i);0<n.length&&null!==(n=function(e,t){let i=t.getRegionAtLine(e);if(null!==i){var n=i.parentIndex;let e=0;if(-1!==n)e=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;e=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex<t.regions.length))return null;if((i=t.regions.toRegion(i.regionIndex+1)).startLineNumber>=e)return null;if(i.parentIndex===n)return i.startLineNumber}}else if(0<t.regions.length)for(i=t.regions.toRegion(0);null!==i;){if(-1===i.parentIndex&&i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex<t.regions.length?t.regions.toRegion(i.regionIndex+1):null}return null}(n[0],t))&&i.setSelection({startLineNumber:n,startColumn:1,endLineNumber:n,endColumn:1})}}Object(d.l)(U.ID,U),Object(d.j)($),Object(d.j)(G),Object(d.j)(Z),Object(d.j)(X),Object(d.j)(ne),Object(d.j)(oe),Object(d.j)(Q),Object(d.j)(J),Object(d.j)(ee),Object(d.j)(te),Object(d.j)(ie),Object(d.j)(Y),Object(d.j)(se),Object(d.j)(ae),Object(d.j)(le);for(let ce=1;ce<=7;ce++)Object(d.m)(new re({id:re.ID(ce),label:n.a("foldLevelAction.label","Fold Level {0}",ce),alias:"Fold Level "+ce,precondition:z,kbOpts:{kbExpr:k.a.editorTextFocus,primary:Object(a.a)(2089,2048|21+ce),weight:100}}));const de=Object(t.wc)("editor.foldBackground",{light:Object(t.Lc)(t.R,.3),dark:Object(t.Lc)(t.R,.3),hc:null},n.a("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0),he=Object(t.wc)("editorGutter.foldingControlForeground",{dark:t.fb,light:t.fb,hc:t.fb},n.a("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));Object(y.f)((e,t)=>{var i=e.getColor(de);i&&t.addRule(`.monaco-editor .folded-background { background-color: ${i}; }`),i=e.getColor(he);i&&t.addRule(`\n\t\t.monaco-editor .cldr${y.d.asCSSSelector(S)},\n\t\t.monaco-editor .cldr${y.d.asCSSSelector(L)} {\n\t\t\tcolor: ${i} !important;\n\t\t}\n\t\t`)})},"77a4":function(e,t,i){"use strict";i.r(t),i.d(t,"CodeLensContribution",(function(){return H}));var n=i("5fe7"),o=i("fdcc"),r=i("a666"),s=i("bc04"),a=(t=i("b2cc"),i("b707")),l=i("2504"),d=i("6d8e"),h=i("1b69"),c=i("9e74"),u=i("ef8e9"),g=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class p{constructor(){this.lenses=[],this._disposables=new r.b}dispose(){this._disposables.dispose()}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}function m(e,t){return g(this,void 0,void 0,(function*(){var i=a.b.ordered(e);const n=new Map,r=new p;return i=i.map((i,s)=>g(this,void 0,void 0,(function*(){n.set(i,s);try{var a=yield Promise.resolve(i.provideCodeLenses(e,t));a&&r.add(a,i)}catch(a){Object(o.g)(a)}}))),yield Promise.all(i),r.lenses=r.lenses.sort((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:n.get(e.provider)<n.get(t.provider)?-1:n.get(e.provider)>n.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0),r}))}c.a.registerCommand("_executeCodeLensProvider",(function(e,...t){let[i,n]=t;Object(u.c)(d.a.isUri(i)),Object(u.c)("number"==typeof n||!n);const s=e.get(h.a).getModel(i);if(!s)throw Object(o.c)();const a=[],c=new r.b;return m(s,l.a.None).then(e=>{c.add(e);var t=[];for(const i of e.lenses)void 0===n||null===n||Boolean(i.symbol.command)?a.push(i.symbol):0<n--&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(s,i.symbol,l.a.None)).then(e=>a.push(e||i.symbol)));return Promise.all(t)}).then(()=>a).finally(()=>{setTimeout(()=>c.dispose(),100)})})),i("44c7");var f=i("11f7"),_=i("6a89"),b=i("b57f"),v=i("918c"),C=i("303e"),w=i("b7d0"),y=i("7ddc");class S{constructor(e,t,i){this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}}class L{constructor(e,t,i){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+L._idPool++,this.updatePosition(i),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+t}withCommands(e,t){this._commands.clear();var i=[];let n=!1;for(let s=0;s<e.length;s++){var o,r=e[s];r&&(n=!0,r.command)&&(o=Object(y.a)(r.command.title.trim()),r.command.id?(i.push(f.a("a",{id:String(s),title:r.command.tooltip},...o)),this._commands.set(String(s),r.command)):i.push(f.a("span",{title:r.command.tooltip},...o)),s+1<e.length)&&i.push(f.a("span",void 0," | "))}n?(f.R(this._domNode,...i),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):f.R(this._domNode,f.a("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){var t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}L._idPool=0;class x{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){var t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let i=0,n=t.length;i<n;i++)this._addDecorationsCallbacks[i](t[i])}}class k{constructor(e,t,i,n,o,r,s){this._isDisposed=!1,this._editor=t,this._className=i,this._data=e,this._decorationIds=[];let a,l=[];this._data.forEach((e,t)=>{e.symbol.command&&l.push(e.symbol),n.addDecoration({range:e.symbol.range,options:b.a.EMPTY},e=>this._decorationIds[t]=e),a=a?_.a.plusRange(a,e.symbol.range):_.a.lift(e.symbol.range)}),this._viewZone=new S(a.startLineNumber-1,r,s),this._viewZoneId=o.addZone(this._viewZone),0<l.length&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new L(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t&&t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>(e=this._editor.getModel().getDecorationRange(e),t=this._data[t].symbol,!(!e||_.a.isEmpty(t.range)!==e.isEmpty())))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((e,i)=>{t.addDecoration({range:e.symbol.range,options:b.a.EMPTY},e=>this._decorationIds[i]=e)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(let i=0;i<this._decorationIds.length;i++){var t=e.getDecorationRange(this._decorationIds[i]);t&&(this._data[i].symbol.range=t)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let n=0;n<this._data.length;n++){var t,i=e[n];i&&(t=this._data[n]["symbol"],t.command=i.command||t.command)}}getCommand(e){var t;return null==(t=this._contentWidget)?void 0:t.getCommand(e)}getLineNumber(){var e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){var t;this.isValid()&&(t=this._editor.getModel().getDecorationRange(this._decorationIds[0]))&&(this._viewZone.afterLineNumber=t.startLineNumber-1,e.layoutZone(this._viewZoneId),this._contentWidget)&&(this._contentWidget.updatePosition(t.startLineNumber),this._editor.layoutContentWidget(this._contentWidget))}getItems(){return this._data}}Object(w.f)((e,t)=>{var i=e.getColor(v.l);i&&(t.addRule(`.monaco-editor .codelens-decoration { color: ${i}; }`),t.addRule(`.monaco-editor .codelens-decoration .codicon { color: ${i}; }`)),i=e.getColor(C.q);i&&(t.addRule(`.monaco-editor .codelens-decoration > a:hover { color: ${i} !important; }`),t.addRule(`.monaco-editor .codelens-decoration > a:hover .codicon { color: ${i} !important; }`))});var D=i("b0cd"),N=(w=i("0a0f"),i("f5f3")),O=i("40355"),E=i("03e8"),I=i("0bfb"),M=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},T=function(e,t){return function(i,n){t(i,n,e)}};w=Object(w.c)("ICodeLensCache");class A{constructor(e,t){this.lineCount=e,this.data=t}}var R=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new O.a(20,.75),Object(n.m)(()=>e.remove("codelens/cache",1));const t="codelens/cache2";var i=e.get(t,1,"{}");this._deserialize(i),Object(I.a)(e.onWillSaveState)(i=>{i.reason===E.c.SHUTDOWN&&e.store(t,this._serialize(),1,1)})}put(e,t){t=t.lenses.map(e=>({range:e.symbol.range,command:e.symbol.command&&{id:"",title:null==(e=e.symbol.command)?void 0:e.title}}));var i=new p;i.add({lenses:t,dispose:()=>{}},this._fakeProvider),t=new A(e.getLineCount(),i);this._cache.set(e.uri.toString(),t)}get(e){var t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){var e,t,i=Object.create(null);for([e,t]of this._cache){var n=new Set;for(const e of t.data.lenses)n.add(e.symbol.range.startLineNumber);i[e]={lineCount:t.lineCount,lines:[...n.values()]}}return JSON.stringify(i)}_deserialize(e){try{var t=JSON.parse(e);for(const e in t){var i=t[e],n=[];for(const e of i.lines)n.push({range:new _.a(e,1,e,11)});var o=new p;o.add({lenses:n,dispose(){}},this._fakeProvider),this._cache.set(e,new A(i.lineCount,o))}}catch(e){}}},P=(R=M([T(0,E.a)],R),Object(N.b)(w,R),i("eda7")),F=i("66bd"),B=i("dff7"),j=i("c101"),W=i("6a5d"),V=(M=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},T=function(e,t){return function(i,n){t(i,n,e)}},function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});let H=class{constructor(e,t,i,o){this._editor=e,this._commandService=t,this._notificationService=i,this._codeLensCache=o,this._disposables=new r.b,this._localToDispose=new r.b,this._lenses=[],this._getCodeLensModelDelays=new W.b(a.b,250,2500),this._oldCodeLensModels=new r.b,this._resolveCodeLensesDelays=new W.b(a.b,250,2500),this._resolveCodeLensesScheduler=new n.e(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDelays.min),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{(e.hasChanged(42)||e.hasChanged(15)||e.hasChanged(14))&&this._updateLensStyle(),e.hasChanged(13)&&this._onModelChange()})),this._disposables.add(a.b.onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+Object(P.c)(this._editor.getId()).toString(16),this._styleElement=f.w(f.O(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null!=(e=this._currentCodeLensModel)&&e.dispose(),this._styleElement.remove()}_getLayoutInfo(){let e,t=this._editor.getOption(15);return{codeLensHeight:e=!t||t<5?(t=.9*this._editor.getOption(44)|0,this._editor.getOption(58)):t*Math.max(1.3,this._editor.getOption(58)/this._editor.getOption(44))|0,fontSize:t}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo();var i=this._editor.getOption(14),n=this._editor.getOption(42),o="--codelens-font-family"+this._styleClassName,r="--codelens-font-features"+this._styleClassName;let s=`\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} { line-height: ${e}px; font-size: ${t}px; padding-right: ${Math.round(.5*t)}px; font-feature-settings: var(${r}) }\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} span.codicon { line-height: ${e}px; font-size: ${t}px; }\n\t\t`;i&&(s+=`.monaco-editor .codelens-decoration.${this._styleClassName} { font-family: var(${o})}`),this._styleElement.textContent=s,this._editor.getContainerDomNode().style.setProperty(o,null!=i?i:"inherit"),this._editor.getContainerDomNode().style.setProperty(r,n.fontFeatureSettings),this._editor.changeViewZones(t=>{for(var i of this._lenses)i.updateHeight(e,t)})}_localDispose(){var e;null!=(e=this._getCodeLensModelPromise)&&e.cancel(),this._getCodeLensModelPromise=void 0,null!=(e=this._resolveCodeLensesPromise)&&e.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null!=(e=this._currentCodeLensModel)&&e.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(13))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!a.b.has(e))return void(t&&this._localToDispose.add(Object(n.i)(()=>{var i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())},3e4)));for(const n of a.b.all(e)){var i;"function"==typeof n.onDidChange&&(i=n.onDidChange(()=>l.schedule()),this._localToDispose.add(i))}const l=new n.e(()=>{var t;const i=Date.now();null!=(t=this._getCodeLensModelPromise)&&t.cancel(),this._getCodeLensModelPromise=Object(n.h)(t=>m(e,t)),this._getCodeLensModelPromise.then(t=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=t,this._codeLensCache.put(e,t);var n=this._getCodeLensModelDelays.update(e,Date.now()-i);l.delay=n,this._renderCodeLensSymbols(t),this._resolveCodeLensesInViewportSoon()},o.f)},this._getCodeLensModelDelays.get(e));this._localToDispose.add(l),this._localToDispose.add(Object(r.i)(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{let i=[],n=-1,o=(this._lenses.forEach(e=>{e.isValid()&&n!==e.getLineNumber()?(e.update(t),n=e.getLineNumber()):i.push(e)}),new x);i.forEach(e=>{e.dispose(o,t),this._lenses.splice(this._lenses.indexOf(e),1)}),o.commit(e)})}),l.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{l.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(e=>{e.scrollTopChanged&&0<this._lenses.length&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Object(r.i)(()=>{var e;this._editor.getModel()?(e=s.c.capture(this._editor),this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{this._disposeAllLenses(e,t)})}),e.restore(this._editor)):this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(e=>{if(9===e.target.type){let i=e.target.element;if("A"===(null===(i="SPAN"===(null===i||void 0===i?void 0:i.tagName)?i.parentElement:i)||void 0===i?void 0:i.tagName))for(const e of this._lenses){var t=e.getCommand(i);if(t){this._commandService.executeCommand(t.id,...t.arguments||[]).catch(e=>this._notificationService.error(e));break}}}})),l.schedule()}_disposeAllLenses(e,t){var i=new x;for(const n of this._lenses)n.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(this._editor.hasModel()){var t,i=this._editor.getModel().getLineCount();let o,r=[];for(t of e.lenses){var n=t.symbol.range.startLineNumber;n<1||i<n||(o&&o[o.length-1].symbol.range.startLineNumber===n?o.push(t):(o=[t],r.push(o)))}e=s.c.capture(this._editor);const a=this._getLayoutInfo();this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{var i=new x;let n=0,o=0;for(;o<r.length&&n<this._lenses.length;){var s=r[o][0].symbol.range.startLineNumber,l=this._lenses[n].getLineNumber();l<s?(this._lenses[n].dispose(i,t),this._lenses.splice(n,1)):l===s?(this._lenses[n].updateCodeLensSymbols(r[o],i),o++,n++):(this._lenses.splice(n,0,new k(r[o],this._editor,this._styleClassName,i,t,a.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),n++,o++)}for(;n<this._lenses.length;)this._lenses[n].dispose(i,t),this._lenses.splice(n,1);for(;o<r.length;)this._lenses.push(new k(r[o],this._editor,this._styleClassName,i,t,a.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),o++;i.commit(e)})}),e.restore(this._editor)}}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;null!=(e=this._resolveCodeLensesPromise)&&e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(t){const e=[],i=[];if(this._lenses.forEach(n=>{var o=n.computeIfNecessary(t);o&&(e.push(o),i.push(n))}),0!==e.length){const r=Date.now(),s=Object(n.h)(n=>{var r=e.map((e,r)=>{const s=new Array(e.length);return e=e.map((e,i)=>e.symbol.command||"function"!=typeof e.provider.resolveCodeLens?(s[i]=e.symbol,Promise.resolve(void 0)):Promise.resolve(e.provider.resolveCodeLens(t,e.symbol,n)).then(e=>{s[i]=e},o.g)),Promise.all(e).then(()=>{n.isCancellationRequested||i[r].isDisposed()||i[r].updateCommands(s)})});return Promise.all(r)});this._resolveCodeLensesPromise=s,this._resolveCodeLensesPromise.then(()=>{var e=this._resolveCodeLensesDelays.update(t,Date.now()-r);this._resolveCodeLensesScheduler.delay=e,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},e=>{Object(o.f)(e),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}}}getLenses(){return this._lenses}};H.ID="css.editor.codeLens",H=M([T(1,c.b),T(2,D.a),T(3,w)],H),Object(t.l)(H.ID,H),Object(t.j)(class extends t.b{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:j.a.hasCodeLensProvider,label:Object(B.a)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return V(this,void 0,void 0,(function*(){if(t.hasModel()){var i,n=e.get(F.a),o=e.get(c.b),r=e.get(D.a),s=t.getSelection().positionLineNumber,a=[];for(i of t.getContribution(H.ID).getLenses())if(i.getLineNumber()===s)for(var l of i.getItems())l=l.symbol["command"],l&&a.push({label:l.title,command:l});if(0!==a.length&&(n=yield n.pick(a,{canPickMany:!1}),n))try{yield o.executeCommand(n.command.id,...n.command.arguments||[])}catch(i){r.error(i)}}}))}})},"77db":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return i.e("chunk-2d0a3196").then(i.bind(null,"0176"))}})},"780f":function(e,t,i){"use strict";i("d585"),i("9c1d"),i("4a64"),i("d0b6"),i("3765"),i("6e4e"),i("2935"),i("6daf"),i("c36f"),i("0b112"),i("77a4"),i("db2d"),i("9f4d"),i("7c3e"),i("e516"),i("fd11"),i("a106"),i("7605"),i("6df4"),i("7082"),i("891c"),i("2e66"),i("f187"),i("1f84"),i("958f"),i("aee8"),i("bc61"),i("6e62"),i("1af3"),i("747f"),i("7eb7"),i("d844"),i("f17c"),i("5b02"),i("43ad"),i("d741"),i("b574"),i("7a9e");var n=i("dff7"),o=i("b2cc"),r=i("e58e");class s extends o.b{constructor(){super({id:"editor.action.forceRetokenize",label:n.a("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){var i;t.hasModel()&&((t=t.getModel()).resetTokenization(),i=new r.a(!0),t.forceTokenization(t.getLineCount()),i.stop())}}Object(o.j)(s),i("93ba"),i("87a3"),i("23ec"),i("5ed2"),i("b3b2"),i("2d47"),i("03d9"),i("b9db")},"782d":function(e,t,i){},"78bc":function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return s})),i.d(t,"d",(function(){return a})),i.d(t,"c",(function(){return l}));var n=i("fdcc"),o=i("1097");class r{constructor(e="",t=!1){if(this.value=e,"string"!=typeof this.value)throw Object(n.c)("value");"boolean"==typeof t?(this.isTrusted=t,this.supportThemeIcons=!1):(this.isTrusted=null!=(e=t.isTrusted)?e:void 0,this.supportThemeIcons=null!=(e=t.supportThemeIcons)&&e)}appendText(e,t=0){return this.value+=(this.supportThemeIcons?Object(o.a)(e):e).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace(/([ \t]+)/g,(e,t)=>"&nbsp;".repeat(t.length)).replace(/^>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this}}function s(e){return function(e){return e instanceof r?1:e&&"object"==typeof e?!("string"!=typeof e.value||"boolean"!=typeof e.isTrusted&&void 0!==e.isTrusted||"boolean"!=typeof e.supportThemeIcons&&void 0!==e.supportThemeIcons):void 0}(e)?!e.value:!Array.isArray(e)||e.every(s)}function a(e){return e&&e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function l(e){var t,i,n,o=[],r=e.split("|").map(e=>e.trim());e=r[0],r=r[1];return r&&(t=/height=(\d+)/.exec(r),r=/width=(\d+)/.exec(r),t=t?t[1]:"",r=r?r[1]:"",i=isFinite(parseInt(r)),n=isFinite(parseInt(t)),i&&o.push(`width="${r}"`),n)&&o.push(`height="${t}"`),{href:e,dimensions:o}}},7944:function(e,t,i){"use strict";i.d(t,"c",(function(){return x})),i.d(t,"a",(function(){return k})),i.d(t,"b",(function(){return O}));var n=i("11f7"),o=i("b835"),r=(t=i("eff2"),i("a60f")),s=i("f070"),a=i("308f");i("40c2");class l extends s.b{constructor(e,t){super(),this._onDidChangeVisibility=new a.b,this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=Object(n.q)(e,Object(n.a)(".monaco-dropdown")),this._label=Object(n.q)(this._element,Object(n.a)(".dropdown-label"));let i=t.labelRenderer;i=i||(e=>(e.textContent=t.label||"",null));for(const o of[n.d.CLICK,n.d.MOUSE_DOWN,r.a.Tap])this._register(Object(n.i)(this.element,o,e=>n.c.stop(e,!0)));for(const o of[n.d.MOUSE_DOWN,r.a.Tap])this._register(Object(n.i)(this._label,o,e=>{e instanceof MouseEvent&&1<e.detail||(this.visible?this.hide():this.show())}));this._register(Object(n.i)(this._label,n.d.KEY_UP,e=>{var t=new o.a(e);(t.equals(3)||t.equals(10))&&(n.c.stop(e,!0),this.visible?this.hide():this.show())})),e=i(this._label),e&&this._register(e),this._register(r.b.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class d extends l{constructor(e,t){super(e,t),this._actions=[],this._contextMenuProvider=t.contextMenuProvider,this.actions=t.actions||[],this.actionProvider=t.actionProvider,this.menuClassName=t.menuClassName||"",this.menuAsChild=!!t.menuAsChild}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:e=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}class h extends t.b{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new a.b),this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;var t=Array.isArray(this.menuActionsOrProvider);t={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{this.element=Object(n.q)(e,Object(n.a)("a.action-label"));let t=[];return"string"==typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter(e=>!!e):this.options.classNames&&(t=this.options.classNames),t.find(e=>"icon"===e)||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new d(e,t)),this._register(this.dropdownMenu.onDidChangeVisibility(e=>{var t;null!=(t=this.element)&&t.setAttribute("aria-expanded",""+e),this._onDidChangeVisibility.fire(e)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return e.options.anchorAlignmentProvider()}})}this.updateEnabled()}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}updateEnabled(){var e,t=!this.getAction().enabled;null!=(e=this.actionItem)&&e.classList.toggle("disabled",t),null!=(e=this.element)&&e.classList.toggle("disabled",t)}}var c=i("8b4e"),u=i("a666"),g=i("30db"),p=(i("afa2"),i("dff7")),m=i("7e32"),f=i("4fc3"),_=i("533b"),b=i("0a0f"),v=i("6dec"),C=i("b0cd"),w=i("03e8"),y=i("b7d0"),S=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}}),L=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function x(e,t,i,n,o,r,a){e=e.getActions(t),t="string"==typeof n?e=>e===n:n;{var[i,l,d,h=(e=>"navigation"===e),c=Number.MAX_SAFE_INTEGER,g=(()=>!1),p=!1]=[e,i,!1,t,o,r,a];let n,u;u=Array.isArray(l)?n=l:(n=l.primary,l.secondary);var f,_,b,v,C,w=new Set;for([f,_]of i){let e;for(var y of(h(f)?0<(e=n).length&&p&&e.push(new s.d):0<(e=u).length&&e.push(new s.d),_)){d&&(y=y instanceof m.c&&y.alt?y.alt:y);var S=e.push(y);y instanceof s.e&&w.add({group:f,action:y,index:S-1})}}for({group:b,action:v,index:C}of w){const e=h(b)?n:u;var L=v.actions;(L.length<=1||e.length+L.length-2<=c)&&g(v,b,e.length)&&e.splice(C,1,...L)}n!==u&&n.length>c&&(l=n.splice(c,n.length-c),u.unshift(...l,new s.d))}t=e;var x,k=new u.b;for([,x]of t)for(const e of x)k.add(e);return k}let k=class extends t.a{constructor(e,t,i,o,r){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null==t?void 0:t.draggable}),this._keybindingService=i,this._notificationService=o,this._contextKeyService=r,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new u.d),this._altKey=n.e.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return L(this,void 0,void 0,(function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(e){this._notificationService.error(e)}}))}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,i=this._altKey.keyStatus.altKey||(g.i||g.d)&&this._altKey.keyStatus.shiftKey;const o=()=>{var e=t&&i;e!==this._wantsAltCommand&&(this._wantsAltCommand=e,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(e=>{i=e.altKey||(g.i||g.d)&&e.shiftKey,o()})),this._register(Object(n.i)(e,"mouseleave",e=>{t=!1,o()})),this._register(Object(n.i)(e,"mouseenter",e=>{t=!0,o()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}updateTooltip(){if(this.label){var e=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),t=(e=e&&e.getLabel(),this._commandAction.tooltip||this._commandAction.label);let i=e?Object(p.a)("titleAndKb","{0} ({1})",t,e):t;!this._wantsAltCommand&&this._menuItemAction.alt&&(e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=(t=(t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService))&&t.getLabel())?Object(p.a)("titleAndKb","{0} ({1})",e,t):e,i+=`\n[${c.b.modifierLabels[g.a].altKey}] `+t),this.label.title=i}}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(t&&i){var o=(this._commandAction.checked&&null!=(o=e.toggled)&&o.icon?e.toggled:e).icon;if(o)if(y.d.isThemeIcon(o)){const e=y.d.asClassNameArray(o);i.classList.add(...e),this._itemClassDispose.value=Object(u.i)(()=>{i.classList.remove(...e)})}else o.light&&i.style.setProperty("--menu-entry-icon-light",Object(n.s)(o.light)),o.dark&&i.style.setProperty("--menu-entry-icon-dark",Object(n.s)(o.dark)),i.classList.add("icon"),this._itemClassDispose.value=Object(u.i)(()=>{i.classList.remove("icon"),i.style.removeProperty("--menu-entry-icon-light"),i.style.removeProperty("--menu-entry-icon-dark")})}}},D=(k=i([S(2,v.a),S(3,C.a),S(4,f.b)],k),class extends h{constructor(e,t,i){var n;t=Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null==(n=null==t?void 0:t.menuAsChild)||n,classNames:null!=(n=null==t?void 0:t.classNames)?n:y.d.isThemeIcon(e.item.icon)?y.d.asClassName(e.item.icon):void 0});super(e,{getActions:()=>e.actions},i,t)}render(e){super.render(e),this.element&&(e.classList.add("menu-entry"),e=this._action.item["icon"],e)&&!y.d.isThemeIcon(e)&&(this.element.classList.add("icon"),e.light&&this.element.style.setProperty("--menu-entry-icon-light",Object(n.s)(e.light)),e.dark)&&this.element.style.setProperty("--menu-entry-icon-dark",Object(n.s)(e.dark))}}),N=(D=i([S(2,_.a)],D),class extends t.b{constructor(e,t,i,n,o,r,a,l){super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=o,this._menuService=r,this._instaService=a,this._storageService=l,this._container=null,this._storageKey=e.item.submenu._debugName+"_lastActionId";let d,c=l.get(this._storageKey,1);d=(d=c?e.actions.find(e=>c===e.id):d)||e.actions[0],this._defaultAction=this._instaService.createInstance(k,d,void 0),r=Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null==(i=null==t?void 0:t.menuAsChild)||i,classNames:null!=(n=null==t?void 0:t.classNames)?n:["codicon","codicon-chevron-down"],actionRunner:null!=(o=null==t?void 0:t.actionRunner)?o:new s.b}),this._dropdown=new h(e,e.actions,this._contextMenuService,r),this._dropdown.actionRunner.onDidRun(e=>{e.action instanceof m.c&&this.update(e.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(k,e,void 0),this._defaultAction.actionRunner=new class extends s.b{runAction(e,t){return L(this,void 0,void 0,(function*(){yield e.run(void 0)}))}},this._container&&this._defaultAction.render(Object(n.P)(this._container,Object(n.a)(".action-container")))}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default"),e=Object(n.a)(".action-container"),this._defaultAction.render(Object(n.q)(this._container,e)),this._register(Object(n.i)(e,n.d.KEY_DOWN,e=>{e=new o.a(e),e.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),e.stopPropagation())})),e=Object(n.a)(".dropdown-action-container"),this._dropdown.render(Object(n.q)(this._container,e)),this._register(Object(n.i)(e,n.d.KEY_DOWN,e=>{var t;e=new o.a(e);e.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null!=(t=this._defaultAction.element)&&t.focus(),e.stopPropagation())}))}focus(e){(e?this._dropdown:(this._defaultAction.element.tabIndex=0,this._defaultAction.element)).focus()}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}});function O(e,t,i){return t instanceof m.c?e.createInstance(k,t,void 0):t instanceof m.e?t.item.rememberDefaultAction?e.createInstance(N,t,i):e.createInstance(D,t,i):void 0}N=i([S(2,v.a),S(3,C.a),S(4,_.a),S(5,m.a),S(6,b.a),S(7,w.a)],N)},"7a2c":function(e,t,i){},"7a9e":function(e,t,i){"use strict";i.r(t),i.d(t,"SuggestController",(function(){return $e})),i.d(t,"TriggerSuggestAction",(function(){return Ge}));var n=i("3813"),o=i("e8e3"),r=i("fdcc"),s=i("fe45"),a=i("a666"),l=i("bc04"),d=(t=i("b2cc"),i("d3f4")),h=i("6a89"),c=i("c101"),u=i("b574"),g=i("b800"),p=i("40355"),m=i("03e8"),f=i("b707"),_=i("5fe7"),b=i("0a0f"),v=i("fbba"),C=i("f5f3"),w=i("5818"),y=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},S=function(e,t){return function(i,n){t(i,n,e)}};class L{constructor(e){this.name=e}select(e,t,i){if(0!==i.length){var n=i[0].score[0];for(let e=0;e<i.length;e++){var{score:o,completion:r}=i[e];if(o[0]!==n)break;if(r.preselect)return e}}return 0}}class x extends L{constructor(){super("first")}memorize(e,t,i){}toJSON(){}fromJSON(){}}var k=class e{constructor(e,t,i){this._storageService=e,this._modeService=t,this._configService=i,this._disposables=new a.b,this._persistSoon=new _.e(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(e=>{e.reason===m.c.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(t,i){if(i=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:null==(i=this._modeService.getLanguageIdentifier(t.getLanguageIdAtPosition(i.lineNumber,i.column)))?void 0:i.language,resource:t.uri}),(null==(t=this._strategy)?void 0:t.name)!==i){this._saveState(),t=e._strategyCtors.get(i)||x,this._strategy=new t;try{var n=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,o=this._storageService.get(e._storagePrefix+"/"+i,n);o&&this._strategy.fromJSON(JSON.parse(o))}catch(t){}}return this._strategy}_saveState(){var t,i;this._strategy&&(t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,i=JSON.stringify(this._strategy),this._storageService.store(e._storagePrefix+"/"+this._strategy.name,i,t,1))}},D=(y=(k._strategyCtors=new Map([["recentlyUsedByPrefix",class extends L{constructor(){super("recentlyUsedByPrefix"),this._trie=p.c.forStrings(),this._seq=0}memorize(e,t,i){t=e.getWordUntilPosition(t).word,e=e.getLanguageIdentifier().language+"/"+t,this._trie.set(e,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){var n=e.getWordUntilPosition(t)["word"];if(n){n=e.getLanguageIdentifier().language+"/"+n;let t=this._trie.get(n);if(t=t||this._trie.findSubstr(n))for(let e=0;e<i.length;e++){var{kind:o,insertText:r}=i[e].completion;if(o===t.type&&r===t.insertText)return e}}return super.select(e,t,i)}toJSON(){let e=[];return this._trie.forEach((t,i)=>e.push([i,t])),e.sort((e,t)=>-(e[1].touch-t[1].touch)).forEach((e,t)=>e[1].touch=t),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),0<e.length)for(var[t,i]of(this._seq=e[0][1].touch+1,e))i.type="number"==typeof i.type?i.type:Object(f.H)(i.type),this._trie.set(t,i)}}],["recentlyUsed",class extends L{constructor(){super("recentlyUsed"),this._cache=new p.a(300,.66),this._seq=0}memorize(e,t,i){e=e.getLanguageIdentifier().language+"/"+i.textLabel,this._cache.set(e,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;var n=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(n))return super.select(e,t,i);var o=i[0].score[0];let r=-1,s=-1,a=-1;for(let d=0;d<i.length&&i[d].score[0]===o;d++){var l=e.getLanguageIdentifier().language+"/"+i[d].textLabel;l=this._cache.peek(l);if(l&&l.touch>a&&l.type===i[d].completion.kind&&l.insertText===i[d].completion.insertText&&(a=l.touch,s=d),i[d].completion.preselect&&-1===r)return d}return-1!==s?s:-1!==r?r:0}toJSON(){return this._cache.toJSON()}fromJSON(e){var t,i;for([t,i]of(this._cache.clear(),e))i.touch=0,i.type="number"==typeof i.type?i.type:Object(f.H)(i.type),this._cache.set(t,i);this._seq=this._cache.size}}],["first",x]]),k._storagePrefix="suggest/memories",k=y([S(0,m.a),S(1,w.a),S(2,v.a)],k),Object(b.c)("ISuggestMemories")),Object(C.b)(y,k,!0),i("dff7")),N=(S=i("9e74"),i("4fc3")),O=(C=i("9eb8"),i("4153")),E=(k=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});let I=class e{constructor(t,i){this._editor=t,this._index=0,this._ckOtherSuggestions=e.OtherSuggestions.bindTo(i)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),null!=(e=this._listener)&&e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:t,index:i},n){0===t.items.length||e._moveIndex(!0,t,i)===i?this.reset():(this._acceptNext=n,this._model=t,this._index=i,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0))}static _moveIndex(e,t,i){let n=i;for(;;){if((n=(n+t.items.length+(e?1:-1))%t.items.length)===i)break;if(!t.items[n].completion.additionalTextEdits)break}return n}next(){this._move(!0)}prev(){this._move(!1)}_move(t){if(this._model)try{this._ignore=!0,this._index=e._moveIndex(t,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};I.OtherSuggestions=new N.c("hasOtherSuggestions",!1),I=k([E(1,N.b)],I);var M=i("308f"),T=i("8025"),A=i("7e93"),R=i("3742");class P{constructor(e,t,i,n,o,r,s){this.clipboardText=s,this._snippetCompareFn=P._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=o,this._refilterKind=1,this._lineContext=i,"top"===r?this._snippetCompareFn=P._compareCompletionItemsSnippetsUp:"bottom"===r&&(this._snippetCompareFn=P._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)}get items(){return this._ensureCachedState(),this._filteredItems}get allProvider(){return this._ensureCachedState(),this._providerInfo.keys()}get incomplete(){this._ensureCachedState();var e,t,i=new Set;for([e,t]of this._providerInfo)t&&i.add(e);return i}adopt(e){var t=[];for(let i=0;i<this._items.length;)e.has(this._items[i].provider)?i++:(t.push(this._items[i]),this._items[i]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._providerInfo=new Map;var e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let n="",r="";var s=1===this._refilterKind?this._items:this._filteredItems,a=[],l=!this._options.filterGraceful||2e3<s.length?A.d:A.e;for(let o=0;o<s.length;o++){var d=s[o];if(!d.isInvalid){this._providerInfo.set(d.provider,Boolean(d.container.incomplete));var h=d.position.column-d.editStart.column,c=h+i-(d.position.column-this._column);if(n.length!==c&&(n=0==c?"":t.slice(-c),r=n.toLowerCase()),d.word=n,0==c)d.score=A.a.Default;else{let e=0;for(;e<h;){var u=n.charCodeAt(e);if(32!==u&&9!==u)break;e+=1}if(e>=c)d.score=A.a.Default;else if("string"==typeof d.completion.filterText){if(c=l(n,r,e,d.completion.filterText,d.filterTextLow,0,!1),!c)continue;0===Object(R.g)(d.completion.filterText,d.textLabel)?d.score=c:(d.score=Object(A.b)(n,r,e,d.textLabel,d.labelLow,0),d.score[0]=c[0])}else{if(c=l(n,r,e,d.textLabel,d.labelLow,0,!1),!c)continue;d.score=c}}d.idx=o,d.distance=this._wordDistance.distance(d.position,d.completion),a.push(d),e.push(d.textLabel.length)}}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?Object(o.q)(e.length-.85,e,(e,t)=>e-t):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return P._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return P._compareCompletionItems(e,t)}}var F=i("2504"),B=(k=i("a40b"),i("67b4")),j=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class W{static create(e,t){return j(this,void 0,void 0,(function*(){if(!t.getOption(106).localityBonus)return W.None;if(!t.hasModel())return W.None;var i=t.getModel();const n=t.getPosition();if(!e.canComputeWordRanges(i.uri))return W.None;const[r]=yield(new B.a).provideSelectionRanges(i,[n]);if(0===r.length)return W.None;const s=yield e.computeWordRanges(i.uri,r[0].range);return s?(i=i.getWordUntilPosition(n),delete s[i.word],new class extends W{distance(e,i){if(!n.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;if(i=("string"==typeof i.label?i:i.label).label,i=s[i],Object(o.m)(i))return 2<<20;e=Object(o.d)(i,h.a.fromPositions(e),h.a.compareRangesUsingStarts);var a=0<=e?i[e]:i[Math.max(0,~e-1)];let l=r.length;for(const t of r){if(!h.a.containsRange(t.range,a))break;--l}return l}}):W.None}))}}W.None=new class extends W{distance(){return 0}};E=i("f577");var V=i("5d75"),H=i("d3d7"),z=function(e,t){return function(i,n){t(i,n,e)}},U=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class K{constructor(e,t,i,n){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=i,this.shy=n}static shouldAutoTrigger(e){var t;return!!e.hasModel()&&(t=e.getModel(),e=e.getPosition(),t.tokenizeIfCheap(e.lineNumber),!!(t=t.getWordAtPosition(e)))&&t.endColumn===e.column&&!!isNaN(Number(t.word))}}let q=class e{constructor(e,t,i,n,o,r,s){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=o,this._contextKeyService=r,this._configurationService=s,this._toDispose=new a.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new a.b,this._triggerQuickSuggest=new _.g,this._state=0,this._completionDisposables=new a.b,this._onDidCancel=new M.b,this._onDidTrigger=new M.b,this._onDidSuggest=new M.b,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new T.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters(),this._updateQuickSuggest()})),this._toDispose.add(f.d.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(e=>{this._onCursorChange(e)}));let l=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{l=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{l=!1,this._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{l||this._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}dispose(){Object(a.f)(this._triggerCharacterListener),Object(a.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateQuickSuggest(){this._quickSuggestDelay=this._editor.getOption(79),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),!this._editor.getOption(80)&&this._editor.hasModel()&&this._editor.getOption(109)){const t=new Map;for(const e of f.d.all(this._editor.getModel()))for(const i of e.triggerCharacters||[]){let n=t.get(i);n||((n=new Set).add(Object(O.c)()),t.set(i,n)),n.add(e)}var e=e=>{if(i=this._contextKeyService,n=this._configurationService,(!Boolean(i.getContextKeyValue("inlineSuggestionVisible"))||Boolean(n.getValue("editor.inlineSuggest.allowSuggestOnTriggerCharacters")))&&!K.shouldAutoTrigger(this._editor)){e||(i=this._editor.getPosition(),e=this._editor.getModel().getLineContent(i.lineNumber).substr(0,i.column-1));let o="";Object(R.F)(e.charCodeAt(e.length-1))?Object(R.E)(e.charCodeAt(e.length-2))&&(o=e.substr(e.length-2)):o=e.charAt(e.length-1);var i,n=t.get(o);n&&(i=this._completionModel?{items:this._completionModel.adopt(n),clipboardText:this._completionModel.clipboardText}:void 0,this.trigger({auto:!0,shy:!1,triggerCharacter:o},Boolean(this._completionModel),n,i))}};this._triggerCharacterListener.add(this._editor.onDidType(e)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(e))}}get state(){return this._state}cancel(e=!1){var t;0!==this._state&&(this._triggerQuickSuggest.cancel(),null!=(t=this._requestToken)&&t.cancel(),this._requestToken=void 0,this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){0!==this._state&&(this._editor.hasModel()&&f.d.has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1},!0):this.cancel())}_onCursorChange(e){var t,i;this._editor.hasModel()&&(t=this._editor.getModel(),i=this._currentSelection,this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():f.d.has(t)&&(0===this._state&&0===e.reason?!1===this._editor.getOption(78)||!i.containsRange(this._currentSelection)&&!i.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition())||this._editor.getOption(106).snippetsPreventQuickSuggestions&&u.SnippetController2.get(this._editor).isInSnippet()||(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(0===this._state&&K.shouldAutoTrigger(this._editor)&&this._editor.hasModel()){var e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(78);if(!1!==i){if(!0!==i&&(e.tokenizeIfCheap(t.lineNumber),e=e.getLineTokens(t.lineNumber),e=e.getStandardTokenType(e.findTokenIndexAtOffset(Math.max(t.column-1-1,0))),!(i.other&&0===e||i.comments&&1===e||i.strings&&2===e)))return;t=this._contextKeyService,i=this._configurationService,Boolean(t.getContextKeyValue("inlineSuggestionVisible"))&&!Boolean(i.getValue("editor.inlineSuggest.allowQuickSuggestions"))||this.trigger({auto:!0,shy:!1})}}},this._quickSuggestDelay)):0!==this._state&&3===e.reason&&this._refilterCompletionItems()))}_refilterCompletionItems(){Promise.resolve().then(()=>{var e,t;0!==this._state&&this._editor.hasModel()&&(t=this._editor.getModel(),e=this._editor.getPosition(),t=new K(t,e,2===this._state,!1),this._onNewContext(t))})}trigger(t,i=!1,n,o){if(this._editor.hasModel()){var s=this._editor.getModel();const d=t.auto;var a=new K(s,this._editor.getPosition(),d,t.shy);this.cancel(i),this._state=d?2:1,this._onDidTrigger.fire({auto:d,shy:t.shy,position:this._editor.getPosition()}),this._context=a;let h={triggerKind:null!=(i=t.triggerKind)?i:0};t.triggerCharacter&&(h={triggerKind:1,triggerCharacter:t.triggerCharacter}),this._requestToken=new F.b,a=this._editor.getOption(101);let c=1;switch(a){case"top":c=0;break;case"bottom":c=2}var{itemKind:i,showDeprecated:a}=e._createSuggestFilter(this._editor),l=W.create(this._editorWorkerService,this._editor);s=Object(O.e)(s,this._editor.getPosition(),new O.a(c,i,n,a),h,this._requestToken.token);Promise.all([s,l]).then(([e,i])=>U(this,void 0,void 0,(function*(){if(null!=(n=this._requestToken)&&n.dispose(),this._editor.hasModel()){let s=null==o?void 0:o.clipboardText;if(!s&&e.needsClipboard&&(s=yield this._clipboardService.readText()),0!==this._state){var n=this._editor.getModel();let a=e.items;o&&(r=Object(O.d)(c),a=a.concat(o.items).sort(r));var r=new K(n,this._editor.getPosition(),d,t.shy);this._completionModel=new P(a,this._context.column,{leadingLineContent:r.leadingLineContent,characterCountDelta:r.column-this._context.column},i,this._editor.getOption(106),this._editor.getOption(101),s),this._completionDisposables.add(e.disposable),this._onNewContext(r),this._reportDurationsTelemetry(e.durations)}}}))).catch(r.f)}}_reportDurationsTelemetry(e){this._telemetryGate++%230==0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)})}static _createSuggestFilter(e){var t=new Set;"none"===e.getOption(101)&&t.add(27),e=e.getOption(106);return e.showMethods||t.add(0),e.showFunctions||t.add(1),e.showConstructors||t.add(2),e.showFields||t.add(3),e.showVariables||t.add(4),e.showClasses||t.add(5),e.showStructs||t.add(6),e.showInterfaces||t.add(7),e.showModules||t.add(8),e.showProperties||t.add(9),e.showEvents||t.add(10),e.showOperators||t.add(11),e.showUnits||t.add(12),e.showValues||t.add(13),e.showConstants||t.add(14),e.showEnums||t.add(15),e.showEnumMembers||t.add(16),e.showKeywords||t.add(17),e.showWords||t.add(18),e.showColors||t.add(19),e.showFiles||t.add(20),e.showReferences||t.add(21),e.showColors||t.add(22),e.showFolders||t.add(23),e.showTypeParameters||t.add(24),e.showSnippets||t.add(27),e.showUsers||t.add(25),e.showIssues||t.add(26),{itemKind:t,showDeprecated:e.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber!==this._context.lineNumber)this.cancel();else if(Object(R.x)(e.leadingLineContent)!==Object(R.x)(this._context.leadingLineContent))this.cancel();else if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();else if(this._completionModel)if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){var t,i=new Set(f.d.all(this._editor.getModel()));for(t of this._completionModel.allProvider)i.delete(t);var n=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1},!0,i,{items:n,clipboardText:this._completionModel.clipboardText})}else if(e.column>this._context.column&&0<this._completionModel.incomplete.size&&0!==e.leadingWord.word.length){n=this._completionModel["incomplete"];var o=this._completionModel.adopt(n);this.trigger({auto:2===this._state,shy:!1,triggerKind:2},!0,n,{items:o,clipboardText:this._completionModel.clipboardText})}else{n=this._completionModel.lineContext;let t=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(K.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto,shy:!1},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=n,(t=0<this._completionModel.items.length)&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:t})}}};q=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}([z(1,k.a),z(2,E.a),z(3,V.a),z(4,H.b),z(5,N.b),z(6,v.a)],q),i("0829"),i("b9db"),i("dbc9");var $=i("11f7"),G=i("72a7"),Z=i("a6d7"),Y=i("b7d0"),X=i("303e"),Q=i("1898"),J=i("bfa1"),ee=i("78bc"),te=i("561a"),ie=i("70c3");class ne{constructor(){this._onDidWillResize=new M.b,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new M.b,this.onDidResize=this._onDidResize.event,this._sashListener=new a.b,this._size=new $.b(0,0),this._minSize=new $.b(0,0),this._maxSize=new $.b(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new ie.b(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new ie.b(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new ie.b(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:ie.a.North}),this._southSash=new ie.b(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:ie.a.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,i=0;this._sashListener.add(M.c.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)})),this._sashListener.add(M.c.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(M.c.any(this._eastSash.onDidReset,this._westSash.onDidReset)(e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(M.c.any(this._northSash.onDidReset,this._southSash.onDidReset)(e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){var{height:i,width:n}=this._minSize,{height:o,width:r}=this._maxSize,i=(e=Math.max(i,Math.min(o,e)),t=Math.max(n,Math.min(r,t)),new $.b(t,e));$.b.equals(i,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=i,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}function oe(e){return e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let re=class{constructor(e,t){this._editor=e,this._onDidClose=new M.b,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new M.b,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new a.b,this._renderDisposeable=new a.b,this._borderWidth=1,this._size=new $.b(330,0),this.domNode=$.a(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(J.a,{editor:e}),this._body=$.a(".body"),this._scrollbar=new Q.a(this._body,{}),$.q(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=$.q(this._body,$.a(".header")),this._close=$.q(this._header,$.a("span"+te.b.close.cssSelector)),this._close.title=D.a("details.close","Close"),this._type=$.q(this._header,$.a("p.type")),this._docs=$.q(this._body,$.a("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(42)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){var e=this._editor.getOptions(),t=e.get(42),i=t.fontFamily,n=e.get(107)||t.fontSize,o=(e=e.get(108)||t.lineHeight,t.fontWeight);e+="px";this.domNode.style.fontSize=n+"px",this.domNode.style.lineHeight=e,this.domNode.style.fontWeight=o,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=e,this._close.style.width=e}getLayoutInfo(){var e=this._editor.getOption(108)||this._editor.getOption(42).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=D.a("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:o,documentation:r}=e.completion;t&&(n="",n=(n=(n=(n=(n=(n+=`score: ${e.score[0]}\n`)+`prefix: ${null!=(i=e.word)?i:"(no prefix)"}\n`)+`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`)+`distance: ${e.distance} (localityBonus-setting)\n`)+`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`)+`commit_chars: ${null==(i=e.completion.commitCharacters)?void 0:i.join("")}\n`,r=(new ee.a).appendCodeblock("empty",n),o="Provider: "+e.provider._debugDisplayName),t||oe(e)?(this.domNode.classList.remove("no-docs","no-type"),o?(i=1e5<o.length?o.substr(0,1e5)+"…":o,this._type.textContent=i,this._type.title=i,$.W(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(i))):($.t(this._type),this._type.title="",$.K(this._type),this.domNode.classList.add("no-type")),$.t(this._docs),"string"==typeof r?(this._docs.classList.remove("markdown-docs"),this._docs.textContent=r):r&&(this._docs.classList.add("markdown-docs"),$.t(this._docs),n=this._markdownRenderer.render(r),this._docs.appendChild(n.element),this._renderDisposeable.add(n),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))),this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)):this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(e,t){var i=new $.b(e,t);$.b.equals(i,this._size)||(this._size=i,$.X(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};re=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}([function(e,t){return function(i,n){t(i,n,e)}}(1,b.a)],re);class se{constructor(e,t){this.widget=e,this._editor=t,this._disposables=new a.b,this._added=!1,this._resizable=new ne,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let i,n,o=0,r=0;this._disposables.add(this._resizable.onDidWillResize(()=>{i=this._topLeft,n=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(e=>{if(i&&n){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(r=n.width-e.dimension.width,t=!0),e.north&&(o=n.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+o,left:i.left+r})}e.done&&(i=void 0,n=void 0,o=0,r=0,this._userSize=e.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var e;this._anchorBox&&this._placeAtAnchor(this._anchorBox,null!=(e=this._userSize)?e:this.widget.size)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e){e=$.D(e);this._anchorBox=e,this._placeAtAnchor(this._anchorBox,null!=(e=this._userSize)?e:this.widget.size)}_placeAtAnchor(e,t){var i=$.z(document.body),n=this.widget.getLayoutInfo();let o,r,s=new $.b(220,2*n.lineHeight),a=0,l=e.top;var d=e.top+e.height-n.borderHeight;let h,c,u,g=i.width-(e.left+e.width+n.borderWidth+n.horizontalPadding),p=(a=-n.borderWidth+e.left+e.width,c=!0,o=new $.b(g,i.height-e.top-n.borderHeight-n.verticalPadding),r=o.with(void 0,e.top+e.height-n.borderHeight-n.verticalPadding),t.width>g&&(e.left>g&&(g=e.left-n.borderWidth-n.horizontalPadding,c=!1,a=Math.max(n.horizontalPadding,e.left-t.width-n.borderWidth),o=o.with(g),r=o.with(void 0,r.height)),e.width>1.3*g)&&i.height-(e.top+e.height)>e.height&&(g=e.width,a=e.left,l=-n.borderWidth+e.top+e.height,o=new $.b(e.width-n.borderHeight,i.height-e.top-e.height-n.verticalPadding),r=o.with(void 0,e.top-n.verticalPadding),s=s.with(o.width)),t.height);i=Math.max(o.height,r.height),p>i&&(p=i),u=p<=o.height?(h=!0,o):(h=!1,r),this._applyTopLeft({left:a,top:h?l:d-p}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!h,c,h,!c),this._resizable.minSize=s,this._resizable.maxSize=u,this._resizable.layout(p,Math.min(u.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=this._topLeft.left+"px",this.getDomNode().style.top=this._topLeft.top+"px"}}var ae=i("5aa5"),le=(k=i("7944"),i("7e32"));E=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},V=function(e,t){return function(i,n){t(i,n,e)}};class de extends k.a{updateLabel(){var e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=Object(D.a)("ddd","{0} ({1})",this._action.label,de.symbolPrintEnter(e)))}static symbolPrintEnter(e){return null==(e=e.getLabel())?void 0:e.replace(/\benter\b/gi,"⏎")}}let he=class{constructor(e,t,i,n){this._menuService=i,this._contextKeyService=n,this._menuDisposables=new a.b,this.element=$.q(e,$.a(".suggest-status-bar")),i=e=>e instanceof le.c?t.createInstance(de,e,void 0):void 0,this._leftActions=new ae.a(this.element,{actionViewItemProvider:i}),this._rightActions=new ae.a(this.element,{actionViewItemProvider:i}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(O.g,this._contextKeyService),t=()=>{var t,i,n=[],o=[];for([t,i]of e.getActions())("left"===t?n:o).push(...i);this._leftActions.clear(),this._leftActions.push(n),this._rightActions.clear(),this._rightActions.push(o)};this._menuDisposables.add(e.onDidChange(()=>t())),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};he=E([V(1,b.a),V(2,le.a),V(3,N.b)],he);var ce,ue=i("c4e3"),ge=i("b589"),pe=i("82c9"),me=i("32a4");function fe(e,t,i,n){var o=n===ce.ROOT_FOLDER?["rootfolder-icon"]:n===ce.FOLDER?["folder-icon"]:["file-icon"];if(i){let s;if(s=i.scheme===ge.c.data?pe.a.parseMetaData(i).get(pe.a.META_DATA_LABEL):_e(Object(pe.c)(i).toLowerCase()),n===ce.FOLDER)o.push(s+"-name-folder-icon");else{if(s){if(o.push(s+"-name-file-icon"),s.length<=255){var r=s.split(".");for(let e=1;e<r.length;e++)o.push(r.slice(e).join(".")+"-ext-file-icon")}o.push("ext-file-icon")}n=function(e,t,i){if(!i)return null;let n=null;var o;return i.scheme===ge.c.data?(o=pe.a.parseMetaData(i).get(pe.a.META_DATA_MIME))&&(n=t.getModeId(o)):(o=e.getModel(i))&&(n=o.getModeId()),n&&n!==me.c?n:t.getModeIdByFilepathOrFirstLine(i)}(e,t,i),n&&o.push(_e(n)+"-lang-file-icon")}}return o}function _e(e){return e.replace(/[\11\12\14\15\40]/g,"/")}(z=ce=ce||{})[z.FILE=0]="FILE",z[z.FOLDER=1]="FOLDER",z[z.ROOT_FOLDER=2]="ROOT_FOLDER";v=i("1b69");var be=i("6d8e");k=i("bf5b"),E=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},V=function(e,t){return function(i,n){t(i,n,e)}};function ve(e){return"suggest-aria-id:"+e}const Ce=Object(k.b)("suggest-more-info",te.b.chevronRight,D.a("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),we=((z=class e{extract(t,i){if(t.textLabel.match(e._regexStrict))return i[0]=t.textLabel,!0;if(t.completion.detail&&t.completion.detail.match(e._regexStrict))return i[0]=t.completion.detail,!0;if("string"==typeof t.completion.documentation){var n=e._regexRelaxed.exec(t.completion.documentation);if(n&&(0===n.index||n.index+n[0].length===t.completion.documentation.length))return i[0]=n[0],!0}return!1}})._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,z._regexStrict=new RegExp(`^${z._regexRelaxed.source}$`,"i"),new z);let ye=class{constructor(e,t,i,n){this._editor=e,this._modelService=t,this._modeService=i,this._themeService=n,this._onDidToggleDetails=new M.b,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=Object.create(null);t.disposables=new a.b,t.root=e,t.root.classList.add("show-file-icons"),t.icon=Object($.q)(e,Object($.a)(".icon")),t.colorspan=Object($.q)(t.icon,Object($.a)("span.colorspan")),e=Object($.q)(e,Object($.a)(".contents"));const i=Object($.q)(e,Object($.a)(".main")),n=(t.iconContainer=Object($.q)(i,Object($.a)(".icon-label.codicon")),t.left=Object($.q)(i,Object($.a)("span.left")),t.right=Object($.q)(i,Object($.a)("span.right")),t.iconLabel=new ue.a(t.left,{supportHighlights:!0,supportIcons:!0}),t.disposables.add(t.iconLabel),t.parametersLabel=Object($.q)(t.left,Object($.a)("span.signature-label")),t.qualifierLabel=Object($.q)(t.left,Object($.a)("span.qualifier-label")),t.detailsLabel=Object($.q)(t.right,Object($.a)("span.details-label")),t.readMore=Object($.q)(t.right,Object($.a)("span.readMore"+Y.d.asCSSSelector(Ce))),t.readMore.title=D.a("readMore","Read More"),()=>{var e=this._editor.getOptions(),n=e.get(42),o=n.fontFamily,r=n.fontFeatureSettings,s=e.get(107)||n.fontSize;e=e.get(108)||n.lineHeight,n=n.fontWeight,s+="px",e+="px";t.root.style.fontSize=s,t.root.style.fontWeight=n,i.style.fontFamily=o,i.style.fontFeatureSettings=r,i.style.lineHeight=e,t.icon.style.height=e,t.icon.style.width=e,t.readMore.style.height=e,t.readMore.style.width=e});return n(),t.disposables.add(this._editor.onDidChangeConfiguration(e=>{(e.hasChanged(42)||e.hasChanged(107)||e.hasChanged(108))&&n()})),t}renderElement(e,t,i){var n,r=e["completion"],s=(t=(i.root.id=ve(t),{labelEscapeNewLines:!(i.colorspan.style.backgroundColor=""),matches:Object(A.c)(e.score)}),[]);19===r.kind&&we.extract(e,s)?(i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=s[0]):20===r.kind&&this._themeService.getFileIconTheme().hasFileIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",s=fe(this._modelService,this._modeService,be.a.from({scheme:"fake",path:e.textLabel}),ce.FILE),n=fe(this._modelService,this._modeService,be.a.from({scheme:"fake",path:r.detail}),ce.FILE),t.extraClasses=s.length>n.length?s:n):23===r.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",t.extraClasses=Object(o.k)([fe(this._modelService,this._modeService,be.a.from({scheme:"fake",path:e.textLabel}),ce.FOLDER),fe(this._modelService,this._modeService,be.a.from({scheme:"fake",path:r.detail}),ce.FOLDER)])):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...Object(f.I)(r.kind).split(" "))),r.tags&&0<=r.tags.indexOf(1)&&(t.extraClasses=(t.extraClasses||[]).concat(["deprecated"]),t.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,t),"string"==typeof r.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=Se(r.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=Se(r.label.detail||""),i.detailsLabel.textContent=Se(r.label.description||""),i.root.classList.remove("string-label")),(this._editor.getOption(106).showInlineDetails?Object($.W):Object($.K))(i.detailsLabel),oe(e)?(i.right.classList.add("can-expand-details"),Object($.W)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),Object($.K)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function Se(e){return e.replace(/\r\n|\r|\n/g,"")}ye=E([V(1,v.a),V(2,w.a),V(3,Y.b)],ye);var Le=i("d379"),xe=i("49d9"),ke=(k=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},z=function(e,t){return function(i,n){t(i,n,e)}},function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});const De=Object(X.wc)("editorSuggestWidget.background",{dark:X.Y,light:X.Y,hc:X.Y},D.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),Ne=Object(X.wc)("editorSuggestWidget.border",{dark:X.Z,light:X.Z,hc:X.Z},D.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),Oe=Object(X.wc)("editorSuggestWidget.foreground",{dark:X.B,light:X.B,hc:X.B},D.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),Ee=Object(X.wc)("editorSuggestWidget.selectedForeground",{dark:X.tc,light:X.tc,hc:X.tc},D.a("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),Ie=Object(X.wc)("editorSuggestWidget.selectedIconForeground",{dark:X.uc,light:X.uc,hc:X.uc},D.a("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget.")),Me=Object(X.wc)("editorSuggestWidget.selectedBackground",{dark:X.sc,light:X.sc,hc:X.sc},D.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),Te=Object(X.wc)("editorSuggestWidget.highlightForeground",{dark:X.Kb,light:X.Kb,hc:X.Kb},D.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),Ae=Object(X.wc)("editorSuggestWidget.focusHighlightForeground",{dark:X.Ib,light:X.Ib,hc:X.Ib},D.a("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));class Re{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/`+(t instanceof Le.a)}restore(){var e=null!=(e=this._service.get(this._key,0))?e:"";try{var t=JSON.parse(e);if($.b.is(t))return $.b.lift(t)}catch(e){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let Pe=class e{constructor(e,t,i,n,o){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new _.g,this._disposables=new a.b,this._onDidSelect=new M.b,this._onDidFocus=new M.b,this._onDidHide=new M.b,this._onDidShow=new M.b,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new M.b,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new ne,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new Fe(this,e),this._persistedSize=new Re(t,e);class r{constructor(e,t,i=!1,n=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=n}}let s;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),s=new r(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(e=>{var t;if(this._resize(e.dimension.width,e.dimension.height),s&&(s.persistHeight=s.persistHeight||!!e.north||!!e.south,s.persistWidth=s.persistWidth||!!e.east||!!e.west),e.done){if(s){var{itemHeight:e,defaultSize:i}=this.getLayoutInfo();e=Math.round(e/2);let{width:n,height:o}=this.element.size;(!s.persistHeight||Math.abs(s.currentSize.height-o)<=e)&&(o=null!=(t=null==(t=s.persistedSize)?void 0:t.height)?t:i.height),(!s.persistWidth||Math.abs(s.currentSize.width-n)<=e)&&(n=null!=(e=null==(t=s.persistedSize)?void 0:t.width)?e:i.width),this._persistedSize.store(new $.b(n,o))}this._contentWidget.unlockPreference(),s=void 0}})),this._messageElement=$.q(this.element.domNode,$.a(".message")),this._listElement=$.q(this.element.domNode,$.a(".tree")),t=o.createInstance(re,this.editor),t.onDidClose(this.toggleDetails,this,this._disposables),this._details=new se(t,this.editor);const l=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(106).showIcons);l(),e=o.createInstance(ye,this.editor),this._disposables.add(e),this._disposables.add(e.onDidToggleDetails(()=>this.toggleDetails())),this._list=new G.c("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[e],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,accessibilityProvider:{getRole:()=>"option",getAriaLabel:e=>{var t,i;return e.isResolved&&this._isDetailsVisible()?(({documentation:t,detail:i}=e.completion),i=R.v("{0}{1}",i||"",t?"string"==typeof t?t:t.value:""),D.a("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",e.textLabel,i)):e.textLabel},getWidgetAriaLabel:()=>D.a("suggest","Suggest"),getWidgetRole:()=>"listbox"}}),this._status=o.createInstance(he,this.element.domNode);const d=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(106).showStatusBar);d(),this._disposables.add(Object(Z.b)(this._list,n,{listInactiveFocusBackground:Me,listInactiveFocusOutline:X.b})),this._disposables.add(n.onDidColorThemeChange(e=>this._onThemeChange(e))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown(e=>this._onListMouseDownOrTap(e))),this._disposables.add(this._list.onTap(e=>this._onListMouseDownOrTap(e))),this._disposables.add(this._list.onDidChangeSelection(e=>this._onListSelection(e))),this._disposables.add(this._list.onDidChangeFocus(e=>this._onListFocus(e))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(e=>{e.hasChanged(106)&&(d(),l())})),this._ctxSuggestWidgetVisible=O.b.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=O.b.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=O.b.MultipleSuggestions.bindTo(i),this._disposables.add($.o(this._details.widget.domNode,"keydown",e=>{this._onDetailsKeydown.fire(e)})),this._disposables.add(this.editor.onMouseDown(e=>this._onEditorMouseDown(e)))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),null!=(e=this._loadingTimeout)&&e.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){void 0!==e.element&&void 0!==e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){var i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){var t=e.getColor(De);t&&(this.element.domNode.style.backgroundColor=t.toString(),this._messageElement.style.backgroundColor=t.toString(),this._details.widget.domNode.style.backgroundColor=t.toString()),t=e.getColor(Ne),t&&(this.element.domNode.style.borderColor=t.toString(),this._messageElement.style.borderColor=t.toString(),this._status.element.style.borderTopColor=t.toString(),this._details.widget.domNode.style.borderColor=t.toString(),this._detailsBorderColor=t.toString()),t=e.getColor(X.db);t&&(this._detailsFocusBorderColor=t.toString()),this._details.widget.borderWidth="hc"===e.type?2:1}_onListFocus(e){if(!this._ignoreFocusEvents)if(e.elements.length){if(this._completionModel){const t=e.elements[0],i=e.indexes[0];t!==this._focusedItem&&(null!=(e=this._currentSuggestionDetails)&&e.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=t,this._list.reveal(i),this._currentSuggestionDetails=Object(_.h)(e=>ke(this,void 0,void 0,(function*(){const i=Object(_.i)(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250);e.onCancellationRequested(()=>i.dispose());var n=yield t.resolve(e);return i.dispose(),n}))),this._currentSuggestionDetails.then(()=>{i>=this._list.length||t!==this._list.element(i)||(this._ignoreFocusEvents=!0,this._list.splice(i,1,[t]),this._list.setFocus([i]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:ve(i)}))}).catch(r.f)),this._onDidFocus.fire({item:t,index:i,model:this._completionModel})}}else this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0})}_setState(t){if(this._state!==t)switch(this._state=t,this.element.domNode.classList.toggle("frozen",4===t),this.element.domNode.classList.remove("message"),t){case 0:$.K(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=e.LOADING_MESSAGE,$.K(this._listElement,this._status.element),$.W(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,$.K(this._listElement,this._status.element),$.W(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:case 4:$.K(this._messageElement),$.W(this._listElement,this._status.element),this._show();break;case 5:$.K(this._messageElement),$.W(this._listElement,this._status.element),this._details.show(),this._show()}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(e,t){0!==this._state||(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto)||(this._loadingTimeout=Object(_.i)(()=>this._setState(1),t))}showSuggestions(e,t,i,n){var o;this._contentWidget.setPosition(this.editor.getPosition()),null!=(o=this._loadingTimeout)&&o.dispose(),null!=(o=this._currentSuggestionDetails)&&o.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state?this._setState(4):(e=0===(o=this._completionModel.items.length),this._ctxSuggestWidgetMultipleSuggestions.set(1<o),e?(this._setState(n?0:2),this._completionModel=void 0):(this._focusedItem=void 0,this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus([t]),this._layout(this.element.size),this._detailsBorderColor&&(this._details.widget.domNode.style.borderColor=this._detailsBorderColor)))}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._detailsBorderColor&&(this._details.widget.domNode.style.borderColor=this._detailsBorderColor)):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._detailsFocusBorderColor)&&(this._details.widget.domNode.style.borderColor=this._detailsFocusBorderColor)}toggleDetails(){this._isDetailsVisible()?(this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!oe(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){null!=(e=this._loadingTimeout)&&e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();var e=this._persistedSize.restore(),t=Math.ceil(4.3*this.getLayoutInfo().itemHeight);e&&e.height<t&&this._persistedSize.store(e.with(void 0,t))}isFrozen(){return 4===this._state}_afterRender(e){null===e?this._isDetailsVisible()&&this._details.hide():2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&this._details.show(),this._positionDetails())}_layout(e){if(this.editor.hasModel()&&this.editor.getDomNode()){var t=$.z(document.body),i=this.getLayoutInfo();let h=(e=e||i.defaultSize).height,c=e.width;if(this._status.element.style.lineHeight=i.itemHeight+"px",2===this._state||1===this._state)h=i.itemHeight+i.borderHeight,c=i.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new $.b(c,h),this._contentWidget.setPreference(2);else{var n=t.width-i.borderHeight-2*i.horizontalPadding,o=(c>n&&(c=n),this._completionModel?this._completionModel.stats.pLabelLen*i.typicalHalfwidthCharacterWidth:c),r=i.statusBarHeight+this._list.contentHeight+i.borderHeight,s=i.itemHeight+i.statusBarHeight,a=$.D(this.editor.getDomNode()),l=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),d=a.top+l.top+l.height;t=Math.min(t.height-d-i.verticalPadding,r),d=a.top+l.top-i.verticalPadding,a=Math.min(d,r);let u=Math.min(Math.max(a,t)+i.borderHeight,r);(h=(h=h===(null==(l=this._cappedHeight)?void 0:l.capped)?this._cappedHeight.wanted:h)<s?s:h)>u&&(h=u),u=h>t||this._forceRenderingAbove&&150<d?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),a):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),t),this.element.preferredSize=new $.b(o,i.defaultSize.height),this.element.maxSize=new $.b(n,u),this.element.minSize=new $.b(220,s),this._cappedHeight=h===r?{wanted:null!=(d=null==(l=this._cappedHeight)?void 0:l.wanted)?d:e.height,capped:h}:void 0}this._resize(c,h)}}_resize(e,t){var{width:i,height:n}=this.element.maxSize,i=(e=Math.min(i,e),t=Math.min(n,t),this.getLayoutInfo())["statusBarHeight"];this._list.layout(t-i,e),this._listElement.style.height=t-i+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode)}getLayoutInfo(){var e=this.editor.getOption(42),t=Object(xe.b)(this.editor.getOption(108)||e.lineHeight,8,1e3),i=this.editor.getOption(106).showStatusBar&&2!==this._state&&1!==this._state?t:0,n=this._details.widget.borderWidth,o=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:o,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new $.b(430,i+12*t+o)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};Pe.LOADING_MESSAGE=D.a("suggestWidget.loading","Loading..."),Pe.NO_SUGGESTIONS_MESSAGE=D.a("suggestWidget.noSuggestions","No suggestions."),Pe=k([z(1,m.a),z(2,N.b),z(3,Y.b),z(4,b.a)],Pe);class Fe{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){var{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new $.b(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}Object(Y.f)((e,t)=>{var i=e.getColor(Te),n=(i&&t.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: ${i}; }`),e.getColor(Ae));i&&t.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight { color: ${n}; }`),i=e.getColor(Oe),i&&t.addRule(`.monaco-editor .suggest-widget, .monaco-editor .suggest-details { color: ${i}; }`),n=e.getColor(Ee),n&&t.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused { color: ${n}; }`),i=e.getColor(Ie),i&&t.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon { color: ${i}; }`),n=e.getColor(X.Jc),n&&t.addRule(`.monaco-editor .suggest-details a { color: ${n}; }`),i=e.getColor(X.Ic),i&&t.addRule(`.monaco-editor .suggest-details a:hover { color: ${i}; }`),n=e.getColor(X.Hc);n&&t.addRule(`.monaco-editor .suggest-details code { background-color: ${n}; }`)}),E=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},v=function(e,t){return function(i,n){t(i,n,e)}};let Be=class e{constructor(t,i){this._editor=t,this._enabled=!1,this._ckAtEnd=e.AtEnd.bindTo(i),this._configListener=this._editor.onDidChangeConfiguration(e=>e.hasChanged(111)&&this._update()),this._update()}dispose(){var e;this._configListener.dispose(),null!=(e=this._selectionListener)&&e.dispose(),this._ckAtEnd.reset()}_update(){var e="on"===this._editor.getOption(111);this._enabled!==e&&(this._enabled=e,this._enabled?(this._selectionListener=this._editor.onDidChangeCursorSelection(e=()=>{var e,t;this._editor.hasModel()&&(t=this._editor.getModel(),e=this._editor.getSelection(),t=t.getWordAtPosition(e.getStartPosition()))?this._ckAtEnd.set(t.endColumn===e.getStartPosition().column):this._ckAtEnd.set(!1)}),e()):this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0))}};Be.AtEnd=new N.c("atEndOfWord",!1),Be=E([v(1,N.b)],Be);var je=i("ef8e9"),We=i("3170");class Ve{constructor(e,t,i){this._disposables=new a.b,this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(n=>{this._active&&!t.isFrozen()&&(n=n.charCodeAt(n.length-1),this._active.acceptCharacters.has(n))&&e.getOption(0)&&i(this._active.item)}))}_onItem(e){if(e&&Object(o.n)(e.item.completion.commitCharacters)){if(!this._active||this._active.item.item!==e.item){var t=new We.b;for(const i of e.item.completion.commitCharacters)0<i.length&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}}else this.reset()}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}class He{constructor(e,t){this._disposables=new a.b,this._lastOvertyped=[],this._empty=!0,this._disposables.add(e.onWillType(()=>{if(this._empty&&e.hasModel()){var t=e.getSelections(),i=t.length;let r=!1;for(let e=0;e<i;e++)if(!t[e].isEmpty()){r=!0;break}if(r){this._lastOvertyped=[];var n=e.getModel();for(let e=0;e<i;e++){var o=t[e];if(n.getValueLengthInRange(o)>He._maxSelectionLength)return;this._lastOvertyped[e]={value:n.getValueInRange(o),multiline:o.startLineNumber!==o.endLineNumber}}this._empty=!1}}})),this._disposables.add(t.onDidCancel(e=>{this._empty||e.retrigger||(this._empty=!0)}))}getLastOvertypedInfo(e){if(!this._empty&&0<=e&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}He._maxSelectionLength=51200;var ze=i("7061"),Ue=i("30db"),Ke=i("e58e");w=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},V=function(e,t){return function(i,n){t(i,n,e)}};class qe{constructor(e,t){var i;this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column&&(i=e.getOffsetAt(t),i=e.getPositionAt(i+1),this._marker=e.deltaDecorations([],[{range:h.a.fromPositions(t,i),options:{description:"suggest-line-suffix",stickiness:1}}]))}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){var t;return this._model.isDisposed()||this._position.lineNumber!==e.lineNumber?0:this._marker?(t=this._model.getDecorationRange(this._marker[0]),this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)):this._model.getLineMaxColumn(e.lineNumber)-e.column}}let $e=class e{constructor(e,t,i,n,o,r){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=o,this._logService=r,this._lineSuffix=new a.d,this._toDispose=new a.b,this.editor=e,this.model=o.createInstance(q,this.editor);const l=O.b.InsertMode.bindTo(n);l.set(e.getOption(106).insertMode),this.model.onDidTrigger(()=>l.set(e.getOption(106).insertMode)),this.widget=this._toDispose.add(new _.b(()=>{var e=this._instantiationService.createInstance(Pe,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect(e=>this._insertSuggestion(e,0),this));const t=new Ve(this.editor,e,e=>this._insertSuggestion(e,2)),i=(this._toDispose.add(t),this._toDispose.add(this.model.onDidSuggest(e=>{0===e.completionModel.items.length&&t.reset()})),O.b.MakesTextEdit.bindTo(this._contextKeyService)),n=O.b.HasInsertAndReplaceRange.bindTo(this._contextKeyService),o=O.b.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Object(a.i)(()=>{i.reset(),n.reset(),o.reset()})),this._toDispose.add(e.onDidFocus(({item:e})=>{var t=this.editor.getPosition(),r=e.editStart.column,s=t.column;let a=!0;"smart"!==this.editor.getOption(1)||2!==this.model.state||e.completion.command||e.completion.additionalTextEdits||4&e.completion.insertTextRules||s-r!==e.completion.insertText.length||(r=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:r,endLineNumber:t.lineNumber,endColumn:s}),a=r!==e.completion.insertText),i.set(a),n.set(!ze.a.equals(e.editInsertEnd,e.editReplaceEnd)),o.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)})),this._toDispose.add(e.onDetailsKeyDown(e=>{e.toKeybinding().equals(new s.e(!0,!1,!1,!1,33))||Ue.f&&e.toKeybinding().equals(new s.e(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeybinding().isModifierKey()||this.editor.focus()})),e})),this._overtypingCapturer=this._toDispose.add(new _.b(()=>this._toDispose.add(new He(this.editor,this.model)))),this._alternatives=this._toDispose.add(new _.b(()=>this._toDispose.add(new I(this.editor,this._contextKeyService)))),this._toDispose.add(o.createInstance(Be,e)),this._toDispose.add(this.model.onDidTrigger(e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new qe(this.editor.getModel(),e.position)})),this._toDispose.add(this.model.onDidSuggest(e=>{var t;e.shy||(t=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.auto))})),this._toDispose.add(this.model.onDidCancel(e=>{e.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));let d=O.b.AcceptSuggestionsOnEnter.bindTo(n),h=()=>{var e=this.editor.getOption(1);d.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>h())),h()}static get(t){return t.getContribution(e.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(e&&e.item){if(this.editor.hasModel()){const s=this.editor.getModel(),a=s.getAlternativeVersionId(),c=e["item"];var i=[];const p=new F.b;1&t||this.editor.pushUndoStop();var n=this.getOverwriteInfo(c,Boolean(8&t));if(this._memoryService.memorize(s,this.editor.getPosition(),c),Array.isArray(c.completion.additionalTextEdits)){var o=l.c.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",c.completion.additionalTextEdits.map(e=>d.a.replace(h.a.lift(e.range),e.text))),o.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!c.isResolved){const e=new Ke.a(!0);let n;const o=s.onDidChangeContent(e=>{if(e.isFlush)p.cancel(),o.dispose();else for(var t of e.changes)t=h.a.getEndPosition(t.range),n&&!ze.a.isBefore(t,n)||(n=t)});let r=t,a=(t|=2,!1),u=this.editor.onWillType(()=>{u.dispose(),a=!0,2&r||this.editor.pushUndoStop()});i.push(c.resolve(p.token).then(()=>{if(!c.completion.additionalTextEdits||p.token.isCancellationRequested)return!1;if(n&&c.completion.additionalTextEdits.some(e=>ze.a.isBefore(n,h.a.getStartPosition(e.range))))return!1;a&&this.editor.pushUndoStop();var e=l.c.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",c.completion.additionalTextEdits.map(e=>d.a.replace(h.a.lift(e.range),e.text))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&r||this.editor.pushUndoStop(),!0}).then(t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),o.dispose(),u.dispose()}))}let m=c.completion["insertText"];4&c.completion.insertTextRules||(m=g.c.escape(m)),u.SnippetController2.get(this.editor).insert(m,{overwriteBefore:n.overwriteBefore,overwriteAfter:n.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&c.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),c.completion.command?c.completion.command.id===Ge.id?this.model.trigger({auto:!0,shy:!1},!0):(i.push(this._commandService.executeCommand(c.completion.command.id,...c.completion.command.arguments?[...c.completion.command.arguments]:[]).catch(r.f)),this.model.cancel()):this.model.cancel(),4&t&&this._alternatives.value.set(e,e=>{for(p.cancel();s.canUndo();){a!==s.getAlternativeVersionId()&&s.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}}),this._alertCompletionItem(c),Promise.all(i).finally(()=>{this.model.clear(),p.dispose()})}}else this._alternatives.value.reset(),this.model.cancel(),this.model.clear()}getOverwriteInfo(e,t){Object(je.c)(this.editor.hasModel());let i="replace"===this.editor.getOption(106).insertMode;t&&(i=!i);t=e.position.column-e.editStart.column;var n=(i?e.editReplaceEnd:e.editInsertEnd).column-e.position.column;return{overwriteBefore:t+(this.editor.getPosition().column-e.position.column),overwriteAfter:n+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){Object(o.n)(e.completion.additionalTextEdits)&&(e=D.a("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length),Object(n.a)(e))}triggerSuggest(e){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,e),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(this.editor.hasModel()){const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=e=>{var t,i,n;return!!(4&e.completion.insertTextRules||e.completion.additionalTextEdits)||(t=this.editor.getPosition(),i=e.editStart.column,(n=t.column)-i!==e.completion.insertText.length)||this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:n})!==e.completion.insertText};M.c.once(this.model.onDidTrigger)(e=>{let t=[];M.c.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{Object(a.f)(t),i()},void 0,t),this.model.onDidSuggest(({completionModel:e})=>{var o,r;Object(a.f)(t),0!==e.items.length&&(o=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),r=e.items[o],n(r))?(this.editor.pushUndoStop(),this._insertSuggestion({index:o,item:r,model:e},7)):i()},void 0,t)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(t.lineNumber,0),this.editor.focus()}}acceptSelectedSuggestion(e,t){var i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}};$e.ID="editor.contrib.suggestController",$e=w([V(1,y),V(2,S.b),V(3,N.b),V(4,b.a),V(5,H.b)],$e);class Ge extends t.b{constructor(){super({id:Ge.id,label:D.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:N.a.and(c.a.writable,c.a.hasCompletionItemProvider),kbOpts:{kbExpr:c.a.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t){t=$e.get(t),t&&t.triggerSuggest()}}Ge.id="editor.action.triggerSuggest",Object(t.l)($e.ID,$e),Object(t.j)(Ge),k=t.c.bindToContribution($e.get),Object(t.k)(new k({id:"acceptSelectedSuggestion",precondition:O.b.Visible,handler(e){e.acceptSelectedSuggestion(!0,!1)}})),C.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:N.a.and(O.b.Visible,c.a.textInputFocus),primary:2,weight:190}),C.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:N.a.and(O.b.Visible,c.a.textInputFocus,O.b.AcceptSuggestionsOnEnter,O.b.MakesTextEdit),primary:3,weight:190}),le.d.appendMenuItem(O.g,{command:{id:"acceptSelectedSuggestion",title:D.a("accept.insert","Insert")},group:"left",order:1,when:O.b.HasInsertAndReplaceRange.toNegated()}),le.d.appendMenuItem(O.g,{command:{id:"acceptSelectedSuggestion",title:D.a("accept.insert","Insert")},group:"left",order:1,when:N.a.and(O.b.HasInsertAndReplaceRange,O.b.InsertMode.isEqualTo("insert"))}),le.d.appendMenuItem(O.g,{command:{id:"acceptSelectedSuggestion",title:D.a("accept.replace","Replace")},group:"left",order:1,when:N.a.and(O.b.HasInsertAndReplaceRange,O.b.InsertMode.isEqualTo("replace"))}),Object(t.k)(new k({id:"acceptAlternativeSelectedSuggestion",precondition:N.a.and(O.b.Visible,c.a.textInputFocus),kbOpts:{weight:190,kbExpr:c.a.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:O.g,group:"left",order:2,when:N.a.and(O.b.HasInsertAndReplaceRange,O.b.InsertMode.isEqualTo("insert")),title:D.a("accept.replace","Replace")},{menuId:O.g,group:"left",order:2,when:N.a.and(O.b.HasInsertAndReplaceRange,O.b.InsertMode.isEqualTo("replace")),title:D.a("accept.insert","Insert")}]})),S.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(t.k)(new k({id:"hideSuggestWidget",precondition:O.b.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:190,kbExpr:c.a.textInputFocus,primary:9,secondary:[1033]}})),Object(t.k)(new k({id:"selectNextSuggestion",precondition:N.a.and(O.b.Visible,O.b.MultipleSuggestions),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:190,kbExpr:c.a.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Object(t.k)(new k({id:"selectNextPageSuggestion",precondition:N.a.and(O.b.Visible,O.b.MultipleSuggestions),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:190,kbExpr:c.a.textInputFocus,primary:12,secondary:[2060]}})),Object(t.k)(new k({id:"selectLastSuggestion",precondition:N.a.and(O.b.Visible,O.b.MultipleSuggestions),handler:e=>e.selectLastSuggestion()})),Object(t.k)(new k({id:"selectPrevSuggestion",precondition:N.a.and(O.b.Visible,O.b.MultipleSuggestions),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:190,kbExpr:c.a.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Object(t.k)(new k({id:"selectPrevPageSuggestion",precondition:N.a.and(O.b.Visible,O.b.MultipleSuggestions),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:190,kbExpr:c.a.textInputFocus,primary:11,secondary:[2059]}})),Object(t.k)(new k({id:"selectFirstSuggestion",precondition:N.a.and(O.b.Visible,O.b.MultipleSuggestions),handler:e=>e.selectFirstSuggestion()})),Object(t.k)(new k({id:"toggleSuggestionDetails",precondition:O.b.Visible,handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:190,kbExpr:c.a.textInputFocus,primary:2058,mac:{primary:266}},menuOpts:[{menuId:O.g,group:"right",order:1,when:N.a.and(O.b.DetailsVisible,O.b.CanResolve),title:D.a("detail.more","show less")},{menuId:O.g,group:"right",order:1,when:N.a.and(O.b.DetailsVisible.toNegated(),O.b.CanResolve),title:D.a("detail.less","show more")}]})),Object(t.k)(new k({id:"toggleExplainMode",precondition:O.b.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),Object(t.k)(new k({id:"toggleSuggestionFocus",precondition:O.b.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:190,kbExpr:c.a.textInputFocus,primary:2570,mac:{primary:778}}})),Object(t.k)(new k({id:"insertBestCompletion",precondition:N.a.and(c.a.textInputFocus,N.a.equals("config.editor.tabCompletion","on"),Be.AtEnd,O.b.Visible.toNegated(),I.OtherSuggestions.toNegated(),u.SnippetController2.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest(Object(je.j)(t)?Object.assign({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:190,primary:2}})),Object(t.k)(new k({id:"insertNextSuggestion",precondition:N.a.and(c.a.textInputFocus,N.a.equals("config.editor.tabCompletion","on"),I.OtherSuggestions,O.b.Visible.toNegated(),u.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:190,kbExpr:c.a.textInputFocus,primary:2}})),Object(t.k)(new k({id:"insertPrevSuggestion",precondition:N.a.and(c.a.textInputFocus,N.a.equals("config.editor.tabCompletion","on"),I.OtherSuggestions,O.b.Visible.toNegated(),u.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:190,kbExpr:c.a.textInputFocus,primary:1026}})),Object(t.j)(class extends t.b{constructor(){super({id:"editor.action.resetSuggestSize",label:D.a("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){$e.get(t).resetWidgetSize()}})},"7aad":function(e,t,i){},"7ab3":function(e,t,i){"use strict";i.d(t,"c",(function(){return h})),i.d(t,"d",(function(){return c})),i.d(t,"a",(function(){return u})),i.d(t,"b",(function(){return g}));var n=i("3742"),o=i("30db"),r=i("1e93");let s,a,l;function d(){return s=s||new TextDecoder("UTF-16LE")}function h(){return l=l||(o.e()?d():a=a||new TextDecoder("UTF-16BE"))}const c="undefined"!=typeof TextDecoder;let u,g;function p(e,t,i){var n=[];let o=0;for(let a=0;a<i;a++){var s=r.b(e,t);t+=2,n[o++]=String.fromCharCode(s)}return n.join("")}g=c?(u=e=>new m(e),function(e,t,i){var n=new Uint16Array(e.buffer,t,i);return 0<i&&(65279===n[0]||65534===n[0])?p(e,t,i):d().decode(n)}):(u=e=>new f,p);class m{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){var e;return 0===this._bufferLength?"":(e=new Uint16Array(this._buffer.buffer,0,this._bufferLength),h().decode(e))}_flushBuffer(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}write1(e){var t=this._capacity-this._bufferLength;t<=1&&(0!=t&&!n.E(e)||this._flushBuffer()),this._buffer[this._bufferLength++]=e}appendASCII(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIIString(e){var t=e.length;if(this._bufferLength+t>=this._capacity)this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;else for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}class f{constructor(){this._pieces=[],this._piecesLen=0}reset(){this._pieces=[],this._piecesLen=0}build(){return this._pieces.join("")}write1(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCII(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCIIString(e){this._pieces[this._piecesLen++]=e}}},"7b4a":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o})),t=i("0a0f");const n=Object(t.c)("textResourceConfigurationService"),o=Object(t.c)("textResourcePropertiesService")},"7b59":function(e,t,i){},"7c3e":function(e,t,i){"use strict";i.r(t),i.d(t,"ContextMenuController",(function(){return m}));var n=i("dff7"),o=i("11f7"),r=i("f070"),s=i("a666"),a=(t=i("b2cc"),i("c101")),l=i("7e32"),d=i("4fc3"),h=i("533b"),c=i("6dec"),u=i("eff2"),g=i("30db"),p=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});let m=class e{constructor(e,t,i,n,r,a){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=r,this._menuService=a,this._toDispose=new s.b,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(e=>this._onContextMenu(e))),this._toDispose.add(this._editor.onMouseWheel(e=>{var t;0<this._contextMenuIsBeingShownCount&&(t=this._contextViewService.getContextViewElement(),(e=e.srcElement).shadowRoot&&o.F(t)===e.shadowRoot||this._contextViewService.hideContextView())})),this._toDispose.add(this._editor.onKeyDown(e=>{58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())}))}static get(t){return t.getContribution(e.ID)}_onContextMenu(e){if(this._editor.hasModel())if(this._editor.getOption(19)){if(12!==e.target.type&&(e.event.preventDefault(),e.event.stopPropagation(),6===e.target.type||7===e.target.type||1===e.target.type)){if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}}else this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position)}showContextMenu(e){var t;this._editor.getOption(19)&&this._editor.hasModel()&&(this._contextMenuService?0<(t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?l.b.SimpleEditorContext:l.b.EditorContext)).length&&this._doShowContextMenu(t,e):this._editor.focus())}_getMenuActions(e,t){var i,n=[],o=(t=this._menuService.createMenu(t,this._contextKeyService),t.getActions({arg:e.uri}));for(i of(t.dispose(),o)){var s,[,a]=i;let t=0;for(const i of a)i instanceof l.e?0<(s=this._getMenuActions(e,i.item.submenu)).length&&(n.push(new r.e(i.id,i.label,s)),t++):(n.push(i),t++);t&&n.push(new r.d)}return n.length&&n.pop(),n}_doShowContextMenu(e,t=null){if(this._editor.hasModel()){const s=this._editor.getOption(52);this._editor.updateOptions({hover:{enabled:!1}}),t||(this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render(),r=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),i=(n=o.D(this._editor.getDomNode())).left+r.left,n=n.top+r.top+r.height,t={x:i,y:n});var i,n,r=this._editor.getOption(114)&&!g.c;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:r?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:e=>{var t=this._keybindingFor(e);return t?new u.a(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0}):"function"==typeof e.getActionViewItem?e.getActionViewItem():new u.a(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:s})}})}}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){0<this._contextMenuIsBeingShownCount&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};m.ID="editor.contrib.contextmenu",m=i([p(1,h.a),p(2,h.b),p(3,d.b),p(4,c.a),p(5,l.a)],m);class f extends t.b{constructor(){super({id:"editor.action.showContextMenu",label:n.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:a.a.textInputFocus,primary:1092,weight:100}})}run(e,t){m.get(t).showContextMenu()}}Object(t.l)(m.ID,m),Object(t.j)(f)},"7ddc":function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var n=i("11f7"),o=i("561a");const r=new RegExp(`(\\\\)?\\$\\((${o.a.iconNameExpression}(?:${o.a.iconModifierExpression})?)\\)`,"g");function s(e){var t=new Array;let i,s=0;for(;null!==(a=r.exec(e));){i=a.index||0,t.push(e.substring(s,i)),s=(a.index||0)+a[0].length;var[,a,l]=a;t.push(a?`$(${l})`:(a={id:l},l=void 0,(l=n.a("span")).classList.add(...o.a.asClassNameArray(a)),l))}return s<e.length&&t.push(e.substring(s)),t}},"7de1":function(e,t,i){"use strict";i.d(t,"a",(function(){return w})),i.d(t,"b",(function(){return x}));var n=i("0f70"),o=i("650e"),r=i("11f7"),s=i("e32d"),a=i("a60f"),l=i("1898"),d=i("e8e3"),h=i("5fe7"),c=(t=i("6424"),i("308f")),u=i("a666"),g=i("aa3d"),p=i("9ee1"),m=i("42e39");function f(e,t){var i,n=[];for(i of t)if(!(e.start>=i.range.end)){if(e.end<i.range.start)break;var o=p.a.intersect(e,i.range);p.a.isEmpty(o)||n.push({range:o,size:i.size})}return n}function _({start:e,end:t},i){return{start:e+i,end:t+i}}class b{constructor(){this.groups=[],this._size=0}splice(e,t,i=[]){const n=i.length-t;var o=f({start:0,end:e},this.groups);t=f({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(e=>({range:_(e.range,n),size:e.size})),i=i.map((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size}));this.groups=function(e){{e=e.reduce((e,t)=>e.concat(t),[]);var t,i=[];let s=null;for(t of e){var n=t.range.start,o=t.range.end,r=t.size;s&&r===s.size?s.range.end=o:(s={range:{start:n,end:o},size:r},i.push(s))}return i}}([o,i,t]),this._size=this.groups.reduce((e,t)=>e+t.size*(t.range.end-t.range.start),0)}get count(){var e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,i=0;for(var n of this.groups){var o=n.range.end-n.range.start,r=i+o*n.size;if(e<r)return t+Math.floor((e-i)/n.size);t+=o,i=r}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(!(e<0)){let o=0,r=0;for(var t of this.groups){var i=t.range.end-t.range.start,n=r+i;if(e<n)return o+(e-r)*t.size;o+=i*t.size,r=n}}return-1}}class v{constructor(e){this.renderers=e,this.cache=new Map}alloc(e){let t=this.getTemplateCache(e).pop();var i,n;return t||(i=Object(r.a)(".monaco-list-row"),n=this.getRenderer(e).renderTemplate(i),t={domNode:i,templateId:e,templateData:n}),t}release(e){e&&this.releaseRow(e)}releaseRow(e){var{domNode:t,templateId:i}=e;if(t){t.classList.remove("scrolling");try{t.parentElement&&t.parentElement.removeChild(t)}catch(e){}}this.getTemplateCache(i).push(e)}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach((e,t)=>{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}),this.cache.clear()}getRenderer(e){var t=this.renderers.get(e);if(t)return t;throw new Error("No renderer found for "+e)}}i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s};const C={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(e){return[e]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class w{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class y{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class S{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let i=0;i<e.files.length;i++){var t=e.files.item(i);t&&(t.size||t.type)&&this.files.push(t)}}}getData(){return{types:this.types,files:this.files}}}class L{constructor(e){null!=e&&e.getSetSize?this.getSetSize=e.getSetSize.bind(e):this.getSetSize=(e,t,i)=>i,null!=e&&e.getPosInSet?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,null!=e&&e.getRole?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",null!=e&&e.isChecked?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class x{constructor(e,t,i,n=C){if(this.virtualDelegate=t,this.domId="list_id_"+ ++x.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new h.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.a.None,this.onDragLeaveTimeout=u.a.None,this.disposables=new u.b,this._onDidChangeContentHeight=new c.b,this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new b;for(const o of i)this.renderers.set(o.templateId,o);this.cache=this.disposables.add(new v(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!=typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=Object(g.e)(n,e=>e.horizontalScrolling,C.horizontalScrolling),this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=void 0===n.additionalScrollHeight?0:n.additionalScrollHeight,this.accessibilityProvider=new L(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",Object(g.e)(n,e=>e.transformOptimization,C.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(a.b.addTarget(this.rowsContainer)),this.scrollable=new m.a(Object(g.e)(n,e=>e.smoothScrolling,!1)?125:0,e=>Object(r.V)(e)),this.scrollableElement=this.disposables.add(new l.c(this.rowsContainer,{alwaysConsumeMouseWheel:Object(g.e)(n,e=>e.alwaysConsumeMouseWheel,C.alwaysConsumeMouseWheel),horizontal:1,vertical:Object(g.e)(n,e=>e.verticalScrollMode,C.verticalScrollMode),useShadows:Object(g.e)(n,e=>e.useShadows,C.useShadows),mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(Object(r.i)(this.rowsContainer,a.a.Change,e=>this.onTouchChange(e))),this.disposables.add(Object(r.i)(this.scrollableElement.getDomNode(),"scroll",e=>e.target.scrollTop=0)),this.disposables.add(Object(r.i)(this.domNode,"dragover",e=>this.onDragOver(this.toDragEvent(e)))),this.disposables.add(Object(r.i)(this.domNode,"drop",e=>this.onDrop(this.toDragEvent(e)))),this.disposables.add(Object(r.i)(this.domNode,"dragleave",e=>this.onDragLeave(this.toDragEvent(e)))),this.disposables.add(Object(r.i)(this.domNode,"dragend",e=>this.onDragEnd(e))),this.setRowLineHeight=Object(g.e)(n,e=>e.setRowLineHeight,C.setRowLineHeight),this.setRowHeight=Object(g.e)(n,e=>e.setRowHeight,C.setRowHeight),this.supportDynamicHeights=Object(g.e)(n,e=>e.supportDynamicHeights,C.supportDynamicHeights),this.dnd=Object(g.e)(n,e=>e.dnd,C.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:Object(r.C)(this.domNode)}),this.rowsContainer.style.width=Math.max(this.scrollWidth||0,this.renderWidth)+"px"}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(e){void 0!==e.additionalScrollHeight&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.mouseWheelScrollSensitivity&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){var n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o=p.a.intersect(n,{start:e,end:e+t}),r=new Map;for(let u=o.start;u<o.end;u++){var s=this.items[u];if(s.dragStartDisposable.dispose(),s.row){let e=r.get(s.templateId);e||(e=[],r.set(s.templateId,e));var a=this.renderers.get(s.templateId);a&&a.disposeElement&&a.disposeElement(s.element,u,s.row.templateData,s.size),e.push(s.row)}s.row=null}var l={start:e+t,end:this.items.length},d=p.a.intersect(l,n);l=p.a.relativeComplement(l,n),n=i.map(e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.a.None}));let h;0===e&&t>=this.items.length?(this.rangeMap=new b,this.rangeMap.splice(0,0,n),h=this.items,this.items=n):(this.rangeMap.splice(e,t,n),h=this.items.splice(e,t,...n));const c=i.length-t,g=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);n=_(d,c);var m=p.a.intersect(g,n);for(let u=m.start;u<m.end;u++)this.updateItemInDOM(this.items[u],u);for(const u of p.a.relativeComplement(n,g))for(let e=u.start;e<u.end;e++)this.removeItemFromDOM(e);t=l.map(e=>_(e,c)),d=[{start:e,end:e+i.length},...t].map(e=>p.a.intersect(g,e));var f=this.getNextToLastElement(d);for(const u of d)for(let e=u.start;e<u.end;e++){var v=this.items[e];v=r.get(v.templateId),v=null==v?void 0:v.pop();this.insertItemInDOM(e,f,v)}for(const u of r.values())for(const e of u)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),h.map(e=>e.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=Object(r.V)(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth()):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(this.horizontalScrolling){let e=0;for(const t of this.items)void 0!==t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10})}}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(e){return this.items[e].element}domElement(e){return e=this.items[e].row,e&&e.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){e={height:"number"==typeof e?e:Object(r.B)(this.domNode)},this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,e.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(e),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights)&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:Object(r.C)(this.domNode)})}render(e,t,i,n,o,r=!1){var s=this.getRenderRange(t,i),a=p.a.relativeComplement(s,e),l=p.a.relativeComplement(e,s),d=this.getNextToLastElement(a);if(r){var h=p.a.intersect(e,s);for(let e=h.start;e<h.end;e++)this.updateItemInDOM(this.items[e],e)}for(const c of a)for(let e=c.start;e<c.end;e++)this.insertItemInDOM(e,d);for(const c of l)for(let e=c.start;e<c.end;e++)this.removeItemFromDOM(e);void 0!==n&&(this.rowsContainer.style.left=`-${n}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==o&&(this.rowsContainer.style.width=Math.max(o,this.renderWidth)+"px"),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t,i){const n=this.items[e];if(n.row||(n.row=null!=i?i:this.cache.alloc(n.templateId)),i=this.accessibilityProvider.getRole(n.element)||"listitem",n.row.domNode.setAttribute("role",i),i=this.accessibilityProvider.isChecked(n.element),void 0!==i&&n.row.domNode.setAttribute("aria-checked",String(!!i)),n.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(n.row.domNode,t):this.rowsContainer.appendChild(n.row.domNode)),this.updateItemInDOM(n,e),i=this.renderers.get(n.templateId),!i)throw new Error("No renderer found for template id "+n.templateId);i&&i.renderElement(n.element,e,n.row.templateData,n.size);const o=this.dnd.getDragURI(n.element);n.dragStartDisposable.dispose(),n.row.domNode.draggable=!!o,o&&(n.dragStartDisposable=Object(r.i)(n.row.domNode,"dragstart",e=>this.onDragStart(n.element,o,e))),this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){var t;e.row&&e.row.domNode&&(e.row.domNode.style.width=n.g?"-moz-fit-content":"fit-content",e.width=Object(r.C)(e.row.domNode),(t=window.getComputedStyle(e.row.domNode)).paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width="")}updateItemInDOM(e,t){e.row.domNode.style.top=this.elementTop(t)+"px",this.setRowHeight&&(e.row.domNode.style.height=e.size+"px"),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=e.size+"px"),e.row.domNode.setAttribute("data-index",""+t),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){var t,i=this.items[e];i.dragStartDisposable.dispose(),i.row&&((t=this.renderers.get(i.templateId))&&t.disposeElement&&t.disposeElement(i.element,e,i.row.templateData,i.size),this.cache.release(i.row),i.row=null),this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return c.c.map(this.disposables.add(new s.a(this.domNode,"click")).event,e=>this.toMouseEvent(e))}get onMouseDblClick(){return c.c.map(this.disposables.add(new s.a(this.domNode,"dblclick")).event,e=>this.toMouseEvent(e))}get onMouseMiddleClick(){return c.c.filter(c.c.map(this.disposables.add(new s.a(this.domNode,"auxclick")).event,e=>this.toMouseEvent(e)),e=>1===e.browserEvent.button)}get onMouseDown(){return c.c.map(this.disposables.add(new s.a(this.domNode,"mousedown")).event,e=>this.toMouseEvent(e))}get onContextMenu(){return c.c.any(c.c.map(this.disposables.add(new s.a(this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e)),c.c.map(this.disposables.add(new s.a(this.domNode,a.a.Contextmenu)).event,e=>this.toGestureEvent(e)))}get onTouchStart(){return c.c.map(this.disposables.add(new s.a(this.domNode,"touchstart")).event,e=>this.toTouchEvent(e))}get onTap(){return c.c.map(this.disposables.add(new s.a(this.rowsContainer,a.a.Tap)).event,e=>this.toGestureEvent(e))}toMouseEvent(e){var t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){var t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){var t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){var t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}onScroll(e){try{var t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(e){throw e}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){if(i.dataTransfer){if(e=this.dnd.getDragElements(e),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(o.a.TEXT,t),i.dataTransfer.setDragImage){let t;void 0===(t=this.dnd.getDragLabel?this.dnd.getDragLabel(e,i):t)&&(t=String(e.length));const n=Object(r.a)(".monaco-drag-image");n.textContent=t,document.body.appendChild(n),i.dataTransfer.setDragImage(n,-10,-10),setTimeout(()=>document.body.removeChild(n),0)}this.currentDragData=new w(e),o.c.CurrentDragAndDropData=new y(e),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,i)}}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),o.c.CurrentDragAndDropData&&"vscode-ui"===o.c.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(o.c.CurrentDragAndDropData)this.currentDragData=o.c.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new S}var t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"==typeof t?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let i;if(e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof t&&0===t.effect?"copy":"move",i="boolean"!=typeof t&&t.feedback?t.feedback:void 0===e.index?[-1]:[e.index],i=-1===(i=Object(d.f)(i).filter(e=>-1<=e&&e<this.length).sort((e,t)=>e-t))[0]?[-1]:i,t=this.currentDragFeedback,e=i,Array.isArray(t)&&Array.isArray(e)?!Object(d.h)(t,e):t!==e)if(this.currentDragFeedback=i,this.currentDragFeedbackDisposable.dispose(),-1===i[0])this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=Object(u.i)(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const e of i){var n=this.items[e];n.dropTarget=!0,n.row&&n.row.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=Object(u.i)(()=>{for(const t of i){var e=this.items[t];e.dropTarget=!1,e.row&&e.row.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(h.i)(()=>this.clearDragOverFeedback(),100),this.currentDragData&&null!=(i=(t=this.dnd).onDragLeave)&&i.call(t,this.currentDragData,e.element,e.index,e.browserEvent)}onDrop(e){var t;this.canDrop&&(t=this.currentDragData,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,o.c.CurrentDragAndDropData=void 0,t)&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,o.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.a.None}setupDragAndDropScrollTopAnimation(e){var t;this.dragOverAnimationDisposable||(t=Object(r.G)(this.domNode).top,this.dragOverAnimationDisposable=Object(r.p)(this.animateDragAndDropScrollTop.bind(this,t))),this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(h.i)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){var t;void 0!==this.dragOverMouseY&&(e=this.dragOverMouseY-e,t=this.renderHeight-35,e<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(e-35))):t<e&&(this.scrollTop+=Math.min(14,Math.floor(.3*(e-t)))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){var t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){var n=i.getAttribute("data-index");if(n&&(n=Number(n),!isNaN(n)))return n;i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){var n=this.getRenderRange(e,t);let o,r,s=(e===this.elementTop(n.start)?(o=n.start,r=0):1<n.end-n.start&&(o=n.start+1,r=this.elementTop(o)-e),0);for(;;){var a,l=this.getRenderRange(e,t);let c=!1;for(let e=l.start;e<l.end;e++){var d=this.probeDynamicHeight(e);0!==d&&this.rangeMap.splice(e,1,[this.items[e]]),s+=d,c=c||0!==d}if(!c){0!==s&&this.eventuallyUpdateScrollDimensions();for(const e of p.a.relativeComplement(n,l))for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);for(const e of p.a.relativeComplement(l,n))for(let t=e.start;t<e.end;t++){var h=t+1;h=h<this.items.length?this.items[h].row:null,h=h?h.domNode:null;this.insertItemInDOM(t,h)}for(let e=l.start;e<l.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);return"number"==typeof o&&(a=this.scrollable.getFutureScrollPosition().scrollTop-e,a=this.elementTop(o)-r+a,this.setScrollTop(a,i)),void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){var t,i,n,o=this.items[e];return!o.hasDynamicHeight||o.lastDynamicHeightWidth===this.renderWidth||this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(o.element)?0:(t=o.size,!this.setRowHeight&&o.row?(i=o.row.domNode.offsetHeight,o.size=i,o.lastDynamicHeightWidth=this.renderWidth,i-t):((i=this.cache.alloc(o.templateId)).domNode.style.height="",this.rowsContainer.appendChild(i.domNode),(n=this.renderers.get(o.templateId))&&(n.renderElement(o.element,e,i.templateData,void 0),n.disposeElement)&&n.disposeElement(o.element,e,i.templateData,void 0),o.size=i.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(o.element,o.size),o.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(i.domNode),this.cache.release(i),o.size-t))}getNextToLastElement(e){e=e[e.length-1];return(e=e&&this.items[e.end])&&e.row?e.row.domNode:null}getElementDomId(e){return this.domId+"_"+e}dispose(){if(this.items){for(const t of this.items){var e;t.row&&(e=this.renderers.get(t.row.templateId))&&(e.disposeElement&&e.disposeElement(t.element,-1,t.row.templateData,void 0),e.disposeTemplate(t.row.templateData))}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(u.f)(this.disposables)}}x.InstanceCount=0,i([t.a],x.prototype,"onMouseClick",null),i([t.a],x.prototype,"onMouseDblClick",null),i([t.a],x.prototype,"onMouseMiddleClick",null),i([t.a],x.prototype,"onMouseDown",null),i([t.a],x.prototype,"onContextMenu",null),i([t.a],x.prototype,"onTouchStart",null),i([t.a],x.prototype,"onTap",null)},"7e32":function(e,t,i){"use strict";i.d(t,"f",(function(){return g})),i.d(t,"b",(function(){return p})),i.d(t,"a",(function(){return m})),i.d(t,"d",(function(){return f})),i.d(t,"e",(function(){return _})),i.d(t,"c",(function(){return b}));var n=i("f070"),o=i("561a"),r=i("308f"),s=i("258a"),a=i("a666"),l=i("db88"),d=(t=i("9e74"),i("4fc3")),h=i("0a0f"),c=i("b7d0"),u=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});function g(e){return void 0!==e.command}class p{constructor(e){this.id=p._idPool++,this._debugName=e}}p._idPool=0,p.CommandPalette=new p("CommandPalette"),p.EditorContext=new p("EditorContext"),p.SimpleEditorContext=new p("SimpleEditorContext"),p.EditorContextCopy=new p("EditorContextCopy"),p.EditorContextPeek=new p("EditorContextPeek"),p.MenubarEditMenu=new p("MenubarEditMenu"),p.MenubarCopy=new p("MenubarCopy"),p.MenubarGoMenu=new p("MenubarGoMenu"),p.MenubarSelectionMenu=new p("MenubarSelectionMenu"),p.InlineCompletionsActions=new p("InlineCompletionsActions");const m=Object(h.c)("menuService"),f=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new r.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===p.CommandPalette}}addCommand(e){return this.addCommands(s.a.single(e))}addCommands(e){for(const t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(a.i)(()=>{let t=!1;for(const i of e)t=this._commands.delete(i.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach((t,i)=>e.set(i,t)),e}appendMenuItem(e,t){return this.appendMenuItems(s.a.single({id:e,item:t}))}appendMenuItems(e){const t=new Set,i=new l.a;for(var{id:n,item:o}of e){let e=this._menuItems.get(n);e||(e=new l.a,this._menuItems.set(n,e)),i.push(e.push(o)),t.add(n)}return this._onDidChangeMenu.fire(t),Object(a.i)(()=>{if(0<i.size){for(var e of i)e();this._onDidChangeMenu.fire(t),i.clear()}})}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===p.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)g(i)&&(t.add(i.command.id),i.alt)&&t.add(i.alt.id);this._commands.forEach((i,n)=>{t.has(n)||e.push({command:i})})}};class _ extends n.e{constructor(e,t,i,n){super("submenuitem."+e.submenu.id,"string"==typeof e.title?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=i,this._options=n}get actions(){var e,t=[],i=this._menuService.createMenu(this.item.submenu,this._contextKeyService),o=i.getActions(this._options);for([,e]of(i.dispose(),o))0<e.length&&(t.push(...e),t.push(new n.d));return t.length&&t.pop(),t}}let b=class e{constructor(t,i,n,r,s){var a;this._commandService=s,this.id=t.id,this.label=null!=n&&n.renderShortTitle&&t.shortTitle?"string"==typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"==typeof t.title?t.title:t.title.value,this.tooltip=null!=(a="string"==typeof t.tooltip?t.tooltip:null==(a=t.tooltip)?void 0:a.value)?a:"",this.enabled=!t.precondition||r.contextMatchesRules(t.precondition),this.checked=!1,t.toggled&&(a=t.toggled.condition?t.toggled:{condition:t.toggled},this.checked=r.contextMatchesRules(a.condition),this.checked&&a.tooltip&&(this.tooltip="string"==typeof a.tooltip?a.tooltip:a.tooltip.value),a.title)&&(this.label="string"==typeof a.title?a.title:a.title.value),this.item=t,this.alt=i?new e(i,void 0,n,r,s):void 0,this._options=n,c.d.isThemeIcon(t.icon)&&(this.class=o.a.asClassName(t.icon))}dispose(){}run(...e){var t;let i=[];return null!=(t=this._options)&&t.arg&&(i=[...i,this._options.arg]),null!=(t=this._options)&&t.shouldForwardArgs&&(i=[...i,...e]),this._commandService.executeCommand(this.id,...i)}};b=i([u(3,d.b),u(4,t.b)],b)},"7e93":function(e,t,i){"use strict";i.d(t,"j",(function(){return r})),i.d(t,"h",(function(){return s})),i.d(t,"f",(function(){return a})),i.d(t,"i",(function(){return v})),i.d(t,"g",(function(){return L})),i.d(t,"b",(function(){return x})),i.d(t,"c",(function(){return k})),i.d(t,"a",(function(){return n})),i.d(t,"d",(function(){return j})),i.d(t,"e",(function(){return W}));t=i("40355");var n,o=i("3742");function r(...e){return function(t,i){for(let o=0,r=e.length;o<r;o++){var n=e[o](t,i);if(n)return n}return null}}const s=function(e,t,i){if(!i||i.length<t.length)return null;let n;return n=e?o.R(i,t):0===i.indexOf(t),n?0<t.length?[{start:0,end:t.length}]:[]:null}.bind(void 0,!0);function a(e,t){return t=t.toLowerCase().indexOf(e.toLowerCase()),-1===t?null:[{start:t,end:t+e.length}]}function l(e){return 97<=e&&e<=122}function d(e){return 65<=e&&e<=90}function h(e){return 48<=e&&e<=57}function c(e){return 32===e||9===e||10===e||13===e}const u=new Set;function g(e){return c(e)||u.has(e)}function p(e,t){return e===t||g(e)&&g(t)}function m(e){return l(e)||d(e)||h(e)}function f(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function _(e,t){for(let n=t;n<e.length;n++){var i=e.charCodeAt(n);if(d(i)||h(i)||0<n&&!m(e.charCodeAt(n-1)))return n}return e.length}function b(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){let t,i=0,n=0,o=0;for(let r=0;r<e.length;r++)d(t=e.charCodeAt(r))&&i++,l(t)&&n++,c(t)&&o++;return 0!==i&&0!==n||0!==o?i<=5:e.length<=30}(e))return null;if(60<t.length)return null;var i=function(e){let t,i=0,n=0,o=0,r=0;for(let s=0;s<e.length;s++)d(t=e.charCodeAt(s))&&i++,l(t)&&n++,m(t)&&o++,h(t)&&r++;return{upperPercent:i/e.length,lowerPercent:n/e.length,alphaPercent:o/e.length,numericPercent:r/e.length}}(t);if(!function(e){var{upperPercent:e,lowerPercent:t,alphaPercent:i,numericPercent:n}=e;return.2<t&&e<.8&&.6<i&&n<.2}(i)){if(!function(e){var{upperPercent:e,lowerPercent:t}=e;return 0===t&&.6<e}(i))return null;t=t.toLowerCase()}let n=null,o=0;for(e=e.toLowerCase();o<t.length&&null===(n=function e(t,i,n,o){if(n===t.length)return[];if(o===i.length)return null;if(t[n]!==i[o].toLowerCase())return null;{let r=null,s=o+1;for(r=e(t,i,n+1,o+1);!r&&(s=_(i,s))<i.length;)r=e(t,i,n+1,s),s++;return null===r?null:f({start:o,end:o+1},r)}}(e,t,0,o));)o=_(t,o+1);return n}function v(e,t,i=!1){if(!t||0===t.length)return null;let n=null,o=0;for(e=e.toLowerCase(),t=t.toLowerCase();o<t.length&&null===(n=function e(t,i,n,o,r){if(n===t.length)return[];if(o!==i.length&&p(t.charCodeAt(n),i.charCodeAt(o))){let s=null,a=o+1;if(s=e(t,i,n+1,o+1,r),!r)for(;!s&&(a=C(i,a))<i.length;)s=e(t,i,n+1,a,r),a++;return null===s?null:f({start:o,end:o+1},s)}return null}(e,t,0,o,i));)o=C(t,o+1);return n}function C(e,t){for(let i=t;i<e.length;i++)if(g(e.charCodeAt(i))||0<i&&g(e.charCodeAt(i-1)))return i;return e.length}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(e=>u.add(e.charCodeAt(0)));const w=r(s,b,a),y=r(s,b,(function(e,t){return function e(t,i,n,o){if(n===t.length)return[];if(o===i.length)return null;if(t[n]!==i[o])return e(t,i,n,o+1);{let r=null;return(r=e(t,i,n+1,o+1))?f({start:o,end:o+1},r):null}}(e.toLowerCase(),t.toLowerCase(),0,0)})),S=new t.a(1e4);function L(e,t,i=!1){if("string"!=typeof e||"string"!=typeof t)return null;let n=S.get(e);n||(n=new RegExp(o.p(e),"i"),S.set(e,n));var r=n.exec(t);return r?[{start:r.index,end:r.index+r[0].length}]:(i?y:w)(e,t)}function x(e,t,i,n,o,r){for(var s=Math.min(13,e.length);i<s;i++){var a=j(e,t,i,n,o,r,!1);if(a)return a}return[0,r]}function k(e){if(void 0===e)return[];var t=[],i=e[1];for(let r=e.length-1;1<r;r--){var n=e[r]+i,o=t[t.length-1];o&&o.end===n?o.end=n+1:t.push({start:n,end:n+1})}return t}const D=128;function N(){var e=[],t=[];for(let i=0;i<=D;i++)t[i]=0;for(let i=0;i<=D;i++)e.push(t.slice(0));return e}function O(e){var t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const E=O(2*D),I=O(2*D),M=N(),T=N(),A=N(),R=!1;function P(e,t){if(t<0||t>=e.length)return!1;var i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!o.B(i)}}function F(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function B(e,t,i){return t[e]!==i[e]}function j(e,t,i,n,o,r,s){var a=e.length>D?D:e.length,l=n.length>D?D:n.length;if(!(a<=i||l<=r||l-r<a-i)&&function(e,t,i,n,o,r,s){for(;t<i&&o<r;)e[t]===n[o]&&(s&&(E[t]=o),t+=1),o+=1;return t===i}(t,i,a,o,r,l,!0)){{var d=a,h=l,c=i,u=r,g=t,p=o;let e=d-1,n=h-1;for(;e>=c&&n>=u;)g[e]===p[n]&&(I[e]=n,e--),n--}let x=1,k=1,D=i,N=r;var m=[!1];for(x=1,D=i;D<a;x++,D++){var f=E[D],_=I[D],b=D+1<a?I[D+1]:l;for(k=f-r+1,N=f;N<b;k++,N++){let s=Number.MIN_SAFE_INTEGER,a=!1,d=0;(s=N<=_?function(e,t,i,n,o,r,s,a,l,d,h){if(t[i]!==r[s])return Number.MIN_SAFE_INTEGER;let c=1,u=!1;return s===i-n?c=e[i]===o[s]?7:5:!B(s,o,r)||0!==s&&B(s-1,o,r)?!P(r,s)||0!==s&&P(r,s-1)?(P(r,s-1)||F(r,s-1))&&(c=5,u=!0):c=5:(c=e[i]===o[s]?7:5,u=!0),1<c&&i===n&&(h[0]=!0),u=u||B(s,o,r)||P(r,s-1)||F(r,s-1),i===n?l<s&&(c-=u?3:5):c+=d?u?2:0:u?0:1,s+1===a&&(c-=u?3:5),c}(e,t,D,i,n,o,N,l,r,0===M[x-1][k-1],m):s)!==Number.MAX_SAFE_INTEGER&&(a=!0,d=s+T[x-1][k-1]);var v=N>f,C=v?T[x][k-1]+(0<M[x][k-1]?-5:0):0,w=N>f+1&&0<M[x][k-1],y=w?T[x][k-2]+(0<M[x][k-2]?-5:0):0;if(w&&(!v||C<=y)&&(!a||y>=d))T[x][k]=y,A[x][k]=3,M[x][k]=0;else if(v&&(!a||C>=d))T[x][k]=C,A[x][k]=2,M[x][k]=0;else{if(!a)throw new Error("not possible");T[x][k]=d,A[x][k]=1,M[x][k]=M[x-1][k-1]+1}}}if(R&&(d=n,h=r,e.substr(i),d=d.substr(h)),m[0]||s){x--,k--;var S=[T[x][k],r];let e=0,s=0;for(;1<=x;){let a=k;do{var L=A[x][a];if(3===L)a-=2;else{if(2!==L)break;a-=1}}while(1<=a);(a=1<e&&t[i+x-1]===o[r+k-1]&&!B(a+r-1,n,o)&&e+1>M[x][a]?k:a)===k?e++:e=1,s=s||a,x--,k=a-1,S.push(k)}return l===a&&(S[0]+=2),h=s-a,S[0]-=h,S}}}function W(e,t,i,n,o,r,s){{var a=e,l=(e=t,i),d=n,h=o,c=r,u=(t=!0,s);let m=j(a,e,l,d,h,c,u);if((!m||t)&&3<=a.length){var g=Math.min(7,a.length-1);for(let e=l+1;e<g;e++){var p=function(e,t){if(!(t+1>=e.length)){var i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}}(a,e);p&&(p=j(p,p.toLowerCase(),l,d,h,c,u))&&(p[0]-=3,!m||p[0]>m[0])&&(m=p)}}return m}}(i=n=n||{}).Default=[-100,0],i.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}},"7eb7":function(e,t,i){"use strict";i.r(t),i.d(t,"CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE",(function(){return L})),i.d(t,"LinkedEditingContribution",(function(){return k})),i.d(t,"LinkedEditingAction",(function(){return D})),i.d(t,"editorLinkedEditingBackground",(function(){return O}));var n=i("dff7"),o=(t=i("b2cc"),i("e8e3")),r=i("a666"),s=i("7061"),a=i("2504"),l=i("6a89"),d=i("b707"),h=i("5fe7"),c=i("b57f"),u=i("4fc3"),g=i("c101"),p=i("6d8e"),m=i("5717"),f=i("fdcc"),_=i("3742"),b=i("303e"),v=i("b7d0"),C=i("ceb8"),w=i("70cb"),y=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}}),S=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const L=new u.c("LinkedEditingInputVisible",!1),x="linked-editing-decoration";let k=class e extends r.a{constructor(e,t){super(),this._debounceDuration=200,this._localToDispose=this._register(new r.b),this._editor=e,this._enabled=!1,this._visibleContextKey=L.bindTo(t),this._currentDecorations=[],this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new r.b),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(e=>{(e.hasChanged(61)||e.hasChanged(81))&&this.reinitialize(!1)})),this._register(d.w.onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}static get(t){return t.getContribution(e.ID)}reinitialize(e){const t=this._editor.getModel();var i=null!==t&&(this._editor.getOption(61)||this._editor.getOption(81))&&d.w.has(t);if((i!==this._enabled||e)&&(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),i)&&null!==t){this._languageWordPattern=w.a.getWordDefinition(t.getLanguageIdentifier().id),this._localToDispose.add(t.onDidChangeLanguageConfiguration(()=>{this._languageWordPattern=w.a.getWordDefinition(t.getLanguageIdentifier().id)}));const e=new h.a(this._debounceDuration),i=()=>{this._rangeUpdateTriggerPromise=e.trigger(()=>this.updateRanges(),this._debounceDuration)},n=new h.a(0),o=e=>{this._rangeSyncTriggerPromise=n.trigger(()=>this._syncRanges(e))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{i()})),this._localToDispose.add(this._editor.onDidChangeModelContent(e=>{if(!this._ignoreChangeEvent&&0<this._currentDecorations.length){const i=t.getDecorationRange(this._currentDecorations[0]);if(i&&e.changes.every(e=>i.intersectRanges(e.range)))return void o(this._currentDecorations)}i()})),this._localToDispose.add({dispose:()=>{e.cancel(),n.cancel()}}),this.updateRanges()}}_syncRanges(e){if(this._editor.hasModel()&&e===this._currentDecorations&&0!==e.length){var t=this._editor.getModel(),i=t.getDecorationRange(e[0]);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();var n=t.getValueInRange(i);if(this._currentWordPattern&&(i=n.match(this._currentWordPattern),(i?i[0].length:0)!==n.length))return this.clearRanges();var o=[];for(let i=1,h=e.length;i<h;i++){var r=t.getDecorationRange(e[i]);if(r)if(r.startLineNumber!==r.endLineNumber)o.push({range:r,text:n});else{let e=t.getValueInRange(r),i=n;var s=r.startColumn,a=r.endColumn,d=_.d(e,i);d=(s+=d,e=e.substr(d),i=i.substr(d),_.e(e,i));a-=d,e=e.substr(0,e.length-d),i=i.substr(0,i.length-d),s===a&&0===i.length||o.push({range:new l.a(r.startLineNumber,s,r.endLineNumber,a),text:i})}}if(0!==o.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;var h=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",o),this._editor._getViewModel().setPrevEditOperationType(h)}finally{this._ignoreChangeEvent=!1}}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,[]),this._currentRequest&&(this._currentRequest.cancel(),this._currentRequest=null,this._currentRequestPosition=null)}updateRanges(t=!1){return S(this,void 0,void 0,(function*(){if(this._editor.hasModel()){const n=this._editor.getPosition();if(!(!this._enabled&&!t||1<this._editor.getSelections().length)){const t=this._editor.getModel(),o=t.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===o){if(n.equals(this._currentRequestPosition))return;if(this._currentDecorations&&0<this._currentDecorations.length){var i=t.getDecorationRange(this._currentDecorations[0]);if(i&&i.containsPosition(n))return}}this._currentRequestPosition=n,this._currentRequestModelVersion=o;const r=Object(h.h)(i=>S(this,void 0,void 0,(function*(){try{var s,a,d=yield N(t,n,i);if(r===this._currentRequest&&(this._currentRequest=null,o===t.getVersionId())){let t=[],i=(null!=d&&d.ranges&&(t=d.ranges),this._currentWordPattern=(null==d?void 0:d.wordPattern)||this._languageWordPattern,!1);for(let e=0,o=t.length;e<o;e++)if(l.a.containsPosition(t[e],n)){i=!0,0!==e&&(s=t[e],t.splice(e,1),t.unshift(s));break}i?(a=t.map(t=>({range:t,options:e.DECORATION})),this._visibleContextKey.set(!0),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,a)):this.clearRanges()}}catch(a){Object(f.e)(a)||Object(f.f)(a),this._currentRequest!==r&&this._currentRequest||this.clearRanges()}})));return this._currentRequest=r}}this.clearRanges()}))}};k.ID="editor.contrib.linkedEditing",k.DECORATION=c.a.register({description:"linked-editing",stickiness:0,className:x}),k=i([y(1,u.b)],k);class D extends t.b{constructor(){super({id:"editor.action.linkedEditing",label:n.a("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:u.a.and(g.a.writable,g.a.hasRenameProvider),kbOpts:{kbExpr:g.a.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){var i=e.get(m.a);const[n,o]=Array.isArray(t)&&t||[void 0,void 0];return p.a.isUri(n)&&s.a.isIPosition(o)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(o),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},f.f):super.runCommand(e,t)}run(e,t){return t=k.get(t),t?Promise.resolve(t.updateRanges(!0)):Promise.resolve()}}function N(e,t,i){var n=d.w.ordered(e);return Object(h.j)(n.map(n=>()=>S(this,void 0,void 0,(function*(){try{return yield n.provideLinkedEditingRanges(e,t,i)}catch(n){Object(f.g)(n)}}))),e=>!!e&&o.n(null==e?void 0:e.ranges))}c=t.c.bindToContribution(k.get),Object(t.k)(new c({id:"cancelLinkedEditingInput",precondition:L,handler:e=>e.clearRanges(),kbOpts:{kbExpr:g.a.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));const O=Object(b.wc)("editor.linkedEditingBackground",{dark:C.a.fromHex("#f00").transparent(.3),light:C.a.fromHex("#f00").transparent(.3),hc:C.a.fromHex("#f00").transparent(.3)},n.a("editorLinkedEditingBackground","Background color when the editor auto renames on type."));Object(v.f)((e,t)=>{e=e.getColor(O),e&&t.addRule(`.monaco-editor .${x} { background: ${e}; border-left-color: ${e}; }`)}),Object(t.n)("_executeLinkedEditingProvider",(e,t)=>N(e,t,a.a.None)),Object(t.l)(k.ID,k),Object(t.j)(D)},8025:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("7061");class o extends i("6a89").a{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return o.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new o(this.startLineNumber,this.startColumn,e,t):new o(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new n.a(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new o(e,t,this.endLineNumber,this.endColumn):new o(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new o(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(e||t){if(e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i++)if(!this.selectionsEqual(e[i],t[i]))return!1}return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,i,n,r){return 0===r?new o(e,t,i,n):new o(i,n,e,t)}}},8090:function(e,t,i){"use strict";i.r(t),i("133b");var n=i("11f7"),o=i("ceb8"),r=(t=i("a666"),i("b2cc")),s=i("b707"),a=i("8bf1"),l=i("5818"),d=i("b1ca"),h=i("303e"),c=i("b7d0"),u=i("03d9"),g=i("9c41"),p=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});let m=class e extends t.a{constructor(e,t,i){super(),this._editor=e,this._modeService=i,this._widget=null,this._register(this._editor.onDidChangeModel(e=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(e=>this.stop())),this._register(s.F.onDidChange(e=>this.stop())),this._register(this._editor.onKeyUp(e=>9===e.keyCode&&this.stop()))}static get(t){return t.getContribution(e.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new _(this._editor,this._modeService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};m.ID="editor.contrib.inspectTokens",m=i([p(1,d.a),p(2,l.a)],m);class f extends r.b{constructor(){super({id:"editor.action.inspectTokens",label:u.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){t=m.get(t),t&&t.launch()}}class _ extends t.a{constructor(e,t){var i;super(),this.allowEditorOverflow=!0,this._editor=e,this._modeService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=(i=this._model.getLanguageIdentifier(),s.F.get(i.language)||{getInitialState:()=>a.c,tokenize:(e,t,n,o)=>Object(a.d)(i.language,e,n,o),tokenize2:(e,t,n,o)=>Object(a.e)(i.id,e,n,o)}),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(e=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return _._ID}_compute(e){var t=this._getTokensAtLine(e.lineNumber);let i=0;for(let n=t.tokens1.length-1;0<=n;n--){var r=t.tokens1[n];if(e.column-1>=r.offset){i=n;break}}let s=0;for(let n=t.tokens2.length>>>1;0<=n;n--)if(e.column-1>=t.tokens2[n<<1]){s=n;break}var a,l,d=this._model.getLineContent(e.lineNumber);let h="";i<t.tokens1.length&&(a=t.tokens1[i].offset,l=i+1<t.tokens1.length?t.tokens1[i+1].offset:d.length,h=d.substring(a,l)),Object(n.R)(this._domNode,Object(n.a)("h2.tm-token",void 0,function(e){let t="";for(let n=0,o=e.length;n<o;n++){var i=e.charCodeAt(n);switch(i){case 9:t+="→";break;case 32:t+="·";break;default:t+=String.fromCharCode(i)}}return t}(h),Object(n.a)("span.tm-token-length",void 0,h.length+" "+(1===h.length?"char":"chars")))),Object(n.q)(this._domNode,Object(n.a)("hr.tokens-inspect-separator",{style:"clear:both"})),d=1+(s<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(s<<1)]):null,Object(n.q)(this._domNode,Object(n.a)("table.tm-metadata-table",void 0,Object(n.a)("tbody",void 0,Object(n.a)("tr",void 0,Object(n.a)("td.tm-metadata-key",void 0,"language"),Object(n.a)("td.tm-metadata-value",void 0,""+(d?d.languageIdentifier.language:"-?-"))),Object(n.a)("tr",void 0,Object(n.a)("td.tm-metadata-key",void 0,"token type"),Object(n.a)("td.tm-metadata-value",void 0,""+(d?this._tokenTypeToString(d.tokenType):"-?-"))),Object(n.a)("tr",void 0,Object(n.a)("td.tm-metadata-key",void 0,"font style"),Object(n.a)("td.tm-metadata-value",void 0,""+(d?this._fontStyleToString(d.fontStyle):"-?-"))),Object(n.a)("tr",void 0,Object(n.a)("td.tm-metadata-key",void 0,"foreground"),Object(n.a)("td.tm-metadata-value",void 0,""+(d?o.a.Format.CSS.formatHex(d.foreground):"-?-"))),Object(n.a)("tr",void 0,Object(n.a)("td.tm-metadata-key",void 0,"background"),Object(n.a)("td.tm-metadata-value",void 0,""+(d?o.a.Format.CSS.formatHex(d.background):"-?-")))))),Object(n.q)(this._domNode,Object(n.a)("hr.tokens-inspect-separator")),i<t.tokens1.length&&Object(n.q)(this._domNode,Object(n.a)("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){var t=s.F.getColorMap(),i=s.E.getLanguageId(e),n=s.E.getTokenType(e),o=s.E.getFontStyle(e),r=s.E.getForeground(e);e=s.E.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(i),tokenType:n,fontStyle:o,foreground:t[r],background:t[e]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length?"---":t}_getTokensAtLine(e){var t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t,0);e=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),!0,t,0);return{startState:t,tokens1:i.tokens,tokens2:e.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let n=1;n<e;n++){var i=this._tokenizationSupport.tokenize(this._model.getLineContent(n),!0,t,0);t=i.endState}return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}_._ID="editor.contrib.inspectTokensWidget",Object(r.l)(m.ID,m),Object(r.j)(f),Object(c.f)((e,t)=>{var i=e.getColor(h.F),n=(i&&(n=e.type===g.a.HIGH_CONTRAST?2:1,t.addRule(`.monaco-editor .tokens-inspect-widget { border: ${n}px solid ${i}; }`),t.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${i}; }`)),e.getColor(h.E));n&&t.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${n}; }`),i=e.getColor(h.G);i&&t.addRule(`.monaco-editor .tokens-inspect-widget { color: ${i}; }`)})},"82a1":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return i.e("chunk-2d0e22d6").then(i.bind(null,"7e1c"))}}),Object(t.a)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return i.e("chunk-2d0e22d6").then(i.bind(null,"7e1c"))}})},"82c9":function(e,t,i){"use strict";i.d(t,"i",(function(){return h})),i.d(t,"e",(function(){return c})),i.d(t,"f",(function(){return u})),i.d(t,"c",(function(){return g})),i.d(t,"b",(function(){return p})),i.d(t,"d",(function(){return m})),i.d(t,"g",(function(){return f})),i.d(t,"h",(function(){return _})),i.d(t,"j",(function(){return b})),i.d(t,"a",(function(){return n}));var n,o,r=i("3d378"),s=i("b589"),a=i("32b8"),l=i("3742"),d=i("6d8e");function h(e){return Object(d.b)(e,!0)}const c=new class{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:Object(l.f)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}joinPath(e,...t){return d.a.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return a.e.basename(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===s.c.file?t=d.a.file(a.b(h(e))).path:(t=a.e.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===s.c.file?d.a.file(a.d(h(e))).path:a.e.normalize(e.path),e.with({path:t})}resolvePath(e,t){var i;return e.scheme===s.c.file?(i=d.a.file(a.g(h(e),t)),e.with({authority:i.authority,path:i.path})):(t=r.d(t),e.with({path:a.e.resolve(e.path,t)}))}}(()=>!1),u=c.isEqual.bind(c),g=c.basenameOrAuthority.bind(c),p=c.basename.bind(c),m=c.dirname.bind(c),f=c.joinPath.bind(c),_=c.normalizePath.bind(c),b=c.resolvePath.bind(c);(o=n=n||{}).META_DATA_LABEL="label",o.META_DATA_DESCRIPTION="description",o.META_DATA_SIZE="size",o.META_DATA_MIME="mime",o.parseMetaData=function(e){const t=new Map;return e.path.substring(e.path.indexOf(";")+1,e.path.lastIndexOf(";")).split(";").forEach(e=>{var[e,i]=e.split(":");e&&i&&t.set(e,i)}),(e=e.path.substring(0,e.path.indexOf(";")))&&t.set(o.META_DATA_MIME,e),t}},8452:function(e,t,i){"use strict";i.r(t),i.d(t,"StandaloneGotoSymbolQuickAccessProvider",(function(){return A})),i.d(t,"GotoLineAction",(function(){return R})),i("b9db"),i("dbc9");var n=i("dff7"),o=i("2504"),r=i("a666"),s=i("6a89"),a=(t=i("1fe0"),i("b707")),l=i("70f5"),d=i("3742"),h=i("7e93"),c=i("32b8"),u=i("30db");const g=[void 0,[]];function p(e,t,i=0,n=0){var o=t;if(o.values&&1<o.values.length){var r=e;o=o.values;var s=i,a=n;let t=0;var l=[];for(const e of o){var[d,h]=m(r,e,s,a);if("number"!=typeof d)return g;t+=d,l.push(...h)}return[t,function(e){e=e.sort((e,t)=>e.start-t.start);var t=[];let i=void 0;for(const n of e)i&&function(e,t){if(!(e.end<t.start)&&!(t.end<e.start))return 1}(i,n)?(i.start=Math.min(i.start,n.start),i.end=Math.max(i.end,n.end)):(i=n,t.push(n));return t}(l)]}return m(e,t,i,n)}function m(e,t,i,n){return t=Object(h.d)(t.original,t.originalLowercase,i,e,e.toLowerCase(),n,!0),t?[t[0],Object(h.c)(t)]:g}function f(e){return e.startsWith('"')&&e.endsWith('"')}const _=" ";function b(e){var t=(e="string"!=typeof e?"":e).toLowerCase(),{pathNormalized:i,normalized:n,normalizedLowercase:o}=v(e),r=0<=i.indexOf(c.h),s=f(e);let a=void 0;var l=e.split(_);if(1<l.length)for(const c of l){var d=f(c),{pathNormalized:h,normalized:u,normalizedLowercase:g}=v(c);u&&(a=a||[]).push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:h,normalized:u,normalizedLowercase:g,expectContiguousMatch:d})}return{original:e,originalLowercase:t,pathNormalized:i,normalized:n,normalizedLowercase:o,values:a,containsPathSeparator:r,expectContiguousMatch:s}}function v(e){let t;return t=u.i?e.replace(/\//g,c.h):e.replace(/\\/g,c.h),e=Object(d.T)(t).replace(/\s|"/g,""),{pathNormalized:t,normalized:e,normalizedLowercase:e.toLowerCase()}}function C(e){return Array.isArray(e)?b(e.map(e=>e.original).join(_)):b(e.original)}var w=i("561a"),y=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class S extends t.a{constructor(e=Object.create(null)){super(e),this.options=e,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,Object(n.a)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),r.a.None}provideWithTextEditor(e,t,i){var n=e.editor;n=this.getModel(n);return n?a.m.has(n)?this.doProvideWithEditorSymbols(e,n,t,i):this.doProvideWithoutEditorSymbols(e,n,t,i):r.a.None}doProvideWithoutEditorSymbols(e,t,i,o){const s=new r.b;return this.provideLabelPick(i,Object(n.a)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),y(this,void 0,void 0,(function*(){(yield this.waitForLanguageSymbolRegistry(t,s))&&!o.isCancellationRequested&&s.add(this.doProvideWithEditorSymbols(e,t,i,o))})),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return y(this,void 0,void 0,(function*(){if(a.m.has(e))return!0;let i;var n=new Promise(e=>i=e);const o=t.add(a.m.onDidChange(()=>{a.m.has(e)&&(o.dispose(),i(!0))}));return t.add(Object(r.i)(()=>i(!1))),n}))}doProvideWithEditorSymbols(e,t,i,s){const a=e.editor;var l=new r.b;l.add(i.onDidAccept(t=>{var[n]=i.selectedItems;n&&n.range&&(this.gotoLocation(e,{range:n.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),t.inBackground||i.hide())})),l.add(i.onDidTriggerItemButton(({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())}));const d=this.getDocumentSymbols(t,s);let h=void 0;const c=()=>y(this,void 0,void 0,(function*(){null!==h&&void 0!==h&&h.dispose(!0),i.busy=!1,h=new o.b(s),i.busy=!0;try{var e=b(i.value.substr(S.PREFIX.length).trim()),t=yield this.doGetSymbolPicks(d,e,void 0,h.token);s.isCancellationRequested||(0<t.length?i.items=t:0<e.original.length?this.provideLabelPick(i,Object(n.a)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,Object(n.a)("noSymbolResults","No editor symbols")))}finally{s.isCancellationRequested||(i.busy=!1)}}));l.add(i.onDidChangeValue(()=>c())),c();let u=!0;return l.add(i.onDidChangeActive(()=>{var[e]=i.activeItems;e&&e.range&&(u?u=!1:(a.revealRangeInCenter(e.range.selection,0),this.addDecorations(a,e.range.decoration)))})),l}doGetSymbolPicks(e,t,i,o){return y(this,void 0,void 0,(function*(){var r=yield e;if(o.isCancellationRequested)return[];const l=0===t.original.indexOf(S.SCOPE_PREFIX);var h=l?1:0;let c,u;t.values&&1<t.values.length?(c=C(t.values[0]),u=C(t.values.slice(1))):c=t;var g=[];for(let e=0;e<r.length;e++){var m=r[e],f=Object(d.U)(m.name),_=`$(symbol-${a.D.toString(m.kind)||"property"}) `+f,b=_.length-f.length;let o=m.containerName,l=void(null!=i&&i.extraContainerLabel&&(o=o?i.extraContainerLabel+" • "+o:i.extraContainerLabel)),v=void 0,C=void 0,y=void 0;if(t.original.length>h){let e=!1;if(c!==t&&([l,v]=p(_,Object.assign(Object.assign({},t),{values:void 0}),h,b),"number"==typeof l)&&(e=!0),"number"!=typeof l&&([l,v]=p(_,c,h,b),"number"!=typeof l))continue;if(!e&&u){if(o&&0<u.original.length&&([C,y]=p(o,u)),"number"!=typeof C)continue;"number"==typeof l&&(l+=C)}}b=m.tags&&0<=m.tags.indexOf(1),g.push({index:e,kind:m.kind,score:l,label:_,ariaLabel:f,description:o,highlights:b?void 0:{label:v,description:y},range:{selection:s.a.collapseToStart(m.selectionRange),decoration:m.range},strikethrough:b,buttons:(()=>{var e=null!=(e=this.options)&&e.openSideBySideDirection&&null!=(e=this.options)?e.openSideBySideDirection():void 0;if(e)return[{iconClass:("right"===e?w.b.splitHorizontal:w.b.splitVertical).classNames,tooltip:"right"===e?Object(n.a)("openToSide","Open to the Side"):Object(n.a)("openToBottom","Open to the Bottom")}]})()})}var v=g.sort((e,t)=>l?this.compareByKindAndScore(e,t):this.compareByScore(e,t));let y=[];if(l){let e=void 0,t=void 0,i=0;function k(){t&&"number"==typeof e&&0<i&&(t.label=Object(d.v)(x[e]||L,i))}for(const n of v)e!==n.kind?(k(),e=n.kind,i=1,t={type:"separator"},y.push(t)):i++,y.push(n);k()}else 0<v.length&&(y=[{label:Object(n.a)("symbols","symbols ({0})",g.length),type:"separator"},...v]);return y}))}compareByScore(e,t){if("number"!=typeof e.score&&"number"==typeof t.score)return 1;if("number"==typeof e.score&&"number"!=typeof t.score)return-1;if("number"==typeof e.score&&"number"==typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){var i=x[e.kind]||L,n=x[t.kind]||L;i=i.localeCompare(n);return 0===i?this.compareByScore(e,t):i}getDocumentSymbols(e,t){return y(this,void 0,void 0,(function*(){var i=yield l.a.create(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}))}}S.PREFIX="@",S.SCOPE_PREFIX=":",S.PREFIX_BY_CATEGORY=""+S.PREFIX+S.SCOPE_PREFIX;const L=Object(n.a)("property","properties ({0})"),x={[5]:Object(n.a)("method","methods ({0})"),11:Object(n.a)("function","functions ({0})"),8:Object(n.a)("_constructor","constructors ({0})"),12:Object(n.a)("variable","variables ({0})"),4:Object(n.a)("class","classes ({0})"),22:Object(n.a)("struct","structs ({0})"),23:Object(n.a)("event","events ({0})"),24:Object(n.a)("operator","operators ({0})"),10:Object(n.a)("interface","interfaces ({0})"),2:Object(n.a)("namespace","namespaces ({0})"),3:Object(n.a)("package","packages ({0})"),25:Object(n.a)("typeParameter","type parameters ({0})"),1:Object(n.a)("modules","modules ({0})"),6:Object(n.a)("property","properties ({0})"),9:Object(n.a)("enum","enumerations ({0})"),21:Object(n.a)("enumMember","enumeration members ({0})"),14:Object(n.a)("string","strings ({0})"),0:Object(n.a)("file","files ({0})"),17:Object(n.a)("array","arrays ({0})"),15:Object(n.a)("number","numbers ({0})"),16:Object(n.a)("boolean","booleans ({0})"),18:Object(n.a)("object","objects ({0})"),19:Object(n.a)("key","keys ({0})"),7:Object(n.a)("field","fields ({0})"),13:Object(n.a)("constant","constants ({0})")};t=i("89cd");var k=i("2f1e"),D=i("5717"),N=i("ef8e9"),O=i("03d9"),E=i("308f"),I=i("b2cc"),M=i("c101"),T=i("66bd");let A=class extends S{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=E.c.None}get activeTextEditorControl(){return Object(N.o)(this.editorService.getFocusedCodeEditor())}};A=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}([function(e,t){return function(i,n){t(i,n,e)}}(0,D.a)],A),t.a.as(k.b.Quickaccess).registerQuickAccessProvider({ctor:A,prefix:S.PREFIX,helpEntries:[{description:O.f.quickOutlineActionLabel,prefix:S.PREFIX,needsEditor:!0},{description:O.f.quickOutlineByCategoryActionLabel,prefix:S.PREFIX_BY_CATEGORY,needsEditor:!0}]});class R extends I.b{constructor(){super({id:"editor.action.quickOutline",label:O.f.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:M.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:M.a.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(T.a).quickAccess.show(S.PREFIX)}}Object(I.j)(R)},8457:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return i.e("chunk-2d20ff23").then(i.bind(null,"b692"))}})},8478:function(e,t,i){},8495:function(e,t,i){"use strict";i.d(t,"b",(function(){return f})),i.d(t,"f",(function(){return _})),i.d(t,"g",(function(){return b})),i.d(t,"e",(function(){return v})),i.d(t,"c",(function(){return C})),i.d(t,"a",(function(){return w})),i.d(t,"d",(function(){return L}));var n=i("e8e3"),o=i("2504"),r=i("fdcc"),s=i("a666"),a=i("6d8e"),l=i("bc04"),d=i("6a89"),h=i("8025"),c=i("b707"),u=i("1b69"),g=i("9e56"),p=i("b539"),m=(t=i("9e74"),function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});const f="editor.action.codeAction",_="editor.action.refactor",b="editor.action.sourceAction",v="editor.action.organizeImports",C="editor.action.fixAll";class w{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return m(this,void 0,void 0,(function*(){if(null!=(t=this.provider)&&t.resolveCodeAction&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(t){Object(r.g)(t)}i&&(this.action.edit=i.edit)}return this}))}}class y extends s.a{constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(y.codeActionsComparator),this.validActions=this.allActions.filter(({action:e})=>!e.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:Object(n.n)(e.diagnostics)?Object(n.n)(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Object(n.n)(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&g.b.QuickFix.contains(new g.b(e.kind))&&!!e.isPreferred)}}const S={actions:[],documentation:void 0};function L(e,t,i,o,a){var d;const h=i.filter||{},u={only:null==(b=h.include)?void 0:b.value,trigger:i.type},p=new l.d(e,a),f=(d=h,c.a.all(e).filter(e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some(e=>Object(g.d)(d,new g.b(e))))),_=new s.b;var b=f.map(i=>m(this,void 0,void 0,(function*(){try{o.report(i);var n,s,a=yield i.provideCodeActions(e,t,u,p.token);return a&&_.add(a),p.token.isCancellationRequested?S:(n=((null==a?void 0:a.actions)||[]).filter(e=>e&&Object(g.c)(h,e)),s=function(e,t,i){if(e.documentation){var n=e.documentation.map(e=>({kind:new g.b(e.kind),command:e.command}));if(i){let e;for(const t of n)!t.kind.contains(i)||e&&!e.kind.contains(t.kind)||(e=t);if(e)return null===e||void 0===e?void 0:e.command}for(const e of t)if(e.kind)for(const t of n)if(t.kind.contains(new g.b(e.kind)))return t.command}}(i,n,h.include),{actions:n.map(e=>new w(e,i)),documentation:s})}catch(n){if(Object(r.e)(n))throw n;return Object(r.g)(n),S}})));const v=c.a.onDidChange(()=>{var t=c.a.all(e);Object(n.h)(t,f)||p.cancel()});return Promise.all(b).then(e=>{var t=Object(n.k)(e.map(e=>e.actions));e=Object(n.e)(e.map(e=>e.documentation));return new y(t,e,_)}).finally(()=>{v.dispose(),p.dispose()})}t.a.registerCommand("_executeCodeActionProvider",(function(e,t,i,n,s){return m(this,void 0,void 0,(function*(){if(!(t instanceof a.a))throw Object(r.c)();var l=e.get(u.a).getModel(t);if(!l)throw Object(r.c)();var c=h.a.isISelection(i)?h.a.liftSelection(i):d.a.isIRange(i)?l.validateRange(i):void 0;if(!c)throw Object(r.c)();const m=yield L(l,c,{type:1,filter:{includeSourceActions:!0,include:"string"==typeof n?new g.b(n):void 0}},p.b.None,o.a.None);var f=[],_=Math.min(m.validActions.length,"number"==typeof s?s:0);for(let e=0;e<_;e++)f.push(m.validActions[e].resolve(o.a.None));try{return yield Promise.all(f),m.validActions.map(e=>e.action)}finally{setTimeout(()=>m.dispose(),100)}}))}))},"84df":function(e,t,i){"use strict";i.d(t,"b",(function(){return L})),i.d(t,"a",(function(){return k})),i.d(t,"c",(function(){return D})),i.d(t,"d",(function(){return O})),i.d(t,"e",(function(){return I}));var n=i("3813"),o=i("e8e3"),r=i("2504"),s=i("fdcc"),a=i("6d8e"),l=i("bc04"),d=i("b055"),h=i("7061"),c=i("6a89"),u=i("8025"),g=i("b707"),p=i("a40b"),m=i("1b69"),f=i("09db"),_=i("dff7");class b{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"==typeof e?e.toLowerCase():e._lower}}var v=i("0a0f"),C=(t=i("db88"),i("9e74")),w=i("ef8e9"),y=i("258a"),S=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function L(e){if((e=e.filter(e=>e.range)).length){let o=e[0]["range"];for(let t=1;t<e.length;t++)o=c.a.plusRange(o,e[t].range);var{startLineNumber:t,endLineNumber:i}=o;t===i?1===e.length?Object(n.a)(_.a("hint11","Made 1 formatting edit on line {0}",t)):Object(n.a)(_.a("hintn1","Made {0} formatting edits on line {1}",e.length,t)):1===e.length?Object(n.a)(_.a("hint1n","Made 1 formatting edit between lines {0} and {1}",t,i)):Object(n.a)(_.a("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,t,i))}}function x(e){var t=[],i=new Set;for(const n of g.g.ordered(e))t.push(n),n.extensionId&&i.add(b.toKey(n.extensionId));for(const n of g.j.ordered(e)){if(n.extensionId){if(i.has(b.toKey(n.extensionId)))continue;i.add(b.toKey(n.extensionId))}t.push({displayName:n.displayName,extensionId:n.extensionId,provideDocumentFormattingEdits(e,t,i){return n.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)}})}return t}class k{static setFormatterSelector(e){return{dispose:k._selectors.unshift(e)}}static select(e,t,i){return S(this,void 0,void 0,(function*(){var n;return 0!==e.length&&(n=y.a.first(k._selectors))?yield n(e,t,i):void 0}))}}function D(e,t,i,n,o,r){return S(this,void 0,void 0,(function*(){var s=e.get(v.a),a=Object(d.b)(t)?t.getModel():t,l=g.j.ordered(a);l=yield k.select(l,a,n);l&&(o.report(l),yield s.invokeFunction(N,l,t,i,r))}))}function N(e,t,i,n,r){return S(this,void 0,void 0,(function*(){var s=e.get(p.a);let a,h;h=Object(d.b)(i)?(a=i.getModel(),new l.b(i,5,void 0,r)):(a=i,new l.d(i,r));var g,m=[];let _=0;for(g of Object(o.c)(n).sort(c.a.compareRangesUsingStarts))0<_&&c.a.areIntersectingOrTouching(m[_-1],g)?m[_-1]=c.a.fromPositions(m[_-1].getStartPosition(),g.getEndPosition()):_=m.push(g);var b,v,C=e=>S(this,void 0,void 0,(function*(){return(yield t.provideDocumentRangeFormattingEdits(a,e,a.getFormattingOptions(),h.token))||[]})),w=[],y=[];try{for(var x of m){if(h.token.isCancellationRequested)return!0;y.push(yield C(x))}for(let e=0;e<m.length;++e)for(let t=e+1;t<m.length;++t){if(h.token.isCancellationRequested)return!0;((e,t)=>{if(e.length&&t.length){const o=e.reduce((e,t)=>c.a.plusRange(e,t.range),e[0].range);if(t.some(e=>c.a.intersectRanges(o,e.range)))for(var i of e)for(var n of t)if(c.a.intersectRanges(i.range,n.range))return!0}return!1})(y[e],y[t])&&(v=yield C(b=c.a.plusRange(m[e],m[t])),m.splice(t,1),m.splice(e,1),m.push(b),y.splice(t,1),y.splice(e,1),y.push(v),e=0,t=0)}for(var k of y){if(h.token.isCancellationRequested)return!0;var D=yield s.computeMoreMinimalEdits(a.uri,k);D&&w.push(...D)}}finally{h.dispose()}if(0===w.length)return!1;if(Object(d.b)(i))f.a.execute(i,w,!0),L(w),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{var[{range:N}]=w;const e=new u.a(N.startLineNumber,N.startColumn,N.endLineNumber,N.endColumn);a.pushEditOperations([e],w.map(e=>({text:e.text,range:c.a.lift(e.range),forceMoveMarkers:!0})),t=>{for(var{range:i}of t)if(c.a.areIntersectingOrTouching(i,e))return[new u.a(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return!0}))}function O(e,t,i,n,o){return S(this,void 0,void 0,(function*(){var r=e.get(v.a),s=Object(d.b)(t)?t.getModel():t,a=x(s);a=yield k.select(a,s,i);a&&(n.report(a),yield r.invokeFunction(E,a,t,i,o))}))}function E(e,t,i,n,o){return S(this,void 0,void 0,(function*(){var r=e.get(p.a);let s,a,h;a=Object(d.b)(i)?(s=i.getModel(),new l.b(i,5,void 0,o)):(s=i,new l.d(i,o));try{var g=yield t.provideDocumentFormattingEdits(s,s.getFormattingOptions(),a.token);if(h=yield r.computeMoreMinimalEdits(s.uri,g),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!h||0===h.length)return!1;if(Object(d.b)(i))f.a.execute(i,h,2!==n),2!==n&&(L(h),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1));else{var[{range:r}]=h;const e=new u.a(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn);s.pushEditOperations([e],h.map(e=>({text:e.text,range:c.a.lift(e.range),forceMoveMarkers:!0})),t=>{for(var{range:i}of t)if(c.a.areIntersectingOrTouching(i,e))return[new u.a(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return!0}))}function I(e,t,i,n,o){var a=g.x.ordered(t);return 0===a.length||a[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,i,n,o,r.a.None)).catch(s.g).then(i=>e.computeMoreMinimalEdits(t.uri,i))}k._selectors=new t.a,C.a.registerCommand("_executeFormatRangeProvider",(function(e,...t){var[t,i,n]=t;Object(w.c)(a.a.isUri(t)),Object(w.c)(c.a.isIRange(i)),t=e.get(m.a).getModel(t);if(t)return function(e,t,i,n,r){return S(this,void 0,void 0,(function*(){for(const l of g.j.ordered(t)){var a=yield Promise.resolve(l.provideDocumentRangeFormattingEdits(t,i,n,r)).catch(s.g);if(Object(o.n)(a))return yield e.computeMoreMinimalEdits(t.uri,a)}}))}(e.get(p.a),t,c.a.lift(i),n,r.a.None);throw Object(s.c)("resource")})),C.a.registerCommand("_executeFormatDocumentProvider",(function(e,...t){var[t,i]=t;Object(w.c)(a.a.isUri(t)),t=e.get(m.a).getModel(t);if(t)return function(e,t,i,n){return S(this,void 0,void 0,(function*(){for(const a of x(t)){var r=yield Promise.resolve(a.provideDocumentFormattingEdits(t,i,n)).catch(s.g);if(Object(o.n)(r))return yield e.computeMoreMinimalEdits(t.uri,r)}}))}(e.get(p.a),t,i,r.a.None);throw Object(s.c)("resource")})),C.a.registerCommand("_executeFormatOnTypeProvider",(function(e,...t){var[t,i,n,o]=t;Object(w.c)(a.a.isUri(t)),Object(w.c)(h.a.isIPosition(i)),Object(w.c)("string"==typeof n),t=e.get(m.a).getModel(t);if(t)return I(e.get(p.a),t,h.a.lift(i),n,o);throw Object(s.c)("resource")}))},"87a3":function(e,t,i){"use strict";i.r(t),i.d(t,"UnusualLineTerminatorsDetector",(function(){return c}));var n=i("dff7"),o=(t=i("a666"),i("b2cc")),r=i("5717"),s=i("eafb"),a=i("82c9"),l=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}}),d=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const h="ignoreUnusualLineTerminators";let c=class extends t.a{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._config=this._editor.getOption(113),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(113)&&(this._config=this._editor.getOption(113),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){return d(this,void 0,void 0,(function*(){var e,t,i;"off"!==this._config&&this._editor.hasModel()&&(e=this._editor.getModel()).mightContainUnusualLineTerminators()&&!0!==this._codeEditorService.getModelProperty(e.uri,h)&&!this._editor.getOption(80)&&("auto"===this._config||(yield this._dialogService.confirm({title:n.a("unusualLineTerminators.title","Unusual Line Terminators"),message:n.a("unusualLineTerminators.message","Detected unusual line terminators"),detail:n.a("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",Object(a.b)(e.uri)),primaryButton:n.a("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:n.a("unusualLineTerminators.ignore","Ignore")})).confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):(t=this._codeEditorService,i=!0,t.setModelProperty(e.uri,h,i)))}))}};c.ID="editor.contrib.unusualLineTerminatorsDetector",c=i([l(1,s.a),l(2,r.a)],c),Object(o.l)(c.ID,c)},8830:function(e,t,i){"use strict";i.d(t,"b",(function(){return g})),i.d(t,"a",(function(){return v})),i.d(t,"d",(function(){return k})),i.d(t,"c",(function(){return D}));t=i("dff7");var n=i("308f"),o=i("a666"),r=i("aa3d"),s=i("e8e3"),a=i("fd49"),l=i("62bd"),d=i("fb71"),h=i("0910"),c=i("89cd"),u=i("be5f");const g=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new n.b,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}},p=Object.hasOwnProperty;class m{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class f{constructor(){this._values=[]}_read(e){return this._values[e]}_write(e,t){this._values[e]=t}}class _{static readOptions(e){var t=e,i=new f;for(const o of a.l){var n="_never_"===o.name?void 0:t[o.name];i._write(o.id,n)}return i}static validateOptions(e){var t=new a.j;for(const i of a.l)t._write(i.id,i.validate(e._read(i.id)));return t}static computeOptions(e,t){var i=new m;for(const n of a.l)i._write(n.id,n.compute(t,i,e._read(n.id)));return i}static _deepEquals(e,t){if("object"!=typeof e||"object"!=typeof t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&s.h(e,t);for(var i in e)if(!_._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){var i=[];let n=!1;for(const r of a.l){var o=!_._deepEquals(e._read(r.id),t._read(r.id));(i[r.id]=o)&&(n=!0)}return n?new a.b(i):null}}function b(e){e=r.b(e);{var t=e,i=t.wordWrap;!0===i?t.wordWrap="on":!1===i&&(t.wordWrap="off"),!0===(i=t.lineNumbers)?t.lineNumbers="on":!1===i&&(t.lineNumbers="off"),!1===(i=t.autoClosingBrackets)&&(t.autoClosingBrackets="never",t.autoClosingQuotes="never",t.autoSurround="never"),"visible"===(i=t.cursorBlinking)&&(t.cursorBlinking="solid"),!0===(i=t.renderWhitespace)?t.renderWhitespace="boundary":!1===i&&(t.renderWhitespace="none"),!0===(i=t.renderLineHighlight)?t.renderLineHighlight="line":!1===i&&(t.renderLineHighlight="none"),!0===(i=t.acceptSuggestionOnEnter)?t.acceptSuggestionOnEnter="on":!1===i&&(t.acceptSuggestionOnEnter="off"),!1===(i=t.tabCompletion)?t.tabCompletion="off":!0===i&&(t.tabCompletion="onlySnippets");const n=t.suggest;n&&"object"==typeof n.filteredTypes&&n.filteredTypes&&(i={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"},Object(u.b)(i,e=>{var t=n.filteredTypes[e.key];!1===t&&(n[e.value]=t)})),!0===(i=t.hover)?t.hover={enabled:!0}:!1===i&&(t.hover={enabled:!1}),!0===(i=t.parameterHints)?t.parameterHints={enabled:!0}:!1===i&&(t.parameterHints={enabled:!1}),!0===(i=t.autoIndent)?t.autoIndent="full":!1===i&&(t.autoIndent="advanced"),!0===(i=t.matchBrackets)?t.matchBrackets="always":!1===i&&(t.matchBrackets="never")}return e}class v extends o.a{constructor(e,t){super(),this._onDidChange=this._register(new n.b),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new n.b),this.onDidChangeFast=this._onDidChangeFast.event,this.isSimpleWidget=e,this._isDominatedByLongLines=!1,this._computeOptionsMemory=new a.a,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._rawOptions=b(t),this._readOptions=_.readOptions(this._rawOptions),this._validatedOptions=_.validateOptions(this._readOptions),this._register(l.a.onDidChangeZoomLevel(e=>this._recomputeOptions())),this._register(g.onDidChangeTabFocus(e=>this._recomputeOptions()))}observeReferenceElement(e){}updatePixelRatio(){}_recomputeOptions(){var e=this.options,t=this._computeInternalOptions();e?null!==(e=_.checkEquals(e,t))&&(this.options=t,this._onDidChangeFast.fire(e),this._onDidChange.fire(e)):this.options=t}getRawOptions(){return this._rawOptions}_computeInternalOptions(){var e=this._getEnvConfiguration(),t=d.a.createFromValidatedSettings(this._validatedOptions,e.zoomLevel,e.pixelRatio,this.isSimpleWidget);t={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,fontInfo:this.readConfiguration(t),extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:g.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return _.computeOptions(this._validatedOptions,t)}static _subsetEquals(e,t){for(const o in t)if(p.call(t,o)){var i=t[o],n=e[o];if(n!==i){if(Array.isArray(n)&&Array.isArray(i)){if(s.h(n,i))continue}else if(n&&"object"==typeof n&&i&&"object"==typeof i&&this._subsetEquals(n,i))continue;return!1}}return!0}updateOptions(e){void 0===e||(e=b(e),v._subsetEquals(this._rawOptions,e))||(this._rawOptions=r.f(this._rawOptions,e||{}),this._readOptions=_.readOptions(this._rawOptions),this._validatedOptions=_.validateOptions(this._readOptions),this._recomputeOptions())}setIsDominatedByLongLines(e){this._isDominatedByLongLines=e,this._recomputeOptions()}setMaxLineNumber(e){e=v._digitCount(e),this._lineNumbersDigitCount!==e&&(this._lineNumbersDigitCount=e,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}static _digitCount(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}}var C;i=Object.freeze({id:"editor",order:5,type:"object",title:t.a("editorConfigurationTitle","Editor"),scope:5}),o=c.a.as(h.a.Configuration);const w=Object.assign(Object.assign({},i),{properties:{"editor.tabSize":{type:"number",default:a.d.tabSize,minimum:1,markdownDescription:t.a("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:a.d.insertSpaces,markdownDescription:t.a("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:a.d.detectIndentation,markdownDescription:t.a("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:a.d.trimAutoWhitespace,description:t.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:a.d.largeFileOptimizations,description:t.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:t.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[t.a("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),t.a("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),t.a("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:t.a("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[t.a("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),t.a("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),t.a("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:t.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:t.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:t.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:t.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:t.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:t.a("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:t.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:t.a("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[t.a("wordWrap.off","Lines will never wrap."),t.a("wordWrap.on","Lines will wrap at the viewport width."),t.a("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});for(const N of a.l){var y=N.schema;if(void 0!==y)if(void 0!==(C=y).type||void 0!==C.anyOf)w.properties["editor."+N.name]=y;else for(var S in y)p.call(y,S)&&(w.properties[S]=y[S])}let L=null;function x(){return null===L&&(L=Object.create(null),Object.keys(w.properties).forEach(e=>{L[e]=!0})),L}function k(e){return x()["editor."+e]||!1}function D(e){return x()["diffEditor."+e]||!1}o.registerConfiguration(w)},8899:function(e,t,i){},"88b6":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return i.e("chunk-2d22c2b8").then(i.bind(null,"f1a8"))}})},"88d4":function(e,t,i){"use strict";i.d(t,"a",(function(){return N})),i.d(t,"b",(function(){return C})),i.d(t,"d",(function(){return O})),i.d(t,"c",(function(){return I})),i.d(t,"p",(function(){return M})),i.d(t,"q",(function(){return T})),i.d(t,"r",(function(){return A})),i.d(t,"e",(function(){return R})),i.d(t,"j",(function(){return P})),i.d(t,"l",(function(){return F})),i.d(t,"k",(function(){return B})),i.d(t,"n",(function(){return j})),i.d(t,"o",(function(){return W})),i.d(t,"f",(function(){return V})),i.d(t,"g",(function(){return H})),i.d(t,"m",(function(){return z})),i.d(t,"h",(function(){return U})),i.d(t,"i",(function(){return K})),i("7b59");var n=i("11f7"),o=i("5aa5"),r=i("f070"),s=(t=i("ceb8"),i("308f")),a=i("aa3d"),l=i("5717"),d=i("d379"),h=(i("b968"),i("70c3")),c=i("9c3e"),u=i("a666"),g=i("6a89"),p=i("b57f"),m=new t.a(new t.c(0,122,204));const f={showArrow:!0,showFrame:!0,className:"",frameColor:m,arrowColor:m,keepEditorSelection:!1};class _{constructor(e,t,i,n,o,r){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this._onDomNodeTop=o,this._onComputedHeight=r}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class b{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class v{constructor(e){this._editor=e,this._ruleName=v._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}dispose(){this.hide(),n.Q(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){n.Q(this._ruleName),n.v(".monaco-editor "+this._ruleName,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:g.a.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._editor.deltaDecorations(this._decorations,[])}}v._IdGenerator=new c.a(".arrow-decoration-");var C,w=i("dff7"),y=(m=i("4fc3"),c=i("0a0f"),i("f5f3")),S=i("b2cc"),L=i("303e"),x=i("561a"),k=i("7944"),D=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});const N=Object(c.c)("IPeekViewService");function O(e){return e=e.get(l.a).getFocusedCodeEditor(),e instanceof d.a?e.getParentEditor():e}Object(y.b)(N,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){var i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose()),this._widgets.set(e,{widget:t,listener:t.onDidClose(()=>{var i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))})})}}),(y=C=C||{}).inPeekEditor=new m.c("inReferenceSearchEditor",!0,w.a("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),y.notInPeekEditor=y.inPeekEditor.toNegated(),y=class{constructor(e,t){e instanceof d.a&&C.inPeekEditor.bindTo(t)}dispose(){}},y.ID="editor.contrib.referenceController",y=i([D(1,m.b)],y),Object(S.l)(y.ID,y);const E={headerBackgroundColor:t.a.white,primaryHeadingColor:t.a.fromHex("#333333"),secondaryHeadingColor:t.a.fromHex("#6c6c6cb3")};let I=class extends class{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new u.b,this.container=null,this._isShowing=!1,this.editor=e,this.options=a.b(t),a.f(this.options,f,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(e=>{var t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new v(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){var e;this.container&&this.options.frameColor&&(e=this.options.frameColor.toString(),this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e),this._arrow&&this.options.arrowColor&&(e=this.options.arrowColor.toString(),this._arrow.color=e)}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return 0<e.minimap.minimapWidth&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;this.domNode.style.height=e+"px",this.container&&(e-=this._decoratingElementsHeight(),this.container.style.height=e+"px",t=this.editor.getLayoutInfo(),this._doLayout(e,this._getWidth(t))),this._resizeSash&&this._resizeSash.layout()}get position(){var[e]=this._positionMarkerId;if(e){var t=this.editor.getModel();if(t&&(t=t.getDecorationRange(e),t))return t.getStartPosition()}}show(e,t){e=g.a.isIRange(e)?g.a.lift(e):g.a.fromPositions(e),this._isShowing=!0,this._showImpl(e,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:e,options:p.a.EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){var e,t=this.editor.getOption(58);let i=0;return this.options.showArrow&&(e=Math.round(t/3),i+=2*e),this.options.showFrame&&(e=Math.round(t/9),i+=2*e),i}_showImpl(e,t){const i=e.getStartPosition();var n=this.editor.getLayoutInfo();const o=this._getWidth(n),r=(this.domNode.style.width=o+"px",this.domNode.style.left=this._getLeft(n)+"px",document.createElement("div"));r.style.overflow="hidden";n=this.editor.getOption(58);var s=Math.max(12,this.editor.getLayoutInfo().height/n*.8);t=Math.min(t,s);let a=0,l=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(n/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(l=Math.round(n/9)),this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new _(r,i.lineNumber,i.column,t,e=>this._onViewZoneTop(e),e=>this._onViewZoneHeight(e)),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new b("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const e=this.options.frameWidth||l;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}s=t*n-this._decoratingElementsHeight(),this.container&&(this.container.style.top=a+"px",this.container.style.height=s+"px",this.container.style.overflow="hidden"),this._doLayout(s,o),this.options.keepEditorSelection||this.editor.setSelection(e),n=this.editor.getModel();n&&((s=e.endLineNumber+1)<=n.getLineCount()?this.revealLine(s,!1):this.revealLine(n.getLineCount(),!0))}revealLine(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(!this._resizeSash){let e;this._resizeSash=this._disposables.add(new h.b(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{e&&(t=(t=(t.currentY-e.startY)/this.editor.getOption(58))<0?Math.ceil(t):Math.floor(t),5<(t=e.heightInLines+t))&&t<35&&this._relayout(t)}))}}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){var e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new s.b,this.onDidClose=this._onDidClose.event,a.f(this.options,E,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){var t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();var e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=n.a(".head"),this._bodyElement=n.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){var i=n.a(".peekview-title"),s=(i=(this.options.supportOnTitleClick&&(i.classList.add("clickable"),n.o(i,"click",e=>this._onTitleClick(e))),n.q(this._headElement,i),this._fillTitleIcon(i),this._primaryHeading=n.a("span.filename"),this._secondaryHeading=n.a("span.dirname"),this._metaHeading=n.a("span.meta"),n.q(i,this._primaryHeading,this._secondaryHeading,this._metaHeading),n.a(".peekview-actions")),n.q(this._headElement,i),this._getActionBarOptions());this._actionbarWidget=new o.a(i,s),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new r.a("peekview.close",w.a("label.close","Close"),x.b.close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:k.b.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:n.t(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,n.W(this._metaHeading)):n.K(this._metaHeading))}_doLayout(e,t){var i;!this._isShowing&&e<0?this.dispose():(i=Math.ceil(1.2*this.editor.getOption(58)),e=Math.round(e-(i+2)),this._doLayoutHead(i,t),this._doLayoutBody(e,t))}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=e+"px",this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=e+"px")}};I=i([D(2,c.a)],I);const M=Object(L.wc)("peekViewTitle.background",{dark:Object(L.Lc)(L.M,.1),light:Object(L.Lc)(L.M,.1),hc:null},w.a("peekViewTitleBackground","Background color of the peek view title area.")),T=Object(L.wc)("peekViewTitleLabel.foreground",{dark:t.a.white,light:t.a.black,hc:t.a.white},w.a("peekViewTitleForeground","Color of the peek view title.")),A=Object(L.wc)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},w.a("peekViewTitleInfoForeground","Color of the peek view title info.")),R=Object(L.wc)("peekView.border",{dark:L.M,light:L.M,hc:L.h},w.a("peekViewBorder","Color of the peek view borders and arrow.")),P=Object(L.wc)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:t.a.black},w.a("peekViewResultsBackground","Background color of the peek view result list.")),F=Object(L.wc)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:t.a.white},w.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),B=Object(L.wc)("peekViewResult.fileForeground",{dark:t.a.white,light:"#1E1E1E",hc:t.a.white},w.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),j=Object(L.wc)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},w.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),W=Object(L.wc)("peekViewResult.selectionForeground",{dark:t.a.white,light:"#6C6C6C",hc:t.a.white},w.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),V=Object(L.wc)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:t.a.black},w.a("peekViewEditorBackground","Background color of the peek view editor.")),H=Object(L.wc)("peekViewEditorGutter.background",{dark:V,light:V,hc:V},w.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),z=Object(L.wc)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},w.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),U=Object(L.wc)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},w.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),K=Object(L.wc)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:L.b},w.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},"891c":function(e,t,i){"use strict";i.r(t),i.d(t,"getDocumentSymbols",(function(){return h}));var n=i("6d8e"),o=i("1b69"),r=i("2504"),s=i("b78f"),a=i("70f5"),l=(t=i("9e74"),i("ef8e9")),d=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function h(e,t,i){return d(this,void 0,void 0,(function*(){var n=yield a.a.create(e,i);return t?n.asListOfDocumentSymbols():n.getTopLevelSymbols()}))}t.a.registerCommand("_executeDocumentSymbolProvider",(function(e,...t){return d(this,void 0,void 0,(function*(){var[i]=t,a=(Object(l.c)(n.a.isUri(i)),e.get(o.a).getModel(i));if(a)return h(a,!1,r.a.None);a=yield e.get(s.a).createModelReference(i);try{return yield h(a.object.textEditorModel,!1,r.a.None)}finally{a.dispose()}}))}))},"89cd":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i("1569"),o=i("ef8e9");const r=new class{constructor(){this.data=new Map}add(e,t){n.a(o.k(e)),n.a(o.j(t)),n.a(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},"8a3f":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return i.e("chunk-2d2295e9").then(i.bind(null,"dcc7"))}})},"8ae8":function(e,t,i){"use strict";function n(e){return e&&"string"==typeof e.id}i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o}));const o={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},"8b4e":function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return r})),t=i("dff7");class n{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;var n=[];for(let s=0,a=t.length;s<a;s++){var o=t[s],r=i(o);if(null===r)return null;n[s]=function(e,t,i){if(null===t)return"";var n=[];return e.ctrlKey&&n.push(i.ctrlKey),e.shiftKey&&n.push(i.shiftKey),e.altKey&&n.push(i.altKey),e.metaKey&&n.push(i.metaKey),""!==t&&n.push(t),n.join(i.separator)}(o,r,this.modifierLabels[e])}return n.join(" ")}}const o=new n({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:t.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:t.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:t.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:t.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:t.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:t.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:t.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:t.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),r=new n({ctrlKey:t.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:t.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:t.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:t.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:t.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:t.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:t.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:t.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:t.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:t.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:t.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:t.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"})},"8bf1":function(e,t,i){"use strict";i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return s})),i.d(t,"d",(function(){return a})),i.d(t,"e",(function(){return l}));var n=i("4dc7");t=i("b707");const o=new class{clone(){return this}equals(e){return this===e}},r="vs.editor.nullMode",s=new t.u(r,0);function a(e,t,i,o){return new n.b([new n.a(o,"",e)],i)}function l(e,t,i,r){var s=new Uint32Array(2);return s[0]=r,s[1]=(e<<0|16384|2<<23)>>>0,new n.c(s,null===i?o:i)}},"8bf4":function(e,t,i){},"8c02":function(e,t,i){"use strict";i.d(t,"a",(function(){return l})),i.d(t,"d",(function(){return h})),i.d(t,"c",(function(){return u})),i.d(t,"e",(function(){return g})),i.d(t,"b",(function(){return p}));var n=i("3742"),o=i("e6ff"),r=i("7061"),s=i("6a89"),a=i("3352");class l{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){if(""===this.searchString)return null;let e,t=(e=this.isRegex?function(e){if(e&&0!==e.length)for(let i=0,n=e.length;i<n;i++)if(92===e.charCodeAt(i)){if(++i>=n)break;var t=e.charCodeAt(i);if(110===t||114===t||87===t||119===t)return!0}return!1}(this.searchString):0<=this.searchString.indexOf("\n"),null);try{t=n.q(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new d(t,this.wordSeparators?Object(o.a)(this.wordSeparators):null,i?this.searchString:null)}}class d{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}function h(e,t,i){if(!i)return new a.b(e,null);var n=[];for(let o=0,r=t.length;o<r;o++)n[o]=t[o];return new a.b(e,n)}class c{constructor(e){var t=[];let i=0;for(let n=0,o=e.length;n<o;n++)10===e.charCodeAt(n)&&(t[i++]=n);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){var t=this._lineFeedsOffsets;let i=0,n=t.length-1;if(-1===n)return 0;if(e<=t[0])return 0;for(;i<n;){var o=i+((n-i)/2>>0);t[o]>=e?n=o-1:t[o+1]>=e?(i=o,n=o):i=o+1}return i+1}}class u{static findMatches(e,t,i,n,o){return t=t.parseSearchRequest(),t?t.regex.multiline?this._doFindMatchesMultiline(e,i,new p(t.wordSeparators,t.regex),n,o):this._doFindMatchesLineByLine(e,i,t,n,o):[]}static _getMultilineMatchRange(e,t,i,n,o,r){let a,l,d=0;return a=n?t+o+(d=n.findLineFeedCountBeforeOffset(o)):t+o,l=n?(t=n.findLineFeedCountBeforeOffset(o+r.length)-d,a+r.length+t):a+r.length,n=e.getPositionAt(a),o=e.getPositionAt(l),new s.a(n.lineNumber,n.column,o.lineNumber,o.column)}static _doFindMatchesMultiline(e,t,i,n,o){var r,s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l="\r\n"===e.getEOL()?new c(a):null,d=[];let u=0;for(i.reset(0);r=i.next(a);)if(d[u++]=h(this._getMultilineMatchRange(e,s,a,l,r.index,r[0]),r,n),u>=o)return d;return d}static _doFindMatchesLineByLine(e,t,i,n,o){var r=[];let s=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);s=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,s,r,n,o)}else{const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,s,r,n,o);for(let l=t.startLineNumber+1;l<t.endLineNumber&&s<o;l++)s=this._findMatchesInLine(i,e.getLineContent(l),l,0,s,r,n,o);if(s<o){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);s=this._findMatchesInLine(i,a,t.endLineNumber,0,s,r,n,o)}}return r}static _findMatchesInLine(e,t,i,n,o,r,l,d){var c=e.wordSeparators;if(!l&&e.simpleSearch){var u=e.simpleSearch,m=u.length,f=t.length;let l=-m;for(;-1!==(l=t.indexOf(u,l+m));)if((!c||g(c,t,f,l,m))&&(r[o++]=new a.b(new s.a(i,l+1+n,i,l+1+m+n),null),d<=o))return o}else{var _,b=new p(e.wordSeparators,e.regex);b.reset(0);do{if((_=b.next(t))&&(r[o++]=h(new s.a(i,_.index+1+n,i,_.index+1+_[0].length+n),_,l),d<=o))return o}while(_)}return o}static findNextMatch(e,t,i,n){var o;t=t.parseSearchRequest();return t?(o=new p(t.wordSeparators,t.regex),t.regex.multiline?this._doFindNextMatchMultiline(e,i,o,n):this._doFindNextMatchLineByLine(e,i,o,n)):null}static _doFindNextMatchMultiline(e,t,i,n){var o=new r.a(t.lineNumber,1),a=e.getOffsetAt(o),l=e.getLineCount(),d=(o=e.getValueInRange(new s.a(o.lineNumber,o.column,l,e.getLineMaxColumn(l)),1),l="\r\n"===e.getEOL()?new c(o):null,i.reset(t.column-1),i.next(o));return d?h(this._getMultilineMatchRange(e,a,o,l,d.index,d[0]),d,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.a(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){var o=e.getLineCount(),r=t.lineNumber;const s=e.getLineContent(r),a=this._findFirstMatchInLine(i,s,r,t.column,n);if(a)return a;for(let d=1;d<=o;d++){var l=(r+d-1)%o;const t=e.getLineContent(1+l),s=this._findFirstMatchInLine(i,t,1+l,1,n);if(s)return s}return null}static _findFirstMatchInLine(e,t,i,n,o){return e.reset(n-1),n=e.next(t),n?h(new s.a(i,n.index+1,i,n.index+1+n[0].length),n,o):null}static findPreviousMatch(e,t,i,n){var o;t=t.parseSearchRequest();return t?(o=new p(t.wordSeparators,t.regex),t.regex.multiline?this._doFindPreviousMatchMultiline(e,i,o,n):this._doFindPreviousMatchLineByLine(e,i,o,n)):null}static _doFindPreviousMatchMultiline(e,t,i,n){var o=this._doFindMatchesMultiline(e,new s.a(1,1,t.lineNumber,t.column),i,n,9990);return 0<o.length?o[o.length-1]:(o=e.getLineCount(),t.lineNumber!==o||t.column!==e.getLineMaxColumn(o)?this._doFindPreviousMatchMultiline(e,new r.a(o,e.getLineMaxColumn(o)),i,n):null)}static _doFindPreviousMatchLineByLine(e,t,i,n){var o=e.getLineCount(),r=t.lineNumber;const s=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(i,s,r,n);if(a)return a;for(let d=1;d<=o;d++){var l=(o+r-d-1)%o;const t=e.getLineContent(1+l),s=this._findLastMatchInLine(i,t,1+l,n);if(s)return s}return null}static _findLastMatchInLine(e,t,i,n){let o=null;var r;for(e.reset(0);r=e.next(t);)o=h(new s.a(i,r.index+1,i,r.index+1+r[0].length),r,n);return o}}function g(e,t,i,n,o){return function(e,t,i,n){if(0===i)return!0;var o=t.charCodeAt(i-1);return 0!==e.get(o)||(13===o||10===o||0<n&&(o=t.charCodeAt(i),0!==e.get(o)))}(e,t,n,o)&&function(e,t,i,n,o){return n+o===i||(i=t.charCodeAt(n+o),0!==e.get(i)||(13===i||10===i||0<o&&(i=t.charCodeAt(n+o-1),0!==e.get(i))))}(e,t,i,n,o)}class p{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){var t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(!(i=this._searchRegex.exec(e)))return null;var o=i.index,r=i[0].length;if(o===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0!==r)return null;65535<n.z(e,t,this._searchRegex.lastIndex)?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1}else if(this._prevMatchStartIndex=o,this._prevMatchLength=r,!this._wordSeparators||g(this._wordSeparators,e,t,o,r))return i}while(i);return null}}},"8d5c":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return i.e("chunk-2d0e1fbe").then(i.bind(null,"7d83"))}})},"8ea9":function(e,t,i){"use strict";i.r(t),i("cf78"),i("f570"),i("a79b"),i("7367"),i("2cd0");var n,o=i("f8a4");for(n in o)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(n)},"8eb6":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return i.e("chunk-2d21f327").then(i.bind(null,"d995"))}})},"8f6a":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return i.e("chunk-2d208ac5").then(i.bind(null,"a693"))}})},"918c":function(e,t,i){"use strict";i.d(t,"p",(function(){return r})),i.d(t,"q",(function(){return s})),i.d(t,"n",(function(){return c})),i.d(t,"m",(function(){return u})),i.d(t,"o",(function(){return p})),i.d(t,"a",(function(){return m})),i.d(t,"r",(function(){return f})),i.d(t,"b",(function(){return b})),i.d(t,"u",(function(){return v})),i.d(t,"l",(function(){return C})),i.d(t,"j",(function(){return w})),i.d(t,"k",(function(){return y})),i.d(t,"t",(function(){return S})),i.d(t,"s",(function(){return L})),i.d(t,"v",(function(){return k})),i.d(t,"w",(function(){return D})),i.d(t,"x",(function(){return N})),i.d(t,"y",(function(){return O})),i.d(t,"B",(function(){return E})),i.d(t,"z",(function(){return I})),i.d(t,"C",(function(){return M})),i.d(t,"A",(function(){return T})),i.d(t,"c",(function(){return A})),i.d(t,"d",(function(){return R})),i.d(t,"e",(function(){return P})),i.d(t,"f",(function(){return F})),i.d(t,"g",(function(){return B})),i.d(t,"h",(function(){return j})),i.d(t,"i",(function(){return W}));t=i("dff7");var n=i("ceb8"),o=i("303e");i=i("b7d0");const r=Object(o.wc)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},t.a("lineHighlight","Background color for the highlight of line at the cursor position.")),s=Object(o.wc)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},t.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),a=Object(o.wc)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},t.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),l=Object(o.wc)("editor.rangeHighlightBorder",{dark:null,light:null,hc:o.b},t.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),d=Object(o.wc)("editor.symbolHighlightBackground",{dark:o.x,light:o.x,hc:null},t.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),h=Object(o.wc)("editor.symbolHighlightBorder",{dark:null,light:null,hc:o.b},t.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),c=Object(o.wc)("editorCursor.foreground",{dark:"#AEAFAD",light:n.a.black,hc:n.a.white},t.a("caret","Color of the editor cursor.")),u=Object(o.wc)("editorCursor.background",null,t.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),g=Object(o.wc)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},t.a("editorWhitespaces","Color of whitespace characters in the editor.")),p=Object(o.wc)("editorIndentGuide.background",{dark:g,light:g,hc:g},t.a("editorIndentGuides","Color of the editor indentation guides.")),m=Object(o.wc)("editorIndentGuide.activeBackground",{dark:g,light:g,hc:g},t.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),f=Object(o.wc)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:n.a.white},t.a("editorLineNumbers","Color of editor line numbers."));var _=Object(o.wc)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:o.b},t.a("editorActiveLineNumber","Color of editor active line number"),!1,t.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."));const b=Object(o.wc)("editorLineNumber.activeForeground",{dark:_,light:_,hc:_},t.a("editorActiveLineNumber","Color of editor active line number")),v=Object(o.wc)("editorRuler.foreground",{dark:"#5A5A5A",light:n.a.lightgrey,hc:n.a.white},t.a("editorRuler","Color of the editor rulers.")),C=Object(o.wc)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hc:"#999999"},t.a("editorCodeLensForeground","Foreground color of editor CodeLens")),w=Object(o.wc)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},t.a("editorBracketMatchBackground","Background color behind matching brackets")),y=Object(o.wc)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:o.h},t.a("editorBracketMatchBorder","Color for matching brackets boxes")),S=Object(o.wc)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},t.a("editorOverviewRulerBorder","Color of the overview ruler border.")),L=Object(o.wc)("editorOverviewRuler.background",null,t.a("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),x=Object(o.wc)("editorGutter.background",{dark:o.r,light:o.r,hc:o.r},t.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),k=Object(o.wc)("editorUnnecessaryCode.border",{dark:null,light:null,hc:n.a.fromHex("#fff").transparent(.8)},t.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),D=Object(o.wc)("editorUnnecessaryCode.opacity",{dark:n.a.fromHex("#000a"),light:n.a.fromHex("#0007"),hc:null},t.a("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),N=Object(o.wc)("editorGhostText.border",{dark:null,light:null,hc:n.a.fromHex("#fff").transparent(.8)},t.a("editorGhostTextBorder","Border color of ghost text in the editor.")),O=Object(o.wc)("editorGhostText.foreground",{dark:n.a.fromHex("#ffffff56"),light:n.a.fromHex("#0007"),hc:null},t.a("editorGhostTextForeground","Foreground color of the ghost text in the editor."));_=new n.a(new n.c(0,122,204,.6));const E=Object(o.wc)("editorOverviewRuler.rangeHighlightForeground",{dark:_,light:_,hc:_},t.a("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),I=Object(o.wc)("editorOverviewRuler.errorForeground",{dark:new n.a(new n.c(255,18,18,.7)),light:new n.a(new n.c(255,18,18,.7)),hc:new n.a(new n.c(255,50,50,1))},t.a("overviewRuleError","Overview ruler marker color for errors.")),M=Object(o.wc)("editorOverviewRuler.warningForeground",{dark:o.X,light:o.X,hc:o.W},t.a("overviewRuleWarning","Overview ruler marker color for warnings.")),T=Object(o.wc)("editorOverviewRuler.infoForeground",{dark:o.M,light:o.M,hc:o.L},t.a("overviewRuleInfo","Overview ruler marker color for infos.")),A=Object(o.wc)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hc:"#FFD700"},t.a("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),R=Object(o.wc)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hc:"#DA70D6"},t.a("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),P=Object(o.wc)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hc:"#87CEFA"},t.a("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),F=Object(o.wc)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hc:"#00000000"},t.a("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),B=Object(o.wc)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hc:"#00000000"},t.a("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),j=Object(o.wc)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hc:"#00000000"},t.a("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),W=Object(o.wc)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new n.a(new n.c(255,18,18,.8)),light:new n.a(new n.c(255,18,18,.8)),hc:new n.a(new n.c(255,50,50,1))},t.a("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets."));Object(i.f)((e,t)=>{var i=e.getColor(o.r);i&&t.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${i}; }`),i=e.getColor(o.B),i&&t.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${i}; }`),i=e.getColor(x),i&&t.addRule(`.monaco-editor .margin { background-color: ${i}; }`),i=e.getColor(a),i&&t.addRule(`.monaco-editor .rangeHighlight { background-color: ${i}; }`),i=e.getColor(l),i&&t.addRule(`.monaco-editor .rangeHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${i}; }`),i=e.getColor(d),i&&t.addRule(`.monaco-editor .symbolHighlight { background-color: ${i}; }`),i=e.getColor(h),i&&t.addRule(`.monaco-editor .symbolHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${i}; }`),i=e.getColor(g);i&&(t.addRule(`.monaco-editor .mtkw { color: ${i} !important; }`),t.addRule(`.monaco-editor .mtkz { color: ${i} !important; }`))})},"91d3":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return i.e("chunk-772fee43").then(i.bind(null,"dd504"))}})},"92a6":function(e,t,i){"use strict";i.d(t,"a",(function(){return m}));var n=i("5fe7"),o=i("ceb8"),r=i("fdcc"),s=i("eda7"),a=i("a666"),l=(t=i("b2cc"),i("5717")),d=i("6a89"),h=i("b57f"),c=i("b707"),u=i("6483"),g=(i=i("fbba"),function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}),p=function(e,t){return function(i,n){t(i,n,e)}};let m=class e extends a.a{constructor(e,t,i){super(),this._editor=e,this._codeEditorService=t,this._configurationService=i,this._localToDispose=this._register(new a.b),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=[],this._decorationsTypes=new Set,this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(c.c.onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(()=>{var e=this._isEnabled;this._isEnabled=this.isEnabled(),e!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){var e=this._editor.getModel();return!!e&&(e=e.getLanguageIdentifier(),e=this._configurationService.getValue(e.language),e&&"object"==typeof e&&(e=e.colorDecorators,e&&void 0!==e.enable&&!e.enable)?e.enable:this._editor.getOption(16))}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){var t;this.stop(),this._isEnabled&&(t=this._editor.getModel())&&c.c.has(t)&&(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new n.g,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},e.RECOMPUTE_TIME))})),this.beginCompute())}beginCompute(){this._computePromise=Object(n.h)(e=>{var t=this._editor.getModel();return t?Object(u.b)(t,e):Promise.resolve([])}),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},r.f)}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){var t=e.map(e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:h.a.EMPTY}));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((t,i)=>this._colorDatas.set(t,e[i]))}updateColorDecorators(e){var t=[];let i={};for(let d=0;d<e.length&&t.length<500;d++){var{red:n,green:r,blue:a,alpha:l}=e[d].colorInfo.color,n=new o.c(Math.round(255*n),Math.round(255*r),Math.round(255*a),l),r=Object(s.c)(`rgba(${n.r},${n.g},${n.b},${n.a})`).toString(16),a=`rgba(${n.r}, ${n.g}, ${n.b}, ${n.a})`,l="colorBox-"+r;this._decorationsTypes.has(l)||i[l]||this._codeEditorService.registerDecorationType("color-detector-color",l,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:a},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),i[l]=!0,t.push({range:{startLineNumber:e[d].colorInfo.range.startLineNumber,startColumn:e[d].colorInfo.range.startColumn,endLineNumber:e[d].colorInfo.range.endLineNumber,endColumn:e[d].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(l,!0)})}this._decorationsTypes.forEach(e=>{i[e]||this._codeEditorService.removeDecorationType(e)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,t)}removeAllDecorations(){this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(e=>{this._codeEditorService.removeDecorationType(e)})}getColorData(e){var t=this._editor.getModel();return t&&0!==(t=t.getDecorationsInRange(d.a.fromPositions(e,e)).filter(e=>this._colorDatas.has(e.id))).length?this._colorDatas.get(t[0].id):null}};m.ID="editor.contrib.colorDetector",m.RECOMPUTE_TIME=1e3,m=g([p(1,l.a),p(2,i.a)],m),Object(t.l)(m.ID,m)},"930f":function(e,t,i){},"93b9":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return i.e("chunk-2d0a43df").then(i.bind(null,"0636"))}})},"93ba":function(e,t,i){"use strict";i.r(t),i.d(t,"ToggleTabFocusModeAction",(function(){return s}));var n=i("dff7"),o=i("3813"),r=(t=i("b2cc"),i("8830"));class s extends t.b{constructor(){super({id:s.ID,label:n.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})}run(e,t){var i=!r.b.getTabFocusMode();r.b.setTabFocusMode(i),i?Object(o.a)(n.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(o.a)(n.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}s.ID="editor.action.toggleTabFocusMode",Object(t.j)(s)},"93d9":function(e,t,i){"use strict";i.d(t,"a",(function(){return We})),i.d(t,"b",(function(){return Ve})),i.d(t,"e",(function(){return Ue})),i.d(t,"d",(function(){return ct})),i.d(t,"c",(function(){return ft}));var n=i("11f7"),o=i("e8e3"),r=i("2504"),s=i("308f"),a=i("a666"),l=(i("e2b8"),i("72a7"));class d{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.a.None}}renderElement(e,t,i,n){if(i.disposable&&i.disposable.dispose(),i.data){var o=this.modelProvider();if(o.isResolved(e))return this.renderer.renderElement(o.get(e),e,i.data,n);const t=new r.b;o=o.resolve(e,t.token),i.disposable={dispose:()=>t.cancel()},this.renderer.renderPlaceholder(e,i.data),o.then(t=>this.renderer.renderElement(t,e,i.data,n))}}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class h{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){var t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class c{constructor(e,t,i,n,o={}){const r=()=>this.model;n=n.map(e=>new d(e,r)),this.list=new l.c(e,t,i,n,(e=r,t=o,Object.assign(Object.assign({},t),{accessibilityProvider:t.accessibilityProvider&&new h(e,t.accessibilityProvider)})))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return s.c.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i}))}get onPointer(){return s.c.map(this.list.onPointer,({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i}))}get onDidChangeSelection(){return s.c.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:i})=>({elements:e.map(e=>this._model.get(e)),indexes:t,browserEvent:i}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,Object(o.r)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var u=i("e385");i("ec60");class g{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=g.TemplateId,this.renderedTemplates=new Set;var n=new Map(t.map(e=>[e.templateId,e]));this.renderers=[];for(const r of e){var o=n.get(r.templateId);if(!o)throw new Error(`Table cell renderer for template id ${r.templateId} not found.`);this.renderers.push(o)}}renderTemplate(e){var t=Object(n.q)(e,Object(n.a)(".monaco-table-tr")),i=[],o=[];for(let a=0;a<this.columns.length;a++){var r=this.renderers[a],s=Object(n.q)(t,Object(n.a)(".monaco-table-td",{"data-col-index":a}));s.style.width=this.getColumnSize(a)+"px",i.push(s),o.push(r.renderTemplate(s))}return e={container:e,cellContainers:i,cellTemplateData:o},this.renderedTemplates.add(e),e}renderElement(e,t,i,n){for(let r=0;r<this.columns.length;r++){var o=this.columns[r].project(e);this.renderers[r].renderElement(o,t,i.cellTemplateData[r],n)}}disposeElement(e,t,i,n){for(let s=0;s<this.columns.length;s++){var o,r=this.renderers[s];r.disposeElement&&(o=this.columns[s].project(e),r.disposeElement(o,t,i.cellTemplateData[s],n))}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++)this.renderers[t].disposeTemplate(e.cellTemplateData[t]);Object(n.t)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(var{cellContainers:i}of this.renderedTemplates)i[e].style.width=t+"px"}}g.TemplateId="row";class p{constructor(e,t){this.column=e,this.index=t,this._onDidLayout=new s.b,this.onDidLayout=this._onDidLayout.event,this.element=Object(n.a)(".monaco-table-th",{"data-col-index":t,title:e.tooltip},e.label)}get minimumSize(){var e;return null!=(e=this.column.minimumWidth)?e:120}get maximumSize(){var e;return null!=(e=this.column.maximumWidth)?e:Number.POSITIVE_INFINITY}get onDidChange(){var e;return null!=(e=this.column.onDidChangeWidthConstraints)?e:s.c.None}layout(e){this._onDidLayout.fire([this.index,e])}}class m{constructor(e,t,i,o,r,a){this.virtualDelegate=i,this.domId="table_id_"+ ++m.InstanceCount,this.cachedHeight=0,this.domNode=Object(n.q)(t,Object(n.a)(".monaco-table."+this.domId));t=o.map((e,t)=>new p(e,t));var d,h={size:t.reduce((e,t)=>e+t.column.weight,0),views:t.map(e=>({size:e.column.weight,view:e}))};this.splitview=new u.b(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:h}),this.splitview.el.style.height=i.headerRowHeight+"px",this.splitview.el.style.lineHeight=i.headerRowHeight+"px";const c=new g(o,r,e=>this.splitview.getViewSize(e));this.list=new l.c(e,this.domNode,(d=i,{getHeight(e){return d.getHeight(e)},getTemplateId(){return g.TemplateId}}),[c],a),this.columnLayoutDisposable=s.c.any(...t.map(e=>e.onDidLayout))(([e,t])=>c.layoutColumn(e,t)),this.styleElement=Object(n.w)(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){var t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.splitview.dispose(),this.list.dispose(),this.columnLayoutDisposable.dispose()}}m.InstanceCount=0;var f,_=i("7de1"),b=i("650e"),v=i("e32d"),C=i("b835");(t=f=f||{})[t.Unknown=0]="Unknown",t[t.Twistie=1]="Twistie",t[t.Element=2]="Element";class w extends Error{constructor(e,t){super(`TreeError [${e}] `+t)}}class y{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}var S=i("1b0e"),L=i("258a");function x(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function k(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function D(e){return"boolean"==typeof e.collapsible}class N{constructor(e,t,i,n={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new s.d,this._onDidChangeCollapseState=new s.b,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new s.b,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new s.b,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=void 0!==n.collapseByDefault&&n.collapseByDefault,this.filter=n.filter,this.autoExpandSingleChildren=void 0!==n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=L.a.empty(),n={}){if(0===e.length)throw new w(this.user,"Invalid tree location");n.diffIdentityProvider?this.spliceSmart(n.diffIdentityProvider,e,t,i,n):this.spliceSimple(e,t,i,n)}spliceSmart(e,t,i,n,o,r){void 0===n&&(n=L.a.empty()),void 0===r&&(r=null!=(d=o.diffDepth)?d:0);const s=this.getParentNodeWithListIndex(t)["parentNode"],a=[...n],l=t[t.length-1];var d=new S.a({getElements:()=>s.children.map(t=>e.getId(t.element).toString())},{getElements:()=>[...s.children.slice(0,l),...a,...s.children.slice(l+i)].map(t=>e.getId(t.element).toString())}).ComputeDiff(!1);if(d.quitEarly)return this.spliceSimple(t,i,a,o);const h=t.slice(0,-1);var c=(t,i,n)=>{if(0<r)for(let s=0;s<n;s++)t--,i--,this.spliceSmart(e,[...h,t,0],Number.MAX_SAFE_INTEGER,a[i].children,o,r-1)};let u=Math.min(s.children.length,l+i),g=a.length;for(const p of d.changes.sort((e,t)=>t.originalStart-e.originalStart))c(u,g,u-(p.originalStart+p.originalLength)),u=p.originalStart,g=p.modifiedStart-l,this.spliceSimple([...h,u],p.originalLength,L.a.slice(a,g,g+p.modifiedLength),o);c(u,g,u)}spliceSimple(e,t,i=L.a.empty(),{onDidCreateNode:n,onDidDeleteNode:r}){const{parentNode:s,listIndex:a,revealed:l,visible:d}=this.getParentNodeWithListIndex(e),h=[];i=L.a.map(i,e=>this.createTreeNode(e,s,s.visible?1:0,l,h,n));var c=e[e.length-1],u=0<s.children.length;let g=0;for(let o=c;0<=o&&o<s.children.length;o--){var p=s.children[o];if(p.visible){g=p.visibleChildIndex;break}}var m=[];let f=0,_=0;for(const o of i)m.push(o),_+=o.renderNodeCount,o.visible&&(o.visibleChildIndex=g+f++);i=Object(o.s)(s.children,c,t,m);let b=0;for(const o of i)o.visible&&b++;if(0!==b)for(let o=c+m.length;o<s.children.length;o++){var v=s.children[o];v.visible&&(v.visibleChildIndex-=b)}if(s.visibleChildrenCount+=f-b,l&&d&&(t=i.reduce((e,t)=>e+(t.visible?t.renderNodeCount:0),0),this._updateAncestorsRenderNodeCount(s,_-t),this.list.splice(a,t,h)),0<i.length&&r){const e=t=>{r(t),t.children.forEach(e)};i.forEach(e)}c=0<s.children.length,u!=c&&this.setCollapsible(e.slice(0,-1),c),this._onDidSplice.fire({insertedNodes:m,deletedNodes:i});let C=s;for(;C;){if(2===C.visibility){this.refilter();break}C=C.parent}}rerender(e){if(0===e.length)throw new w(this.user,"Invalid tree location");var{node:e,listIndex:t,revealed:i}=this.getTreeNodeWithListIndex(e);e.visible&&i&&this.list.splice(t,1,[e])}has(e){return this.hasTreeNode(e)}getListIndex(e){var{listIndex:e,visible:t,revealed:i}=this.getTreeNodeWithListIndex(e);return t&&i?e:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){var i=this.getTreeNode(e);const n={collapsible:t=void 0===t?!i.collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,n))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){var n=this.getTreeNode(e);const o={collapsed:t=void 0===t?!n.collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,o))}_setCollapseState(e,t){var{node:i,listIndex:n,revealed:o}=this.getTreeNodeWithListIndex(e),n=this._setListNodeCollapseState(i,n,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&n&&!D(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e<i.children.length;e++)if(i.children[e].visible){if(-1<n){n=-1;break}n=e}-1<n&&this._setCollapseState([...e,n],t)}return n}_setListNodeCollapseState(e,t,i,n){return n=this._setNodeCollapseState(e,n,!1),i&&e.visible&&n&&(i=e.renderNodeCount,e=this.updateNodeAfterCollapseChange(e),this.list.splice(t+1,i-(-1===t?0:1),e.slice(1))),n}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(D(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!D(t)&&t.recursive)for(const o of e.children)n=this._setNodeCollapseState(o,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){var e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)}createTreeNode(e,t,i,n,o,r){const s={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(s,i);s.visibility=a,n&&o.push(s),t=e.children||L.a.empty();const l=n&&0!==a&&!s.collapsed;let d=0,h=1;for(const c of L.a.map(t,e=>this.createTreeNode(e,s,a,l,o,r)))s.children.push(c),h+=c.renderNodeCount,c.visible&&(c.visibleChildIndex=d++);return s.collapsible=s.collapsible||0<s.children.length,s.visibleChildrenCount=d,s.visible=2===a?0<d:1===a,s.visible?s.collapsed||(s.renderNodeCount=h):(s.renderNodeCount=0,n&&o.pop()),r&&r(s),s}updateNodeAfterCollapseChange(e){var t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){var t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let o;if(e!==this.root){if(0===(o=this._filterNode(e,t)))return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}t=i.length,e.renderNodeCount=e===this.root?0:1;let r=!1;if(e.collapsed&&0===o)e.visibleChildrenCount=0;else{let t=0;for(const s of e.children)r=this._updateNodeAfterFilterChange(s,o,i,n&&!e.collapsed)||r,s.visible&&(s.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===o?r:1===o),e.visible?e.collapsed||(e.renderNodeCount+=i.length-t):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){return t=this.filter?this.filter.filter(e.element,t):1,"boolean"==typeof t?(e.filterData=void 0,t?1:0):x(t)?(e.filterData=t.data,k(t.visibility)):(e.filterData=void 0,k(t))}hasTreeNode(e,t=this.root){var i;return!e||0===e.length||([e,...i]=e,!(e<0||e>t.children.length)&&this.hasTreeNode(i,t.children[e]))}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;var[e,...i]=e;if(e<0||e>t.children.length)throw new w(this.user,"Invalid tree location");return this.getTreeNode(i,t.children[e])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var{parentNode:t,listIndex:i,revealed:n,visible:o}=this.getParentNodeWithListIndex(e);e=e[e.length-1];if(e<0||e>t.children.length)throw new w(this.user,"Invalid tree location");return t=t.children[e],{node:t,listIndex:i,revealed:n,visible:o&&t.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,n=!0,o=!0){var[r,...e]=e;if(r<0||r>t.children.length)throw new w(this.user,"Invalid tree location");for(let s=0;s<r;s++)i+=t.children[s].renderNodeCount;return n=n&&!t.collapsed,o=o&&t.visible,0===e.length?{parentNode:t,listIndex:i,revealed:n,visible:o}:this.getParentNodeWithListIndex(e,t.children[r],i+1,n,o)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){var t=[];let i=e;for(;i.parent;)t.push(i.parent.children.indexOf(i)),i=i.parent;return t.reverse()}getParentNodeLocation(e){if(0!==e.length)return 1===e.length?[]:Object(o.u)(e)[0]}}t=i("561a");const O=Object(t.e)("tree-item-expanded",t.b.chevronDown),E=Object(t.e)("tree-filter-on-type-on",t.b.listFilter),I=Object(t.e)("tree-filter-on-type-off",t.b.listSelection),M=Object(t.e)("tree-filter-clear",t.b.close),T=Object(t.e)("tree-item-loading",t.b.loading);var A,R=i("5fe7"),P=i("be5f"),F=i("7e93"),B=i("49d9"),j=i("30db"),W=(i("d95f"),i("dff7"));class V extends _.a{constructor(e){super(e.elements.map(e=>e.element)),this.data=e}}function H(e){return e instanceof _.a?new V(e):e}class z{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=a.a.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(H(e),t)}onDragOver(e,t,i,n,r=!0){var s=this.dnd.onDragOver(H(e),t&&t.element,i,n),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return s;if(a&&"boolean"!=typeof s&&s.autoExpand&&(this.autoExpandDisposable=Object(R.i)(()=>{var e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0},500)),"boolean"==typeof s||!s.accept||void 0===s.bubble||s.feedback)return r?s:{accept:"boolean"==typeof s?s:s.accept,effect:"boolean"==typeof s?void 0:s.effect,feedback:[i]};if(1===s.bubble){const o=this.modelProvider(),s=o.getNodeLocation(t);return a=o.getParentNodeLocation(s),r=o.getNode(a),i=a&&o.getListIndex(a),this.onDragOver(e,r,i,n,!1)}const l=this.modelProvider(),d=l.getNodeLocation(t);return a=l.getListIndex(d),e=l.getListRenderCount(d),Object.assign(Object.assign({},s),{feedback:Object(o.r)(a,a+e)})}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(H(e),t&&t.element,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}class U{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)}}(t=A=A||{}).None="none",t.OnHover="onHover",t.Always="always";class K{constructor(e,t=[]){this._elements=t,this.onDidChange=s.c.forEach(e,e=>this._elements=e)}get elements(){return this._elements}}class q{constructor(e,t,i,n,o={}){this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=q.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new P.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=a.a.None,this.disposables=new a.b,this.templateId=e.templateId,this.updateOptions(o),s.c.map(i,e=>e.node)(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){var t;void 0!==e.indent&&(this.indent=Object(B.b)(e.indent,0,40)),void 0!==e.renderIndentGuides&&(t=e.renderIndentGuides!==A.None)!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)&&(t=new a.b,this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,t),this.indentGuidesDisposable=t,this._onDidChangeActiveNodes(this.activeNodes.elements)),void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){var t=Object(n.q)(e,Object(n.a)(".monaco-tl-row")),i=Object(n.q)(t,Object(n.a)(".monaco-tl-indent")),o=Object(n.q)(t,Object(n.a)(".monaco-tl-twistie"));t=Object(n.q)(t,Object(n.a)(".monaco-tl-contents")),t=this.renderer.renderTemplate(t);return{container:e,indent:i,twistie:o,indentGuidesDisposable:a.a.None,templateData:t}}renderElement(e,t,i,n){"number"==typeof n&&(this.renderedNodes.set(e,{templateData:i,height:n}),this.renderedElements.set(e.element,e));var o=q.DefaultIndent+(e.depth-1)*this.indent;i.twistie.style.paddingLeft=o+"px",i.indent.style.width=o+this.indent-16+"px",this.renderTwistie(e,i),"number"==typeof n&&this.renderIndentGuides(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){i.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.templateData,n),"number"==typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){e=this.renderedElements.get(e),e&&this.onDidChangeNodeTwistieState(e)}onDidChangeNodeTwistieState(e){var t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){t.twistie.classList.remove(...O.classNamesArray);let i=!1;this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||0<e.visibleChildrenCount)?(i||t.twistie.classList.add(...O.classNamesArray),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(Object(n.t)(t.indent),t.indentGuidesDisposable.dispose(),this.shouldRenderIndentGuides){var i=new a.b,o=this.modelProvider();let s=e;for(;;){var r=o.getNodeLocation(s);r=o.getParentNodeLocation(r);if(!r)break;const e=o.getNode(r),l=Object(n.a)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(e)&&l.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(l):t.indent.insertBefore(l,t.indent.firstElementChild),this.renderedIndentGuides.add(e,l),i.add(Object(a.i)(()=>this.renderedIndentGuides.delete(e,l))),s=e}t.indentGuidesDisposable=i}}_onDidChangeActiveNodes(e){if(this.shouldRenderIndentGuides){const t=new Set,i=this.modelProvider();e.forEach(e=>{var n=i.getNodeLocation(e);try{var o=i.getParentNodeLocation(n);e.collapsible&&0<e.children.length&&!e.collapsed?t.add(e):o&&t.add(i.getNode(o))}catch(e){}}),this.activeIndentNodes.forEach(e=>{t.has(e)||this.renderedIndentGuides.forEach(e,e=>e.classList.remove("active"))}),t.forEach(e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,e=>e.classList.add("active"))}),this.activeIndentNodes=t}}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(a.f)(this.disposables)}}q.DefaultIndent=8;class ${constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new a.b,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()}filter(e,t){if(this._filter){if(t=this._filter.filter(e,t),this.tree.options.simpleKeyboardNavigation)return t;let i;if(0===(i="boolean"==typeof t?t?1:0:x(t)?k(t.visibility):t))return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:F.a.Default,visibility:!0};t=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e);var i=Array.isArray(t)?t:[t];for(const r of i){var n=r&&r.toString();if(void 0===n)return{data:F.a.Default,visibility:!0};var o=Object(F.d)(this._pattern,this._lowercasePattern,0,n,n.toLowerCase(),0,!0);if(o)return this._matchCount++,1===i.length?{data:o,visibility:!0}:{data:{label:n,score:o},visibility:!0}}return this.tree.options.filterOnType?2:{data:F.a.Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Object(a.f)(this.disposables)}}class G{constructor(e,t,i,o,r){this.tree=e,this.view=i,this.filter=o,this.keyboardNavigationDelegate=r,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new s.b,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new s.b,this.enabledDisposables=new a.b,this.disposables=new a.b,this.domNode=Object(n.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,this.disposables.add(Object(n.i)(this.domNode,"dragstart",()=>this.onDragStart())),this.messageDomNode=Object(n.q)(i.getHTMLElement(),Object(n.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(n.q)(this.domNode,Object(n.a)("span.label")),o=Object(n.q)(this.domNode,Object(n.a)(".controls")),this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=Object(n.q)(o,Object(n.a)("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),this.disposables.add(Object(n.i)(this.filterOnTypeDomNode,"input",()=>this.onDidChangeFilterOnType())),this.clearDomNode=Object(n.q)(o,Object(n.a)("button.clear"+M.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(W.a)("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}updateOptions(e){e.simpleKeyboardNavigation?this.disable():this.enable(),void 0!==e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType,this.updateFilterOnTypeTitleAndIcon()),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}enable(){var e,t;this._enabled||(e=this.enabledDisposables.add(new v.a(this.view.getHTMLElement(),"keydown")),e=s.c.chain(e.event).filter(e=>!Object(l.e)(e.target)||e.target===this.filterOnTypeDomNode).filter(e=>"Dead"!==e.key&&!/^Media/.test(e.key)).map(e=>new C.a(e)).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter(()=>this.automaticKeyboardNavigation||this.triggered).filter(e=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(e)&&!(18===e.keyCode||16===e.keyCode||15===e.keyCode||17===e.keyCode)||(0<this.pattern.length||this.triggered)&&(9===e.keyCode||1===e.keyCode)&&!e.altKey&&!e.ctrlKey&&!e.metaKey||1===e.keyCode&&(j.f?e.altKey&&!e.metaKey:e.ctrlKey)&&!e.shiftKey).forEach(e=>{e.stopPropagation(),e.preventDefault()}).event,t=this.enabledDisposables.add(new v.a(this.clearDomNode,"click")),s.c.chain(s.c.any(e,t.event)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1)}disable(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(e){"string"==typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(j.f?e.altKey:e.ctrlKey)?this.onInput(""):1===e.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)}onInput(e){var t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,e=>!F.a.isDefault(e.filterData)),t=this.tree.getFocus();0<t.length&&(t=t[0],null===this.tree.getRelativeTop(t))&&this.tree.reveal(t,.5),this.render(),e||(this.triggered=!1)}onDragStart(){var e=this.view.getHTMLElement();const t=Object(n.D)(e)["left"],i=e.clientWidth,o=i/2,r=this.domNode.clientWidth,s=new a.b;let l=this.positionClassName;const d=()=>{switch(l){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=i-r-6+"px"}},h=()=>{this.positionClassName=l,this.domNode.className="monaco-list-type-filter "+this.positionClassName,this.domNode.style.top="",this.domNode.style.left="",Object(a.f)(s)};d(),this.domNode.classList.remove(l),this.domNode.classList.add("dragging"),s.add(Object(a.i)(()=>this.domNode.classList.remove("dragging"))),s.add(Object(n.i)(document,"dragover",e=>{return(e=e).preventDefault(),i=e.clientX-t,e.dataTransfer&&(e.dataTransfer.dropEffect="none"),l=i<o?"nw":"ne",void d();var i})),s.add(Object(n.i)(this.domNode,"dragend",()=>h())),b.c.CurrentDragAndDropData=new b.b("vscode-ui"),s.add(Object(a.i)(()=>b.c.CurrentDragAndDropData=void 0))}onDidSpliceModel(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(this.filterOnTypeDomNode.classList.remove(...I.classNamesArray),this.filterOnTypeDomNode.classList.add(...E.classNamesArray),this.filterOnTypeDomNode.title=Object(W.a)("disable filter on type","Disable Filter on Type")):(this.filterOnTypeDomNode.classList.remove(...E.classNamesArray),this.filterOnTypeDomNode.classList.add(...I.classNamesArray),this.filterOnTypeDomNode.title=Object(W.a)("enable filter on type","Enable Filter on Type"))}render(){var e=0<this.filter.totalCount&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=Object(W.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),this.domNode.classList.toggle("no-matches",e),this.domNode.title=Object(W.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=16<this.pattern.length?"…"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||0<this.filter.totalCount&&this.filter.matchCount<=1||!F.a.isDefault(e.filterData)}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(a.f)(this.disposables)}}function Z(e){let t=f.Unknown;return Object(n.J)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=f.Twistie:Object(n.J)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(t=f.Element),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function Y(e,t){t(e),e.children.forEach(e=>Y(e,t))}class X{constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new s.b,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){var i;(null!=(i=t)&&i.__forceEvent||!Object(o.h)(this.nodes,e))&&this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(this.identityProvider){const o=new Set,r=e=>o.add(this.identityProvider.getId(e.element).toString()),s=(t.forEach(e=>Y(e,r)),new Map),a=e=>s.set(this.identityProvider.getId(e.element).toString(),e);e.forEach(e=>Y(e,a));var i=[];for(const e of this.nodes){var n=this.identityProvider.getId(e.element).toString();o.has(n)?(n=s.get(n))&&i.push(n):i.push(e)}0<this.nodes.length&&0===i.length&&(e=this.getFirstViewElementWithTrait())&&i.push(e),this._set(i,!0)}else{const e=this.createNodeSet(),i=t=>e.delete(t);t.forEach(e=>Y(e,i)),this.set([...e.values()])}}createNodeSet(){var e=new Set;for(const t of this.nodes)e.add(t);return e}}class Q extends l.d{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(!Object(l.e)(e.browserEvent.target)&&!Object(l.f)(e.browserEvent.target)){var t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);var i=e.browserEvent.target;i=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let r=!1;if((r="function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick)&&!i&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e);if(t.collapsible){var n=this.tree.model,o=(t=n.getNodeLocation(t),e.browserEvent.altKey);if(this.tree.setFocus([t]),n.setCollapsed(t,void 0,o),r&&i)return}super.onViewPointer(e)}}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&super.onDoubleClick(e)}}class J extends l.c{constructor(e,t,i,n,o,r,s,a){super(e,t,i,n,a),this.focusTrait=o,this.selectionTrait=r,this.anchorTrait=s}createMouseController(e){return new Q(this,e.tree)}splice(e,t,i=[]){if(super.splice(e,t,i),0!==i.length){const t=[],n=[];let r;i.forEach((i,o)=>{this.focusTrait.has(i)&&t.push(e+o),this.selectionTrait.has(i)&&n.push(e+o),this.anchorTrait.has(i)&&(r=e+o)}),0<t.length&&super.setFocus(Object(o.g)([...super.getFocus(),...t])),0<n.length&&super.setSelection(Object(o.g)([...super.getSelection(),...n])),"number"==typeof r&&super.setAnchor(r)}}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map(e=>this.element(e)),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map(e=>this.element(e)),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(void 0===e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class ee{constructor(e,t,i,o,r={}){this._options=r,this.eventBufferer=new s.d,this.disposables=new a.b,this._onWillRefilter=new s.b,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new s.b,i=new U(i);const d=new s.f;var h,c,u,g=new s.f;const p=new K(g.event);for(h of(this.renderers=o.map(e=>new q(e,()=>this.model,d.event,p,r)),this.renderers))this.disposables.add(h);let m;if(r.keyboardNavigationLabelProvider&&(m=new $(this,r.keyboardNavigationLabelProvider,r.filter),r=Object.assign(Object.assign({},r),{filter:m}),this.disposables.add(m)),this.focus=new X(()=>this.view.getFocusedElements()[0],r.identityProvider),this.selection=new X(()=>this.view.getSelectedElements()[0],r.identityProvider),this.anchor=new X(()=>this.view.getAnchorElement(),r.identityProvider),this.view=new J(e,t,i,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},(c=()=>this.model,(u=r)&&Object.assign(Object.assign({},u),{identityProvider:u.identityProvider&&{getId(e){return u.identityProvider.getId(e.element)}},dnd:u.dnd&&new z(c,u.dnd),multipleSelectionController:u.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return u.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},isSelectionRangeChangeEvent(e){return u.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))}},accessibilityProvider:u.accessibilityProvider&&Object.assign(Object.assign({},u.accessibilityProvider),{getSetSize(e){var t=c();e=t.getNodeLocation(e),e=t.getParentNodeLocation(e);return t.getNode(e).visibleChildrenCount},getPosInSet(e){return e.visibleChildIndex+1},isChecked:u.accessibilityProvider&&u.accessibilityProvider.isChecked?e=>u.accessibilityProvider.isChecked(e.element):void 0,getRole:u.accessibilityProvider&&u.accessibilityProvider.getRole?e=>u.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel(e){return u.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return u.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:u.accessibilityProvider&&u.accessibilityProvider.getWidgetRole?()=>u.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:u.accessibilityProvider&&u.accessibilityProvider.getAriaLevel?e=>u.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:u.accessibilityProvider.getActiveDescendantId&&(e=>u.accessibilityProvider.getActiveDescendantId(e.element))}),keyboardNavigationLabelProvider:u.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},u.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(e){return u.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),enableKeyboardNavigation:u.simpleKeyboardNavigation}))),{tree:this})),this.model=this.createModel(e,this.view,r),d.input=this.model.onDidChangeCollapseState,o=s.c.forEach(this.model.onDidSplice,e=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)})}),o(()=>null,null,this.disposables),g.input=s.c.chain(s.c.any(o,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{var e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);return[...e.values()]}).event,!1!==r.keyboardSupport&&((t=s.c.chain(this.view.onKeyDown).filter(e=>!Object(l.e)(e.target)).map(e=>new C.a(e))).filter(e=>15===e.keyCode).on(this.onLeftArrow,this,this.disposables),t.filter(e=>17===e.keyCode).on(this.onRightArrow,this,this.disposables),t.filter(e=>10===e.keyCode).on(this.onSpace,this,this.disposables)),r.keyboardNavigationLabelProvider){const e=r.keyboardNavigationDelegate||l.a;this.typeFilterController=new G(this,this.model,this.view,m,e),this.focusNavigationFilter=e=>this.typeFilterController.shouldAllowFocus(e),this.disposables.add(this.typeFilterController)}this.styleElement=Object(n.w)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===A.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return s.c.map(this.view.onMouseDblClick,Z)}get onPointer(){return s.c.map(this.view.onPointer,Z)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get expandOnDoubleClick(){return void 0===this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return void 0===this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(Object.assign(Object.assign({},this._options),{enableKeyboardNavigation:this._options.simpleKeyboardNavigation})),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===A.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){this.view.layout(e,t)}style(e){var t="."+this.view.domId,i=[];e.treeIndentGuidesStroke&&(i.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),i.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=i.join("\n"),this.view.style(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){var i=e.map(e=>this.model.getNode(e));this.selection.set(i,t),i=e.map(e=>this.model.getListIndex(e)).filter(e=>-1<e);this.view.setSelection(i,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){var i=e.map(e=>this.model.getNode(e));this.focus.set(i,t),i=e.map(e=>this.model.getListIndex(e)).filter(e=>-1<e);this.view.setFocus(i,t,!0)}focusNext(e=1,t=!1,i,n=this.focusNavigationFilter){this.view.focusNext(e,t,i,n)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e),e=this.model.getListIndex(e),-1!==e&&this.view.reveal(e,t)}getRelativeTop(e){return e=this.model.getListIndex(e),-1===e?null:this.view.getRelativeTop(e)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();e=this.view.getFocusedElements();0===e.length||(e=e[0],e=this.model.getNodeLocation(e),this.model.setCollapsed(e,!0))||(e=this.model.getParentNodeLocation(e))&&(e=this.model.getListIndex(e),this.view.reveal(e),this.view.setFocus([e]))}onRightArrow(e){e.preventDefault(),e.stopPropagation();var t;e=this.view.getFocusedElements();0===e.length||(e=e[0],t=this.model.getNodeLocation(e),this.model.setCollapsed(t,!1))||e.children.some(e=>e.visible)&&([t]=this.view.getFocus(),this.view.reveal(e=t+1),this.view.setFocus([e]))}onSpace(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();0!==t.length&&(t=t[0],t=this.model.getNodeLocation(t),e=e.browserEvent.altKey,this.model.setCollapsed(t,void 0,e))}dispose(){Object(a.f)(this.disposables),this.view.dispose()}}class te{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new N(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare(e,t){return i.sorter.compare(e.element,t.element)}}),this.identityProvider=i.identityProvider}setChildren(e,t=L.a.empty(),i={}){e=this.getElementLocation(e),this._setChildren(e,this.preserveCollapseState(t),i)}_setChildren(e,t=L.a.empty(),i){const n=new Set,o=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{var t;null!==e.element&&(e=e,n.add(e.element),this.nodes.set(e.element,e),this.identityProvider&&(t=this.identityProvider.getId(e.element).toString(),o.add(t),this.nodesByIdentity.set(t,e)),null!=(t=i.onDidCreateNode))&&t.call(i,e)},onDidDeleteNode:e=>{var t;null!==e.element&&(e=e,n.has(e.element)||this.nodes.delete(e.element),this.identityProvider&&(t=this.identityProvider.getId(e.element).toString(),o.has(t)||this.nodesByIdentity.delete(t)),null!=(t=i.onDidDeleteNode))&&t.call(i,e)}}))}preserveCollapseState(e=L.a.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),L.a.map(e,e=>{let t=this.nodes.get(e.element);var i,n;return!t&&this.identityProvider&&(i=this.identityProvider.getId(e.element).toString(),t=this.nodesByIdentity.get(i)),t?(i=("boolean"==typeof e.collapsible?e:t).collapsible,n=(void 0!==e.collapsed?e:t).collapsed,Object.assign(Object.assign({},e),{collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)})):Object.assign(Object.assign({},e),{children:this.preserveCollapseState(e.children)})})}rerender(e){e=this.getElementLocation(e),this.model.rerender(e)}has(e){return this.nodes.has(e)}getListIndex(e){return e=this.getElementLocation(e),this.model.getListIndex(e)}getListRenderCount(e){return e=this.getElementLocation(e),this.model.getListRenderCount(e)}isCollapsible(e){return e=this.getElementLocation(e),this.model.isCollapsible(e)}setCollapsible(e,t){return e=this.getElementLocation(e),this.model.setCollapsible(e,t)}isCollapsed(e){return e=this.getElementLocation(e),this.model.isCollapsed(e)}setCollapsed(e,t,i){return e=this.getElementLocation(e),this.model.setCollapsed(e,t,i)}expandTo(e){e=this.getElementLocation(e),this.model.expandTo(e)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);var t=this.nodes.get(e);if(t)return t;throw new w(this.user,"Tree element not found: "+e)}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new w(this.user,"Invalid getParentNodeLocation call");var t=this.nodes.get(e);if(t)return t=this.model.getNodeLocation(t),t=this.model.getParentNodeLocation(t),this.model.getNode(t).element;throw new w(this.user,"Tree element not found: "+e)}getElementLocation(e){if(null===e)return[];var t=this.nodes.get(e);if(t)return this.model.getNodeLocation(t);throw new w(this.user,"Tree element not found: "+e)}}function ie(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:L.a.map(L.a.from(e.children),ie),collapsible:e.collapsible,collapsed:e.collapsed}}function ne(e){var t=[e.element],i=e.incompressible||!1;let n,o;for(;;){if([o,n]=L.a.consume(L.a.from(e.children),2),1!==o.length)break;if(o[0].incompressible)break;e=o[0],t.push(e.element)}return{element:{elements:t,incompressible:i},children:L.a.map(L.a.concat(o,n),ne),collapsible:e.collapsible,collapsed:e.collapsed}}function oe(e){return function e(t,i=0){let n;return n=i<t.element.elements.length-1?[e(t,i+1)]:L.a.map(L.a.from(t.children),t=>e(t,0)),0===i&&t.element.incompressible?{element:t.element.elements[i],children:n,incompressible:!0,collapsible:t.collapsible,collapsed:t.collapsed}:{element:t.element.elements[i],children:n,collapsible:t.collapsible,collapsed:t.collapsed}}(e,0)}class re{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new te(e,t,i),this.enabled=void 0===i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=L.a.empty(),i){var n;i=i.diffIdentityProvider&&(n=i.diffIdentityProvider,{getId(e){return e.elements.map(e=>n.getId(e).toString()).join("\0")}});if(null===e)o=L.a.map(t,this.enabled?ne:ie),this._setChildren(null,o,{diffIdentityProvider:i,diffDepth:1/0});else{var o=this.nodes.get(e);if(!o)throw new Error("Unknown compressed tree node");const n=this.model.getNode(o);o=this.model.getParentNodeLocation(o),o=this.model.getNode(o),e=function e(t,i,n){return t.element===i?Object.assign(Object.assign({},t),{children:n}):Object.assign(Object.assign({},t),{children:L.a.map(L.a.from(t.children),t=>e(t,i,n))})}(oe(n),e,t);const r=(this.enabled?ne:ie)(e);t=o.children.map(e=>e===n?r:e),this._setChildren(o.element,t,{diffIdentityProvider:i,diffDepth:n.depth-o.depth})}}setCompressionEnabled(e){var t;e!==this.enabled&&(this.enabled=e,t=this.model.getNode().children,t=L.a.map(t,oe),t=L.a.map(t,e?ne:ie),this._setChildren(null,t,{diffIdentityProvider:this.identityProvider,diffDepth:1/0}))}_setChildren(e,t,i){const n=new Set;this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)}}))}has(e){return this.nodes.has(e)}getListIndex(e){return e=this.getCompressedNode(e),this.model.getListIndex(e)}getListRenderCount(e){return e=this.getCompressedNode(e),this.model.getListRenderCount(e)}getNode(e){return void 0===e?this.model.getNode():(e=this.getCompressedNode(e),this.model.getNode(e))}getNodeLocation(e){return e=this.model.getNodeLocation(e),null===e?null:e.elements[e.elements.length-1]}getParentNodeLocation(e){return e=this.getCompressedNode(e),e=this.model.getParentNodeLocation(e),null===e?null:e.elements[e.elements.length-1]}isCollapsible(e){return e=this.getCompressedNode(e),this.model.isCollapsible(e)}setCollapsible(e,t){return e=this.getCompressedNode(e),this.model.setCollapsible(e,t)}isCollapsed(e){return e=this.getCompressedNode(e),this.model.isCollapsed(e)}setCollapsed(e,t,i){return e=this.getCompressedNode(e),this.model.setCollapsed(e,t,i)}expandTo(e){e=this.getCompressedNode(e),this.model.expandTo(e)}rerender(e){e=this.getCompressedNode(e),this.model.rerender(e)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;var t=this.nodes.get(e);if(t)return t;throw new w(this.user,"Tree element not found: "+e)}}const se=e=>e[e.length-1];class ae{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new ae(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class le{constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||se;const n=e=>this.elementMapper(e.elements);var o,r,s,a;this.nodeMapper=new y(e=>new ae(n,e)),this.model=new re(e,(s=this.nodeMapper,a=t,{splice(e,t,i){a.splice(e,t,i.map(e=>s.map(e)))},updateElementHeight(e,t){a.updateElementHeight(e,t)}}),(o=n,r=i,Object.assign(Object.assign({},r),{identityProvider:r.identityProvider&&{getId(e){return r.identityProvider.getId(o(e))}},sorter:r.sorter&&{compare(e,t){return r.sorter.compare(e.elements[0],t.elements[0])}},filter:r.filter&&{filter(e,t){return r.filter.filter(o(e),t)}}})))}get onDidSplice(){return s.c.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(e=>this.nodeMapper.map(e)),deletedNodes:t.map(e=>this.nodeMapper.map(e))}))}get onDidChangeCollapseState(){return s.c.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return s.c.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=L.a.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}t=i("6424");class de extends ee{constructor(e,t,i,n,o={}){super(e,t,i,n,o)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=L.a.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0===e?this.view.rerender():this.model.rerender(e)}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new te(e,t,i)}}class he{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){var o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===o.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){i.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(i.compressedTreeNode,t,i.data,n):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}(function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);3<r&&s&&Object.defineProperty(t,i,s)})([t.a],he.prototype,"compressedTreeNodeProvider",null);class ce extends de{constructor(e,t,i,n,o={}){const r=()=>this;var s,a;super(e,t,i,n.map(e=>new he(r,e)),(s=r,(a=o)&&Object.assign(Object.assign({},a),{keyboardNavigationLabelProvider:a.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(e){let t;try{t=s().getCompressedTreeNode(e)}catch(t){return a.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e)}return 1===t.element.elements.length?a.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e):a.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.element.elements)}}})))}setChildren(e,t=L.a.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new le(e,t,i)}updateOptions(e={}){super.updateOptions(e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var ue=i("fdcc"),ge=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function pe(e){return Object.assign(Object.assign({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function me(e,t){return!!t.parent&&(t.parent===e||me(e,t.parent))}class fe{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new fe(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class _e{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...T.classNamesArray),!0):(t.classList.remove(...T.classNamesArray),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function be(e){return{browserEvent:e.browserEvent,elements:e.elements.map(e=>e.element)}}function ve(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class Ce extends _.a{constructor(e){super(e.elements.map(e=>e.element)),this.data=e}}function we(e){return e instanceof _.a?new Ce(e):e}class ye{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(we(e),t)}onDragOver(e,t,i,n,o=0){return this.dnd.onDragOver(we(e),t&&t.element,i,n)}drop(e,t,i,n){this.dnd.drop(we(e),t&&t.element,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function Se(e){return e&&Object.assign(Object.assign({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new ye(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var i;return!(null==(i=e.accessibilityProvider)||!i.isChecked(t.element))}:void 0,getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),filter:e.filter&&{filter(t,i){return e.filter.filter(t.element,i)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),additionalScrollHeight:e.additionalScrollHeight})}function Le(e,t){t(e),e.children.forEach(e=>Le(e,t))}class xe{constructor(e,t,i,n,o,r={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new s.b,this._onDidChangeNodeSlowState=new s.b,this.nodeMapper=new y(e=>new fe(e)),this.disposables=new a.b,this.identityProvider=r.identityProvider,this.autoExpandSingleChildren=void 0!==r.autoExpandSingleChildren&&r.autoExpandSingleChildren,this.sorter=r.sorter,this.collapseByDefault=r.collapseByDefault,this.tree=this.createTree(e,t,i,n,r),this.root=pe({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return s.c.map(this.tree.onDidChangeFocus,be)}get onDidChangeSelection(){return s.c.map(this.tree.onDidChangeSelection,be)}get onMouseDblClick(){return s.c.map(this.tree.onMouseDblClick,ve)}get onPointer(){return s.c.map(this.tree.onPointer,ve)}get onDidFocus(){return this.tree.onDidFocus}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,i,n,o){return i=new U(i),n=n.map(e=>new _e(e,this.nodeMapper,this._onDidChangeNodeSlowState.event)),o=Se(o)||{},new de(e,t,i,n,o)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return ge(this,void 0,void 0,(function*(){this.refreshPromises.forEach(e=>e.cancel()),this.refreshPromises.clear(),this.root.element=e;var i=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}))}_updateChildren(e=this.root.element,t=!0,i=!1,n,o){return ge(this,void 0,void 0,(function*(){if(void 0===this.root.element)throw new w(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield s.c.toPromise(this._onDidRender.event));var r=this.getDataNode(e);if(yield this.refreshAndRenderNode(r,t,n,o),i)try{this.tree.rerender(r)}catch(r){}}))}rerender(e){void 0===e||e===this.root.element?this.tree.rerender():(e=this.getDataNode(e),this.tree.rerender(e))}collapse(e,t=!1){return e=this.getDataNode(e),this.tree.collapse(e===this.root?null:e,t)}expand(e,t=!1){return ge(this,void 0,void 0,(function*(){if(void 0===this.root.element)throw new w(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield s.c.toPromise(this._onDidRender.event));var i,n=this.getDataNode(e);return!(this.tree.hasElement(n)&&!this.tree.isCollapsible(n)||(n.refreshPromise&&(yield this.root.refreshPromise,yield s.c.toPromise(this._onDidRender.event)),n!==this.root&&!n.refreshPromise&&!this.tree.isCollapsed(n)))&&(i=this.tree.expand(n===this.root?null:n,t),n.refreshPromise&&(yield this.root.refreshPromise,yield s.c.toPromise(this._onDidRender.event)),i)}))}setSelection(e,t){e=e.map(e=>this.getDataNode(e)),this.tree.setSelection(e,t)}getSelection(){return this.tree.getSelection().map(e=>e.element)}setFocus(e,t){e=e.map(e=>this.getDataNode(e)),this.tree.setFocus(e,t)}getFocus(){return this.tree.getFocus().map(e=>e.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getDataNode(e){var t=this.nodes.get(e===this.root.element?null:e);if(t)return t;throw new w(this.user,"Data tree node not found: "+e)}refreshAndRenderNode(e,t,i,n){return ge(this,void 0,void 0,(function*(){yield this.refreshNode(e,t,i),this.render(e,i,n)}))}refreshNode(e,t,i){return ge(this,void 0,void 0,(function*(){let n;return this.subTreeRefreshPromises.forEach((o,r)=>{var s;n||(r=r)!==(s=e)&&!me(r,s)&&!me(s,r)||(n=o.then(()=>this.refreshNode(e,t,i)))}),n||this.doRefreshSubTree(e,t,i)}))}doRefreshSubTree(e,t,i){return ge(this,void 0,void 0,(function*(){let n;e.refreshPromise=new Promise(e=>n=e),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{var o=yield this.doRefreshNode(e,t,i);e.stale=!1,yield R.d.settled(o.map(e=>this.doRefreshSubTree(e,t,i)))}finally{n()}}))}doRefreshNode(e,t,i){return ge(this,void 0,void 0,(function*(){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=Object(R.n)(800);t.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},e=>null),n=this.doGetChildren(e).finally(()=>t.cancel())}else n=Promise.resolve(L.a.empty());try{var o=yield n;return this.setChildren(e,o,t,i)}catch(n){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),Object(ue.e)(n))return[];throw n}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}))}doGetChildren(e){var t=this.refreshPromises.get(e);return t||(t=Object(R.h)(()=>ge(this,void 0,void 0,(function*(){var t=yield this.dataSource.getChildren(e.element);return this.processChildren(t)}))),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(ue.f))}setChildren(e,t,i,n){var o;t=[...t];if(0===e.children.length&&0===t.length)return[];const r=new Map,s=new Map;for(const l of e.children)r.set(l.element,l),this.identityProvider&&(o=this.tree.isCollapsed(l),s.set(l.id,{node:l,collapsed:o}));const a=[];t=t.map(t=>{var o,l,d,h=!!this.dataSource.hasChildren(t);return this.identityProvider?(o=this.identityProvider.getId(t).toString(),(d=s.get(o))?(l=d.node,r.delete(l.element),this.nodes.delete(l.element),this.nodes.set(t,l),l.element=t,l.hasChildren=h,i?d.collapsed?(l.children.forEach(e=>Le(e,e=>this.nodes.delete(e.element))),l.children.splice(0,l.children.length),l.stale=!0):a.push(l):h&&this.collapseByDefault&&!this.collapseByDefault(t)&&(l.collapsedByDefault=!1,a.push(l)),l):(d=pe({element:t,parent:e,id:o,hasChildren:h}),n&&n.viewState.focus&&-1<n.viewState.focus.indexOf(o)&&n.focus.push(d),n&&n.viewState.selection&&-1<n.viewState.selection.indexOf(o)&&n.selection.push(d),n&&n.viewState.expanded&&-1<n.viewState.expanded.indexOf(o)?a.push(d):h&&this.collapseByDefault&&!this.collapseByDefault(t)&&(d.collapsedByDefault=!1,a.push(d)),d)):(l=pe({element:t,parent:e,hasChildren:h}),h&&this.collapseByDefault&&!this.collapseByDefault(t)&&(l.collapsedByDefault=!1,a.push(l)),l)});for(const l of r.values())Le(l,e=>this.nodes.delete(e.element));for(const l of t)this.nodes.set(l.element,l);return e.children.splice(0,e.children.length,...t),e!==this.root&&this.autoExpandSingleChildren&&1===t.length&&0===a.length&&(t[0].collapsedByDefault=!1,a.push(t[0])),a}render(e,t,i){var n=e.children.map(e=>this.asTreeElement(e,t)),o=i&&Object.assign(Object.assign({},i),{diffIdentityProvider:i.diffIdentityProvider&&{getId(e){return i.diffIdentityProvider.getId(e.element)}}});this.tree.setChildren(e===this.root?null:e,n,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return i=!(t&&t.viewState.expanded&&e.id&&-1<t.viewState.expanded.indexOf(e.id))&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?L.a.map(e.children,e=>this.asTreeElement(e,t)):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter?[...e].sort(this.sorter.compare.bind(this.sorter)):e}dispose(){this.disposables.dispose()}}class ke{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new ke(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class De{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...T.classNamesArray),!0):(t.classList.remove(...T.classNamesArray),!1)}disposeElement(e,t,i,n){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Object(a.f)(this.disposables)}}class Ne extends xe{constructor(e,t,i,n,o,r,s={}){super(e,t,i,o,r,s),this.compressionDelegate=n,this.compressibleNodeMapper=new y(e=>new ke(e)),this.filter=s.filter}createTree(e,t,i,n,o){var r;i=new U(i),n=n.map(e=>new De(e,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),o=(o=(r=o)&&Se(r))&&Object.assign(Object.assign({},o),{keyboardNavigationLabelProvider:o.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},o.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(e){return r.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(e.map(e=>e.element))}})})||{};return new ce(e,t,i,n,o)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const i=e=>this.identityProvider.getId(e).toString();var n=e=>{var t=new Set;for(const o of e){var n=this.tree.getCompressedTreeNode(o===this.root?null:o);if(n.element)for(const e of n.element.elements)t.add(i(e.element))}return t};const o=n(this.tree.getSelection()),r=n(this.tree.getFocus()),s=(super.render(e,t),this.getSelection());let a=!1;const l=this.getFocus();let d=!1;const h=e=>{var t=e.element;if(t)for(let h=0;h<t.elements.length;h++){var n=i(t.elements[h].element),c=t.elements[t.elements.length-1].element;o.has(n)&&-1===s.indexOf(c)&&(s.push(c),a=!0),r.has(n)&&-1===l.indexOf(c)&&(l.push(c),d=!0)}e.children.forEach(h)};h(this.tree.getCompressedTreeNode(e===this.root?null:e)),a&&this.setSelection(s),d&&this.setFocus(l)}processChildren(e){return this.filter&&(e=L.a.filter(e,e=>{e=this.filter.filter(e,1),e="boolean"==typeof(e=e)?e?1:0:x(e)?k(e.visibility):k(e);if(2===e)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===e})),super.processChildren(e)}}class Oe extends ee{constructor(e,t,i,n,o,r={}){super(e,t,i,n,r),this.user=e,this.dataSource=o,this.identityProvider=r.identityProvider}createModel(e,t,i){return new te(e,t,i)}}t=i("4779");var Ee=i("fbba"),Ie=i("0910"),Me=i("4fc3"),Te=i("1665"),Ae=i("0a0f"),Re=i("6dec"),Pe=i("89cd"),Fe=i("a6d7"),Be=(i=i("b7d0"),function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}),je=function(e,t){return function(i,n){t(i,n,e)}};const We=Object(Ae.c)("listService");let Ve=class{constructor(e){this._themeService=e,this.disposables=new a.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}register(e,t){var i;if(this._hasCreatedStyleController||(this._hasCreatedStyleController=!0,i=new l.b(Object(n.w)(),""),this.disposables.add(Object(Fe.b)(i,this._themeService))),this.lists.some(t=>t.widget===e))throw new Error("Cannot register the same widget multiple times");const o={widget:e,extraContextKeys:t};return this.lists.push(o),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),Object(a.e)(e.onDidFocus(()=>this._lastFocusedWidget=e),Object(a.i)(()=>this.lists.splice(this.lists.indexOf(o),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(e=>e!==o),this._lastFocusedWidget===e&&(this._lastFocusedWidget=void 0)}))}dispose(){this.disposables.dispose()}};Ve=Be([je(0,i.b)],Ve);const He=new Me.c("listFocus",!0),ze=new Me.c("listSupportsMultiselect",!0),Ue=Me.a.and(He,Me.a.not(Te.a)),Ke=new Me.c("listHasSelectionOrFocus",!1),qe=new Me.c("listDoubleSelection",!1),$e=new Me.c("listMultiSelection",!1),Ge=new Me.c("listSelectionNavigation",!1),Ze="listAutomaticKeyboardNavigation";function Ye(e,t){return e=e.createScoped(t.getHTMLElement()),He.bindTo(e),e}const Xe="workbench.list.multiSelectModifier",Qe="workbench.list.openMode",Je="workbench.list.horizontalScrolling",et="workbench.list.keyboardNavigation",tt="workbench.list.automaticKeyboardNavigation",it="workbench.tree.indent",nt="workbench.tree.renderIndentGuides",ot="workbench.list.smoothScrolling",rt="workbench.list.mouseWheelScrollSensitivity",st="workbench.list.fastScrollSensitivity",at="workbench.tree.expandMode";function lt(e){return"alt"===e.getValue(Xe)}class dt extends a.a{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=lt(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(Xe)&&(this.useAltAsMultipleSelectionModifier=lt(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:Object(l.h)(e)}isSelectionRangeChangeEvent(e){return Object(l.g)(e)}}function ht(e,t,i){var n=new a.b;return[Object.assign(Object.assign({},e),{keyboardNavigationDelegate:{mightProducePrintableCharacter(e){return i.mightProducePrintableCharacter(e)}},smoothScrolling:Boolean(t.getValue(ot)),mouseWheelScrollSensitivity:t.getValue(rt),fastScrollSensitivity:t.getValue(st),multipleSelectionController:null!=(e=e.multipleSelectionController)?e:n.add(new dt(t))}),n]}let ct=class extends l.c{constructor(e,t,i,n,o,r,s,a,l,d){var h=void 0!==o.horizontalScrolling?o.horizontalScrolling:Boolean(l.getValue(Je)),[d,c]=ht(o,l,d);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(Fe.d)(a.getColorTheme(),Fe.e)),d),{horizontalScrolling:h})),this.disposables.add(c),this.contextKeyService=Ye(r,this),this.themeService=a,this.listSupportsMultiSelect=ze.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),Ge.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=Ke.bindTo(this.contextKeyService),this.listDoubleSelection=qe.bindTo(this.contextKeyService),this.listMultiSelection=$e.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=lt(l),this.disposables.add(this.contextKeyService),this.disposables.add(s.register(this)),o.overrideStyles&&this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(0<e.length||0<t.length),this.listMultiSelection.set(1<e.length),this.listDoubleSelection.set(2===e.length)})})),this.disposables.add(this.onDidChangeFocus(()=>{var e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(0<e.length||0<t.length)})),this.disposables.add(l.onDidChangeConfiguration(e=>{e.affectsConfiguration(Xe)&&(this._useAltAsMultipleSelectionModifier=lt(l));let t={};var i;e.affectsConfiguration(Je)&&void 0===this.horizontalScrolling&&(i=Boolean(l.getValue(Je)),t=Object.assign(Object.assign({},t),{horizontalScrolling:i})),e.affectsConfiguration(ot)&&(i=Boolean(l.getValue(ot)),t=Object.assign(Object.assign({},t),{smoothScrolling:i})),e.affectsConfiguration(rt)&&(i=l.getValue(rt),t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:i})),e.affectsConfiguration(st)&&(i=l.getValue(st),t=Object.assign(Object.assign({},t),{fastScrollSensitivity:i})),0<Object.keys(t).length&&this.updateOptions(t)})),this.navigator=new gt(this,Object.assign({configurationService:l},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;null!=(t=this._styler)&&t.dispose(),this._styler=Object(Fe.b)(this,this.themeService,e)}dispose(){var e;null!=(e=this._styler)&&e.dispose(),super.dispose()}};ct=Be([je(5,Me.b),je(6,We),je(7,i.b),je(8,Ee.a),je(9,Re.a)],ct),Ae=class extends c{constructor(e,t,i,n,o,r,s,l,d,h){var c=void 0!==o.horizontalScrolling?o.horizontalScrolling:Boolean(d.getValue(Je)),[h,u]=ht(o,d,h);super(e,t,i,n,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(Fe.d)(l.getColorTheme(),Fe.e)),h),{horizontalScrolling:c})),this.disposables=new a.b,this.disposables.add(u),this.contextKeyService=Ye(r,this),this.themeService=l,this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=ze.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),Ge.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this._useAltAsMultipleSelectionModifier=lt(d),this.disposables.add(this.contextKeyService),this.disposables.add(s.register(this)),o.overrideStyles&&this.updateStyles(o.overrideStyles),o.overrideStyles&&this.disposables.add(Object(Fe.b)(this,l,o.overrideStyles)),this.disposables.add(d.onDidChangeConfiguration(e=>{e.affectsConfiguration(Xe)&&(this._useAltAsMultipleSelectionModifier=lt(d));let t={};var i;e.affectsConfiguration(Je)&&void 0===this.horizontalScrolling&&(i=Boolean(d.getValue(Je)),t=Object.assign(Object.assign({},t),{horizontalScrolling:i})),e.affectsConfiguration(ot)&&(i=Boolean(d.getValue(ot)),t=Object.assign(Object.assign({},t),{smoothScrolling:i})),e.affectsConfiguration(rt)&&(i=d.getValue(rt),t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:i})),e.affectsConfiguration(st)&&(i=d.getValue(st),t=Object.assign(Object.assign({},t),{fastScrollSensitivity:i})),0<Object.keys(t).length&&this.updateOptions(t)})),this.navigator=new gt(this,Object.assign({configurationService:d},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;null!=(t=this._styler)&&t.dispose(),this._styler=Object(Fe.b)(this,this.themeService,e)}dispose(){var e;null!=(e=this._styler)&&e.dispose(),this.disposables.dispose(),super.dispose()}},Be([je(5,Me.b),je(6,We),je(7,i.b),je(8,Ee.a),je(9,Re.a)],Ae),Te=class extends m{constructor(e,t,i,n,o,r,s,l,d,h,c){var u=void 0!==r.horizontalScrolling?r.horizontalScrolling:Boolean(h.getValue(Je)),[c,g]=ht(r,h,c);super(e,t,i,n,o,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(Fe.d)(d.getColorTheme(),Fe.e)),c),{horizontalScrolling:u})),this.disposables=new a.b,this.disposables.add(g),this.contextKeyService=Ye(s,this),this.themeService=d,this.listSupportsMultiSelect=ze.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==r.multipleSelectionSupport),Ge.bindTo(this.contextKeyService).set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=Ke.bindTo(this.contextKeyService),this.listDoubleSelection=qe.bindTo(this.contextKeyService),this.listMultiSelection=$e.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=lt(h),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),r.overrideStyles&&this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(0<e.length||0<t.length),this.listMultiSelection.set(1<e.length),this.listDoubleSelection.set(2===e.length)})})),this.disposables.add(this.onDidChangeFocus(()=>{var e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(0<e.length||0<t.length)})),this.disposables.add(h.onDidChangeConfiguration(e=>{e.affectsConfiguration(Xe)&&(this._useAltAsMultipleSelectionModifier=lt(h));let t={};var i;e.affectsConfiguration(Je)&&void 0===this.horizontalScrolling&&(i=Boolean(h.getValue(Je)),t=Object.assign(Object.assign({},t),{horizontalScrolling:i})),e.affectsConfiguration(ot)&&(i=Boolean(h.getValue(ot)),t=Object.assign(Object.assign({},t),{smoothScrolling:i})),e.affectsConfiguration(rt)&&(i=h.getValue(rt),t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:i})),e.affectsConfiguration(st)&&(i=h.getValue(st),t=Object.assign(Object.assign({},t),{fastScrollSensitivity:i})),0<Object.keys(t).length&&this.updateOptions(t)})),this.navigator=new pt(this,Object.assign({configurationService:h},r)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;null!=(t=this._styler)&&t.dispose(),this._styler=Object(Fe.b)(this,this.themeService,e)}dispose(){var e;null!=(e=this._styler)&&e.dispose(),this.disposables.dispose(),super.dispose()}},Be([je(6,Me.b),je(7,We),je(8,i.b),je(9,Ee.a),je(10,Re.a)],Te);class ut extends a.a{constructor(e,t){super(),this.widget=e,this._onDidOpen=this._register(new s.b),this.onDidOpen=this._onDidOpen.event,this._register(s.c.filter(this.widget.onDidChangeSelection,e=>e.browserEvent instanceof KeyboardEvent)(e=>this.onSelectionFromKeyboard(e))),this._register(this.widget.onPointer(e=>this.onPointer(e.element,e.browserEvent))),this._register(this.widget.onMouseDblClick(e=>this.onMouseDblClick(e.element,e.browserEvent))),"boolean"!=typeof(null==t?void 0:t.openOnSingleClick)&&null!=t&&t.configurationService?(this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(Qe)),this._register(null==t?void 0:t.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(Qe))}))):this.openOnSingleClick=null==(e=null==t?void 0:t.openOnSingleClick)||e}onSelectionFromKeyboard(e){var t,i;1===e.elements.length&&(t="boolean"!=typeof(i=e.browserEvent).preserveFocus||i.preserveFocus,i="boolean"==typeof i.pinned?i.pinned:!t,this._open(this.getSelectedElement(),t,i,!1,e.browserEvent))}onPointer(e,t){var i,n;this.openOnSingleClick&&2!==t.detail&&(i=1===t.button,n=t.ctrlKey||t.metaKey||t.altKey,this._open(e,!0,i,n,t))}onMouseDblClick(e,t){var i;!t||(i=t.target).classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16||(i=t.ctrlKey||t.metaKey||t.altKey,this._open(e,!1,!0,i,t))}_open(e,t,i,n,o){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:o})}}class gt extends ut{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class pt extends ut{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class mt extends ut{constructor(e,t){super(e,t)}getSelectedElement(){var e;return null!=(e=this.widget.getSelection()[0])?e:void 0}}Ae=class extends de{constructor(e,t,i,n,o,r,s,a,l,d,h){var{options:d,getAutomaticKeyboardNavigation:c,disposable:u}=_t(t,o,r,l,d,h);super(e,t,i,n,d),this.disposables.add(u),this.internals=new bt(this,o,c,o.overrideStyles,r,s,a,l,h),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}},Be([je(5,Me.b),je(6,We),je(7,i.b),je(8,Ee.a),je(9,Re.a),je(10,t.b)],Ae),Te=class extends ce{constructor(e,t,i,n,o,r,s,a,l,d,h){var{options:d,getAutomaticKeyboardNavigation:c,disposable:u}=_t(t,o,r,l,d,h);super(e,t,i,n,d),this.disposables.add(u),this.internals=new bt(this,o,c,o.overrideStyles,r,s,a,l,h),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}},Be([je(5,Me.b),je(6,We),je(7,i.b),je(8,Ee.a),je(9,Re.a),je(10,t.b)],Te),Ae=class extends Oe{constructor(e,t,i,n,o,r,s,a,l,d,h,c){var{options:h,getAutomaticKeyboardNavigation:u,disposable:g}=_t(t,r,s,d,h,c);super(e,t,i,n,o,h),this.disposables.add(g),this.internals=new bt(this,r,u,r.overrideStyles,s,a,l,d,c),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}},Be([je(6,Me.b),je(7,We),je(8,i.b),je(9,Ee.a),je(10,Re.a),je(11,t.b)],Ae);let ft=class extends xe{constructor(e,t,i,n,o,r,s,a,l,d,h,c){var{options:h,getAutomaticKeyboardNavigation:u,disposable:g}=_t(t,r,s,d,h,c);super(e,t,i,n,o,h),this.disposables.add(g),this.internals=new bt(this,r,u,r.overrideStyles,s,a,l,d,c),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};function _t(e,t,i,n,o,r){var s=()=>{let e=Boolean(i.getContextKeyValue(Ze));return e&&Boolean(n.getValue(tt))},a=(r=r.isScreenReaderOptimized(),r=t.simpleKeyboardNavigation||r?"simple":n.getValue(et),void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(n.getValue(Je))),[l,d]=ht(t,n,o),h=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:s,disposable:d,options:Object.assign(Object.assign({keyboardSupport:!1},l),{indent:"number"==typeof n.getValue(it)?n.getValue(it):void 0,renderIndentGuides:n.getValue(nt),smoothScrolling:Boolean(n.getValue(ot)),automaticKeyboardNavigation:s(),simpleKeyboardNavigation:"simple"===r,filterOnType:"filter"===r,horizontalScrolling:a,keyboardNavigationEventFilter:function(e,t){let i=!1;return n=>i?i=!1:(n=t.softDispatch(n,e))&&n.enterChord?!(i=!0):!(i=!1)}(e,o),additionalScrollHeight:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!=(d=t.expandOnlyOnTwistieClick)?d:"doubleClick"===n.getValue(at)})}}ft=Be([je(6,Me.b),je(7,We),je(8,i.b),je(9,Ee.a),je(10,Re.a),je(11,t.b)],ft),Te=class extends Ne{constructor(e,t,i,n,o,r,s,a,l,d,h,c,u){var{options:c,getAutomaticKeyboardNavigation:g,disposable:p}=_t(t,s,a,h,c,u);super(e,t,i,n,o,r,c),this.disposables.add(p),this.internals=new bt(this,s,g,s.overrideStyles,a,l,d,h,u),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}},Be([je(7,Me.b),je(8,We),je(9,i.b),je(10,Ee.a),je(11,Re.a),je(12,t.b)],Te);let bt=class{constructor(e,t,i,n,o,r,s,a,l){this.tree=e,this.themeService=s,this.disposables=[],this.contextKeyService=Ye(o,e),this.listSupportsMultiSelect=ze.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport),Ge.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.hasSelectionOrFocus=Ke.bindTo(this.contextKeyService),this.hasDoubleSelection=qe.bindTo(this.contextKeyService),this.hasMultiSelection=$e.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=lt(a);const d=new Set,h=(d.add(Ze),()=>{var t=l.isScreenReaderOptimized()?"simple":a.getValue(et);e.updateOptions({simpleKeyboardNavigation:"simple"===t,filterOnType:"filter"===t})});this.updateStyleOverrides(n),this.disposables.push(this.contextKeyService,r.register(e),e.onDidChangeSelection(()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(0<t.length||0<i.length),this.hasMultiSelection.set(1<t.length),this.hasDoubleSelection.set(2===t.length)})}),e.onDidChangeFocus(()=>{var t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(0<t.length||0<i.length)}),a.onDidChangeConfiguration(n=>{let o={};var r;n.affectsConfiguration(Xe)&&(this._useAltAsMultipleSelectionModifier=lt(a)),n.affectsConfiguration(it)&&(r=a.getValue(it),o=Object.assign(Object.assign({},o),{indent:r})),n.affectsConfiguration(nt)&&(r=a.getValue(nt),o=Object.assign(Object.assign({},o),{renderIndentGuides:r})),n.affectsConfiguration(ot)&&(r=Boolean(!!a.getValue(ot)),o=Object.assign(Object.assign({},o),{smoothScrolling:r})),n.affectsConfiguration(et)&&h(),n.affectsConfiguration(tt)&&(o=Object.assign(Object.assign({},o),{automaticKeyboardNavigation:i()})),n.affectsConfiguration(Je)&&void 0===t.horizontalScrolling&&(r=Boolean(!!a.getValue(Je)),o=Object.assign(Object.assign({},o),{horizontalScrolling:r})),n.affectsConfiguration(at)&&void 0===t.expandOnlyOnTwistieClick&&(o=Object.assign(Object.assign({},o),{expandOnlyOnTwistieClick:"doubleClick"===a.getValue(at)})),n.affectsConfiguration(rt)&&(r=a.getValue(rt),o=Object.assign(Object.assign({},o),{mouseWheelScrollSensitivity:r})),n.affectsConfiguration(st)&&(r=a.getValue(st),o=Object.assign(Object.assign({},o),{fastScrollSensitivity:r})),0<Object.keys(o).length&&e.updateOptions(o)}),this.contextKeyService.onDidChangeContext(t=>{t.affectsSome(d)&&e.updateOptions({automaticKeyboardNavigation:i()})}),l.onDidChangeScreenReaderOptimized(()=>h())),this.navigator=new mt(e,Object.assign({configurationService:a},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){Object(a.f)(this.styler),this.styler=e?Object(Fe.b)(this.tree,this.themeService,e):a.a.None}dispose(){this.disposables=Object(a.f)(this.disposables),Object(a.f)(this.styler),this.styler=void 0}};bt=Be([je(4,Me.b),je(5,We),je(6,i.b),je(7,Ee.a),je(8,t.b)],bt),Pe.a.as(Ie.a.Configuration).registerConfiguration({id:"workbench",order:7,title:Object(W.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{"workbench.list.multiSelectModifier":{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(W.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(W.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(W.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},"workbench.list.openMode":{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(W.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},"workbench.list.horizontalScrolling":{type:"boolean",default:!1,description:Object(W.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},"workbench.tree.indent":{type:"number",default:8,minimum:0,maximum:40,description:Object(W.a)("tree indent setting","Controls tree indentation in pixels.")},"workbench.tree.renderIndentGuides":{type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(W.a)("render tree indent guides","Controls whether the tree should render indent guides.")},"workbench.list.smoothScrolling":{type:"boolean",default:!1,description:Object(W.a)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},"workbench.list.mouseWheelScrollSensitivity":{type:"number",default:1,description:Object(W.a)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the deltaX and deltaY of mouse wheel scroll events.")},"workbench.list.fastScrollSensitivity":{type:"number",default:5,description:Object(W.a)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing Alt.")},"workbench.list.keyboardNavigation":{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(W.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(W.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(W.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(W.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},"workbench.list.automaticKeyboardNavigation":{type:"boolean",default:!0,markdownDescription:Object(W.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},"workbench.tree.expandMode":{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(W.a)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}}})},"94a7":function(e,t,i){},"958f":function(e,t,i){"use strict";i.r(t),i.d(t,"MarkerController",(function(){return $})),i.d(t,"NextMarkerAction",(function(){return Z}));var n,o=i("dff7"),r=i("a666"),s=(t=i("4fc3"),i("7061")),a=i("6a89"),l=i("b2cc"),d=i("c101"),h=(i("fe86"),i("11f7")),c=i("b400"),u=i("303e"),g=i("b7d0"),p=i("ceb8"),m=i("1898"),f=i("debc"),_=i("e8e3"),b=i("308f"),v=i("88d4"),C=i("82c9"),w=i("561a"),y=i("4b76"),S=((n||(n={})).className=function(e){switch(e){case y.a.Ignore:return"severity-ignore "+w.b.info.classNames;case y.a.Info:return w.b.info.classNames;case y.a.Warning:return w.b.warning.classNames;case y.a.Error:return w.b.error.classNames;default:return""}},Object(g.f)((e,t)=>{var i=e.getColor(u.mc),n=(i&&(n=w.b.error.cssSelector,t.addRule(`\n\t\t\t.monaco-editor .zone-widget ${n},\n\t\t\t.markers-panel .marker-icon${n},\n\t\t\t.text-search-provider-messages .providerMessage ${n},\n\t\t\t.extensions-viewlet > .extensions ${n} {\n\t\t\t\tcolor: ${i};\n\t\t\t}\n\t\t`)),e.getColor(u.oc));n&&(i=w.b.warning.cssSelector,t.addRule(`\n\t\t\t.monaco-editor .zone-widget ${i},\n\t\t\t.markers-panel .marker-icon${i},\n\t\t\t.extensions-viewlet > .extensions ${i},\n\t\t\t.extension-editor ${i},\n\t\t\t.text-search-provider-messages .providerMessage ${i},\n\t\t\t.preferences-editor ${i} {\n\t\t\t\tcolor: ${n};\n\t\t\t}\n\t\t`)),i=e.getColor(u.nc);i&&(n=w.b.info.cssSelector,t.addRule(`\n\t\t\t.monaco-editor .zone-widget ${n},\n\t\t\t.markers-panel .marker-icon${n},\n\t\t\t.extensions-viewlet > .extensions ${n},\n\t\t\t.text-search-provider-messages .providerMessage ${n},\n\t\t\t.extension-editor ${n} {\n\t\t\t\tcolor: ${i};\n\t\t\t}\n\t\t`))}),i("5bd73")),L=i("7e32"),x=i("7944"),k=i("0a0f"),D=i("3742"),N=i("47cb"),O=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},E=function(e,t){return function(i,n){t(i,n,e)}};class I{constructor(e,t,i,n,o){this._openerService=n,this._labelService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new r.b,this._editor=t;const s=document.createElement("div");s.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),s.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),s.appendChild(this._relatedBlock),this._disposables.add(h.o(this._relatedBlock,"click",e=>{e.preventDefault(),e=this._relatedDiagnostics.get(e.target),e&&i(e)})),this._scrollable=new m.b(s,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(e=>{s.style.left=`-${e.scrollLeft}px`,s.style.top=`-${e.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){Object(r.f)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:o}=e;let r=((null==t?void 0:t.length)||0)+"()".length;o&&(r+="string"==typeof o?o.length:o.value.length);var s=Object(D.Q)(i);this._lines=s.length,this._longestLineLength=0;for(const h of s)this._longestLineLength=Math.max(h.length+r,this._longestLineLength);h.t(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const h of s)""===((a=document.createElement("div")).innerText=h)&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if((t||o)&&((e=document.createElement("span")).classList.add("details"),a.appendChild(e),t&&((s=document.createElement("span")).innerText=t,s.classList.add("source"),e.appendChild(s)),o)&&("string"==typeof o?((s=document.createElement("span")).innerText=`(${o})`,s.classList.add("code"),e.appendChild(s)):(this._codeLink=h.a("a.code-link"),this._codeLink.setAttribute("href",""+o.target.toString()),this._codeLink.onclick=e=>{this._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()},h.q(this._codeLink,h.a("span")).innerText=o.value,e.appendChild(this._codeLink))),h.t(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(_.n)(n)){var l=this._relatedBlock.appendChild(document.createElement("div"));l.style.paddingTop=Math.floor(.66*this._editor.getOption(58))+"px",this._lines+=1;for(const e of n){var d=document.createElement("div"),c=document.createElement("a"),u=(c.classList.add("filename"),c.innerText=`${Object(f.a)(e.resource)}(${e.startLineNumber}, ${e.startColumn}): `,c.title=this._labelService.getUriLabel(e.resource),this._relatedDiagnostics.set(c,e),document.createElement("span"));u.innerText=e.message,d.appendChild(c),d.appendChild(u),this._lines+=1,l.appendChild(d)}}s=this._editor.getOption(42),e=Math.ceil(s.typicalFullwidthCharacterWidth*this._longestLineLength*.75),s=s.lineHeight*this._lines,this._scrollable.setScrollDimensions({scrollWidth:e,scrollHeight:s})}layout(e,t){this._scrollable.getDomNode().style.height=e+"px",this._scrollable.getDomNode().style.width=t+"px",this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case c.c.Error:t=o.a("Error","Error");break;case c.c.Warning:t=o.a("Warning","Warning");break;case c.c.Info:t=o.a("Info","Info");break;case c.c.Hint:t=o.a("Hint","Hint")}let i=o.a("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);var n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&1<=e.startLineNumber&&(n=n.getLineContent(e.startLineNumber),i=n+", "+i),i}}let M=class e extends v.c{constructor(e,t,i,n,o,s,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},o),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=s,this._labelService=a,this._callOnDispose=new r.b,this._onDidSelectRelatedInformation=new b.b,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=c.c.Warning,this._backgroundColor=p.a.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(j);let t=T,i=A;this._severity===c.c.Warning?(t=R,i=P):this._severity===c.c.Info&&(t=F,i=B);var n=e.getColor(t),o=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:o,primaryHeadingColor:e.getColor(v.q),secondaryHeadingColor:e.getColor(v.r)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(t){super._fillHead(t),this._disposables.add(this._actionbarWidget.actionRunner.onBeforeRun(e=>this.editor.focus()));t=[];var i=this._menuService.createMenu(e.TitleMenu,this._contextKeyService);Object(x.c)(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=h.q(e,h.a(""))}_fillBody(e){(this._parentContainer=e).classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new I(this._container,this.editor,e=>this._onDidSelectRelatedInformation.fire(e),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());e=a.a.lift(e);var r=this.editor.getPosition();r=r&&e.containsPosition(r)?r:e.getStartPosition(),super.show(r,this.computeRequiredHeight()),e=this.editor.getModel();e&&(t=1<i?o.a("problems","{0} of {1} problems",t,i):o.a("change","{0} of {1} problem",t,i),this.setTitle(Object(C.b)(e.uri),t)),this._icon.className="codicon "+n.className(c.c.toSeverity(this._severity)),this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=e+"px"}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};M.TitleMenu=new L.b("gotoErrorTitleMenu"),M=O([E(1,g.b),E(2,S.a),E(3,L.a),E(4,k.a),E(5,t.b),E(6,N.a)],M),O=Object(u.hc)(u.u,u.t),S=Object(u.hc)(u.X,u.W),E=Object(u.hc)(u.M,u.L);const T=Object(u.wc)("editorMarkerNavigationError.background",{dark:O,light:O,hc:u.h},o.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),A=Object(u.wc)("editorMarkerNavigationError.headerBackground",{dark:Object(u.Lc)(T,.1),light:Object(u.Lc)(T,.1),hc:null},o.a("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),R=Object(u.wc)("editorMarkerNavigationWarning.background",{dark:S,light:S,hc:u.h},o.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),P=Object(u.wc)("editorMarkerNavigationWarning.headerBackground",{dark:Object(u.Lc)(R,.1),light:Object(u.Lc)(R,.1),hc:"#0C141F"},o.a("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),F=Object(u.wc)("editorMarkerNavigationInfo.background",{dark:E,light:E,hc:u.h},o.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),B=Object(u.wc)("editorMarkerNavigationInfo.headerBackground",{dark:Object(u.Lc)(F,.1),light:Object(u.Lc)(F,.1),hc:null},o.a("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),j=Object(u.wc)("editorMarkerNavigation.background",{dark:u.r,light:u.r,hc:u.r},o.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(g.f)((e,t)=>{var i=e.getColor(u.Jc);i&&t.addRule(`.monaco-editor .marker-widget a.code-link span { color: ${i}; }`),i=e.getColor(u.Ic);i&&t.addRule(`.monaco-editor .marker-widget a.code-link span:hover { color: ${i}; }`)});N=i("5717");var W=i("6d8e"),V=(O=i("f5f3"),i("db88"));S=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},E=function(e,t){return function(i,n){t(i,n,e)}};class H{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let z=class e{constructor(t,i){this._markerService=i,this._onDidChange=new b.b,this.onDidChange=this._onDidChange.event,this._dispoables=new r.b,this._markers=[],this._nextIdx=-1,W.a.isUri(t)?this._resourceFilter=e=>e.toString()===t.toString():t&&(this._resourceFilter=t);const n=()=>{this._markers=this._markerService.read({resource:W.a.isUri(t)?t:void 0,severities:c.c.Error|c.c.Warning|c.c.Info}),"function"==typeof t&&(this._markers=this._markers.filter(e=>this._resourceFilter(e.resource))),this._markers.sort(e._compareMarker)};n(),this._dispoables.add(i.onMarkerChanged(e=>{this._resourceFilter&&!e.some(e=>this._resourceFilter(e))||(n(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){var e=this._markers[this._nextIdx];return e&&new H(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,o=this._markers.findIndex(t=>t.resource.toString()===e.uri.toString());for(let s=o=o<0&&(o=Object(_.d)(this._markers,{resource:e.uri},(e,t)=>Object(D.f)(e.resource.toString(),t.resource.toString())))<0?~o:o;s<this._markers.length;s++){let i=a.a.lift(this._markers[s]);var r;if(i.isEmpty()&&(r=e.getWordAtPosition(i.getStartPosition()))&&(i=new a.a(i.startLineNumber,r.startColumn,i.startLineNumber,r.endColumn)),t&&(i.containsPosition(t)||t.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=s,n=!0;break}if(this._markers[s].resource.toString()!==e.uri.toString())break}n||(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){var n;return 0!==this._markers.length&&(n=this._nextIdx,-1===this._nextIdx?this._initIdx(t,i,e):this._nextIdx=e?(this._nextIdx+1)%this._markers.length:(this._nextIdx-1+this._markers.length)%this._markers.length,n!==this._nextIdx)}find(e,t){let i=this._markers.findIndex(t=>t.resource.toString()===e.toString());if(!(i<0))for(;i<this._markers.length;i++)if(a.a.containsPosition(this._markers[i],t))return new H(this._markers[i],i+1,this._markers.length)}static _compareMarker(e,t){let i=Object(D.f)(e.resource.toString(),t.resource.toString());return 0===(i=0===i?c.c.compare(e.severity,t.severity):i)?a.a.compareRangesUsingStarts(e,t):i}};z=S([E(1,c.b)],z);g=Object(k.c)("IMarkerNavigationService");var U=class{constructor(e){this._markerService=e,this._provider=new V.a}getMarkerList(e){for(var t of this._provider)if(t=t.getMarkerList(e),t)return t;return new z(e,this._markerService)}},K=(U=S([E(0,c.b)],U),Object(O.b)(g,U,!0),i("bf5b")),q=(S=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},E=function(e,t){return function(i,n){t(i,n,e)}},function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});let $=class e{constructor(e,t,i,n,o){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=o,this._sessionDispoables=new r.b,this._editor=e,this._widgetVisible=J.bindTo(this._contextKeyService)}static get(t){return t.getContribution(e.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(!this._model||!this._model.matches(e)){let t=!1;this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(M,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(e=>{var t;null!=(t=this._model)&&t.selected&&a.a.containsPosition(null==(t=this._model)?void 0:t.selected.marker,e.position)||null!=(t=this._model)&&t.resetIndex()})),this._sessionDispoables.add(this._model.onDidChange(()=>{var e;this._widget&&this._widget.position&&this._model&&((e=this._model.find(this._editor.getModel().uri,this._widget.position))?this._widget.updateMarker(e.marker):this._widget.showStale())})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:a.a.lift(e).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp()))}return this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){var t;this._editor.hasModel()&&((t=this._getOrCreateModel(this._editor.getModel().uri)).resetIndex(),t.move(!0,this._editor.getModel(),new s.a(e.startLineNumber,e.startColumn)),t.selected)&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}nagivate(t,i){return q(this,void 0,void 0,(function*(){var n,o;this._editor.hasModel()&&((n=this._getOrCreateModel(i?void 0:this._editor.getModel().uri)).move(t,this._editor.getModel(),this._editor.getPosition()),n.selected)&&(n.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()?(this._cleanUp(),(o=yield this._editorService.openCodeEditor({resource:n.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:n.selected.marker}},this._editor))&&(e.get(o).close(),e.get(o).nagivate(t,i))):this._widget.showAtMarker(n.selected.marker,n.selected.index,n.selected.total))}))}};$.ID="editor.contrib.markerController",$=S([E(1,g),E(2,t.b),E(3,N.a),E(4,k.a)],$);class G extends l.b{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){return q(this,void 0,void 0,(function*(){t.hasModel()&&$.get(t).nagivate(this._next,this._multiFile)}))}}class Z extends G{constructor(){super(!0,!1,{id:Z.ID,label:Z.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:578,weight:100},menuOpts:{menuId:M.TitleMenu,title:Z.LABEL,icon:Object(K.b)("marker-navigation-next",w.b.arrowDown,o.a("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Z.ID="editor.action.marker.next",Z.LABEL=o.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class Y extends G{constructor(){super(!1,!1,{id:Y.ID,label:Y.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:1602,weight:100},menuOpts:{menuId:M.TitleMenu,title:Z.LABEL,icon:Object(K.b)("marker-navigation-previous",w.b.arrowUp,o.a("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}Y.ID="editor.action.marker.prev",Y.LABEL=o.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class X extends G{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:o.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:66,weight:100},menuOpts:{menuId:L.b.MenubarGoMenu,title:o.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class Q extends G{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:o.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.a.focus,primary:1090,weight:100},menuOpts:{menuId:L.b.MenubarGoMenu,title:o.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}Object(l.l)($.ID,$),Object(l.j)(Z),Object(l.j)(Y),Object(l.j)(X),Object(l.j)(Q);const J=new t.c("markersNavigationVisible",!1);O=l.c.bindToContribution($.get),Object(l.k)(new O({id:"closeMarkersNavigation",precondition:J,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:d.a.focus,primary:9,secondary:[1033]}}))},"962f":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return i.e("chunk-2d2311f7").then(i.bind(null,"eecd"))}})},"96b9":function(e,t,i){},9768:function(e,t,i){"use strict";i.d(t,"a",(function(){return D})),i.d(t,"b",(function(){return N}));var n=i("5fe7"),o=i("3d378"),r=(t=i("40355"),i("32b8")),s=i("3742");const a="**",l="/",d="[/\\\\]",h="[^/\\\\]",c=/\//g;function u(e){switch(e){case 0:return"";case 1:return h+"*?";default:return`(?:${d}|${h}+${d}|${d}${h}+)*?`}}function g(e,t){if(!e)return[];var i=[];let n=!1,o=!1,r="";for(const s of e){switch(s){case t:if(n||o)break;i.push(r),r="";continue;case"{":n=!0;break;case"}":n=!1;break;case"[":o=!0;break;case"]":o=!1}r+=s}return r&&i.push(r),i}const p=/^\*\*\/\*\.[\w\.-]+$/,m=/^\*\*\/([\w\.-]+)\/?$/,f=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,_=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,b=/^\*\*((\/[\w\.-]+)+)\/?$/,v=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,C=new t.a(1e4),w=function(){return!1},y=function(){return null};function S(e,t){if(!e)return y;let i;var n=(i=(i="string"!=typeof e?e.pattern:e).trim())+"_"+!!t.trimForExclusions;let o=C.get(n);if(!o){let e;if(p.test(i)){const e=i.substr(4);o=function(t,n){return"string"==typeof t&&t.endsWith(e)?i:null}}else o=(e=m.exec(x(i,t)))?function(e,t){function i(i,r){return"string"!=typeof i?null:r?r===e?t:null:i===e||i.endsWith(n)||i.endsWith(o)?t:null}const n="/"+e,o="\\"+e,r=[e];return i.basenames=r,i.patterns=[t],i.allBasenames=r,i}(e[1],i):(t.trimForExclusions?_:f).test(i)?function(e,t){const i=O(e.slice(1,-1).split(",").map(e=>S(e,t)).filter(e=>e!==y),e),n=i.length;if(!n)return y;if(1===n)return i[0];function o(t,n){for(let o=0,r=i.length;o<r;o++)if(i[o](t,n))return e;return null}var r=i.find(e=>!!e.allBasenames);return r&&(o.allBasenames=r.allBasenames),r=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]),r.length&&(o.allPaths=r),o}(i,t):(e=b.exec(x(i,t)))?k(e[1].substr(1),i,!0):(e=v.exec(x(i,t)))?k(e[1],i,!1):function(t){try{const e=new RegExp(`^${function e(t){if(!t)return"";let i="";const n=g(t,l);if(n.every(e=>e===a))i=".*";else{let t=!1;n.forEach((o,r)=>{if(o===a)t||(i+=u(2),t=!0);else{let p=!1,m="",f=!1,_="";for(const t of o)if("}"!==t&&p)m+=t;else if(!f||"]"===t&&_)switch(t){case"{":p=!0;continue;case"[":f=!0;continue;case"}":var c=`(?:${g(m,",").map(t=>e(t)).join("|")})`;i+=c,p=!1,m="";break;case"]":i+="["+_+"]",f=!1,_="";break;case"?":i+=h;continue;case"*":i+=u(1);continue;default:i+=s.t(t)}else{let e;e="-"===t?t:"^"!==t&&"!"!==t||_?t===l?"":s.t(t):"^",_+=e}r<n.length-1&&(n[r+1]!==a||r+2<n.length)&&(i+=d),t=!1}})}return i}(t)}$`);return function(i){return e.lastIndex=0,"string"==typeof i&&e.test(i)?t:null}}catch(e){return y}}(i);C.set(n,o)}return L(o,e)}function L(e,t){return"string"==typeof t?e:function(i,n){return o.b(i,t.base)?e(r.f(t.base,i),n):null}}function x(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function k(e,t,i){const n=r.h===r.e.sep,o=n?e:e.replace(c,r.h),s=r.h+o,a=r.e.sep+e;var l=i?function(i,r){return"string"!=typeof i||i!==o&&!i.endsWith(s)&&(n||i!==e&&!i.endsWith(a))?null:t}:function(i,r){return"string"!=typeof i||i!==o&&(n||i!==e)?null:t};return l.allPaths=[(i?"*/":"./")+e],l}function D(e,t,i){return!(!e||"string"!=typeof t)&&N(e)(t,void 0,i)}function N(e,t={}){if(!e)return w;if("string"==typeof e||(i=e)&&"string"==typeof i.base&&"string"==typeof i.pattern){const n=S(e,t);return n===y?w:(i=function(e,t){return!!n(e,t)},n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i)}var i;{var o=e,s=t;const i=O(Object.getOwnPropertyNames(o).map(e=>{{var t=e,i=(e=o[e],s);if(!1===e)return y;const r=S(t,i);if(r===y)return y;if("boolean"!=typeof e&&e){const o=e.when;if("string"==typeof o)return(i=(e,i,s,a)=>a&&r(e,i)?(e=a(o.replace("$(basename)",s)),Object(n.k)(e)?e.then(e=>e?t:null):e?t:null):null).requiresSiblings=!0,i}return r}}).filter(e=>e!==y)),a=i.length;if(!a)return y;if(!i.some(e=>!!e.requiresSiblings)){if(1===a)return i[0];const e=function(e,t){for(let o=0,r=i.length;o<r;o++){var n=i[o](e,t);if(n)return n}return null},t=i.find(e=>!!e.allBasenames),n=(t&&(e.allBasenames=t.allBasenames),i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]));return n.length&&(e.allPaths=n),e}const l=function(e,t,n){let o=void 0;for(let a=0,l=i.length;a<l;a++){var s=i[a];s=(s.requiresSiblings&&n&&(t=t||r.a(e),o=o||t.substr(0,t.length-r.c(e).length)),s(e,t,o,n));if(s)return s}return null},d=i.find(e=>!!e.allBasenames),h=(d&&(l.allBasenames=d.allBasenames),i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]));return h.length&&(l.allPaths=h),l}}function O(e,t){var i=e.filter(e=>!!e.basenames);if(i.length<2)return e;const n=i.reduce((e,t)=>(t=t.basenames,t?e.concat(t):e),[]);let o;if(t){o=[];for(let e=0,i=n.length;e<i;e++)o.push(t)}else o=i.reduce((e,t)=>(t=t.patterns,t?e.concat(t):e),[]);function r(e,t){if("string"!=typeof e)return null;if(!t){let n;for(n=e.length;0<n;n--){var i=e.charCodeAt(n-1);if(47===i||92===i)break}t=e.substr(n)}return-1!==(t=n.indexOf(t))?o[t]:null}return r.basenames=n,r.patterns=o,r.allBasenames=n,i=e.filter(e=>!e.basenames),i.push(r),i}},"9c1d":function(e,t,i){"use strict";i.d(t,"a",(function(){return Wn}));t=i("efdb");var n=i("b2cc"),o=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},r=function(e,t){return function(i,n){t(i,n,e)}};let s=class{constructor(e,t){}dispose(){}};s.ID="editor.contrib.markerDecorations",s=o([r(1,t.a)],s),Object(n.l)(s.ID,s),i("96b9");var a=i("dff7"),l=i("11f7"),d=i("fdcc"),h=i("308f"),c=i("a666"),u=i("b589"),g=i("1ddc"),p=(o=i("5717"),i("0f70")),m=i("8025"),f=i("6653"),_=i("30db"),b=i("a60f"),v=i("5d28"),C=i("5fe7"),w=i("00a3");class y{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new S(this.x-l.f.scrollX,this.y-l.f.scrollY)}}class S{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new y(this.clientX+l.f.scrollX,this.clientY+l.f.scrollY)}}class L{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}function x(e){return e=l.D(e),new L(e.left,e.top,e.width,e.height)}class k extends v.a{constructor(e,t){super(e),this._editorMouseEventBrand=void 0,this.pos=new y(this.posx,this.posy),this.editorPos=x(t)}}class D{constructor(e){this._editorViewDomNode=e}_create(e){return new k(e,this._editorViewDomNode)}onContextMenu(e,t){return l.i(e,"contextmenu",e=>{t(this._create(e))})}onMouseUp(e,t){return l.i(e,"mouseup",e=>{t(this._create(e))})}onMouseDown(e,t){return l.i(e,"mousedown",e=>{t(this._create(e))})}onMouseLeave(e,t){return l.j(e,e=>{t(this._create(e))})}onMouseMoveThrottled(e,t,i,n){return l.l(e,"mousemove",t,(e,t)=>i(e,this._create(t)),n)}}class N{constructor(e){this._editorViewDomNode=e}_create(e){return new k(e,this._editorViewDomNode)}onPointerUp(e,t){return l.i(e,"pointerup",e=>{t(this._create(e))})}onPointerDown(e,t){return l.i(e,"pointerdown",e=>{t(this._create(e))})}onPointerLeave(e,t){return l.k(e,e=>{t(this._create(e))})}onPointerMoveThrottled(e,t,i,n){return l.l(e,"pointermove",t,(e,t)=>i(e,this._create(t)),n)}}class O extends c.a{constructor(e){super(),this._editorViewDomNode=e,this._globalMouseMoveMonitor=this._register(new w.a),this._keydownListener=null}startMonitoring(e,t,i,n,o){this._keydownListener=l.o(document,"keydown",e=>{e.toKeybinding().isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0,e.browserEvent)},!0),this._globalMouseMoveMonitor.startMonitoring(e,t,(e,t)=>i(e,new k(t,this._editorViewDomNode)),n,e=>{this._keydownListener.dispose(),o(e)})}stopMonitoring(){this._globalMouseMoveMonitor.stopMonitoring(!0)}}class E extends c.a{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let n=0,o=e.length;n<o;n++){var i=e[n];switch(i.type){case 0:this.onCompositionStart(i)&&(t=!0);break;case 1:this.onCompositionEnd(i)&&(t=!0);break;case 2:this.onConfigurationChanged(i)&&(t=!0);break;case 3:this.onCursorStateChanged(i)&&(t=!0);break;case 4:this.onDecorationsChanged(i)&&(t=!0);break;case 5:this.onFlushed(i)&&(t=!0);break;case 6:this.onFocusChanged(i)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(i)&&(t=!0);break;case 8:this.onLineMappingChanged(i)&&(t=!0);break;case 9:this.onLinesChanged(i)&&(t=!0);break;case 10:this.onLinesDeleted(i)&&(t=!0);break;case 11:this.onLinesInserted(i)&&(t=!0);break;case 12:this.onRevealRangeRequest(i)&&(t=!0);break;case 13:this.onScrollChanged(i)&&(t=!0);break;case 15:this.onTokensChanged(i)&&(t=!0);break;case 14:this.onThemeChanged(i)&&(t=!0);break;case 16:this.onTokensColorsChanged(i)&&(t=!0);break;case 17:this.onZonesChanged(i)&&(t=!0)}}t&&(this._shouldRender=!0)}}class I extends E{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class M{static write(e,t){f.a,e.setAttribute("data-mprt",String(t))}static read(e){return e=e.getAttribute("data-mprt"),null===e?0:parseInt(e,10)}static collect(e,t){let i=[],n=0;for(;e&&e!==document.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(i[n++]=this.read(e)),e=e.parentElement;var o=new Uint8Array(n);for(let r=0;r<n;r++)o[r]=i[n-r-1];return o}}class T extends class{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta,e=this._viewLayout.getCurrentViewport(),this.scrollTop=e.top,this.scrollLeft=e.left,this.viewportWidth=e.width,this.viewportHeight=e.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class A{constructor(e,t,i){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i}}class R{constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}static from(e){var t=new Array(e.length);for(let n=0,o=e.length;n<o;n++){var i=e[n];t[n]=new R(i.left,i.width)}return t}toString(){return`[${this.left},${this.width}]`}}class P{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class F{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class B{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}class j{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,n,o){var r=this._createRange();try{return r.setStart(e,t),r.setEnd(i,n),r.getClientRects()}catch(e){return null}finally{this._detachRange(r,o)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(P.compare);let t=[],i=0,n=e[0];for(let r=1,s=e.length;r<s;r++){var o=e[r];n.left+n.width+.9>=o.left?n.width=Math.max(n.width,o.left+o.width-n.left):(t[i++]=n,n=o)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t){if(!e||0===e.length)return null;var i=[];for(let o=0,r=e.length;o<r;o++){var n=e[o];i[o]=new P(Math.max(0,n.left-t),n.width)}return this._mergeAdjacentRanges(i)}static readHorizontalRanges(e,t,i,n,o,r,s){var a=e.children.length-1;if(a<0)return null;if((t=Math.min(a,Math.max(0,t)))===(n=Math.min(a,Math.max(0,n)))&&i===o&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(i,r)}t!==n&&0<n&&0===o&&(n--,o=1073741824);let l=e.children[t].firstChild,d=e.children[n].firstChild;if(l&&d||(!l&&0===i&&0<t&&(l=e.children[t-1].firstChild,i=1073741824),!d&&0===o&&0<n&&(d=e.children[n-1].firstChild,o=1073741824)),!l||!d)return null;i=Math.min(l.textContent.length,Math.max(0,i)),o=Math.min(d.textContent.length,Math.max(0,o));const h=this._readClientRects(l,i,d,o,s);return this._createHorizontalRangesFromClientRects(h,r)}}var W=i("7416"),V=i("6da2"),H=i("9c41"),z=i("fd49");const U=!!_.g||!(_.d||p.g||p.h);let K=!0;class q{constructor(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}get clientRectDeltaLeft(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft}}class ${constructor(e,t){this.themeType=t,t=e.options,e=t.get(42),this.renderWhitespace=t.get(88),this.renderControlCharacters=t.get(82),this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.useMonospaceOptimizations=e.isMonospace&&!t.get(28),this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(58),this.stopRenderingLineAfter=t.get(105),this.fontLigatures=t.get(43)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class G{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Object(f.b)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return(this._options.themeType===H.a.HIGH_CONTRAST||"selection"===this._options.renderWhitespace)&&(this._isMaybeInvalid=!0)}renderLine(e,t,i,n){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var o,r,s=i.getViewLineRenderingData(e),a=this._options,l=W.a.filter(s.inlineDecorations,e,s.minColumn,s.maxColumn);let d=null;if(a.themeType===H.a.HIGH_CONTRAST||"selection"===this._options.renderWhitespace)for(const c of i.selections)c.endLineNumber<e||c.startLineNumber>e||(o=c.startLineNumber===e?c.startColumn:s.minColumn)<(r=c.endLineNumber===e?c.endColumn:s.maxColumn)&&(a.themeType===H.a.HIGH_CONTRAST||"selection"!==this._options.renderWhitespace?l.push(new W.a(o,r,"inline-selected-text",0)):(d=d||[]).push(new V.b(o-1,r-1)));if(i=new V.c(a.useMonospaceOptimizations,a.canUseHalfwidthRightwardsArrow,s.content,s.continuesWithWrappedLine,s.isBasicASCII,s.containsRTL,s.minColumn-1,s.tokens,l,s.tabSize,s.startVisibleColumn,a.spaceWidth,a.middotWidth,a.wsmiddotWidth,a.stopRenderingLineAfter,a.renderWhitespace,a.renderControlCharacters,a.fontLigatures!==z.e.OFF,d),this._renderedViewLine&&this._renderedViewLine.input.equals(i))return!1;n.appendASCIIString('<div style="top:'),n.appendASCIIString(String(t)),n.appendASCIIString("px;height:"),n.appendASCIIString(String(this._options.lineHeight)),n.appendASCIIString('px;" class="'),n.appendASCIIString(G.CLASS_NAME),n.appendASCIIString('">'),t=Object(V.d)(i,n),n.appendASCIIString("</div>");let h=null;return h=(h=K&&U&&s.isBasicASCII&&a.useMonospaceOptimizations&&0===t.containsForeignElements&&s.content.length<300&&i.lineTokens.getCount()<100?new Z(this._renderedViewLine?this._renderedViewLine.domNode:null,i,t.characterMapping):h)||Q(this._renderedViewLine?this._renderedViewLine.domNode:null,i,t.characterMapping,t.containsRTL,t.containsForeignElements),this._renderedViewLine=h,!0}layoutLine(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof Z}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof Z?this._renderedViewLine.monospaceAssumptionsAreValid():K}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof Z&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t|=0,i|=0,t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));var o=0|this._renderedViewLine.input.stopRenderingLineAfter;let r=-1!=o&&1+o<t&&1+o<i;return e=this._renderedViewLine.getVisibleRangesForRange(e,t=-1!=o&&1+o<t?1+o:t,i=-1!=o&&1+o<i?1+o:i,n),e&&0<e.length?new B(r,e):null}getColumnOfNodeOffset(e,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,i):1}}G.CLASS_NAME="view-line";class Z{constructor(e,t,i){this.domNode=e,this.input=t,this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(){return Math.round(this._getCharPosition(this._characterMapping.length))}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){var e,t;return K=!(this.domNode&&(e=this.getWidth(),t=this.domNode.domNode.firstChild.offsetWidth,2<=Math.abs(e-t)))&&K}toSlowRenderedLine(){return Q(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){return t=this._getCharPosition(t),i=this._getCharPosition(i),[new P(t,i-t)]}_getCharPosition(e){return e=this._characterMapping.getAbsoluteOffset(e),this._charWidth*e}getColumnOfNodeOffset(e,t,i){var n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new V.a(o,i),n)}}class Y{constructor(e,t,i,n,o){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,n){var o,r;return this.domNode?null!==this._pixelOffsetCache?-1===(o=this._readPixelOffset(this.domNode,e,t,n))||-1===(r=this._readPixelOffset(this.domNode,e,i,n))?null:[new P(o,r-o)]:this._readVisibleRangesForRange(this.domNode,e,t,i,n):null}_readVisibleRangesForRange(e,t,i,n,o){return i===n?-1===(t=this._readPixelOffset(e,t,i,o))?null:[new P(t,0)]:this._readRawVisibleRangesForRange(e,i,n,o)}_readPixelOffset(e,t,i,n){var o;return 0===this._characterMapping.length?0===this._containsForeignElements||2===this._containsForeignElements?0:1===this._containsForeignElements?this.getWidth():(o=this._getReadingTarget(e)).firstChild?o.firstChild.offsetWidth:0:null!==this._pixelOffsetCache?-1!==(o=this._pixelOffsetCache[i])?o:(o=this._actualReadPixelOffset(e,t,i,n),this._pixelOffsetCache[i]=o):this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(0===this._characterMapping.length){const t=j.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.endNode);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var o=this._characterMapping.getDomPosition(i);const r=j.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,o.partIndex,o.charIndex,n.clientRectDeltaLeft,n.endNode);return r&&0!==r.length?(e=r[0].left,this.input.isBasicASCII&&(o=this._characterMapping.getAbsoluteOffset(i),n=Math.round(this.input.spaceWidth*o),Math.abs(n-e)<=1)?n:e):-1}_readRawVisibleRangesForRange(e,t,i,n){return 1===t&&i===this._characterMapping.length?[new P(0,this.getWidth())]:(t=this._characterMapping.getDomPosition(t),i=this._characterMapping.getDomPosition(i),j.readHorizontalRanges(this._getReadingTarget(e),t.partIndex,t.charIndex,i.partIndex,i.charIndex,n.clientRectDeltaLeft,n.endNode))}getColumnOfNodeOffset(e,t,i){var n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new V.a(o,i),n)}}class X extends Y{_readVisibleRangesForRange(e,t,i,n,o){var r=super._readVisibleRangesForRange(e,t,i,n,o);return!r||0===r.length||i===n||1===i&&n===this._characterMapping.length||this.input.containsRTL||-1!==(i=this._readPixelOffset(e,t,n,o))&&(e=r[r.length-1]).left<i&&(e.width=i-e.left),r}}const Q=p.j?J:ee;function J(e,t,i,n,o){return new X(e,t,i,n,o)}function ee(e,t,i,n,o){return new Y(e,t,i,n,o)}var te,ie=i("7061"),ne=i("6a89"),oe=i("2e5d"),re=i("708a");class se{constructor(e=null){this.hitTarget=e,this.type=0}}class ae{constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}(te||(te={})).createFromDOMInfo=function(e,t,i){return(e=e.getPositionFromDOMInfo(t,i))?new ae(e,t,null):new se(t)};class le{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class de{constructor(e,t,i=0,n=null,o=null,r=null){this.element=e,this.type=t,this.mouseColumn=i,this.position=n,!o&&n&&(o=new ne.a(n.lineNumber,n.column,n.lineNumber,n.column)),this.range=o,this.detail=r}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail}toString(){return de.toString(this)}}class he{static isTextArea(e){return 2===e.length&&3===e[0]&&6===e[1]}static isChildOfViewLines(e){return 4<=e.length&&3===e[0]&&7===e[3]}static isStrictChildOfViewLines(e){return 4<e.length&&3===e[0]&&7===e[3]}static isChildOfScrollableElement(e){return 2<=e.length&&3===e[0]&&5===e[1]}static isChildOfMinimap(e){return 2<=e.length&&3===e[0]&&8===e[1]}static isChildOfContentWidgets(e){return 4<=e.length&&3===e[0]&&1===e[3]}static isChildOfOverflowingContentWidgets(e){return 1<=e.length&&2===e[0]}static isChildOfOverlayWidgets(e){return 2<=e.length&&3===e[0]&&4===e[1]}}class ce{constructor(e,t,i){this.model=e.model;var n=e.configuration.options;this.layoutInfo=n.get(130),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(58),this.stickyTabStops=n.get(104),this.typicalHalfwidthCharacterWidth=n.get(42).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return ce.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){var i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){var n=i.verticalOffset+i.height/2,o=e.model.getLineCount();let r,s=null,a=null;return i.afterLineNumber!==o&&(a=new ie.a(i.afterLineNumber+1,1)),0<i.afterLineNumber&&(s=new ie.a(i.afterLineNumber,e.model.getLineMaxColumn(i.afterLineNumber))),r=null===a||null!==s&&t<n?s:a,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:s,positionAfter:a,position:r}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.model.getLineCount(),t=this._context.model.getLineMaxColumn(e);return{range:new ne.a(e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.model.getLineMaxColumn(t);return{range:new ne.a(t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return ce._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){for(;e&&e!==document.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class ue extends class{constructor(e,t,i){this.editorPos=t,this.pos=i,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+i.y-t.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+i.x-t.x-e.layoutInfo.contentLeft,this.isInMarginArea=i.x-t.x<e.layoutInfo.contentLeft&&i.x-t.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,me._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}{constructor(e,t,i,n){super(e,t,i),this._ctx=e,n?(this.target=n,this.targetPath=M.collect(n,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: `+(this.target?this.target.outerHTML:null)}fulfill(e,t=null,i=null,n=null){let o=this.mouseColumn;return t&&t.column<this._ctx.model.getLineMaxColumn(t.lineNumber)&&(o=oe.a.visibleColumnFromColumn(this._ctx.model.getLineContent(t.lineNumber),t.column,this._ctx.model.getTextModelOptions().tabSize)+1),new de(this.target,e,o,t,i,n)}withTarget(e){return new ue(this._ctx,this.editorPos,this.pos,e)}}const ge={isAfterLines:!0};function pe(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class me{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){return e=e.target,e=M.collect(e,this._viewHelper.viewDomNode),!(!he.isChildOfContentWidgets(e)&&!he.isChildOfOverflowingContentWidgets(e)&&!he.isChildOfOverlayWidgets(e))}createMouseTarget(e,t,i,n){e=new ce(this._context,this._viewHelper,e),t=new ue(e,t,i,n);try{return me._createMouseTarget(e,t,!1)}catch(e){return t.fulfill(0)}}static _createMouseTarget(e,t,i){var n;return null===t.target?i?t.fulfill(0):1===(n=me._doHitTest(e,t)).type?me.createMouseTargetFromHitTestPosition(e,t,n.spanNode,n.position,n.injectedText):this._createMouseTarget(e,t.withTarget(n.hitTarget),!0):(n=t,me._hitTestContentWidget(e,n)||me._hitTestOverlayWidget(e,n)||me._hitTestMinimap(e,n)||me._hitTestScrollbarSlider(e,n)||me._hitTestViewZone(e,n)||me._hitTestMargin(e,n)||me._hitTestViewCursor(e,n)||me._hitTestTextArea(e,n)||me._hitTestViewLines(e,n,i)||me._hitTestScrollbar(e,n)||t.fulfill(0))}static _hitTestContentWidget(e,t){return he.isChildOfContentWidgets(t.targetPath)||he.isChildOfOverflowingContentWidgets(t.targetPath)?(e=e.findAttribute(t.target,"widgetId"))?t.fulfill(9,null,null,e):t.fulfill(0):null}static _hitTestOverlayWidget(e,t){return he.isChildOfOverlayWidgets(t.targetPath)?(e=e.findAttribute(t.target,"widgetId"))?t.fulfill(12,null,null,e):t.fulfill(0):null}static _hitTestViewCursor(e,t){if(t.target)for(const s of e.lastRenderData.lastViewCursorsRenderData)if(t.target===s.domNode)return t.fulfill(6,s.position,null,{mightBeForeignElement:!1});if(t.isInContentArea){var i=e.lastRenderData.lastViewCursorsRenderData,n=t.mouseContentHorizontalOffset,o=t.mouseVerticalOffset;for(const s of i)if(!(n<s.contentLeft||n>s.contentLeft+s.width)){var r=e.getVerticalOffsetForLineNumber(s.position.lineNumber);if(r<=o&&o<=r+s.height)return t.fulfill(6,s.position,null,{mightBeForeignElement:!1})}}return null}static _hitTestViewZone(e,t){var i;e=e.getZoneAtCoord(t.mouseVerticalOffset);return e?(i=t.isInContentArea?8:5,t.fulfill(i,e.position,null,e)):null}static _hitTestTextArea(e,t){return he.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfill(6,e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1}):t.fulfill(1,e.lastRenderData.lastTextareaPosition):null}static _hitTestMargin(e,t){var i,n,o,r;return t.isInMarginArea?(n=(i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset)).range.getStartPosition(),o=Math.abs(t.pos.x-t.editorPos.x),r={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o},(o-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,n,i.range,r):(o-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,n,i.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,n,i.range,r))):null}static _hitTestViewLines(e,t,i){if(!he.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfill(7,new ie.a(1,1),null,ge);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset))return n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n),t.fulfill(7,new ie.a(n,o),null,ge);if(i){if(he.isStrictChildOfViewLines(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.model.getLineLength(n))return o=e.getLineWidth(n),i=pe(t.mouseContentHorizontalOffset-o),t.fulfill(7,new ie.a(n,1),null,i);var o=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>=o)return i=pe(t.mouseContentHorizontalOffset-o),o=new ie.a(n,e.model.getLineMaxColumn(n)),t.fulfill(7,o,null,i)}return t.fulfill(0)}return n=me._doHitTest(e,t),1===n.type?me.createMouseTargetFromHitTestPosition(e,t,n.spanNode,n.position,n.injectedText):this._createMouseTarget(e,t.withTarget(n.hitTarget),!0)}static _hitTestMinimap(e,t){var i;return he.isChildOfMinimap(t.targetPath)?(i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),e=e.model.getLineMaxColumn(i),t.fulfill(11,new ie.a(i,e))):null}static _hitTestScrollbarSlider(e,t){if(he.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i))return i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),e=e.model.getLineMaxColumn(i),t.fulfill(11,new ie.a(i,e))}return null}static _hitTestScrollbar(e,t){var i;return he.isChildOfScrollableElement(t.targetPath)?(i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),e=e.model.getLineMaxColumn(i),t.fulfill(11,new ie.a(i,e))):null}getMouseColumn(e,t){var i=this._context.configuration.options,n=i.get(130);t=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-n.contentLeft;return me._getMouseColumn(t,i.get(42).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){return e<0?1:Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,o){var r=n.lineNumber,s=n.column,a=e.getLineWidth(r);if(t.mouseContentHorizontalOffset>a)return a=pe(t.mouseContentHorizontalOffset-a),t.fulfill(7,n,null,a);const l=e.visibleRangeForPosition(r,s);if(!l)return t.fulfill(0,n);if(a=l.left,t.mouseContentHorizontalOffset===a)return t.fulfill(6,n,null,{mightBeForeignElement:!!o});var d=[];if(d.push({offset:l.left,column:s}),1<s){const t=e.visibleRangeForPosition(r,s-1);t&&d.push({offset:t.left,column:s-1})}if(s<e.model.getLineMaxColumn(r)){const t=e.visibleRangeForPosition(r,s+1);t&&d.push({offset:t.left,column:s+1})}d.sort((e,t)=>e.offset-t.offset);a=t.pos.toClientCoordinates(),e=i.getBoundingClientRect();var h=e.left<=a.clientX&&a.clientX<=e.right;for(let g=1;g<d.length;g++){var c=d[g-1],u=d[g];if(c.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=u.offset)return c=new ne.a(r,c.column,r,u.column),t.fulfill(6,n,c,{mightBeForeignElement:!h||!!o})}return t.fulfill(6,n,null,{mightBeForeignElement:!h||!!o})}static _doHitTestWithCaretRangeFromPoint(e,t){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);i=e.getVerticalOffsetForLineNumber(i)+Math.floor(e.lineHeight/2);let n=t.pos.y+(i-t.mouseVerticalOffset);return(n=n<=t.editorPos.y?t.editorPos.y+1:n)>=t.editorPos.y+e.layoutInfo.height&&(n=t.editorPos.y+e.layoutInfo.height-1),i=new y(t.pos.x,n),i=this._actualDoHitTestWithCaretRangeFromPoint(e,i.toClientCoordinates()),1===i.type?i:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){var i,n=l.F(e.viewDomNode);let o;return(o=n?void 0===n.caretRangeFromPoint?function(e,t,i){var n=document.createRange();let o=e.elementFromPoint(t,i);if(null!==o){for(;o&&o.firstChild&&o.firstChild.nodeType!==o.firstChild.TEXT_NODE&&o.lastChild&&o.lastChild.firstChild;)o=o.lastChild;e=o.getBoundingClientRect();var r,s=window.getComputedStyle(o,null).getPropertyValue("font"),a=o.innerText;let i=e.left,d=0;if(t>e.left+e.width)d=a.length;else{var l=fe.getInstance();for(let e=0;e<a.length+1;e++){if(r=l.getCharWidth(a.charAt(e),s)/2,i+=r,t<i){d=e;break}i+=r}}n.setStart(o.firstChild,d),n.setEnd(o.firstChild,d)}return n}(n,t.clientX,t.clientY):n.caretRangeFromPoint(t.clientX,t.clientY):document.caretRangeFromPoint(t.clientX,t.clientY))&&o.startContainer?(n=o.startContainer).nodeType===n.TEXT_NODE?((i=(i=(t=n.parentNode)?t.parentNode:null)?i.parentNode:null)&&i.nodeType===i.ELEMENT_NODE?i.className:null)===G.CLASS_NAME?te.createFromDOMInfo(e,t,o.startOffset):new se(n.parentNode):n.nodeType===n.ELEMENT_NODE?((t=(i=n.parentNode)?i.parentNode:null)&&t.nodeType===t.ELEMENT_NODE?t.className:null)===G.CLASS_NAME?te.createFromDOMInfo(e,n,n.textContent.length):new se(n):new se:new se}static _doHitTestWithCaretPositionFromPoint(e,t){if(t=document.caretPositionFromPoint(t.clientX,t.clientY),t.offsetNode.nodeType===t.offsetNode.TEXT_NODE)return((i=(i=(i=t.offsetNode.parentNode)?i.parentNode:null)?i.parentNode:null)&&i.nodeType===i.ELEMENT_NODE?i.className:null)===G.CLASS_NAME?te.createFromDOMInfo(e,t.offsetNode.parentNode,t.offset):new se(t.offsetNode.parentNode);if(t.offsetNode.nodeType===t.offsetNode.ELEMENT_NODE){var i=t.offsetNode.parentNode,n=i&&i.nodeType===i.ELEMENT_NODE?i.className:null;i=i?i.parentNode:null,i=i&&i.nodeType===i.ELEMENT_NODE?i.className:null;if(n===G.CLASS_NAME){if(n=t.offsetNode.childNodes[Math.min(t.offset,t.offsetNode.childNodes.length-1)],n)return te.createFromDOMInfo(e,n,0)}else if(i===G.CLASS_NAME)return te.createFromDOMInfo(e,t.offsetNode,0)}return new se(t.offsetNode)}static _snapToSoftTabBoundary(e,t){var i=t.getLineContent(e.lineNumber);t=t.getTextModelOptions()["tabSize"],i=re.a.atomicPosition(i,e.column-1,t,2);return-1!==i?new ie.a(e.lineNumber,i+1):e}static _doHitTest(e,t){let i=new se;var n;return"function"==typeof document.caretRangeFromPoint?i=this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates())),1===i.type&&(t=e.model.getInjectedTextAt(i.position),n=e.model.normalizePosition(i.position,2),!t&&n.equals(i.position)||(i=new ae(n,i.spanNode,t))),1===i.type&&e.stickyTabStops?new ae(this._snapToSoftTabBoundary(i.position,e.model),i.spanNode,i.injectedText):i}}class fe{constructor(){this._cache={},this._canvas=document.createElement("canvas")}static getInstance(){return fe._INSTANCE||(fe._INSTANCE=new fe),fe._INSTANCE}getCharWidth(e,t){var i,n=e+t;return this._cache[n]||((i=this._canvas.getContext("2d")).font=t,t=i.measureText(e).width,this._cache[n]=t)}}fe._INSTANCE=null;var _e=i("62bd");function be(e){return function(t,i){let n=!1;return(n=e?e.mouseTargetIsWidget(i):n)||i.preventDefault(),i}}class ve extends E{constructor(e,t,i){super(),this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new me(this._context,i),this._mouseDownOperation=this._register(new Ce(this._context,this.viewController,this.viewHelper,(e,t)=>this._createMouseTarget(e,t),e=>this._getMouseColumn(e))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(130).height,e=new D(this.viewHelper.viewDomNode),this._register(e.onContextMenu(this.viewHelper.viewDomNode,e=>this._onContextMenu(e,!0))),this._register(e.onMouseMoveThrottled(this.viewHelper.viewDomNode,e=>this._onMouseMove(e),be(this.mouseTargetFactory),ve.MOUSE_MOVE_MINIMUM_TIME)),this._register(e.onMouseUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(e.onMouseLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(e.onMouseDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e))),this._register(l.i(this.viewHelper.viewDomNode,l.d.MOUSE_WHEEL,e=>{var t,i;this.viewController.emitMouseWheel(e),!this._context.configuration.options.get(67)||(t=new v.b(e),_.f?!e.metaKey&&!e.ctrlKey||e.shiftKey||e.altKey:!e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)||(e=_e.a.getZoomLevel(),i=0<t.deltaY?1:-1,_e.a.setZoomLevel(e+i),t.preventDefault(),t.stopPropagation())},{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){return e.hasChanged(130)&&(e=this._context.configuration.options.get(130).height,this._height!==e)&&(this._height=e,this._mouseDownOperation.onHeightChanged()),!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){return e=new S(e,t).toPageCoordinates(),t=x(this.viewHelper.viewDomNode),e.y<t.y||e.y>t.y+t.height||e.x<t.x||e.x>t.x+t.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),t,e,null)}_createMouseTarget(e,t){let i=e.target;var n;return this.viewHelper.viewDomNode.contains(i)||(n=l.F(this.viewHelper.viewDomNode))&&(i=n.elementsFromPoint(e.posx,e.posy).find(e=>this.viewHelper.viewDomNode.contains(e))),this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){this._mouseDownOperation.isActive()||e.timestamp<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e){var t=this._createMouseTarget(e,!0),i=6===t.type||7===t.type,n=2===t.type||3===t.type||4===t.type,o=3===t.type,r=this._context.configuration.options.get(98),s=8===t.type||5===t.type,a=9===t.type;let l=e.leftButton||e.middleButton;var d=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};(l=!(_.f&&e.leftButton&&e.ctrlKey)&&l)&&(i||o&&r)?(d(),this._mouseDownOperation.start(t.type,e)):n?e.preventDefault():s?(i=t.detail,this.viewHelper.shouldSuppressMouseDownOnViewZone(i.viewZoneId)&&(d(),this._mouseDownOperation.start(t.type,e),e.preventDefault())):a&&this.viewHelper.shouldSuppressMouseDownOnWidget(t.detail)&&(d(),e.preventDefault()),this.viewController.emitMouseDown({event:e,target:t})}}ve.MOUSE_MOVE_MINIMUM_TIME=100;class Ce extends c.a{constructor(e,t,i,n,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._createMouseTarget=n,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new O(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new C.g),this._mouseState=new we,this._currentSelection=new m.a(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);var t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);var i;e=this._findMousePosition(t,!0);e&&e.position&&(this._mouseState.trySetCount(t.detail,e.position),t.detail=this._mouseState.count,!(i=this._context.configuration.options).get(80)&&i.get(30)&&!i.get(17)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===e.type&&e.position&&this._currentSelection.containsPosition(e.position)?(this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,be(null),e=>this._onMouseDownThenMove(e),e=>{var t=this._findMousePosition(this._lastMouseEvent,!0);e&&e instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()})):(this._mouseState.isDragAndDrop=!1,this._dispatchMouse(e,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,be(null),e=>this._onMouseDownThenMove(e),()=>this._stop()))))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{var e;this._lastMouseEvent&&(e=this._findMousePosition(this._lastMouseEvent,!1))&&!this._mouseState.isDragAndDrop&&this._dispatchMouse(e,!0)},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){var t=e.editorPos,i=this._context.model,n=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posy<t.y){var r=Math.max(n.getCurrentScrollTop()-(t.y-e.posy),0),s=ce.getZoneAtCoord(this._context,r);return s&&(s=this._helpPositionJumpOverViewZone(s),s)?new de(null,13,o,s):(s=n.getLineNumberAtVerticalOffset(r),new de(null,13,o,new ie.a(s,1)))}return e.posy>t.y+t.height?(r=n.getCurrentScrollTop()+(e.posy-t.y),s=ce.getZoneAtCoord(this._context,r),s&&(s=this._helpPositionJumpOverViewZone(s),s)?new de(null,13,o,s):(s=n.getLineNumberAtVerticalOffset(r),new de(null,13,o,new ie.a(s,i.getLineMaxColumn(s))))):(r=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+(e.posy-t.y)),e.posx<t.x?new de(null,13,o,new ie.a(r,1)):e.posx>t.x+t.width?new de(null,13,o,new ie.a(r,i.getLineMaxColumn(r))):null)}_findMousePosition(e,t){var i=this._getPositionOutsideEditor(e);return i||(i=this._createMouseTarget(e,t),i.position?8!==i.type&&5!==i.type||(e=this._helpPositionJumpOverViewZone(i.detail),!e)?i:new de(i.element,i.type,i.mouseColumn,e,null,i.detail):null)}_helpPositionJumpOverViewZone(e){var t=new ie.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore;e=e.positionAfter;return i&&e?i.isBefore(t)?i:e:null}_dispatchMouse(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})}}class we{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){var i=(new Date).getTime();i-this._lastSetMouseDownCountTime>we.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}we.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var ye=i("0a31"),Se=i("e53c");class Le extends ve{constructor(e,t,i){super(e,t,i),this._register(b.b.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.i(this.viewHelper.linesContentDomNode,b.a.Tap,e=>this.onTap(e))),this._register(l.i(this.viewHelper.linesContentDomNode,b.a.Change,e=>this.onChange(e))),this._register(l.i(this.viewHelper.linesContentDomNode,b.a.Contextmenu,e=>this._onContextMenu(new k(e,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(l.i(this.viewHelper.linesContentDomNode,"pointerdown",e=>{e=e.pointerType,this._lastPointerType="mouse"===e?"mouse":"touch"===e?"touch":"pen"})),e=new N(this.viewHelper.viewDomNode),this._register(e.onPointerMoveThrottled(this.viewHelper.viewDomNode,e=>this._onMouseMove(e),be(this.mouseTargetFactory),ve.MOUSE_MOVE_MINIMUM_TIME)),this._register(e.onPointerUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(e.onPointerLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(e.onPointerDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e)))}onTap(e){var t;e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)&&(e.preventDefault(),this.viewHelper.focusTextArea(),(t=this._createMouseTarget(new k(e,this.viewHelper.viewDomNode),!1)).position)&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}onChange(e){"touch"===this._lastPointerType&&this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e)}}class xe extends ve{constructor(e,t,i){super(e,t,i),this._register(b.b.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.i(this.viewHelper.linesContentDomNode,b.a.Tap,e=>this.onTap(e))),this._register(l.i(this.viewHelper.linesContentDomNode,b.a.Change,e=>this.onChange(e))),this._register(l.i(this.viewHelper.linesContentDomNode,b.a.Contextmenu,e=>this._onContextMenu(new k(e,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new k(e,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(Se.d.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position)}}onChange(e){this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}}class ke extends c.a{constructor(e,t,i){super(),_.c&&ye.a.pointerEvents?this.handler=this._register(new Le(e,t,i)):window.TouchEvent?this.handler=this._register(new xe(e,t,i)):this.handler=this._register(new ve(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}i("56f3");var De=i("3742"),Ne=i("0a89");i("2ab7");class Oe extends E{}var Ee=i("918c"),Ie=i("b7d0");class Me extends Oe{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new ie.a(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){var e=this._context.configuration.options,t=(this._lineHeight=e.get(58),e.get(59));this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(84),t=e.get(130);this._lineNumbersLeft=t.lineNumbersLeft,this._lineNumbersWidth=t.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){e=e.selections[0].getPosition(),this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(e);let t=!1;return this._activeLineNumber!==e.lineNumber&&(this._activeLineNumber=e.lineNumber,t=!0),2===this._renderLineNumbers||3===this._renderLineNumbers||t}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getLineRenderLineNumber(e){var t;e=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ie.a(e,1));return 1!==e.column?"":(e=e.lineNumber,this._renderCustomLineNumbers?this._renderCustomLineNumbers(e):2===this._renderLineNumbers?0===(t=Math.abs(this._lastCursorModelPosition.lineNumber-e))?'<span class="relative-current-line-number">'+e+"</span>":String(t):3!==this._renderLineNumbers||this._lastCursorModelPosition.lineNumber===e||e%10==0?String(e):"")}prepareRender(e){if(0===this._renderLineNumbers)this._renderResult=null;else{var t=_.d?this._lineHeight%2==0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o='<div class="'+Me.CLASS_NAME+t+'" style="left:'+this._lineNumbersLeft+"px;width:"+this._lineNumbersWidth+'px;">',r=this._context.model.getLineCount(),s=[];for(let e=i;e<=n;e++){var a,l=e-i;(this._renderFinalNewline||e!==r||0!==this._context.model.getLineLength(e))&&(a=this._getLineRenderLineNumber(e))?e===this._activeLineNumber?s[l]='<div class="active-line-number '+Me.CLASS_NAME+t+'" style="left:'+this._lineNumbersLeft+"px;width:"+this._lineNumbersWidth+'px;">'+a+"</div>":s[l]=o+a+"</div>":s[l]=""}this._renderResult=s}}render(e,t){return!this._renderResult||(t-=e)<0||t>=this._renderResult.length?"":this._renderResult[t]}}Me.CLASS_NAME="line-numbers",Object(Ie.f)((e,t)=>{var i=e.getColor(Ee.r);i&&t.addRule(`.monaco-editor .line-numbers { color: ${i}; }`),i=e.getColor(Ee.b);i&&t.addRule(`.monaco-editor .line-numbers.active-line-number { color: ${i}; }`)});class Te extends I{constructor(e){super(e);e=this._context.configuration.options;var t=e.get(130);this._canUseLayerHinting=!e.get(27),this._contentLeft=t.contentLeft,this._glyphMarginLeft=t.glyphMarginLeft,this._glyphMarginWidth=t.glyphMarginWidth,this._domNode=Object(f.b)(document.createElement("div")),this._domNode.setClassName(Te.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Object(f.b)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Te.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){var t=this._context.configuration.options,i=t.get(130);return this._canUseLayerHinting=!t.get(27),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t),t=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(t),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(t)}}Te.CLASS_NAME="glyph-margin",Te.OUTER_CLASS_NAME="margin";var Ae=i("e6ff"),Re=i("e75b");class Pe{constructor(e,t,i){this._visibleTextAreaBrand=void 0,this.top=e,this.left=t,this.width=i}setWidth(e){return new Pe(this.top,this.left,e)}}const Fe=p.g;class Be extends I{constructor(e,t,i){super(e),this._primaryCursorPosition=new ie.a(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._viewHelper=i,this._scrollLeft=0,this._scrollTop=0,e=this._context.configuration.options,t=e.get(130),this._setAccessibilityOptions(e),this._contentLeft=t.contentLeft,this._contentWidth=t.contentWidth,this._contentHeight=t.height,this._fontInfo=e.get(42),this._lineHeight=e.get(58),this._emptySelectionClipboard=e.get(31),this._copyWithSyntaxHighlighting=e.get(20),this._visibleTextArea=null,this._selections=[new m.a(1,1,1,1)],this._modelSelections=[new m.a(1,1,1,1)],this._lastRenderPosition=null,this.textArea=Object(f.b)(document.createElement("textarea")),M.write(this.textArea,6),this.textArea.setClassName("inputarea "+Re.a),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(e)),this.textArea.setAttribute("tabindex",String(e.get(112))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",a.a("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),e.get(29)&&e.get(80)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=Object(f.b)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const n={getLineCount:()=>this._context.model.getLineCount(),getLineMaxColumn:e=>this._context.model.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.model.getValueInRange(e,t)};this._textAreaInput=this._register(new Se.c({getDataToCopy:e=>{var t=this._context.model.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,_.i),i=this._context.model.getEOL(),n=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),o=Array.isArray(t)?t:null;i=Array.isArray(t)?t.join(i):t;let r=void 0,s=null;return e&&(Se.a.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&i.length<65536)&&(t=this._context.model.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard))&&(r=t.html,s=t.mode),{isFromEmptySelection:n,multicursorText:o,text:i,html:r,mode:s}},getScreenReaderContent:e=>{if(1===this._accessibilitySupport){if(_.f){var t=this._selections[0];if(t.isEmpty()){t=t.getStartPosition();let e=this._getWordBeforePosition(t);if(0<(e=0===e.length?this._getCharacterBeforePosition(t):e).length)return new Ne.b(e,e.length,e.length,t,t)}}return Ne.b.EMPTY}if(p.e){if(t=this._selections[0],t.isEmpty()){t=t.getStartPosition();var[i,o]=this._getAndroidWordAtPosition(t);if(0<i.length)return new Ne.b(i,o,o,t,t)}return Ne.b.EMPTY}return Ne.a.fromEditorSelection(e,n,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.model.deduceModelPositionRelativeToViewPosition(e,t,i)},this.textArea)),this._register(this._textAreaInput.onKeyDown(e=>{this._viewController.emitKeyDown(e)})),this._register(this._textAreaInput.onKeyUp(e=>{this._viewController.emitKeyUp(e)})),this._register(this._textAreaInput.onPaste(e=>{let t=!1,i=null,n=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i=void 0!==e.metadata.multicursorText?e.metadata.multicursorText:null,n=e.metadata.mode),this._viewController.paste(e.text,t,i,n)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(Ne.c,this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(Ne.c,this._viewController.type(e.text))})),this._register(this._textAreaInput.onSelectionChangeRequest(e=>{this._viewController.setSelection(e)})),this._register(this._textAreaInput.onCompositionStart(e=>{var t=this._selections[0].startLineNumber;e=this._selections[0].startColumn+e.revealDeltaColumns,this._context.model.revealRange("keyboard",!0,new ne.a(t,e,t,e),0,1),e=this._viewHelper.visibleRangeForPositionRelativeToEditor(t,e);e&&(this._visibleTextArea=new Pe(this._context.viewLayout.getVerticalOffsetForLineNumber(t),e.left,Fe?0:1),this._render()),this.textArea.setClassName(`inputarea ${Re.a} ime-input`),this._viewController.compositionStart(),this._context.model.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(e=>{var t,i;this._visibleTextArea&&(this._visibleTextArea=this._visibleTextArea.setWidth((e=e.data,t=this._fontInfo,(i=(i=document.createElement("canvas")).getContext("2d")).font=function(e){return`normal normal ${e.fontWeight} ${e.fontSize}px / ${e.lineHeight}px `+e.fontFamily}(t),t=i.measureText(e),p.g?t.width+2:t.width)),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName("inputarea "+Re.a),this._viewController.compositionEnd(),this._context.model.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.model.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.model.setHasFocus(!1)}))}dispose(){super.dispose()}_getAndroidWordAtPosition(e){var t,i=this._context.model.getLineContent(e.lineNumber),n=Object(Ae.a)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?');let o=!0,r=e.column,s=!0,a=e.column,l=0;for(;l<50&&(o||s);)(o=!(o&&r<=1)&&o)&&(t=i.charCodeAt(r-2),0!==n.get(t)?o=!1:r--),(s=!(s&&a>i.length)&&s)&&(t=i.charCodeAt(a-1),0!==n.get(t)?s=!1:a++),l++;return[i.substring(r-1,a-1),e.column-r]}_getWordBeforePosition(e){var t=this._context.model.getLineContent(e.lineNumber),i=Object(Ae.a)(this._context.configuration.options.get(116));let n=e.column,o=0;for(;1<n;){var r=t.charCodeAt(n-2);if(0!==i.get(r)||50<o)return t.substring(n-1,e.column-1);o++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){return 1<e.column&&(e=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2),!De.E(e.charCodeAt(0)))?e:""}_getAriaLabel(e){return 1===e.get(2)?a.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",_.d?"Shift+Alt+F1":"Alt+F1"):e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2),e=e.get(3),2===this._accessibilitySupport&&e===z.g.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=e}onConfigurationChanged(e){var t=this._context.configuration.options,i=t.get(130);return this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(42),this._lineHeight=t.get(58),this._emptySelectionClipboard=t.get(31),this._copyWithSyntaxHighlighting=t.get(20),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(112))),(e.hasChanged(29)||e.hasChanged(80))&&(t.get(29)&&t.get(80)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}prepareRender(e){this._primaryCursorPosition=new ie.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)}render(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){var e,t;this._visibleTextArea?this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight):!this._primaryCursorVisibleRange||(e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft)<this._contentLeft||e>this._contentLeft+this._contentWidth||(t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop)<0||t>this._contentHeight?this._renderAtTopLeft():_.f?this._renderInsideEditor(this._primaryCursorPosition,t,e,Fe?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,t,e,Fe?0:1,Fe?0:1)}_renderInsideEditor(e,t,i,n,o){this._lastRenderPosition=e;e=this.textArea;var r=this.textAreaCover;g.a.applyFontInfo(e,this._fontInfo),e.setTop(t),e.setLeft(i),e.setWidth(n),e.setHeight(o),r.setTop(0),r.setLeft(0),r.setWidth(0),r.setHeight(0)}_renderAtTopLeft(){this._lastRenderPosition=null;var e=this.textArea,t=this.textAreaCover;g.a.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),Fe?(e.setWidth(0),e.setHeight(0),t.setWidth(0),t.setHeight(0)):(e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1),(e=this._context.configuration.options).get(48)?t.setClassName("monaco-editor-background textAreaCover "+Te.OUTER_CLASS_NAME):0!==e.get(59).renderType?t.setClassName("monaco-editor-background textAreaCover "+Me.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover"))}}var je=i("d585");class We{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){je.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new ie.a(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(69)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(69)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){var t=this.configuration.options,i=_.d&&t.get(96);t=t.get(17);e.middleButton&&!i?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):4<=e.mouseDownCount?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||t?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){je.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){je.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,i){e=this._validateViewColumn(e),je.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),je.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){je.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){je.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){je.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){je.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){je.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){je.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){je.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){je.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){je.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class Ve{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown&&this.onKeyDown(e)}emitKeyUp(e){this.onKeyUp&&this.onKeyUp(e)}emitContextMenu(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled&&this.onMouseDropCanceled()}emitMouseWheel(e){this.onMouseWheel&&this.onMouseWheel(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return Ve.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){return new He(e.element,e.type,e.mouseColumn,e.position?t.convertViewPositionToModelPosition(e.position):null,e.range?t.convertViewRangeToModelRange(e.range):null,e.detail)}}class He{constructor(e,t,i,n,o,r){this.element=e,this.type=t,this.mouseColumn=i,this.position=n,this.range=o,this.detail=r}toString(){return de.toString(this)}}var ze=i("7ab3");class Ue{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){if(e-=this._rendLineNumberStart,e<0||e>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[e]}onLinesDeleted(e,t){if(0===this.getCount())return null;var i=this.getStartLineNumber(),n=this.getEndLineNumber();if(t<i)return this._rendLineNumberStart-=t-e+1,null;if(n<e)return null;let o=0,r=0;for(let a=i;a<=n;a++){var s=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===r?(o=s,r=1):r++)}if(e<i){let n=0;n=t<i?t-e+1:i-e,this._rendLineNumberStart-=n}return this._lines.splice(o,r)}onLinesChanged(e,t){if(0===this.getCount())return!1;var i=this.getStartLineNumber(),n=this.getEndLineNumber();let o=!1;for(let r=e;r<=t;r++)r>=i&&r<=n&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(e,t){if(0===this.getCount())return null;var i=t-e+1,n=(t=this.getStartLineNumber(),this.getEndLineNumber());if(e<=t)return this._rendLineNumberStart+=i,null;if(n<e)return null;if(n<i+e)return this._lines.splice(e-this._rendLineNumberStart,n-e+1);var o=[];for(let r=0;r<i;r++)o[r]=this._createLine();return t=e-this._rendLineNumberStart,n=this._lines.slice(0,t),e=this._lines.slice(t,this._lines.length-i),t=this._lines.slice(this._lines.length-i,this._lines.length),this._lines=n.concat(o).concat(e),t}onTokensChanged(e){if(0===this.getCount())return!1;var t=this.getStartLineNumber(),i=this.getEndLineNumber();let n=!1;for(let l=0,d=e.length;l<d;l++){var o=e[l];if(!(o.toLineNumber<t||o.fromLineNumber>i)){var r=Math.max(t,o.fromLineNumber),s=Math.min(i,o.toLineNumber);for(let e=r;e<=s;e++){var a=e-this._rendLineNumberStart;this._lines[a].onTokensChanged(),n=!0}}}return n}}class Ke{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Ue(()=>this._host.createVisibleLine())}_createDomNode(){var e=Object(f.b)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(130)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let n=0,o=t.length;n<o;n++){var i=t[n].getDomNode();i&&this.domNode.domNode.removeChild(i)}return!0}onLinesInserted(e){var t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let n=0,o=t.length;n<o;n++){var i=t[n].getDomNode();i&&this.domNode.domNode.removeChild(i)}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){var t=this._linesCollection._get(),i=new qe(this.domNode.domNode,this._host,e);t={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},i=i.render(t,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(i.rendLineNumberStart,i.lines)}}class qe{constructor(e,t,i){this.domNode=e,this.host=t,this.viewportData=i}render(e,t,i,n){var o,r={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(r.rendLineNumberStart+r.linesLength-1<t||i<r.rendLineNumberStart){r.rendLineNumberStart=t,r.linesLength=i-t+1,r.lines=[];for(let e=t;e<=i;e++)r.lines[e-t]=this.host.createVisibleLine();this._finishRendering(r,!0,n)}else this._renderUntouchedLines(r,Math.max(t-r.rendLineNumberStart,0),Math.min(i-r.rendLineNumberStart,r.linesLength-1),n,t),t<r.rendLineNumberStart?(e=t)<=(o=Math.min(i,r.rendLineNumberStart-1))&&(this._insertLinesBefore(r,e,o,n,t),r.linesLength+=o-e+1):r.rendLineNumberStart<t&&0<(o=Math.min(r.linesLength,t-r.rendLineNumberStart))&&(this._removeLinesBefore(r,o),r.linesLength-=o),r.rendLineNumberStart=t,r.rendLineNumberStart+r.linesLength-1<i?(e=r.rendLineNumberStart+r.linesLength)<=(o=i)&&(this._insertLinesAfter(r,e,o,n,t),r.linesLength+=o-e+1):i<r.rendLineNumberStart+r.linesLength-1&&(o=Math.max(0,i-r.rendLineNumberStart+1),0<(e=r.linesLength-1-o+1))&&(this._removeLinesAfter(r,e),r.linesLength-=e),this._finishRendering(r,!1,n);return r}_renderUntouchedLines(e,t,i,n,o){var r=e.rendLineNumberStart,s=e.lines;for(let l=t;l<=i;l++){var a=r+l;s[l].layoutLine(a,n[a-o])}}_insertLinesBefore(e,t,i,n,o){var r=[];let s=0;for(let a=t;a<=i;a++)r[s++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)}_removeLinesBefore(e,t){for(let n=0;n<t;n++){var i=e.lines[n].getDomNode();i&&this.domNode.removeChild(i)}e.lines.splice(0,t)}_insertLinesAfter(e,t,i,n,o){var r=[];let s=0;for(let a=t;a<=i;a++)r[s++]=this.host.createVisibleLine();e.lines=e.lines.concat(r)}_removeLinesAfter(e,t){var i=e.linesLength-t;for(let o=0;o<t;o++){var n=e.lines[i+o].getDomNode();n&&this.domNode.removeChild(n)}e.lines.splice(i,t)}_finishRenderingNewLines(e,t,i,n){qe._ttPolicy&&(i=qe._ttPolicy.createHTML(i));var o=this.domNode.lastChild;t||!o?this.domNode.innerHTML=i:o.insertAdjacentHTML("afterend",i);let r=this.domNode.lastChild;for(let a=e.linesLength-1;0<=a;a--){var s=e.lines[a];n[a]&&(s.setDomNode(r),r=r.previousSibling)}}_finishRenderingInvalidLines(e,t,i){var n=document.createElement("div");qe._ttPolicy&&(t=qe._ttPolicy.createHTML(t)),n.innerHTML=t;for(let a=0;a<e.linesLength;a++){var o,r,s=e.lines[a];i[a]&&(o=n.firstChild,(r=s.getDomNode()).parentNode.replaceChild(o,r),s.setDomNode(o))}}_finishRendering(e,t,i){var n=qe._sb,o=e.linesLength,r=e.lines,s=e.rendLineNumberStart,a=[];{n.reset();let h=!1;for(let e=0;e<o;e++){var l=r[e],d=(a[e]=!1,l.getDomNode());d||l.renderLine(e+s,i[e],this.viewportData,n)&&(a[e]=!0,h=!0)}h&&this._finishRenderingNewLines(e,t,n.build(),a)}{n.reset();let t=!1;var h=[];for(let e=0;e<o;e++){var c=r[e];h[e]=!1,a[e]||c.renderLine(e+s,i[e],this.viewportData,n)&&(h[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,n.build(),h)}}}qe._ttPolicy=null==(r=window.trustedTypes)?void 0:r.createPolicy("editorViewLayer",{createHTML:e=>e}),qe._sb=Object(ze.a)(1e5);class $e extends I{constructor(e){super(e),this._visibleLines=new Ke(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++)if(this._dynamicOverlays[e].shouldRender())return!0;return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++)this._dynamicOverlays[e].dispose();this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new Ge(this._context.configuration,this._dynamicOverlays)}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);var t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++)this._visibleLines.getVisibleLine(n).onConfigurationChanged(e);return!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){var t=this._dynamicOverlays.filter(e=>e.shouldRender());for(let n=0,o=t.length;n<o;n++){var i=t[n];i.prepareRender(e),i.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class Ge{constructor(e,t){this._configuration=e,this._lineHeight=this._configuration.options.get(58),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=Object(f.b)(e)}onContentChanged(){}onTokensChanged(){}onConfigurationChanged(e){this._lineHeight=this._configuration.options.get(58)}renderLine(e,t,i,n){let o="";for(let s=0,a=this._dynamicOverlays.length;s<a;s++){var r=this._dynamicOverlays[s];o+=r.render(i.startLineNumber,e)}return this._renderedContent!==o&&(this._renderedContent=o,n.appendASCIIString('<div style="position:absolute;top:'),n.appendASCIIString(String(t)),n.appendASCIIString("px;width:100%;height:"),n.appendASCIIString(String(this._lineHeight)),n.appendASCIIString('px;">'),n.appendASCIIString(o),n.appendASCIIString("</div>"),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class Ze extends $e{constructor(e){super(e),e=this._context.configuration.options.get(130),this._contentWidth=e.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){var t=this._context.configuration.options.get(130);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class Ye extends $e{constructor(e){super(e);e=this._context.configuration.options;var t=e.get(130);this._contentLeft=t.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),g.a.applyFontInfo(this.domNode,e.get(42))}onConfigurationChanged(e){var t=this._context.configuration.options;g.a.applyFontInfo(this.domNode,t.get(42)),t=t.get(130);return this._contentLeft=t.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),e=Math.min(e.scrollHeight,1e6),this.domNode.setHeight(e),this.domNode.setWidth(this._contentLeft)}}class Xe{constructor(e,t){this._coordinateBrand=void 0,this.top=e,this.left=t}}class Qe extends I{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=Object(f.b)(document.createElement("div")),M.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Object(f.b)(document.createElement("div")),M.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){for(const t of Object.keys(this._widgets))this._widgets[t].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){for(const t of Object.keys(this._widgets))this._widgets[t].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){e=new Je(this._context,this._viewDomNode,e),((this._widgets[e.id]=e).allowEditorOverflow?this.overflowingContentWidgetsDomNode:this.domNode).appendChild(e.domNode),this.setShouldRender()}setWidgetPosition(e,t,i){this._widgets[e.getId()].setPosition(t,i),this.setShouldRender()}removeWidget(e){var t;e=e.getId();this._widgets.hasOwnProperty(e)&&(t=this._widgets[e],delete this._widgets[e],(e=t.domNode.domNode).parentNode.removeChild(e),e.removeAttribute("monaco-visible-content-widget"),this.setShouldRender())}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){for(const t of Object.keys(this._widgets))this._widgets[t].onBeforeRender(e)}prepareRender(e){for(const t of Object.keys(this._widgets))this._widgets[t].prepareRender(e)}render(e){for(const t of Object.keys(this._widgets))this._widgets[t].render(e)}}class Je{constructor(e,t,i){this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=Object(f.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1,e=this._context.configuration.options,t=e.get(130),this._fixedOverflowWidgets=e.get(35),this._contentWidth=t.contentWidth,this._contentLeft=t.contentLeft,this._lineHeight=e.get(58),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){var t=this._context.configuration.options;this._lineHeight=t.get(58),e.hasChanged(130)&&(e=t.get(130),this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth())}onLineMappingChanged(e){this._setPosition(this._range)}_setPosition(e){this._range=e,this._viewRange=null,this._range&&(e=this._context.model.validateModelRange(this._range),this._context.model.coordinatesConverter.modelPositionIsVisible(e.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(e.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(e))}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth}setPosition(e,t){this._setPosition(e),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1}_layoutBoxInViewport(e,t,i,n,o){var r=e.top,s=t.top+this._lineHeight,a=o.viewportHeight-s;let l=e.left,d=t.left;return l+i>o.scrollLeft+o.viewportWidth&&(l=o.scrollLeft+o.viewportWidth-i),d+i>o.scrollLeft+o.viewportWidth&&(d=o.scrollLeft+o.viewportWidth-i),l<o.scrollLeft&&(l=o.scrollLeft),d<o.scrollLeft&&(d=o.scrollLeft),{fitsAbove:n<=r,aboveTop:r-n,aboveLeft:l,fitsBelow:n<=a,belowTop:s,belowLeft:d}}_layoutHorizontalSegmentInPage(e,t,i,n){var o=Math.max(0,t.left-n);e=Math.min(t.left+t.width+n,e.width);let r=t.left+i-l.f.scrollX;return r+n>e&&(t=r-(e-n),r-=t,i-=t),r<o&&(e=r-o,r-=e,i-=e),[i,r]}_layoutBoxInPage(e,t,i,n,o){var r=e.top-n,s=t.top+this._lineHeight,a=l.D(this._viewDomNode.domNode),d=a.top+r-l.f.scrollY,h=a.top+s-l.f.scrollY,c=l.z(document.body),[e,u]=this._layoutHorizontalSegmentInPage(c,a,e.left-o.scrollLeft+this._contentLeft,i),[a,t]=this._layoutHorizontalSegmentInPage(c,a,t.left-o.scrollLeft+this._contentLeft,i);o=22<=d,i=h+n<=c.height-22;return this._fixedOverflowWidgets?{fitsAbove:o,aboveTop:Math.max(d,22),aboveLeft:u,fitsBelow:i,belowTop:h,belowLeft:t}:{fitsAbove:o,aboveTop:r,aboveLeft:e,fitsBelow:i,belowTop:s,belowLeft:a}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new Xe(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];var t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];let i=t[0],n=t[0];for(const s of t)s.lineNumber<i.lineNumber&&(i=s),s.lineNumber>n.lineNumber&&(n=s);let o=1073741824;for(const s of i.ranges)s.left<o&&(o=s.left);let r=1073741824;for(const s of n.ranges)s.left<r&&(r=s.left);return t=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.scrollTop,t=new Xe(t,o),e=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.scrollTop,[t,new Xe(e,r)]}_prepareRenderWidget(e){var t,[i,n]=this._getTopAndBottomLeft(e);if(i&&n){if(-1===this._cachedDomNodeClientWidth||-1===this._cachedDomNodeClientHeight){let e=null;(e="function"==typeof this._actual.beforeRender?et(this._actual.beforeRender,this._actual):e)?(this._cachedDomNodeClientWidth=e.width,this._cachedDomNodeClientHeight=e.height):(t=this.domNode.domNode,this._cachedDomNodeClientWidth=t.clientWidth,this._cachedDomNodeClientHeight=t.clientHeight)}let o;if(o=this.allowEditorOverflow?this._layoutBoxInPage(i,n,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(i,n,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e),this._preference)for(let e=1;e<=2;e++)for(const t of this._preference)if(1===t){if(!o)return null;if(2===e||o.fitsAbove)return{coordinate:new Xe(o.aboveTop,o.aboveLeft),position:1}}else{if(2!==t)return this.allowEditorOverflow?{coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(i),position:0}:{coordinate:i,position:0};if(!o)return null;if(2===e||o.fitsBelow)return{coordinate:new Xe(o.belowTop,o.belowLeft),position:2}}}return null}onBeforeRender(e){this._viewRange&&this._preference&&(this._viewRange.endLineNumber<e.startLineNumber||this._viewRange.startLineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){this._renderData?(this.allowEditorOverflow?this.domNode.setTop(this._renderData.coordinate.top):this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"==typeof this._actual.afterRender&&et(this._actual.afterRender,this._actual,this._renderData.position)):(this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),"function"==typeof this._actual.afterRender&&et(this._actual.afterRender,this._actual,null))}}function et(e,t,...i){try{return e.call(t,...i)}catch(e){return null}}i("930f");var tt=i("e8e3");let it=!0;class nt extends Oe{constructor(e){super(),this._context=e;e=this._context.configuration.options;var t=e.get(130);this._lineHeight=e.get(58),this._renderLineHighlight=e.get(85),this._renderLineHighlightOnlyWhenFocus=e.get(86),this._contentLeft=t.contentLeft,this._contentWidth=t.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new m.a(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;var t=it?this._selections.slice(0,1):this._selections,i=t.map(e=>e.positionLineNumber);i.sort((e,t)=>e-t),tt.h(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0),i=t.every(e=>e.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){var t=this._context.configuration.options,i=t.get(130);return this._lineHeight=t.get(58),this._renderLineHighlight=t.get(85),this._renderLineHighlightOnlyWhenFocus=t.get(86),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(this._shouldRenderThis()){var t=this._renderOne(e),i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._cursorLineNumbers.length;let a=0;var r=[];for(let e=i;e<=n;e++){for(var s=e-i;a<o&&this._cursorLineNumbers[a]<e;)a++;a<o&&this._cursorLineNumbers[a]===e?r[s]=t:r[s]=""}this._renderData=r}else this._renderData=null}render(e,t){return!this._renderData||(t-=e)>=this._renderData.length?"":this._renderData[t]}}class ot extends nt{_renderOne(e){return`<div class="${"current-line"+(this._shouldRenderOther()?" current-line-both":"")}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class rt extends nt{_renderOne(e){return`<div class="${"current-line"+(this._shouldRenderMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"")}" style="width:${this._contentLeft}px; height:${this._lineHeight}px;"></div>`}_shouldRenderMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderThis(){return!0}_shouldRenderOther(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}Object(Ie.f)((e,t)=>{it=!1;var i=e.getColor(Ee.p);i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),(!i||i.isTransparent()||e.defines(Ee.q))&&(i=e.getColor(Ee.q))&&(it=!0,t.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${i}; }`),"hc"===e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }"))}),i("56dc");class st extends Oe{constructor(e){super(),this._context=e,e=this._context.configuration.options,this._lineHeight=e.get(58),this._typicalHalfwidthCharacterWidth=e.get(42).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){var t=this._context.configuration.options;return this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=t.get(42).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){var t=e.getDecorationsInViewport();let i=[],n=0;for(let l=0,d=t.length;l<d;l++){var o=t[l];o.options.className&&(i[n++]=o)}i=i.sort((e,t)=>{var i,n;return e.options.zIndex<t.options.zIndex?-1:e.options.zIndex>t.options.zIndex?1:(i=e.options.className)<(n=t.options.className)?-1:n<i?1:ne.a.compareRangesUsingStarts(e.range,t.range)});var r=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,a=[];for(let l=r;l<=s;l++)a[l-r]="";this._renderWholeLineDecorations(e,i,a),this._renderNormalDecorations(e,i,a),this._renderResult=a}_renderWholeLineDecorations(e,t,i){var n=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber;for(let h=0,c=t.length;h<c;h++){var s=t[h];if(s.options.isWholeLine){var a='<div class="cdr '+s.options.className+'" style="left:0;width:100%;height:'+n+'px;"></div>',l=Math.max(s.range.startLineNumber,o),d=Math.min(s.range.endLineNumber,r);for(let e=l;e<=d;e++)i[e-o]+=a}}}_renderNormalDecorations(e,t,i){var n=String(this._lineHeight),o=e.visibleRange.startLineNumber;let r=null,s=!1,a=null;for(let c=0,u=t.length;c<u;c++){var l=t[c];if(!l.options.isWholeLine){var d=l.options.className,h=Boolean(l.options.showIfCollapsed);let t=l.range;h&&1===t.endColumn&&t.endLineNumber!==t.startLineNumber&&(t=new ne.a(t.startLineNumber,t.startColumn,t.endLineNumber-1,this._context.model.getLineMaxColumn(t.endLineNumber-1))),a=r===d&&s===h&&ne.a.areIntersectingOrTouching(a,t)?ne.a.plusRange(a,t):(null!==r&&this._renderNormalDecoration(e,a,r,s,n,o,i),r=d,s=h,t)}}null!==r&&this._renderNormalDecoration(e,a,r,s,n,o,i)}_renderNormalDecoration(e,t,i,n,o,r,s){var a=e.linesVisibleRangesForRange(t,"findMatch"===i);if(a)for(let u=0,g=a.length;u<g;u++){var l=a[u];if(!l.outsideRenderedLine){var d,h=l.lineNumber-r;n&&1===l.ranges.length&&0===(d=l.ranges[0]).width&&(l.ranges[0]=new R(d.left,this._typicalHalfwidthCharacterWidth));for(let e=0,t=l.ranges.length;e<t;e++){var c=l.ranges[e];c='<div class="cdr '+i+'" style="left:'+String(c.left)+"px;width:"+String(c.width)+"px;height:"+o+'px;"></div>';s[h]+=c}}}}render(e,t){return!this._renderResult||(t-=e)<0||t>=this._renderResult.length?"":this._renderResult[t]}}var at=i("1898");class lt extends I{constructor(e,t,i,n){super(e);var o=this._context.configuration.options,r=o.get(92),s=o.get(66),a=o.get(33);o=o.get(95),e={listenOnDomNode:i.domNode,className:"editor-scrollable "+Object(Ie.e)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:r.vertical,horizontal:r.horizontal,verticalHasArrows:r.verticalHasArrows,horizontalHasArrows:r.horizontalHasArrows,verticalScrollbarSize:r.verticalScrollbarSize,verticalSliderSize:r.verticalSliderSize,horizontalScrollbarSize:r.horizontalScrollbarSize,horizontalSliderSize:r.horizontalSliderSize,handleMouseWheel:r.handleMouseWheel,alwaysConsumeMouseWheel:r.alwaysConsumeMouseWheel,arrowSize:r.arrowSize,mouseWheelScrollSensitivity:s,fastScrollSensitivity:a,scrollPredominantAxis:o,scrollByPage:r.scrollByPage};this.scrollbar=this._register(new at.c(t.domNode,e,this._context.viewLayout.getScrollable())),M.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Object(f.b)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const d=(e,t,i)=>{var n={};t&&(t=e.scrollTop)&&(n.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0),i&&(t=e.scrollLeft)&&(n.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0),this._context.model.setScrollPosition(n,1)};this._register(l.i(i.domNode,"scroll",e=>d(i.domNode,!0,!0))),this._register(l.i(t.domNode,"scroll",e=>d(t.domNode,!0,!1))),this._register(l.i(n.domNode,"scroll",e=>d(n.domNode,!0,!1))),this._register(l.i(this.scrollbarDomNode.domNode,"scroll",e=>d(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){var e=this._context.configuration.options,t=e.get(130);this.scrollbarDomNode.setLeft(t.contentLeft),e=e.get(64);"right"===e.side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)}onConfigurationChanged(e){var t,i,n,o;return(e.hasChanged(92)||e.hasChanged(66)||e.hasChanged(33))&&(o=(n=this._context.configuration.options).get(92),t=n.get(66),i=n.get(33),n=n.get(95),o={vertical:o.vertical,horizontal:o.horizontal,verticalScrollbarSize:o.verticalScrollbarSize,horizontalScrollbarSize:o.horizontalScrollbarSize,scrollByPage:o.scrollByPage,handleMouseWheel:o.handleMouseWheel,mouseWheelScrollSensitivity:t,fastScrollSensitivity:i,scrollPredominantAxis:n},this.scrollbar.updateOptions(o)),e.hasChanged(130)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(Ie.e)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}i("8478");class dt{constructor(e,t,i){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}class ht extends Oe{_render(e,t,i){var n=[];for(let s=e;s<=t;s++)n[s-e]=[];if(0!==i.length){i.sort((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1);let s=null,a=0;for(let l=0,d=i.length;l<d;l++){var o=i[l],r=o.className;let d=Math.max(o.startLineNumber,e)-e;o=Math.min(o.endLineNumber,t)-e,a=s===r?(d=Math.max(a+1,d),Math.max(a,o)):(s=r,o);for(let e=d;e<=a;e++)n[e].push(s)}}return n}}class ct extends ht{constructor(e){super(),this._context=e;e=this._context.configuration.options;var t=e.get(130);this._lineHeight=e.get(58),this._glyphMargin=e.get(48),this._glyphMarginLeft=t.glyphMarginLeft,this._glyphMarginWidth=t.glyphMarginWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){var t=this._context.configuration.options,i=t.get(130);return this._lineHeight=t.get(58),this._glyphMargin=t.get(48),this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){var t=e.getDecorationsInViewport();let i=[],n=0;for(let s=0,a=t.length;s<a;s++){var o=t[s],r=o.options.glyphMarginClassName;r&&(i[n++]=new dt(o.range.startLineNumber,o.range.endLineNumber,r))}return i}prepareRender(e){if(this._glyphMargin){var t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),o=(e=this._lineHeight.toString(),'" style="left:'+this._glyphMarginLeft.toString()+"px;width:"+this._glyphMarginWidth.toString()+"px;height:"+e+'px;"></div>'),r=[];for(let e=t;e<=i;e++){var s=e-t,a=n[s];0===a.length?r[s]="":r[s]='<div class="cgmr codicon '+a.join(" ")+o}this._renderResult=r}else this._renderResult=null}render(e,t){return!this._renderResult||(t-=e)<0||t>=this._renderResult.length?"":this._renderResult[t]}}i("0baa");class ut extends Oe{constructor(e){super(),this._context=e,this._primaryLineNumber=0;e=this._context.configuration.options;var t=e.get(131),i=e.get(42);this._lineHeight=e.get(58),this._spaceWidth=i.spaceWidth,this._enabled=e.get(83),this._activeIndentEnabled=e.get(51),this._maxIndentLeft=-1===t.wrappingColumn?-1:t.wrappingColumn*i.typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){var t=this._context.configuration.options,i=t.get(131),n=t.get(42);return this._lineHeight=t.get(58),this._spaceWidth=n.spaceWidth,this._enabled=t.get(83),this._activeIndentEnabled=t.get(51),this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return e=e.selections[0],e=e.isEmpty()?e.positionLineNumber:0,this._primaryLineNumber!==e&&(this._primaryLineNumber=e,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){if(this._enabled){var t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._context.model.getTextModelOptions()["indentSize"],o=n*this._spaceWidth,r=e.scrollWidth,s=this._lineHeight,a=this._context.model.getLinesIndentGuides(t,i);let p=0,m=0,f=0;this._activeIndentEnabled&&this._primaryLineNumber&&(n=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,i),p=n.startLineNumber,m=n.endLineNumber,f=n.indent);var l=[];for(let n=t;n<=i;n++){var d=p<=n&&n<=m,h=n-t,c=a[h];let i="";if(1<=c){var u=e.visibleRangeForPosition(new ie.a(n,1));let t=u?u.left:0;for(let e=1;e<=c;e++){var g=d&&e===f?"cigra":"cigr";if(i+=`<div class="${g}" style="left:${t}px;height:${s}px;width:${o}px"></div>`,(t+=o)>r||0<this._maxIndentLeft&&t>this._maxIndentLeft)break}}l[h]=i}this._renderResult=l}else this._renderResult=null}render(e,t){return!this._renderResult||(t-=e)<0||t>=this._renderResult.length?"":this._renderResult[t]}}Object(Ie.f)((e,t)=>{var i=e.getColor(Ee.o);i&&t.addRule(`.monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 ${i} inset; }`),e=e.getColor(Ee.a)||i;e&&t.addRule(`.monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 ${e} inset; }`)}),i("38a2b");class gt{constructor(){this._currentVisibleRange=new ne.a(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class pt{constructor(e,t,i,n,o,r){this.lineNumber=e,this.startColumn=t,this.endColumn=i,this.startScrollTop=n,this.stopScrollTop=o,this.scrollType=r,this.type="range",this.minLineNumber=e,this.maxLineNumber=e}}class mt{constructor(e,t,i,n){this.selections=e,this.startScrollTop=t,this.stopScrollTop=i,this.scrollType=n,this.type="selections";let o=e[0].startLineNumber,r=e[0].endLineNumber;for(let a=1,l=e.length;a<l;a++){var s=e[a];o=Math.min(o,s.startLineNumber),r=Math.max(r,s.endLineNumber)}this.minLineNumber=o,this.maxLineNumber=r}}class ft extends I{constructor(e,t){super(e),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Ke(this),this.domNode=this._visibleLines.domNode;e=this._context.configuration,t=this._context.configuration.options;var i=t.get(42),n=t.get(131);this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(89),this._cursorSurroundingLines=t.get(24),this._cursorSurroundingLinesStyle=t.get(25),this._canUseLayerHinting=!t.get(27),this._viewLineOptions=new $(e,this._context.theme.type),M.write(this.domNode,7),this.domNode.setClassName("view-lines "+Re.a),g.a.applyFontInfo(this.domNode,i),this._maxLineWidth=0,this._asyncUpdateLineWidths=new C.e(()=>{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new C.e(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new gt,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new G(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(131)&&(this._maxLineWidth=0);var t=this._context.configuration.options,i=t.get(42),n=t.get(131);return this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(89),this._cursorSurroundingLines=t.get(24),this._cursorSurroundingLinesStyle=t.get(25),this._canUseLayerHinting=!t.get(27),g.a.applyFontInfo(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(130)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){var e=this._context.configuration;e=new $(e,this._context.theme.type);if(this._viewLineOptions.equals(e))return!1;this._viewLineOptions=e;e=this._visibleLines.getStartLineNumber();var t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onOptionsChanged(this._viewLineOptions);return!0}onCursorStateChanged(e){var t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let o=t;o<=i;o++)n=this._visibleLines.getVisibleLine(o).onSelectionChanged()||n;return n}onDecorationsChanged(e){var t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++)this._visibleLines.getVisibleLine(n).onDecorationsChanged();return!0}onFlushed(e){return e=this._visibleLines.onFlushed(e),this._maxLineWidth=0,e}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});return e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new pt(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&0<e.selections.length&&(this._horizontalRevealRequest=new mt(e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null,t=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType,this._context.model.setScrollPosition(i,t),!0}onScrollChanged(e){var t,i;return this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged&&(t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),e.scrollTop<t||e.scrollTop>i)&&(this._horizontalRevealRequest=null),this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.model.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){var i=this._getViewLineDomNode(e);if(null===i)return null;if(i=this._getLineNumberFor(i),-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new ie.a(i,1);var n=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(i<n||o<i)return null;let r=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t);return n=this._context.model.getLineMinColumn(i),r<n&&(r=n),new ie.a(i,r)}_getViewLineDomNode(e){for(;e&&1===e.nodeType;){if(e.className===G.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){var t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let n=t;n<=i;n++)if(e===this._visibleLines.getVisibleLine(n).getDomNode())return n;return-1}getLineWidth(e){var t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();return e<t||i<e?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;var i=e.endLineNumber,n=ne.a.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;let o=[],r=0;var s=new q(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ie.a(n.startLineNumber,1)).lineNumber);var l,d,h=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let u=n.startLineNumber;u<=n.endLineNumber;u++)u<h||u>c||(d=u===n.startLineNumber?n.startColumn:1,l=u===n.endLineNumber?n.endColumn:this._context.model.getLineMaxColumn(u),(d=this._visibleLines.getVisibleLine(u).getVisibleRangesForRange(u,d,l,s))&&(t&&u<i&&a!==(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ie.a(u+1,1)).lineNumber)&&(d.ranges[d.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth),o[r++]=new A(d.outsideRenderedLine,u,R.from(d.ranges))));return 0===r?null:o}_visibleRangesForLineRange(e,t,i){return this.shouldRender()||e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,new q(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){return e=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column),e?new F(e.outsideRenderedLine,e.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){var t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,o=!0;for(let s=t;s<=i;s++){var r=this._visibleLines.getVisibleLine(s);e&&!r.getWidthIsFast()?o=!1:n=Math.max(n,r.getWidth())}return o&&1===t&&i===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),o}_checkMonospaceFontAssumptions(){let e=-1,t=-1;var i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let r=i;r<=n;r++){var o=this._visibleLines.getVisibleLine(r);o.needsMonospaceFontCheck()&&(o=o.getWidth())>t&&(t=o,e=r)}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let r=i;r<=n;r++)this._visibleLines.getVisibleLine(r).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest&&(n=this._horizontalRevealRequest,e.startLineNumber<=n.minLineNumber)&&n.maxLineNumber<=e.endLineNumber&&(this._horizontalRevealRequest=null,this.onDidRender(),t=this._computeScrollLeftToReveal(n))&&(this._isViewportWrapping||this._ensureMaxLineWidth(t.maxHorizontalOffset),this._context.model.setScrollPosition({scrollLeft:t.scrollLeft},n.scrollType)),this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),_.d&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){var t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let e=t;e<=i;e++)if(this._visibleLines.getVisibleLine(e).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var n=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-n),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){e=Math.ceil(e),this._maxLineWidth<e&&(this._maxLineWidth=e,this._context.model.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,i,n,o){var r=e.top,s=(e=e.height,r+e);let a,l,d,h;if(n&&0<n.length){let e=n[0].startLineNumber,t=n[0].endLineNumber;for(let i=1,o=n.length;i<o;i++){var c=n[i];e=Math.min(e,c.startLineNumber),t=Math.max(t,c.endLineNumber)}a=!1,l=this._context.viewLayout.getVerticalOffsetForLineNumber(e),d=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!i)return-1;a=!0,l=this._context.viewLayout.getVerticalOffsetForLineNumber(i.startLineNumber),d=this._context.viewLayout.getVerticalOffsetForLineNumber(i.endLineNumber)+this._lineHeight}if("mouse"===t&&"default"===this._cursorSurroundingLinesStyle||(i=Math.min(e/this._lineHeight/2,this._cursorSurroundingLines),l-=i*this._lineHeight,d+=Math.max(0,i-1)*this._lineHeight),0!==o&&4!==o||(d+=this._lineHeight),d-l>e){if(!a)return-1;h=l}else h=5===o||6===o?6===o&&r<=l&&d<=s?r:(t=Math.max(5*this._lineHeight,.2*e),i=l-t,t=d-e,Math.max(t,i)):1===o||2===o?2===o&&r<=l&&d<=s?r:(t=(l+d)/2,Math.max(0,t-e/2)):this._computeMinimumScrolling(r,s,l,d,3===o,4===o);return h}_computeScrollLeftToReveal(e){var t=this._context.viewLayout.getCurrentViewport(),i=t.left,n=i+t.width;let o=1073741824,r=0;if("range"===e.type){var s=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!s)return null;for(const e of s.ranges)o=Math.min(o,Math.round(e.left)),r=Math.max(r,Math.round(e.left+e.width))}else for(const l of e.selections){if(l.startLineNumber!==l.endLineNumber)return null;var a=this._visibleRangesForLineRange(l.startLineNumber,l.startColumn,l.endColumn);if(!a)return null;for(const e of a.ranges)o=Math.min(o,Math.round(e.left)),r=Math.max(r,Math.round(e.left+e.width))}return o=Math.max(0,o-ft.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding,"selections"===e.type&&r-o>t.width?null:{scrollLeft:this._computeMinimumScrolling(i,n,o,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,o,r){o=!!o,r=!!r;var s=(t|=0)-(e|=0);return(n|=0)-(i|=0)<s&&!o?r?Math.max(0,n-s):i<e?i:t<n?Math.max(0,n-s):e:i}}ft.HORIZONTAL_EXTRA_PX=30,i("27e6");class _t extends ht{constructor(e){super(),this._context=e,e=this._context.configuration.options.get(130),this._decorationsLeft=e.decorationsLeft,this._decorationsWidth=e.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){var t=this._context.configuration.options.get(130);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){var t=e.getDecorationsInViewport();let i=[],n=0;for(let s=0,a=t.length;s<a;s++){var o=t[s],r=o.options.linesDecorationsClassName;r=(r&&(i[n++]=new dt(o.range.startLineNumber,o.range.endLineNumber,r)),o.options.firstLineDecorationClassName);r&&(i[n++]=new dt(o.range.startLineNumber,o.range.startLineNumber,r))}return i}prepareRender(e){var t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),o='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>',r=[];for(let l=t;l<=i;l++){var s=l-t,a=n[s];let e="";for(let t=0,i=a.length;t<i;t++)e+='<div class="cldr '+a[t]+o;r[s]=e}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}i("5d70");class bt extends ht{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){var t=e.getDecorationsInViewport();let i=[],n=0;for(let s=0,a=t.length;s<a;s++){var o=t[s],r=o.options.marginClassName;r&&(i[n++]=new dt(o.range.startLineNumber,o.range.endLineNumber,r))}return i}prepareRender(e){var t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=this._render(t,i,this._getDecorations(e)),o=[];for(let a=t;a<=i;a++){var r=a-t,s=n[r];let e="";for(let t=0,i=s.length;t<i;t++)e+='<div class="cmdr '+s[t]+'" style=""></div>';o[r]=e}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}i("f20b");class vt{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=vt._clamp(e),this.g=vt._clamp(t),this.b=vt._clamp(i),this.a=vt._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:255<e?255:0|e}}vt.Empty=new vt(0,0,0,0);var Ct=i("b707");class wt extends c.a{constructor(){super(),this._onDidChange=new h.b,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Ct.F.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()}))}static getInstance(){return this._INSTANCE||(this._INSTANCE=Object(c.h)(new wt)),this._INSTANCE}_updateColorMap(){var e=Ct.F.getColorMap();if(e){this._colors=[vt.Empty];for(let i=1;i<e.length;i++){var t=e[i].rgba;this._colors[i]=new vt(t.r,t.g,t.b,Math.round(255*t.a))}var i=e[2].getRelativeLuminance();this._backgroundIsLight=.5<=i,this._onDidChange.fire(void 0)}else this._colors=[vt.Empty],this._backgroundIsLight=!0}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}wt._INSTANCE=null;var yt=i("a8d0"),St=i("303e");const Lt=(()=>{var e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var xt=i("099d");class kt{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=kt.soften(e,.8),this.charDataLight=kt.soften(e,50/60)}static soften(e,t){var i=new Uint8ClampedArray(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=Object(xt.b)(e[n]*t);return i}renderChar(e,t,i,n,o,r,s,a,l){var d=+this.scale,h=2*this.scale,c=l?1:h;if(!(t+d>e.width||i+c>e.height)){var u=a?this.charDataLight:this.charDataNormal,g=(n=(l=n,a=s,(l-=32)<0||96<l?a<=2?(l+96)%96:95:l),4*e.width),p=r.r,m=r.g,f=r.b,_=o.r-p,b=o.g-m,v=o.b-f,C=e.data;let y=n*d*h,S=i*g+4*t;for(let e=0;e<c;e++){let e=S;for(let t=0;t<d;t++){var w=u[y++]/255;C[e++]=p+_*w,C[e++]=m+b*w,C[e++]=f+v*w,e++}S+=g}}}blockRenderChar(e,t,i,n,o,r,s){var a=+this.scale,l=2*this.scale,d=s?1:l;if(!(t+a>e.width||i+d>e.height)){var h=4*e.width,c=(s=o.r,l=o.g,o=o.b,s+.5*(n.r-s)),u=l+.5*(n.g-l),g=o+.5*(n.b-o),p=e.data;let r=i*h+4*t;for(let e=0;e<d;e++){let e=r;for(let t=0;t<a;t++)p[e++]=c,p[e++]=u,p[e++]=g,e++;r+=h}}}}var Dt=i("0bfb");const Nt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},Ot=e=>{var t=new Uint8ClampedArray(e.length/2);for(let i=0;i<e.length;i+=2)t[i>>1]=Nt[e[i]]<<4|15&Nt[e[i+1]];return t},Et={1:Object(Dt.a)(()=>Ot("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:Object(Dt.a)(()=>Ot("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class It{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Et[e]?new kt(Et[e](),e):It.createFromSampleData(It.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i}static createSampleData(e){var t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font="bold 16px "+e,i.textBaseline="middle";let n=0;for(const o of Lt)i.fillText(String.fromCharCode(o),n,8),n+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");return e=It._downsample(e,t),new kt(e,t)}static _downsampleChar(e,t,i,n,o){var r=+o,s=2*o;let a=n,l=0;for(let b=0;b<s;b++){var d=b/s*16,h=(b+1)/s*16;for(let n=0;n<r;n++){var c=n/r*10,u=(n+1)/r*10;let o=0,s=0;for(let i=d;i<h;i++){var g=t+3840*Math.floor(i),p=1-(i-Math.floor(i));for(let t=c;t<u;t++){var m=1-(t-Math.floor(t)),f=g+4*Math.floor(t);m=m*p;s+=m,o+=e[f]*e[f+3]/255*m}}var _=o/s;l=Math.max(l,_),i[a++]=Object(xt.b)(_)}}return l}static _downsample(e,t){var i=2*t*1*t,n=96*i,o=new Uint8ClampedArray(n);let r=0,s=0,a=0;for(let d=0;d<96;d++)a=Math.max(a,this._downsampleChar(e,s,o,r,t)),r+=i,s+=40;if(0<a){var l=255/a;for(let e=0;e<n;e++)o[e]*=l}return o}}var Mt=i("3352");class Tt{constructor(e,t,i){e=e.options;var n=e.get(128),o=e.get(130),r=o.minimap;const s=e.get(42);var a=e.get(64);this.renderMinimap=r.renderMinimap,this.size=a.size,this.minimapHeightIsEditorHeight=r.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=e.get(94),this.showSlider=a.showSlider,this.pixelRatio=n,this.typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this.lineHeight=e.get(58),this.minimapLeft=r.minimapLeft,this.minimapWidth=r.minimapWidth,this.minimapHeight=o.height,this.canvasInnerWidth=r.minimapCanvasInnerWidth,this.canvasInnerHeight=r.minimapCanvasInnerHeight,this.canvasOuterWidth=r.minimapCanvasOuterWidth,this.canvasOuterHeight=r.minimapCanvasOuterHeight,this.isSampling=r.minimapIsSampling,this.editorHeight=o.height,this.fontScale=r.minimapScale,this.minimapLineHeight=r.minimapLineHeight,this.minimapCharWidth=+this.fontScale,this.charRenderer=Object(Dt.a)(()=>It.create(this.fontScale,s.fontFamily)),this.backgroundColor=Tt._getMinimapBackground(t,i)}static _getMinimapBackground(e,t){return e=e.getColor(St.Zb),e?new vt(e.rgba.r,e.rgba.g,e.rgba.b,e.rgba.a):t.getColor(2)}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)}}class At{constructor(e,t,i,n,o,r,s,a){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=o,this.sliderHeight=r,this.startLineNumber=s,this.endLineNumber=a}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,i,n,o,r,s,a,l,d,h){var c=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){a=a*e.lineHeight+(e.scrollBeyondLastLine?o-e.lineHeight:0);const t=Math.max(1,Math.floor(o*o/a)),i=Math.max(0,e.minimapHeight-t),n=i/(d-o),r=l*n;a=0<i;var m=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new At(l,d,a,n,r,t,1,Math.min(s,m))}let f,_;f=r&&i!==s?Math.floor((i-t+1)*u/c):Math.floor(o/p*u/c),_=e.scrollBeyondLastLine?(s-1)*u/c:Math.max(0,s*u/c-f);const b=(_=Math.min(e.minimapHeight-f,_))/(d-o),v=l*b;let C=0;if(g>=s+(C=e.scrollBeyondLastLine?o/p-1:C))return a=s,m=0<_,new At(l,d,m,b,v,f,1,a);{let e=Math.max(1,Math.floor(t-v*c/u));return h&&h.scrollHeight===d&&(h.scrollTop>l&&(e=Math.min(e,h.startLineNumber)),h.scrollTop<l)&&(e=Math.max(e,h.startLineNumber)),r=Math.min(s,e+g-1),i=(t-e+(l-n)/p)*u/c,new At(l,d,!0,b,i,f,e,r)}}}class Rt{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}Rt.INVALID=new Rt(-1);class Pt{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Ue(()=>Rt.INVALID),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;var t=this._renderedLines._get().lines;for(let i=0,n=t.length;i<n;i++)if(-1===t[i].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){var e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class Ft{constructor(e,t,i,n){this._backgroundFillData=Ft._createBackgroundFillData(t,i,n),this._buffers=[e.createImageData(t,i),e.createImageData(t,i)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,i){var n=i.r,o=i.g,r=i.b,s=new Uint8ClampedArray(e*t*4);let a=0;for(let l=0;l<t;l++)for(let t=0;t<e;t++)s[a]=n,s[a+1]=o,s[a+2]=r,s[a+3]=255,a+=4;return s}}class Bt{constructor(e,t){this.samplingRatio=e,this.minimapLines=t}static compute(e,t,i){if(0===e.renderMinimap||!e.isSampling)return[null,[]];var n=e.pixelRatio,o=e.lineHeight,r=e.scrollBeyondLastLine,s=z.f.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:r,height:e.editorHeight,lineHeight:o,pixelRatio:n})["minimapLineCount"],a=t/s,l=a/2;if(!i||0===i.minimapLines.length){var d=[];if((d[0]=1)<s){for(let e=0,t=s-1;e<t;e++)d[e]=Math.round(e*a+l);d[s-1]=t}return[new Bt(a,d),[]]}var h=i.minimapLines,c=h.length,u=[];let g=0,p=0,m=1,f=[],_=null;for(let y=0;y<s;y++){for(var b,v=Math.max(m,Math.round(y*a)),C=Math.max(v,Math.round((y+1)*a));g<c&&h[g]<v;)f.length<10&&(b=g+1+p,_&&"deleted"===_.type&&_._oldIndex===g-1?_.deleteToLineNumber++:(_={type:"deleted",_oldIndex:g,deleteFromLineNumber:b,deleteToLineNumber:b},f.push(_)),p--),g++;let e;g<c&&h[g]<=C?(e=h[g],g++):(e=0===y?1:y+1===s?t:Math.round(y*a+l),f.length<10&&(C=g+1+p,_&&"inserted"===_.type&&_._i===y-1?_.insertToLineNumber++:(_={type:"inserted",_i:y,insertFromLineNumber:C,insertToLineNumber:C},f.push(_)),p++)),u[y]=e,m=e}if(f.length<10)for(;g<c;){var w=g+1+p;_&&"deleted"===_.type&&_._oldIndex===g-1?_.deleteToLineNumber++:(_={type:"deleted",_oldIndex:g,deleteFromLineNumber:w,deleteToLineNumber:w},f.push(_)),p--,g++}else f=[{type:"flush"}];return[new Bt(a,u),f]}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e)-1;for(;0<i&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1<this.minimapLines.length&&this.minimapLines[n+1]<=t;)n++;if(i===n){var o=this.minimapLines[i];if(o<e||t<o)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?1<i&&i--:n++),[i,n]}onLinesDeleted(e){var t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let o=this.minimapLines.length-1;0<=o&&!(this.minimapLines[o]<e.fromLineNumber);o--)this.minimapLines[o]<=e.toLineNumber?(this.minimapLines[o]=Math.max(1,e.fromLineNumber-1),i=Math.min(i,o),n=Math.max(n,o)):this.minimapLines[o]-=t;return[i,n]}onLinesInserted(e){var t=e.toLineNumber-e.fromLineNumber+1;for(let i=this.minimapLines.length-1;0<=i&&!(this.minimapLines[i]<e.fromLineNumber);i--)this.minimapLines[i]+=t}}class jt extends I{constructor(e){super(e),this.tokensColorTracker=wt.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new Tt(this._context.configuration,this._context.theme,this.tokensColorTracker);var[t]=Bt.compute(this.options,this._context.model.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new Wt(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){var e=new Tt(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){var t;return this._samplingState?!!(t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.toLineNumber))&&this._actual.onLinesChanged(t[0],t[1]):this._actual.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){var t,i;return this._samplingState?([t,i]=this._samplingState.onLinesDeleted(e),t<=i&&this._actual.onLinesChanged(t+1,i+1),this._shouldCheckSampling=!0):this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._context.model.invalidateMinimapColorCache(),this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){var t=[];for(const n of e.ranges){var i=this._samplingState.modelLineRangeToMinimapLineRange(n.fromLineNumber,n.toLineNumber);i&&t.push({fromLineNumber:i[0],toLineNumber:i[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),i=this._samplingState.modelLineToMinimapLine(i)),e={viewportContainsWhitespaceGaps:0<e.viewportData.whitespaceViewportData.length,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight},this._actual.render(e)}_recreateLineSampling(){this._minimapSelections=null;var e=Boolean(this._samplingState),[t,i]=Bt.compute(this.options,this._context.model.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const n of i)switch(n.type){case"deleted":this._actual.onLinesDeleted(n.deleteFromLineNumber,n.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(n.insertFromLineNumber,n.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.model.getLineCount()}getRealLineCount(){return this._context.model.getLineCount()}getLineContent(e){return this._samplingState?this._context.model.getLineContent(this._samplingState.minimapLines[e-1]):this._context.model.getLineContent(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){var n=[];for(let o=0,r=t-e+1;o<r;o++)i[o]?n[o]=this._context.model.getViewLineData(this._samplingState.minimapLines[e+o-1]):n[o]=null;return n}return this._context.model.getMinimapLinesRenderingData(e,t,i).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const i of this._selections){var[e,t]=this._samplingState.decorationLineRangeToMinimapLineRange(i.startLineNumber,i.endLineNumber);this._minimapSelections.push(new m.a(e,i.startColumn,t,i.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){let i;i=this._samplingState?(o=this._samplingState.minimapLines[e-1],n=this._samplingState.minimapLines[t-1],new ne.a(o,1,n,this._context.model.getLineMaxColumn(n))):new ne.a(e,1,t,this._context.model.getLineMaxColumn(t));var n,o=this._context.model.getDecorationsInViewport(i);if(this._samplingState){var r,s,a,l=[];for(const e of o)e.options.minimap&&(r=e.range,s=this._samplingState.modelLineToMinimapLine(r.startLineNumber),a=this._samplingState.modelLineToMinimapLine(r.endLineNumber),l.push(new yt.g(new ne.a(s,r.startColumn,a,r.endColumn),e.options)));return l}return o}getOptions(){return this._context.model.getTextModelOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.model.revealRange("mouse",!1,new ne.a(e,1,e,1),1,0)}setScrollTop(e){this._context.model.setScrollPosition({scrollTop:e},1)}}class Wt extends c.a{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(St.cc),this._domNode=Object(f.b)(document.createElement("div")),M.write(this._domNode,8),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=Object(f.b)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=Object(f.b)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=Object(f.b)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=Object(f.b)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=Object(f.b)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._mouseDownListener=l.o(this._domNode.domNode,"mousedown",e=>{var t;e.preventDefault(),0!==this._model.options.renderMinimap&&this._lastRenderData&&("proportional"!==this._model.options.size?e.leftButton&&this._lastRenderData&&(t=(t=l.D(this._slider.domNode)).top+t.height/2,this._startSliderDragging(e.buttons,e.posx,t,e.posy,this._lastRenderData.renderedLayout)):(t=this._model.options.minimapLineHeight,e=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.browserEvent.offsetY,e=Math.floor(e/t)+this._lastRenderData.renderedLayout.startLineNumber,e=Math.min(e,this._model.getLineCount()),this._model.revealLineNumber(e)))}),this._sliderMouseMoveMonitor=new w.a,this._sliderMouseDownListener=l.o(this._slider.domNode,"mousedown",e=>{e.preventDefault(),e.stopPropagation(),e.leftButton&&this._lastRenderData&&this._startSliderDragging(e.buttons,e.posx,e.posy,e.posy,this._lastRenderData.renderedLayout)}),this._gestureDisposable=b.b.addTarget(this._domNode.domNode),this._sliderTouchStartListener=l.i(this._domNode.domNode,b.a.Start,e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))},{passive:!1}),this._sliderTouchMoveListener=l.i(this._domNode.domNode,b.a.Change,e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)},{passive:!1}),this._sliderTouchEndListener=l.o(this._domNode.domNode,b.a.End,e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,i,n,o){this._slider.toggleClassName("active",!0);const r=(e,n)=>{n=Math.abs(n-t),_.i&&140<n?this._model.setScrollTop(o.scrollTop):this._model.setScrollTop(o.getDesiredScrollTopFromDelta(e-i))};n!==i&&r(n,t),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,e,w.b,e=>r(e.posy,e.posx),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){var t=this._domNode.domNode.getBoundingClientRect().top;e=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(e)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return"always"===this._model.options.showSlider?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||0<this._model.options.canvasInnerWidth&&0<this._model.options.canvasInnerHeight&&(this._buffers=new Ft(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0}onDecorationsChanged(){return this._renderDecorations=!0}onFlushed(){return!(this._lastRenderData=null)}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(St.cc),this._renderDecorations=!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,!(this._buffers=null)}onZonesChanged(){return!(this._lastRenderData=null)}render(e){var t;0===this._model.options.renderMinimap?(this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0)):(e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible"),t=At.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null),this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),e=e.scrollLeft/this._model.options.typicalHalfwidthCharacterWidth,e=Math.min(this._model.options.minimapWidth,Math.round(e*this._model.options.minimapCharWidth/this._model.options.pixelRatio)),this._sliderHorizontal.setLeft(e),this._sliderHorizontal.setWidth(this._model.options.minimapWidth-e),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t))}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;var t=this._model.getSelections(),i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber),{canvasInnerWidth:n,canvasInnerHeight:o}=this._model.options,r=this._model.options.minimapLineHeight,s=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d"),d=(l.clearRect(0,0,n,o),new Map);for(let i=0;i<t.length;i++){var h=t[i];for(let t=h.startLineNumber;t<=h.endLineNumber;t++)this.renderDecorationOnLine(l,d,h,this._selectionColor,e,t,r,r,a,s)}for(let t=0;t<i.length;t++){var c=i[t];if(c.options.minimap){var u=c.options.minimap.getColor(this._theme);for(let t=c.range.startLineNumber;t<=c.range.endLineNumber;t++)switch(c.options.minimap.position){case Mt.c.Inline:this.renderDecorationOnLine(l,d,c.range,u,e,t,r,r,a,s);continue;case Mt.c.Gutter:var g=(t-e.startLineNumber)*r;this.renderDecoration(l,u,2,g,2,r);continue}}}}}renderDecorationOnLine(e,t,i,n,o,r,s,a,l,d){if(o=(r-o.startLineNumber)*a,!(o+s<0||o>this._model.options.canvasInnerHeight)){let p=t.get(r);if(a=!p,!p){var h=this._model.getLineContent(r);p=[z.h];for(let e=1;e<h.length+1;e++){var c=h.charCodeAt(e-1);c=9===c?l*d:De.D(c)?2*d:d;p[e]=p[e-1]+c}t.set(r,p)}var{startColumn:t,endColumn:i,startLineNumber:u,endLineNumber:g}=i,u=u===r?p[t-1]:z.h;t=r<g?p.length-1:i-1;0<t&&(r=p[t]-u||2,this.renderDecoration(e,n,u,o,r,s)),a&&this.renderLineHighlight(e,n,o,s)}}renderLineHighlight(e,t,i,n){e.fillStyle=t&&t.transparent(.5).toString()||"",e.fillRect(z.h,i,e.canvas.width,n)}renderDecoration(e,t,i,n,o,r){e.fillStyle=t&&t.toString()||"",e.fillRect(i,n,o,r)}renderLines(e){var t=e.startLineNumber,i=e.endLineNumber,n=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e))return r=this._lastRenderData._get(),new Pt(e,r.imageData,r.lines);var o=this._getBuffer();if(!o)return null;var[r,s,a]=Wt._renderUntouchedLines(o,t,i,n,this._lastRenderData),l=this._model.getMinimapLinesRenderingData(t,i,a),d=this._model.getOptions().tabSize,h=this._model.options.backgroundColor,c=this._model.tokensColorTracker,u=c.backgroundIsLight(),g=this._model.options.renderMinimap,p=this._model.options.charRenderer(),m=this._model.options.fontScale,f=this._model.options.minimapCharWidth,_=(1===g?2:3)*m,b=_<n?Math.floor((n-_)/2):0;let v=0;var C=[];for(let w=0,y=i-t+1;w<y;w++)a[w]&&Wt._renderLine(o,h,u,g,f,c,p,v,b,d,l[w],m,n),C[w]=new Rt(v),v+=n;return _=-1===r?0:r,i=(-1===s?o.height:s)-_,this._canvas.domNode.getContext("2d").putImageData(o,0,0,0,_,o.width,i),new Pt(e,o,C)}static _renderUntouchedLines(e,t,i,n,o){var r=[];if(!o){for(let e=0,n=i-t+1;e<n;e++)r[e]=!0;return[-1,-1,r]}o=o._get();var s=o.imageData.data,a=o.rendLineNumberStart,l=o.lines,d=l.length,h=e.width,c=e.data,u=(i-t+1)*n*h*4;let g=-1,p=-1,m=-1,f=-1,_=-1,b=-1,v=0;for(let x=t;x<=i;x++){var C,w,y,S=x-t,L=x-a;L=0<=L&&L<d?l[L].dy:-1;-1===L?(r[S]=!0,v+=n):(C=L*h*4,L=(L+n)*h*4,w=v*h*4,y=(v+n)*h*4,f===C&&b===w?f=L:(-1!==m&&(c.set(s.subarray(m,f),_),-1===g&&0===m&&m===_&&(g=f),-1===p)&&f===u&&m===_&&(p=m),m=C,f=L,_=w),b=y,r[S]=!1,v+=n)}return-1!==m&&(c.set(s.subarray(m,f),_),-1===g&&0===m&&m===_&&(g=f),-1===p)&&f===u&&m===_&&(p=m),[-1===g?-1:g/(4*h),-1===p?-1:p/(4*h),r]}static _renderLine(e,t,i,n,o,r,s,a,l,d,h,c,u){var g=h.content,p=h.tokens,m=e.width-o,f=1===u;let _=z.h,b=0,v=0;for(let k=0,D=p.getCount();k<D;k++)for(var C=p.getEndOffset(k),w=p.getForeground(k),y=r.getColor(w);b<C;b++){if(_>m)return;var S=g.charCodeAt(b);if(9===S){var L=d-(b+v)%d;v+=L-1,_+=L*o}else if(32===S)_+=o;else{var x=De.D(S)?2:1;for(let r=0;r<x;r++)if(2===n?s.blockRenderChar(e,_,a+l,y,t,i,f):s.renderChar(e,_,a+l,S,y,t,c,i,f),(_+=o)>m)return}}}}Object(Ie.f)((e,t)=>{var i=e.getColor(St.Zb);i&&t.addRule(`.monaco-editor .minimap > canvas { opacity: ${i.rgba.a}; will-change: opacity; }`),i=e.getColor(St.ec),i&&t.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${i}; }`),i=e.getColor(St.fc),i&&t.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${i}; }`),i=e.getColor(St.dc),i&&t.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${i}; }`),i=e.getColor(St.yc);i&&t.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${i} -6px 0 6px -6px inset; }`)}),i("725e");class Vt extends I{constructor(e){super(e),e=this._context.configuration.options.get(130),this._widgets={},this._verticalScrollbarWidth=e.verticalScrollbarWidth,this._minimapWidth=e.minimap.minimapWidth,this._horizontalScrollbarHeight=e.horizontalScrollbarHeight,this._editorHeight=e.height,this._editorWidth=e.width,this._domNode=Object(f.b)(document.createElement("div")),M.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){var t=this._context.configuration.options.get(130);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){var t=Object(f.b)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){return e=this._widgets[e.getId()],e.preference!==t&&(e.preference=t,this.setShouldRender(),!0)}removeWidget(e){var t;e=e.getId();this._widgets.hasOwnProperty(e)&&(t=this._widgets[e].domNode.domNode,delete this._widgets[e],t.parentNode.removeChild(t),this.setShouldRender())}_renderWidget(e){var t,i=e.domNode;null===e.preference?i.unsetTop():0===e.preference?(i.setTop(0),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)):1===e.preference?(t=i.domNode.clientHeight,i.setTop(this._editorHeight-t-2*this._horizontalScrollbarHeight),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)):2===e.preference&&(i.setTop(0),i.domNode.style.right="50%")}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);var t=Object.keys(this._widgets);for(let n=0,o=t.length;n<o;n++){var i=t[n];this._renderWidget(this._widgets[i])}}}var Ht=i("ceb8");class zt{constructor(e,t){e=e.options;var i=(this.lineHeight=e.get(58),this.pixelRatio=e.get(128),this.overviewRulerLanes=e.get(73),this.renderBorder=e.get(72),t.getColor(Ee.t)),n=(i=(this.borderColor=i?i.toString():null,this.hideCursor=e.get(50),t.getColor(Ee.n)),i=(this.cursorColor=i?i.transparent(.7).toString():null,this.themeType=t.type,e.get(64)),i.enabled),[n,e]=(i=i.side,n=n?t.getColor(Ee.s)||Ct.F.getDefaultBackground():null,t=(this.backgroundColor=null===n||"left"===i?null:Ht.a.Format.CSS.formatHex(n),e.get(130)),i=t.overviewRuler,this.top=i.top,this.right=i.right,this.domWidth=i.width,this.domHeight=i.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0),this._initLanes(1,this.canvasWidth,this.overviewRulerLanes));this.x=n,this.w=e}_initLanes(e,t,i){var n,o,r,s;t-=e;return 3<=i?[[0,e,r=e+(s=Math.floor(t/3)),e,e+s+(o=t-s-(n=Math.floor(t/3))),e,r,e],[0,s,o,s+o,n,s+o+n,o+n,s+o+n]]:2===i?[[0,e,e,e,e+(r=Math.floor(t/2)),e,e,e],[0,r,r,r,s=t-r,r+s,r+s,r+s]]:[[0,e,e,e,e,e,e,e],[0,t,t,t,t,t,t,t]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class Ut extends I{constructor(e){super(e),this._domNode=Object(f.b)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Ct.F.onDidChange(e=>{e.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){var t=new zt(this._context.configuration,this._context.theme);return!(this._settings&&this._settings.equals(t)||(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),0))}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t<i;t++)this._cursorPositions[t]=e.selections[t].getPosition();return this._cursorPositions.sort(ie.a.compare),!0}onDecorationsChanged(e){return!!e.affectsOverviewRuler}onFlushed(e){return!0}onScrollChanged(e){return e.scrollHeightChanged}onZonesChanged(e){return!0}onThemeChanged(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render()}_render(){if(0===this._settings.overviewRulerLanes)this._domNode.setBackgroundColor(this._settings.backgroundColor||"");else{var e=this._settings.canvasWidth,t=this._settings.canvasHeight,i=this._settings.lineHeight,n=this._context.viewLayout,o=t/this._context.viewLayout.getScrollHeight(),r=this._context.model.getAllOverviewRulerDecorations(this._context.theme),s=6*this._settings.pixelRatio|0,a=s/2|0,l=this._domNode.domNode.getContext("2d"),d=(null===this._settings.backgroundColor?l.clearRect(0,0,e,t):(l.fillStyle=this._settings.backgroundColor,l.fillRect(0,0,e,t)),this._settings.x),h=this._settings.w,c=Object.keys(r);c.sort();for(let e=0,_=c.length;e<_;e++){var u=c[e],g=r[u];l.fillStyle=u;let _=0,b=0,v=0;for(let e=0,r=g.length;e<r;e++){var p=g[3*e],m=g[3*e+1],f=g[3*e+2];let r=n.getVerticalOffsetForLineNumber(m)*o|0,c=(n.getVerticalOffsetForLineNumber(f)+i)*o|0;if(c-r<s){let e=(r+c)/2|0;e<a?e=a:e+a>t&&(e=t-a),r=e-a,c=e+a}r>v+1||p!==_?(0!==e&&l.fillRect(d[_],b,h[_],v-b),_=p,b=r,v=c):c>v&&(v=c)}l.fillRect(d[_],b,h[_],v-b)}if(!this._settings.hideCursor&&this._settings.cursorColor){var _=2*this._settings.pixelRatio|0,b=_/2|0,v=this._settings.x[7],C=this._settings.w[7];l.fillStyle=this._settings.cursorColor;let e=-100,i=-100;for(let r=0,s=this._cursorPositions.length;r<s;r++){var w=this._cursorPositions[r];let s=n.getVerticalOffsetForLineNumber(w.lineNumber)*o|0;s<b?s=b:s+b>t&&(s=t-b);w=s-b;var y=w+_;w>i+1?(0!==r&&l.fillRect(v,e,C,i-e),e=w,i=y):y>i&&(i=y)}l.fillRect(v,e,C,i-e)}this._settings.renderBorder&&this._settings.borderColor&&0<this._settings.overviewRulerLanes&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,t),l.stroke(),l.moveTo(0,0),l.lineTo(e,0),l.stroke())}}}var Kt=i("32f2");class qt extends E{constructor(e,t){super(),this._context=e,e=this._context.configuration.options,this._domNode=Object(f.b)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new Kt.b(e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(e.get(58)),this._zoneManager.setPixelRatio(e.get(128)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){var t=this._context.configuration.options;return e.hasChanged(58)&&(this._zoneManager.setLineHeight(t.get(58)),this._render()),e.hasChanged(128)&&(this._zoneManager.setPixelRatio(t.get(128)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=this._zoneManager.setDOMWidth(e.width)||!1;(this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){var e,t,i,n,o;return 0!==this._zoneManager.getOuterHeight()&&(e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),(o=this._domNode.domNode.getContext("2d")).clearRect(0,0,e,t),0<i.length&&this._renderOneLane(o,i,n,e),!0)}_renderOneLane(e,t,i,n){let o=0,r=0,s=0;for(const h of t){var a=h.colorId,l=h.from,d=h.to;s=a!==o?(e.fillRect(0,r,n,s-r),o=a,e.fillStyle=i[o],r=l,d):s>=l?Math.max(s,d):(e.fillRect(0,r,n,s-r),r=l,d)}e.fillRect(0,r,n,s-r)}}i("ef37");class $t extends I{constructor(e){super(e),this.domNode=Object(f.b)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[],e=this._context.configuration.options,this._rulers=e.get(91),this._typicalHalfwidthCharacterWidth=e.get(42).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){var t=this._context.configuration.options;return this._rulers=t.get(91),this._typicalHalfwidthCharacterWidth=t.get(42).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e<t){var i=this._context.model.getTextModelOptions()["tabSize"],n=i;let r=t-e;for(;0<r;){var o=Object(f.b)(document.createElement("div"));o.setClassName("view-ruler"),o.setWidth(n),this.domNode.appendChild(o),this._renderedRulers.push(o),r--}}else{let i=e-t;for(;0<i;){var r=this._renderedRulers.pop();this.domNode.removeChild(r),i--}}}render(e){this._ensureRulersCount();for(let n=0,o=this._rulers.length;n<o;n++){var t=this._renderedRulers[n],i=this._rulers[n];t.setBoxShadow(i.color?`1px 0 0 0 ${i.color} inset`:""),t.setHeight(Math.min(e.scrollHeight,1e6)),t.setLeft(i.column*this._typicalHalfwidthCharacterWidth)}}}Object(Ie.f)((e,t)=>{e=e.getColor(Ee.u),e&&t.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${e} inset; }`)}),i("d8c3");class Gt extends I{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1,e=this._context.configuration.options.get(92),this._useShadows=e.useShadows,this._domNode=Object(f.b)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){var e=this._useShadows&&0<this._scrollTop;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){var e=this._context.configuration.options.get(130);0===e.minimap.renderMinimap||0<e.minimap.minimapWidth&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}onConfigurationChanged(e){var t=this._context.configuration.options.get(92);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}Object(Ie.f)((e,t)=>{e=e.getColor(St.yc),e&&t.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${e} 0 6px 6px -6px inset; }`)}),i("782d");class Zt{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class Yt{constructor(e,t){this.lineNumber=e,this.ranges=t}}function Xt(e){return new Zt(e)}function Qt(e){return new Yt(e.lineNumber,e.ranges.map(Xt))}class Jt extends Oe{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e,e=this._context.configuration.options,this._lineHeight=e.get(58),this._roundedSelection=e.get(90),this._typicalHalfwidthCharacterWidth=e.get(42).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){var t=this._context.configuration.options;return this._lineHeight=t.get(58),this._roundedSelection=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(42).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++)if(1<e[t].ranges.length)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){var n=this._typicalHalfwidthCharacterWidth/4;let o=null,r=null;if(i&&0<i.length&&0<t.length){var s=t[0].lineNumber;if(s===e.startLineNumber)for(let e=0;!o&&e<i.length;e++)i[e].lineNumber===s&&(o=i[e].ranges[0]);var a=t[t.length-1].lineNumber;if(a===e.endLineNumber)for(let e=i.length-1;!r&&0<=e;e--)i[e].lineNumber===a&&(r=i[e].ranges[0]);o&&!o.startStyle&&(o=null),r&&!r.startStyle&&(r=null)}for(let m=0,f=t.length;m<f;m++){var l,d,h=t[m].ranges[0],c=h.left,u=h.left+h.width,g={top:0,bottom:0},p={top:0,bottom:0};0<m?(l=t[m-1].ranges[0].left,d=t[m-1].ranges[0].left+t[m-1].ranges[0].width,ei(c-l)<n?g.top=2:l<c&&(g.top=1),ei(u-d)<n?p.top=2:l<u&&u<d&&(p.top=1)):o&&(g.top=o.startStyle.top,p.top=o.endStyle.top),m+1<f?(l=t[m+1].ranges[0].left,d=t[m+1].ranges[0].left+t[m+1].ranges[0].width,ei(c-l)<n?g.bottom=2:l<c&&c<d&&(g.bottom=1),ei(u-d)<n?p.bottom=2:u<d&&(p.bottom=1)):r&&(g.bottom=r.startStyle.bottom,p.bottom=r.endStyle.bottom),h.startStyle=g,h.endStyle=p}}_getVisibleRangesWithStyle(e,t,i){return e=(t.linesVisibleRangesForRange(e,!0)||[]).map(Qt),!this._visibleRangesHaveGaps(e)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,e,i),e}_createSelectionPiece(e,t,i,n,o){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;left:"+n.toString()+"px;width:"+o.toString()+"px;height:"+t+'px;"></div>'}_actualRenderOneSelection(e,t,i,n){if(0!==n.length){var o=!!n[0].ranges[0].startStyle,r=this._lineHeight.toString(),s=(this._lineHeight-1).toString(),a=n[0].lineNumber,l=n[n.length-1].lineNumber;for(let _=0,b=n.length;_<b;_++){var d=n[_],h=d.lineNumber,c=h-t,u=!i||h!==l&&h!==a?r:s,g=i&&h===a?1:0;let b="",v="";for(let e=0,t=d.ranges.length;e<t;e++){var p=d.ranges[e];if(o){var m=p.startStyle,f=p.endStyle;if(1===m.top||1===m.bottom){b+=this._createSelectionPiece(g,u,Jt.SELECTION_CLASS_NAME,p.left-Jt.ROUNDED_PIECE_WIDTH,Jt.ROUNDED_PIECE_WIDTH);let e=Jt.EDITOR_BACKGROUND_CLASS_NAME;1===m.top&&(e+=" "+Jt.SELECTION_TOP_RIGHT),1===m.bottom&&(e+=" "+Jt.SELECTION_BOTTOM_RIGHT),b+=this._createSelectionPiece(g,u,e,p.left-Jt.ROUNDED_PIECE_WIDTH,Jt.ROUNDED_PIECE_WIDTH)}if(1===f.top||1===f.bottom){b+=this._createSelectionPiece(g,u,Jt.SELECTION_CLASS_NAME,p.left+p.width,Jt.ROUNDED_PIECE_WIDTH);let e=Jt.EDITOR_BACKGROUND_CLASS_NAME;1===f.top&&(e+=" "+Jt.SELECTION_TOP_LEFT),1===f.bottom&&(e+=" "+Jt.SELECTION_BOTTOM_LEFT),b+=this._createSelectionPiece(g,u,e,p.left+p.width,Jt.ROUNDED_PIECE_WIDTH)}}let t=Jt.SELECTION_CLASS_NAME;o&&(m=p.startStyle,f=p.endStyle,0===m.top&&(t+=" "+Jt.SELECTION_TOP_LEFT),0===m.bottom&&(t+=" "+Jt.SELECTION_BOTTOM_LEFT),0===f.top&&(t+=" "+Jt.SELECTION_TOP_RIGHT),0===f.bottom)&&(t+=" "+Jt.SELECTION_BOTTOM_RIGHT),v+=this._createSelectionPiece(g,u,t,p.left,p.width)}e[c][0]+=b,e[c][1]+=v}}}prepareRender(e){var t=[],i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;for(let s=i;s<=n;s++)t[s-i]=["",""];var o=[];for(let s=0,a=this._selections.length;s<a;s++){var r=this._selections[s];r.isEmpty()?o[s]=null:(r=this._getVisibleRangesWithStyle(r,e,this._previousFrameVisibleRangesWithStyle[s]),o[s]=r,this._actualRenderOneSelection(t,i,1<this._selections.length,r))}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t.map(([e,t])=>e+t)}render(e,t){return!this._renderResult||(t-=e)<0||t>=this._renderResult.length?"":this._renderResult[t]}}function ei(e){return e<0?-e:e}Jt.SELECTION_CLASS_NAME="selected-text",Jt.SELECTION_TOP_LEFT="top-left-radius",Jt.SELECTION_BOTTOM_LEFT="bottom-left-radius",Jt.SELECTION_TOP_RIGHT="top-right-radius",Jt.SELECTION_BOTTOM_RIGHT="bottom-right-radius",Jt.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",Jt.ROUNDED_PIECE_WIDTH=10,Object(Ie.f)((e,t)=>{var i=e.getColor(St.R);i&&t.addRule(`.monaco-editor .focused .selected-text { background-color: ${i}; }`),i=e.getColor(St.J),i&&t.addRule(`.monaco-editor .selected-text { background-color: ${i}; }`),i=e.getColor(St.S);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}),i("d93b");class ti{constructor(e,t,i,n,o,r){this.top=e,this.left=t,this.width=i,this.height=n,this.textContent=o,this.textContentClassName=r}}class ii{constructor(e){this._context=e;e=this._context.configuration.options;var t=e.get(42);this._cursorStyle=e.get(23),this._lineHeight=e.get(58),this._typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(e.get(26),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(f.b)(document.createElement("div")),this._domNode.setClassName("cursor "+Re.a),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),g.a.applyFontInfo(this._domNode,t),this._domNode.setDisplay("none"),this._position=new ie.a(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(e){var t=this._context.configuration.options,i=t.get(42);return this._cursorStyle=t.get(23),this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(26),this._typicalHalfwidthCharacterWidth),g.a.applyFontInfo(this._domNode,i),!0}onCursorPositionChanged(e){return this._position=e,!0}_prepareRender(e){let t="";if(this._cursorStyle===z.i.Line||this._cursorStyle===z.i.LineThin){var i=e.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;let n;if(this._cursorStyle===z.i.Line){if(2<(n=l.u(0<this._lineCursorWidth?this._lineCursorWidth:2))){const e=this._context.model.getLineContent(this._position.lineNumber),i=De.K(e,this._position.column-1);t=e.substr(this._position.column-1,i)}}else n=l.u(1);let o=i.left;2<=n&&1<=o&&--o;const r=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new ti(r,o,n,this._lineHeight,t,"")}const n=this._context.model.getLineContent(this._position.lineNumber),o=De.K(n,this._position.column-1);if(i=e.linesVisibleRangesForRange(new ne.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+o),!1),!i||0===i.length)return null;if(i=i[0],i.outsideRenderedLine||0===i.ranges.length)return null;i=i.ranges[0];var r,s,a=i.width<1?this._typicalHalfwidthCharacterWidth:i.width;let d="",h=(this._cursorStyle===z.i.Block&&(r=this._context.model.getViewLineData(this._position.lineNumber),t=n.substr(this._position.column-1,o),s=r.tokens.findTokenIndexAtOffset(this._position.column-1),d=r.tokens.getClassName(s)),e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta),c=this._lineHeight;return this._cursorStyle!==z.i.Underline&&this._cursorStyle!==z.i.UnderlineThin||(h+=this._lineHeight-2,c=2),new ti(h,i.left,a,c,t,d)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${Re.a} `+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)}}class ni extends I{constructor(e){super(e),e=this._context.configuration.options,this._readOnly=e.get(80),this._cursorBlinking=e.get(21),this._cursorStyle=e.get(23),this._cursorSmoothCaretAnimation=e.get(22),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new ii(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Object(f.b)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new C.g,this._cursorFlatBlinkInterval=new C.c,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){var t=this._context.configuration.options;this._readOnly=t.get(80),this._cursorBlinking=t.get(21),this._cursorStyle=t.get(23),this._cursorSmoothCaretAnimation=t.get(22),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let i=0,n=this._secondaryCursors.length;i<n;i++)this._secondaryCursors[i].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length){var i=t.length-this._secondaryCursors.length;for(let e=0;e<i;e++){var n=new ii(this._context);this._domNode.domNode.insertBefore(n.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(n)}}else if(this._secondaryCursors.length>t.length){var o=this._secondaryCursors.length-t.length;for(let e=0;e<o;e++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let r=0;r<t.length;r++)this._secondaryCursors[r].onCursorPositionChanged(t[r])}onCursorStateChanged(e){var t=[];for(let n=0,o=e.selections.length;n<o;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){var t=t=>{for(let i=0,n=e.ranges.length;i<n;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const i of this._secondaryCursors)if(t(i.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return!this._isComposingInput&&this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var e=this._getCursorBlinking(),t=0===e,i=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||i||(1===e?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},ni.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},ni.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case z.i.Line:e+=" cursor-line-style";break;case z.i.Block:e+=" cursor-block-style";break;case z.i.Underline:e+=" cursor-underline-style";break;case z.i.LineThin:e+=" cursor-line-thin-style";break;case z.i.BlockOutline:e+=" cursor-block-outline-style";break;case z.i.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){let t=[],i=0;var n=this._primaryCursor.render(e);n&&(t[i++]=n);for(let r=0,s=this._secondaryCursors.length;r<s;r++){var o=this._secondaryCursors[r].render(e);o&&(t[i++]=o)}this._renderData=t}getLastRenderData(){return this._renderData}}ni.BLINK_INTERVAL=500,Object(Ie.f)((e,t)=>{var i=e.getColor(Ee.n);if(i){let n=e.getColor(Ee.m);n=n||i.opposite(),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${i}; border-color: ${i}; color: ${n}; }`),"hc"===e.type&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${n}; border-right: 1px solid ${n}; }`)}});const oi=()=>{throw new Error("Invalid change accessor")};class ri extends I{constructor(e){super(e);e=this._context.configuration.options;var t=e.get(130);this._lineHeight=e.get(58),this._contentWidth=t.contentWidth,this._contentLeft=t.contentLeft,this.domNode=Object(f.b)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Object(f.b)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){var e=this._context.viewLayout.getWhitespaces();const t=new Map;for(const n of e)t.set(n.id,n);let i=!1;return this._context.model.changeWhitespace(e=>{var n=Object.keys(this._zones);for(let l=0,d=n.length;l<d;l++){var o=n[l],r=this._zones[o],s=this._computeWhitespaceProps(r.delegate),a=t.get(o);!a||a.afterLineNumber===s.afterViewLineNumber&&a.height===s.heightInPx||(e.changeOneWhitespace(o,s.afterViewLineNumber,s.heightInPx),this._safeCallOnComputedHeight(r.delegate,s.heightInPx),i=!0)}}),i}onConfigurationChanged(e){var t=this._context.configuration.options,i=t.get(130);return this._lineHeight=t.get(58),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,e.hasChanged(58)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){return void 0!==e.afterColumn?e.afterColumn:1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,i;t=void 0!==e.afterColumn?this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn}):(n=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber,new ie.a(n,this._context.model.getModelLineMaxColumn(n))),i=t.column===this._context.model.getModelLineMaxColumn(t.lineNumber)?this._context.model.validateModelPosition({lineNumber:t.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:t.lineNumber,column:t.column+1});var n=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t),o=this._context.model.coordinatesConverter.modelPositionIsVisible(i);return{afterViewLineNumber:n.lineNumber,heightInPx:o?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.model.changeWhitespace(i=>{var n={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}},o=e,r=n;try{o(r)}catch(n){Object(d.f)(n)}n.addZone=oi,n.removeZone=oi,n.layoutZone=oi}),t}_addZone(e,t){var i=this._computeWhitespaceProps(t);e={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isVisible:!1,domNode:Object(f.b)(t.domNode),marginDomNode:t.marginDomNode?Object(f.b)(t.marginDomNode):null};return this._safeCallOnComputedHeight(e.delegate,i.heightInPx),e.domNode.setPosition("absolute"),e.domNode.domNode.style.width="100%",e.domNode.setDisplay("none"),e.domNode.setAttribute("monaco-view-zone",e.whitespaceId),this.domNode.appendChild(e.domNode),e.marginDomNode&&(e.marginDomNode.setPosition("absolute"),e.marginDomNode.domNode.style.width="100%",e.marginDomNode.setDisplay("none"),e.marginDomNode.setAttribute("monaco-view-zone",e.whitespaceId),this.marginDomNode.appendChild(e.marginDomNode)),this._zones[e.whitespaceId]=e,this.setShouldRender(),e.whitespaceId}_removeZone(e,t){var i;return!!this._zones.hasOwnProperty(t)&&(i=this._zones[t],delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0)}_layoutZone(e,t){var i;return!!this._zones.hasOwnProperty(t)&&(t=this._zones[t],i=this._computeWhitespaceProps(t.delegate),e.changeOneWhitespace(t.whitespaceId,i.afterViewLineNumber,i.heightInPx),this._safeCallOnComputedHeight(t.delegate,i.heightInPx),this.setShouldRender(),!0)}shouldSuppressMouseDownOnViewZone(e){return!!this._zones.hasOwnProperty(e)&&(e=this._zones[e],Boolean(e.delegate.suppressMouseDown))}_heightInPixels(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){Object(d.f)(e)}}_safeCallOnDomNodeTop(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){Object(d.f)(e)}}prepareRender(e){}render(e){var t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(let a=0,l=t.length;a<l;a++)i[t[a].id]=t[a],n=!0;var o=Object.keys(this._zones);for(let a=0,l=o.length;a<l;a++){var r=o[a],s=this._zones[r];let t=0,n=0,l="none";i.hasOwnProperty(r)?(t=i[r].verticalOffset-e.bigNumbersDelta,n=i[r].height,l="block",s.isVisible||(s.domNode.setAttribute("monaco-visible-view-zone","true"),s.isVisible=!0),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(i[r].verticalOffset))):(s.isVisible&&(s.domNode.removeAttribute("monaco-visible-view-zone"),s.isVisible=!1),this._safeCallOnDomNodeTop(s.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),s.domNode.setTop(t),s.domNode.setHeight(n),s.domNode.setDisplay(l),s.marginDomNode&&(s.marginDomNode.setTop(t),s.marginDomNode.setHeight(n),s.marginDomNode.setDisplay(l))}n&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}class si{constructor(e){this._theme=e}get type(){return this._theme.type}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class ai{constructor(e,t,i){this.configuration=e,this.theme=new si(t),this.model=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.model.addViewEventHandler(e)}removeEventHandler(e){this.model.removeViewEventHandler(e)}}class li{constructor(e,t,i,n){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=i,this._model=n,this.visibleRange=new ne.a(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class di extends E{constructor(e,t,i,n,o,r){super(),this._selections=[new m.a(1,1,1,1)],this._renderAnimationFrame=null;o=new We(t,n,o,e),this._context=new ai(t,i.getColorTheme(),n),this._configPixelRatio=this._context.configuration.options.get(128),this._context.addEventHandler(this),this._register(i.onDidColorThemeChange(e=>{this._context.theme.update(e),this._context.model.onDidColorThemeChange(),this.render(!0,!1)})),this._viewParts=[],this._textAreaHandler=new Be(this._context,o,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=Object(f.b)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=Object(f.b)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=Object(f.b)(document.createElement("div")),M.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new lt(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new ft(this._context,this._linesContent),this._viewZones=new ri(this._context),this._viewParts.push(this._viewZones),e=new Ut(this._context),this._viewParts.push(e),t=new Gt(this._context),this._viewParts.push(t),n=new Ze(this._context),this._viewParts.push(n),n.addDynamicOverlay(new ot(this._context)),n.addDynamicOverlay(new Jt(this._context)),n.addDynamicOverlay(new ut(this._context)),n.addDynamicOverlay(new st(this._context)),i=new Ye(this._context);var s,a=(this._viewParts.push(i),i.addDynamicOverlay(new rt(this._context)),i.addDynamicOverlay(new ct(this._context)),i.addDynamicOverlay(new bt(this._context)),i.addDynamicOverlay(new _t(this._context)),i.addDynamicOverlay(new Me(this._context)),new Te(this._context)),l=(i=(a.getDomNode().appendChild(this._viewZones.marginDomNode),a.getDomNode().appendChild(i.getDomNode()),this._viewParts.push(a),this._contentWidgets=new Qe(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new ni(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new Vt(this._context),this._viewParts.push(this._overlayWidgets),new $t(this._context)),this._viewParts.push(i),new jt(this._context));this._viewParts.push(l),e&&(s=this._scrollbar.getOverviewRulerLayoutInfo()).parent.insertBefore(e.getDomNode(),s.insertBefore),this._linesContent.appendChild(n.getDomNode()),this._linesContent.appendChild(i.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(a.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(t.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(l.getDomNode()),this.domNode.appendChild(this._overflowGuardContainer),r?r.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this._applyLayout(),this._pointerHandler=this._register(new ke(this._context,o,this._createPointerHandlerHelper()))}_flushAccumulatedAndRenderNow(){this._renderNow()}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{var e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new le(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new ie.a(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPositionRelativeToEditor:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new ie.a(e,t)))}}_applyLayout(){var e=this._context.configuration.options.get(130);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(127)+" "+Object(Ie.e)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this._configPixelRatio=this._context.configuration.options.get(128),this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=l.T(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){var e=()=>this._actualRender();try{e()}catch(e){Object(d.f)(e)}}_getViewPartsToRender(){let e=[],t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_actualRender(){if(l.N(this.domNode.domNode)){let i=this._getViewPartsToRender();if(this._viewLines.shouldRender()||0!==i.length){var e=this._context.viewLayout.getLinesViewportData(),t=(e=(this._context.model.setViewport(e.startLineNumber,e.endLineNumber,e.centeredLineNumber),new li(this._selections,e,this._context.viewLayout.getWhitespaceViewportData(),this._context.model)),this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(e),this._viewLines.shouldRender()&&(this._viewLines.renderText(e),this._viewLines.onDidRender(),i=this._getViewPartsToRender()),new T(this._context.viewLayout,e,this._viewLines));for(const e of i)e.prepareRender(t);for(const e of i)e.render(t),e.onDidRender();.001<Math.abs(p.a()-this._configPixelRatio)&&this._context.configuration.updatePixelRatio()}}}delegateVerticalScrollbarMouseDown(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)}restoreState(e){this._context.model.setScrollPosition({scrollTop:e.scrollTop},1),this._context.model.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.model.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){return e=this._context.model.validateModelPosition({lineNumber:e,column:t}),t=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(e),this._flushAccumulatedAndRenderNow(),e=this._viewLines.visibleRangeForPosition(new ie.a(t.lineNumber,t.column)),e?e.left:-1}getTargetAtClientPoint(e,t){return e=this._pointerHandler.getTargetAtClientPoint(e,t),e?Ve.convertViewToModelMouseTarget(e,this._context.model.coordinatesConverter):null}createOverviewRuler(e){return new qt(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){let t=e.position&&e.position.range||null;null===t&&null!==(i=e.position?e.position.position:null)&&(t=new ne.a(i.lineNumber,i.column,i.lineNumber,i.column));var i=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,t,i),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){var t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}class hi{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new oe.f(new ne.a(1,1,1,1),0,new ie.a(1,1),0),new oe.f(new ne.a(1,1,1,1),0,new ie.a(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new oe.d(this.modelState,this.viewState)}readSelectionFromMarkers(e){return e=e.model._getTrackedRange(this._selTrackedRange),0===this.modelState.selection.getDirection()?new m.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new m.a(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){var i=t.position,n=t.selectionStart.getStartPosition(),o=t.selectionStart.getEndPosition(),r=e.normalizePosition(i,2),s=this._validatePositionWithCache(e,n,i,r);e=this._validatePositionWithCache(e,o,n,s);return i.equals(r)&&n.equals(s)&&o.equals(e)?t:new oe.f(ne.a.fromPositions(s,e),t.selectionStartLeftoverVisibleColumns+n.column-s.column,r,t.leftoverVisibleColumns+i.column-r.column)}_setState(e,t,i){if(i=i&&hi._validateViewState(e.viewModel,i),t){var n=e.model.validateRange(t.selectionStart),o=t.selectionStart.equalsRange(n)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),s=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new oe.f(n,o,r,s)}else{if(!i)return;n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),o=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position)),t=new oe.f(n,i.selectionStartLeftoverVisibleColumns,o,i.leftoverVisibleColumns)}i=i?(r=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),s=e.coordinatesConverter.validateViewPosition(i.position,t.position),new oe.f(r,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)):(n=e.coordinatesConverter.convertModelPositionToViewPosition(new ie.a(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),o=e.coordinatesConverter.convertModelPositionToViewPosition(new ie.a(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),r=new ne.a(n.lineNumber,n.column,o.lineNumber,o.column),s=e.coordinatesConverter.convertModelPositionToViewPosition(t.position),new oe.f(r,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)),this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class ci{constructor(e){this.context=e,this.primaryCursor=new hi(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}dispose(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()}startTrackingSelections(){this.primaryCursor.startTrackingSelection(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].startTrackingSelection(this.context)}stopTrackingSelections(){this.primaryCursor.stopTrackingSelection(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){this.primaryCursor.ensureValidState(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].ensureValidState(this.context)}readSelectionFromMarkers(){var e=[];e[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(let t=0,i=this.secondaryCursors.length;t<i;t++)e[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return e}getAll(){var e=[];e[0]=this.primaryCursor.asCursorState();for(let t=0,i=this.secondaryCursors.length;t<i;t++)e[t+1]=this.secondaryCursors[t].asCursorState();return e}getViewPositions(){var e=[];e[0]=this.primaryCursor.viewState.position;for(let t=0,i=this.secondaryCursors.length;t<i;t++)e[t+1]=this.secondaryCursors[t].viewState.position;return e}getTopMostViewPosition(){let e=this.primaryCursor.viewState.position;for(let i=0,n=this.secondaryCursors.length;i<n;i++){var t=this.secondaryCursors[i].viewState.position;t.isBefore(e)&&(e=t)}return e}getBottomMostViewPosition(){let e=this.primaryCursor.viewState.position;for(let i=0,n=this.secondaryCursors.length;i<n;i++){var t=this.secondaryCursors[i].viewState.position;e.isBeforeOrEqual(t)&&(e=t)}return e}getSelections(){var e=[];e[0]=this.primaryCursor.modelState.selection;for(let t=0,i=this.secondaryCursors.length;t<i;t++)e[t+1]=this.secondaryCursors[t].modelState.selection;return e}getViewSelections(){var e=[];e[0]=this.primaryCursor.viewState.selection;for(let t=0,i=this.secondaryCursors.length;t<i;t++)e[t+1]=this.secondaryCursors[t].viewState.selection;return e}setSelections(e){this.setStates(oe.d.fromModelSelections(e))}getPrimaryCursor(){return this.primaryCursor.asCursorState()}setStates(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){var t=this.secondaryCursors.length,i=e.length;if(t<i){var n=i-t;for(let e=0;e<n;e++)this._addSecondaryCursor()}else if(i<t){var o=t-i;for(let e=0;e<o;e++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(let r=0;r<i;r++)this.secondaryCursors[r].setState(this.context,e[r].modelState,e[r].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.secondaryCursors.push(new hi(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length}getLastAddedCursorIndex(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)}_getAll(){var e=[];e[0]=this.primaryCursor;for(let t=0,i=this.secondaryCursors.length;t<i;t++)e[t+1]=this.secondaryCursors[t];return e}normalize(){if(0!==this.secondaryCursors.length){var e=this._getAll(),t=[];for(let i=0,n=e.length;i<n;i++)t.push({index:i,selection:e[i].modelState.selection});t.sort((e,t)=>e.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber);for(let d=0;d<t.length-1;d++){var i=t[d],n=t[d+1],o=i.selection,r=n.selection;if(this.context.cursorConfig.multiCursorMergeOverlapping){let h;if(h=r.isEmpty()||o.isEmpty()?r.getStartPosition().isBeforeOrEqual(o.getEndPosition()):r.getStartPosition().isBefore(o.getEndPosition())){r=i.index<n.index?d:d+1,o=i.index<n.index?d+1:d;var s=t[o].index,a=(i=t[r].index,n=t[o].selection,t[r].selection);if(!n.equalsSelection(a)){var l=n.plusRange(a);n=n.selectionStartLineNumber===n.startLineNumber&&n.selectionStartColumn===n.startColumn,a=a.selectionStartLineNumber===a.startLineNumber&&a.selectionStartColumn===a.startColumn;let o,d;s===this.lastAddedCursorIndex?(o=n,this.lastAddedCursorIndex=i):o=a,d=o?new m.a(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn):new m.a(l.endLineNumber,l.endColumn,l.startLineNumber,l.startColumn),t[r].selection=d,n=oe.d.fromModelSelection(d),e[i].setState(this.context,n.modelState,n.viewState)}for(const e of t)e.index>s&&e.index--;e.splice(s,1),t.splice(o,1),this._removeSecondaryCursor(s-1),d--}}}}}}var ui=i("b272"),gi=i("191f"),pi=i("338e");class mi{constructor(){this.type=0}}class fi{constructor(){this.type=1}}class _i{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class bi{constructor(e,t){this.type=3,this.selections=e,this.modelSelections=t}}class vi{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}class Ci{constructor(){this.type=5}}class wi{constructor(e){this.type=6,this.isFocused=e}}class yi{constructor(){this.type=7}}class Si{constructor(){this.type=8}}class Li{constructor(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t}}class xi{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class ki{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Di{constructor(e,t,i,n,o,r){this.type=12,this.source=e,this.range=t,this.selections=i,this.verticalType=n,this.revealHorizontal=o,this.scrollType=r}}class Ni{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Oi{constructor(){this.type=14}}class Ei{constructor(e){this.type=15,this.ranges=e}}class Ii{constructor(){this.type=16}}class Mi{constructor(){this.type=17}}class Ti extends c.a{constructor(){super(),this._onEvent=this._register(new h.b),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t<i;t++)if(this._outgoingEvents[t].kind===e.kind)return void(this._outgoingEvents[t]=this._outgoingEvents[t].merge(e));this._outgoingEvents.push(e)}_emitOutgoingEvents(){for(;0<this._outgoingEvents.length;){if(this._collector||this._isConsumingViewEventQueue)return;var e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t];this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new Ai),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const t of e)this._addOutgoingEvent(t);0<t.length&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){var e=this._viewEventQueue,t=(this._viewEventQueue=null,this._eventHandlers.slice(0));for(const i of t)i.handleEvents(e)}}}class Ai{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Ri{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(e){return 0!==e.kind?this:new Ri(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class Pi{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(e){return 1!==e.kind?this:new Pi(this.oldHasFocus,e.hasFocus)}}class Fi{constructor(e,t,i,n,o,r,s,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=o,this.scrollLeft=r,this.scrollHeight=s,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!(this.scrollWidthChanged||this.scrollLeftChanged||this.scrollHeightChanged||this.scrollTopChanged)}merge(e){return 2!==e.kind?this:new Fi(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class Bi{constructor(){this.kind=3}isNoOp(){return!1}merge(e){return this}}class ji{constructor(e,t,i,n,o,r,s){this.kind=5,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=o,this.reason=r,this.reachedMaxCursorCount=s}static _selectionsAreEqual(e,t){if(e||t){if(!e||!t)return!1;var i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(!e[n].equalsSelection(t[n]))return!1}return!0}isNoOp(){return ji._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}merge(e){return 5!==e.kind?this:new ji(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class Wi{constructor(){this.kind=4}isNoOp(){return!1}merge(e){return this}}class Vi{constructor(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getCursorStates()}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class Hi{constructor(e,t,i){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}static getAllAutoClosedCharacters(e){let t=[];for(const i of e)t=t.concat(i.getAutoClosedCharactersRanges());return t}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){var e=[];for(let i=0;i<this._autoClosedCharactersDecorations.length;i++){var t=this._model.getDecorationRange(this._autoClosedCharactersDecorations[i]);t&&e.push(t)}return e}isValid(e){var t=[];for(let n=0;n<this._autoClosedEnclosingDecorations.length;n++){var i=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(i&&(t.push(i),i.startLineNumber!==i.endLineNumber))return!1}t.sort(ne.a.compareRangesUsingStarts),e.sort(ne.a.compareRangesUsingStarts);for(let n=0;n<e.length;n++){if(n>=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0}}class zi extends c.a{constructor(e,t,i,n){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new oe.c(this._model,this._viewModel,this._coordinatesConverter,n),this._cursors=new ci(this.context),this._hasFocus=!1,this._isHandling=!1,this._isDoingComposition=!1,this._selectionsWhenCompositionStarted=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=Object(c.f)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new oe.c(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(0<this._autoClosedActions.length){var e=this._cursors.getSelections();for(let i=0;i<this._autoClosedActions.length;i++){var t=this._autoClosedActions[i];t.isValid(e)||(t.dispose(),this._autoClosedActions.splice(i,1),i--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,i,n){let o=!1;null!==n&&n.length>zi.MAX_CURSOR_COUNT&&(n=n.slice(0,zi.MAX_CURSOR_COUNT),o=!0);var r=new Vi(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,o)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,i,n){var o=this._cursors.getViewPositions();1<o.length?this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),0,i,n):(o=o[0],o=new ne.a(o.lineNumber,o.column,o.lineNumber,o.column),this._emitCursorRevealRange(e,t,o,null,0,i,n))}_revealPrimaryCursor(e,t,i,n,o){var r=this._cursors.getViewPositions();1<r.length?this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),i,n,o):(r=r[0],r=new ne.a(r.lineNumber,r.column,r.lineNumber,r.column),this._emitCursorRevealRange(e,t,r,null,i,n,o))}_emitCursorRevealRange(e,t,i,n,o,r,s){e.emitViewEvent(new Di(t,i,n,o,r,s))}saveState(){var e=[],t=this._cursors.getSelections();for(let n=0,o=t.length;n<o;n++){var i=t[n];e.push({inSelectionMode:!i.isEmpty(),selectionStart:{lineNumber:i.selectionStartLineNumber,column:i.selectionStartColumn},position:{lineNumber:i.positionLineNumber,column:i.positionColumn}})}return e}restoreState(e,t){var i=[];for(let o=0,r=t.length;o<r;o++){var n=t[o];let e=1,r=1,s=(n.position&&n.position.lineNumber&&(e=n.position.lineNumber),n.position&&n.position.column&&(r=n.position.column),e),a=r;n.selectionStart&&n.selectionStart.lineNumber&&(s=n.selectionStart.lineNumber),n.selectionStart&&n.selectionStart.column&&(a=n.selectionStart.column),i.push({selectionStartLineNumber:s,selectionStartColumn:a,positionLineNumber:e,positionColumn:r})}this.setStates(e,"restoreState",0,oe.d.fromModelSelections(i)),this.revealPrimary(e,"restoreState",!0,1)}onModelContentChanged(e,t){var i;if(t instanceof pi.c){if(!this._isHandling){this._isHandling=!0;try{this.setStates(e,"modelChange",0,this.getCursorStates())}finally{this._isHandling=!1}}}else this._knownModelVersionId=t.versionId,this._isHandling||(i=t.containsEvent(1),this._prevEditOperationType=0,i?(this._cursors.dispose(),this._cursors=new ci(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1)):this._hasFocus&&t.resultingSelection&&0<t.resultingSelection.length?(i=oe.d.fromModelSelections(t.resultingSelection),this.setStates(e,"modelChange",t.isUndoing?5:t.isRedoing?6:2,i)&&this._revealPrimaryCursor(e,"modelChange",0,!0,0)):(t=this._cursors.readSelectionFromMarkers(),this.setStates(e,"modelChange",2,oe.d.fromModelSelections(t))))}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){var e,t;return this._columnSelectData||(e=(t=this._cursors.getPrimaryCursor()).viewState.selectionStart.getStartPosition(),t=t.viewState.position,{isReal:!1,fromViewLineNumber:e.lineNumber,fromViewVisualColumn:oe.a.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,e),toViewLineNumber:t.lineNumber,toViewVisualColumn:oe.a.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,t)})}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,oe.d.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){var i=[],n=[];for(let s=0,a=e.length;s<a;s++)i.push({range:e[s],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),n.push({range:t[s],options:{description:"auto-closed-enclosing",stickiness:1}});var o=this._model.deltaDecorations([],i),r=this._model.deltaDecorations([],n);this._autoClosedActions.push(new Hi(this._model,o,r))}_executeEditOperation(e){if(e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=Ui.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);var i=[],n=[];for(let t=0;t<e.commands.length;t++){var o=e.commands[t];o instanceof gi.b&&o.enclosingRange&&o.closeCharacterRange&&(i.push(o.closeCharacterRange),n.push(o.enclosingRange))}0<i.length&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,o){var r,s,a,l=new Vi(this._model,this);return!l.equals(n)&&(r=this._cursors.getSelections(),s=this._cursors.getViewSelections(),e.emitViewEvent(new bi(s,r)),n&&n.cursorState.length===l.cursorState.length&&!l.cursorState.some((e,t)=>!e.modelState.equals(n.cursorState[t].modelState))||(s=n?n.cursorState.map(e=>e.modelState.selection):null,a=n?n.modelVersionId:0,e.emitOutgoingEvent(new ji(s,r,a,l.modelVersionId,t||"keyboard",i,o))),!0)}_findAutoClosingPairs(e){if(!e.length)return null;var t=[];for(let r=0,s=e.length;r<s;r++){var i=e[r];if(!i.text||0<=i.text.indexOf("\n"))return null;var n=i.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!n)return null;var o=n[1];o=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(o);if(!o||1!==o.length)return null;if(o=o[0].open,n=i.text.length-n[2].length-1,i=i.text.lastIndexOf(o,n-1),-1===i)return null;t.push([i,n])}return t}executeEdits(e,t,i,n){let o=null,r=((o="snippet"===t?this._findAutoClosingPairs(i):o)&&(i[0]._isTracked=!0),[]),s=[];i=this._model.pushEditOperations(this.getSelections(),i,e=>{if(o)for(let n=0,h=o.length;n<h;n++){var[t,i]=o[n],a=e[n],l=a.range.startLineNumber,t=a.range.startColumn-1+t;a=a.range.startColumn-1+i;r.push(new ne.a(l,a+1,l,a+2)),s.push(new ne.a(l,t+1,l,a+2))}var d=n(e);return d&&(this._isHandling=!0),d}),i&&(this._isHandling=!1,this.setSelections(e,t,i,0)),0<r.length&&this._pushAutoClosedAction(r,s)}_executeEdit(e,t,i,n=0){if(!this.context.cursorConfig.readOnly){var o=new Vi(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(e){Object(d.f)(e)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,o,!1)&&this._revealPrimaryCursor(t,i,0,!0,0)}}setIsDoingComposition(e){this._isDoingComposition=e}getAutoClosedCharacters(){return Hi.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(e,t){this._executeEdit(()=>{"keyboard"===t&&(this._executeEditOperation(gi.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),this.getAutoClosedCharacters())),this._selectionsWhenCompositionStarted=null)},e,t)}type(e,t,i){this._executeEdit(()=>{if("keyboard"===i){var e=t.length;let i=0;for(;i<e;){var n=De.K(t,i),o=t.substr(i,n);this._executeEditOperation(gi.a.typeWithInterceptors(this._isDoingComposition,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),o)),i+=n}}else this._executeEditOperation(gi.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))},e,i)}compositionType(e,t,i,n,o,r){var s;0===t.length&&0===i&&0===n?0!==o&&(s=this.getSelections().map(e=>(e=e.getPosition(),new m.a(e.lineNumber,e.column+o,e.lineNumber,e.column+o))),this.setSelections(e,r,s,0)):this._executeEdit(()=>{this._executeEditOperation(gi.a.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,o))},e,r)}paste(e,t,i,n,o){this._executeEdit(()=>{this._executeEditOperation(gi.a.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))},e,o,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(ui.a.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,i){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new oe.e(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}executeCommands(e,t,i){this._executeEdit(()=>{this._executeEditOperation(new oe.e(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,i)}}zi.MAX_CURSOR_COUNT=1e4;class Ui{static executeCommands(e,t,i){var n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]};e=this._innerExecuteCommands(n,i);for(let o=0,r=n.trackedRanges.length;o<r;o++)n.model._setTrackedRange(n.trackedRanges[o],null,0);return e}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;var i=this._getEditOperations(e,t);if(0===i.operations.length)return null;var n=i.operations,o=this._getLoserCursorMap(n);if(o.hasOwnProperty("0"))return null;var r=[];for(let d=0,h=n.length;d<h;d++)o.hasOwnProperty(n[d].identifier.major.toString())||r.push(n[d]);i.hadTrackedEditOperation&&0<r.length&&(r[0]._isTracked=!0);let s=e.model.pushEditOperations(e.selectionsBefore,r,i=>{let n=[];for(let t=0;t<e.selectionsBefore.length;t++)n[t]=[];for(const e of i)e.identifier&&n[e.identifier.major].push(e);var o=(e,t)=>e.identifier.minor-t.identifier.minor,r=[];for(let s=0;s<e.selectionsBefore.length;s++)0<n[s].length?(n[s].sort(o),r[s]=t[s].computeCursorState(e.model,{getInverseEditOperations:()=>n[s],getTrackedSelection:t=>{t=parseInt(t,10);var i=e.model._getTrackedRange(e.trackedRanges[t]);return 0===e.trackedRangesDirection[t]?new m.a(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new m.a(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):r[s]=e.selectionsBefore[s];return r});s=s||e.selectionsBefore;var a,l=[];for(a in o)o.hasOwnProperty(a)&&l.push(parseInt(a,10));l.sort((e,t)=>t-e);for(const d of l)s.splice(d,1);return s}static _arrayIsEmpty(e){for(let t=0,i=e.length;t<i;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let i=[],n=!1;for(let r=0,s=t.length;r<s;r++){var o=t[r];o&&(o=this._getEditOperationsFromCommand(e,r,o),i=i.concat(o.operations),n=n||o.hadTrackedEditOperation)}return{operations:i,hadTrackedEditOperation:n}}static _getEditOperationsFromCommand(e,t,i){let n=[],o=0;const r=(e,r,s=!1)=>{ne.a.isEmpty(e)&&""===r||n.push({identifier:{major:t,minor:o++},range:e,text:r,forceMoveMarkers:s,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let s=!1;var a={addEditOperation:r,addTrackedEditOperation:(e,t,i)=>{s=!0,r(e,t,i)},trackSelection:(t,i)=>{let n;t=m.a.liftSelection(t),n=t.isEmpty()?"boolean"==typeof i?i?2:3:(i=e.model.getLineMaxColumn(t.startLineNumber),t.startColumn===i?2:3):1;i=e.trackedRanges.length;var o=e.model._setTrackedRange(null,t,n);return e.trackedRanges[i]=o,e.trackedRangesDirection[i]=t.getDirection(),i.toString()}};try{i.getEditOperations(e.model,a)}catch(a){return Object(d.f)(a),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:s}}static _getLoserCursorMap(e){(e=e.slice(0)).sort((e,t)=>-ne.a.compareRangesUsingEnds(e.range,t.range));var t={};for(let o=1;o<e.length;o++){var i=e[o-1],n=e[o];if(ne.a.getStartPosition(i.range).isBefore(ne.a.getEndPosition(n.range))){let r;t[(r=(i.identifier.major>n.identifier.major?i:n).identifier.major).toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===r&&(e.splice(t,1),t<o&&o--,t--);0<o&&o--}}return t}}var Ki=i("f58f"),qi=i("8ae8"),$i=i("c101"),Gi=i("4d05"),Zi=i("42e39");class Yi{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){var t,i,n;this._hasPending&&(t=this._inserts,i=this._changes,n=this._removes,this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n))}}class Xi{constructor(e,t,i,n,o){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=o,this.prefixSum=0}}class Qi{constructor(e,t,i,n){this._instanceId=De.P(++Qi.INSTANCE_COUNT),this._pendingChanges=new Yi,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,o=e.length;for(;n<o;){var r=n+o>>>1;t===e[r].afterLineNumber?i<e[r].ordinal?o=r:n=1+r:t<e[r].afterLineNumber?o=r:n=1+r}return n}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{e({insertWhitespace:(e,i,n,o)=>{t=!0,e|=0,i|=0,n|=0,o|=0;var r=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new Xi(r,e,i,n,o)),r},changeOneWhitespace:(e,i,n)=>{t=!0,this._pendingChanges.change({id:e,newAfterLineNumber:i|=0,newHeight:n|=0})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((0<e.length||0<i.length)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){var n=this._findWhitespaceIndex(e.id);-1!==n&&this._removeWhitespace(n)}}else{const n=new Set;for(const e of i)n.add(e.id);const o=new Map;for(const e of t)o.set(e.id,e);i=e=>{var t,i=[];for(const r of e)n.has(r.id)||(o.has(r.id)&&(t=o.get(r.id),r.afterLineNumber=t.newAfterLineNumber,r.height=t.newHeight),i.push(r));return i},t=i(this._arr).concat(i(e)),t.sort((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber),this._arr=t,this._prefixSumValidIndex=-1}}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){var t=Qi.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){var t=this._arr;for(let i=0,n=t.length;i<n;i++)if(t[i].id===e)return i;return-1}_changeOneWhitespace(e,t,i){e=this._findWhitespaceIndex(e),-1!==e&&(this._arr[e].height!==i&&(this._arr[e].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)),this._arr[e].afterLineNumber!==t)&&(i=this._arr[e],this._removeWhitespace(e),i.afterLineNumber=t,this._insertWhitespace(i))}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),this._lineCount-=(t|=0)-(e|=0)+1;for(let n=0,o=this._arr.length;n<o;n++){var i=this._arr[n].afterLineNumber;e<=i&&i<=t?this._arr[n].afterLineNumber=e-1:t<i&&(this._arr[n].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),this._lineCount+=(t|=0)-(e|=0)+1;for(let i=0,n=this._arr.length;i<n;i++)e<=this._arr[i].afterLineNumber&&(this._arr[i].afterLineNumber+=t-e+1)}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let i=t;i<=e;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){return this._checkPendingChanges(),this._lineHeight*this._lineCount+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){return this._checkPendingChanges(),e=this._findLastWhitespaceBeforeLineNumber(e|=0),-1===e?0:this.getWhitespacesAccumulatedHeight(e)}_findLastWhitespaceBeforeLineNumber(e){e|=0;var t=this._arr;let i=0,n=t.length-1;for(;i<=n;){var o=n-i|0;o=i+(o/2|0)|0;if(t[o].afterLineNumber<e){if(1+o>=t.length||t[1+o].afterLineNumber>=e)return o;i=1+o|0}else n=o-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){return e=this._findLastWhitespaceBeforeLineNumber(e|=0)+1,e<this._arr.length?e:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),this._findFirstWhitespaceAfterLineNumber(e|=0)}getVerticalOffsetForLineNumber(e){let t;return this._checkPendingChanges(),e|=0,t=1<e?this._lineHeight*(e-1):0,e=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e),t+e+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;t<i;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){return this._checkPendingChanges(),this.getLinesTotalHeight()<e}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){return 0!==this._paddingBottom&&(this._checkPendingChanges(),e>=this.getLinesTotalHeight()-this._paddingBottom)}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;var t=0|this._lineCount,i=this._lineHeight;let n=1,o=t;for(;n<o;){var r=(n+o)/2|0,s=0|this.getVerticalOffsetForLineNumber(r);if(s+i<=e)n=1+r;else{if(s<=e)return r;o=r}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),t|=0;var i=this._lineHeight,n=0|this.getLineNumberAtOrAfterVerticalOffset(e|=0),o=0|this.getVerticalOffsetForLineNumber(n);let r=0|this._lineCount,s=0|this.getFirstWhitespaceIndexAfterLineNumber(n);var a=0|this.getWhitespacesCount();let l,d,h=(l=-1===s?(s=a,d=r+1,0):(d=0|this.getAfterLineNumberForWhitespaceIndex(s),0|this.getHeightForWhitespaceIndex(s)),o),c=h,u=0;5e5<=o&&(u=5e5*Math.floor(o/5e5),u=Math.floor(u/i)*i,c-=u);var g,p,m=[],f=e+(t-e)/2;let _=-1;for(let w=n;w<=r;w++){for(-1===_&&(p=(g=h)+i,g<=f&&f<p||f<g)&&(_=w),h+=i,m[w-n]=c,c+=i;d===w;)c+=l,h+=l,++s>=a?d=r+1:(d=0|this.getAfterLineNumberForWhitespaceIndex(s),l=0|this.getHeightForWhitespaceIndex(s));if(h>=t){r=w;break}}-1===_&&(_=r);var b=0|this.getVerticalOffsetForLineNumber(r);let v=n,C=r;return v<C&&o<e&&v++,v<C&&t<b+i&&C--,{bigNumbersDelta:u,startLineNumber:n,endLineNumber:r,relativeVerticalOffset:m,centeredLineNumber:_,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:C}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges();var t=this.getAfterLineNumberForWhitespaceIndex(e|=0);let i,n;return i=1<=t?this._lineHeight*t:0,n=0<e?this.getWhitespacesAccumulatedHeight(e-1):0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i)<=e)return-1;for(;t<i;){var n=Math.floor((t+i)/2),o=this.getVerticalOffsetForWhitespaceIndex(n);if(o+this.getHeightForWhitespaceIndex(n)<=e)t=n+1;else{if(o<=e)return n;i=n}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges();var t,i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e|=0);return i<0||i>=this.getWhitespacesCount()||e<(e=this.getVerticalOffsetForWhitespaceIndex(i))?null:(t=this.getHeightForWhitespaceIndex(i),{id:this.getIdForWhitespaceIndex(i),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(i),verticalOffset:e,height:t})}getWhitespaceViewportData(e,t){this._checkPendingChanges(),t|=0;e=this.getWhitespaceIndexAtOrAfterVerticallOffset(e|=0);var i=this.getWhitespacesCount()-1;if(e<0)return[];var n=[];for(let s=e;s<=i;s++){var o=this.getVerticalOffsetForWhitespaceIndex(s),r=this.getHeightForWhitespaceIndex(s);if(t<=o)break;n.push({id:this.getIdForWhitespaceIndex(s),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(s),verticalOffset:o,height:r})}return n}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),this._arr[e|=0].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),this._arr[e|=0].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),this._arr[e|=0].height}}Qi.INSTANCE_COUNT=0;class Ji{constructor(e,t,i,n){(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(n|=0)<0&&(n=0),this.width=e=(e|=0)<0?0:e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class en extends c.a{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new h.b),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Ji(0,0,0,0),this._scrollable=this._register(new Zi.a(e,t)),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){var t,i,n;!this._dimensions.equals(e)&&(t=this._dimensions,this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0),i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight,i||n)&&this._onDidContentSizeChange.fire(new Ri(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class tn extends c.a{constructor(e,t,i){super(),this._configuration=e;e=this._configuration.options;var n=e.get(130),o=e.get(74);this._linesLayout=new Qi(t,e.get(58),o.top,o.bottom),this._scrollable=this._register(new en(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Ji(n.contentWidth,0,n.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(103)?125:0)}onConfigurationChanged(e){var t,i,n,o=this._configuration.options;e.hasChanged(58)&&this._linesLayout.setLineHeight(o.get(58)),e.hasChanged(74)&&(t=o.get(74),this._linesLayout.setPadding(t.top,t.bottom)),e.hasChanged(130)?(o=(t=o.get(130)).contentWidth,t=t.height,n=(i=this._scrollable.getScrollDimensions()).contentWidth,this._scrollable.setScrollDimensions(new Ji(o,i.contentWidth,t,this._getContentHeight(o,t,n)))):this._updateHeight(),e.hasChanged(103)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){var i=this._configuration.options.get(92);return 2===i.horizontal||t<=e?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){var n=this._configuration.options;let o=this._linesLayout.getLinesTotalHeight();return n.get(94)?o+=Math.max(0,t-n.get(58)-n.get(74).bottom):o+=this._getHorizontalScrollbarHeight(e,i),o}_updateHeight(){var e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new Ji(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new yt.h(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new yt.h(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){var t,i=this._configuration.options,n=i.get(131),o=i.get(42);return n.isViewportWrapping?(n=i.get(130),t=i.get(64),e>n.contentWidth+o.typicalHalfwidthCharacterWidth&&t.enabled&&"right"===t.side?e+n.verticalScrollbarWidth:e):(t=i.get(93)*o.typicalHalfwidthCharacterWidth,n=this._linesLayout.getWhitespaceMinWidth(),Math.max(e+t,n))}setMaxLineWidth(e){var t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Ji(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){var e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){return e=this._linesLayout.changeWhitespace(e),e&&this.onHeightMaybeChanged(),e}getVerticalOffsetForLineNumber(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){var t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),this._linesLayout.getLinesViewportData(e=e<0?0:e,e+t.height)}getWhitespaceViewportData(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){var i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var nn=i("e1b5"),on=i("b57f"),rn=i("2de5");class sn{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}}class an{constructor(e){this._counts=e,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let i=this._validEndIndex+1,n=this._counts.length;i<n;i++){var e=this._counts[i],t=0<i?this._modelToView[i-1]:0;this._modelToView[i]=t+e;for(let n=0;n<e;n++)this._viewToModel[t+n]=i}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1}}changeValue(e,t){this._counts[e]!==t&&(this._counts[e]=t,this._invalidate(e))}removeValues(e,t){this._counts.splice(e,t),this._invalidate(e)}insertValues(e,t){this._counts=tt.b(this._counts,e,t),this._invalidate(e)}getTotalValue(){return this._ensureValid(),this._viewToModel.length}getAccumulatedValue(e){return this._ensureValid(),this._modelToView[e]}getIndexOf(e){this._ensureValid();var t=this._viewToModel[e],i=0<t?this._modelToView[t-1]:0;return new rn.b(t,e-i)}}class ln{constructor(e,t,i,n,o,r,s,a,l){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=o,this.tabSize=r,this.wrappingStrategy=s,this.wrappingColumn=a,this.wrappingIndent=l,this._constructLines(!0,null)}dispose(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])}createCoordinatesConverter(){return new sn(this)}_constructLines(e,t){this.lines=[],e&&(this.hiddenAreasIds=[]);var i=this.model.getLinesContent(),n=(e=this.model.getInjectedTextDecorations(this._editorId),i.length),o=this.createLineBreaksComputer(),r=new tt.a(pi.b.fromDecorations(e));for(let m=0;m<n;m++){var s=r.takeWhile(e=>e.lineNumber===m+1);o.addRequest(i[m],s,t?t[m]:null)}var a=o.finalize(),l=[],d=this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e)).sort(ne.a.compareRangesUsingStarts);let h=1,c=0,u=-1,g=u+1<d.length?c+1:n+2;for(let m=0;m<n;m++){var p=m+1;p=(p===g&&(u++,h=d[u].startLineNumber,c=d[u].endLineNumber,g=u+1<d.length?c+1:n+2),p>=h&&p<=c),p=pn(a[m],!p);l[m]=p.getViewLineCount(),this.lines[m]=p}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new an(l)}getHiddenAreas(){return this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e))}_reduceRanges(e){if(0===e.length)return[];var t=e.map(e=>this.model.validateRange(e)).sort(ne.a.compareRangesUsingStarts),i=[];let n=t[0].startLineNumber,o=t[0].endLineNumber;for(let s=1,a=t.length;s<a;s++){var r=t[s];r.startLineNumber>o+1?(i.push(new ne.a(n,1,o,1)),n=r.startLineNumber,o=r.endLineNumber):r.endLineNumber>o&&(o=r.endLineNumber)}return i.push(new ne.a(n,1,o,1)),i}setHiddenAreas(e){var t=this._reduceRanges(e),i=this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e)).sort(ne.a.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let n=0;n<t.length;n++)if(!t[n].equalsRange(i[n])){e=!0;break}if(!e)return!1}var n=[];for(const c of t)n.push({range:c,options:on.a.EMPTY});this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,n);var o=t;let r=1,s=0,a=-1,l=a+1<o.length?s+1:this.lines.length+2,d=!1;for(let c=0;c<this.lines.length;c++){var h=c+1;h===l&&(a++,r=o[a].startLineNumber,s=o[a].endLineNumber,l=a+1<o.length?s+1:this.lines.length+2);let e=!1;h>=r&&h<=s?this.lines[c].isVisible()&&(this.lines[c]=this.lines[c].setVisible(!1),e=!0):(d=!0,this.lines[c].isVisible()||(this.lines[c]=this.lines[c].setVisible(!0),e=!0)),e&&(h=this.lines[c].getViewLineCount(),this.prefixSumComputer.changeValue(c,h))}return d||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.lines.length?1:this.lines[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n){var o=this.fontInfo.equals(e),r=this.wrappingStrategy===t,s=this.wrappingColumn===i,a=this.wrappingIndent===n;if(o&&r&&s&&a)return!1;o=o&&r&&!s&&a,this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n;let l=null;if(o){l=[];for(let e=0,t=this.lines.length;e<t;e++)l[e]=this.lines[e].getLineBreakData()}return this._constructLines(!1,l),!0}createLineBreaksComputer(){return("advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory).createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,i){var n;return!e||e<=this._validModelVersionId?null:(e=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,n=this.prefixSumComputer.getAccumulatedValue(i-1),this.lines.splice(t-1,i-t+1),this.prefixSumComputer.removeValues(t-1,i-t+1),new xi(e,n))}onModelLinesInserted(e,t,i,n){if(!e||e<=this._validModelVersionId)return null;var o=2<t&&!this.lines[t-2].isVisible();e=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1;let r=0;var s=[],a=[];for(let d=0,h=n.length;d<h;d++){var l=pn(n[d],!o);l=(s.push(l),l.getViewLineCount());r+=l,a[d]=l}return this.lines=this.lines.slice(0,t-1).concat(s).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,a),new ki(e,e+r-1)}onModelLineChanged(e,t,i){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];e=t-1;var n=this.lines[e].getViewLineCount();i=pn(i,this.lines[e].isVisible()),this.lines[e]=i,i=this.lines[e].getViewLineCount();let o=!1,r=0,s=-1,a=0,l=-1,d=0,h=-1;return i<n?(r=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,s=r+i-1,d=s+1,h=d+(n-i)-1,o=!0):n<i?(r=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,s=r+n-1,a=s+1,l=a+(i-n)-1,o=!0):(r=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,s=r+i-1),this.prefixSumComputer.changeValue(e,i),n=r<=s?new Li(r,s):null,t=a<=l?new ki(a,l):null,e=d<=h?new xi(d,h):null,[o,n,t,e]}acceptVersionId(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.prefixSumComputer.getTotalValue()}_toValidViewLineNumber(e){var t;return e<1?1:(t=this.getViewLineCount())<e?t:0|e}getActiveIndentGuide(e,t,i){return e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i),e=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),t=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),i=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),e=this.model.getActiveIndentGuide(e.lineNumber,t.lineNumber,i.lineNumber),t=this.convertModelPositionToViewPosition(e.startLineNumber,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,this.model.getLineMaxColumn(e.endLineNumber)),{startLineNumber:t.lineNumber,endLineNumber:i.lineNumber,indent:e.indent}}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let o=[];var r=[],s=[],a=i.lineNumber-1,l=n.lineNumber-1;let d=null;for(let v=a;v<=l;v++){var h=this.lines[v];if(h.isVisible()){var c=h.getViewLineNumberOfModelPosition(0,v===a?i.column:1),u=h.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(v+1)),g=u-c+1;let e=0;1<g&&1===h.getViewLineMinColumn(this.model,v+1,u)&&(e=0===c?1:2),r.push(g),s.push(e),null===d&&(d=new ie.a(v+1,0))}else null!==d&&(o=o.concat(this.model.getLinesIndentGuides(d.lineNumber,v)),d=null)}null!==d&&(o=o.concat(this.model.getLinesIndentGuides(d.lineNumber,n.lineNumber)),d=null);var p=t-e+1,m=new Array(p);let f=0;for(let v=0,C=o.length;v<C;v++){let e=o[v];var _=Math.min(p-f,r[v]),b=s[v];let t;t=2===b?0:1===b?1:_;for(let i=0;i<_;i++)i===t&&(e=0),m[f++]=e}return m}getViewLineContent(e){e=this._toValidViewLineNumber(e);e=this.prefixSumComputer.getIndexOf(e-1);var t=e.index;e=e.remainder;return this.lines[t].getViewLineContent(this.model,t+1,e)}getViewLineLength(e){e=this._toValidViewLineNumber(e);e=this.prefixSumComputer.getIndexOf(e-1);var t=e.index;e=e.remainder;return this.lines[t].getViewLineLength(this.model,t+1,e)}getViewLineMinColumn(e){e=this._toValidViewLineNumber(e);e=this.prefixSumComputer.getIndexOf(e-1);var t=e.index;e=e.remainder;return this.lines[t].getViewLineMinColumn(this.model,t+1,e)}getViewLineMaxColumn(e){e=this._toValidViewLineNumber(e);e=this.prefixSumComputer.getIndexOf(e-1);var t=e.index;e=e.remainder;return this.lines[t].getViewLineMaxColumn(this.model,t+1,e)}getViewLineData(e){e=this._toValidViewLineNumber(e);e=this.prefixSumComputer.getIndexOf(e-1);var t=e.index;e=e.remainder;return this.lines[t].getViewLineData(this.model,t+1,e)}getViewLinesData(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);var n=this.prefixSumComputer.getIndexOf(e-1);let o=e;var r=n.index,s=n.remainder,a=[];for(let c=r,u=this.model.getLineCount();c<u;c++){var l=this.lines[c];if(l.isVisible()){var d=c===r?s:0;let n=l.getViewLineCount()-d,u=!1;o+n>t&&(u=!0,n=t-o+1);var h=d+n;if(l.getViewLinesData(this.model,c+1,d,h,o-e,i,a),o+=n,u)break}}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),o=n.index,r=(n=n.remainder,this.lines[o]),s=r.getViewLineMinColumn(this.model,o+1,n),a=r.getViewLineMaxColumn(this.model,o+1,n);r=r.getModelColumnOfViewPosition(n,t=a<(t=t<s?s:t)?a:t);return this.model.validatePosition(new ie.a(o+1,r)).equals(i)?new ie.a(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){var i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition());e=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new ne.a(i.lineNumber,i.column,e.lineNumber,e.column)}convertViewPositionToModelPosition(e,t){e=this._toValidViewLineNumber(e);e=this.prefixSumComputer.getIndexOf(e-1);var i=e.index;e=e.remainder,e=this.lines[i].getModelColumnOfViewPosition(e,t);return this.model.validatePosition(new ie.a(i+1,e))}convertViewRangeToModelRange(e){var t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn);e=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new ne.a(t.lineNumber,t.column,e.lineNumber,e.column)}convertModelPositionToViewPosition(e,t,i=2){e=this.model.validatePosition(new ie.a(e,t)),t=e.lineNumber,e=e.column;let n=t-1,o=!1;for(;0<n&&!this.lines[n].isVisible();)n--,o=!0;if(0===n&&!this.lines[n].isVisible())return new ie.a(1,1);var r=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return o?this.lines[n].getViewPositionOfModelPosition(r,this.model.getLineMaxColumn(n+1),i):this.lines[t-1].getViewPositionOfModelPosition(r,e,i)}convertModelRangeToViewRange(e,t=0){return e.isEmpty()?(t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t),ne.a.fromPositions(t)):(t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),e=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0),new ne.a(t.lineNumber,t.column,e.lineNumber,e.column))}_getViewLineNumberForModelPosition(e,t){let i=e-1;if(this.lines[i].isVisible()){const e=1+(0===i?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(e,t)}for(;0<i&&!this.lines[i].isVisible();)i--;if(0===i&&!this.lines[i].isVisible())return 1;const n=1+(0===i?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getAllOverviewRulerDecorations(e,t,i){e=this.model.getOverviewRulerDecorations(e,t);var n=new _n;for(const l of e){var o,r,s=l.options.overviewRuler,a=s?s.position:0;0!==a&&(s=s.getColor(i),o=this._getViewLineNumberForModelPosition(l.range.startLineNumber,l.range.startColumn),r=this._getViewLineNumberForModelPosition(l.range.endLineNumber,l.range.endColumn),n.accept(s,o,r,a))}return n.result}getDecorationsInRange(e,t,i){var n=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-n.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new ne.a(n.lineNumber,1,o.lineNumber,o.column),t,i);let r=[];var s,a=n.lineNumber-1,l=o.lineNumber-1;let d=null;for(let p=a;p<=l;p++)this.lines[p].isVisible()?null===d&&(d=new ie.a(p+1,p===a?n.column:1)):null!==d&&(s=this.model.getLineMaxColumn(p),r=r.concat(this.model.getDecorationsInRange(new ne.a(d.lineNumber,d.column,p,s),t,i)),d=null);null!==d&&(r=r.concat(this.model.getDecorationsInRange(new ne.a(d.lineNumber,d.column,o.lineNumber,o.column),t,i)),d=null),r.sort((e,t)=>{var i=ne.a.compareRangesUsingStarts(e.range,t.range);return 0===i?e.id<t.id?-1:e.id>t.id?1:0:i});let h=[],c=0,u=null;for(const p of r){var g=p.id;u!==g&&(u=g,h[c++]=p)}return h}getInjectedTextAt(e){var t=this._toValidViewLineNumber(e.lineNumber),i=(t=this.prefixSumComputer.getIndexOf(t-1),t.index);t=t.remainder;return this.lines[i].getInjectedTextAt(t,e.column)}normalizePosition(e,t){var i=this._toValidViewLineNumber(e.lineNumber),n=(i=this.prefixSumComputer.getIndexOf(i-1),i.index);i=i.remainder;return this.lines[n].normalizePosition(this.model,n+1,i,e,t)}getLineIndentColumn(e){e=this._toValidViewLineNumber(e),e=this.prefixSumComputer.getIndexOf(e-1);var t=e.index;return 0===e.remainder?this.model.getLineIndentColumn(t+1):0}}class dn{constructor(){}isVisible(){return!0}setVisible(e){return e?this:hn.INSTANCE}getLineBreakData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){return e=e.getLineTokens(t),t=e.getLineContent(),new yt.e(t,!1,1,t.length+1,0,e.inflate(),null)}getViewLinesData(e,t,i,n,o,r,s){r[o]?s[o]=this.getViewLineData(e,t,0):s[o]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new ie.a(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i,n,o){return n}getInjectedTextAt(e,t){return null}}dn.INSTANCE=new dn;class hn{constructor(){}isVisible(){return!1}setVisible(e){return e?dn.INSTANCE:this}getLineBreakData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw new Error("Not supported")}getViewLineLength(e,t,i){throw new Error("Not supported")}getViewLineMinColumn(e,t,i){throw new Error("Not supported")}getViewLineMaxColumn(e,t,i){throw new Error("Not supported")}getViewLineData(e,t,i){throw new Error("Not supported")}getViewLinesData(e,t,i,n,o,r,s){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,i,n,o){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}hn.INSTANCE=new hn;class cn{constructor(e,t){this._lineBreakData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getLineBreakData(){return this._lineBreakData}getViewLineCount(){return this._isVisible?this._lineBreakData.breakOffsets.length:0}getInputStartOffsetOfOutputLineIndex(e){return this._lineBreakData.getInputOffsetOfOutputPosition(e,0)}getInputEndOffsetOfOutputLineIndex(e,t,i){return i+1===this._lineBreakData.breakOffsets.length?e.getLineMaxColumn(t)-1:this._lineBreakData.getInputOffsetOfOutputPosition(i+1,0)}getViewLineContent(e,t,i){if(!this._isVisible)throw new Error("Not supported");var n,o=0<i?this._lineBreakData.breakOffsets[i-1]:0,r=i<this._lineBreakData.breakOffsets.length?this._lineBreakData.breakOffsets[i]:this._lineBreakData.breakOffsets[this._lineBreakData.breakOffsets.length-1];let s;return s=null!==this._lineBreakData.injectionOffsets?(n=this._lineBreakData.injectionOffsets.map((e,t)=>new pi.b(0,0,e+1,this._lineBreakData.injectionOptions[t],0)),pi.b.applyInjectedText(e.getLineContent(t),n).substring(o,r)):e.getValueInRange({startLineNumber:t,startColumn:o+1,endLineNumber:t,endColumn:r+1}),0<i?gn(this._lineBreakData.wrappedTextIndentLength)+s:s}getViewLineLength(e,t,i){if(!this._isVisible)throw new Error("Not supported");var n=0<i?this._lineBreakData.breakOffsets[i-1]:0;let o=(i<this._lineBreakData.breakOffsets.length?this._lineBreakData.breakOffsets[i]:this._lineBreakData.breakOffsets[this._lineBreakData.breakOffsets.length-1])-n;return 0<i?this._lineBreakData.wrappedTextIndentLength+o:o}getViewLineMinColumn(e,t,i){if(this._isVisible)return this._getViewLineMinColumn(i);throw new Error("Not supported")}_getViewLineMinColumn(e){return 0<e?this._lineBreakData.wrappedTextIndentLength+1:1}getViewLineMaxColumn(e,t,i){if(this._isVisible)return this.getViewLineLength(e,t,i)+1;throw new Error("Not supported")}getViewLineData(e,t,i){if(!this._isVisible)throw new Error("Not supported");var n=this._lineBreakData,o=0<i?n.wrappedTextIndentLength:0,r=n.injectionOffsets;const s=n.injectionOptions;let a,l,d;if(r){var h=e.getLineTokens(t).withInserted(r.map((e,t)=>({offset:e,text:s[t].content,tokenMetadata:nn.a.defaultTokenMetadata}))),c=0<i?n.breakOffsets[i-1]:0,u=n.breakOffsets[i];a=h.getLineContent().substring(c,u),l=h.sliceAndInflate(c,u,o),d=new Array;let b=0;for(let e=0;e<r.length;e++){var g,p,m=s[e].content.length,f=r[e]+b,_=r[e]+b+m;if(u<f)break;c<_&&(g=s[e]).inlineClassName&&(f=(p=0<i?n.wrappedTextIndentLength:0)+Math.max(f-c,0))!==(p+=Math.min(_-c,u))&&d.push(new yt.d(f,p,g.inlineClassName,g.inlineClassNameAffectsLetterSpacing)),b+=m}}else{h=this.getInputStartOffsetOfOutputLineIndex(i);var b=this.getInputEndOffsetOfOutputLineIndex(e,t,i),v=e.getLineTokens(t);a=e.getValueInRange({startLineNumber:t,startColumn:h+1,endLineNumber:t,endColumn:b+1}),l=v.sliceAndInflate(h,b,o),d=null}return 0<i&&(a=gn(n.wrappedTextIndentLength)+a),e=0<i?n.wrappedTextIndentLength+1:1,t=a.length+1,v=i+1<this.getViewLineCount(),h=0===i?0:n.breakOffsetsVisibleColumn[i-1],new yt.e(a,v,e,t,h,l,d)}getViewLinesData(e,t,i,n,o,r,s){if(!this._isVisible)throw new Error("Not supported");for(let l=i;l<n;l++){var a=o+l-i;r[a]?s[a]=this.getViewLineData(e,t,l):s[a]=null}}getModelColumnOfViewPosition(e,t){if(!this._isVisible)throw new Error("Not supported");let i=t-1;return 0<e&&(i<this._lineBreakData.wrappedTextIndentLength?i=0:i-=this._lineBreakData.wrappedTextIndentLength),this._lineBreakData.getInputOffsetOfOutputPosition(e,i)+1}getViewPositionOfModelPosition(e,t,i=2){if(!this._isVisible)throw new Error("Not supported");t=this._lineBreakData.getOutputPositionOfInputOffset(t-1,i),i=t.outputLineIndex;let n=t.outputOffset+1;return 0<i&&(n+=this._lineBreakData.wrappedTextIndentLength),new ie.a(e+i,n)}getViewLineNumberOfModelPosition(e,t){if(this._isVisible)return e+this._lineBreakData.getOutputPositionOfInputOffset(t-1).outputLineIndex;throw new Error("Not supported")}normalizePosition(e,t,i,n,o){if(null!==this._lineBreakData.injectionOffsets){var r=n.lineNumber-i,s=this._lineBreakData.outputPositionToOffsetInUnwrappedLine(i,n.column-1),a=this._lineBreakData.normalizeOffsetAroundInjections(s,o);if(a!==s)return this._lineBreakData.getOutputPositionOfOffsetInUnwrappedLine(a,o).toPosition(r,this._lineBreakData.wrappedTextIndentLength)}if(0===o){if(0<i&&n.column===this._getViewLineMinColumn(i))return new ie.a(n.lineNumber-1,this.getViewLineMaxColumn(e,t,i-1))}else if(1===o&&i<this.getViewLineCount()-1&&n.column===this.getViewLineMaxColumn(e,t,i))return new ie.a(n.lineNumber+1,this._getViewLineMinColumn(i+1));return n}getInjectedTextAt(e,t){return this._lineBreakData.getInjectedText(e,t-1)}}let un=[""];function gn(e){if(e>=un.length)for(let i=1;i<=e;i++)un[i]=(t=i,new Array(t+1).join(" "));var t;return un[e]}function pn(e,t){return null===e?(t?dn:hn).INSTANCE:new cn(e,t)}class mn{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}}class fn{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new mn(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){let e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new xi(t,i)}onModelLinesInserted(e,t,i,n){return new ki(t,i)}onModelLineChanged(e,t,i){return[!1,new Li(t,t),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesIndentGuides(e,t){var i=t-e+1,n=new Array(i);for(let o=0;o<i;o++)n[o]=0;return n}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){e=this.model.getLineTokens(e);var t=e.getLineContent();return new yt.e(t,!1,1,t.length+1,0,e.inflate(),null)}getViewLinesData(e,t,i){var n=this.model.getLineCount(),o=(e=Math.min(Math.max(1,e),n),t=Math.min(Math.max(1,t),n),[]);for(let s=e;s<=t;s++){var r=s-e;i[r]||(o[r]=null),o[r]=this.getViewLineData(s)}return o}getAllOverviewRulerDecorations(e,t,i){e=this.model.getOverviewRulerDecorations(e,t);var n=new _n;for(const l of e){var o,r,s=l.options.overviewRuler,a=s?s.position:0;0!==a&&(s=s.getColor(i),o=l.range.startLineNumber,r=l.range.endLineNumber,n.accept(s,o,r,a))}return n.result}getDecorationsInRange(e,t,i){return this.model.getDecorationsInRange(e,t,i)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}}class _n{constructor(){this.result=Object.create(null)}accept(e,t,i,n){var o,r,s=this.result[e];s?(o=s[s.length-3],r=s[s.length-1],o===n&&t<=r+1?r<i&&(s[s.length-1]=i):s.push(n,t,i)):this.result[e]=[n,t,i]}}class bn{constructor(e,t,i,n,o){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=o,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(e){var t=e.id;let i=this._decorationsCache[t];if(!i){var n,o,r=e.range;e=e.options;let s;s=e.isWholeLine?(n=this._coordinatesConverter.convertModelPositionToViewPosition(new ie.a(r.startLineNumber,1),0),o=this._coordinatesConverter.convertModelPositionToViewPosition(new ie.a(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber)),1),new ne.a(n.lineNumber,n.column,o.lineNumber,o.column)):this._coordinatesConverter.convertModelRangeToViewRange(r,1),i=new yt.g(s,e),this._decorationsCache[t]=i}return i}getDecorationsViewportData(e){return null!==this._cachedModelDecorationsResolver&&e.equalsRange(this._cachedModelDecorationsResolverViewRange)||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}_getDecorationsViewportData(e){var t=this._linesCollection.getDecorationsInRange(e,this.editorId,Object(z.m)(this.configuration.options)),i=e.startLineNumber,n=e.endLineNumber;let o=[],r=0;var s=[];for(let u=i;u<=n;u++)s[u-i]=[];for(let u=0,g=t.length;u<g;u++){var a=t[u],l=a.options,d=(a=this._getOrCreateViewModelDecoration(a),a.range);if(o[r++]=a,l.inlineClassName){var h=new yt.a(d,l.inlineClassName,l.inlineClassNameAffectsLetterSpacing?3:0),c=(a=Math.max(i,d.startLineNumber),Math.min(n,d.endLineNumber));for(let e=a;e<=c;e++)s[e-i].push(h)}l.beforeContentClassName&&i<=d.startLineNumber&&d.startLineNumber<=n&&(a=new yt.a(new ne.a(d.startLineNumber,d.startColumn,d.startLineNumber,d.startColumn),l.beforeContentClassName,1),s[d.startLineNumber-i].push(a)),l.afterContentClassName&&i<=d.endLineNumber&&d.endLineNumber<=n&&(a=new yt.a(new ne.a(d.endLineNumber,d.endColumn,d.endLineNumber,d.endColumn),l.afterContentClassName,2),s[d.endLineNumber-i].push(a))}return{decorations:o,inlineDecorations:s}}}class vn extends c.a{constructor(e,t,i,n,o,r){var s,a;super(),this._editorId=e,this._configuration=t,this.model=i,this._eventDispatcher=new Ti,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new oe.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._tokenizeViewportSoon=this._register(new C.e(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new C.e(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,this.model.isTooLargeForTokenization()?this._lines=new fn(this.model):(t=(e=this._configuration.options).get(42),s=e.get(124),a=e.get(131),e=e.get(123),this._lines=new ln(this._editorId,this.model,n,o,t,this.model.getOptions().tabSize,s,a.wrappingColumn,e)),this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new zi(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new tn(this._configuration,this.getLineCount(),r)),this._register(this.viewLayout.onDidScroll(e=>{e.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new Ni(e)),this._eventDispatcher.emitOutgoingEvent(new Fi(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(e=>{this._eventDispatcher.emitOutgoingEvent(e)})),this._decorations=new bn(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(e=>{try{var t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(wt.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new Ii)})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this.invalidateMinimapColorCache(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){var e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new ie.a(e.startLineNumber,1));e=this.coordinatesConverter.convertViewPositionToModelPosition(new ie.a(e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,e.lineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new wi(e)),this._eventDispatcher.emitOutgoingEvent(new Pi(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new mi)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new fi)}onDidColorThemeChange(){this._eventDispatcher.emitSingleViewEvent(new Oi)}_onConfigurationChanged(e,t){let i=null;-1!==this._viewportStartLine&&(o=new ie.a(this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine)),i=this.coordinatesConverter.convertViewPositionToModelPosition(o));let n=!1;var o=this._configuration.options,r=o.get(42),s=o.get(124),a=o.get(131);o=o.get(123);this._lines.setWrappingSettings(r,s,a.wrappingColumn,o)&&(e.emitViewEvent(new Ci),e.emitViewEvent(new Si),e.emitViewEvent(new vi(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(n=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(80)&&(this._decorations.reset(),e.emitViewEvent(new vi(null))),e.emitViewEvent(new _i(t)),this.viewLayout.onConfigurationChanged(t),n&&i&&(r=this.coordinatesConverter.convertModelPositionToViewPosition(i),s=this.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber),this.viewLayout.setScrollPosition({scrollTop:s+this._viewportStartLineDelta},1)),oe.b.shouldRecreate(t)&&(this.cursorConfig=new oe.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{var t=this._eventDispatcher.beginEmitViewEvents();let m=!1,f=!1;var i=e.changes,n=e instanceof pi.d?e.versionId:null,o=this._lines.createLineBreaksComputer();for(const e of i)switch(e.changeType){case 4:for(let t=0;t<e.detail.length;t++){var r=e.detail[t];let i=e.injectedTexts[t];i=i&&i.filter(e=>!e.ownerId||e.ownerId===this._editorId),o.addRequest(r,i,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter(e=>!e.ownerId||e.ownerId===this._editorId)),o.addRequest(e.detail,t,null);break}}var s=o.finalize();let _=0;for(const e of i)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new Ci),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),m=!0;break;case 3:var a=this._lines.onModelLinesDeleted(n,e.fromLineNumber,e.toLineNumber);null!==a&&(t.emitViewEvent(a),this.viewLayout.onLinesDeleted(a.fromLineNumber,a.toLineNumber)),m=!0;break;case 4:var l=s.slice(_,_+e.detail.length),d=(_+=e.detail.length,this._lines.onModelLinesInserted(n,e.fromLineNumber,e.toLineNumber,l));null!==d&&(t.emitViewEvent(d),this.viewLayout.onLinesInserted(d.fromLineNumber,d.toLineNumber)),m=!0;break;case 2:var h=s[_],[c,u,g,p]=(_++,this._lines.onModelLineChanged(n,e.lineNumber,h));f=c,u&&t.emitViewEvent(u),g&&(t.emitViewEvent(g),this.viewLayout.onLinesInserted(g.fromLineNumber,g.toLineNumber)),p&&(t.emitViewEvent(p),this.viewLayout.onLinesDeleted(p.fromLineNumber,p.toLineNumber))}null!==n&&this._lines.acceptVersionId(n),this.viewLayout.onHeightMaybeChanged(),!m&&f&&(t.emitViewEvent(new Si),t.emitViewEvent(new vi(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._viewportStartLine=-1,this._configuration.setMaxLineNumber(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&2<=this.model.getAttachedEditorCount()&&this._viewportStartLineTrackedRange&&(i=this.model._getTrackedRange(this._viewportStartLineTrackedRange))&&(i=this.coordinatesConverter.convertModelPositionToViewPosition(i.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber),this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStartLineDelta},1));try{var m=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(m,e)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(this.model.onDidChangeTokens(e=>{var t=[];for(let o=0,r=e.ranges.length;o<r;o++){var i=e.ranges[o],n=this.coordinatesConverter.convertModelPositionToViewPosition(new ie.a(i.fromLineNumber,1)).lineNumber;i=this.coordinatesConverter.convertModelPositionToViewPosition(new ie.a(i.toLineNumber,this.model.getLineMaxColumn(i.toLineNumber))).lineNumber;t[o]={fromLineNumber:n,toLineNumber:i}}this._eventDispatcher.emitSingleViewEvent(new Ei(t)),e.tokenizationSupportChanged&&this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(e=>{this._eventDispatcher.emitSingleViewEvent(new yi),this.cursorConfig=new oe.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new oe.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{var t=this._eventDispatcher.beginEmitViewEvents();t.emitViewEvent(new Ci),t.emitViewEvent(new Si),t.emitViewEvent(new vi(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new oe.b(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new vi(e))}))}setHiddenAreas(e){try{var t=this._eventDispatcher.beginEmitViewEvents();this._lines.setHiddenAreas(e)&&(t.emitViewEvent(new Ci),t.emitViewEvent(new Si),t.emitViewEvent(new vi(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}getVisibleRangesPlusViewportAboveBelow(){var e=this._configuration.options.get(130),t=this._configuration.options.get(58),i=(e=Math.max(20,Math.round(e.height/t)),t=this.viewLayout.getLinesViewportData(),Math.max(1,t.completelyVisibleStartLineNumber-e));t=Math.min(this.getLineCount(),t.completelyVisibleEndLineNumber+e);return this._toModelVisibleRanges(new ne.a(i,this.getLineMinColumn(i),t,this.getLineMaxColumn(t)))}getVisibleRanges(){var e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}_toModelVisibleRanges(e){e=this.coordinatesConverter.convertViewRangeToModelRange(e);var t=this._lines.getHiddenAreas();if(0===t.length)return[e];let i=[],n=0,o=e.startLineNumber,r=e.startColumn;var s=e.endLineNumber;e=e.endColumn;for(let d=0,h=t.length;d<h;d++){var a=t[d].startLineNumber,l=t[d].endLineNumber;l<o||s<a||(o<a&&(i[n++]=new ne.a(o,r,a-1,this.model.getLineMaxColumn(a-1))),o=l+1,r=1)}return(o<s||o===s&&r<e)&&(i[n++]=new ne.a(o,r,s,e)),i}getCompletelyVisibleViewRange(){var e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber;e=e.completelyVisibleEndLineNumber;return new ne.a(t,this.getLineMinColumn(t),e,this.getLineMaxColumn(e))}getCompletelyVisibleViewRangeAtScrollTop(e){e=this.viewLayout.getLinesViewportDataAtScrollTop(e);var t=e.completelyVisibleStartLineNumber;e=e.completelyVisibleEndLineNumber;return new ne.a(t,this.getLineMinColumn(t),e,this.getLineMaxColumn(e))}saveState(){var e=this.viewLayout.saveState(),t=e.scrollTop,i=this.viewLayout.getLineNumberAtVerticalOffset(t),n=this.coordinatesConverter.convertViewPositionToModelPosition(new ie.a(i,this.getLineMinColumn(i)));i=this.viewLayout.getVerticalOffsetForLineNumber(i)-t;return{scrollLeft:e.scrollLeft,firstPosition:n,firstPositionDeltaTop:i}}reduceRestoreState(e){var t;return void 0===e.firstPosition?this._reduceRestoreStateCompatibility(e):(t=this.model.validatePosition(e.firstPosition),t=this.coordinatesConverter.convertModelPositionToViewPosition(t),t=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber)-e.firstPositionDeltaTop,{scrollLeft:e.scrollLeft,scrollTop:t})}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getTextModelOptions(){return this.model.getOptions()}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,i){this._viewportStartLine=e;var n=this.coordinatesConverter.convertViewPositionToModelPosition(new ie.a(e,this.getLineMinColumn(e)));this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,new ne.a(n.lineNumber,n.column,n.lineNumber,n.column),1),n=this.viewLayout.getVerticalOffsetForLineNumber(e),e=this.viewLayout.getCurrentScrollTop();this._viewportStartLineDelta=e-n}getActiveIndentGuide(e,t,i){return this._lines.getActiveIndentGuide(e,t,i)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){return e=De.u(this.getLineContent(e)),-1===e?0:e+1}getLineLastNonWhitespaceColumn(e){return e=De.I(this.getLineContent(e)),-1===e?0:e+2}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewLineRenderingData(e,t){var i=this.model.mightContainRTL(),n=this.model.mightContainNonBasicASCII(),o=this.getTabSize(),r=this._lines.getViewLineData(t);let s=this._decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return r.inlineDecorations&&(s=[...s,...r.inlineDecorations.map(e=>e.toInlineDecoration(t))]),new yt.f(r.minColumn,r.maxColumn,r.content,r.continuesWithWrappedLine,i,n,r.tokens,s,o,r.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){return e=this._lines.getViewLinesData(e,t,i),new yt.c(this.getTabSize(),e)}getAllOverviewRulerDecorations(e){return this._lines.getAllOverviewRulerDecorations(this._editorId,Object(z.m)(this._configuration.options),e)}invalidateOverviewRulerColorCache(){for(const t of this.model.getOverviewRulerDecorations()){var e=t.options.overviewRuler;e&&e.invalidateCachedColor()}}invalidateMinimapColorCache(){for(const t of this.model.getAllDecorations()){var e=t.options.minimap;e&&e.invalidateCachedColor()}}getValueInRange(e,t){return e=this.coordinatesConverter.convertViewRangeToModelRange(e),this.model.getValueInRange(e,t)}getModelLineMaxColumn(e){return this.model.getLineMaxColumn(e)}validateModelPosition(e){return this.model.validatePosition(e)}validateModelRange(e){return this.model.validateRange(e)}deduceModelPositionRelativeToViewPosition(e,t,i){return e=this.coordinatesConverter.convertViewPositionToModelPosition(e),2===this.model.getEOL().length&&(t<0?t-=i:t+=i),i=this.model.getOffsetAt(e),this.model.getPositionAt(i+t)}getEOL(){return this.model.getEOL()}getPlainTextToCopy(e,t,i){var n=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(ne.a.compareRangesUsingStarts);let o=!1,r=!1;for(const h of e)h.isEmpty()?o=!0:r=!0;if(!r){if(!t)return"";var s=e.map(e=>e.startLineNumber);let i="";for(let e=0;e<s.length;e++)0<e&&s[e-1]===s[e]||(i+=this.model.getLineContent(s[e])+n);return i}if(o&&t){var a=[];let t=0;for(const n of e){var l=n.startLineNumber;n.isEmpty()?l!==t&&a.push(this.model.getLineContent(l)):a.push(this.model.getValueInRange(n,i?2:0)),t=l}return 1===a.length?a[0]:a}var d=[];for(const h of e)h.isEmpty()||d.push(this.model.getValueInRange(h,i?2:0));return 1===d.length?d[0]:d}getRichTextToCopy(e,t){var i=this.model.getLanguageIdentifier();if(1===i.id)return null;if(1!==e.length)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;e=n.startLineNumber,n=new ne.a(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}t=this._configuration.options.get(42),e=this._getColorMap();var o=/[:;\\\/<>]/.test(t.fontFamily)||t.fontFamily===z.c.fontFamily;let r;return r=o?z.c.fontFamily:(r=(r=t.fontFamily).replace(/"/g,"'"),/[,']/.test(r)||/[+ ]/.test(r)&&(r=`'${r}'`),r+", "+z.c.fontFamily),{mode:i.language,html:`<div style="color: ${e[1]};background-color: ${e[2]};font-family: ${r};font-weight: ${t.fontWeight};font-size: ${t.fontSize}px;line-height: ${t.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(n,e)+"</div>"}}_getHTMLToCopy(e,t){var i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,r=e.endColumn,s=this.getTabSize();let a="";for(let u=i;u<=o;u++){var l=this.model.getLineTokens(u),d=l.getLineContent(),h=u===i?n-1:0,c=u===o?r-1:d.length;a+=""===d?"<br>":Object(Gi.a)(d,l.inflate(),t,h,c,s,_.i)}return a}_getColorMap(){var e=Ct.F.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;i<n;i++)t[i]=Ht.a.Format.CSS.formatHex(e[i]);return t}pushStackElement(){this.model.pushStackElement()}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,i){this._withViewEventsCollector(n=>this._cursor.setStates(n,e,t,i))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector(n=>this._cursor.setSelections(n,e,t,i))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Wi):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit(n=>this._cursor.executeEdits(n,e,t,i))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(i=>this._cursor.type(i,e,t))}compositionType(e,t,i,n,o){this._executeCursorEdit(r=>this._cursor.compositionType(r,e,t,i,n,o))}paste(e,t,i,n){this._executeCursorEdit(o=>this._cursor.paste(o,e,t,i,n))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(i=>this._cursor.executeCommand(i,e,t))}executeCommands(e,t){this._executeCursorEdit(i=>this._cursor.executeCommands(i,e,t))}revealPrimaryCursor(e,t){this._withViewEventsCollector(i=>this._cursor.revealPrimary(i,e,t,0))}revealTopMostCursor(e){var t=this._cursor.getTopMostViewPosition();const i=new ne.a(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(t=>t.emitViewEvent(new Di(e,i,null,0,!0,0)))}revealBottomMostCursor(e){var t=this._cursor.getBottomMostViewPosition();const i=new ne.a(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(t=>t.emitViewEvent(new Di(e,i,null,0,!0,0)))}revealRange(e,t,i,n,o){this._withViewEventsCollector(r=>r.emitViewEvent(new Di(e,i,null,n,t,o)))}getVerticalOffsetForLineNumber(e){return this.viewLayout.getVerticalOffsetForLineNumber(e)}getScrollTop(){return this.viewLayout.getCurrentScrollTop()}setScrollTop(e,t){this.viewLayout.setScrollPosition({scrollTop:e},t)}setScrollPosition(e,t){this.viewLayout.setScrollPosition(e,t)}deltaScrollNow(e,t){this.viewLayout.deltaScrollNow(e,t)}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Mi),this._eventDispatcher.emitOutgoingEvent(new Bi))}setMaxLineWidth(e){this.viewLayout.setMaxLineWidth(e)}_withViewEventsCollector(e){try{e(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}t=i("9e74");var Cn=i("4fc3"),wn=(r=i("0a0f"),i("f07b")),yn=i("b0cd"),Sn=i("4779"),Ln=i("ef8e9");class xn extends i("3170").a{constructor(e,t){super(0);for(let i=0;i<e.length;i++)this.set(e.charCodeAt(i),1);for(let i=0;i<t.length;i++)this.set(t.charCodeAt(i),2)}get(e){return 0<=e&&e<256?this._asciiMap[e]:12352<=e&&e<=12543||13312<=e&&e<=19903||19968<=e&&e<=40959?3:this._map.get(e)||this._defaultValue}}let kn=[],Dn=[];class Nn{constructor(e,t){this.classifier=new xn(e,t)}static create(e){return new Nn(e.get(119),e.get(118))}createLineBreaksComputer(e,t,i,n){t|=0,i=+i;const o=[],r=[],s=[];return{addRequest:(e,t,i)=>{o.push(e),r.push(t),s.push(i)},finalize:()=>{var a=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,l=[];for(let e=0,c=o.length;e<c;e++){var d=r[e],h=s[e];!h||h.injectionOptions||d?l[e]=function(e,t,i,n,o,r,s){var a=pi.b.applyInjectedText(t,i);let l,d;if(d=i&&0<i.length?(l=i.map(e=>e.options),i.map(e=>e.column-1)):(l=null,null),-1===o)return l?new yt.b([a.length],[],0,d,l):null;var h=a.length;if(h<=1)return l?new yt.b([a.length],[],0,d,l):null;t=Mn(a,n,o,r,s);var c=o-t;let u=[],g=[],p=0,m=0,f=0,_=o,b=a.charCodeAt(0),v=e.get(b),C=On(b,0,n,r),w=1;De.E(b)&&(C+=1,b=a.charCodeAt(1),v=e.get(b),w++);for(let L=w;L<h;L++){var y=L,S=a.charCodeAt(L);let t,i;i=De.E(S)?(L++,t=0,2):(t=e.get(S),On(S,C,n,r)),In(b,v,S,t)&&(m=y,f=C),(C+=i)>_&&((0===m||C-f>c)&&(m=y,f=C-i),u[p]=m,g[p]=f,p++,_=f+c,m=0),b=S,v=t}return 0!==p||i&&0!==i.length?(u[p]=h,g[p]=C,new yt.b(u,g,t,d,l)):null}(this.classifier,o[e],d,t,i,a,n):l[e]=function(e,t,i,n,o,r,s){if(-1===o)return null;var a=i.length;if(a<=1)return null;var l=t.breakOffsets,d=t.breakOffsetsVisibleColumn,h=(s=Mn(i,n,o,r,s),o-s);let c=kn,u=Dn,g=0,p=0,m=0,f=o;var _=l.length;let b=0;if(0<=b){let e=Math.abs(d[b]-f);for(;b+1<_;){var v=Math.abs(d[b+1]-f);if(v>=e)break;e=v,b++}}for(;b<_;){let t=b<0?0:l[b],o=b<0?0:d[b],s=(p>t&&(t=p,o=m),0),v=0,D=0,N=0;if(o<=f){let m=o,_=0===t?0:i.charCodeAt(t-1),b=0===t?0:e.get(_),y=!0;for(let o=t;o<a;o++){var C=o,w=i.charCodeAt(o);let t,a;if(a=De.E(w)?(o++,t=0,2):(t=e.get(w),On(w,m,n,r)),C>p&&In(_,b,w,t)&&(s=C,v=m),(m+=a)>f){N=C>p?(D=C,m-a):(D=o+1,m),m-v>h&&(s=0),y=!1;break}_=w,b=t}if(y){0<g&&(c[g]=l[l.length-1],u[g]=d[l.length-1],g++);break}}if(0===s){let a=o,l=i.charCodeAt(t),d=e.get(l),c=!1;for(let n=t-1;n>=p;n--){var y=n+1,S=i.charCodeAt(n);if(9===S){c=!0;break}let t,o;if(o=De.F(S)?(n--,t=0,2):(t=e.get(S),De.D(S)?r:1),a<=f){if(0===D&&(D=y,N=a),a<=f-h)break;if(In(0,t,l,d)){s=y,v=a;break}}a-=o,l=S,d=t}if(0!==s){var L=h-(N-v);if(L<=n){var x=i.charCodeAt(D);let e;e=De.E(x)?2:On(x,N,n,r),L-e<0&&(s=0)}}if(c){b--;continue}}for(0===s&&(s=D,v=N),s<=p&&(x=i.charCodeAt(p),v=De.E(x)?(s=p+2,m+2):(s=p+1,m+On(x,m,n,r))),p=s,c[g]=s,m=v,u[g]=v,g++,f=v+h;b<0||b<_&&d[b]<v;)b++;let O=Math.abs(d[b]-f);for(;b+1<_;){var k=Math.abs(d[b+1]-f);if(k>=O)break;O=k,b++}}return 0!==g?(c.length=g,u.length=g,kn=t.breakOffsets,Dn=t.breakOffsetsVisibleColumn,t.breakOffsets=c,t.breakOffsetsVisibleColumn=u,t.wrappedTextIndentLength=s,t):null}(this.classifier,h,o[e],t,i,a,n)}return kn.length=0,Dn.length=0,l}}}}function On(e,t,i,n){return 9===e?i-t%i:De.D(e)||e<32?n:1}function En(e,t){return t-e%t}function In(e,t,i,n){return 32!==i&&(2===t||3===t&&2!==n||1===n||3===n&&1!==t)}function Mn(e,t,i,n,o){let r=0;if(0!==o){var s=De.u(e);if(-1!==s){for(let i=0;i<s;i++){var a=9===e.charCodeAt(i)?En(r,t):1;r+=a}var l=3===o?2:2===o?1:0;for(let e=0;e<l;e++){var d=En(r,t);r+=d}r+n>i&&(r=0)}}return r}const Tn=null==(Fn=window.trustedTypes)?void 0:Fn.createPolicy("domLineBreaksComputer",{createHTML:e=>e});class An{static create(){return new An}constructor(){}createLineBreaksComputer(e,t,i,n){t|=0,i=+i;let o=[],r=[];return{addRequest:(e,t,i)=>{o.push(e),r.push(t)},finalize:()=>{{var s=o,a=e,l=t,d=i,h=n,c=r;function u(e){var t,i=c[e];return i?(e=pi.b.applyInjectedText(s[e],i),t=i.map(e=>e.options),i=i.map(e=>e.column-1),new yt.b([e.length],[],0,i,t)):null}if(-1===d){const e=[];for(let t=0,i=s.length;t<i;t++)e[t]=u(t);return e}var p=Math.round(d*a.typicalHalfwidthCharacterWidth),m=(d=(2!==h&&3!==h||(h=1),document.createElement("div")),g.a.applyFontInfoSlow(d,a),Object(ze.a)(1e4)),f=[],_=[],b=[],v=[],C=[];for(let e=0;e<s.length;e++){var w=pi.b.applyInjectedText(s[e],c[e]);let t=0,i=0,n=p;if(0!==h)if(-1===(t=De.u(w)))t=0;else{for(let e=0;e<t;e++){var y=9===w.charCodeAt(e)?l-i%l:1;i+=y}var S=Math.ceil(a.spaceWidth*i);S+a.typicalFullwidthCharacterWidth>p?(t=0,i=0):n=p-S}S=w.substr(t);var L=function(e,t,i,n,o){o.appendASCIIString('<div style="width:'),o.appendASCIIString(String(n)),o.appendASCIIString('px;">');var r=e.length;let s=t,a=0,l=[],d=[],h=0<r?e.charCodeAt(0):0;o.appendASCIIString("<span>");for(let u=0;u<r;u++){0!==u&&u%16384==0&&o.appendASCIIString("</span><span>"),l[u]=a,d[u]=s;var c=h;h=u+1<r?e.charCodeAt(u+1):0;let t=1,n=1;switch(c){case 9:t=i-s%i,n=t;for(let e=1;e<=t;e++)e<t?o.write1(160):o.appendASCII(32);break;case 32:32===h?o.write1(160):o.appendASCII(32);break;case 60:o.appendASCIIString("&lt;");break;case 62:o.appendASCIIString("&gt;");break;case 38:o.appendASCIIString("&amp;");break;case 0:o.appendASCIIString("&#00;");break;case 65279:case 8232:case 8233:case 133:o.write1(65533);break;default:De.D(c)&&n++,c<32?o.write1(9216+c):o.write1(c)}a+=t,s+=n}return o.appendASCIIString("</span>"),l[e.length]=a,d[e.length]=s,o.appendASCIIString("</div>"),[l,d]}(S,i,l,n,m);f[e]=t,_[e]=i,b[e]=S,v[e]=L[0],C[e]=L[1]}var x=m.build(),k=null!=(k=null===Tn||void 0===Tn?void 0:Tn.createHTML(x))?k:x,D=(d.innerHTML=k,d.style.position="absolute",d.style.top="10000",d.style.wordWrap="break-word",document.body.appendChild(d),document.createRange()),N=Array.prototype.slice.call(d.children,0);let R=[];for(let e=0;e<s.length;e++){var O=N[e],E=function(e,t,i,n){if(i.length<=1)return null;t=Array.prototype.slice.call(t.children,0);var o=[];try{!function e(t,i,n,o,r,s,a,l){if(o===s)return;if(r=r||Rn(t,i,n[o],n[o+1]),a=a||Rn(t,i,n[s],n[s+1]),Math.abs(r[0].top-a[0].top)<=.1)return;if(o+1===s)return void l.push(s);const d=o+(s-o)/2|0,h=Rn(t,i,n[d],n[1+d]);e(t,i,n,o,r,d,h,l),e(t,i,n,d,h,s,a,l)}(e,t,n,0,null,i.length-1,null,o)}catch(e){return null}return 0!==o.length?(o.push(i.length),o):null}(D,O,b[e],v[e]);if(null===E)R[e]=u(e);else{var I=f[e],M=(O=_[e],C[e]),T=[];for(let e=0,n=E.length;e<n;e++)T[e]=M[E[e]];if(0!==I)for(let e=0,n=E.length;e<n;e++)E[e]+=I;let t,i;var A=c[e];i=A?(t=A.map(e=>e.options),A.map(e=>e.column-1)):t=null,R[e]=new yt.b(E,T,O,i,t)}}return document.body.removeChild(d),R}}}}}function Rn(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}var Pn=i("d48d"),Fn=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s};i=function(e,t){return function(i,n){t(i,n,e)}};let Bn=0;class jn{constructor(e,t,i,n,o){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=o}dispose(){Object(c.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let Wn=class e extends c.a{constructor(e,t,i,o,r,s,a,l,c,u){let g;super(),this._onDidDispose=this._register(new h.b),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new h.b),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new h.b),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new h.b),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new h.b),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new h.b),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new h.b),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new h.b),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new h.b),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new h.b),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new h.b),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new h.b),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new Vn),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new Vn),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new h.b),this.onWillType=this._onWillType.event,this._onDidType=this._register(new h.b),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new h.b),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new h.b),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new h.b),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new h.b),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new h.b),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new h.b),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new h.b),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new h.b),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onContextMenu=this._register(new h.b),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new h.b),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new h.b),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new h.b),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new h.b),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new h.b),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new h.b),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new h.b),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new h.b),this.onDidChangeViewZones=this._onDidChangeViewZones.event,t=Object.assign({},t),this._domElement=e,this._overflowWidgetsDomNode=t.overflowWidgetsDomNode,delete t.overflowWidgetsDomNode,this._id=++Bn,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this.isSimpleWidget=i.isSimpleWidget||!1,this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(t,u)),this._register(this._configuration.onDidChange(e=>{this._onDidChangeConfiguration.fire(e);var t=this._configuration.options;e.hasChanged(130)&&(e=t.get(130),this._onDidLayoutChange.fire(e))})),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=c,this._codeEditorService=r,this._commandService=s,this._themeService=l,this._register(new Hn(this,this._contextKeyService)),this._register(new zn(this,this._contextKeyService)),this._instantiationService=o.createChild(new wn.a([Cn.b,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new Un(e),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={};for(const h of g=Array.isArray(i.contributions)?i.contributions:n.d.getEditorContributions())if(this._contributions[h.id])Object(d.f)(new Error("Cannot have two contributions with the same id "+h.id));else try{var p=this._instantiationService.createInstance(h.ctor,this);this._contributions[h.id]=p}catch(e){Object(d.f)(e)}n.d.getEditorActions().forEach(e=>{var t;this._actions[e.id]?Object(d.f)(new Error("Cannot have two actions with the same id "+e.id)):(t=new Ki.a(e.id,e.label,e.alias,Object(Ln.o)(e.precondition),()=>this._instantiationService.invokeFunction(t=>Promise.resolve(e.runEditorCommand(t,this,null))),this._contextKeyService),this._actions[t.id]=t)}),this._codeEditorService.addCodeEditor(this)}_createConfiguration(e,t){return new g.a(this.isSimpleWidget,e,this._domElement,t)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return qi.a.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();var e=Object.keys(this._contributions);for(let i=0,n=e.length;i<n;i++){var t=e[i];this._contributions[t].dispose()}this._contributions={},this._actions={},this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e)}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?Pn.a.getWordAtPosition(this._modelData.model,this._configuration.options.get(116),e):null}getValue(e=null){if(!this._modelData)return"";var t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){this._modelData&&this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){var t,i;null===this._modelData&&null===e||this._modelData&&this._modelData.model===e||(i=this.hasTextFocus(),t=this._detachModel(),this._attachModel(e),i&&this.hasModel()&&this.focus(),i={oldModelUrl:t?t.uri:null,newModelUrl:e?e.uri:null},this._removeDecorationTypes(),this._onDidChangeModel.fire(i),this._postDetachModelCleanup(t))}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes)for(var t in this._decorationTypeSubtypes[e])this._removeDecorationType(e+"-"+t);this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetForPosition(e,t,i){return t=e.model.validatePosition({lineNumber:t,column:i}),i=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),e.viewModel.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)}getTopForLineNumber(t){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,1):-1}getTopForPosition(t,i){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,i):-1}setHiddenAreas(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map(e=>ne.a.lift(e)))}getVisibleColumnFromPosition(e){var t,i;return this._modelData?(t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize,oe.a.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1):e.column}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e){if(this._modelData){if(!ie.a.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(this._modelData){if(!ne.a.isIRange(e))throw new Error("Invalid arguments");e=this._modelData.model.validateRange(e),e=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(e),this._modelData.viewModel.revealRange("api",i,e,t,n)}}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new ne.a(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!ie.a.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new ne.a(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e){var t=m.a.isISelection(e),i=ne.a.isIRange(e);if(!t&&!i)throw new Error("Invalid arguments");t?this._setSelectionImpl(e):i&&(t={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn},this._setSelectionImpl(t))}_setSelectionImpl(e){this._modelData&&(e=new m.a(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn),this._modelData.viewModel.setSelections("api",[e]))}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new ne.a(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!ne.a.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(ne.a.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t<i;t++)if(!m.a.isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e,i)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e,t=1){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e,t=1){if(this._modelData){if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e,t=1){this._modelData&&this._modelData.viewModel.setScrollPosition(e,t)}saveViewState(){if(!this._modelData)return null;var e={};for(const i of Object.keys(this._contributions)){var t=this._contributions[i];"function"==typeof t.saveViewState&&(e[i]=t.saveViewState())}return{cursorState:this._modelData.viewModel.saveCursorState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}}restoreViewState(e){if(this._modelData&&this._modelData.hasRealView&&e&&e.cursorState&&e.viewState){var t=e.cursorState,i=(Array.isArray(t)?this._modelData.viewModel.restoreCursorState(t):this._modelData.viewModel.restoreCursorState([t]),e.contributionsState||{}),n=Object.keys(this._contributions);for(let e=0,t=n.length;e<t;e++){var o=n[e],r=this._contributions[o];"function"==typeof r.restoreViewState&&r.restoreViewState(i[o])}t=this._modelData.viewModel.reduceRestoreState(e.viewState),this._modelData.view.restoreState(t)}}getContribution(e){return this._contributions[e]||null}getActions(){var e=[],t=Object.keys(this._actions);for(let n=0,o=t.length;n<o;n++){var i=t[n];e.push(this._actions[i])}return e}getSupportedActions(){let e=this.getActions();return e.filter(e=>e.isSupported())}getAction(e){return this._actions[e]||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":var n=i;return void this._type(e,n.text||"");case"replacePreviousChar":return n=i,void this._compositionType(e,n.text||"",n.replaceCharCnt||0,0,0);case"compositionType":return n=i,void this._compositionType(e,n.text||"",n.replacePrevCharCnt||0,n.replaceNextCharCnt||0,n.positionDelta||0);case"paste":return n=i,void this._paste(e,n.text||"",n.pasteOnNewLine||!1,n.multicursorText||null,n.mode||null);case"cut":return void this._cut(e)}var o=this.getAction(t);o?Promise.resolve(o.run()).then(void 0,d.f):this._modelData&&!this._triggerEditorCommand(e,t,i)&&this._triggerCommand(t,i)}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e)&&this._onDidType.fire(t)}_compositionType(e,t,i,n,o){this._modelData&&this._modelData.viewModel.compositionType(t,i,n,o,e)}_paste(e,t,i,n,o){var r;this._modelData&&0!==t.length&&(r=this._modelData.viewModel.getSelection().getStartPosition(),this._modelData.viewModel.paste(t,i,n,e),t=this._modelData.viewModel.getSelection().getStartPosition(),"keyboard"===e)&&this._onDidPaste.fire({range:new ne.a(r.lineNumber,r.column,t.lineNumber,t.column),mode:o})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const o=n.d.getEditorCommand(t);return!!o&&((i=i||{}).source=e,this._instantiationService.invokeFunction(e=>{Promise.resolve(o.runEditorCommand(e,this,i)).then(void 0,d.f)}),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&!this._configuration.options.get(80)&&(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!!this._modelData&&!this._configuration.options.get(80)&&(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(80))return!1;let n;return n=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Object(z.m)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){var t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(130)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarMouseDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)}layout(e){this._configuration.observeReferenceElement(e),this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){var t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){var t=e.getId();this._contentWidgets.hasOwnProperty(t)&&((t=this._contentWidgets[t]).position=e.getPosition(),this._modelData)&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(t)}removeContentWidget(e){var t;e=e.getId();this._contentWidgets.hasOwnProperty(e)&&(t=this._contentWidgets[e],delete this._contentWidgets[e],this._modelData)&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(t)}addOverlayWidget(e){var t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId()),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){var t=e.getId();this._overlayWidgets.hasOwnProperty(t)&&((t=this._overlayWidgets[t]).position=e.getPosition(),this._modelData)&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(t)}removeOverlayWidget(e){var t;e=e.getId();this._overlayWidgets.hasOwnProperty(e)&&(t=this._overlayWidgets[e],delete this._overlayWidgets[e],this._modelData)&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(t)}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(t){var i,n;return this._modelData&&this._modelData.hasRealView?(t=this._modelData.model.validatePosition(t),n=(i=this._configuration.options).get(130),{top:e._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft(),height:i.get(58)}):null}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){g.a.applyFontInfoSlow(e,this._configuration.options.get(42))}_attachModel(e){if(e){var t=[],i=(this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached(),new vn(this._id,this._configuration,e,An.create(),Nn.create(this._configuration.options),e=>l.V(e))),[n,o]=(t.push(e.onDidChangeDecorations(e=>this._onDidChangeModelDecorations.fire(e))),t.push(e.onDidChangeLanguage(t=>{this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._onDidChangeModelLanguage.fire(t)})),t.push(e.onDidChangeLanguageConfiguration(e=>this._onDidChangeModelLanguageConfiguration.fire(e))),t.push(e.onDidChangeContent(e=>this._onDidChangeModelContent.fire(e))),t.push(e.onDidChangeOptions(e=>this._onDidChangeModelOptions.fire(e))),t.push(e.onWillDispose(()=>this.setModel(null))),t.push(i.onEvent(e=>{switch(e.kind){case 0:this._onDidContentSizeChange.fire(e);break;case 1:this._editorTextFocus.setValue(e.hasFocus);break;case 2:this._onDidScrollChange.fire(e);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidAttemptReadOnlyEdit.fire();break;case 5:e.reachedMaxCursorCount&&this._notificationService.warn(a.a("cursors.maximum","The number of cursors has been limited to {0}.",zi.MAX_CURSOR_COUNT));var t=[];for(let i=0,n=e.selections.length;i<n;i++)t[i]=e.selections[i].getPosition();var i={position:t[0],secondaryPositions:t.slice(1),reason:e.reason,source:e.source};i=(this._onDidChangeCursorPosition.fire(i),{selection:e.selections[0],secondarySelections:e.selections.slice(1),modelVersionId:e.modelVersionId,oldSelections:e.oldSelections,oldModelVersionId:e.oldModelVersionId,source:e.source,reason:e.reason});this._onDidChangeCursorSelection.fire(i)}})),this._createView(i));if(o){this._domElement.appendChild(n.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,i=t.length;e<i;e++){var r=t[e];n.addContentWidget(this._contentWidgets[r])}for(let e=0,i=(t=Object.keys(this._overlayWidgets)).length;e<i;e++){var s=t[e];n.addOverlayWidget(this._overlayWidgets[s])}n.render(!1,!0),n.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new jn(e,i,n,o,t)}else this._modelData=null}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,i,n)=>{this._paste("keyboard",e,t,i,n)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,n)=>{this._compositionType("keyboard",e,t,i,n)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,n)=>{this._commandService.executeCommand("paste",{text:e,pasteOnNewLine:t,multicursorText:i,mode:n})},type:e=>{this._commandService.executeCommand("type",{text:e})},compositionType:(e,t,i,n)=>{i||n?this._commandService.executeCommand("compositionType",{text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:n}):this._commandService.executeCommand("replacePreviousChar",{text:e,replaceCharCnt:t})},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};var i=new Ve(e.coordinatesConverter);i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e),e=new di(t,this._configuration,this._themeService,e,i,this._overflowWidgetsDomNode);return[e,!0]}_postDetachModelCleanup(e){e&&e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){var e,t;return this._modelData?(e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null,this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),e):null}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}};Wn=Fn([i(3,r.a),i(4,o.a),i(5,t.b),i(6,Cn.b),i(7,Ie.b),i(8,yn.a),i(9,Sn.b)],Wn);class Vn extends c.a{constructor(){super(),this._onDidChangeToTrue=this._register(new h.b),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new h.b),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){e=e?2:1,this._value!==e&&(this._value=e,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class Hn extends c.a{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=$i.a.editorSimpleInput.bindTo(t),this._editorFocus=$i.a.focus.bindTo(t),this._textInputFocus=$i.a.textInputFocus.bindTo(t),this._editorTextFocus=$i.a.editorTextFocus.bindTo(t),this._editorTabMovesFocus=$i.a.tabMovesFocus.bindTo(t),this._editorReadonly=$i.a.readOnly.bindTo(t),this._inDiffEditor=$i.a.inDiffEditor.bindTo(t),this._editorColumnSelection=$i.a.columnSelection.bindTo(t),this._hasMultipleSelections=$i.a.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=$i.a.hasNonEmptySelection.bindTo(t),this._canUndo=$i.a.canUndo.bindTo(t),this._canRedo=$i.a.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){var e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(129)),this._editorReadonly.set(e.get(80)),this._inDiffEditor.set(e.get(53)),this._editorColumnSelection.set(e.get(17))}_updateFromSelection(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(1<e.length),this._hasNonEmptySelection.set(e.some(e=>!e.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class zn extends c.a{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this._langId=$i.a.languageId.bindTo(t),this._hasCompletionItemProvider=$i.a.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=$i.a.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=$i.a.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=$i.a.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=$i.a.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=$i.a.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=$i.a.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=$i.a.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=$i.a.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=$i.a.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=$i.a.hasReferenceProvider.bindTo(t),this._hasRenameProvider=$i.a.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=$i.a.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=$i.a.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=$i.a.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=$i.a.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=$i.a.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=$i.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=$i.a.isInWalkThroughSnippet.bindTo(t),t=()=>this._update(),this._register(e.onDidChangeModel(t)),this._register(e.onDidChangeModelLanguage(t)),this._register(Ct.d.onDidChange(t)),this._register(Ct.a.onDidChange(t)),this._register(Ct.b.onDidChange(t)),this._register(Ct.f.onDidChange(t)),this._register(Ct.e.onDidChange(t)),this._register(Ct.q.onDidChange(t)),this._register(Ct.G.onDidChange(t)),this._register(Ct.p.onDidChange(t)),this._register(Ct.i.onDidChange(t)),this._register(Ct.m.onDidChange(t)),this._register(Ct.y.onDidChange(t)),this._register(Ct.z.onDidChange(t)),this._register(Ct.g.onDidChange(t)),this._register(Ct.j.onDidChange(t)),this._register(Ct.B.onDidChange(t)),this._register(Ct.r.onDidChange(t)),t()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(Ct.d.has(e)),this._hasCodeActionsProvider.set(Ct.a.has(e)),this._hasCodeLensProvider.set(Ct.b.has(e)),this._hasDefinitionProvider.set(Ct.f.has(e)),this._hasDeclarationProvider.set(Ct.e.has(e)),this._hasImplementationProvider.set(Ct.q.has(e)),this._hasTypeDefinitionProvider.set(Ct.G.has(e)),this._hasHoverProvider.set(Ct.p.has(e)),this._hasDocumentHighlightProvider.set(Ct.i.has(e)),this._hasDocumentSymbolProvider.set(Ct.m.has(e)),this._hasReferenceProvider.set(Ct.y.has(e)),this._hasRenameProvider.set(Ct.z.has(e)),this._hasSignatureHelpProvider.set(Ct.B.has(e)),this._hasInlayHintsProvider.set(Ct.r.has(e)),this._hasDocumentFormattingProvider.set(Ct.g.has(e)||Ct.j.has(e)),this._hasDocumentSelectionFormattingProvider.set(Ct.j.has(e)),this._hasMultipleDocumentFormattingProvider.set(1<Ct.g.all(e).length+Ct.j.all(e).length),this._hasMultipleDocumentSelectionFormattingProvider.set(1<Ct.j.all(e).length),this._isInWalkThrough.set(e.uri.scheme===u.c.walkThroughSnippet)}):this.reset()}}class Un extends c.a{constructor(e){super(),this._onChange=this._register(new h.b),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(l.Y(e)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}const Kn=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),qn=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function $n(e){return Kn+encodeURIComponent(e.toString())+qn}const Gn=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),Zn=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');Object(Ie.f)((e,t)=>{var i=e.getColor(St.t);i&&t.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${i}; }`),i=e.getColor(St.u),i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${$n(i)}") repeat-x bottom left; }`),i=e.getColor(St.s),i&&t.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${i}; }`),i=e.getColor(St.W),i&&t.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${i}; }`),i=e.getColor(St.X),i&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${$n(i)}") repeat-x bottom left; }`),i=e.getColor(St.V),i&&t.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${i}; }`),i=e.getColor(St.L),i&&t.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${i}; }`),i=e.getColor(St.M),i&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${$n(i)}") repeat-x bottom left; }`),i=e.getColor(St.K),i&&t.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${i}; }`),i=e.getColor(St.C),i&&t.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${i}; }`),i=e.getColor(St.D),i&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${i=i,Gn+encodeURIComponent(i.toString())+Zn}") no-repeat bottom left; }`),i=e.getColor(Ee.w),i&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${i.rgba.a}; }`),i=e.getColor(Ee.v),i&&t.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${i}; }`),i=e.getColor(St.B)||"inherit";t.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${i}}`)})},"9c3e":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o}));class n{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const o=new n("id#")},"9c41":function(e,t,i){"use strict";var n;i.d(t,"a",(function(){return n})),(i=n=n||{}).DARK="dark",i.LIGHT="light",i.HIGH_CONTRAST="hc"},"9d48":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:function(){return i.e("chunk-2d0e5b34").then(i.bind(null,"9634"))}})},"9e56":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"d",(function(){return o})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return a}));class n{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+n.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new n(this.value+n.sep+e)}}function o(e,t){return!(e.include&&!e.include.intersects(t)||e.excludes&&e.excludes.some(i=>s(t,i,e.include))||!e.includeSourceActions&&n.Source.contains(t))}function r(e,t){const i=t.kind?new n(t.kind):void 0;return!!(!e.include||i&&e.include.contains(i))&&!(e.excludes&&i&&e.excludes.some(t=>s(i,t,e.include))||!e.includeSourceActions&&i&&n.Source.contains(i)||e.onlyIncludePreferredActions&&!t.isPreferred)}function s(e,t,i){return!(!t.contains(e)||i&&t.contains(i))}n.sep=".",n.None=new n("@@none@@"),n.Empty=new n(""),n.QuickFix=new n("quickfix"),n.Refactor=new n("refactor"),n.Source=new n("source"),n.SourceOrganizeImports=n.Source.append("organizeImports"),n.SourceFixAll=n.Source.append("fixAll");class a{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return e&&"object"==typeof e?new a(a.getKindFromUser(e,t.kind),a.getApplyFromUser(e,t.apply),a.getPreferredUser(e)):new a(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"==typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"==typeof e.kind?new n(e.kind):t}static getPreferredUser(e){return"boolean"==typeof e.preferred&&e.preferred}}},"9e74":function(e,t,i){"use strict";i.d(t,"b",(function(){return l})),i.d(t,"a",(function(){return d}));var n=i("308f"),o=i("258a"),r=i("a666"),s=i("db88"),a=i("ef8e9");t=i("0a0f");const l=Object(t.c)("commandService"),d=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new n.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"==typeof e){if(t)return this.registerCommand({id:e,handler:t});throw new Error("invalid command")}if(e.description){const t=[];for(var i of e.description.args)t.push(i.constraint);const n=e.handler;e.handler=function(e,...i){return Object(a.n)(i,t),n(e,...i)}}const n=e["id"];let o=this._commands.get(n),l=(o||(o=new s.a,this._commands.set(n,o)),o.unshift(e));return t=Object(r.i)(()=>{l();var e=this._commands.get(n);null!=e&&e.isEmpty()&&this._commands.delete(n)}),this._onDidRegisterCommand.fire(n),t}registerCommandAlias(e,t){return d.registerCommand(e,(e,...i)=>e.get(l).executeCommand(t,...i))}getCommand(e){if(e=this._commands.get(e),e&&!e.isEmpty())return o.a.first(e)}getCommands(){var e=new Map;for(const i of this._commands.keys()){var t=this.getCommand(i);t&&e.set(i,t)}return e}};d.registerCommand("noop",()=>{})},"9eb0":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return i.e("chunk-2d0d7e63").then(i.bind(null,"797b"))}})},"9eb8":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i("fe45"),o=i("30db"),r=i("9e74");t=i("89cd");class s{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===o.a){if(e&&e.win)return e.win}else if(2===o.a){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){var t,i=s.bindToCurrentPlatform(e);if(i&&i.primary&&(t=Object(n.f)(i.primary,o.a))&&this._registerDefaultKeybinding(t,e.id,e.args,e.weight,0,e.when),i&&Array.isArray(i.secondary))for(let s=0,a=i.secondary.length;s<a;s++){var r=i.secondary[s];r=Object(n.f)(r,o.a);r&&this._registerDefaultKeybinding(r,e.id,e.args,e.weight,-s-1,e.when)}}registerCommandAndKeybindingRule(e){this.registerKeybindingRule(e),r.a.registerCommand(e)}static _mightProduceChar(e){return 21<=e&&e<=30||31<=e&&e<=56||80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e}_assertNoCtrlAlt(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&s._mightProduceChar(e.keyCode)}_registerDefaultKeybinding(e,t,i,n,r,s){1===o.a&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:s,weight1:n,weight2:r,extensionId:null,isBuiltinExtension:!1}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(l)),this._cachedMergedKeybindings.slice(0)}}const a=new s;function l(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.command<t.command?-1:e.command>t.command?1:e.weight2-t.weight2}t.a.add("platform.keybindingsRegistry",a)},"9ee1":function(e,t,i){"use strict";var n;function o(e,t){var i;return e.start>=t.end||t.start>=e.end||(i=Math.max(e.start,t.start),(e=Math.min(e.end,t.end))-i<=0)?{start:0,end:0}:{start:i,end:e}}function r(e){return e.end-e.start<=0}i.d(t,"a",(function(){return n})),(i=n=n||{}).intersect=o,i.isEmpty=r,i.intersects=function(e,t){return!r(o(e,t))},i.relativeComplement=function(e,t){var i=[],n={start:e.start,end:Math.min(t.start,e.end)};t={start:Math.max(t.end,e.start),end:e.end};return r(n)||i.push(n),r(t)||i.push(t),i}},"9f4d":function(e,t,i){"use strict";i.r(t);var n=i("dff7"),o=i("fe45"),r=(t=i("b2cc"),i("6a89")),s=i("c101"),a=i("d3f4"),l=i("7061"),d=i("8025"),h=i("70cb");class c{constructor(e,t){this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;var n=t.length;if(e.length<i+n)return!1;for(let s=0;s<n;s++){var o=e.charCodeAt(i+s),r=t.charCodeAt(s);if(o!==r&&!(65<=o&&o<=90&&o+32===r||65<=r&&r<=90&&r+32===o))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,o,s){var a=e.startLineNumber,l=e.startColumn,d=e.endLineNumber,h=e.endColumn,u=o.getLineContent(a);o=o.getLineContent(d);let g,p=u.lastIndexOf(t,l-1+t.length),m=o.indexOf(i,h-1-i.length);-1!==p&&-1!==m&&(a===d?0<=u.substring(p+t.length,m).indexOf(i)&&(p=-1,m=-1):(l=u.substring(p+t.length),h=o.substring(0,m),(0<=l.indexOf(i)||0<=h.indexOf(i))&&(p=-1,m=-1))),-1!==p&&-1!==m?(n&&p+t.length<u.length&&32===u.charCodeAt(p+t.length)&&(t+=" "),n&&0<m&&32===o.charCodeAt(m-1)&&(i=" "+i,--m),g=c._createRemoveBlockCommentOperations(new r.a(a,p+t.length+1,d,m+1),t,i)):(g=c._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===g.length?i:null);for(const r of g)s.addTrackedEditOperation(r.range,r.text)}static _createRemoveBlockCommentOperations(e,t,i){var n=[];return r.a.isEmpty(e)?n.push(a.a.delete(new r.a(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(a.a.delete(new r.a(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(a.a.delete(new r.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){var o=[];return r.a.isEmpty(e)?o.push(a.a.replace(new r.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(o.push(a.a.insert(new l.a(e.startLineNumber,e.startColumn),t+(n?" ":""))),o.push(a.a.insert(new l.a(e.endLineNumber,e.endColumn),(n?" ":"")+i))),o}getEditOperations(e,t){var i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenizeIfCheap(i),i=e.getLanguageIdAtPosition(i,n),n=h.a.getComments(i);n&&n.blockCommentStartToken&&n.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,n.blockCommentStartToken,n.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){var i,n;t=t.getInverseEditOperations();return 2===t.length?(i=t[0],n=t[1],new d.a(i.range.endLineNumber,i.range.endColumn,n.range.startLineNumber,n.range.startColumn)):(i=t[0].range,n=this._usedEndToken?-this._usedEndToken.length-1:0,new d.a(i.endLineNumber,i.endColumn+n,i.endLineNumber,i.endColumn+n))}}var u=i("3742");class g{constructor(e,t,i,n,o,r){this._selection=e,this._tabSize=t,this._type=i,this._insertSpace=n,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=o,this._ignoreFirstLine=r||!1}static _gatherPreflightCommentStrings(e,t,i){e.tokenizeIfCheap(t);e=e.getLanguageIdAtPosition(t,1),e=h.a.getComments(e);var n=e?e.lineCommentToken:null;if(!n)return null;var o=[];for(let r=0,s=i-t+1;r<s;r++)o[r]={ignore:!1,commentStr:n,commentStrOffset:0,commentStrLength:n.length};return o}static _analyzeLines(e,t,i,n,o,r,s){let a,l=!0;a=0===e||1!==e;for(let p=0,m=n.length;p<m;p++){var d,h=n[p],g=o+p;g===o&&s?h.ignore=!0:(g=i.getLineContent(g),-1===(d=u.u(g))?(h.ignore=r,h.commentStrOffset=g.length):(l=!1,h.ignore=!1,h.commentStrOffset=d,a&&!c._haystackHasNeedleAtOffset(g,h.commentStr,d)&&(0===e?a=!1:1!==e&&(h.ignore=!0)),a&&t&&(d+=h.commentStrLength)<g.length&&32===g.charCodeAt(d)&&(h.commentStrLength+=1)))}if(0===e&&l){a=!1;for(let e=0,t=n.length;e<t;e++)n[e].ignore=!1}return{supported:!0,shouldRemoveComments:a,lines:n}}static _gatherPreflightData(e,t,i,n,o,r,s){return o=g._gatherPreflightCommentStrings(i,n,o),null===o?{supported:!1}:g._analyzeLines(e,t,i,o,n,r,s)}_executeLineComments(e,t,i,n){let o;o=i.shouldRemoveComments?g._createRemoveLineCommentsOperations(i.lines,n.startLineNumber):(g._normalizeInsertionPoint(e,i.lines,n.startLineNumber,this._tabSize),this._createAddLineCommentsOperations(i.lines,n.startLineNumber));var s=new l.a(n.positionLineNumber,n.positionColumn);for(let a=0,l=o.length;a<l;a++)t.addEditOperation(o[a].range,o[a].text),r.a.isEmpty(o[a].range)&&r.a.getStartPosition(o[a].range).equals(s)&&e.getLineContent(s.lineNumber).length+1===s.column&&(this._deltaColumn=(o[a].text||"").length);this._selectionId=t.trackSelection(n)}_attemptRemoveBlockComment(e,t,i,n){let o=t.startLineNumber,s=t.endLineNumber;var a=n.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn);let l=e.getLineContent(o).lastIndexOf(i,a-1),d=e.getLineContent(s).indexOf(n,t.endColumn-1-i.length);return-1!==l&&-1===d&&(d=e.getLineContent(o).indexOf(n,l+i.length),s=o),-1===l&&-1!==d&&(l=e.getLineContent(s).lastIndexOf(i,d),o=s),!t.isEmpty()||-1!==l&&-1!==d||-1!==(l=e.getLineContent(o).indexOf(i))&&(d=e.getLineContent(o).indexOf(n,l+i.length)),-1!==l&&32===e.getLineContent(o).charCodeAt(l+i.length)&&(i+=" "),-1!==d&&32===e.getLineContent(s).charCodeAt(d-1)&&(n=" "+n,--d),-1!==l&&-1!==d?c._createRemoveBlockCommentOperations(new r.a(o,l+i.length+1,s,d+1),i,n):null}_executeBlockComment(e,t,i){e.tokenizeIfCheap(i.startLineNumber);var n=e.getLanguageIdAtPosition(i.startLineNumber,1);n=h.a.getComments(n);if(n&&n.blockCommentStartToken&&n.blockCommentEndToken){var o=n.blockCommentStartToken;n=n.blockCommentEndToken;let a=this._attemptRemoveBlockComment(e,i,o,n);if(!a){if(i.isEmpty()){var s=e.getLineContent(i.startLineNumber);let t=u.u(s);-1===t&&(t=s.length),a=c._createAddBlockCommentOperations(new r.a(i.startLineNumber,t+1,i.startLineNumber,s.length+1),o,n,this._insertSpace)}else a=c._createAddBlockCommentOperations(new r.a(i.startLineNumber,e.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),o,n,this._insertSpace);1===a.length&&(this._deltaColumn=o.length+1)}this._selectionId=t.trackSelection(i);for(const e of a)t.addEditOperation(e.range,e.text)}}getEditOperations(e,t){let i=this._selection;var n;if(this._moveEndPositionDown=!1,i.startLineNumber!==i.endLineNumber||!this._ignoreFirstLine)return i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1))),(n=g._gatherPreflightData(this._type,this._insertSpace,e,i.startLineNumber,i.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine)).supported?this._executeLineComments(e,t,n,i):this._executeBlockComment(e,t,i);t.addEditOperation(new r.a(i.startLineNumber,e.getLineMaxColumn(i.startLineNumber),i.startLineNumber+1,1),i.startLineNumber===e.getLineCount()?"":"\n"),this._selectionId=t.trackSelection(i)}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),new d.a(i.selectionStartLineNumber,i.selectionStartColumn+this._deltaColumn,i.positionLineNumber,i.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(e,t){var i=[];for(let o=0,s=e.length;o<s;o++){var n=e[o];n.ignore||i.push(a.a.delete(new r.a(t+o,n.commentStrOffset+1,t+o,n.commentStrOffset+n.commentStrLength+1)))}return i}_createAddLineCommentsOperations(e,t){var i=[],n=this._insertSpace?" ":"";for(let r=0,s=e.length;r<s;r++){var o=e[r];o.ignore||i.push(a.a.insert(new l.a(t+r,o.commentStrOffset+1),o.commentStr+n))}return i}static nextVisibleColumn(e,t,i,n){return i?e+(t-e%t):e+n}static _normalizeInsertionPoint(e,t,i,n){let o,r=1073741824;var s;for(let d=0,h=t.length;d<h;d++)if(!t[d].ignore){var a=e.getLineContent(i+d);let o=0;for(let e=0,i=t[d].commentStrOffset;o<r&&e<i;e++)o=g.nextVisibleColumn(o,n,9===a.charCodeAt(e),1);o<r&&(r=o)}r=Math.floor(r/n)*n;for(let d=0,h=t.length;d<h;d++)if(!t[d].ignore){var l=e.getLineContent(i+d);let a=0;for(o=0,s=t[d].commentStrOffset;a<r&&o<s;o++)a=g.nextVisibleColumn(a,n,9===l.charCodeAt(o),1);t[d].commentStrOffset=a>r?o-1:o}}}var p=i("7e32");class m extends t.b{constructor(e,t){super(t),this._type=e}run(e,t){if(t.hasModel()){var i=[],n=t.getModel().getOptions(),o=t.getOption(18),s=t.getSelections().map((e,t)=>({selection:e,index:t,ignoreFirstLine:!1}));s.sort((e,t)=>r.a.compareRangesUsingStarts(e.selection,t.selection));let e=s[0];for(let t=1;t<s.length;t++){var a=s[t];e.selection.endLineNumber===a.selection.startLineNumber&&(e.index<a.index?a.ignoreFirstLine=!0:(e.ignoreFirstLine=!0,e=a))}for(const t of s)i.push(new g(t.selection,n.tabSize,this._type,o.insertSpace,o.ignoreEmptyLines,t.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}}class f extends t.b{constructor(){super({id:"editor.action.blockComment",label:n.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:p.b.MenubarEditMenu,group:"5_insert",title:n.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){if(t.hasModel()){var i=t.getOption(18),n=[];for(const e of t.getSelections())n.push(new c(e,i.insertSpace));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}}Object(t.j)(class extends m{constructor(){super(0,{id:"editor.action.commentLine",label:n.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:p.b.MenubarEditMenu,group:"5_insert",title:n.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}),Object(t.j)(class extends m{constructor(){super(1,{id:"editor.action.addCommentLine",label:n.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:Object(o.a)(2089,2081),weight:100}})}}),Object(t.j)(class extends m{constructor(){super(2,{id:"editor.action.removeCommentLine",label:n.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:s.a.writable,kbOpts:{kbExpr:s.a.editorTextFocus,primary:Object(o.a)(2089,2099),weight:100}})}}),Object(t.j)(f)},"9f5f":function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return i.e("chunk-2d0f0a11").then(i.bind(null,"9cd5"))}})},a007:function(e,t,i){"use strict";i.d(t,"b",(function(){return c})),i.d(t,"a",(function(){return n}));var n,o,r=i("ef8e9"),s=i("2e5d"),a=i("f85a"),l=i("d48d"),d=i("7061"),h=i("6a89");class c{static addCursorDown(e,t,i){let n=[],o=0;for(let l=0,d=t.length;l<d;l++){var r=t[l];n[o++]=new s.d(r.modelState,r.viewState),n[o++]=i?s.d.fromModelState(a.a.translateDown(e.cursorConfig,e.model,r.modelState)):s.d.fromViewState(a.a.translateDown(e.cursorConfig,e,r.viewState))}return n}static addCursorUp(e,t,i){let n=[],o=0;for(let l=0,d=t.length;l<d;l++){var r=t[l];n[o++]=new s.d(r.modelState,r.viewState),n[o++]=i?s.d.fromModelState(a.a.translateUp(e.cursorConfig,e.model,r.modelState)):s.d.fromViewState(a.a.translateUp(e.cursorConfig,e,r.viewState))}return n}static moveToBeginningOfLine(e,t,i){var n=[];for(let r=0,s=t.length;r<s;r++){var o=t[r];n[r]=this._moveToLineStart(e,o,i)}return n}static _moveToLineStart(e,t,i){var n=t.viewState.position.column,o=n===t.modelState.position.column,r=t.viewState.position.lineNumber;r=e.getLineFirstNonWhitespaceColumn(r);return o||n===r?this._moveToLineStartByModel(e,t,i):this._moveToLineStartByView(e,t,i)}static _moveToLineStartByView(e,t,i){return s.d.fromViewState(a.a.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,i))}static _moveToLineStartByModel(e,t,i){return s.d.fromModelState(a.a.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,i))}static moveToEndOfLine(e,t,i,n){var o=[];for(let s=0,a=t.length;s<a;s++){var r=t[s];o[s]=this._moveToLineEnd(e,r,i,n)}return o}static _moveToLineEnd(e,t,i,n){var o=t.viewState.position,r=e.getLineMaxColumn(o.lineNumber),s=o.column===r,a=t.modelState.position,l=e.model.getLineMaxColumn(a.lineNumber);r=r-o.column==l-a.column;return s||r?this._moveToLineEndByModel(e,t,i,n):this._moveToLineEndByView(e,t,i,n)}static _moveToLineEndByView(e,t,i,n){return s.d.fromViewState(a.a.moveToEndOfLine(e.cursorConfig,e,t.viewState,i,n))}static _moveToLineEndByModel(e,t,i,n){return s.d.fromModelState(a.a.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,i,n))}static expandLineSelection(e,t){var i=[];for(let a=0,l=t.length;a<l;a++){var n=t[a],o=n.modelState.selection.startLineNumber,r=e.model.getLineCount();let l,c=n.modelState.selection.endLineNumber;l=c===r?e.model.getLineMaxColumn(r):(c++,1),i[a]=s.d.fromModelState(new s.f(new h.a(o,1,o,1),0,new d.a(c,l),0))}return i}static moveToBeginningOfBuffer(e,t,i){var n=[];for(let r=0,l=t.length;r<l;r++){var o=t[r];n[r]=s.d.fromModelState(a.a.moveToBeginningOfBuffer(e.cursorConfig,e.model,o.modelState,i))}return n}static moveToEndOfBuffer(e,t,i){var n=[];for(let r=0,l=t.length;r<l;r++){var o=t[r];n[r]=s.d.fromModelState(a.a.moveToEndOfBuffer(e.cursorConfig,e.model,o.modelState,i))}return n}static selectAll(e,t){var i=e.model.getLineCount();e=e.model.getLineMaxColumn(i);return s.d.fromModelState(new s.f(new h.a(1,1,1,1),0,new d.a(i,e),0))}static line(e,t,i,n,o){if(n=e.model.validatePosition(n),o=o?e.coordinatesConverter.validateViewPosition(new d.a(o.lineNumber,o.column),n):e.coordinatesConverter.convertModelPositionToViewPosition(n),!i||!t.modelState.hasSelection()){i=e.model.getLineCount();let t=n.lineNumber+1,o=1;return t>i&&(t=i,o=e.model.getLineMaxColumn(t)),s.d.fromModelState(new s.f(new h.a(n.lineNumber,1,t,o),0,new d.a(t,o),0))}i=t.modelState.selectionStart.getStartPosition().lineNumber;if(n.lineNumber<i)return s.d.fromViewState(t.viewState.move(t.modelState.hasSelection(),o.lineNumber,1,0));if(n.lineNumber>i){n=e.getLineCount();let i=o.lineNumber+1,r=1;return i>n&&(i=n,r=e.getLineMaxColumn(i)),s.d.fromViewState(t.viewState.move(t.modelState.hasSelection(),i,r,0))}return i=t.modelState.selectionStart.getEndPosition(),s.d.fromModelState(t.modelState.move(t.modelState.hasSelection(),i.lineNumber,i.column,0))}static word(e,t,i,n){return n=e.model.validatePosition(n),s.d.fromModelState(l.a.word(e.cursorConfig,e.model,t.modelState,i,n))}static cancelSelection(e,t){var i,n;return t.modelState.hasSelection()?(i=t.viewState.position.lineNumber,n=t.viewState.position.column,s.d.fromViewState(new s.f(new h.a(i,n,i,n),0,new d.a(i,n),0))):new s.d(t.modelState,t.viewState)}static moveTo(e,t,i,n,o){return n=e.model.validatePosition(n),o=o?e.coordinatesConverter.validateViewPosition(new d.a(o.lineNumber,o.column),n):e.coordinatesConverter.convertModelPositionToViewPosition(n),s.d.fromViewState(t.viewState.move(i,o.lineNumber,o.column,0))}static simpleMove(e,t,i,n,o,r){switch(i){case 0:return 4===r?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,o);case 1:return 4===r?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,o);case 2:return 2===r?this._moveUpByViewLines(e,t,n,o):this._moveUpByModelLines(e,t,n,o);case 3:return 2===r?this._moveDownByViewLines(e,t,n,o):this._moveDownByModelLines(e,t,n,o);case 4:return 2===r?t.map(t=>s.d.fromViewState(a.a.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n))):t.map(t=>s.d.fromModelState(a.a.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n)));case 5:return 2===r?t.map(t=>s.d.fromViewState(a.a.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n))):t.map(t=>s.d.fromModelState(a.a.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n)));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,o){var r=e.getCompletelyVisibleViewRange(),s=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:var a=this._firstLineNumberInRange(e.model,s,o),l=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,t[0],n,a,l)];case 13:return a=this._lastLineNumberInRange(e.model,s,o),l=e.model.getLineFirstNonWhitespaceColumn(a),[this._moveToModelPosition(e,t[0],n,a,l)];case 12:return a=Math.round((s.startLineNumber+s.endLineNumber)/2),l=e.model.getLineFirstNonWhitespaceColumn(a),[this._moveToModelPosition(e,t[0],n,a,l)];case 14:var d=[];for(let i=0,o=t.length;i<o;i++){var h=t[i];d[i]=this.findPositionInViewportIfOutside(e,h,r,n)}return d;default:return null}}static findPositionInViewportIfOutside(e,t,i,n){let o=t.viewState.position.lineNumber;return i.startLineNumber<=o&&o<=i.endLineNumber-1?new s.d(t.modelState,t.viewState):((o=o>i.endLineNumber-1?i.endLineNumber-1:o)<i.startLineNumber&&(o=i.startLineNumber),i=e.getLineFirstNonWhitespaceColumn(o),this._moveToViewPosition(e,t,n,o,i))}static _firstLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.min(t.endLineNumber,n+i-1)}static _lastLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.max(n,t.endLineNumber-i+1)}static _moveLeft(e,t,i,n){return t.map(t=>s.d.fromViewState(a.a.moveLeft(e.cursorConfig,e,t.viewState,i,n)))}static _moveHalfLineLeft(e,t,i){var n=[];for(let l=0,d=t.length;l<d;l++){var o=t[l],r=o.viewState.position.lineNumber;r=Math.round(e.getLineContent(r).length/2);n[l]=s.d.fromViewState(a.a.moveLeft(e.cursorConfig,e,o.viewState,i,r))}return n}static _moveRight(e,t,i,n){return t.map(t=>s.d.fromViewState(a.a.moveRight(e.cursorConfig,e,t.viewState,i,n)))}static _moveHalfLineRight(e,t,i){var n=[];for(let l=0,d=t.length;l<d;l++){var o=t[l],r=o.viewState.position.lineNumber;r=Math.round(e.getLineContent(r).length/2);n[l]=s.d.fromViewState(a.a.moveRight(e.cursorConfig,e,o.viewState,i,r))}return n}static _moveDownByViewLines(e,t,i,n){var o=[];for(let l=0,d=t.length;l<d;l++){var r=t[l];o[l]=s.d.fromViewState(a.a.moveDown(e.cursorConfig,e,r.viewState,i,n))}return o}static _moveDownByModelLines(e,t,i,n){var o=[];for(let l=0,d=t.length;l<d;l++){var r=t[l];o[l]=s.d.fromModelState(a.a.moveDown(e.cursorConfig,e.model,r.modelState,i,n))}return o}static _moveUpByViewLines(e,t,i,n){var o=[];for(let l=0,d=t.length;l<d;l++){var r=t[l];o[l]=s.d.fromViewState(a.a.moveUp(e.cursorConfig,e,r.viewState,i,n))}return o}static _moveUpByModelLines(e,t,i,n){var o=[];for(let l=0,d=t.length;l<d;l++){var r=t[l];o[l]=s.d.fromModelState(a.a.moveUp(e.cursorConfig,e.model,r.modelState,i,n))}return o}static _moveToViewPosition(e,t,i,n,o){return s.d.fromViewState(t.viewState.move(i,n,o,0))}static _moveToModelPosition(e,t,i,n,o){return s.d.fromModelState(t.modelState.move(i,n,o,0))}static _moveToViewMinColumn(e,t,i){var n=[];for(let a=0,l=t.length;a<l;a++){var o=t[a],r=o.viewState.position.lineNumber,s=e.getLineMinColumn(r);n[a]=this._moveToViewPosition(e,o,i,r,s)}return n}static _moveToViewFirstNonWhitespaceColumn(e,t,i){var n=[];for(let a=0,l=t.length;a<l;a++){var o=t[a],r=o.viewState.position.lineNumber,s=e.getLineFirstNonWhitespaceColumn(r);n[a]=this._moveToViewPosition(e,o,i,r,s)}return n}static _moveToViewCenterColumn(e,t,i){var n=[];for(let a=0,l=t.length;a<l;a++){var o=t[a],r=o.viewState.position.lineNumber,s=Math.round((e.getLineMaxColumn(r)+e.getLineMinColumn(r))/2);n[a]=this._moveToViewPosition(e,o,i,r,s)}return n}static _moveToViewMaxColumn(e,t,i){var n=[];for(let a=0,l=t.length;a<l;a++){var o=t[a],r=o.viewState.position.lineNumber,s=e.getLineMaxColumn(r);n[a]=this._moveToViewPosition(e,o,i,r,s)}return n}static _moveToViewLastNonWhitespaceColumn(e,t,i){var n=[];for(let a=0,l=t.length;a<l;a++){var o=t[a],r=o.viewState.position.lineNumber,s=e.getLineLastNonWhitespaceColumn(r);n[a]=this._moveToViewPosition(e,o,i,r,s)}return n}}(o=n=n||{}).description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:function(e){return!!r.j(e)&&!!r.k((e=e).to)&&!(!r.l(e.select)&&!r.g(e.select)||!r.l(e.by)&&!r.k(e.by)||!r.l(e.value)&&!r.i(e.value))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},o.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},o.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},o.parse=function(e){if(!e.to)return null;let t;switch(e.to){case o.RawDirection.Left:t=0;break;case o.RawDirection.Right:t=1;break;case o.RawDirection.Up:t=2;break;case o.RawDirection.Down:t=3;break;case o.RawDirection.PrevBlankLine:t=4;break;case o.RawDirection.NextBlankLine:t=5;break;case o.RawDirection.WrappedLineStart:t=6;break;case o.RawDirection.WrappedLineFirstNonWhitespaceCharacter:t=7;break;case o.RawDirection.WrappedLineColumnCenter:t=8;break;case o.RawDirection.WrappedLineEnd:t=9;break;case o.RawDirection.WrappedLineLastNonWhitespaceCharacter:t=10;break;case o.RawDirection.ViewPortTop:t=11;break;case o.RawDirection.ViewPortBottom:t=13;break;case o.RawDirection.ViewPortCenter:t=12;break;case o.RawDirection.ViewPortIfOutside:t=14;break;default:return null}let i=0;switch(e.by){case o.RawUnit.Line:i=1;break;case o.RawUnit.WrappedLine:i=2;break;case o.RawUnit.Character:i=3;break;case o.RawUnit.HalfLine:i=4}return{direction:t,unit:i,select:!!e.select,value:e.value||1}}},a054:function(e,t,i){"use strict";i.d(t,"b",(function(){return u})),i.d(t,"a",(function(){return g}));var n=i("dff7"),o=i("fdcc"),r=i("8025"),s=i("6d8e"),a=i("e679"),l=i("1e93");i("82c9");class d{constructor(e,t,i,n,o,r,s){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=o,this.afterCursorState=r,this.changes=s}static create(e,t){var i=e.getAlternativeVersionId();e=c(e);return new d(i,i,e,e,t,t,[])}append(e,t,i,n,o){0<t.length&&(this.changes=Object(a.b)(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(l.f(e,t?t.length:0,i),i+=4,t)for(const n of t)l.f(e,n.selectionStartLineNumber,i),i+=4,l.f(e,n.selectionStartColumn,i),i+=4,l.f(e,n.positionLineNumber,i),i+=4,l.f(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){var n=l.c(e,t);t+=4;for(let h=0;h<n;h++){var o=l.c(e,t),s=(t+=4,l.c(e,t)),a=(t+=4,l.c(e,t)),d=(t+=4,l.c(e,t));t+=4,i.push(new r.a(o,s,a,d))}return t}serialize(){let e=10+d._writeSelectionsSize(this.beforeCursorState)+d._writeSelectionsSize(this.afterCursorState)+4;for(const n of this.changes)e+=n.writeSize();var t=new Uint8Array(e);let i=0;l.f(t,this.beforeVersionId,i),i+=4,l.f(t,this.afterVersionId,i),i+=4,l.g(t,this.beforeEOL,i),i+=1,l.g(t,this.afterEOL,i),i+=1,i=d._writeSelections(t,this.beforeCursorState,i),i=d._writeSelections(t,this.afterCursorState,i),l.f(t,this.changes.length,i),i+=4;for(const n of this.changes)i=n.write(t,i);return t.buffer}static deserialize(e){var t=new Uint8Array(e);let i=0;e=l.c(t,i);var n=(i+=4,l.c(t,i)),o=(i+=4,l.d(t,i)),r=(i+=1,l.d(t,i)),s=(i+=1,[]),h=(i=d._readSelections(t,i,s),[]),c=(i=d._readSelections(t,i,h),l.c(t,i)),u=(i+=4,[]);for(let l=0;l<c;l++)i=a.a.read(t,i,u);return new d(e,n,o,r,s,h,u)}}class h{constructor(e,t){this.model=e,this._data=d.create(e,t)}get type(){return 0}get resource(){return s.a.isUri(this.model)?this.model:this.model.uri}get label(){return n.a("edit","Typing")}toString(){return(this._data instanceof d?this._data:d.deserialize(this._data)).changes.map(e=>e.toString()).join(", ")}matchesResource(e){return(s.a.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof d}append(e,t,i,n,o){this._data instanceof d&&this._data.append(e,t,i,n,o)}close(){this._data instanceof d&&(this._data=this._data.serialize())}open(){this._data instanceof d||(this._data=d.deserialize(this._data))}undo(){if(s.a.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());var e=d.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(s.a.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof d&&(this._data=this._data.serialize());var e=d.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof d&&(this._data=this._data.serialize()),this._data.byteLength+168}}function c(e){return"\n"===e.getEOL()?0:1}function u(e){return!!e&&(e instanceof h||!1)}class g{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){var e=this._undoRedoService.getLastElement(this._model.uri);u(e)&&e.close()}popStackElement(){var e=this._undoRedoService.getLastElement(this._model.uri);u(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){var t=this._undoRedoService.getLastElement(this._model.uri);return u(t)&&t.canAppend(this._model)||(t=new h(this._model,e),this._undoRedoService.pushElement(t)),t}pushEOL(e){var t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],c(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i){return e=this._getOrCreateEditStackElement(e),t=this._model.applyEdits(t,!0),i=g._computeCursorState(i,t),t=t.map((e,t)=>({index:t,textChange:e.textChange})),t.sort((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition),e.append(this._model,t.map(e=>e.textChange),c(this._model),this._model.getAlternativeVersionId(),i),i}static _computeCursorState(e,t){try{return e?e(t):null}catch(e){return Object(o.f)(e),null}}}},a0a2:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return i.e("chunk-2d0b6187").then(i.bind(null,"1c65"))}})},a106:function(e,t,i){"use strict";i.r(t),i.d(t,"getSelectionSearchString",(function(){return it})),i.d(t,"CommonFindController",(function(){return nt})),i.d(t,"FindController",(function(){return ot})),i.d(t,"StartFindAction",(function(){return rt})),i.d(t,"StartFindWithSelectionAction",(function(){return st})),i.d(t,"MatchFindAction",(function(){return at})),i.d(t,"NextMatchFindAction",(function(){return lt})),i.d(t,"PreviousMatchFindAction",(function(){return dt})),i.d(t,"SelectionMatchFindAction",(function(){return ht})),i.d(t,"NextSelectionMatchFindAction",(function(){return ct})),i.d(t,"PreviousSelectionMatchFindAction",(function(){return ut})),i.d(t,"StartFindReplaceAction",(function(){return gt}));var n=i("dff7"),o=i("5fe7"),r=i("a666"),s=i("3742"),a=(t=i("b2cc"),i("c101")),l=i("2c29"),d=i("7061"),h=i("6a89"),c=i("8025"),u=i("8c02"),g=i("3352"),p=i("b57f"),m=i("303e"),f=i("b7d0");class _{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){var e=this._findScopeDecorationIds.map(e=>this._editor.getModel().getDecorationRange(e)).filter(e=>!!e);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){return e=this._decorations.indexOf(e),0<=e?e+1:1}getCurrentMatchesPosition(e){for(const i of this._editor.getModel().getDecorationsInRange(e)){var t=i.options;if(t===_._FIND_MATCH_DECORATION||t===_._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let o=0,r=this._decorations.length;o<r;o++){var n=this._editor.getModel().getDecorationRange(this._decorations[o]);if(e.equalsRange(n)){t=this._decorations[o],i=o+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations(e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,_._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,_._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let o=this._editor.getModel().getDecorationRange(t);var i,n;o.startLineNumber!==o.endLineNumber&&1===o.endColumn&&(i=o.endLineNumber-1,n=this._editor.getModel().getLineMaxColumn(i),o=new h.a(o.startLineNumber,o.startColumn,i,n)),this._rangeHighlightDecorationId=e.addDecoration(o,_._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let n=_._FIND_MATCH_DECORATION;var o=[];if(1e3<e.length){n=_._FIND_MATCH_NO_OVERVIEW_DECORATION;var r=this._editor.getModel().getLineCount(),s=this._editor.getLayoutInfo().height,a=Math.max(2,Math.ceil(3/(s/r)));let t=e[0].range.startLineNumber,i=e[0].range.endLineNumber;for(let n=1,r=e.length;n<r;n++){var l=e[n].range;i+a>=l.startLineNumber?l.endLineNumber>i&&(i=l.endLineNumber):(o.push({range:new h.a(t,1,i,1),options:_._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),t=l.startLineNumber,i=l.endLineNumber)}o.push({range:new h.a(t,1,i,1),options:_._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var d=new Array(e.length);for(let t=0,h=e.length;t<h;t++)d[t]={range:e[t].range,options:n};this._decorations=i.deltaDecorations(this._decorations,d),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,o),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach(e=>i.removeDecoration(e)),this._findScopeDecorationIds=[]),null!=t&&t.length&&(this._findScopeDecorationIds=t.map(e=>i.addDecoration(e,_._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let i=this._decorations.length-1;0<=i;i--){var t=this._decorations[i];t=this._editor.getModel().getDecorationRange(t);if(t&&!(t.endLineNumber>e.lineNumber)){if(t.endLineNumber<e.lineNumber)return t;if(!(t.endColumn>e.column))return t}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let i=0,n=this._decorations.length;i<n;i++){var t=this._decorations[i];t=this._editor.getModel().getDecorationRange(t);if(t&&!(t.startLineNumber<e.lineNumber)){if(t.startLineNumber>e.lineNumber)return t;if(!(t.startColumn<e.column))return t}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=(e=e.concat(this._decorations)).concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}}_._CURRENT_FIND_MATCH_DECORATION=p.a.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(f.g)(m.ic),position:g.d.Center},minimap:{color:Object(f.g)(m.bc),position:g.c.Inline}}),_._FIND_MATCH_DECORATION=p.a.register({description:"find-match",stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(f.g)(m.ic),position:g.d.Center},minimap:{color:Object(f.g)(m.bc),position:g.c.Inline}}),_._FIND_MATCH_NO_OVERVIEW_DECORATION=p.a.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),_._FIND_MATCH_ONLY_OVERVIEW_DECORATION=p.a.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:Object(f.g)(m.ic),position:g.d.Center}}),_._RANGE_HIGHLIGHT_DECORATION=p.a.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),_._FIND_SCOPE_DECORATION=p.a.register({description:"find-scope",className:"findScope",isWholeLine:!0});class b{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(0<this._ranges.length){var i=[];for(let t=0;t<this._ranges.length;t++)i.push({range:this._ranges[t],text:this._replaceStrings[t]});i.sort((e,t)=>h.a.compareRangesUsingStarts(e.range,t.range));var n=[];let e=i[0];for(let t=1;t<i.length;t++)e.range.endLineNumber===i[t].range.startLineNumber&&e.range.endColumn===i[t].range.startColumn?(e.range=e.range.plusRange(i[t].range),e.text=e.text+i[t].text):(n.push(e),e=i[t]);n.push(e);for(const i of n)t.addEditOperation(i.range,i.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function v(e,t){var i,n;return e&&""!==e[0]?(i=C(e,t,"-"),n=C(e,t,"_"),i&&!n?w(e,t,"-"):!i&&n?w(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():s.o(e[0][0])&&0<t.length?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&0<t.length?t[0].toLowerCase()+t.substr(1):t):t}function C(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function w(e,t,i){t=t.split(i);const n=e[0].split(i);let o="";return t.forEach((e,t)=>{o+=v([n[t]],e)+i}),o.slice(0,-1)}class y{constructor(e){this.staticValue=e,this.kind=0}}class S{constructor(e){this.pieces=e,this.kind=1}}class L{constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new y(e[0].staticValue):this._state=new S(e):this._state=new y("")}static fromStaticValue(e){return new L([x.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}buildReplaceString(e,t){if(0===this._state.kind)return t?v(e,this._state.staticValue):this._state.staticValue;let i="";for(let s=0,a=this._state.pieces.length;s<a;s++){var n=this._state.pieces[s];if(null!==n.staticValue)i+=n.staticValue;else{let t=L._substitute(n.matchIndex,e);if(null!==n.caseOps&&0<n.caseOps.length){var o=[],r=n.caseOps.length;let e=0;for(let i=0,s=t.length;i<s;i++){if(e>=r){o.push(t.slice(i));break}switch(n.caseOps[e]){case"U":o.push(t[i].toUpperCase());break;case"u":o.push(t[i].toUpperCase()),e++;break;case"L":o.push(t[i].toLowerCase());break;case"l":o.push(t[i].toLowerCase()),e++;break;default:o.push(t[i])}}t=o.join("")}i+=t}}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;0<e;){if(e<t.length)return(t[e]||"")+i;i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class x{constructor(e,t,i){this.staticValue=e,this.matchIndex=t,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}static staticValue(e){return new x(e,-1,null)}static caseOps(e,t){return new x(null,e,t)}}class k{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=x.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=x.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=x.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new L(this._result)}}var D=i("4fc3"),N=i("e8e3");const O=new D.c("findWidgetVisible",!1),E=new D.c("findInputFocussed",!1),I=new D.c("replaceInputFocussed",!1);g={primary:545,mac:{primary:2593}},p={primary:565,mac:{primary:2613}};var M={primary:560,mac:{primary:2608}},T={primary:554,mac:{primary:2602}},A={primary:558,mac:{primary:2606}};const R={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},P=19999;class F{constructor(e,t){this._toDispose=new r.b,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new o.g,this._decorations=new _(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new o.e(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,Object(r.f)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){this._isDisposed||this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;void 0!==t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map(e=>{if(e.startLineNumber===e.endLineNumber)return e;{let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new h.a(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}}));t=this._findMatches(i,!1,P);this._decorations.set(t,i);const n=this._editor.getSelection();let o=this._decorations.getCurrentMatchesPosition(n);0===o&&0<t.length&&(t=Object(N.i)(t.map(e=>e.range),e=>0<=h.a.compareRangesUsingStarts(e,n)),o=0<t?t-1+1:o),this._state.changeMatchInfo(o,this._decorations.getCount(),void 0),e&&this._editor.getOption(34).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return 0<this._state.matchesCount}_cannotFind(){var e;return!this._hasMatches()&&((e=this._decorations.getFindScope())&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0)}_setCurrentFindMatch(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){var t=this._state.isRegex&&(0<=this._state.searchString.indexOf("^")||0<=this._state.searchString.indexOf("$"));let{lineNumber:i,column:n}=e;return e=this._editor.getModel(),t||1===n?(1===i?i=e.getLineCount():i--,n=e.getLineMaxColumn(i)):n--,new d.a(i,n)}_moveToPrevMatch(e,t=!1){if(this._state.canNavigateBack()){if(this._decorations.getCount()<P){let t=this._decorations.matchBeforePosition(e);t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),t&&this._setCurrentFindMatch(t)}else if(!this._cannotFind()){var i=this._decorations.getFindScope(),{lineNumber:n,column:o}=(i=F._getSearchRange(this._editor.getModel(),i),e=(e=i.getEndPosition().isBefore(e)?i.getEndPosition():e).isBefore(i.getStartPosition())?i.getEndPosition():e),r=this._editor.getModel(),n=new d.a(n,o);let s=r.findPreviousMatch(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(116):null,!1);if(s&&s.range.isEmpty()&&s.range.getStartPosition().equals(n)&&(n=this._prevSearchPosition(n),s=r.findPreviousMatch(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(116):null,!1)),s)return t||i.containsRange(s.range)?void this._setCurrentFindMatch(s.range):this._moveToPrevMatch(s.range.getStartPosition(),!0)}}else(o=this._decorations.matchAfterPosition(e))&&this._setCurrentFindMatch(o)}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){var t=this._state.isRegex&&(0<=this._state.searchString.indexOf("^")||0<=this._state.searchString.indexOf("$"));let{lineNumber:i,column:n}=e;return e=this._editor.getModel(),t||n===e.getLineMaxColumn(i)?(i===e.getLineCount()?i=1:i++,n=1):n++,new d.a(i,n)}_moveToNextMatch(e){if(this._state.canNavigateForward())if(this._decorations.getCount()<P){let t=this._decorations.matchAfterPosition(e);t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),t&&this._setCurrentFindMatch(t)}else{var t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}else(t=this._decorations.matchBeforePosition(e))&&this._setCurrentFindMatch(t)}_getNextMatch(e,t,i,n=!1){if(this._cannotFind())return null;var o=this._decorations.getFindScope(),{lineNumber:e,column:r}=(o=F._getSearchRange(this._editor.getModel(),o),e=(e=o.getEndPosition().isBefore(e)?o.getStartPosition():e).isBefore(o.getStartPosition())?o.getStartPosition():e),s=this._editor.getModel();e=new d.a(e,r);let a=s.findNextMatch(this._state.searchString,e,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(116):null,t);return i&&a&&a.range.isEmpty()&&a.range.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),a=s.findNextMatch(this._state.searchString,e,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(116):null,t)),a?n||o.containsRange(a.range)?a:this._getNextMatch(a.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_getReplacePattern(){if(this._state.isRegex){var e=this._state.replaceString;if(!e||0===e.length)return new L(null);var t=[],i=new k(e);for(let r=0,s=e.length;r<s;r++){var n=e.charCodeAt(r);if(92===n){if(++r>=s)break;var o=e.charCodeAt(r);switch(o){case 92:i.emitUnchanged(r-1),i.emitStatic("\\",r+1);break;case 110:i.emitUnchanged(r-1),i.emitStatic("\n",r+1);break;case 116:i.emitUnchanged(r-1),i.emitStatic("\t",r+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(r-1),i.emitStatic("",r+1),t.push(String.fromCharCode(o))}}else if(36===n){if(++r>=s)break;if(n=e.charCodeAt(r),36===n)i.emitUnchanged(r-1),i.emitStatic("$",r+1);else if(48===n||38===n)i.emitUnchanged(r-1),i.emitMatchIndex(0,r+1,t),t.length=0;else if(49<=n&&n<=57){let o=n-48;if(r+1<s&&(n=e.charCodeAt(r+1),48<=n&&n<=57)){r++,o=10*o+(n-48),i.emitUnchanged(r-2),i.emitMatchIndex(o,r+1,t),t.length=0;continue}i.emitUnchanged(r-1),i.emitMatchIndex(o,r+1,t),t.length=0}}}return i.finalize()}return L.fromStaticValue(this._state.replaceString)}replace(){var e,t,i,n;this._hasMatches()&&(i=this._getReplacePattern(),e=this._editor.getSelection(),t=this._getNextMatch(e.getStartPosition(),!0,!1))&&(e.equalsRange(t.range)?(i=i.buildReplaceString(t.matches,this._state.preserveCase),n=new l.a(e,i),this._executeEditorCommand("replace",n),this._decorations.setStartPosition(new d.a(e.startLineNumber,e.startColumn+i.length)),this.research(!0)):(this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(t.range)))}_findMatches(e,t,i){return e=(e||[null]).map(e=>F._getSearchRange(this._editor.getModel(),e)),this._editor.getModel().findMatches(this._state.searchString,e,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(116):null,t,i)}replaceAll(){var e;this._hasMatches()&&(null===(e=this._decorations.getFindScopes())&&this._state.matchesCount>=P?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1))}_largeReplaceAll(){var e=new u.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(116):null).parseSearchRequest();if(e){let i=e.regex;if(!i.multiline){let e="mu";i.ignoreCase&&(e+="i"),i.global&&(e+="g"),i=new RegExp(i.source,e)}e=this._editor.getModel();var t=e.getValue(1);e=e.getFullModelRange();const n=this._getReplacePattern();let o;const r=this._state.preserveCase;o=n.hasReplacementPatterns||r?t.replace(i,(function(){return n.buildReplaceString(arguments,r)})):t.replace(i,n.buildReplaceString(null,r)),t=new l.b(e,o,this._editor.getSelection()),this._executeEditorCommand("replaceAll",t)}}_regularReplaceAll(e){var t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let o=0,r=i.length;o<r;o++)n[o]=t.buildReplaceString(i[o].matches,this._state.preserveCase);e=new b(this._editor.getSelection(),i.map(e=>e.range),n),this._executeEditorCommand("replaceAll",e)}selectAllMatches(){if(this._hasMatches()){var e=this._decorations.getFindScopes();let i=this._findMatches(e,!1,1073741824).map(e=>new c.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn));var t=this._editor.getSelection();for(let e=0,n=i.length;e<n;e++)if(i[e].equalsRange(t)){i=[t].concat(i.slice(0,e)).concat(i.slice(e+1));break}this._editor.setSelections(i)}}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var B=i("11f7"),j=i("1b7d"),W=i("561a"),V=i("ceb8"),H=i("308f");i("8899");const z={inputActiveOptionBorder:V.a.fromHex("#007ACC00"),inputActiveOptionForeground:V.a.fromHex("#FFFFFF"),inputActiveOptionBackground:V.a.fromHex("#0E639C50")};class U extends j.a{constructor(e){super(),this._onChange=this._register(new H.b),this.onChange=this._onChange.event,this._onKeyDown=this._register(new H.b),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},z),e),this._checked=this._opts.isChecked,e=["monaco-custom-checkbox"],this._opts.icon&&e.push(...W.a.asClassNameArray(this._opts.icon)),this._opts.actionClassName&&e.push(...this._opts.actionClassName.split(" ")),this._checked&&e.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...e),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,e=>{this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault()}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,e=>{10===e.keyCode||3===e.keyCode?(this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault()):this._onKeyDown.fire(e)})}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}const K=n.a("caseDescription","Match Case"),q=n.a("wordsDescription","Match Whole Word"),$=n.a("regexDescription","Use Regular Expression");class G extends U{constructor(e){super({icon:W.b.caseSensitive,title:K+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class Z extends U{constructor(e){super({icon:W.b.wholeWord,title:q+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class Y extends U{constructor(e){super({icon:W.b.regex,title:$+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class X extends j.a{constructor(e,t,i,n){super(),this._hideSoon=this._register(new o.e(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),e=n.getColorTheme().getColor(m.hb),t=n.getColorTheme().getColor(m.ib),i=n.getColorTheme().getColor(m.gb),this.caseSensitive=this._register(new G({appendTitle:this._keybindingLabelFor(R.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:e,inputActiveOptionForeground:t,inputActiveOptionBackground:i})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new Z({appendTitle:this._keybindingLabelFor(R.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:e,inputActiveOptionForeground:t,inputActiveOptionBackground:i})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new Y({appendTitle:this._keybindingLabelFor(R.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:e,inputActiveOptionForeground:t,inputActiveOptionBackground:i})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()})),this._register(B.j(this._domNode,e=>this._onMouseOut())),this._register(B.i(this._domNode,"mouseover",e=>this._onMouseOver())),this._applyTheme(n.getColorTheme()),this._register(n.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){return e=this._keybindingService.lookupKeybinding(e),e?` (${e.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return X.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseOut(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){e={inputActiveOptionBorder:e.getColor(m.hb),inputActiveOptionForeground:e.getColor(m.ib),inputActiveOptionBackground:e.getColor(m.gb)},this.caseSensitive.style(e),this.wholeWords.style(e),this.regex.style(e)}}function Q(e,t){return 1===e||2!==e&&t}X.ID="editor.contrib.findOptionsWidget",Object(f.f)((e,t)=>{var i=e.getColor(m.Y);i&&t.addRule(`.monaco-editor .findOptionsWidget { background-color: ${i}; }`),i=e.getColor(m.ab),i&&t.addRule(`.monaco-editor .findOptionsWidget { color: ${i}; }`),i=e.getColor(m.Nc),i&&t.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${i}; }`),i=e.getColor(m.h);i&&t.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${i}; }`)});class J extends r.a{constructor(){super(),this._onFindReplaceStateChange=this._register(new H.b),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return Q(this._isRegexOverride,this._isRegex)}get wholeWord(){return Q(this._wholeWordOverride,this._wholeWord)}get matchCase(){return Q(this._matchCaseOverride,this._matchCase)}get preserveCase(){return Q(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,i){var n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1};let o=!1;this._matchesPosition!==(e=t<(e=0===t?0:e)?t:e)&&(this._matchesPosition=e,n.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,o=!0),void 0===i||h.a.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,o=!0),o&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;t={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1};let o=!1;i=this.isRegex;var r=this.wholeWord,s=this.matchCase,a=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,t.searchString=!0,o=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,t.replaceString=!0,o=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,t.isRevealed=!0,o=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,t.isReplaceRevealed=!0,o=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0===e.searchScope||null!=(n=e.searchScope)&&n.every(e=>{var t;return null==(t=this._searchScope)?void 0:t.some(t=>!h.a.equalsRange(t,e))})||(this._searchScope=e.searchScope,t.searchScope=!0,o=!0),void 0!==e.loop&&this._loop!==e.loop&&(this._loop=e.loop,t.loop=!0,o=!0),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:0,i!==this.isRegex&&(o=!0,t.isRegex=!0),r!==this.wholeWord&&(o=!0,t.wholeWord=!0),s!==this.matchCase&&(o=!0,t.matchCase=!0),a!==this.preserveCase&&(o=!0,t.preserveCase=!0),o&&this._onFindReplaceStateChange.fire(t)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=P}}i("01b0");var ee=i("3813"),te=i("70c3"),ie=i("fdcc"),ne=i("30db"),oe=i("d3ef");i("caa1");const re=n.a("defaultLabel","input");class se extends j.a{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this._onDidOptionChange=this._register(new H.b),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new H.b),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new H.b),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new H.b),this._onKeyUp=this._register(new H.b),this._onCaseSensitiveKeyDown=this._register(new H.b),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new H.b),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||re,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;i=n.appendCaseSensitiveLabel||"",t=n.appendWholeWordsLabel||"";var o=n.appendRegexLabel||"",r=n.history||[],s=!!n.flexibleHeight,a=!!n.flexibleWidth;n=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new oe.a(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r,flexibleHeight:s,flexibleWidth:a,flexibleMaxHeight:n})),this.regex=this._register(new Y({appendTitle:o,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(e=>{this._onRegexKeyDown.fire(e)})),this.wholeWords=this._register(new Z({appendTitle:t,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new G({appendTitle:i,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(e=>{this._onCaseSensitiveKeyDown.fire(e)})),this._showOptionButtons&&(this.inputBox.paddingRight=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width());let l=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){var t=l.indexOf(document.activeElement);if(0<=t){let i=-1;e.equals(17)?i=(t+1)%l.length:e.equals(15)&&(i=0===t?l.length-1:t-1),e.equals(9)?(l[t].blur(),this.inputBox.focus()):0<=i&&l[i].focus(),B.c.stop(e,!0)}}}),r=document.createElement("div"),r.className="controls",r.style.display=this._showOptionButtons?"block":"none",r.appendChild(this.caseSensitive.domNode),r.appendChild(this.wholeWords.domNode),r.appendChild(this.regex.domNode),this.domNode.appendChild(r),e&&e.appendChild(this.domNode),this._register(B.i(this.inputBox.inputElement,"compositionstart",e=>{this.imeSessionInProgress=!0})),this._register(B.i(this.inputBox.inputElement,"compositionend",e=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){var e;this.domNode&&(e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground},this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e),e={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder},this.inputBox.style(e))}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}clearMessage(){this.inputBox.hideMessage()}}const ae=n.a("defaultLabel","input"),le=n.a("label.preserveCaseCheckbox","Preserve Case");class de extends U{constructor(e){super({icon:W.b.preserveCase,title:le+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class he extends j.a{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new H.b),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new H.b),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new H.b),this._onInput=this._register(new H.b),this._onKeyUp=this._register(new H.b),this._onPreserveCaseKeyDown=this._register(new H.b),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||ae,this.inputActiveOptionBorder=n.inputActiveOptionBorder,this.inputActiveOptionForeground=n.inputActiveOptionForeground,this.inputActiveOptionBackground=n.inputActiveOptionBackground,this.inputBackground=n.inputBackground,this.inputForeground=n.inputForeground,this.inputBorder=n.inputBorder,this.inputValidationInfoBorder=n.inputValidationInfoBorder,this.inputValidationInfoBackground=n.inputValidationInfoBackground,this.inputValidationInfoForeground=n.inputValidationInfoForeground,this.inputValidationWarningBorder=n.inputValidationWarningBorder,this.inputValidationWarningBackground=n.inputValidationWarningBackground,this.inputValidationWarningForeground=n.inputValidationWarningForeground,this.inputValidationErrorBorder=n.inputValidationErrorBorder,this.inputValidationErrorBackground=n.inputValidationErrorBackground,this.inputValidationErrorForeground=n.inputValidationErrorForeground;i=n.appendPreserveCaseLabel||"",t=n.history||[];var o=!!n.flexibleHeight,r=!!n.flexibleWidth;n=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new oe.a(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:t,flexibleHeight:o,flexibleWidth:r,flexibleMaxHeight:n})),this.preserveCase=this._register(new de({appendTitle:i,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(e=>{this._onPreserveCaseKeyDown.fire(e)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let s=[this.preserveCase.domNode];this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){var t=s.indexOf(document.activeElement);if(0<=t){let i=-1;e.equals(17)?i=(t+1)%s.length:e.equals(15)&&(i=0===t?s.length-1:t-1),e.equals(9)?(s[t].blur(),this.inputBox.focus()):0<=i&&s[i].focus(),B.c.stop(e,!0)}}}),t=document.createElement("div"),t.className="controls",t.style.display=this._showOptionButtons?"block":"none",t.appendChild(this.preserveCase.domNode),this.domNode.appendChild(t),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){var e;this.domNode&&(e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground},this.preserveCase.style(e),e={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder},this.inputBox.style(e))}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}V=i("9eb8");var ce=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},ue=function(e,t){return function(i,n){t(i,n,e)}};const ge="historyNavigationWidget",pe="historyNavigationForwardsEnabled",me="historyNavigationBackwardsEnabled";function fe(e,t){return e.getContext(document.activeElement).getValue(t)}function _e(e,t){e=e.createScoped(t.target);var i,n=(i=e,t=t,n=ge,new D.c(n,t).bindTo(i),new D.c(pe,!0).bindTo(e));return{scopedContextKeyService:e,historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:new D.c(me,!0).bindTo(e)}}let be=class extends se{constructor(e,t,i,n,o=!1){super(e,t,o,i),this._register(_e(n,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}},ve=(be=ce([ue(3,D.b)],be),class extends he{constructor(e,t,i,n,o=!1){super(e,t,o,i),this._register(_e(n,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}});ve=ce([ue(3,D.b)],ve),V.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:D.a.and(D.a.has(ge),D.a.equals(me,!0)),primary:16,secondary:[528],handler:e=>{e=fe(e.get(D.b),ge),e&&e.historyNavigator.showPreviousValue()}}),V.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:D.a.and(D.a.has(ge),D.a.equals(pe,!0)),primary:18,secondary:[530],handler:e=>{e=fe(e.get(D.b),ge),e&&e.historyNavigator.showNextValue()}});var Ce=i("bf5b"),we=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const ye=Object(Ce.b)("find-selection",W.b.selection,n.a("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),Se=Object(Ce.b)("find-collapsed",W.b.chevronRight,n.a("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Le=Object(Ce.b)("find-expanded",W.b.chevronDown,n.a("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),xe=Object(Ce.b)("find-replace",W.b.replace,n.a("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),ke=Object(Ce.b)("find-replace-all",W.b.replaceAll,n.a("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),De=Object(Ce.b)("find-previous-match",W.b.arrowUp,n.a("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ne=Object(Ce.b)("find-next-match",W.b.arrowDown,n.a("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Oe=n.a("label.find","Find"),Ee=n.a("placeholder.find","Find"),Ie=n.a("label.previousMatchButton","Previous Match"),Me=n.a("label.nextMatchButton","Next Match"),Te=n.a("label.toggleSelectionFind","Find in Selection"),Ae=n.a("label.closeButton","Close"),Re=n.a("label.replace","Replace"),Pe=n.a("placeholder.replace","Replace"),Fe=n.a("label.replaceButton","Replace"),Be=n.a("label.replaceAllButton","Replace All"),je=n.a("label.toggleReplaceButton","Toggle Replace"),We=n.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",P),Ve=n.a("label.matchesLocation","{0} of {1}"),He=n.a("label.noResults","No results");let ze=69;const Ue="ctrlEnterReplaceAll.windows.donotask",Ke=ne.f?256:2048;class qe{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function $e(e,t,i){t=!!t.match(/\n/),i&&t&&0<i.selectionStart&&e.stopPropagation()}function Ge(e,t,i){t=!!t.match(/\n/),i&&t&&i.selectionEnd<i.value.length&&e.stopPropagation()}class Ze extends j.a{constructor(e,t,i,n,s,a,l,d,h){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=n,this._keybindingService=s,this._contextKeyService=a,this._storageService=d,this._notificationService=h,this._ctrlEnterReplaceAllWarningPrompted=!!d.getBoolean(Ue,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new o.a(500),this._register(Object(r.i)(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(e=>{e.hasChanged(80)&&(this._codeEditor.getOption(80)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(130)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(34)&&((e=this._codeEditor.getOption(34).addExtraSpaceOnTop)&&!this._viewZone&&(this._viewZone=new qe(0),this._showViewZone()),!e)&&this._viewZone&&this._removeViewZone()})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>we(this,void 0,void 0,(function*(){var e;this._isVisible&&(e=yield this._controller.getGlobalBufferTerm())&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())})))),this._findInputFocused=E.bindTo(a),this._findFocusTracker=this._register(B.Y(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=I.bindTo(a),this._replaceFocusTracker=this._register(B.Y(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(34).addExtraSpaceOnTop&&(this._viewZone=new qe(0)),this._applyTheme(l.getColorTheme()),this._register(l.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return Ze.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}var t;e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(80)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=B.I(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),(e.searchString||e.matchesCount||e.matchesPosition)&&(t=0<this._state.searchString.length&&0===this._state.matchesCount,this._domNode.classList.toggle("no-results",t),this._updateMatchesCount(),this._updateButtons()),(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,ie.f)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=ze+"px",this._state.matchesCount>=P?this._matchesCount.title=We:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),0<this._state.matchesCount){let t=String(this._state.matchesCount),i=(this._state.matchesCount>=P&&(t+="+"),String(this._state.matchesPosition));"0"===i&&(i="?"),e=s.v(Ve,i,t)}else e=He;this._matchesCount.appendChild(document.createTextNode(e)),Object(ee.a)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),ze=Math.max(ze,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){var o,r;return e===He?""===i?n.a("ariaSearchNoResultEmpty","{0} found",e):n.a("ariaSearchNoResult","{0} found for '{1}'",e,i):t?(o=n.a("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),(r=this._codeEditor.getModel())&&t.startLineNumber<=r.getLineCount()&&1<=t.startLineNumber?r.getLineContent(t.startLineNumber)+", "+o:o):n.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){var e=this._codeEditor.getSelection(),t=(e=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),this._toggleSelectionFind.checked);this._isVisible&&(t||e)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=0<this._state.searchString.length,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),t=!this._codeEditor.getOption(80);this._toggleReplaceBtn.setEnabled(this._isVisible&&t)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;var e,t,i,n=this._codeEditor.getSelection();switch(this._codeEditor.getOption(34).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var o=!!n&&n.startLineNumber!==n.endLineNumber;this._toggleSelectionFind.checked=o}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let r=!0;this._codeEditor.getOption(34).seedSearchStringFromSelection&&n&&(e=this._codeEditor.getDomNode())&&(e=B.D(e),t=this._codeEditor.getScrolledVisiblePosition(n.getStartPosition()),i=e.left+(t?t.left:0),t=t?t.top:0,this._viewZone)&&t<this._viewZone.heightInPx&&(n.endLineNumber>n.startLineNumber&&(r=!1),(t=B.G(this._domNode).left)<i&&(r=!1),i=this._codeEditor.getScrolledVisiblePosition(n.getEndPosition()),t<e.left+(i?i.left:0))&&(r=!1),this._showViewZone(r)}}_hide(e){this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(this._codeEditor.getOption(34).addExtraSpaceOnTop){if(this._isVisible){const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones(i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)})}}else this._removeViewZone()}_showViewZone(e=!0){if(this._isVisible&&this._codeEditor.getOption(34).addExtraSpaceOnTop){void 0===this._viewZone&&(this._viewZone=new qe(0));const t=this._viewZone;this._codeEditor.changeViewZones(i=>{var n,o;void 0!==this._viewZoneId?(o=this._getHeight())!==t.heightInPx&&(n=o-t.heightInPx,t.heightInPx=o,i.layoutZone(this._viewZoneId),e)&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n):(o=this._getHeight(),(o-=this._codeEditor.getOption(74).top)<=0||(t.heightInPx=o,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o)))})}}_removeViewZone(){this._codeEditor.changeViewZones(e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone)&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0)})}_applyTheme(e){e={inputActiveOptionBorder:e.getColor(m.hb),inputActiveOptionBackground:e.getColor(m.gb),inputActiveOptionForeground:e.getColor(m.ib),inputBackground:e.getColor(m.jb),inputForeground:e.getColor(m.lb),inputBorder:e.getColor(m.kb),inputValidationInfoBackground:e.getColor(m.pb),inputValidationInfoForeground:e.getColor(m.rb),inputValidationInfoBorder:e.getColor(m.qb),inputValidationWarningBackground:e.getColor(m.sb),inputValidationWarningForeground:e.getColor(m.ub),inputValidationWarningBorder:e.getColor(m.tb),inputValidationErrorBackground:e.getColor(m.mb),inputValidationErrorForeground:e.getColor(m.ob),inputValidationErrorBorder:e.getColor(m.nb)},this._findInput.style(e),this._replaceInput.style(e),this._toggleSelectionFind.style(e)}_tryUpdateWidgetWidth(){if(this._isVisible&&B.N(this._domNode)){var e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)this._domNode.classList.add("hiddenEditor");else{this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");var t=e.width;e=e.minimap.minimapWidth;let i=!1,n=!1,o=!1;if(this._resized&&419<B.I(this._domNode))return this._domNode.style.maxWidth=t-28-e-15+"px",void(this._replaceInput.width=B.I(this._findInput.domNode));t<=447+e&&(n=!0),447+e-ze>=t&&(o=!0),447+e-ze>=t+50&&(i=!0),this._domNode.classList.toggle("collapsed-find-widget",i),this._domNode.classList.toggle("narrow-find-widget",o),this._domNode.classList.toggle("reduced-find-widget",n),o||i||(this._domNode.style.maxWidth=t-28-e-15+"px"),this._resized?(this._findInput.inputBox.layout(),0<(t=this._findInput.inputBox.element.clientWidth)&&(this._replaceInput.width=t)):this._isReplaceVisible&&(this._replaceInput.width=B.I(this._findInput.domNode))}}}_getHeight(){let e=0;return e=(e+=4)+(this._findInput.inputBox.height+2),this._isReplaceVisible&&(e=(e+=4)+(this._replaceInput.inputBox.height+2)),e+4}_tryUpdateHeight(){var e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){var e;this._codeEditor.hasModel()&&this._toggleSelectionFind.checked&&((e=this._codeEditor.getSelections()).map(e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));var t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||h.a.equalsRange(e,t)?null:e}).filter(e=>!!e),e.length)&&this._state.change({searchScope:e},!0)}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(3|Ke))this._findInput.inputBox.insertAtCursor("\n");else if(e.equals(2))this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive();else{if(!e.equals(2066))return e.equals(16)?$e(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?Ge(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0;this._codeEditor.focus()}e.preventDefault()}_onReplaceInputKeyDown(e){if(e.equals(3|Ke))ne.i&&ne.g&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(n.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Ue,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n");else if(e.equals(2))this._findInput.focusOnCaseSensitive();else if(e.equals(1026))this._findInput.focus();else{if(!e.equals(2066))return e.equals(16)?$e(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?Ge(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0;this._codeEditor.focus()}e.preventDefault()}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){return e=this._keybindingService.lookupKeybinding(e),e?` (${e.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new be(null,this._contextViewProvider,{width:221,label:Oe,placeholder:Ee,appendCaseSensitiveLabel:this._keybindingLabelFor(R.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(R.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(R.ToggleRegexCommand),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(e){return{content:e.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(e=>this._onFindInputKeyDown(e))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())})),this._register(this._findInput.onRegexKeyDown(e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(e=>{this._tryUpdateHeight()&&this._showViewZone()})),ne.d&&this._register(this._findInput.onMouseDown(e=>this._onFindInputMouseDown(e))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Ye({label:Ie+this._keybindingLabelFor(R.PreviousMatchFindAction),icon:De,onTrigger:()=>{this._codeEditor.getAction(R.PreviousMatchFindAction).run().then(void 0,ie.f)}})),this._nextBtn=this._register(new Ye({label:Me+this._keybindingLabelFor(R.NextMatchFindAction),icon:Ne,onTrigger:()=>{this._codeEditor.getAction(R.NextMatchFindAction).run().then(void 0,ie.f)}}));var e=document.createElement("div"),t=(e.className="find-part",e.appendChild(this._findInput.domNode),document.createElement("div")),i=(t=(t.className="find-actions",e.appendChild(t),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new U({icon:ye,title:Te+this._keybindingLabelFor(R.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{var e;this._toggleSelectionFind.checked?this._codeEditor.hasModel()&&((e=this._codeEditor.getSelections()).map(e=>(e=1===e.endColumn&&e.endLineNumber>e.startLineNumber?e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)):e).isEmpty()?null:e).filter(e=>!!e),e.length)&&this._state.change({searchScope:e},!0):this._state.change({searchScope:null},!0)})),t.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Ye({label:Ae+this._keybindingLabelFor(R.CloseFindWidgetCommand),icon:Ce.c,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&((this._replaceBtn.isEnabled()?this._replaceBtn:this._codeEditor).focus(),e.preventDefault())}})),t.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ve(null,void 0,{label:Re,placeholder:Pe,appendPreserveCaseLabel:this._keybindingLabelFor(R.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(e=>this._onReplaceInputKeyDown(e))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})),this._replaceBtn=this._register(new Ye({label:Fe+this._keybindingLabelFor(R.ReplaceOneAction),icon:xe,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}})),this._replaceAllBtn=this._register(new Ye({label:Be+this._keybindingLabelFor(R.ReplaceAllAction),icon:ke,onTrigger:()=>{this._controller.replaceAll()}})),document.createElement("div")),t.className="replace-part",t.appendChild(this._replaceInput.domNode),document.createElement("div"));i.className="replace-actions",t.appendChild(i),i.appendChild(this._replaceBtn.domNode),i.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Ye({label:je,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=B.I(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(e),this._domNode.appendChild(t),this._resizeSash=new te.b(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let n=419;this._register(this._resizeSash.onDidStart(()=>{n=B.I(this._domNode)})),this._register(this._resizeSash.onDidChange(e=>{this._resized=!0,e=n+e.startX-e.currentX,e<419||(parseFloat(B.A(this._domNode).maxWidth)||0)<e||(this._domNode.style.width=e+"px",this._isReplaceVisible&&(this._replaceInput.width=B.I(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{var e=B.I(this._domNode);if(!(e<419)){let t=419;this._resized&&419!==e||(e=this._codeEditor.getLayoutInfo(),t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0),this._domNode.style.width=t+"px",this._isReplaceVisible&&(this._replaceInput.width=B.I(this._findInput.domNode)),this._findInput.inputBox.layout()}}))}updateAccessibilitySupport(){var e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}Ze.ID="editor.contrib.findWidget";class Ye extends j.a{constructor(e){super(),this._opts=e;let t="button";this._opts.className&&(t=t+" "+this._opts.className),this._opts.icon&&(t=t+" "+f.d.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.title=this._opts.label,this._domNode.tabIndex=0,this._domNode.className=t,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this.onclick(this._domNode,e=>{this._opts.onTrigger(),e.preventDefault()}),this.onkeydown(this._domNode,e=>{e.equals(10)||e.equals(3)?(this._opts.onTrigger(),e.preventDefault()):this._opts.onKeyDown&&this._opts.onKeyDown(e)})}get domNode(){return this._domNode}isEnabled(){return 0<=this._domNode.tabIndex}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...f.d.asClassNameArray(Se)),this._domNode.classList.add(...f.d.asClassNameArray(Le))):(this._domNode.classList.remove(...f.d.asClassNameArray(Le)),this._domNode.classList.add(...f.d.asClassNameArray(Se)))}}Object(f.f)((e,t)=>{var i=(e,i)=>{i&&t.addRule(`.monaco-editor ${e} { background-color: ${i}; }`)},n=(i(".findMatch",e.getColor(m.x)),i(".currentFindMatch",e.getColor(m.v)),i(".findScope",e.getColor(m.z)),e.getColor(m.Y));i(".find-widget",n),i=e.getColor(m.Nc),i&&t.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${i}; }`),n=e.getColor(m.y),n&&t.addRule(`.monaco-editor .findMatch { border: 1px ${"hc"===e.type?"dotted":"solid"} ${n}; box-sizing: border-box; }`),i=e.getColor(m.w),i&&t.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${i}; padding: 1px; box-sizing: border-box; }`),n=e.getColor(m.A),n&&t.addRule(`.monaco-editor .findScope { border: 1px ${"hc"===e.type?"dashed":"solid"} ${n}; }`),i=e.getColor(m.h),i&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${i}; }`),n=e.getColor(m.ab),n&&t.addRule(`.monaco-editor .find-widget { color: ${n}; }`),i=e.getColor(m.cb),i&&t.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${i}; }`),n=e.getColor(m.bb),n?t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${n}; }`):(i=e.getColor(m.Z))&&t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${i}; }`),n=e.getColor(m.Kc),n&&t.addRule(`\n\t\t.monaco-editor .find-widget .button:not(.disabled):hover,\n\t\t.monaco-editor .find-widget .codicon-find-selection:hover {\n\t\t\tbackground-color: ${n} !important;\n\t\t}\n\t`),i=e.getColor(m.db);i&&t.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${i}; }`)});ce=i("7e32"),ue=i("f577"),V=i("533b"),j=i("6dec");var Xe=i("03e8"),Qe=(i=i("b0cd"),function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}),Je=function(e,t){return function(i,n){t(i,n,e)}},et=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const tt=524288;function it(e,t="single",i=!1){if(e.hasModel()){var n=e.getSelection();if("single"===t&&n.startLineNumber===n.endLineNumber||"multiple"===t)if(n.isEmpty()){if(t=e.getConfiguredWordAtPosition(n.getStartPosition()),t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(n)<tt)return e.getModel().getValueInRange(n)}return null}let nt=class e extends r.a{constructor(e,t,i,n){super(),this._editor=e,this._findWidgetVisible=O.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=n,this._updateHistoryDelayer=new o.a(500),this._state=this._register(new J),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{var e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(34).loop})}))}get editor(){return this._editor}static get(t){return t.getContribution(e.ID)}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,0),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,0),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,0),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,0)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!E.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){var e;this._state.searchScope?this._state.change({searchScope:null},!0):this._editor.hasModel()&&((e=this._editor.getSelections()).map(e=>(e=1===e.endColumn&&e.endLineNumber>e.startLineNumber?e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1)):e).isEmpty()?null:e).filter(e=>!!e),e.length)&&this._state.change({searchScope:e},!0)}setSearchString(e){this._state.isRegex&&(e=s.t(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=0){}_start(e){return et(this,void 0,void 0,(function*(){if(this.disposeModel(),this._editor.hasModel()){var t={isRevealed:!0};if("single"===e.seedSearchStringFromSelection?(i=it(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection))&&(this._state.isRegex?t.searchString=s.t(i):t.searchString=i):"multiple"!==e.seedSearchStringFromSelection||e.updateSearchScope||(i=it(this._editor,e.seedSearchStringFromSelection))&&(t.searchString=i),!t.searchString&&e.seedSearchStringFromGlobalClipboard){var i=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;i&&(t.searchString=i)}e.forceRevealReplace?t.isReplaceRevealed=!0:this._findWidgetVisible.get()||(t.isReplaceRevealed=!1),e.updateSearchScope&&(i=this._editor.getSelections()).some(e=>!e.isEmpty())&&(t.searchScope=i),t.loop=e.loop,this._state.change(t,!1),this._model||(this._model=new F(this._editor,this._state))}}))}start(e){return this._start(e)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._model.replaceAll(),!0)}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}getGlobalBufferTerm(){return et(this,void 0,void 0,(function*(){return this._editor.getOption(34).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}))}setGlobalBufferTerm(e){this._editor.getOption(34).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}},ot=(nt.ID="editor.contrib.findController",class extends(nt=Qe([Je(1,D.b),Je(2,Xe.a),Je(3,ue.a)],nt)){constructor(e,t,i,n,o,r,s,a){super(e,i,s,a),this._contextViewService=t,this._keybindingService=n,this._themeService=o,this._notificationService=r,this._widget=null,this._findOptionsWidget=null}_start(e){const t=Object.create(null,{_start:{get:()=>super._start}});return et(this,void 0,void 0,(function*(){this._widget||this._createFindWidget();var i=this._editor.getSelection();let n=!1;switch(this._editor.getOption(34).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":var o=!!i&&i.startLineNumber!==i.endLineNumber;n=o}e.updateSearchScope=n,yield t._start.call(this,e),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}))}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),(this._state.isRevealed&&!e?this._widget:this._findOptionsWidget).highlightFindOptions()}_createFindWidget(){this._widget=this._register(new Ze(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new X(this._editor,this._state,this._keybindingService,this._themeService))}});ot=Qe([Je(1,V.b),Je(2,D.b),Je(3,j.a),Je(4,f.b),Je(5,i.a),Je(6,Xe.a),Je(7,ue.a)],ot);const rt=Object(t.p)(new t.f({id:R.StartFindAction,label:n.a("startFindAction","Find"),alias:"Find",precondition:D.a.or(a.a.focus,D.a.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:ce.b.MenubarEditMenu,group:"3_find",title:n.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));rt.addImplementation(0,(e,t,i)=>{var n=nt.get(t);return!!n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(34).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(34).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(34).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(34).loop})});class st extends t.b{constructor(){super({id:R.StartFindWithSelection,label:n.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return et(this,void 0,void 0,(function*(){var e=nt.get(t);e&&(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(34).loop}),e.setGlobalBufferTerm(e.getState().searchString))}))}}class at extends t.b{run(e,t){return et(this,void 0,void 0,(function*(){var e=nt.get(t);e&&!this._run(e)&&(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===e.getState().searchString.length&&"never"!==t.getOption(34).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(34).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(34).loop}),this._run(e))}))}}class lt extends at{constructor(){super({id:R.NextMatchFindAction,label:n.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:a.a.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:D.a.and(a.a.focus,E),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}class dt extends at{constructor(){super({id:R.PreviousMatchFindAction,label:n.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:a.a.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:D.a.and(a.a.focus,E),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}class ht extends t.b{run(e,t){return et(this,void 0,void 0,(function*(){var e=nt.get(t);if(e){var i="selection"===t.getOption(34).seedSearchStringFromSelection;let n=null;(n="never"!==t.getOption(34).seedSearchStringFromSelection?it(t,"single",i):n)&&e.setSearchString(n),this._run(e)||(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(34).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:i,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(34).loop}),this._run(e))}}))}}class ct extends ht{constructor(){super({id:R.NextSelectionMatchFindAction,label:n.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:a.a.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}class ut extends ht{constructor(){super({id:R.PreviousSelectionMatchFindAction,label:n.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:a.a.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}}const gt=Object(t.p)(new t.f({id:R.StartFindReplaceAction,label:n.a("startReplace","Replace"),alias:"Replace",precondition:D.a.or(a.a.focus,D.a.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:ce.b.MenubarEditMenu,group:"3_find",title:n.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));gt.addImplementation(0,(e,t,i)=>{var n,o,r;return!(!t.hasModel()||t.getOption(80)||!(n=nt.get(t)))&&(o=t.getSelection(),r=n.isFindInputFocused(),o=!o.isEmpty()&&o.startLineNumber===o.endLineNumber&&"never"!==t.getOption(34).seedSearchStringFromSelection&&!r,r=r||o?2:1,n.start({forceRevealReplace:!0,seedSearchStringFromSelection:o?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(34).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(34).seedSearchStringFromSelection,shouldFocus:r,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(34).loop}))}),Object(t.l)(nt.ID,ot),Object(t.j)(st),Object(t.j)(lt),Object(t.j)(dt),Object(t.j)(ct),Object(t.j)(ut),Qe=t.c.bindToContribution(nt.get),Object(t.k)(new Qe({id:R.CloseFindWidgetCommand,precondition:O,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:D.a.and(a.a.focus,D.a.not("isComposing")),primary:9,secondary:[1033]}})),Object(t.k)(new Qe({id:R.ToggleCaseSensitiveCommand,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:a.a.focus,primary:g.primary,mac:g.mac,win:g.win,linux:g.linux}})),Object(t.k)(new Qe({id:R.ToggleWholeWordCommand,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:a.a.focus,primary:p.primary,mac:p.mac,win:p.win,linux:p.linux}})),Object(t.k)(new Qe({id:R.ToggleRegexCommand,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:a.a.focus,primary:M.primary,mac:M.mac,win:M.win,linux:M.linux}})),Object(t.k)(new Qe({id:R.ToggleSearchScopeCommand,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:a.a.focus,primary:T.primary,mac:T.mac,win:T.win,linux:T.linux}})),Object(t.k)(new Qe({id:R.TogglePreserveCaseCommand,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:a.a.focus,primary:A.primary,mac:A.mac,win:A.win,linux:A.linux}})),Object(t.k)(new Qe({id:R.ReplaceOneAction,precondition:O,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:a.a.focus,primary:3094}})),Object(t.k)(new Qe({id:R.ReplaceOneAction,precondition:O,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:D.a.and(a.a.focus,I),primary:3}})),Object(t.k)(new Qe({id:R.ReplaceAllAction,precondition:O,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:a.a.focus,primary:2563}})),Object(t.k)(new Qe({id:R.ReplaceAllAction,precondition:O,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:D.a.and(a.a.focus,I),primary:void 0,mac:{primary:2051}}})),Object(t.k)(new Qe({id:R.SelectAllMatchesAction,precondition:O,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:a.a.focus,primary:515}}))},a222:function(e,t,i){"use strict";i.r(t),i.d(t,"IPadShowKeyboard",(function(){return s})),i("722f9");var n=i("11f7"),o=(t=i("a666"),i("b2cc")),r=i("30db");class s extends t.a{constructor(e){super(),this.editor=e,this.widget=null,r.c&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){var e=!this.editor.getOption(80);!this.widget&&e?this.widget=new a(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}s.ID="editor.contrib.iPadShowKeyboard";class a extends t.a{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(n.i(this._domNode,"touchstart",e=>{this.editor.focus()})),this._register(n.i(this._domNode,"focus",e=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return a.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}a.ID="editor.contrib.ShowKeyboardWidget",Object(o.l)(s.ID,s)},a37f:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));class n extends i("a666").a{constructor(e,t,i){super(),this.referenceDomElement=e,this.changeCallback=i,this.width=-1,this.height=-1,this.resizeObserver=null,this.measureReferenceDomElementToken=-1,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.width}getHeight(){return this.height}startObserving(){"undefined"!=typeof ResizeObserver?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver(e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()}),this.resizeObserver.observe(this.referenceDomElement)):-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval(()=>this.observe(),100))}stopObserving(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this.referenceDomElement&&(i=this.referenceDomElement.clientWidth,n=this.referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),this.width===i&&this.height===n||(this.width=i,this.height=n,e&&this.changeCallback())}}},a40b:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0a0f");const n=Object(t.c)("editorWorkerService")},a48d:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return i.e("chunk-746e09c3").then(i.bind(null,"2a95d"))}})},a60f:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return l}));var n,o,r=i("11f7"),s=i("e8e3"),a=(t=i("6424"),i("a666"));i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s};(o=n=n||{}).Tap="-monaco-gesturetap",o.Change="-monaco-gesturechange",o.Start="-monaco-gesturestart",o.End="-monaco-gesturesend",o.Contextmenu="-monaco-gesturecontextmenu";class l extends a.a{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(r.i(document,"touchstart",e=>this.onTouchStart(e),{passive:!1})),this._register(r.i(document,"touchend",e=>this.onTouchEnd(e))),this._register(r.i(document,"touchmove",e=>this.onTouchMove(e),{passive:!1}))}static addTarget(e){return l.isTouchDevice()?(l.INSTANCE||(l.INSTANCE=new l),l.INSTANCE.targets.push(e),{dispose:()=>{l.INSTANCE.targets=l.INSTANCE.targets.filter(t=>t!==e)}}):a.a.None}static ignoreTarget(e){return l.isTouchDevice()?(l.INSTANCE||(l.INSTANCE=new l),l.INSTANCE.ignoreTargets.push(e),{dispose:()=>{l.INSTANCE.ignoreTargets=l.INSTANCE.ignoreTargets.filter(t=>t!==e)}}):a.a.None}static isTouchDevice(){return"ontouchstart"in window||0<navigator.maxTouchPoints}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let r=0,s=e.targetTouches.length;r<s;r++){var i=e.targetTouches.item(r),o=(this.activeTouches[i.identifier]={id:i.identifier,initialTarget:i.target,initialTimeStamp:t,initialPageX:i.pageX,initialPageY:i.pageY,rollingTimestamps:[t],rollingPageX:[i.pageX],rollingPageY:[i.pageY]},this.newGestureEvent(n.Start,i.target));o.pageX=i.pageX,o.pageY=i.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e){var t=Date.now(),i=Object.keys(this.activeTouches).length;for(let p=0,m=e.changedTouches.length;p<m;p++){var o,r,a,d,h,c,u,g=e.changedTouches.item(p);if(this.activeTouches.hasOwnProperty(String(g.identifier))){let e=this.activeTouches[g.identifier],p=Date.now()-e.initialTimeStamp;p<l.HOLD_DELAY&&Math.abs(e.initialPageX-s.t(e.rollingPageX))<30&&Math.abs(e.initialPageY-s.t(e.rollingPageY))<30?((o=this.newGestureEvent(n.Tap,e.initialTarget)).pageX=s.t(e.rollingPageX),o.pageY=s.t(e.rollingPageY),this.dispatchEvent(o)):p>=l.HOLD_DELAY&&Math.abs(e.initialPageX-s.t(e.rollingPageX))<30&&Math.abs(e.initialPageY-s.t(e.rollingPageY))<30?((o=this.newGestureEvent(n.Contextmenu,e.initialTarget)).pageX=s.t(e.rollingPageX),o.pageY=s.t(e.rollingPageY),this.dispatchEvent(o)):1===i&&(r=s.t(e.rollingPageX),a=s.t(e.rollingPageY),d=s.t(e.rollingTimestamps)-e.rollingTimestamps[0],h=r-e.rollingPageX[0],c=a-e.rollingPageY[0],u=this.targets.filter(t=>e.initialTarget instanceof Node&&t.contains(e.initialTarget)),this.inertia(u,t,Math.abs(h)/d,0<h?1:-1,r,Math.abs(c)/d,0<c?1:-1,a)),this.dispatchEvent(this.newGestureEvent(n.End,e.initialTarget)),delete this.activeTouches[g.identifier]}}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){var i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===n.Tap){var t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>l.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==n.Change&&e.type!==n.Contextmenu||(this._lastSetTapCountTime=0);for(let i=0;i<this.ignoreTargets.length;i++)if(e.initialTarget instanceof Node&&this.ignoreTargets[i].contains(e.initialTarget))return;this.targets.forEach(t=>{e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)})}inertia(e,t,i,o,s,a,d,h){this.handle=r.V(()=>{var r=Date.now();let c=r-t,u=0,g=0,p=!0,m=(i+=l.SCROLL_FRICTION*c,a+=l.SCROLL_FRICTION*c,0<i&&(p=!1,u=o*i*c),0<a&&(p=!1,g=d*a*c),this.newGestureEvent(n.Change));m.translationX=u,m.translationY=g,e.forEach(e=>e.dispatchEvent(m)),p||this.inertia(e,r,i,o,s+u,a,d,h+g)})}onTouchMove(e){var t=Date.now();for(let a=0,l=e.changedTouches.length;a<l;a++){var i,o,r=e.changedTouches.item(a);this.activeTouches.hasOwnProperty(String(r.identifier))&&(i=this.activeTouches[r.identifier],(o=this.newGestureEvent(n.Change,i.initialTarget)).translationX=r.pageX-s.t(i.rollingPageX),o.translationY=r.pageY-s.t(i.rollingPageY),o.pageX=r.pageX,o.pageY=r.pageY,this.dispatchEvent(o),3<i.rollingPageX.length&&(i.rollingPageX.shift(),i.rollingPageY.shift(),i.rollingTimestamps.shift()),i.rollingPageX.push(r.pageX),i.rollingPageY.push(r.pageY),i.rollingTimestamps.push(t))}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}l.SCROLL_FRICTION=-.005,l.HOLD_DELAY=700,l.CLEAR_TAP_COUNT_TIME=400,i([t.a],l,"isTouchDevice",null)},a666:function(e,t,i){"use strict";i.d(t,"h",(function(){return d})),i.d(t,"g",(function(){return c})),i.d(t,"f",(function(){return u})),i.d(t,"e",(function(){return g})),i.d(t,"i",(function(){return p})),i.d(t,"b",(function(){return m})),i.d(t,"a",(function(){return f})),i.d(t,"d",(function(){return _})),i.d(t,"c",(function(){return b}));var n=i("0bfb"),o=i("258a");let r=null;function s(e){return null!==r&&void 0!==r&&r.trackDisposable(e),e}function a(e){null!==r&&void 0!==r&&r.markAsDisposed(e)}function l(e,t){null!==r&&void 0!==r&&r.setParent(e,t)}function d(e){return null!==r&&void 0!==r&&r.markAsSingleton(e),e}class h extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function c(e){return"function"==typeof e.dispose&&0===e.dispose.length}function u(e){if(o.a.is(e)){var t=[];for(const i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(1<t.length)throw new h(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function g(...e){var t=p(()=>u(e)),i=e,n=t;if(r)for(const o of i)r.setParent(o,n);return t}function p(e){const t=s({dispose:Object(n.a)(()=>{a(t),e()})});return t}class m{constructor(){this._toDispose=new Set,this._isDisposed=!1,s(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}clear(){try{u(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(e){if(e===this)throw new Error("Cannot register a disposable on itself!");l(e,this),this._isDisposed?m.DISABLE_DISPOSED_WARNING:this._toDispose.add(e)}return e}}m.DISABLE_DISPOSED_WARNING=!1;class f{constructor(){this._store=new m,s(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}f.None=Object.freeze({dispose(){}});class _{constructor(){this._isDisposed=!1,s(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null!=(t=this._value)&&t.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,a(this),null!=(e=this._value)&&e.dispose(),this._value=void 0}clearAndLeak(){var e=this._value;return this._value=void 0,e&&l(e,null),e}}class b{constructor(e){this.object=e}dispose(){}}},a6d7:function(e,t,i){"use strict";i.d(t,"d",(function(){return o})),i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return a})),i.d(t,"e",(function(){return l})),i.d(t,"c",(function(){return h}));var n=i("303e");function o(e,t){var i,o=Object.create(null);for(i in t){var r=t[i];r&&(o[i]=Object(n.xc)(r,e))}return o}function r(e,t,i){function n(){var n=o(e.getColorTheme(),t);"function"==typeof i?i(n):i.style(n)}return n(),e.onDidColorThemeChange(n)}function s(e,t,i){return r(t,{badgeBackground:(null==i?void 0:i.badgeBackground)||n.c,badgeForeground:(null==i?void 0:i.badgeForeground)||n.d,badgeBorder:n.h},e)}function a(e,t,i){return r(t,Object.assign(Object.assign({},l),i||{}),e)}const l={listFocusBackground:n.Gb,listFocusForeground:n.Hb,listFocusOutline:n.Jb,listActiveSelectionBackground:n.zb,listActiveSelectionForeground:n.Ab,listActiveSelectionIconForeground:n.Bb,listFocusAndSelectionBackground:n.zb,listFocusAndSelectionForeground:n.Ab,listInactiveSelectionBackground:n.Pb,listInactiveSelectionIconForeground:n.Rb,listInactiveSelectionForeground:n.Qb,listInactiveFocusBackground:n.Nb,listInactiveFocusOutline:n.Ob,listHoverBackground:n.Lb,listHoverForeground:n.Mb,listDropBackground:n.Cb,listSelectionOutline:n.b,listHoverOutline:n.b,listFilterWidgetBackground:n.Db,listFilterWidgetOutline:n.Fb,listFilterWidgetNoMatchesOutline:n.Eb,listMatchesShadow:n.Nc,treeIndentGuidesStroke:n.Mc,tableColumnsBorder:n.Gc},d={shadowColor:n.Nc,borderColor:n.Tb,foregroundColor:n.Ub,backgroundColor:n.Sb,selectionForegroundColor:n.Xb,selectionBackgroundColor:n.Vb,selectionBorderColor:n.Wb,separatorColor:n.Yb};function h(e,t,i){return r(t,Object.assign(Object.assign({},d),i),e)}},a771:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return i.e("chunk-2d237ee7").then(i.bind(null,"fce9"))}})},a79b:function(e,t,i){"use strict";i.r(t),i.d(t,"jsonDefaults",(function(){return r})),i("33f9");var n=i("0ab8");function o(e,t,i){this._onDidChange=new n.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}Object.defineProperty(o.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),o.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},o.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)};var r=new o("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},{documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0});n.languages.json={jsonDefaults:r},n.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),n.languages.onLanguage("json",(function(){i.e("chunk-e13e4362").then(i.bind(null,"47b9")).then((function(e){return e.setupMode(r)}))}))},a8d0:function(e,t,i){"use strict";i.d(t,"h",(function(){return s})),i.d(t,"b",(function(){return l})),i.d(t,"c",(function(){return d})),i.d(t,"e",(function(){return h})),i.d(t,"f",(function(){return c})),i.d(t,"a",(function(){return u})),i.d(t,"d",(function(){return g})),i.d(t,"g",(function(){return p}));var n=i("3742"),o=i("7061"),r=i("6a89");class s{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class a{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return this.outputLineIndex+":"+this.outputOffset}toPosition(e,t){return t=0<this.outputLineIndex?t:0,new o.a(e+this.outputLineIndex,t+this.outputOffset+1)}}class l{constructor(e,t,i,n,o){this.breakOffsets=e,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=i,this.injectionOffsets=n,this.injectionOptions=o}getInputOffsetOfOutputPosition(e,t){let i=0;if(i=0===e?t:this.breakOffsets[e-1]+t,null!==this.injectionOffsets)for(let n=0;n<this.injectionOffsets.length&&i>this.injectionOffsets[n];n++)i<this.injectionOffsets[n]+this.injectionOptions[n].content.length?i=this.injectionOffsets[n]:i-=this.injectionOptions[n].content.length;return i}getOutputPositionOfInputOffset(e,t=2){let i=0;if(null!==this.injectionOffsets)for(let n=0;n<this.injectionOffsets.length&&!(e<this.injectionOffsets[n])&&(1===t||e!==this.injectionOffsets[n]);n++)i+=this.injectionOptions[n].content.length;return e+=i,this.getOutputPositionOfOffsetInUnwrappedLine(e,t)}getOutputPositionOfOffsetInUnwrappedLine(e,t=2){let i=0,n=this.breakOffsets.length-1,o=0,r=0;for(;i<=n;){o=i+(n-i)/2|0;var s=this.breakOffsets[o];if(r=0<o?this.breakOffsets[o-1]:0,0===t)if(e<=r)n=o-1;else{if(!(s<e))break;i=o+1}else if(e<r)n=o-1;else{if(!(s<=e))break;i=o+1}}return new a(o,e-r)}outputPositionToOffsetInUnwrappedLine(e,t){let i=(0<e?this.breakOffsets[e-1]:0)+t;return 0<e&&(i-=this.wrappedTextIndentLength),i}normalizeOffsetAroundInjections(e,t){var i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t)return e===i.offsetInUnwrappedLine+i.length?i.offsetInUnwrappedLine+i.length:i.offsetInUnwrappedLine;if(1===t){let e=i.offsetInUnwrappedLine+i.length,t=i.injectedTextIndex;for(;t+1<this.injectionOffsets.length&&this.injectionOffsets[t+1]===this.injectionOffsets[t];)e+=this.injectionOptions[t+1].content.length,t++;return e}let n=i.offsetInUnwrappedLine,o=i.injectedTextIndex;for(;0<=o-1&&this.injectionOffsets[o-1]===this.injectionOffsets[o];)n-=this.injectionOptions[o-1].content.length,o++;return n}getInjectedText(e,t){return e=this.outputPositionToOffsetInUnwrappedLine(e,t),t=this.getInjectedTextAtOffset(e),t?{options:this.injectionOptions[t.injectedTextIndex]}:null}getInjectedTextAtOffset(e){var t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let s=0;for(let a=0;a<t.length;a++){var n=i[a].content.length,o=t[a]+s,r=t[a]+s+n;if(e<o)break;if(e<=r)return{injectedTextIndex:a,offsetInUnwrappedLine:o,length:n};s+=n}}}}class d{constructor(e,t){this.tabSize=e,this.data=t}}class h{constructor(e,t,i,n,o,r,s){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=o,this.tokens=r,this.inlineDecorations=s}}class c{constructor(e,t,i,n,o,r,s,a,l,d){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=c.isBasicASCII(i,r),this.containsRTL=c.containsRTL(i,this.isBasicASCII,o),this.tokens=s,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=d}static isBasicASCII(e,t){return!t||n.A(e)}static containsRTL(e,t,i){return!(t||!i)&&n.m(e)}}class u{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class g{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new u(new r.a(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class p{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}},a8f5:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:function(){return i.e("chunk-2d0c8f4c").then(i.bind(null,"56a6"))}})},aa3d:function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return a})),i.d(t,"f",(function(){return l})),i.d(t,"d",(function(){return d})),i.d(t,"e",(function(){return h}));var n=i("ef8e9");function o(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(i=>{e[i]&&"object"==typeof e[i]?t[i]=o(e[i]):t[i]=e[i]}),t}function r(e){if(e&&"object"==typeof e)for(var t,i=[e];0<i.length;){const e=i.shift();Object.freeze(e);for(const n in e)!s.call(e,n)||"object"!=typeof(t=e[n])||Object.isFrozen(t)||i.push(t)}return e}const s=Object.prototype.hasOwnProperty;function a(e,t){return function e(t,i,o){if(Object(n.m)(t))return t;const r=i(t);if(void 0!==r)return r;if(Object(n.f)(t)){const n=[];for(const r of t)n.push(e(r,i,o));return n}if(Object(n.j)(t)){if(o.has(t))throw new Error("Cannot clone recursive data-structure");o.add(t);const n={};for(var a in t)s.call(t,a)&&(n[a]=e(t[a],i,o));return o.delete(t),n}return t}(e,t,new Set)}function l(e,t,i=!0){return Object(n.j)(e)?(Object(n.j)(t)&&Object.keys(t).forEach(o=>{o in e?i&&(Object(n.j)(e[o])&&Object(n.j)(t[o])?l(e[o],t[o],i):e[o]=t[o]):e[o]=t[o]}),e):t}function d(e,t){if(e!==t){if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let o,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(!d(e[o],t[o]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var n=[];for(r in t)n.push(r);if(n.sort(),!d(i,n))return!1;for(o=0;o<i.length;o++)if(!d(e[i[o]],t[i[o]]))return!1}}return!0}function h(e,t,i){return t=t(e),void 0===t?i:t}},aa80:function(e,t,i){},abca:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return i.e("chunk-2d221799").then(i.bind(null,"cb04"))}})},abf2:function(e,t,i){},aee8:function(e,t,i){"use strict";i.r(t),i.d(t,"ModesHoverController",(function(){return De}));var n=i("dff7"),o=i("fe45"),r=i("a666"),s=(t=i("b2cc"),i("6a89")),a=i("c101"),l=i("5818"),d=i("11f7"),h=i("7061"),c=i("b57f"),u=i("b707"),g=i("5fe7"),p=i("fdcc");class m{constructor(e,t,i,n,o){this._computer=e,this._state=0,this._hoverTime=o,this._firstWaitScheduler=new g.e(()=>this._triggerAsyncComputation(),0),this._secondWaitScheduler=new g.e(()=>this._triggerSyncComputation(),0),this._loadingMessageScheduler=new g.e(()=>this._showLoadingMessage(),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=i,this._progressCallback=n}setHoverTime(e){this._hoverTime=e}_firstWaitTime(){return this._hoverTime/2}_secondWaitTime(){return this._hoverTime/2}_loadingMessageTime(){return 3*this._hoverTime}_triggerAsyncComputation(){this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(g.h)(e=>this._computer.computeAsync(e)),this._asyncComputationPromise.then(e=>{this._asyncComputationPromiseDone=!0,this._withAsyncResult(e)},e=>this._onError(e))):this._asyncComputationPromiseDone=!0}_triggerSyncComputation(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))}_showLoadingMessage(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())}_withAsyncResult(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))}_onComplete(e){this._completeCallback(e)}_onError(e){this._errorCallback?this._errorCallback(e):Object(p.f)(e)}_onProgress(e){this._progressCallback(e)}start(e){if(0===e)0===this._state&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation()}}cancel(){this._loadingMessageScheduler.cancel(),1===this._state&&this._firstWaitScheduler.cancel(),2===this._state&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise)&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),3===this._state&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0}}var f=i("e8e3"),_=i("1b7d"),b=i("1898");i("bc02");const v=d.a;class C extends r.a{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this._scrollbar=this._register(new b.a(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this._scrollbar.getDomNode())}onContentsChanged(){this._scrollbar.scanDomNode()}}class w extends r.a{constructor(e,t,i){super(),this.actionContainer=d.q(e,v("div.action-container")),this.action=d.q(this.actionContainer,v("a.action")),this.action.setAttribute("href","#"),this.action.setAttribute("role","button"),t.iconClass&&d.q(this.action,v("span.icon."+t.iconClass)),d.q(this.action,v("span")).textContent=i?t.label+` (${i})`:t.label,this._register(d.i(this.actionContainer,d.d.CLICK,e=>{e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer)})),this.setEnabled(!0)}static render(e,t,i){return new w(e,t,i)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var y=i("b400"),S=i("82c9"),L=i("efdb"),x=i("5bd73"),k=i("958f"),D=i("8495"),N=i("0b54"),O=i("9e56"),E=i("b539"),I=i("b7d0"),M=i("303e"),T=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},A=function(e,t){return function(i,n){t(i,n,e)}};const R=d.a;class P{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const F={type:1,filter:{include:O.b.QuickFix}};let B=class{constructor(e,t,i,n){this._editor=e,this._hover=t,this._markerDecorationsService=i,this._openerService=n,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];var i=this._editor.getModel(),n=e.range.startLineNumber,o=i.getLineMaxColumn(n),r=[];for(const h of t){var a=h.range.startLineNumber===n?h.range.startColumn:1,l=h.range.endLineNumber===n?h.range.endColumn:o,d=this._markerDecorationsService.getMarker(i.uri,h);d&&(a=new s.a(e.range.startLineNumber,a,e.range.startLineNumber,l),r.push(new P(this,a,d)))}return r}renderHoverParts(e,t,i){if(!e.length)return r.a.None;const n=new r.b;return e.forEach(e=>t.appendChild(this.renderMarkerHover(e,n))),e=(1===e.length?e:e.sort((e,t)=>y.c.compare(e.marker.severity,t.marker.severity)))[0],this.renderMarkerStatusbar(e,i,n),n}renderMarkerHover(e,t){var i,n=R("div.hover-row"),o=d.q(n,R("div.marker.hover-contents"));const{source:r,message:s,code:a,relatedInformation:l}=e.marker,h=(this._editor.applyFontInfo(o),d.q(o,R("span")));if(h.style.whiteSpace="pre-wrap",h.innerText=s,(r||a)&&(a&&"string"!=typeof a?(e=R("span"),r&&(d.q(e,R("span")).innerText=r),(i=d.q(e,R("a.code-link"))).setAttribute("href",a.target.toString()),t.add(d.i(i,"click",e=>{this._openerService.open(a.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()})),d.q(i,R("span")).innerText=a.value,(i=d.q(o,e)).style.opacity="0.6",i.style.paddingLeft="6px"):((e=d.q(o,R("span"))).style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=r&&a?`${r}(${a})`:r||`(${a})`)),Object(f.n)(l))for(const{message:g,resource:m,startLineNumber:f,startColumn:_}of l){var c=d.q(o,R("div")),u=(c.style.marginTop="8px",d.q(c,R("a")));u.innerText=`${Object(S.b)(m)}(${f}, ${_}): `,u.style.cursor="pointer",t.add(d.i(u,"click",e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(m,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:f,startColumn:_}}}).catch(p.f)}));const e=d.q(c,R("span"));e.innerText=g,this._editor.applyFontInfo(e)}return n}renderMarkerStatusbar(e,t,i){if(e.marker.severity!==y.c.Error&&e.marker.severity!==y.c.Warning&&e.marker.severity!==y.c.Info||t.addAction({label:n.a("view problem","View Problem"),commandId:k.NextMarkerAction.ID,run:()=>{this._hover.hide(),k.MarkerController.get(this._editor).showAtMarker(e.marker),this._editor.focus()}}),!this._editor.getOption(80)){const o=t.append(R("div")),s=(this.recentMarkerCodeActionsInfo&&(y.a.makeKey(this.recentMarkerCodeActionsInfo.marker)===y.a.makeKey(e.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(o.textContent=n.a("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0),this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?r.a.None:i.add(Object(g.i)(()=>o.textContent=n.a("checkingForQuickFixes","Checking for quick fixes..."),200))),a=(o.textContent||(o.textContent=String.fromCharCode(160)),this.getCodeActions(e.marker));i.add(Object(r.i)(()=>a.cancel())),a.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:e.marker,hasCodeActions:0<a.validActions.length},this.recentMarkerCodeActionsInfo.hasCodeActions){let e=!(o.style.display="none");i.add(Object(r.i)(()=>{e||a.dispose()})),t.addAction({label:n.a("quick fixes","Quick Fix..."),commandId:N.e.Id,run:t=>{e=!0;var i=N.f.get(this._editor);t=d.D(t);this._hover.hide(),i.showCodeActions(F,a,{x:t.left+6,y:t.top+t.height+6})}})}else a.dispose(),o.textContent=n.a("noQuickFixes","No quick fixes available")},p.f)}}getCodeActions(e){return Object(g.h)(t=>Object(D.d)(this._editor.getModel(),new s.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),F,E.b.None,t))}};B=T([A(2,L.a),A(3,x.a)],B),Object(I.f)((e,t)=>{var i=e.getColor(M.Jc);i&&t.addRule(`.monaco-hover .hover-contents a.code-link span { color: ${i}; }`),i=e.getColor(M.Ic);i&&t.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${i}; }`)});O=i("0a0f");var j=i("78bc"),W=i("bfa1"),V=i("2504");function H(e,t,i){var n=u.p.ordered(e).map(n=>Promise.resolve(n.provideHover(e,t,i)).then(e=>{return e&&(i=void 0!==(t=e).range,t=void 0!==t.contents&&t.contents&&0<t.contents.length,i)&&t?e:void 0;var t,i},e=>{Object(p.g)(e)}));return Promise.all(n).then(f.e)}Object(t.n)("_executeHoverProvider",(e,t)=>H(e,t,V.a.None));T=i("fbba"),L=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},A=function(e,t){return function(i,n){t(i,n,e)}};var z=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const U=d.a;class K{constructor(e,t,i){this.owner=e,this.range=t,this.contents=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let q=class{constructor(e,t,i,n,o){this._editor=e,this._hover=t,this._modeService=i,this._openerService=n,this._configurationService=o}createLoadingMessage(e){return new K(this,e.range,[(new j.a).appendText(n.a("modesContentHover.loading","Loading..."))])}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];var i=this._editor.getModel(),o=e.range.startLineNumber,r=i.getLineMaxColumn(o),a=[];for(const n of t){var l=n.range.startLineNumber===o?n.range.startColumn:1,d=n.range.endLineNumber===o?n.range.endColumn:r,h=n.options.hoverMessage;h&&!Object(j.b)(h)&&(l=new s.a(e.range.startLineNumber,l,e.range.startLineNumber,d),a.push(new K(this,l,Object(f.c)(h))))}return i=this._editor.getModel().getLineLength(o),t=this._configurationService.getValue("editor.maxTokenizationLineLength"),"number"==typeof t&&t<=i&&a.push(new K(this,new s.a(o,1,o,i+1),[{value:n.a("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}])),a}computeAsync(e,t,i){return z(this,void 0,void 0,(function*(){if(!this._editor.hasModel()||1!==e.type)return Promise.resolve([]);var t=this._editor.getModel();if(!u.p.has(t))return Promise.resolve([]);var n,o=[];for(const r of yield H(t,new h.a(e.range.startLineNumber,e.range.startColumn),i))Object(j.b)(r.contents)||(n=r.range?s.a.lift(r.range):e.range,o.push(new K(this,n,r.contents)));return o}))}renderHoverParts(e,t,i){var n=new r.b;for(const r of e)for(const e of r.contents)if(!Object(j.b)(e)){var o=U("div.hover-row.markdown-hover");const i=d.q(o,U("div.hover-contents"));var s=n.add(new W.a({editor:this._editor},this._modeService,this._openerService));s=(n.add(s.onDidRenderAsync(()=>{i.className="hover-contents code-hover-contents",this._hover.onContentsChanged()})),n.add(s.render(e)));i.appendChild(s.element),t.appendChild(o)}return n}};q=L([A(2,l.a),A(3,x.a),A(4,T.a)],q);class ${constructor(e,t){this.priority=e,this.range=t,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class G{constructor(e,t,i){this.priority=e,this.owner=t,this.range=i,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}var Z=i("2e66"),Y=(L=i("9e74"),i("7e32")),X=(A=i("4fc3"),T=i("4779"),function(e,t){return function(i,n){t(i,n,e)}});class Q{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}}let J=class{constructor(e,t,i,n,o,r,s,a){this._editor=e,this._hover=t,this._commandService=i,this._menuService=n,this._contextKeyService=o,this._modeService=r,this._openerService=s,this.accessibilityService=a}suggestHoverAnchor(e){var t=Z.GhostTextController.get(this._editor);if(t){if(8===e.target.type){var i=e.target.detail;if(t.shouldShowHoverAtViewZone(i.viewZoneId))return new G(1e3,this,s.a.fromPositions(i.positionBefore||i.position,i.positionBefore||i.position))}if(7===e.target.type&&e.target.range&&t.shouldShowHoverAt(e.target.range))return new G(1e3,this,e.target.range);if(6===e.target.type&&e.target.range&&e.target.detail&&e.target.detail.mightBeForeignElement&&t.shouldShowHoverAt(e.target.range))return new G(1e3,this,e.target.range)}return null}computeSync(e,t){var i=Z.GhostTextController.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new Q(this,e.range,i)]:[]}renderHoverParts(e,t,i){var o,s,a=new r.b,l=(e=e[0],t=(this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,t,a),a.add(this._menuService.createMenu(Y.b.InlineCompletionsActions,this._contextKeyService))),i.addAction({label:n.a("showNextInlineSuggestion","Next"),commandId:Z.ShowNextInlineSuggestionAction.ID,run:()=>this._commandService.executeCommand(Z.ShowNextInlineSuggestionAction.ID)})),d=i.addAction({label:n.a("showPreviousInlineSuggestion","Previous"),commandId:Z.ShowPreviousInlineSuggestionAction.ID,run:()=>this._commandService.executeCommand(Z.ShowPreviousInlineSuggestionAction.ID)});i.addAction({label:n.a("acceptInlineSuggestion","Accept"),commandId:Z.commitInlineSuggestionAction.id,run:()=>this._commandService.executeCommand(Z.commitInlineSuggestionAction.id)});const h=[l,d];for(const n of h)n.setEnabled(!1);for([o,s]of(e.hasMultipleSuggestions().then(e=>{for(const t of h)t.setEnabled(e)}),t.getActions()))for(const e of s)e instanceof Y.c&&i.addAction({label:e.label,commandId:e.item.id,run:()=>this._commandService.executeCommand(e.item.id)});return a}renderScreenReaderText(e,t,i){var o=d.a,r=o("div.hover-row.markdown-hover");const s=d.q(r,o("div.hover-contents")),a=i.add(new W.a({editor:this._editor},this._modeService,this._openerService));var l;o=e=>{i.add(a.onDidRenderAsync(()=>{s.className="hover-contents code-hover-contents",this._hover.onContentsChanged()}));var t=n.a("inlineSuggestionFollows","Suggestion:");t=i.add(a.render((new j.a).appendText(t).appendCodeblock("text",e)));s.replaceChildren(t.element)},e=null==(e=null==(e=e.controller.activeModel)?void 0:e.inlineCompletionsModel)?void 0:e.ghostText;e&&(l=this._editor.getModel().getLineContent(e.lineNumber),o(e.renderForScreenReader(l))),t.appendChild(r)}};J=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}([X(2,L.b),X(3,Y.a),X(4,A.b),X(5,l.a),X(6,x.a),X(7,T.b)],J);var ee=i("6483"),te=i("92a6"),ie=i("ceb8"),ne=i("308f");class oe{constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new ne.b,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new ne.b,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new ne.b,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){for(let i=0;i<this.colorPresentations.length;i++)if(t.toLowerCase()===this.colorPresentations[i].label){this.presentationIndex=i,this._onDidChangePresentation.fire(this.presentation);break}}flushColor(){this._onColorFlushed.fire(this._color)}}i("10f4");var re=i("0f70"),se=i("00a3");const ae=d.a;class le extends r.a{constructor(e,t,i){super(),this.model=t,this.domNode=ae(".colorpicker-header"),d.q(e,this.domNode),this.pickedColorNode=d.q(this.domNode,ae(".picked-color")),e=d.q(this.domNode,ae(".original-color")),e.style.backgroundColor=ie.a.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=i.getColorTheme().getColor(M.E)||ie.a.white,this._register(Object(I.f)((e,t)=>{this.backgroundColor=e.getColor(M.E)||ie.a.white})),this._register(d.i(this.pickedColorNode,d.d.CLICK,()=>this.model.selectNextColorPresentation())),this._register(d.i(e,d.d.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=ie.a.Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",(t.color.rgba.a<.5?this.backgroundColor:t.color).isLighter())}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=ie.a.Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",(e.rgba.a<.5?this.backgroundColor:e).isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""}}class de extends r.a{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this.domNode=ae(".colorpicker-body"),d.q(e,this.domNode),this.saturationBox=new he(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new ue(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new ge(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){var i=this.model.color.hsva;this.model.color=new ie.a(new ie.b(i.h,e,t,i.a))}onDidOpacityChange(e){var t=this.model.color.hsva;this.model.color=new ie.a(new ie.b(t.h,t.s,t.v,e))}onDidHueChange(e){var t=this.model.color.hsva;e=360*(1-e);this.model.color=new ie.a(new ie.b(360==e?0:e,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class he extends r.a{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new ne.b,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new ne.b,this.onColorFlushed=this._onColorFlushed.event,this.domNode=ae(".saturation-wrap"),d.q(e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",d.q(this.domNode,this.canvas),this.selection=ae(".saturation-selection"),d.q(this.domNode,this.selection),this.layout(),this._register(d.g(this.domNode,e=>this.onMouseDown(e))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onMouseDown(e){this.monitor=this._register(new se.a);const t=d.D(this.domNode),i=(e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.buttons,se.b,e=>this.onDidChangePosition(e.posx-t.left,e.posy-t.top),()=>null),d.h(document,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0))}onDidChangePosition(e,t){e=Math.max(0,Math.min(1,e/this.width)),t=Math.max(0,Math.min(1,1-t/this.height)),this.paintSelection(e,t),this._onDidChange.fire({s:e,v:t})}layout(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();var e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){var e=this.model.color.hsva,t=(e=new ie.a(new ie.b(e.h,1,1,1)),this.canvas.getContext("2d")),i=t.createLinearGradient(0,0,this.canvas.width,0),n=(i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)"),t.createLinearGradient(0,0,0,this.canvas.height));n.addColorStop(0,"rgba(0, 0, 0, 0)"),n.addColorStop(1,"rgba(0, 0, 0, 1)"),t.rect(0,0,this.canvas.width,this.canvas.height),t.fillStyle=ie.a.Format.CSS.format(e),t.fill(),t.fillStyle=i,t.fill(),t.fillStyle=n,t.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class ce extends r.a{constructor(e,t){super(),this.model=t,this._onDidChange=new ne.b,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new ne.b,this.onColorFlushed=this._onColorFlushed.event,this.domNode=d.q(e,ae(".strip")),this.overlay=d.q(this.domNode,ae(".overlay")),this.slider=d.q(this.domNode,ae(".slider")),this.slider.style.top="0px",this._register(d.g(this.domNode,e=>this.onMouseDown(e))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var e=this.getValue(this.model.color);this.updateSliderPosition(e)}onMouseDown(e){const t=this._register(new se.a),i=d.D(this.domNode),n=(this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.buttons,se.b,e=>this.onDidChangeTop(e.posy-i.top),()=>null),d.h(document,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0))}onDidChangeTop(e){e=Math.max(0,Math.min(1,1-e/this.height)),this.updateSliderPosition(e),this._onDidChange.fire(e)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class ue extends ce{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){var{r:e,g:t,b:i}=e.rgba,n=new ie.a(new ie.c(e,t,i,1));e=new ie.a(new ie.c(e,t,i,0));this.overlay.style.background=`linear-gradient(to bottom, ${n} 0%, ${e} 100%)`}getValue(e){return e.hsva.a}}class ge extends ce{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class pe extends _.a{constructor(e,t,i,n){super(),this.model=t,this.pixelRatio=i,this._register(Object(re.l)(()=>this.layout())),t=ae(".colorpicker-widget"),e.appendChild(t),i=new le(t,this.model,n),this.body=new de(t,this.model,this.pixelRatio),this._register(i),this._register(this.body)}layout(){this.body.layout()}}var me=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class fe{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let _e=class{constructor(e,t,i){this._editor=e,this._hover=t,this._themeService=i}computeSync(e,t){return[]}computeAsync(e,t,i){return me(this,void 0,void 0,(function*(){if(this._editor.hasModel()){var e=te.a.get(this._editor);for(const n of t){var i=e.getColorData(n.range.getStartPosition());if(i)return[yield this._createColorHover(this._editor.getModel(),i.colorInfo,i.provider)]}}return[]}))}_createColorHover(e,t,i){return me(this,void 0,void 0,(function*(){var n=e.getValueInRange(t.range),{red:o,green:r,blue:a,alpha:l}=t.color,o=new ie.c(Math.round(255*o),Math.round(255*r),Math.round(255*a),l),r=new ie.a(o),a=yield Object(ee.a)(e,t,i,V.a.None),l=new oe(r,[],0);return l.colorPresentations=a||[],l.guessColorPresentation(r,n),new fe(this,s.a.lift(t.range),l,i)}))}renderHoverParts(e,t,i){if(0===e.length||!this._editor.hasModel())return r.a.None;var n=new r.b;const o=e[0],a=this._editor.getModel(),l=o.model;e=n.add(new pe(t,l,this._editor.getOption(128),this._themeService));let d=new s.a(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn);const h=()=>{let e,t;var i;l.presentation.textEdit?(e=[l.presentation.textEdit],t=new s.a(l.presentation.textEdit.range.startLineNumber,l.presentation.textEdit.range.startColumn,l.presentation.textEdit.range.endLineNumber,l.presentation.textEdit.range.endColumn),i=this._editor.getModel()._setTrackedRange(null,t,3),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",e),t=this._editor.getModel()._getTrackedRange(i)||t):(e=[{identifier:null,range:d,text:l.presentation.label,forceMoveMarkers:!1}],t=d.setEndPosition(d.endLineNumber,d.startColumn+l.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",e)),l.presentation.additionalTextEdits&&(e=[...l.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",e),this._hover.hide()),this._editor.pushUndoStop(),d=t},c=e=>Object(ee.a)(a,{range:d,color:{red:e.rgba.r/255,green:e.rgba.g/255,blue:e.rgba.b/255,alpha:e.rgba.a}},o.provider,V.a.None).then(e=>{l.colorPresentations=e||[]});return n.add(l.onColorFlushed(e=>{c(e).then(h)})),n.add(l.onDidChangeColor(c)),this._hover.setColorPicker(e),n}};_e=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}([function(e,t){return function(i,n){t(i,n,e)}}(2,I.b)],_e);L=i("6dec"),X=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},T=function(e,t){return function(i,n){t(i,n,e)}};var be=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const ve=d.a;let Ce=class extends r.a{constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=ve("div.hover-row.status-bar"),this.actionsElement=d.q(this.hoverElement,ve("div.actions"))}get hasContent(){return this._hasContent}addAction(e){var t=this._keybindingService.lookupKeybinding(e.commandId);t=t?t.getLabel():null;return this._hasContent=!0,this._register(w.render(this.actionsElement,e,t))}append(e){return e=d.q(this.actionsElement,e),this._hasContent=!0,e}};Ce=X([T(0,L.a)],Ce);class we{constructor(e,t){this._participants=t,this._editor=e,this._result=[],this._anchor=null}setAnchor(e){this._anchor=e,this._result=[]}clearResult(){this._result=[]}static _getLineDecorations(e,t){if(1!==t.type)return[];var i=e.getModel();const n=t.range.startLineNumber,o=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(e=>{var i;return!(!e.options.isWholeLine&&(i=e.range.startLineNumber===n?e.range.startColumn:1,e=e.range.endLineNumber===n?e.range.endColumn:o,i>t.range.startColumn||t.range.endColumn>e))})}computeAsync(e){return be(this,void 0,void 0,(function*(){const t=this._anchor;if(!this._editor.hasModel()||!t)return Promise.resolve([]);const i=we._getLineDecorations(this._editor,t);var n=yield Promise.all(this._participants.map(n=>this._computeAsync(n,i,t,e)));return Object(f.k)(n)}))}_computeAsync(e,t,i,n){return be(this,void 0,void 0,(function*(){return e.computeAsync?e.computeAsync(i,t,n):[]}))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];var e=we._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return Object(f.e)(t)}onResult(e,t){this._result=t?e.concat(this._result):this._result.concat(e)}getResult(){return this._result.slice(0)}getResultWithLoadingMessage(){if(this._anchor)for(const t of this._participants)if(t.createLoadingMessage){var e=t.createLoadingMessage(this._anchor);if(e)return this._result.slice(0).concat([e])}return this._result.slice(0)}}let ye=class e extends _.a{constructor(t,i,n,o){super(),this._hoverVisibleKey=i,this._keybindingService=o,this.allowEditorOverflow=!0,this._participants=[n.createInstance(_e,t,this),n.createInstance(q,t,this),n.createInstance(J,t,this),n.createInstance(B,t,this)],this._hover=this._register(new C),this._id=e.ID,this._editor=t,this._isVisible=!1,this._stoleFocus=!1,this._renderDisposable=null,this.onkeydown(this._hover.containerDomNode,e=>{e.equals(9)&&this.hide()}),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(42)&&this._updateFont()})),this._editor.onDidLayoutChange(()=>this.layout()),this.layout(),this._editor.addContentWidget(this),this._showAtPosition=null,this._showAtRange=null,this._stoleFocus=!1,this._messages=[],this._lastAnchor=null,this._computer=new we(this._editor,this._participants),this._highlightDecorations=[],this._isChangingDecorations=!1,this._shouldFocus=!1,this._colorPicker=null,this._hoverOperation=new m(this._computer,e=>this._withResult(e,!0),null,e=>this._withResult(e,!1),this._editor.getOption(52).delay),this._register(d.o(this.getDomNode(),d.d.FOCUS,()=>{this._colorPicker&&this.getDomNode().classList.add("colorpicker-hover")})),this._register(d.o(this.getDomNode(),d.d.BLUR,()=>{this.getDomNode().classList.remove("colorpicker-hover")})),this._register(t.onDidChangeConfiguration(()=>{this._hoverOperation.setHoverTime(this._editor.getOption(52).delay)})),this._register(u.F.onDidChange(()=>{this._isVisible&&this._lastAnchor&&0<this._messages.length&&(this._hover.contentsDomNode.textContent="",this._renderMessages(this._lastAnchor,this._messages))}))}dispose(){this._hoverOperation.cancel(),this._editor.removeContentWidget(this),super.dispose()}getId(){return this._id}getDomNode(){return this._hover.containerDomNode}_shouldShowAt(e){var t=e.target.type;return 6===t||!!(7===t&&(t=this._editor.getOption(42).typicalHalfwidthCharacterWidth/2,e=e.target.detail,e&&!e.isAfterLines&&"number"==typeof e.horizontalDistanceToText&&e.horizontalDistanceToText<t))}maybeShowAt(e){var t,i,n=[];for(const o of this._participants)"function"==typeof o.suggestHoverAnchor&&(t=o.suggestHoverAnchor(e))&&n.push(t);return this._shouldShowAt(e)&&e.target.range&&(i=[...(null==(i=e.target.element)?void 0:i.classList.values())||[]].find(e=>e.startsWith("ced-colorBox"))&&e.target.range.endColumn-e.target.range.startColumn==1?new s.a(e.target.range.startLineNumber,e.target.range.startColumn+1,e.target.range.endLineNumber,e.target.range.endColumn+1):e.target.range,n.push(new $(0,i))),0!==n.length&&(n.sort((e,t)=>t.priority-e.priority),this._startShowingAt(n[0],0,!1),!0)}_showAt(e,t,i){this._showAtPosition=e,this._showAtRange=t,this._hoverVisibleKey.set(!0),this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._editor.layoutContentWidget(this),this._editor.render(),(this._stoleFocus=i)&&this._hover.containerDomNode.focus()}getPosition(){return this._isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(e=>this._editor.applyFontInfo(e))}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont(),this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}layout(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:i}=this._editor.getOption(42);this._hover.contentsDomNode.style.fontSize=t+"px",this._hover.contentsDomNode.style.lineHeight=i+"px",this._hover.contentsDomNode.style.maxHeight=e+"px",this._hover.contentsDomNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"}onModelDecorationsChanged(){this._isChangingDecorations||this._isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))}startShowingAtRange(e,t,i){this._startShowingAt(new $(0,e),t,i)}_startShowingAt(e,t,i){if(!this._lastAnchor||!this._lastAnchor.equals(e)){if(this._hoverOperation.cancel(),this._isVisible)if(this._showAtPosition&&this._lastAnchor&&e.canAdoptVisibleHover(this._lastAnchor,this._showAtPosition)){var n=this._messages.filter(t=>t.isValidForHoverAnchor(e));if(0===n.length)this.hide();else{if(n.length===this._messages.length)return;this._renderMessages(e,n)}}else this.hide();this._lastAnchor=e,this._computer.setAnchor(e),this._shouldFocus=i,this._hoverOperation.start(t)}}hide(){this._lastAnchor=null,this._hoverOperation.cancel(),this._isVisible&&(setTimeout(()=>{this._isVisible||this._hoverVisibleKey.set(!1)},0),this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._editor.layoutContentWidget(this),this._stoleFocus)&&this._editor.focus(),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this._renderDisposable&&(this._renderDisposable.dispose(),this._renderDisposable=null),this._colorPicker=null}isColorPickerVisible(){return!!this._colorPicker}setColorPicker(e){this._colorPicker=e}onContentsChanged(){this._hover.onContentsChanged()}_withResult(e,t){this._messages=e,this._lastAnchor&&0<this._messages.length?this._renderMessages(this._lastAnchor,this._messages):t&&this.hide()}_renderMessages(t,i){this._renderDisposable&&(this._renderDisposable.dispose(),this._renderDisposable=null),this._colorPicker=null;let n=1073741824,o=i[0].range,a=null;var l=document.createDocumentFragment(),d=new r.b,c=new Map;for(const e of i)n=Math.min(n,e.range.startColumn),o=s.a.plusRange(o,e.range),e.forceShowAtRange&&(a=e.range),c.has(e.owner)||c.set(e.owner,[]),c.get(e.owner).push(e);var u,g,p=d.add(new Ce(this._keybindingService));for([u,g]of c)d.add(u.renderHoverParts(g,l,p));p.hasContent&&l.appendChild(p.hoverElement),this._renderDisposable=d,l.hasChildNodes()&&(a?this._showAt(a.getStartPosition(),a,this._shouldFocus):this._showAt(new h.a(t.range.startLineNumber,n),o,this._shouldFocus),this._updateContents(l)),this._colorPicker&&this._colorPicker.layout(),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,o?[{range:o,options:e._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1}};ye.ID="editor.contrib.modesContentHoverWidget",ye._DECORATION_OPTIONS=c.a.register({description:"content-hover-highlight",className:"hoverHighlight"}),ye=X([T(2,O.a),T(3,L.a)],ye);class Se extends _.a{constructor(e,t){super(),this._id=e,this._editor=t,this._isVisible=!1,this._domNode=document.createElement("div"),this._domNode.className="monaco-hover hidden",this._domNode.setAttribute("aria-hidden","true"),this._domNode.setAttribute("role","tooltip"),this._showAtLineNumber=-1,this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(42)&&this.updateFont()})),this._editor.addOverlayWidget(this)}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e,this._domNode.classList.toggle("hidden",!this._isVisible)}getId(){return this._id}getDomNode(){return this._domNode}showAt(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);e=this._editor.getLayoutInfo();var t=this._editor.getTopForLineNumber(this._showAtLineNumber),i=this._editor.getScrollTop(),n=this._editor.getOption(58);t=t-i-(this._domNode.clientHeight-n)/2;this._domNode.style.left=e.glyphMarginLeft+e.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(t),0)+"px"}hide(){this.isVisible&&(this.isVisible=!1)}getPosition(){return null}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}updateFont(){var e=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),t=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));[...e,...t].forEach(e=>this._editor.applyFontInfo(e))}updateContents(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()}}class Le{constructor(e){this._editor=e,this._lineNumber=-1,this._result=[]}setLineNumber(e){this._lineNumber=e,this._result=[]}clearResult(){this._result=[]}computeSync(){var e,t=e=>({value:e}),i=this._editor.getLineDecorations(this._lineNumber),n=[];if(i)for(const o of i)o.options.glyphMarginClassName&&(e=o.options.glyphMarginHoverMessage)&&!Object(j.b)(e)&&n.push(...Object(f.c)(e).map(t));return n}onResult(e,t){this._result=this._result.concat(e)}getResult(){return this._result}getResultWithLoadingMessage(){return this.getResult()}}class xe extends Se{constructor(e,t,i=x.b){super(xe.ID,e),this._renderDisposeables=this._register(new r.b),this._messages=[],this._lastLineNumber=-1,this._markdownRenderer=this._register(new W.a({editor:this._editor},t,i)),this._computer=new Le(this._editor),this._hoverOperation=new m(this._computer,e=>this._withResult(e),void 0,e=>this._withResult(e),300)}dispose(){this._hoverOperation.cancel(),super.dispose()}onModelDecorationsChanged(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))}startShowingAt(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0))}hide(){this._lastLineNumber=-1,this._hoverOperation.cancel(),super.hide()}_withResult(e){this._messages=e,0<this._messages.length?this._renderMessages(this._lastLineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();var i=document.createDocumentFragment();for(const o of t){var n=this._markdownRenderer.render(o.value);this._renderDisposeables.add(n),i.appendChild(Object(d.a)("div.hover-row",void 0,n.element))}this.updateContents(i),this.showAt(e)}}xe.ID="editor.contrib.modesGlyphHoverWidget";var ke=i("1f84");c=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},X=function(e,t){return function(i,n){t(i,n,e)}};let De=class e{constructor(e,t,i,n,o){this._editor=e,this._instantiationService=t,this._openerService=i,this._modeService=n,this._toUnhook=new r.b,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(e=>{e.hasChanged(52)&&(this._unhookEvents(),this._hookEvents())}),this._hoverVisibleKey=a.a.hoverVisible.bindTo(o)}static get(t){return t.getContribution(e.ID)}_hookEvents(){var e=()=>this._hideWidgets(),t=this._editor.getOption(52);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(e=>this._onEditorMouseDown(e))),this._toUnhook.add(this._editor.onMouseUp(e=>this._onEditorMouseUp(e))),this._toUnhook.add(this._editor.onMouseMove(e=>this._onEditorMouseMove(e))),this._toUnhook.add(this._editor.onKeyDown(e=>this._onKeyDown(e))),this._toUnhook.add(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged()))):(this._toUnhook.add(this._editor.onMouseMove(e=>this._onEditorMouseMove(e))),this._toUnhook.add(this._editor.onKeyDown(e=>this._onKeyDown(e)))),this._toUnhook.add(this._editor.onMouseLeave(e)),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(e=>this._onEditorScrollChanged(e)))}_unhookEvents(){this._toUnhook.clear()}_onModelDecorationsChanged(){var e;null!=(e=this._contentWidget)&&e.onModelDecorationsChanged(),null!=(e=this._glyphWidget)&&e.onModelDecorationsChanged()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;var t=e.target.type;9===t&&e.target.detail===ye.ID?this._hoverClicked=!0:12===t&&e.target.detail===xe.ID||(12!==t&&e.target.detail!==xe.ID&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseMove(e){var t,i=e.target.type;this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&9===i&&e.target.detail===ye.ID||this._isHoverSticky&&(null==(t=null==(t=e.event.browserEvent.view)?void 0:t.getSelection())||!t.isCollapsed)||!this._isHoverSticky&&9===i&&e.target.detail===ye.ID&&null!=(t=this._contentWidget)&&t.isColorPickerVisible()||this._isHoverSticky&&12===i&&e.target.detail===xe.ID||(this._isHoverEnabled?this._getOrCreateContentWidget().maybeShowAt(e)?null!=(t=this._glyphWidget)&&t.hide():2===i&&e.target.position?(null!=(t=this._contentWidget)&&t.hide(),this._glyphWidget||(this._glyphWidget=new xe(this._editor,this._modeService,this._openerService)),this._glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets():this._hideWidgets())}_onKeyDown(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()}_hideWidgets(){var e;this._isMouseDown&&this._hoverClicked&&null!=(e=this._contentWidget)&&e.isColorPickerVisible()||(this._hoverClicked=!1,null!=(e=this._glyphWidget)&&e.hide(),null!=(e=this._contentWidget)&&e.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(ye,this._editor,this._hoverVisibleKey)),this._contentWidget}isColorPickerVisible(){var e;return(null==(e=this._contentWidget)?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,i){this._getOrCreateContentWidget().startShowingAtRange(e,t,i)}dispose(){var e;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),null!=(e=this._glyphWidget)&&e.dispose(),null!=(e=this._contentWidget)&&e.dispose()}};De.ID="editor.contrib.hover",De=c([X(1,O.a),X(2,x.a),X(3,l.a),X(4,A.b)],De);class Ne extends t.b{constructor(){super({id:"editor.action.showHover",label:n.a({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:a.a.editorTextFocus,primary:Object(o.a)(2089,2087),weight:100}})}run(e,t){var i,n;t.hasModel()&&(i=De.get(t))&&(n=t.getPosition(),n=new s.a(n.lineNumber,n.column,n.lineNumber,n.column),t=2===t.getOption(2),i.showContentHover(n,1,t))}}class Oe extends t.b{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:n.a({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){let i=De.get(t);if(i){var n=t.getPosition();if(n){const e=new s.a(n.lineNumber,n.column,n.lineNumber,n.column);ke.GotoDefinitionAtPositionEditorContribution.get(t).startFindDefinitionFromCursor(n).then(()=>{i.showContentHover(e,1,!0)})}}}}Object(t.l)(De.ID,De),Object(t.j)(Ne),Object(t.j)(Oe),Object(I.f)((e,t)=>{var i=e.getColor(M.H);i&&t.addRule(`.monaco-editor .hoverHighlight { background-color: ${i}; }`),i=e.getColor(M.E),i&&t.addRule(`.monaco-editor .monaco-hover { background-color: ${i}; }`),i=e.getColor(M.F),i&&(t.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${i}; }`),t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`)),i=e.getColor(M.Jc),i&&t.addRule(`.monaco-editor .monaco-hover a { color: ${i}; }`),i=e.getColor(M.Ic),i&&t.addRule(`.monaco-editor .monaco-hover a:hover { color: ${i}; }`),i=e.getColor(M.G),i&&t.addRule(`.monaco-editor .monaco-hover { color: ${i}; }`),i=e.getColor(M.I),i&&t.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${i}; }`),i=e.getColor(M.Hc);i&&t.addRule(`.monaco-editor .monaco-hover code { background-color: ${i}; }`)})},af40:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));class n{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},afa2:function(e,t,i){},b055:function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return s}));var n=i("8ae8");function o(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===n.a.ICodeEditor}function r(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===n.a.IDiffEditor}function s(e){return o(e)?e:r(e)?e.getModifiedEditor():null}},b0cd:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o})),t=i("4b76"),i=i("0a0f"),t.a;const n=Object(i.c)("notificationService");class o{}},b12b:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return i.e("chunk-2d0c0494").then(i.bind(null,"40ac"))}})},b1ca:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0a0f");const n=Object(t.c)("themeService")},b223:function(e,t,i){},b272:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var n=i("3742"),o=i("2c29"),r=i("2e5d"),s=i("f85a"),a=i("6a89"),l=i("7061");class d{static deleteRight(e,t,i,n){var r=[];let l=3!==e;for(let c=0,u=n.length;c<u;c++){var d,h=n[c];let e=h;e.isEmpty()&&(h=h.getPosition(),d=s.a.right(t,i,h),e=new a.a(d.lineNumber,d.column,h.lineNumber,h.column)),e.isEmpty()?r[c]=null:(e.startLineNumber!==e.endLineNumber&&(l=!0),r[c]=new o.a(e,""))}return[l,r]}static isAutoClosingPairDelete(e,t,i,n,o,s,a){if("never"===t&&"never"===i)return!1;if("never"===e)return!1;for(let p=0,m=s.length;p<m;p++){var l=s[p],d=l.getPosition();if(!l.isEmpty())return!1;if(l=o.getLineContent(d.lineNumber),d.column<2||d.column>=l.length+1)return!1;var h=l.charAt(d.column-2),c=n.get(h);if(!c)return!1;if(Object(r.g)(h)){if("never"===i)return!1}else if("never"===t)return!1;var u=l.charAt(d.column-1);let m=!1;for(const e of c)e.open===h&&e.close===u&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t<i;t++){var g=a[t];if(d.lineNumber===g.startLineNumber&&d.column===g.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingPairDelete(e,t,i){var n=[];for(let s=0,l=i.length;s<l;s++){var r=i[s].getPosition();r=new a.a(r.lineNumber,r.column-1,r.lineNumber,r.column+1);n[s]=new o.a(r,"")}return[!0,n]}static deleteLeft(e,t,i,n,r){if(this.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,i,n,r))return this._runAutoClosingPairDelete(t,i,n);var s=[];let a=2!==e;for(let h=0,c=n.length;h<c;h++){var l=d.getDeleteRange(n[h],i,t);l.isEmpty()?s[h]=null:(l.startLineNumber!==l.endLineNumber&&(a=!0),s[h]=new o.a(l,""))}return[a,s]}static getDeleteRange(e,t,i){if(!e.isEmpty())return e;if(e=e.getPosition(),i.useTabStops&&1<e.column){var o=t.getLineContent(e.lineNumber),s=n.u(o);o=-1===s?o.length+1:s+1;if(e.column<=o)return s=r.a.visibleColumnFromColumn2(i,t,e),o=r.a.prevIndentTabStop(s,i.indentSize),s=r.a.columnFromVisibleColumn2(i,t,e.lineNumber,o),new a.a(e.lineNumber,s,e.lineNumber,e.column)}return a.a.fromPositions(d.getPositionAfterDeleteLeft(e,t),e)}static getPositionAfterDeleteLeft(e,t){var i;return 1<e.column?(i=n.y(e.column-1,t.getLineContent(e.lineNumber)),e.with(void 0,i+1)):1<e.lineNumber?(i=e.lineNumber-1,new l.a(i,t.getLineMaxColumn(i))):e}static cut(e,t,i){var n=[];for(let r=0,d=i.length;r<d;r++){var s=i[r];if(s.isEmpty())if(e.emptySelectionClipboard){var l=s.getPosition();let e,i,d,h;h=l.lineNumber<t.getLineCount()?(e=l.lineNumber,i=1,d=l.lineNumber+1,1):(i=1<l.lineNumber?(e=l.lineNumber-1,t.getLineMaxColumn(l.lineNumber-1)):(e=l.lineNumber,1),d=l.lineNumber,t.getLineMaxColumn(l.lineNumber)),l=new a.a(e,i,d,h),l.isEmpty()?n[r]=null:n[r]=new o.a(l,"")}else n[r]=null;else n[r]=new o.a(s,"")}return new r.e(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},b2cc:function(e,t,i){"use strict";i.d(t,"a",(function(){return _})),i.d(t,"e",(function(){return b})),i.d(t,"c",(function(){return C})),i.d(t,"b",(function(){return w})),i.d(t,"f",(function(){return y})),i.d(t,"n",(function(){return S})),i.d(t,"o",(function(){return L})),i.d(t,"k",(function(){return x})),i.d(t,"j",(function(){return k})),i.d(t,"p",(function(){return D})),i.d(t,"m",(function(){return N})),i.d(t,"l",(function(){return O})),i.d(t,"d",(function(){return n})),i.d(t,"i",(function(){return M})),i.d(t,"g",(function(){return T})),i.d(t,"h",(function(){return A}));t=i("dff7");var n,o=i("6d8e"),r=i("5717"),s=i("7061"),a=i("1b69"),l=i("b78f"),d=i("7e32"),h=i("9e74"),c=i("4fc3"),u=i("9eb8"),g=i("89cd"),p=i("5d75"),m=i("ef8e9"),f=i("d3d7");class _{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts)for(const t of Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts]){let i=t.kbExpr;this.precondition&&(i=i?c.a.and(i,this.precondition):this.precondition);var e={id:this.id,weight:t.weight,args:t.args,when:i,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};u.a.registerKeybindingRule(e)}h.a.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){d.d.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class b extends _{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i){return this._implementations.push({priority:e,name:t,implementation:i}),this._implementations.sort((e,t)=>t.priority-e.priority),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e].implementation===i)return void this._implementations.splice(e,1)}}}runCommand(e,t){var i=e.get(f.b);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const o of this._implementations){var n=o.implementation(e,t);if(n)return i.trace(`Command '${this.id}' was handled by '${o.name}'.`),"boolean"==typeof n?void 0:n}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class v extends _{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class C extends _{static bindToContribution(e){return class extends C{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,i,n){e(i)&&this._callback(e(i),n)}}}runCommand(e,t){e=e.get(r.a);const i=e.getFocusedCodeEditor()||e.getActiveCodeEditor();if(i)return i.invokeWithinContext(e=>{if(e.get(c.b).contextMatchesRules(Object(m.o)(this.precondition)))return this.runEditorCommand(e,i,t)})}}class w extends C{constructor(e){super(w.convertOptions(e)),this.label=e.label,this.alias=e.alias}static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=d.b.EditorContext),t.title||(t.title=e.label),t.when=c.a.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(p.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class y extends w{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((e,t)=>t[0]-e[0]),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}run(e,t,i){for(const o of this._implementations){var n=o[1](e,t,i);if(n)return"boolean"==typeof n?void 0:n}}}function S(e,t){h.a.registerCommand(e,(function(e,...i){const[n,r]=i;Object(m.c)(o.a.isUri(n)),Object(m.c)(s.a.isIPosition(r));var d,h=e.get(a.a).getModel(n);return h?(d=s.a.lift(r),t(h,d,...i.slice(2))):e.get(l.a).createModelReference(n).then(e=>new Promise((n,o)=>{try{n(t(e.object.textEditorModel,s.a.lift(r),i.slice(2)))}catch(n){o(n)}}).finally(()=>{e.dispose()}))}))}function L(e,t){h.a.registerCommand(e,(function(e,...i){var[n]=i,r=(Object(m.c)(o.a.isUri(n)),e.get(a.a).getModel(n));return r?t(r,...i.slice(1)):e.get(l.a).createModelReference(n).then(e=>new Promise((n,o)=>{try{n(t(e.object.textEditorModel,i.slice(1)))}catch(n){o(n)}}).finally(()=>{e.dispose()}))}))}function x(e){return E.INSTANCE.registerEditorCommand(e),e}function k(e){return e=new e,E.INSTANCE.registerEditorAction(e),e}function D(e){return E.INSTANCE.registerEditorAction(e),e}function N(e){E.INSTANCE.registerEditorAction(e)}function O(e,t){E.INSTANCE.registerEditorContribution(e,t)}(i=n=n||{}).getEditorCommand=function(e){return E.INSTANCE.getEditorCommand(e)},i.getEditorActions=function(){return E.INSTANCE.getEditorActions()},i.getEditorContributions=function(){return E.INSTANCE.getEditorContributions()},i.getSomeEditorContributions=function(e){return E.INSTANCE.getEditorContributions().filter(t=>0<=e.indexOf(t.id))},i.getDiffEditorContributions=function(){return E.INSTANCE.getDiffEditorContributions()};class E{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t){this.editorContributions.push({id:e,ctor:t})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function I(e){return e.register(),e}E.INSTANCE=new E,g.a.add("editor.contributions",E.INSTANCE);const M=I(new b({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:d.b.MenubarEditMenu,group:"1_do",title:t.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:d.b.CommandPalette,group:"",title:t.a("undo","Undo"),order:1}]})),T=(I(new v(M,{id:"default:undo",precondition:void 0})),I(new b({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:d.b.MenubarEditMenu,group:"1_do",title:t.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:d.b.CommandPalette,group:"",title:t.a("redo","Redo"),order:1}]}))),A=(I(new v(T,{id:"default:redo",precondition:void 0})),I(new b({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:d.b.MenubarSelectionMenu,group:"1_basic",title:t.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:d.b.CommandPalette,group:"",title:t.a("selectAll","Select All"),order:1}]})))},b329:function(e,t,i){},b3b2:function(e,t,i){"use strict";i.r(t),i.d(t,"MoveWordCommand",(function(){return _})),i.d(t,"WordLeftCommand",(function(){return b})),i.d(t,"WordRightCommand",(function(){return v})),i.d(t,"CursorWordStartLeft",(function(){return C})),i.d(t,"CursorWordEndLeft",(function(){return w})),i.d(t,"CursorWordLeft",(function(){return y})),i.d(t,"CursorWordStartLeftSelect",(function(){return S})),i.d(t,"CursorWordEndLeftSelect",(function(){return L})),i.d(t,"CursorWordLeftSelect",(function(){return x})),i.d(t,"CursorWordAccessibilityLeft",(function(){return k})),i.d(t,"CursorWordAccessibilityLeftSelect",(function(){return D})),i.d(t,"CursorWordStartRight",(function(){return N})),i.d(t,"CursorWordEndRight",(function(){return O})),i.d(t,"CursorWordRight",(function(){return E})),i.d(t,"CursorWordStartRightSelect",(function(){return I})),i.d(t,"CursorWordEndRightSelect",(function(){return M})),i.d(t,"CursorWordRightSelect",(function(){return T})),i.d(t,"CursorWordAccessibilityRight",(function(){return A})),i.d(t,"CursorWordAccessibilityRightSelect",(function(){return R})),i.d(t,"DeleteWordCommand",(function(){return P})),i.d(t,"DeleteWordLeftCommand",(function(){return F})),i.d(t,"DeleteWordRightCommand",(function(){return B})),i.d(t,"DeleteWordStartLeft",(function(){return j})),i.d(t,"DeleteWordEndLeft",(function(){return W})),i.d(t,"DeleteWordLeft",(function(){return V})),i.d(t,"DeleteWordStartRight",(function(){return H})),i.d(t,"DeleteWordEndRight",(function(){return z})),i.d(t,"DeleteWordRight",(function(){return U})),i.d(t,"DeleteInsideWord",(function(){return K}));var n=i("dff7"),o=(t=i("b2cc"),i("2c29")),r=i("2e5d"),s=i("d48d"),a=i("e6ff"),l=i("7061"),d=i("6a89"),h=i("8025"),c=i("c101"),u=i("4779"),g=i("4fc3"),p=i("fd49"),m=i("70cb"),f=i("1665");class _ extends t.c{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(t.hasModel()){const e=Object(a.a)(t.getOption(116)),i=t.getModel();var n=t.getSelections().map(t=>{var n=new l.a(t.positionLineNumber,t.positionColumn);n=this._move(e,i,n,this._wordNavigationType);return this._moveTo(t,n,this._inSelectionMode)});i.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,n.map(e=>r.d.fromModelSelection(e))),1===n.length&&(n=new l.a(n[0].positionLineNumber,n[0].positionColumn),t.revealPosition(n,0))}}_moveTo(e,t,i){return i?new h.a(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new h.a(t.lineNumber,t.column,t.lineNumber,t.column)}}class b extends _{_move(e,t,i,n){return s.a.moveWordLeft(e,t,i,n)}}class v extends _{_move(e,t,i,n){return s.a.moveWordRight(e,t,i,n)}}class C extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class w extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class y extends b{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:g.a.and(c.a.textInputFocus,null==(e=g.a.and(u.a,f.b))?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}class S extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class L extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class x extends b{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:g.a.and(c.a.textInputFocus,null==(e=g.a.and(u.a,f.b))?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class k extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move(Object(a.a)(p.g.wordSeparators.defaultValue),t,i,n)}}class D extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Object(a.a)(p.g.wordSeparators.defaultValue),t,i,n)}}class N extends v{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class O extends v{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:g.a.and(c.a.textInputFocus,null==(e=g.a.and(u.a,f.b))?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}class E extends v{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class I extends v{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class M extends v{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:g.a.and(c.a.textInputFocus,null==(e=g.a.and(u.a,f.b))?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class T extends v{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class A extends v{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move(Object(a.a)(p.g.wordSeparators.defaultValue),t,i,n)}}class R extends v{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Object(a.a)(p.g.wordSeparators.defaultValue),t,i,n)}}class P extends t.c{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(t.hasModel()){const e=Object(a.a)(t.getOption(116)),i=t.getModel();var n=t.getSelections();const r=t.getOption(5),s=t.getOption(8),l=m.a.getAutoClosingPairs(i.getLanguageIdentifier().id),d=t._getViewModel();n=n.map(n=>(n=this._delete({wordSeparators:e,model:i,selection:n,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(6),autoClosingBrackets:r,autoClosingQuotes:s,autoClosingPairs:l,autoClosedCharacters:d.getCursorAutoClosedCharacters()},this._wordNavigationType),new o.a(n,""))),t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}}class F extends P{_delete(e,t){return e=s.a.deleteWordLeft(e,t),e||new d.a(1,1,1,1)}}class B extends P{_delete(e,t){t=s.a.deleteWordRight(e,t);return t||(t=e.model.getLineCount(),e=e.model.getLineMaxColumn(t),new d.a(t,e,t,e))}}class j extends F{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:c.a.writable})}}class W extends F{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:c.a.writable})}}class V extends F{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:c.a.writable,kbOpts:{kbExpr:c.a.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class H extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:c.a.writable})}}class z extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:c.a.writable})}}class U extends B{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:c.a.writable,kbOpts:{kbExpr:c.a.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class K extends t.b{constructor(){super({id:"deleteInsideWord",precondition:c.a.writable,label:n.a("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(t.hasModel()){const e=Object(a.a)(t.getOption(116)),i=t.getModel();var n=t.getSelections().map(t=>(t=s.a.deleteInsideWord(e,i,t),new o.a(t,"")));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}}Object(t.k)(new C),Object(t.k)(new w),Object(t.k)(new y),Object(t.k)(new S),Object(t.k)(new L),Object(t.k)(new x),Object(t.k)(new N),Object(t.k)(new O),Object(t.k)(new E),Object(t.k)(new I),Object(t.k)(new M),Object(t.k)(new T),Object(t.k)(new k),Object(t.k)(new D),Object(t.k)(new A),Object(t.k)(new R),Object(t.k)(new j),Object(t.k)(new W),Object(t.k)(new V),Object(t.k)(new H),Object(t.k)(new z),Object(t.k)(new U),Object(t.j)(K)},b400:function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return d}));var n,o,r=i("4b76");t=i("dff7"),i=i("0a0f");(a=n=n||{})[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error";{var s=n=n||{};s.compare=function(e,t){return t-e};const e=Object.create(null);e[s.Error]=Object(t.a)("sev.error","Error"),e[s.Warning]=Object(t.a)("sev.warning","Warning"),e[s.Info]=Object(t.a)("sev.info","Info"),s.toString=function(t){return e[t]||""},s.fromSeverity=function(e){switch(e){case r.a.Error:return s.Error;case r.a.Warning:return s.Warning;case r.a.Info:return s.Info;case r.a.Ignore:return s.Hint}},s.toSeverity=function(e){switch(e){case s.Error:return r.a.Error;case s.Warning:return r.a.Warning;case s.Info:return r.a.Info;case s.Hint:return r.a.Ignore}}}{var a=o=o||{};const e="";function l(t,i){var o=[e];return t.source?o.push(t.source.replace("¦","\\¦")):o.push(e),t.code?"string"==typeof t.code?o.push(t.code.replace("¦","\\¦")):o.push(t.code.value.replace("¦","\\¦")):o.push(e),void 0!==t.severity&&null!==t.severity?o.push(n.toString(t.severity)):o.push(e),t.message&&i?o.push(t.message.replace("¦","\\¦")):o.push(e),void 0!==t.startLineNumber&&null!==t.startLineNumber?o.push(t.startLineNumber.toString()):o.push(e),void 0!==t.startColumn&&null!==t.startColumn?o.push(t.startColumn.toString()):o.push(e),void 0!==t.endLineNumber&&null!==t.endLineNumber?o.push(t.endLineNumber.toString()):o.push(e),void 0!==t.endColumn&&null!==t.endColumn?o.push(t.endColumn.toString()):o.push(e),o.push(e),o.join("¦")}a.makeKey=function(e){return l(e,!0)},a.makeKeyOptionalMessage=l}const d=Object(i.c)("markerService")},b539:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o})),t=i("0a0f");class n{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}n.None=Object.freeze({report(){}});const o=Object(t.c)("editorProgressService")},b574:function(e,t,i){"use strict";i.r(t),i.d(t,"SnippetController2",(function(){return p}));var n=i("a666"),o=(t=i("b2cc"),i("6a89")),r=i("8025"),s=i("c101"),a=i("4153"),l=i("4fc3"),d=i("d3d7"),h=i("59a4"),c=(i=i("dff7"),function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}),u=function(e,t){return function(i,n){t(i,n,e)}};const g={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let p=class e{constructor(t,i,o){this._editor=t,this._logService=i,this._snippetListener=new n.b,this._modelVersionId=-1,this._inSnippet=e.InSnippetMode.bindTo(o),this._hasNextTabstop=e.HasNextTabstop.bindTo(o),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(o)}static get(t){return t.getContribution(e.ID)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null!=(e=this._session)&&e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,void 0===t?g:Object.assign(Object.assign({},g),t))}catch(t){this.cancel(),this._logService.error(t),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){this._editor.hasModel()&&(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new h.a(this._editor,e,t),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(e=>e.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState())))}_updateState(){if(this._session&&this._editor.hasModel())return this._modelVersionId!==this._editor.getModel().getAlternativeVersionId()&&this._session.hasPlaceholder&&!this._session.isAtLastPlaceholder&&this._session.isSelectionWithinPlaceholders()?(this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),void this._handleChoice()):this.cancel()}_handleChoice(){if(this._session&&this._editor.hasModel()){var e=this._session["choice"];if(e){if(this._currentChoice!==e){this._currentChoice=e,this._editor.setSelections(this._editor.getSelections().map(e=>r.a.fromPositions(e.getStartPosition())));const[t]=e.options;Object(a.f)(this._editor,e.options.map((e,i)=>({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(i+1),range:o.a.fromPositions(this._editor.getPosition(),this._editor.getPosition().delta(0,t.value.length))})))}}else this._currentChoice=void 0}else this._currentChoice=void 0}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),null!=(t=this._session)&&t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};p.ID="snippetController2",p.InSnippetMode=new l.c("inSnippetMode",!1,Object(i.a)("inSnippetMode","Whether the editor in current in snippet mode")),p.HasNextTabstop=new l.c("hasNextTabstop",!1,Object(i.a)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),p.HasPrevTabstop=new l.c("hasPrevTabstop",!1,Object(i.a)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),p=c([u(1,d.b),u(2,l.b)],p),Object(t.l)(p.ID,p),i=t.c.bindToContribution(p.get),Object(t.k)(new i({id:"jumpToNextSnippetPlaceholder",precondition:l.a.and(p.InSnippetMode,p.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:s.a.editorTextFocus,primary:2}})),Object(t.k)(new i({id:"jumpToPrevSnippetPlaceholder",precondition:l.a.and(p.InSnippetMode,p.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:s.a.editorTextFocus,primary:1026}})),Object(t.k)(new i({id:"leaveSnippet",precondition:p.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:s.a.editorTextFocus,primary:9,secondary:[1033]}})),Object(t.k)(new i({id:"acceptSnippet",precondition:p.InSnippetMode,handler:e=>e.finish()}))},b57f:function(e,t,i){"use strict";i.d(t,"b",(function(){return _t})),i.d(t,"a",(function(){return kt}));var n=i("fdcc"),o=i("308f"),r=i("a666"),s=i("3742"),a=i("6d8e"),l=(t=i("fd49"),i("7061")),d=i("6a89"),h=i("8025"),c=i("3352"),u=i("a054");class g{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function p(e,t,i){var n=Math.min(e.getLineCount(),1e4);let o=0,r=0,s="",a=0,l=[0,0,0,0,0,0,0,0,0];var d=new g;for(let g=1;g<=n;g++){var h,c,u=e.getLineLength(g),p=e.getLineContent(g),m=u<=65536;let n=!1,w=0,y=0,S=0;for(let t=0,i=u;t<i;t++){var f=m?p.charCodeAt(t):e.getLineCharCode(g,t);if(9===f)S++;else{if(32!==f){n=!0,w=t;break}y++}}if(n){0<S?o++:1<y&&r++;{_=void 0,b=void 0,v=void 0,C=void 0,u=void 0,h=void 0,c=void 0;var _=s,b=a,v=p,C=w;u=d;let e;for(u.spacesDiff=0,u.looksLikeAlignment=!1,e=0;e<b&&e<C;e++)if(_.charCodeAt(e)!==v.charCodeAt(e))break;let t=0,i=0;for(let r=e;r<b;r++)32===_.charCodeAt(r)?t++:i++;let n=0,o=0;for(let r=e;r<C;r++)32===v.charCodeAt(r)?n++:o++;0<t&&0<i||0<n&&0<o||(h=Math.abs(i-o),c=Math.abs(t-n),0===h?0<(u.spacesDiff=c)&&0<=n-1&&n-1<_.length&&n<v.length&&32!==v.charCodeAt(n)&&32===_.charCodeAt(n-1)&&44===_.charCodeAt(_.length-1)&&(u.looksLikeAlignment=!0):c%h==0&&(u.spacesDiff=c/h))}(!d.looksLikeAlignment||i&&t===d.spacesDiff)&&((u=d.spacesDiff)<=8&&l[u]++,s=p,a=w)}}let w=i,y=(o!==r&&(w=o<r),t);if(w){let e=w?0:.1*n;[2,4,6,8,3,5,7].forEach(t=>{var i=l[t];i>e&&(e=i,y=t)}),4===y&&0<l[4]&&0<l[2]&&l[2]>=l[4]/2&&(y=2)}return{insertSpaces:w,tabSize:y}}function m(e){return(1&e.metadata)>>>0}function f(e,t){e.metadata=254&e.metadata|t<<0}function _(e){return(2&e.metadata)>>>1==1}function b(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function v(e){return(4&e.metadata)>>>2==1}function C(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function w(e,t){e.metadata=231&e.metadata|t<<3}function y(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class S{constructor(e,t,i){this.metadata=0,f(((this.parent=this).left=this).right=this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,C(this,!1),w(this,1),y(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,b(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e,e=this.options.className,C(this,"squiggly-error"===e||"squiggly-warning"===e||"squiggly-info"===e),w(this,this.options.stickiness),y(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const L=new S(null,0,0);f(((L.parent=L).left=L).right=L,0);class x{constructor(){this.root=L,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,o){if(this.root===L)return[];{var r=this,s=e,a=t,l=i,d=n,h=o;let c=r.root,u=0,g=0,p=0,m=[],f=0;for(;c!==L;)if(_(c))b(c.left,!1),b(c.right,!1),c===c.parent.right&&(u-=c.parent.delta),c=c.parent;else{if(!_(c.left)){if(u+c.maxEnd<s){b(c,!0);continue}if(c.left!==L){c=c.left;continue}}if(g=u+c.start,a<g)b(c,!0);else{if(p=u+c.end,s<=p){c.setCachedOffsets(g,p,h);let e=!0;l&&c.ownerId&&c.ownerId!==l&&(e=!1),(e=(!d||!v(c))&&e)&&(m[f++]=c)}b(c,!0),c.right===L||_(c.right)||(u+=c.delta,c=c.right)}}return b(r.root,!1),m}}search(e,t,i){if(this.root===L)return[];{var n=this,o=e,r=t,s=i;let a=n.root,l=0,d=0,h=0,c=[],u=0;for(;a!==L;)if(_(a))b(a.left,!1),b(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else if(a.left===L||_(a.left)){d=l+a.start,h=l+a.end,a.setCachedOffsets(d,h,s);let e=!0;o&&a.ownerId&&a.ownerId!==o&&(e=!1),(e=(!r||!v(a))&&e)&&(c[u++]=a),b(a,!0),a.right===L||_(a.right)||(l+=a.delta,a=a.right)}else a=a.left;return b(n.root,!1),c}}collectNodesFromOwner(e){{var t=this,i=e;let n=t.root,o=[],r=0;for(;n!==L;)_(n)?(b(n.left,!1),b(n.right,!1),n=n.parent):n.left===L||_(n.left)?(n.ownerId===i&&(o[r++]=n),b(n,!0),n.right===L||_(n.right)||(n=n.right)):n=n.left;return b(t.root,!1),o}}collectNodesPostOrder(){{var e=this;let t=e.root,i=[],n=0;for(;t!==L;)_(t)?(b(t.left,!1),b(t.right,!1),t=t.parent):t.left===L||_(t.left)?t.right===L||_(t.right)?b(i[n++]=t,!0):t=t.right:t=t.left;return b(e.root,!1),i}}insert(e){D(this,e),this._normalizeDeltaIfNecessary()}delete(e){N(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){var i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;var o=i.start+n,r=i.end+n;i.setCachedOffsets(o,r,t)}acceptReplace(e,t,i,n){var o=function(e,t,i){let n=e.root,o=0,r=0,s=0,a=[],l=0;for(;n!==L;)if(_(n))b(n.left,!1),b(n.right,!1),n===n.parent.right&&(o-=n.parent.delta),n=n.parent;else{if(!_(n.left)){if(o+n.maxEnd<t){b(n,!0);continue}if(n.left!==L){n=n.left;continue}}r=o+n.start,i<r?b(n,!0):(s=o+n.end,t<=s&&(n.setCachedOffsets(r,s,0),a[l++]=n),b(n,!0),n.right===L||_(n.right)||(o+=n.delta,n=n.right))}return b(e.root,!1),a}(this,e,e+t);for(let _=0,b=o.length;_<b;_++)N(this,o[_]);this._normalizeDeltaIfNecessary();{var r=this,s=e,a=e+t,l=i;let n=r.root,o=0,h=0;for(var d=l-(a-s);n!==L;)if(_(n))b(n.left,!1),b(n.right,!1),n===n.parent.right&&(o-=n.parent.delta),T(n),n=n.parent;else{if(!_(n.left)){if(o+n.maxEnd<s){b(n,!0);continue}if(n.left!==L){n=n.left;continue}}h=o+n.start,a<h?(n.start+=d,n.end+=d,n.delta+=d,(n.delta<-1073741824||1073741824<n.delta)&&(r.requestNormalizeDelta=!0),b(n,!0)):(b(n,!0),n.right===L||_(n.right)||(o+=n.delta,n=n.right))}b(r.root,!1)}this._normalizeDeltaIfNecessary();for(let _=0,b=o.length;_<b;_++){var h=o[_];h.start=h.cachedAbsoluteStart,h.end=h.cachedAbsoluteEnd;{c=void 0,u=void 0,g=void 0,p=void 0,m=void 0,f=void 0,v=void 0,C=void 0,w=void 0,y=void 0,S=void 0,x=void 0;var c=h,u=e,g=e+t,p=i,m=n,f=(24&c.metadata)>>>3,v=0==f||2==f,C=(f=1==f||2==f,g-u),w=Math.min(C,p),y=c.start;let o=!1;var S=c.end;let r=!1;u<=y&&S<=g&&(32&c.metadata)>>>5==1&&(c.start=u,o=!0,c.end=u,r=!0);var x=m?1:0<C?2:0;!o&&k(y,v,u,x)&&(o=!0),!r&&k(S,f,u,x)&&(r=!0),0<w&&!m&&(x=p<C?2:0,!o&&k(y,v,u+w,x)&&(o=!0),!r)&&k(S,f,u+w,x)&&(r=!0),w=m?1:0,!o&&k(y,v,g,w)&&(c.start=u+p,o=!0),!r&&k(S,f,g,w)&&(c.end=u+p,r=!0),x=p-C,o||(c.start=Math.max(0,y+x)),r||(c.end=Math.max(0,S+x)),c.start>c.end&&(c.end=c.start)}h.maxEnd=h.end,D(this,h)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){if(this.requestNormalizeDelta){this.requestNormalizeDelta=!1;{var e=this;let t=e.root,i=0;for(;t!==L;)t=t.left===L||_(t.left)?t.right===L||_(t.right)?(t.start=i+t.start,t.end=i+t.end,t.delta=0,T(t),b(t,!0),b(t.left,!1),b(t.right,!1),t===t.parent.right&&(i-=t.parent.delta),t.parent):(i+=t.delta,t.right):t.left;b(e.root,!1)}}}}function k(e,t,i,n){return e<i||!(i<e)&&1!==n&&(2===n||t)}function D(e,t){if(e.root===L)return t.parent=L,t.left=L,t.right=L,f(t,0),e.root=t,e.root;{var i=t;let r=0,s=e.root;for(var n=i.start,o=i.end;;)if(function(e,t,i,n){return e!==i?e-i:t-n}(n,o,s.start+r,s.end+r)<0){if(s.left===L){i.start-=r,i.end-=r,i.maxEnd-=r,s.left=i;break}s=s.left}else{if(s.right===L){i.start-=r+s.delta,i.end-=r+s.delta,i.maxEnd-=r+s.delta,s.right=i;break}r+=s.delta,s=s.right}i.parent=s,i.left=L,i.right=L,f(i,1)}A(t.parent);let r=t;for(;r!==e.root&&1===m(r.parent);){var s;r.parent===r.parent.parent.left?1===m(s=r.parent.parent.right)?(f(r.parent,0),f(s,0),f(r.parent.parent,1),r=r.parent.parent):(r===r.parent.right&&E(e,r=r.parent),f(r.parent,0),f(r.parent.parent,1),I(e,r.parent.parent)):1===m(s=r.parent.parent.left)?(f(r.parent,0),f(s,0),f(r.parent.parent,1),r=r.parent.parent):(r===r.parent.left&&I(e,r=r.parent),f(r.parent,0),f(r.parent.parent,1),E(e,r.parent.parent))}f(e.root,0)}function N(e,t){let i,n;if(t.left===L?(i=t.right,n=t,i.delta+=t.delta,(i.delta<-1073741824||1073741824<i.delta)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===L?(i=t.left,n=t):(n=function(e){for(;e.left!==L;)e=e.left;return e}(t.right),(i=n.right).start+=n.delta,i.end+=n.delta,i.delta+=n.delta,(i.delta<-1073741824||1073741824<i.delta)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,n.delta=t.delta,(n.delta<-1073741824||1073741824<n.delta)&&(e.requestNormalizeDelta=!0)),n===e.root)f(e.root=i,0),t.detach(),O(),T(i),e.root.parent=L;else{var o=1===m(n);if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?i.parent=n.parent:(n.parent===t?i.parent=n:i.parent=n.parent,n.left=t.left,n.right=t.right,n.parent=t.parent,f(n,m(t)),t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==L&&(n.left.parent=n),n.right!==L&&(n.right.parent=n)),t.detach(),o)A(i.parent),n!==t&&(A(n),A(n.parent));else{let o;for(A(i),A(i.parent),n!==t&&(A(n),A(n.parent));i!==e.root&&0===m(i);)i=i===i.parent.left?(1===m(o=i.parent.right)&&(f(o,0),f(i.parent,1),E(e,i.parent),o=i.parent.right),0===m(o.left)&&0===m(o.right)?(f(o,1),i.parent):(0===m(o.right)&&(f(o.left,0),f(o,1),I(e,o),o=i.parent.right),f(o,m(i.parent)),f(i.parent,0),f(o.right,0),E(e,i.parent),e.root)):(1===m(o=i.parent.left)&&(f(o,0),f(i.parent,1),I(e,i.parent),o=i.parent.left),0===m(o.left)&&0===m(o.right)?(f(o,1),i.parent):(0===m(o.left)&&(f(o.right,0),f(o,1),E(e,o),o=i.parent.left),f(o,m(i.parent)),f(i.parent,0),f(o.left,0),I(e,i.parent),e.root));f(i,0)}O()}}function O(){(L.parent=L).delta=0,L.start=0,L.end=0}function E(e,t){var i=t.right;i.delta+=t.delta,(i.delta<-1073741824||1073741824<i.delta)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==L&&(i.left.parent=t),i.parent=t.parent,t.parent===L?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,(i.left=t).parent=i,T(t),T(i)}function I(e,t){var i=t.left;t.delta-=i.delta,(t.delta<-1073741824||1073741824<t.delta)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==L&&(i.right.parent=t),i.parent=t.parent,t.parent===L?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,(i.right=t).parent=i,T(t),T(i)}function M(e){let t=e.end;var i;return e.left!==L&&(i=e.left.maxEnd)>t&&(t=i),e.right!==L&&(i=e.right.maxEnd+e.delta)>t?i:t}function T(e){e.maxEnd=M(e)}function A(e){for(;e!==L;){var t=M(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}class R{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,((this.parent=this).left=this).right=this}next(){if(this.right!==P)return F(this.right);let e=this;for(;e.parent!==P&&e.parent.left!==e;)e=e.parent;return e.parent===P?P:e.parent}prev(){if(this.left!==P)return B(this.left);let e=this;for(;e.parent!==P&&e.parent.right!==e;)e=e.parent;return e.parent===P?P:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const P=new R(null,0);function F(e){for(;e.left!==P;)e=e.left;return e}function B(e){for(;e.right!==P;)e=e.right;return e}function j(e){return e===P?0:e.size_left+e.piece.length+j(e.right)}function W(e){return e===P?0:e.lf_left+e.piece.lineFeedCnt+W(e.right)}function V(){P.parent=P}function H(e,t){var i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==P&&(i.left.parent=t),i.parent=t.parent,t.parent===P?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,(i.left=t).parent=i}function z(e,t){var i=t.left;t.left=i.right,i.right!==P&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===P?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,(i.right=t).parent=i}function U(e,t){let i,n;if(i=t.left===P?(n=t).right:t.right===P?(n=t).left:(n=F(t.right)).right,n===e.root)(e.root=i).color=0,t.detach(),V(),e.root.parent=P;else{var o,r,s,a=1===n.color;if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?(i.parent=n.parent,$(e,i)):(n.parent===t?i.parent=n:i.parent=n.parent,$(e,i),n.left=t.left,n.right=t.right,n.parent=t.parent,n.color=t.color,t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==P&&(n.left.parent=n),n.right!==P&&(n.right.parent=n),n.size_left=t.size_left,n.lf_left=t.lf_left,$(e,n)),t.detach(),i.parent.left===i&&(t=j(i),o=W(i),t===i.parent.size_left&&o===i.parent.lf_left||(r=t-i.parent.size_left,s=o-i.parent.lf_left,i.parent.size_left=t,i.parent.lf_left=o,q(e,i.parent,r,s))),$(e,i.parent),!a){let t;for(;i!==e.root&&0===i.color;)i=i===i.parent.left?(1===(t=i.parent.right).color&&(t.color=0,i.parent.color=1,H(e,i.parent),t=i.parent.right),0===t.left.color&&0===t.right.color?(t.color=1,i.parent):(0===t.right.color&&(t.left.color=0,t.color=1,z(e,t),t=i.parent.right),t.color=i.parent.color,i.parent.color=0,t.right.color=0,H(e,i.parent),e.root)):(1===(t=i.parent.left).color&&(t.color=0,i.parent.color=1,z(e,i.parent),t=i.parent.left),0===t.left.color&&0===t.right.color?(t.color=1,i.parent):(0===t.left.color&&(t.right.color=0,t.color=1,H(e,t),t=i.parent.left),t.color=i.parent.color,i.parent.color=0,t.left.color=0,z(e,i.parent),e.root));i.color=0}V()}}function K(e,t){for($(e,t);t!==e.root&&1===t.parent.color;){var i;t.parent===t.parent.parent.left?1===(i=t.parent.parent.right).color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&H(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,z(e,t.parent.parent)):1===(i=t.parent.parent.left).color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&z(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,H(e,t.parent.parent))}e.root.color=0}function q(e,t,i,n){for(;t!==e.root&&t!==P;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}function $(e,t){let i=0,n=0;if(t!==e.root){if(0===i){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;t=t.parent,i=j(t.left)-t.size_left,n=W(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n}for(;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}(((P.parent=P).left=P).right=P).color=0;var G=i("8c02");const Z=65535;function Y(e){let t;return(t=new(e[e.length-1]<65536?Uint16Array:Uint32Array)(e.length)).set(e,0),t}class X{constructor(e,t,i,n,o){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=o}}function Q(e,t=!0){let i=[0],n=1;for(let r=0,s=e.length;r<s;r++){var o=e.charCodeAt(r);13===o?r+1<s&&10===e.charCodeAt(r+1)?(i[n++]=r+2,r++):i[n++]=r+1:10===o&&(i[n++]=r+1)}return t?Y(i):i}class J{constructor(e,t,i,n,o){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=o}}class ee{constructor(e,t){this.buffer=e,this.lineStarts=t}}class te{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==P&&e.iterate(e.root,e=>(e!==P&&this._pieces.push(e.piece),!0))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class ie{constructor(e){this._limit=e,this._cache=[]}get(e){for(let i=this._cache.length-1;0<=i;i--){var t=this._cache[i];if(t.nodeStartOffset<=e&&t.nodeStartOffset+t.node.piece.length>=e)return t}return null}get2(e){for(let i=this._cache.length-1;0<=i;i--){var t=this._cache[i];if(t.nodeStartLineNumber&&t.nodeStartLineNumber<e&&t.nodeStartLineNumber+t.node.piece.lineFeedCnt>=e)return t}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;var i=this._cache;for(let r=0;r<i.length;r++){var n=i[r];(null===n.node.parent||n.nodeStartOffset>=e)&&(i[r]=null,t=!0)}if(t){var o=[];for(const e of i)null!==e&&o.push(e);this._cache=o}}}class ne{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new ee("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=P,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let r=0,s=e.length;r<s;r++){var o;0<e[r].buffer.length&&(e[r].lineStarts||(e[r].lineStarts=Q(e[r].buffer)),o=new J(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length),this._buffers.push(e[r]),n=this.rbInsertRight(n,o))}this._searchCache=new ie(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){var t;let i=65535-Math.floor(21845),n=2*i,o="",r=0,s=[];this.iterate(this.root,t=>{t=this.getNodeContent(t);var a,l=t.length;return r<=i||r+l<n?(o+=t,r+=l):(a=o.replace(/\r\n|\r|\n/g,e),s.push(new ee(a,Q(a))),o=t,r=l),!0}),0<r&&(t=o.replace(/\r\n|\r|\n/g,e),s.push(new ee(t,Q(t)))),this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new te(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==P;)if(n.left!==P&&n.lf_left+1>=e)n=n.left;else{var o;if(n.lf_left+n.piece.lineFeedCnt+1>=e)return i+=n.size_left,o=this.getAccumulatedValue(n,e-n.lf_left-2),i+(o+t-1);e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;for(var n,o,r=e;t!==P;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e)return n=this.getIndexOf(t,e-t.size_left),i+=t.lf_left+n.index,0===n.index?(o=this.getOffsetAt(i+1,1),new l.a(i+1,r-o+1)):new l.a(i+1,n.remainder+1);if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===P)return o=this.getOffsetAt(i+1,1),new l.a(i+1,r-e-o+1);t=t.right}return new l.a(1,1)}getValueInRange(e,t){var i;return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn?"":(i=this.nodeAt2(e.startLineNumber,e.startColumn),e=this.nodeAt2(e.endLineNumber,e.endColumn),i=this.getValueInRange2(i,e),!t||t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?i:i.replace(/\r\n|\r|\n/g,t))}getValueInRange2(e,t){if(e.node===t.node)return o=e.node,n=this._buffers[o.piece.bufferIndex].buffer,o=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start),n.substring(o+e.remainder,o+t.remainder);let i=e.node;var n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let r=n.substring(o+e.remainder,o+i.piece.length);for(i=i.next();i!==P;){var s=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){r+=s.substring(a,a+t.remainder);break}r+=s.substr(a,i.piece.length),i=i.next()}return r}getLinesContent(){let e=[],t=0,i="",n=!1;return this.iterate(this.root,o=>{if(o!==P){o=o.piece;let d=o.length;if(0!==d){var r=this._buffers[o.bufferIndex].buffer,s=this._buffers[o.bufferIndex].lineStarts,a=o.start.line,l=o.end.line;let h=s[a]+o.start.column;if(!n||(10===r.charCodeAt(h)&&(h++,d--),e[t++]=i,i="",n=!1,0!==d))if(a===l)this._EOLNormalized||13!==r.charCodeAt(h+d-1)?i+=r.substr(h,d):(n=!0,i+=r.substr(h,d-1));else{i+=this._EOLNormalized?r.substring(h,Math.max(h,s[a+1]-this._EOLLength)):r.substring(h,s[a+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=a+1;n<l;n++)i=this._EOLNormalized?r.substring(s[n],s[n+1]-this._EOLLength):r.substring(s[n],s[n+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;this._EOLNormalized||13!==r.charCodeAt(s[l]+o.end.column-1)?i=r.substr(s[l],o.end.column):(n=!0,0===o.end.column?t--:i=r.substr(s[l],o.end.column-1))}}}return!0}),n&&(e[t++]=i,i=""),e[t++]=i,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber!==e&&((this._lastVisitedLine.lineNumber=e)===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){var t,i;return e.remainder===e.node.piece.length?(i=e.node.next())?(t=this._buffers[i.piece.bufferIndex],i=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start),t.buffer.charCodeAt(i)):0:(t=this._buffers[e.node.piece.bufferIndex],i=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start)+e.remainder,t.buffer.charCodeAt(i))}getLineCharCode(e,t){return e=this.nodeAt2(e,t+1),this._getCharCode(e)}getLineLength(e){var t;return e===this.getLineCount()?(t=this.getOffsetAt(e,1),this.getLength()-t):this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,i,n,o,r,s,a,l,h,c){var u=this._buffers[e.piece.bufferIndex],g=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start);let p=this.offsetInBuffer(e.piece.bufferIndex,o);var m,f=this.offsetInBuffer(e.piece.bufferIndex,r),_={line:0,column:0};let b,v;t._wordSeparators?(b=u.buffer.substring(p,f),v=e=>e+p,t.reset(0)):(b=u.buffer,v=e=>e,t.reset(p));do{if(m=t.next(b)){if(v(m.index)>=f)return h;this.positionInBuffer(e,v(m.index)-g,_);var C=this.getLineFeedCnt(e.piece.bufferIndex,o,_),w=_.line===o.line?_.column-o.column+n:_.column+1,y=w+m[0].length;if(c[h++]=Object(G.d)(new d.a(i+C,w,i+C,y),m,a),v(m.index)+m[0].length>=f)return h;if(l<=h)return h}}while(m);return h}findMatchesLineByLine(e,t,i,n){var o=[];let r=0;var s=new G.b(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let d=this.positionInBuffer(a.node,a.remainder);var h,c,u=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,d,u,t,i,n,r,o);else{let _=e.startLineNumber,b=a.node;for(;b!==l.node;){var g=this.getLineFeedCnt(b.piece.bufferIndex,d,b.piece.end);if(1<=g){var p=this._buffers[b.piece.bufferIndex].lineStarts,m=this.offsetInBuffer(b.piece.bufferIndex,b.piece.start),f=(p=p[d.line+g],_===e.startLineNumber?e.startColumn:1);if((r=this.findMatchesInNode(b,s,_,f,d,this.positionInBuffer(b,p-m),t,i,n,r,o))>=n)return o;_+=g}if(f=_===e.startLineNumber?e.startColumn-1:0,_===e.endLineNumber)return p=this.getLineContent(_).substring(f,e.endColumn-1),r=this._findMatchesInLine(t,s,p,e.endLineNumber,f,r,o,i,n),o;if((r=this._findMatchesInLine(t,s,this.getLineContent(_).substr(f),_,f,r,o,i,n))>=n)return o;_++,a=this.nodeAt2(_,1),b=a.node,d=this.positionInBuffer(a.node,a.remainder)}r=_===e.endLineNumber?(h=_===e.startLineNumber?e.startColumn-1:0,c=this.getLineContent(_).substring(h,e.endColumn-1),this._findMatchesInLine(t,s,c,e.endLineNumber,h,r,o,i,n)):(c=_===e.startLineNumber?e.startColumn:1,this.findMatchesInNode(l.node,s,_,c,d,u,t,i,n,r,o))}return o}_findMatchesInLine(e,t,i,n,o,r,s,a,l){var h,u=e.wordSeparators;if(!a&&e.simpleSearch){var g=e.simpleSearch,p=g.length,m=i.length;let t=-p;for(;-1!==(t=i.indexOf(g,t+p));)if((!u||Object(G.e)(u,i,m,t,p))&&(s[r++]=new c.b(new d.a(n,t+1+o,n,t+1+p+o),null),l<=r))return r}else{t.reset(0);do{if((h=t.next(i))&&(s[r++]=Object(G.d)(new d.a(n,h.index+1+o,n,h.index+1+h[0].length+o),h,a),l<=r))return r}while(h)}return r}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==P){var{node:i,remainder:n,nodeStartOffset:o}=this.nodeAt(e),r=i.piece,s=r.bufferIndex,a=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&r.end.line===this._lastChangeBufferPos.line&&r.end.column===this._lastChangeBufferPos.column&&o+r.length===e&&t.length<Z)return this.appendToNode(i,t),void this.computeBufferMetadata();if(o===e)this.insertContentToNodeLeft(t,i),this._searchCache.validate(e);else if(o+i.piece.length>e){o=[];let d=new J(r.bufferIndex,a,r.end,this.getLineFeedCnt(r.bufferIndex,a,r.end),this.offsetInBuffer(s,r.end)-this.offsetInBuffer(s,a));this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(i,n)&&(e={line:d.start.line+1,column:0},d=new J(d.bufferIndex,e,d.end,this.getLineFeedCnt(d.bufferIndex,e,d.end),d.length-1),t+="\n"),this.shouldCheckCRLF()&&this.startWithLF(t)&&13===this.nodeCharCodeAt(i,n-1)?(r=this.positionInBuffer(i,n-1),this.deleteNodeTail(i,r),t="\r"+t,0===i.piece.length&&o.push(i)):this.deleteNodeTail(i,a);var l=this.createNewPieces(t);0<d.length&&this.rbInsertRight(i,d);let h=i;for(let e=0;e<l.length;e++)h=this.rbInsertRight(h,l[e]);this.deleteNodes(o)}else this.insertContentToNodeRight(t,i)}else{var d=this.createNewPieces(t);let e=this.rbInsertLeft(null,d[0]);for(let t=1;t<d.length;t++)e=this.rbInsertRight(e,d[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",!(t<=0||this.root===P)){var i=this.nodeAt(e),n=this.nodeAt(e+t),o=i.node,r=n.node;if(o===r)l=this.positionInBuffer(o,i.remainder),d=this.positionInBuffer(o,n.remainder),i.nodeStartOffset===e?t===o.piece.length?(a=o.next(),U(this,o),this.validateCRLFWithPrevNode(a)):(this.deleteNodeHead(o,d),this._searchCache.validate(e),this.validateCRLFWithPrevNode(o)):i.nodeStartOffset+o.piece.length===e+t?(this.deleteNodeTail(o,l),this.validateCRLFWithNextNode(o)):this.shrinkNode(o,l,d);else{var s=[],a=this.positionInBuffer(o,i.remainder),l=(t=(this.deleteNodeTail(o,a),this._searchCache.validate(e),0===o.piece.length&&s.push(o),this.positionInBuffer(r,n.remainder)),this.deleteNodeHead(r,t),0===r.piece.length&&s.push(r),o.next());for(let e=l;e!==P&&e!==r;e=e.next())s.push(e);var d=0===o.piece.length?o.prev():o;this.deleteNodes(s),this.validateCRLFWithNextNode(d)}this.computeBufferMetadata()}}insertContentToNodeLeft(e,t){var i,n,o=[],r=(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)&&(n={line:(i=t.piece).start.line+1,column:0},n=new J(i.bufferIndex,n,i.end,this.getLineFeedCnt(i.bufferIndex,n,i.end),i.length-1),t.piece=n,e+="\n",q(this,t,-1,-1),0===t.piece.length)&&o.push(t),this.createNewPieces(e));let s=this.rbInsertLeft(t,r[r.length-1]);for(let a=r.length-2;0<=a;a--)s=this.rbInsertLeft(s,r[a]);this.validateCRLFWithPrevNode(s),this.deleteNodes(o)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");var i=this.createNewPieces(e);e=this.rbInsertRight(t,i[0]);let n=e;for(let o=1;o<i.length;o++)n=this.rbInsertRight(n,i[o]);this.validateCRLFWithPrevNode(e)}positionInBuffer(e,t,i){var n=e.piece,o=(e=e.piece.bufferIndex,this._buffers[e].lineStarts),r=o[n.start.line]+n.start.column+t;let s=n.start.line,a=n.end.line,l=0;var d;let h=0;for(;s<=a&&(l=s+(a-s)/2|0,h=o[l],l!==a);)if(d=o[l+1],r<h)a=l-1;else{if(!(d<=r))break;s=l+1}return i?(i.line=l,i.column=r-h,null):{line:l,column:r-h}}getLineFeedCnt(e,t,i){var n,o;return 0===i.column||(o=this._buffers[e].lineStarts,i.line===o.length-1)||(n=o[i.line+1],(o=o[i.line]+i.column)+1<n)||13!==this._buffers[e].buffer.charCodeAt(o-1)?i.line-t.line:i.line-t.line+1}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)U(this,e[t])}createNewPieces(e){if(e.length>Z){for(var t=[];e.length>Z;){var i=e.charCodeAt(65534);let n;e=13===i||55296<=i&&i<=56319?(n=e.substring(0,65534),e.substring(65534)):(n=e.substring(0,Z),e.substring(Z)),i=Q(n),t.push(new J(this._buffers.length,{line:0,column:0},{line:i.length-1,column:n.length-i[i.length-1]},i.length-1,n.length)),this._buffers.push(new ee(n,i))}var n=Q(e);return t.push(new J(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new ee(e,n)),t}let o=this._buffers[0].buffer.length;var r=Q(e,!1);let s=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===o&&0!==o&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},s=this._lastChangeBufferPos;for(let e=0;e<r.length;e++)r[e]+=o+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1)),this._buffers[0].buffer+="_"+e,o+=1}else{if(0!==o)for(let e=0;e<r.length;e++)r[e]+=o;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1)),this._buffers[0].buffer+=e}n=this._buffers[0].buffer.length;var a=this._buffers[0].lineStarts.length-1;a={line:a,column:n-this._buffers[0].lineStarts[a]},n=new J(0,s,a,this.getLineFeedCnt(0,s,a),n-o);return this._lastChangeBufferPos=a,[n]}getLineRawContent(e,t=0){let i=this.root,n="";var o=this._searchCache.get2(e);if(o){i=o.node;var r=this.getAccumulatedValue(i,e-o.nodeStartLineNumber-1),s=this._buffers[i.piece.bufferIndex].buffer,a=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(o.nodeStartLineNumber+i.piece.lineFeedCnt!==e)return o=this.getAccumulatedValue(i,e-o.nodeStartLineNumber),s.substring(a+r,a+o-t);n=s.substring(a+r,a+i.piece.length)}else{let o=0;for(var l,d=e;i!==P;)if(i.left!==P&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1)return c=this.getAccumulatedValue(i,e-i.lf_left-2),l=this.getAccumulatedValue(i,e-i.lf_left-1),h=this._buffers[i.piece.bufferIndex].buffer,u=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start),o+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:o,nodeStartLineNumber:d-(e-1-i.lf_left)}),h.substring(u+c,u+l-t);if(i.lf_left+i.piece.lineFeedCnt===e-1){var h=this.getAccumulatedValue(i,e-i.lf_left-2),c=this._buffers[i.piece.bufferIndex].buffer,u=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=c.substring(u+h,u+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,o+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==P;){var g,p,m=this._buffers[i.piece.bufferIndex].buffer;if(0<i.piece.lineFeedCnt)return g=this.getAccumulatedValue(i,0),p=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start),n+m.substring(p,p+g-t);p=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start),n+=m.substr(p,i.piece.length),i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==P;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){var i=e.piece,n=this.positionInBuffer(e,t),o=n.line-i.start.line;return this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t&&(t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n),t!==o)?{index:t,remainder:0}:{index:o,remainder:n.column}}getAccumulatedValue(e,t){var i;return t<0?0:(e=e.piece,i=this._buffers[e.bufferIndex].lineStarts,(t=e.start.line+t+1)>e.end.line?i[e.end.line]+e.end.column-i[e.start.line]-e.start.column:i[t]-i[e.start.line]-e.start.column)}deleteNodeTail(e,t){var i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.end),r=this.offsetInBuffer(i.bufferIndex,t),s=this.getLineFeedCnt(i.bufferIndex,i.start,t);n=s-n,r-=o,o=i.length+r;e.piece=new J(i.bufferIndex,i.start,t,s,o),q(this,e,r,n)}deleteNodeHead(e,t){var i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.start),r=this.getLineFeedCnt(i.bufferIndex,t,i.end),s=(n=r-n,o=o-this.offsetInBuffer(i.bufferIndex,t),i.length+o);e.piece=new J(i.bufferIndex,t,i.end,r,s),q(this,e,o,n)}shrinkNode(e,t,i){var n=e.piece,o=n.start,r=n.end,s=n.length,a=n.lineFeedCnt,l=t,d=this.getLineFeedCnt(n.bufferIndex,n.start,l);t=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,o),e.piece=new J(n.bufferIndex,n.start,l,d,t),q(this,e,t-s,d-a),o=new J(n.bufferIndex,i,r,this.getLineFeedCnt(n.bufferIndex,i,r),this.offsetInBuffer(n.bufferIndex,r)-this.offsetInBuffer(n.bufferIndex,i)),l=this.rbInsertRight(e,o);this.validateCRLFWithPrevNode(l)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length,o=(this._buffers[0].buffer+=t,Q(t,!1));for(let l=0;l<o.length;l++)o[l]+=n;i&&(i=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2],this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:n-i}),this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1));i=this._buffers[0].lineStarts.length-1,i={line:i,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[i]};var r=e.piece.length+t.length,s=e.piece.lineFeedCnt,a=this.getLineFeedCnt(0,e.piece.start,i);s=a-s;e.piece=new J(e.piece.bufferIndex,e.piece.start,i,a,r),this._lastChangeBufferPos=i,q(this,e,t.length,s)}nodeAt(e){let t=this.root;var i,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let o=0;for(;t!==P;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e)return o+=t.size_left,i={node:t,remainder:e-t.size_left,nodeStartOffset:o},this._searchCache.set(i),i;e-=t.size_left+t.piece.length,o+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==P;)if(i.left!==P&&i.lf_left>=e-1)i=i.left;else{var o;if(i.lf_left+i.piece.lineFeedCnt>e-1)return r=this.getAccumulatedValue(i,e-i.lf_left-2),o=this.getAccumulatedValue(i,e-i.lf_left-1),n+=i.size_left,{node:i,remainder:Math.min(r+t-1,o),nodeStartOffset:n};if(i.lf_left+i.piece.lineFeedCnt===e-1){var r=this.getAccumulatedValue(i,e-i.lf_left-2);if(r+t-1<=i.piece.length)return{node:i,remainder:r+t-1,nodeStartOffset:n};t-=i.piece.length-r;break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==P;){var s,a;if(0<i.piece.lineFeedCnt)return a=this.getAccumulatedValue(i,0),s=this.offsetOfNode(i),{node:i,remainder:Math.min(t-1,a),nodeStartOffset:s};if(i.piece.length>=t-1)return a=this.offsetOfNode(i),{node:i,remainder:t-1,nodeStartOffset:a};t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){var i;return e.piece.lineFeedCnt<1?-1:(i=this._buffers[e.piece.bufferIndex],e=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t,i.buffer.charCodeAt(e))}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){var t,i,n;return"string"==typeof e?10===e.charCodeAt(0):e!==P&&0!==e.piece.lineFeedCnt&&(e=e.piece,n=(t=this._buffers[e.bufferIndex].lineStarts)[i=e.start.line]+e.start.column,i!==t.length-1)&&!(n+1<t[i+1])&&10===this._buffers[e.bufferIndex].buffer.charCodeAt(n)}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==P&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){var t;this.shouldCheckCRLF()&&this.startWithLF(e)&&(t=e.prev(),this.endWithCR(t))&&this.fixCRLF(t,e)}validateCRLFWithNextNode(e){var t;this.shouldCheckCRLF()&&this.endWithCR(e)&&(t=e.next(),this.startWithLF(t))&&this.fixCRLF(e,t)}fixCRLF(e,t){var i=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let o;o=0===e.piece.end.column?{line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};n=e.piece.length-1;var r=e.piece.lineFeedCnt-1,s=(r=(e.piece=new J(e.piece.bufferIndex,e.piece.start,o,r,n),q(this,e,-1,-1),0===e.piece.length&&i.push(e),{line:t.piece.start.line+1,column:0}),n=t.piece.length-1,this.getLineFeedCnt(t.piece.bufferIndex,r,t.piece.end));t.piece=new J(t.piece.bufferIndex,r,t.piece.end,s,n),q(this,t,-1,-1),0===t.piece.length&&i.push(t),r=this.createNewPieces("\r\n");this.rbInsertRight(e,r[0]);for(let a=0;a<i.length;a++)U(this,i[a])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var i,n,o;t=t.next();if(this.startWithLF(t))return e+="\n",1===t.piece.length?U(this,t):(i={line:(e=t.piece).start.line+1,column:0},n=e.length-1,o=this.getLineFeedCnt(e.bufferIndex,i,e.end),t.piece=new J(e.bufferIndex,i,e.end,o,n),q(this,t,-1,-1)),!0}return!1}iterate(e,t){return e===P?t(P):this.iterate(e.left,t)&&t(e)&&this.iterate(e.right,t)}getNodeContent(e){var t,i;return e===P?"":(t=this._buffers[e.piece.bufferIndex],e=e.piece,i=this.offsetInBuffer(e.bufferIndex,e.start),e=this.offsetInBuffer(e.bufferIndex,e.end),t.buffer.substring(i,e))}getPieceContent(e){var t=this._buffers[e.bufferIndex],i=this.offsetInBuffer(e.bufferIndex,e.start);e=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(i,e)}rbInsertRight(e,t){t=new R(t,1);var i=(t.left=P,t.right=P,t.parent=P,t.size_left=0,t.lf_left=0,this.root);return i===P?(this.root=t).color=0:e.right===P?(e.right=t).parent=e:((i=F(e.right)).left=t).parent=i,K(this,t),t}rbInsertLeft(e,t){return t=new R(t,1),t.left=P,t.right=P,t.parent=P,t.size_left=0,t.lf_left=0,this.root===P?(this.root=t).color=0:e.left===P?(e.left=t).parent=e:((e=B(e.left)).right=t).parent=e,K(this,t),t}}var oe=i("4111"),re=i("e679");class se extends r.a{constructor(e,t,i,n,r,s,a){super(),this._onDidChangeContent=this._register(new o.b),this._BOM=t,this._mightContainNonBasicASCII=!s,this._mightContainRTL=n,this._mightContainUnusualLineTerminators=r,this._pieceTree=new ne(e,i,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){return t=e+t,e=this.getPositionAt(e),t=this.getPositionAt(t),new d.a(e.lineNumber,e.column,t.lineNumber,t.column)}getValueInRange(e,t=0){return e.isEmpty()?"":(t=this._getEndOfLine(t),this._pieceTree.getValueInRange(e,t))}getValueLengthInRange(e,t=0){var i;return e.isEmpty()?0:e.startLineNumber===e.endLineNumber?e.endColumn-e.startColumn:(i=this.getOffsetAt(e.startLineNumber,e.startColumn),this.getOffsetAt(e.endLineNumber,e.endColumn)-i)}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let l=0;var i=e.startLineNumber,n=e.endLineNumber;for(let t=i;t<=n;t++){var o=this.getLineContent(t),r=t===i?e.startColumn-1:0,a=t===n?e.endColumn-1:o.length;for(let e=r;e<a;e++)s.E(o.charCodeAt(e))?(l+=1,e+=1):l+=1}return l+=this._getEndOfLine(t).length*(n-i)}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){return e=s.u(this.getLineContent(e)),-1===e?0:e+1}getLineLastNonWhitespaceColumn(e){return e=s.I(this.getLineContent(e)),-1===e?0:e+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,i){let n=this._mightContainRTL,o=this._mightContainUnusualLineTerminators,r=this._mightContainNonBasicASCII,a=!0,l=[];for(let c=0;c<e.length;c++){var d,h,u=e[c],g=(a&&u._isTracked&&(a=!1),u.range);if(u.text){let e=!0;r||(e=!s.A(u.text),r=e),!n&&e&&(n=s.m(u.text)),!o&&e&&(o=s.n(u.text))}let t="",i=0,p=0,m=0;u.text&&([i,p,m,d]=Object(oe.f)(u.text),h=this.getEOL(),t=0===d||d===("\r\n"===h?2:1)?u.text:u.text.replace(/\r\n|\r|\n/g,h)),l[c]={sortIndex:c,identifier:u.identifier||null,range:g,rangeOffset:this.getOffsetAt(g.startLineNumber,g.startColumn),rangeLength:this.getValueLengthInRange(g),text:t,eolCount:i,firstLineLength:p,lastLineLength:m,forceMoveMarkers:Boolean(u.forceMoveMarkers),isAutoWhitespaceEdit:u.isAutoWhitespaceEdit||!1}}l.sort(se._sortOpsAscending);let p=!1;for(let s=0,c=l.length-1;s<c;s++){var m=l[s].range.getEndPosition(),f=l[s+1].range.getStartPosition();if(f.isBeforeOrEqual(m)){if(f.isBefore(m))throw new Error("Overlapping ranges are not allowed!");p=!0}}a&&(l=this._reduceOperations(l));var _=i||t?se._getInverseEditRanges(l):[],b=[];if(t)for(let c=0;c<l.length;c++){var v=l[c],C=_[c];if(v.isAutoWhitespaceEdit&&v.range.isEmpty())for(let e=C.startLineNumber;e<=C.endLineNumber;e++){let t="";e===C.startLineNumber&&(t=this.getLineContent(v.range.startLineNumber),-1!==s.u(t))||b.push({lineNumber:e,oldContent:t})}}let w=null;if(i){let e=0;w=[];for(let t=0;t<l.length;t++){var y=l[t],S=_[t],L=this.getValueInRange(y.range),x=y.rangeOffset+e;e+=y.text.length-L.length,w[t]={sortIndex:y.sortIndex,identifier:y.identifier,range:S,text:L,textChange:new re.a(y.rangeOffset,L,x,y.text)}}p||w.sort((e,t)=>e.sortIndex-t.sortIndex)}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=r,i=this._doApplyEdits(l);let k=null;if(t&&0<b.length){b.sort((e,t)=>t.lineNumber-e.lineNumber),k=[];for(let e=0,t=b.length;e<t;e++){var D,N,O=b[e].lineNumber;0<e&&b[e-1].lineNumber===O||(D=b[e].oldContent,0!==(N=this.getLineContent(O)).length&&N!==D&&-1===s.u(N)&&k.push(O))}}return this._onDidChangeContent.fire(),new c.a(w,i,k)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;var i=e[0].range,n=e[e.length-1].range;n=new d.a(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let o=i.startLineNumber,r=i.startColumn;var s=[];for(let g=0,p=e.length;g<p;g++){var a=e[g],l=a.range;t=t||a.forceMoveMarkers,s.push(this.getValueInRange(new d.a(o,r,l.startLineNumber,l.startColumn))),0<a.text.length&&s.push(a.text),o=l.endLineNumber,r=l.endColumn}i=s.join("");var[h,c,u]=Object(oe.f)(i);return{sortIndex:0,identifier:e[0].identifier,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n,0),text:i,eolCount:h,firstLineLength:c,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(se._sortOpsDescending);var t=[];for(let a=0;a<e.length;a++){var i=e[a],n=i.range.startLineNumber,o=i.range.startColumn,r=i.range.endLineNumber,s=i.range.endColumn;n===r&&o===s&&0===i.text.length||(i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength),n=new d.a(n,o,r,s),t.push({range:n,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers}))}return t}findMatchesLineByLine(e,t,i,n){return this._pieceTree.findMatchesLineByLine(e,t,i,n)}static _getInverseEditRanges(e){var t=[];let i=0,n=0,o=null;for(let a=0,l=e.length;a<l;a++){var r,s=e[a];let l,h,c;h=o?o.range.endLineNumber===s.range.startLineNumber?(l=i,n+(s.range.startColumn-o.range.endColumn)):(l=i+(s.range.startLineNumber-o.range.endLineNumber),s.range.startColumn):(l=s.range.startLineNumber,s.range.startColumn),c=0<s.text.length?1===(r=s.eolCount+1)?new d.a(l,h,l,h+s.firstLineLength):new d.a(l,h,l+r-1,s.lastLineLength+1):new d.a(l,h,l,h),i=c.endLineNumber,n=c.endColumn,t.push(c),o=s}return t}static _sortOpsAscending(e,t){var i=d.a.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){var i=d.a.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class ae{constructor(e,t,i,n,o,r,s,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=o,this._containsRTL=r,this._containsUnusualLineTerminators=s,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){var t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":t/2<i?"\r\n":"\n"}create(e){var t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(0<this._cr||0<this._lf)||"\n"===t&&(0<this._cr||0<this._crlf)))for(let r=0,s=i.length;r<s;r++){var n=i[r].buffer.replace(/\r\n|\r|\n/g,t),o=Q(n);i[r]=new ee(n,o)}return e=new se(i,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL),{textBuffer:e,disposable:e}}}class le{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){var t;0!==e.length&&(0===this.chunks.length&&s.S(e)&&(this.BOM=s.b,e=e.substr(1)),13===(t=e.charCodeAt(e.length-1))||55296<=t&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1),this._previousChar=t)}_acceptChunk1(e,t){!t&&0===e.length||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){var t=function(e,t){e.length=0;let i=1,n=e[0]=0,o=0,r=0,s=!0;for(let d=0,h=t.length;d<h;d++){var a=t.charCodeAt(d);13===a?d+1<h&&10===t.charCodeAt(d+1)?(r++,e[i++]=d+2,d++):(n++,e[i++]=d+1):10===a?(o++,e[i++]=d+1):s&&9!==a&&(a<32||126<a)&&(s=!1)}var l=new X(Y(e),n,o,r,s);return e.length=0,l}(this._tmpLineStarts,e);this.chunks.push(new ee(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=s.m(e)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=s.n(e))}finish(e=!0){return this._finish(),new ae(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){var e,t;0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar&&(this._hasPreviousChar=!1,(e=this.chunks[this.chunks.length-1]).buffer+=String.fromCharCode(this._previousChar),t=Q(e.buffer),e.lineStarts=t,13===this._previousChar)&&this.cr++}}var de=i("338e"),he=i("e8e3"),ce=i("e1b5"),ue=i("b707"),ge=i("8bf1"),pe=i("e58e"),me=i("30db");class fe{constructor(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}_reset(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)}flush(e){this._reset(e)}get invalidLineStartIndex(){return this._invalidLineStartIndex}_invalidateLine(e){e<this._len&&(this._valid[e]=!1),e<this._invalidLineStartIndex&&(this._invalidLineStartIndex=e)}_isValid(e){return e<this._len&&this._valid[e]}getBeginState(e){return e<this._len?this._beginState[e]:null}_ensureLine(e){for(;e>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)}_insertLines(e,t){if(0!==t){var i=[],n=[];for(let e=0;e<t;e++)i[e]=null,n[e]=!1;this._beginState=he.b(this._beginState,e,i),this._valid=he.b(this._valid,e,n),this._len+=t}}_setValid(e,t){this._ensureLine(e),this._valid[e]=t}_setBeginState(e,t){this._ensureLine(e),this._beginState[e]=t}setEndState(e,t,i){if(this._setValid(t,!0),this._invalidLineStartIndex=t+1,t!==e-1){var n=this.getBeginState(t+1);if(null!==n&&i.equals(n)){let i=t+1;for(;i<e&&this._isValid(i);)i++;this._invalidLineStartIndex=i}else this._setBeginState(t+1,i),this._invalidateLine(t+1)}}setFakeTokens(e){this._setValid(e,!1)}applyEdits(e,t){var i=e.endLineNumber-e.startLineNumber;for(let n=Math.min(i,t);0<=n;n--)this._invalidateLine(e.startLineNumber+n-1);this._acceptDeleteRange(e),this._acceptInsertText(new l.a(e.startLineNumber,e.startColumn),t)}_acceptDeleteRange(e){e.startLineNumber-1>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){e.lineNumber-1>=this._len||this._insertLines(e.lineNumber,t)}}class _e extends r.a{constructor(e){super(),this._isDisposed=!1,this._textModel=e,this._tokenizationStateStore=new fe,this._tokenizationSupport=null,this._register(ue.F.onDidChange(e=>{var t=this._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(t.language)&&(this._resetTokenizationState(),this._textModel.clearTokens())})),this._register(this._textModel.onDidChangeContentFast(e=>{if(e.isFlush)this._resetTokenizationState();else{for(let n=0,o=e.changes.length;n<o;n++){var t=e.changes[n],[i]=Object(oe.f)(t.text);this._tokenizationStateStore.applyEdits(t.range,i)}this._beginBackgroundTokenization()}})),this._register(this._textModel.onDidChangeAttached(()=>{this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeLanguage(()=>{this._resetTokenizationState(),this._textModel.clearTokens()})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}_resetTokenizationState(){var[e,t]=function(e){var t=e.getLanguageIdentifier();let i=e.isTooLargeForTokenization()?null:ue.F.get(t.language),o=null;if(i)try{o=i.getInitialState()}catch(e){Object(n.f)(e),i=null}return[i,o]}(this._textModel);this._tokenizationSupport=e,this._tokenizationStateStore.flush(t),this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&me.j(()=>{this._isDisposed||this._revalidateTokensNow()})}_revalidateTokensNow(){var e=this._textModel.getLineCount(),t=new oe.b,i=pe.a.create(!1);let n=-1;for(;this._hasLinesToTokenize()&&!(1<i.elapsed())&&!((n=this._tokenizeOneInvalidLine(t))>=e););this._beginBackgroundTokenization(),this._textModel.setTokens(t.tokens,n>=e)}tokenizeViewport(e,t){var i=new oe.b;this._tokenizeViewport(i,e,t),this._textModel.setTokens(i.tokens)}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(e){var t=new oe.b;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)}isCheapToTokenize(e){var t;return!this._tokenizationSupport||!((t=this._tokenizationStateStore.invalidLineStartIndex+1)<e)&&(e<t||this._textModel.getLineLength(e)<2048)}_hasLinesToTokenize(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()}_tokenizeOneInvalidLine(e){var t;return this._hasLinesToTokenize()?(t=this._tokenizationStateStore.invalidLineStartIndex+1,this._updateTokensUntilLine(e,t),t):this._textModel.getLineCount()+1}_updateTokensUntilLine(e,t){if(this._tokenizationSupport){var i=this._textModel.getLanguageIdentifier(),n=this._textModel.getLineCount(),o=t-1;for(let t=this._tokenizationStateStore.invalidLineStartIndex;t<=o;t++){var r=this._textModel.getLineContent(t+1),s=this._tokenizationStateStore.getBeginState(t);r=be(i,this._tokenizationSupport,r,!0,s);e.add(t+1,r.tokens),this._tokenizationStateStore.setEndState(n,t,r.endState),t=this._tokenizationStateStore.invalidLineStartIndex-1}}}_tokenizeViewport(e,t,i){if(this._tokenizationSupport&&!(i<=this._tokenizationStateStore.invalidLineStartIndex))if(t<=this._tokenizationStateStore.invalidLineStartIndex)this._updateTokensUntilLine(e,i);else{let l=this._textModel.getLineFirstNonWhitespaceColumn(t);var n=[];let d=null;for(let e=t-1;0<l&&1<=e;e--){var o=this._textModel.getLineFirstNonWhitespaceColumn(e);if(0!==o&&o<l){if(d=this._tokenizationStateStore.getBeginState(e-1))break;n.push(this._textModel.getLineContent(e)),l=o}}d=d||this._tokenizationSupport.getInitialState();var r=this._textModel.getLanguageIdentifier();let h=d;for(let e=n.length-1;0<=e;e--){var s=be(r,this._tokenizationSupport,n[e],!1,h);h=s.endState}for(let n=t;n<=i;n++){var a=this._textModel.getLineContent(n);a=be(r,this._tokenizationSupport,a,!0,h);e.add(n,a.tokens),this._tokenizationStateStore.setFakeTokens(n-1),h=a.endState}}}}function be(e,t,i,o,r){let s=null;if(t)try{s=t.tokenize2(i,o,r.clone(),0)}catch(e){Object(n.f)(e)}return s=s||Object(ge.e)(e.id,i,r,0),ce.a.convertToEndOffset(s.tokens,i.length),s}var ve=i("d093"),Ce=i("70cb"),we=i("045b"),ye=i("1080"),Se=i("ceb8");const Le=new Array;class xe{constructor(e,t){this.items=e,this.additionalItems=t}static create(e,t){if(e<=128&&0===t.length){let i=xe.cache[e];return i||(i=new xe(e,t),xe.cache[e]=i),i}return new xe(e,t)}static getEmpty(){return this.empty}add(e,t){t=t.getKey(e);var i=t>>5;if(0==i)return(e=1<<t|this.items)===this.items?this:xe.create(e,this.additionalItems);i--;for(var n=this.additionalItems.slice(0);n.length<i;)n.push(0);return n[i]|=1<<(31&t),xe.create(this.items,n)}has(e,t){return t=t.getKey(e),e=t>>5,0==e?0!=(this.items&1<<t):0!=((this.additionalItems[--e]||0)&1<<(31&t))}merge(e){var t=this.items|e.items;if(this.additionalItems===Le&&e.additionalItems===Le)return t===this.items?this:t===e.items?e:xe.create(t,Le);var i=new Array;for(let r=0;r<Math.max(this.additionalItems.length,e.additionalItems.length);r++){var n=this.additionalItems[r]||0,o=e.additionalItems[r]||0;i.push(n|o)}return xe.create(t,i)}intersects(e){if(0!=(this.items&e.items))return!0;for(let t=0;t<Math.min(this.additionalItems.length,e.additionalItems.length);t++)if(0!=(this.additionalItems[t]&e.additionalItems[t]))return!0;return!1}}xe.cache=new Array(129),xe.empty=xe.create(0,Le);class ke{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}var De=i("918c");i=i("b7d0");class Ne{constructor(e,t){this.lineCount=e,this.columnCount=t}toString(){return this.lineCount+","+this.columnCount}}const Oe=Math.pow(2,26);function Ee(e,t){return e*Oe+t}function Ie(e){var t=Math.floor(e/Oe);e-=t*Oe;return new Ne(t,e)}function Me(e){return Math.floor(e/Oe)}function Te(e,t){return t<Oe?e+t:e-e%Oe+t}function Ae(e){return Ee(e.lineNumber-1,e.column-1)}function Re(e,t){var i=Math.floor(e/Oe),n=(e=e-i*Oe,Math.floor(t/Oe));t-=n*Oe;return new d.a(i+1,1+e,n+1,1+t)}class Pe{constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}}class Fe{constructor(e,t){this.documentLength=t,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(e=>Be.from(e))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);var t,i,n=this.edits[this.nextEditIdx];n=n?this.translateOldToCur(n.offsetObj):this.documentLength;return(n=n)-(e=e)<=0?0:(t=Math.floor(e/Oe),i=n-(n=Math.floor(n/Oe))*Oe,t===n?Ee(0,i-(e-t*Oe)):Ee(n-t,i))}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?Ee(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):Ee(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){return e=Ie(e),e.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?Ee(e.lineCount-this.deltaOldToNewLineCount,e.columnCount-this.deltaOldToNewColumnCount):Ee(e.lineCount-this.deltaOldToNewLineCount,e.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){var t=this.edits[this.nextEditIdx],i=this.translateOldToCur(t.endOffsetAfterObj);if(!(i<=e))break;this.nextEditIdx++;i=Ie(i);var n=Ie(this.translateOldToCur(t.endOffsetBeforeObj)),o=i.lineCount-n.lineCount;o=(this.deltaOldToNewLineCount+=o,this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0),i=i.columnCount-n.columnCount;this.deltaOldToNewColumnCount=o+i,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}}}class Be{constructor(e,t,i){this.endOffsetBeforeObj=Ie(t),this.endOffsetAfterObj=Ie(Te(e,i)),this.offsetObj=Ie(e)}static from(e){return new Be(e.startOffset,e.endOffset,e.newLength)}}class je{constructor(e){this._length=e}get length(){return this._length}}class We extends je{constructor(e,t,i,n){super(e),this.category=t,this.children=i,this.unopenedBrackets=n}static create(e,t,i,n){var o=function(e,t,i){let n=e.length;return t&&(n=Te(n,t.length)),i&&(n=Te(n,i.length)),n}(t,i,n),r=new Array(1);return r[0]=t,i&&r.push(i),n&&r.push(n),new We(o,e,r,i?i.unopenedBrackets:xe.getEmpty())}get kind(){return 2}get listHeight(){return 0}canBeReused(e,t){return null!==this.closingBracket&&!e.intersects(this.unopenedBrackets)}get closingBracket(){return this.children.length<=1?null:1===this.children[1].kind?this.children[1]||null:this.children[2]||null}clone(){return new We(this.length,this.category,He(this.children),this.unopenedBrackets)}}class Ve extends je{constructor(e,t,i,n){super(e),this.listHeight=t,this._items=i,this._unopenedBrackets=n}static create(e){if(0===e.length)return new Ve(0,0,e,xe.getEmpty());{let t=e[0].length,i=e[0].unopenedBrackets;for(let n=1;n<e.length;n++)t=Te(t,e[n].length),i=i.merge(e[n].unopenedBrackets);return new Ve(t,e[0].listHeight+1,e,i)}}get kind(){return 4}get children(){return this._items}get unopenedBrackets(){return this._unopenedBrackets}canBeReused(e,t){if(0===this._items.length)return!0;if(e.intersects(this.unopenedBrackets))return!1;let i=this;for(;0<i.children.length&&4===i.kind;)i=Object(he.t)(i.children);return i.canBeReused(e,t)}clone(){return new Ve(this.length,this.listHeight,He(this._items),this.unopenedBrackets)}handleChildrenChanged(){var e=this._items;if(0!==e.length){let t=e[0].length,i=e[0].unopenedBrackets;for(let n=1;n<e.length;n++)t=Te(t,e[n].length),i=i.merge(e[n].unopenedBrackets);this._length=t,this._unopenedBrackets=i}}append(e){return e=this._append(e),e?Ve.create([this,e]):this}_append(e){var t;return e.listHeight===this.listHeight?e:(t=4===(t=this._items[this._items.length-1]).kind?t._append(e):e)?3<=this._items.length?(e=this._items.pop(),this.handleChildrenChanged(),Ve.create([e,t])):(this._items.push(t),void this.handleChildrenChanged()):void this.handleChildrenChanged()}prepend(e){return e=this._prepend(e),e?Ve.create([e,this]):this}_prepend(e){if(e.listHeight===this.listHeight)return e;if(4!==this.kind)throw new Error("unexpected");const t=this._items[0];if(e=4===t.kind?t._prepend(e):e,e){if(3<=this._items.length){const t=this._items.shift();return this.handleChildrenChanged(),Ve.create([e,t])}this._items.unshift(e)}this.handleChildrenChanged()}}function He(e){var t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=e[i].clone();return t}const ze=[];class Ue extends je{get kind(){return 0}get listHeight(){return 0}get children(){return ze}get unopenedBrackets(){return xe.getEmpty()}canBeReused(e,t){return!t}clone(){return this}}class Ke extends je{constructor(e){super(e)}static create(e){var t=e,i=Ke.cacheByLength.get(t);return i||(i=new Ke(e),Ke.cacheByLength.set(t,i),i)}get kind(){return 1}get listHeight(){return 0}get children(){return ze}get unopenedBrackets(){return xe.getEmpty()}canBeReused(e,t){return!1}clone(){return this}}Ke.cacheByLength=new Map;class qe extends je{constructor(e,t,i){super(t),this.unopenedBrackets=xe.getEmpty().add(e,i)}get kind(){return 3}get listHeight(){return 0}get children(){return ze}canBeReused(e,t){return!e.intersects(this.unopenedBrackets)}clone(){return this}}class $e{constructor(e,t,i,n,o){this.length=e,this.kind=t,this.category=i,this.languageId=n,this.astNode=o}}class Ge{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new Ze(this.textModel,this.bracketTokens),this._offset=0,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return Ee(this.textBufferLineCount,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=Te(this._offset,e),e=Ie(this._offset),this.reader.setPosition(e.lineCount,e.columnCount)}read(){let e;return(e=this.peeked?(this.didPeek=!1,this.peeked):this.reader.read())&&(this._offset=Te(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class Ze{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset)):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken)return h=this.peekedToken,this.peekedToken=null,this.lineCharOffset+=h.length,h;if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));var e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;i<1e3;){var n=this.lineTokens,o=n.getCount();let h=null;if(this.lineTokenOffset<o){for(var r=n.getMetadata(this.lineTokenOffset);this.lineTokenOffset+1<o&&r===n.getMetadata(this.lineTokenOffset+1);)this.lineTokenOffset++;var s,a,l=0===ue.E.getTokenType(r),d=n.getEndOffset(this.lineTokenOffset);if(l&&d!==this.lineCharOffset&&(l=n.getLanguageId(this.lineTokenOffset),s=this.line.substring(this.lineCharOffset,d),a=(l=this.bracketTokens.getSingleLanguageBracketTokens(l)).regExpGlobal)&&(a.lastIndex=0,a=a.exec(s))&&(h=l.getToken(a[0]))&&(this.lineCharOffset+=a.index),i+=d-this.lineCharOffset,h){if(e===this.lineIdx&&t===this.lineCharOffset)return this.lineCharOffset+=h.length,h;this.peekedToken=h;break}this.lineTokenOffset++,this.lineCharOffset=d}else{if(this.lineIdx===this.textBufferLineCount-1)break;this.lineIdx++,this.lineTokens=this.textModel.getLineTokens(this.lineIdx+1),this.lineTokenOffset=0,this.line=this.lineTokens.getLineContent(),this.lineCharOffset=0,i++}}h=e,c=t,g=this.lineIdx,u=this.lineCharOffset;var h,c,u,g=h!==g?Ee(g-h,u):Ee(0,u-c);return new $e(g,0,-1,-1,new Ue(g))}}class Ye{constructor(e,t){this.text=e,this._offset=0,this.idx=0;var i=t.getRegExpStr()?new RegExp(t.getRegExpStr()+"|\n","g"):null,n=[];let o=0,r=0,s=0,a=0;var l=new Array;for(let f=0;f<60;f++)l.push(new $e(Ee(0,f),0,-1,-1,new Ue(Ee(0,f))));var d=new Array;for(let f=0;f<60;f++)d.push(new $e(Ee(1,f),0,-1,-1,new Ue(Ee(1,f))));if(i)for(i.lastIndex=0;null!==(g=i.exec(e));){var h,c,u=g.index,g=g[0];if("\n"===g)o++,r=u+1;else{if(s!==u){let e;e=a===o?(h=u-s)<l.length?l[h]:(h=Ee(0,h),new $e(h,0,-1,-1,new Ue(h))):(h=o-a,c=u-r,1==h&&c<d.length?d[c]:(c=Ee(h,c),new $e(c,0,-1,-1,new Ue(c)))),n.push(e)}n.push(t.getToken(g)),s=u+g.length,a=o}}var p,m=e.length;s!==m&&(p=a===o?Ee(0,m-s):Ee(o-a,m-r),n.push(new $e(p,0,-1,-1,new Ue(p)))),this.length=Ee(o,m-r),this.tokens=n}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(e){throw new n.a}}class Xe{constructor(){this.hasRegExp=!1,this._regExpGlobal=null,this.map=new Map}static createFromLanguage(e,t){var i=[...Ce.a.getColorizedBracketPairs(e)],n=new Xe;let o=0;for(const r of i)n.addBracket(e,r[0],1,o),n.addBracket(e,r[1],2,o),o++;for(const r of t)o++,n.addBracket(e,r[0],1,o),n.addBracket(e,r[1],2,o);return n}addBracket(e,t,i,n){var o=Ee(0,t.length);this.map.set(t,new $e(o,i,1e3*e+n,e,Ke.create(o)))}getRegExpStr(){var e;return this.isEmpty?null:((e=[...this.map.keys()]).sort(),e.reverse(),e.map(e=>Object(s.t)(e)).join("|"))}get regExpGlobal(){var e;return this.hasRegExp||(e=this.getRegExpStr(),this._regExpGlobal=e?new RegExp(e,"g"):null,this.hasRegExp=!0),this._regExpGlobal}getToken(e){return this.map.get(e)}get isEmpty(){return 0===this.map.size}}class Qe{constructor(e){this.customBracketPairs=e,this.languageIdToBracketTokens=new Map}didLanguageChange(e){var t=this.languageIdToBracketTokens.get(e);return!!t&&(e=Xe.createFromLanguage(e,this.customBracketPairs).getRegExpStr(),t.getRegExpStr()!==e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=Xe.createFromLanguage(e,this.customBracketPairs),this.languageIdToBracketTokens.set(e,t)),t}}function Je(e){if(0===e.length)return null;if(1===e.length)return e[0];if(function(e){var t=e[0].listHeight;for(const i of e)if(i.listHeight!==t)return;return 1}(e)){var t=e;let r=t.length;for(;1<r;){var i=r>>1,n=new Array(i);for(let e=0;e<i;e++){var o=e<<1;n[e]=Ve.create(t.slice(o,3+o===r?r:2+o))}r=i,t=n}return t[0]}{var r=e;let t=r[0],i=r[1];for(let e=2;e<r.length;e++){var s=r[e];i=et(t,i)<=et(i,s)?(t=tt(t,i),s):tt(i,s)}return e=tt(t,i),e}}function et(e,t){return Math.abs(e.listHeight-t.listHeight)}function tt(e,t){return e.listHeight===t.listHeight?Ve.create([e,t]):e.listHeight>t.listHeight?e.append(t):t.prepend(e)}class it{constructor(e){this.lastOffset=0,this.nextNodes=[e],this.offsets=[0],this.idxs=[]}readLongestNodeAt(e,t){if(e<this.lastOffset)throw new Error("Invalid offset");for(this.lastOffset=e;;){var i=nt(this.nextNodes);if(!i)return;var n=nt(this.offsets);if(e<n)return;if(n<e)!(Te(n,i.length)<=e)&&0<i.children.length?(this.nextNodes.push(i.children[0]),this.offsets.push(n),this.idxs.push(0)):this.nextNodeAfterCurrent();else{if(t(i))return this.nextNodeAfterCurrent(),i;if(0===i.children.length)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.children[0]),this.offsets.push(n),this.idxs.push(0)}}}nextNodeAfterCurrent(){for(;;){var e=nt(this.offsets),t=nt(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;var i=nt(this.nextNodes),n=(this.idxs[this.idxs.length-1]++,this.idxs[this.idxs.length-1]);if(n<i.children.length){this.nextNodes.push(i.children[n]),this.offsets.push(Te(e,t.length));break}this.idxs.pop()}}}function nt(e){return 0<e.length?e[e.length-1]:void 0}function ot(e,t,i,n){return new rt(e,t,i,n).parseDocument()}class rt{constructor(e,t,i,n){this.tokenizer=e,this.denseKeyProvider=n,this._itemsConstructed=0,this._itemsFromCache=0,this.oldNodeReader=i?new it(i):void 0,this.positionMapper=new Fe(t,e.length)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(xe.getEmpty());return e||Ve.create([])}parseList(e){for(var t=new Array;;){var i=this.tokenizer.peek();if(!i||2===i.kind&&e.has(i.category,this.denseKeyProvider))break;i=this.parseChild(e),4===i.kind&&0===i.children.length||t.push(i)}return Je(t)}parseChild(e){if(this.oldNodeReader){const i=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(0!==i){var t=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),t=>{var n;return t.length<=i&&(n=Me(t.length)===Me(i),t.canBeReused(e,n))});if(t)return this._itemsFromCache++,this.tokenizer.skip(t.length),t}}this._itemsConstructed++;var i=this.tokenizer.read();switch(i.kind){case 2:return new qe(i.category,i.length,this.denseKeyProvider);case 0:return i.astNode;case 1:var n=e.add(i.category,this.denseKeyProvider),o=(n=this.parseList(n),this.tokenizer.peek());return o&&2===o.kind&&o.category===i.category?(this.tokenizer.read(),We.create(i.category,i.astNode,n,o.astNode)):We.create(i.category,i.astNode,n,null);default:throw new Error("unexpected")}}}class st extends r.a{constructor(e){super(),this.textModel=e,this.didChangeDecorationsEmitter=new o.b,this.cache=this._register(new r.d),this._register(Ce.a.onDidChange(e=>{var t;null!=(t=this.cache.value)&&t.object.didLanguageChange(e.languageIdentifier.id)&&(this.cache.clear(),this.updateCache())})),this._register(e.onDidChangeOptions(e=>{this.cache.clear(),this.updateCache()})),this._register(e.onDidChangeAttached(()=>{this.updateCache()}))}get isDocumentSupported(){return this.textModel.getValueLength()<=5e6}updateCache(){var e,t,i=this.textModel.getOptions().bracketPairColorizationOptions;this.textModel.isAttachedToEditor()&&this.isDocumentSupported&&i.enabled?this.cache.value||(i=new r.b,this.cache.value=(e=i.add(new at(this.textModel)),t=i,{object:e,dispose:()=>null==t?void 0:t.dispose()}),i.add(this.cache.value.object.onDidChangeDecorations(e=>this.didChangeDecorationsEmitter.fire(e))),this.didChangeDecorationsEmitter.fire()):(this.cache.clear(),this.didChangeDecorationsEmitter.fire())}handleContentChanged(e){var t;null!=(t=this.cache.value)&&t.object.handleContentChanged(e)}getDecorationsInRange(e,t,i){var n;return void 0!==t&&(null==(n=this.cache.value)?void 0:n.object.getDecorationsInRange(e,t,i))||[]}getAllDecorations(e,t){var i;return void 0!==e&&(null==(i=this.cache.value)?void 0:i.object.getAllDecorations(e,t))||[]}onDidChangeDecorations(e){return this.didChangeDecorationsEmitter.event(e)}}class at extends r.a{constructor(e){var t;super(),this.textModel=e,this.didChangeDecorationsEmitter=new o.b,this.colorProvider=new dt,this.brackets=new Qe([]),this.denseKeyProvider=new ke,this.onDidChangeDecorations=this.didChangeDecorationsEmitter.event,this._register(e.onBackgroundTokenizationStateChanged(()=>{var t;2===e.backgroundTokenizationState&&(t=void 0===this.initialAstWithoutTokens,this.initialAstWithoutTokens=void 0,t||this.didChangeDecorationsEmitter.fire())})),this._register(e.onDidChangeTokens(({ranges:e})=>{e=e.map(e=>new Pe(Ee(e.fromLineNumber-1,0),Ee(e.toLineNumber,0),Ee(e.toLineNumber-e.fromLineNumber+1,0))),this.astWithTokens=this.parseDocumentFromTextBuffer(e,this.astWithTokens),this.initialAstWithoutTokens||this.didChangeDecorationsEmitter.fire()})),0===e.backgroundTokenizationState?(t=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageIdentifier().id),t=new Ye(this.textModel.getValue(),t),this.initialAstWithoutTokens=ot(t,[],void 0,this.denseKeyProvider),this.astWithTokens=this.initialAstWithoutTokens.clone()):2===e.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0)):1===e.backgroundTokenizationState&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0),this.astWithTokens=this.initialAstWithoutTokens.clone())}didLanguageChange(e){return this.brackets.didLanguageChange(e)}handleContentChanged(e){e=e.changes.map(e=>{var t=d.a.lift(e.range);return new Pe(Ae(t.getStartPosition()),Ae(t.getEndPosition()),(t=e.text,Ee((t=Object(s.Q)(t)).length-1,t[t.length-1].length)))}).reverse(),this.astWithTokens=this.parseDocumentFromTextBuffer(e,this.astWithTokens),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(e,this.initialAstWithoutTokens))}parseDocumentFromTextBuffer(e,t){return ot(new Ge(this.textModel,this.brackets),e,t,this.denseKeyProvider)}getBracketsInRange(e){var t=Ee(e.startLineNumber-1,e.startColumn-1),i=(e=Ee(e.endLineNumber-1,e.endColumn-1),new Array),n=this.initialAstWithoutTokens||this.astWithTokens;return function e(t,i,n,o,r,s,a=0){if(1===t.kind){const e=Re(i,n);s.push(new lt(e,a-1,!1))}else if(3===t.kind){const e=Re(i,n);s.push(new lt(e,a-1,!0))}else{2===t.kind&&a++;for(const l of t.children)n=Te(i,l.length),i<=r&&o<=n&&e(l,i,n,o,r,s,a),i=n}}(n,0,n.length,t,e,i),i}getDecorationsInRange(e,t,i){var n=new Array;for(const o of this.getBracketsInRange(e))n.push({id:"bracket"+o.hash(),options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(o)},ownerId:0,range:o.range});return n}getAllDecorations(e,t){return this.getDecorationsInRange(new d.a(1,1,this.textModel.getLineCount(),1),e,t)}}class lt{constructor(e,t,i){this.range=e,this.level=t,this.isInvalid=i}hash(){return this.range.toString()+"-"+this.level}}class dt{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(e.level)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}function ht(e){var t=new le;return t.acceptChunk(e),t.finish()}function ct(e,t){return("string"==typeof e?ht(e):e).create(t)}Object(i.f)((e,t)=>{var i=[De.c,De.d,De.e,De.f,De.g,De.h],n=new dt,o=(t.addRule(`.monaco-editor .${n.unexpectedClosingBracketClassName} { color: ${e.getColor(De.i)}; }`),i.map(t=>e.getColor(t)).filter(e=>!!e).filter(e=>!e.isTransparent()));for(let s=0;s<30;s++){var r=o[s%o.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(s)} { color: ${r}; }`)}});let ut=0;class gt{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;let e=[],t=0,i=0;for(;;){var n=this._source.read();if(null===n)return this._eos=!0,0===t?null:e.join("");if(0<n.length&&(e[t++]=n,i+=n.length),65536<=i)return e.join("")}}}const pt=()=>{throw new Error("Invalid change accessor")};class mt{constructor(){this._searchCanceledBrand=void 0}}function ft(e){return e instanceof mt?null:e}mt.INSTANCE=new mt;class _t extends r.a{constructor(e,t,i,n=null,r){super(),this._onWillDispose=this._register(new o.b),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Ot(e=>this.handleBeforeFireDecorationsChangedEvent(e))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new o.b),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new o.b),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new o.b),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new o.b),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new o.b),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeContentOrInjectedText=this._register(new o.b),this.onDidChangeContentOrInjectedText=this._onDidChangeContentOrInjectedText.event,this._eventEmitter=this._register(new Et),this._backgroundTokenizationState=0,this._onBackgroundTokenizationStateChanged=this._register(new o.b),this.onBackgroundTokenizationStateChanged=this._onBackgroundTokenizationStateChanged.event,this._register(this._eventEmitter.fastEvent(e=>{this._onDidChangeContentOrInjectedText.fire(e.rawContentChangedEvent)})),ut++,this.id="$model"+ut,this.isForSimpleWidget=t.isForSimpleWidget,this._associatedResource=null==n?a.a.parse("inmemory://model/"+ut):n,this._undoRedoService=r,this._attachedEditorCount=0;var{textBuffer:n,disposable:e}=ct(e,t.defaultEOL);this._buffer=n,this._bufferDisposable=e,this._options=_t.resolveOptions(this._buffer,t),n=this._buffer.getLineCount(),e=this._buffer.getValueLengthInRange(new d.a(1,1,n,this._buffer.getLineLength(n)+1),0);t.largeFileOptimizations?this._isTooLargeForTokenization=e>_t.LARGE_FILE_SIZE_THRESHOLD||n>_t.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=e>_t.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageIdentifier=i||ge.a,this._languageRegistryListener=Ce.a.onDidChange(e=>{e.languageIdentifier.id===this._languageIdentifier.id&&this._onDidChangeLanguageConfiguration.fire({})}),this._instanceId=s.P(ut),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Ct,this._commandManager=new u.a(this,r),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new oe.d,this._tokens2=new oe.e,this._tokenization=new _e(this),this._bracketPairColorizer=this._register(new st(this)),this._decorationProvider=this._bracketPairColorizer,this._register(this._decorationProvider.onDidChangeDecorations(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))}static resolveOptions(e,t){return t.detectIndentation?(e=p(e,t.tabSize,t.insertSpaces),new c.e({tabSize:e.tabSize,indentSize:e.tabSize,insertSpaces:e.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})):new c.e({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}onDidChangeContentFast(e){return this._eventEmitter.fastEvent(t=>e(t.contentChangedEvent))}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}get backgroundTokenizationState(){return this._backgroundTokenizationState}setBackgroundTokenizationState(e){this._backgroundTokenizationState!==e&&(this._backgroundTokenizationState=e,this._onBackgroundTokenizationStateChanged.fire())}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this._isDisposing=!1;var e=new se([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this._bracketPairColorizer.handleContentChanged(t),this._isDisposing||this._eventEmitter.fire(new de.a(e,t))}setValue(e){var t;this._assertNotDisposed(),null!==e&&(({textBuffer:e,disposable:t}=ct(e,this._options.defaultEOL)),this._setValueFromTextBuffer(e,t))}_createContentChanged2(e,t,i,n,o,r,s){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:o,isRedoing:r,isFlush:s}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();var i=this.getFullModelRange(),n=(i=this.getValueLengthInRange(i),this.getLineCount()),o=this.getLineMaxColumn(n);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new Ct,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new de.d([new de.f],this._versionId,!1,!1),this._createContentChanged2(new d.a(1,1,n,o),0,i,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();var t,i,n;e=1===e?"\r\n":"\n";this._buffer.getEOL()!==e&&(t=this.getFullModelRange(),t=this.getValueLengthInRange(t),i=this.getLineCount(),n=this.getLineMaxColumn(i),this._onBeforeEOLChange(),this._buffer.setEOL(e),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new de.d([new de.e],this._versionId,!1,!1),this._createContentChanged2(new d.a(1,1,i,n),0,t,this.getValue(),!1,!1,!1)))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let s=0,a=t.length;s<a;s++){var i=t[s],n=i.range,o=i.cachedAbsoluteStart-i.start,r=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn);n=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);i.cachedAbsoluteStart=r,i.cachedAbsoluteEnd=n,i.cachedVersionId=e,i.start=r-o,i.end=n-o,T(i)}}onBeforeAttached(){this._attachedEditorCount++,1===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)}onBeforeDetached(){this._attachedEditorCount--,0===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)}isAttachedToEditor(){return 0<this._attachedEditorCount}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;var i=this._buffer.getLineCount();for(let o=1;o<=i;o++){var n=this._buffer.getLineLength(o);1e4<=n?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();var t=(void 0!==e.tabSize?e:this._options).tabSize,i=(void 0!==e.indentSize?e:this._options).indentSize,n=(void 0!==e.insertSpaces?e:this._options).insertSpaces,o=(void 0!==e.trimAutoWhitespace?e:this._options).trimAutoWhitespace;e=void 0!==e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,t=new c.e({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o,bracketPairColorizationOptions:e});this._options.equals(t)||(i=this._options.createChangeEvent(t),this._options=t,this._onDidChangeOptions.fire(i))}detectIndentation(e,t){this._assertNotDisposed(),t=p(this._buffer,t,e),this.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.tabSize})}static _normalizeIndentationFromWhitespace(e,t,i){let n=0;for(let s=0;s<e.length;s++)"\t"===e.charAt(s)?n+=t:n++;let o="";if(!i){var r=Math.floor(n/t);n%=t;for(let e=0;e<r;e++)o+="\t"}for(let s=0;s<n;s++)o+=" ";return o}static normalizeIndentation(e,t,i){let n=s.u(e);return-1===n&&(n=e.length),_t._normalizeIndentationFromWhitespace(e.substring(0,n),t,i)+e.substring(n)}normalizeIndentation(e){return this._assertNotDisposed(),_t.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){var t=this.findMatches(s.a.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(e=>({range:e.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){return this._assertNotDisposed(),e=this._validatePosition(e.lineNumber,e.column,0),this._buffer.getOffsetAt(e.lineNumber,e.column)}getPositionAt(e){return this._assertNotDisposed(),e=Math.min(this._buffer.getLength(),Math.max(0,e)),this._buffer.getPositionAt(e)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();var i=this.getFullModelRange();i=this.getValueInRange(i,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new gt(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();var i=this.getFullModelRange();i=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){var t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let o=Math.floor("number"!=typeof i||isNaN(i)?1:i),r=Math.floor("number"!=typeof n||isNaN(n)?1:n);o<1?(o=1,r=1):o>t?(o=t,r=this.getLineMaxColumn(o)):r<=1?r=1:(s=this.getLineMaxColumn(o),r>=s&&(r=s));var s=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!=typeof s||isNaN(s)?1:s),c=Math.floor("number"!=typeof a||isNaN(a)?1:a);return l<1?(l=1,c=1):l>t?(l=t,c=this.getLineMaxColumn(l)):c<=1?c=1:(t=this.getLineMaxColumn(l),c>=t&&(c=t)),i===o&&n===r&&s===l&&a===c&&e instanceof d.a&&!(e instanceof h.a)?e:new d.a(o,r,l,c)}_isValidPosition(e,t,i){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(this._buffer.getLineCount()<e)return!1;if(1!==t){if(this.getLineMaxColumn(e)<t)return!1;if(1===i&&(i=this._buffer.getLineCharCode(e,t-2),s.E(i)))return!1}return!0}_validatePosition(e,t,i){e=Math.floor("number"!=typeof e||isNaN(e)?1:e),t=Math.floor("number"!=typeof t||isNaN(t)?1:t);var n=this._buffer.getLineCount();return e<1?new l.a(1,1):n<e?new l.a(n,this.getLineMaxColumn(n)):t<=1?new l.a(e,1):(n=this.getLineMaxColumn(e),n<=t?new l.a(e,n):1===i&&(n=this._buffer.getLineCharCode(e,t-2),s.E(n))?new l.a(e,t-1):new l.a(e,t))}validatePosition(e){return this._assertNotDisposed(),e instanceof l.a&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){var i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber;e=e.endColumn;return!!this._isValidPosition(i,n,0)&&!(!this._isValidPosition(o,e,0)||1===t&&(t=1<n?this._buffer.getLineCharCode(i,n-2):0,i=1<e&&e<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,e-2):0,n=s.E(t),o=s.E(i),n||o))}validateRange(e){var t,i,n,o,r;return this._assertNotDisposed(),e instanceof d.a&&!(e instanceof h.a)&&this._isValidRange(e,1)?e:(i=this._validatePosition(e.startLineNumber,e.startColumn,0),e=this._validatePosition(e.endLineNumber,e.endColumn,0),t=i.lineNumber,i=i.column,n=e.lineNumber,e=e.column,o=1<i?this._buffer.getLineCharCode(t,i-2):0,r=1<e&&e<=this._buffer.getLineLength(n)?this._buffer.getLineCharCode(n,e-2):0,o=s.E(o),r=s.E(r),o||r?t===n&&i===e?new d.a(t,i-1,n,e-1):o&&r?new d.a(t,i-1,n,e+1):o?new d.a(t,i-1,n,e):new d.a(t,i,n,e+1):new d.a(t,i,n,e))}modifyPosition(e,t){return this._assertNotDisposed(),e=this.getOffsetAt(e)+t,this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,e)))}getFullModelRange(){this._assertNotDisposed();var e=this.getLineCount();return new d.a(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,o,r,s=999){this._assertNotDisposed();let a=null;a=(a=null===(a=null!==t&&(t=Array.isArray(t)?t:[t]).every(e=>d.a.isIRange(e))?t.map(e=>this.validateRange(e)):a)?[this.getFullModelRange()]:a).sort((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn);const l=[];let h;if(l.push(a.reduce((e,t)=>d.a.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t))),!i&&e.indexOf("\n")<0){const t=new G.a(e,i,n,o).parseSearchRequest();if(!t)return[];h=e=>this.findMatchesLineByLine(e,t,r,s)}else h=t=>G.c.findMatches(this,new G.a(e,i,n,o),t,r,s);return l.map(h).reduce((e,t)=>e.concat(t),[])}findNextMatch(e,t,i,n,o,r){this._assertNotDisposed();var s,a,l;t=this.validatePosition(t);return!i&&e.indexOf("\n")<0?(s=new G.a(e,i,n,o).parseSearchRequest())&&(a=this.getLineCount(),a=new d.a(t.lineNumber,t.column,a,this.getLineMaxColumn(a)),l=this.findMatchesLineByLine(a,s,r,1),G.c.findNextMatch(this,new G.a(e,i,n,o),t,r),0<l.length||(a=new d.a(1,1,t.lineNumber,this.getLineMaxColumn(t.lineNumber)),0<(l=this.findMatchesLineByLine(a,s,r,1)).length))?l[0]:null:G.c.findNextMatch(this,new G.a(e,i,n,o),t,r)}findPreviousMatch(e,t,i,n,o,r){return this._assertNotDisposed(),t=this.validatePosition(t),G.c.findPreviousMatch(this,new G.a(e,i,n,o),t,r)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){var t="\n"===this.getEOL()?0:1;if(t!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof c.f?e:new c.f(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){var t=[];for(let i=0,n=e.length;i<n;i++)t[i]=this._validateEditOperation(e[i]);return t}pushEditOperations(e,t,i){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),i)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,i){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){var n=t.map(e=>({range:this.validateRange(e.range),text:e.text}));let i=!0;if(e)for(let t=0,a=e.length;t<a;t++){var o=e[t];let a=!1;for(let e=0,t=n.length;e<t;e++){var r=n[e].range,s=r.startLineNumber>o.endLineNumber;r=o.startLineNumber>r.endLineNumber;if(!s&&!r){a=!0;break}}if(!a){i=!1;break}}if(i)for(let e=0,o=this._trimAutoWhitespaceLines.length;e<o;e++){var a,l=this._trimAutoWhitespaceLines[e],h=this.getLineMaxColumn(l);let i=!0;for(let e=0,t=n.length;e<t;e++){var u=n[e].range,g=n[e].text;if(!(l<u.startLineNumber||l>u.endLineNumber)&&!(l===u.startLineNumber&&u.startColumn===h&&u.isEmpty()&&g&&0<g.length&&"\n"===g.charAt(0)||l===u.startLineNumber&&1===u.startColumn&&u.isEmpty()&&g&&0<g.length&&"\n"===g.charAt(g.length-1))){i=!1;break}}i&&(a=new d.a(l,1,l,h),t.push(new c.f(null,a,null,!1,!1,!1)))}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i)}_applyUndo(e,t,i,n){e=e.map(e=>{var t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new d.a(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}),this._applyUndoRedoEdits(e,t,!0,!1,i,n)}_applyRedo(e,t,i,n){e=e.map(e=>{var t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new d.a(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}),this._applyUndoRedoEdits(e,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,o,r){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(r),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();var i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){var i=this._buffer.getLineCount(),n=(e=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),this._buffer.getLineCount()),o=e.changes;if(this._trimAutoWhitespaceLines=e.trimAutoWhitespaceLineNumbers,0!==o.length){for(let t=0,i=o.length;t<i;t++){var r=o[t],[s,a,d]=Object(oe.f)(r.text);this._tokens.acceptEdit(r.range,s,a),this._tokens2.acceptEdit(r.range,s,a,d,0<r.text.length?r.text.charCodeAt(0):0),this._decorationsTree.acceptReplace(r.rangeOffset,r.rangeLength,r.text.length,r.forceMoveMarkers)}var h=[];this._increaseVersionId();let e=i;for(let t=0,i=o.length;t<i;t++){var c=o[t],[u]=Object(oe.f)(c.text),g=(this._onDidChangeDecorations.fire(),c.range.startLineNumber),p=(c=c.range.endLineNumber,c-g),m=Math.min(p,u),f=u-p,_=n-e-f+g,b=_+u,v=(b=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new l.a(_,1)),this.getOffsetAt(new l.a(b,this.getLineMaxColumn(b))),0),b=de.b.fromDecorations(b),new he.a(b));for(let e=m;0<=e;e--){var C=g+e;const t=_+e;v.takeFromEndWhile(e=>e.lineNumber>t);var w=v.takeFromEndWhile(e=>e.lineNumber===t);h.push(new de.g(C,this.getLineContent(t),w))}if(m<p&&h.push(new de.h(g+m+1,c)),m<u){var y=new he.a(b),S=(p=g+m,u-m),L=n-e-S+p+1,x=[],k=[];for(let e=0;e<S;e++){let t=L+e;k[e]=this.getLineContent(t),y.takeWhile(e=>e.lineNumber<t),x[e]=y.takeWhile(e=>e.lineNumber===t)}h.push(new de.i(p+1,g+u,k,x))}e+=f}this._emitContentChangedEvent(new de.d(h,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:o,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===e.reverseEdits?void 0:e.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){null!==e&&0!==e.size&&(e=[...e].map(e=>new de.g(e,this.getLineContent(e),this._getInjectedTextInLine(e))),this._onDidChangeContentOrInjectedText.fire(new de.c(e)))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){var i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Nt(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let o=null;try{o=t(i)}catch(t){Object(n.f)(t)}return i.addDecoration=pt,i.changeDecoration=pt,i.changeDecorationOptions=pt,i.removeDecoration=pt,i.deltaDecorations=pt,o}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),0===(e=e||[]).length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){var n,o,r;e=e?this._decorations[e]:null;return e?t?(n=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),r=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn),this._decorationsTree.delete(e),e.reset(this.getVersionId(),o,r,n),e.setOptions(Dt[i]),this._decorationsTree.insert(e),e.id):(this._decorationsTree.delete(e),delete this._decorations[e.id],null):t?this._deltaDecorationsImpl(0,[],[{range:t,options:Dt[i]}])[0]:null}removeAllDecorationsWithOwnerId(e){if(!this._isDisposed){var t=this._decorationsTree.collectNodesFromOwner(e);for(let e=0,n=t.length;e<n;e++){var i=t[e];this._decorationsTree.delete(i),delete this._decorations[i.id]}}}getDecorationOptions(e){return e=this._decorations[e],e?e.options:null}getDecorationRange(e){return e=this._decorations[e],e?this._decorationsTree.getNodeRange(this,e):null}getLineDecorations(e,t=0,i=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,n=!1){var o=this.getLineCount();e=Math.min(o,Math.max(1,e)),o=Math.min(o,Math.max(1,t)),t=this.getLineMaxColumn(o),e=new d.a(e,1,o,t),o=this._getDecorationsInRange(e,i,n);return o.push(...this._decorationProvider.getDecorationsInRange(e,i,n)),o}getDecorationsInRange(e,t=0,i=!1){e=this.validateRange(e);var n=this._getDecorationsInRange(e,t,i);return n.push(...this._decorationProvider.getDecorationsInRange(e,t,i)),n}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){var t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e);t=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return de.b.fromDecorations(t).filter(t=>t.lineNumber===e)}getAllDecorations(e=0,t=!1){var i=this._decorationsTree.getAll(this,e,t,!1);return i.push(...this._decorationProvider.getAllDecorations(e,t)),i}_getDecorationsInRange(e,t,i){var n=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn);e=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,n,e,t,i)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){var i,n=this._decorations[e];n&&(n.options.after&&(i=this.getDecorationRange(e),this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber)),n.options.before&&(i=this.getDecorationRange(e),this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber)),e=this._validateRangeRelaxedNoAllocations(t),i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),t=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),this._decorationsTree.delete(n),n.reset(this.getVersionId(),i,t,e),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber),n.options.before)&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}_changeDecorationOptionsImpl(e,t){var i,n,o;e=this._decorations[e];e&&(i=!(!e.options.overviewRuler||!e.options.overviewRuler.color),n=!(!t.overviewRuler||!t.overviewRuler.color),this._onDidChangeDecorations.checkAffectedAndFire(e.options),this._onDidChangeDecorations.checkAffectedAndFire(t),(e.options.after||t.after)&&(o=this._decorationsTree.getNodeRange(this,e),this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.endLineNumber)),(e.options.before||t.before)&&(o=this._decorationsTree.getNodeRange(this,e),this._onDidChangeDecorations.recordLineAffectedByInjectedText(o.startLineNumber)),i!=n?(this._decorationsTree.delete(e),e.setOptions(t),this._decorationsTree.insert(e)):e.setOptions(t))}_deltaDecorationsImpl(e,t,i){var n=this.getVersionId(),o=t.length;let r=0;var s=i.length;let a=0;for(var l,d,h,c,u,g,p=new Array(s);r<o||a<s;){let m=null;if(r<o){for(;!(m=this._decorations[t[r++]])&&r<o;);m&&(m.options.after&&(l=this._decorationsTree.getNodeRange(this,m),this._onDidChangeDecorations.recordLineAffectedByInjectedText(l.endLineNumber)),m.options.before&&(l=this._decorationsTree.getNodeRange(this,m),this._onDidChangeDecorations.recordLineAffectedByInjectedText(l.startLineNumber)),this._decorationsTree.delete(m),this._onDidChangeDecorations.checkAffectedAndFire(m.options))}a<s?(m||(d=++this._lastDecorationId,d=this._instanceId+";"+d,m=new S(d,0,0),this._decorations[d]=m),d=i[a],h=this._validateRangeRelaxedNoAllocations(d.range),c=Nt(d.options),u=this._buffer.getOffsetAt(h.startLineNumber,h.startColumn),g=this._buffer.getOffsetAt(h.endLineNumber,h.endColumn),m.ownerId=e,m.reset(n,u,g,h),m.setOptions(c),m.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(h.endLineNumber),m.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(h.startLineNumber),this._onDidChangeDecorations.checkAffectedAndFire(c),this._decorationsTree.insert(m),p[a]=m.id,a++):m&&delete this._decorations[m.id]}return p}setTokens(e,t=!1){if(0!==e.length){var i=[];for(let t=0,r=e.length;t<r;t++){var n=e[t];let r=0,s=0,a=!1;for(let e=0,t=n.tokens.length;e<t;e++){var o=n.startLineNumber+e;a?(this._tokens.setTokens(this._languageIdentifier.id,o-1,this._buffer.getLineLength(o),n.tokens[e],!1),s=o):this._tokens.setTokens(this._languageIdentifier.id,o-1,this._buffer.getLineLength(o),n.tokens[e],!0)&&(a=!0,r=o,s=o)}a&&i.push({fromLineNumber:r,toLineNumber:s})}0<i.length&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:i})}this.setBackgroundTokenizationState(t?2:1)}setSemanticTokens(e,t){this._tokens2.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasCompleteSemanticTokens(){return this._tokens2.isComplete()}hasSomeSemanticTokens(){return!this._tokens2.isEmpty()}setPartialSemanticTokens(e,t){this.hasCompleteSemanticTokens()||(e=this._tokens2.setPartial(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:e.startLineNumber,toLineNumber:e.endLineNumber}]}))}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._isDisposing||this._onDidChangeTokens.fire(e)}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){var t=this.getLineContent(e);t=this._tokens.getTokens(this._languageIdentifier.id,e-1,t);return this._tokens2.addSemanticTokens(e,t)}getLanguageIdentifier(){return this._languageIdentifier}getModeId(){return this._languageIdentifier.language}setMode(e){var t;this._languageIdentifier.id!==e.id&&(t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language},this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({}))}getLanguageIdAtPosition(e,t){return e=this.validatePosition(new l.a(e,t)),t=this.getLineTokens(e.lineNumber),t.getLanguageId(t.findTokenIndexAtOffset(e.column-1))}getWordAtPosition(e){this._assertNotDisposed();var t=this.validatePosition(e),i=this.getLineContent(t.lineNumber),n=this._getLineTokens(t.lineNumber),o=n.findTokenIndexAtOffset(t.column-1),[r,s]=_t._findLanguageBoundaries(n,o),s=Object(ve.d)(t.column,Ce.a.getWordDefinition(n.getLanguageId(o)),i.substring(r,s),r);if(s&&s.startColumn<=e.column&&e.column<=s.endColumn)return s;if(0<o&&r===t.column-1){var[s,r]=_t._findLanguageBoundaries(n,o-1);t=Object(ve.d)(t.column,Ce.a.getWordDefinition(n.getLanguageId(o-1)),i.substring(s,r),s);if(t&&t.startColumn<=e.column&&e.column<=t.endColumn)return t}return null}static _findLanguageBoundaries(e,t){var i=e.getLanguageId(t);let n=0;for(let r=t;0<=r&&e.getLanguageId(r)===i;r--)n=e.getStartOffset(r);let o=e.getLineContent().length;for(let r=t,s=e.getCount();r<s&&e.getLanguageId(r)===i;r++)o=e.getEndOffset(r);return[n,o]}getWordUntilPosition(e){var t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}findMatchingBracketUp(e,t){e=e.toLowerCase(),t=this.validatePosition(t);var i=this._getLineTokens(t.lineNumber);i=i.getLanguageId(i.findTokenIndexAtOffset(t.column-1)),i=Ce.a.getBracketsSupport(i);return(i=i&&i.textIsBracket[e])?ft(this._findMatchingBracketUp(i,t,null)):null}matchBracket(e){return this._matchBracket(this.validatePosition(e))}_establishBracketSearchOffsets(e,t,i,n){var o=t.getCount(),r=t.getLanguageId(n);let s=Math.max(0,e.column-1-i.maxBracketLength);for(let h=n-1;0<=h;h--){var a=t.getEndOffset(h);if(a<=s)break;if(Object(we.b)(t.getStandardTokenType(h))||t.getLanguageId(h)!==r){s=a;break}}let l=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let h=n+1;h<o;h++){var d=t.getStartOffset(h);if(d>=l)break;if(Object(we.b)(t.getStandardTokenType(h))||t.getLanguageId(h)!==r){l=d;break}}return{searchStartOffset:s,searchEndOffset:l}}_matchBracket(e){var t=e.lineNumber,i=this._getLineTokens(t),n=this._buffer.getLineContent(t),o=i.findTokenIndexAtOffset(e.column-1);if(!(o<0)){var r=Ce.a.getBracketsSupport(i.getLanguageId(o));if(r&&!Object(we.b)(i.getStandardTokenType(o))){let{searchStartOffset:l,searchEndOffset:d}=this._establishBracketSearchOffsets(e,i,r,o),h=null;for(;;){var s=ye.a.findNextBracketInRange(r.forwardRegex,t,n,l,d);if(!s)break;if(s.startColumn<=e.column&&e.column<=s.endColumn){var a=n.substring(s.startColumn-1,s.endColumn-1).toLowerCase();a=this._matchFoundBracket(s,r.textIsBracket[a],r.textIsOpenBracket[a],null);if(a){if(a instanceof mt)return null;h=a}}l=s.endColumn-1}if(h)return h}if(0<o&&i.getStartOffset(o)===e.column-1){o=o-1;var l=Ce.a.getBracketsSupport(i.getLanguageId(o));if(l&&!Object(we.b)(i.getStandardTokenType(o))){var{searchStartOffset:i,searchEndOffset:o}=this._establishBracketSearchOffsets(e,i,l,o);i=ye.a.findPrevBracketInRange(l.reversedRegex,t,n,i,o);if(i&&i.startColumn<=e.column&&e.column<=i.endColumn&&(o=n.substring(i.startColumn-1,i.endColumn-1).toLowerCase(),i=this._matchFoundBracket(i,l.textIsBracket[o],l.textIsOpenBracket[o],null),i))return i instanceof mt?null:i}}}return null}_matchFoundBracket(e,t,i,n){return t&&(i=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n))?i instanceof mt?i:[e,i]:null}_findMatchingBracketUp(e,t,i){var n=e.languageIdentifier.id;const o=e.reversedRegex;let r=-1,s=0;var a=(t,n,a,l)=>{for(;;){if(i&&++s%100==0&&!i())return mt.INSTANCE;var d=ye.a.findPrevBracketInRange(o,t,n,a,l);if(!d)break;var h=n.substring(d.startColumn-1,d.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return d;l=d.startColumn-1}return null};for(let g=t.lineNumber;1<=g;g--){var l=this._getLineTokens(g),d=l.getCount(),h=this._buffer.getLineContent(g);let e=d-1,i=h.length,o=h.length,r=(g===t.lineNumber&&(e=l.findTokenIndexAtOffset(t.column-1),i=t.column-1,o=t.column-1),!0);for(;0<=e;e--){var c=l.getLanguageId(e)===n&&!Object(we.b)(l.getStandardTokenType(e));if(c)r?i=l.getStartOffset(e):(i=l.getStartOffset(e),o=l.getEndOffset(e));else if(r&&i!==o){var u=a(g,h,i,o);if(u)return u}r=c}if(r&&i!==o&&(d=a(g,h,i,o),d))return d}return null}_findMatchingBracketDown(e,t,i){var n=e.languageIdentifier.id;const o=e.forwardRegex;let r=1,s=0;var a=(t,n,a,l)=>{for(;;){if(i&&++s%100==0&&!i())return mt.INSTANCE;var d=ye.a.findNextBracketInRange(o,t,n,a,l);if(!d)break;var h=n.substring(d.startColumn-1,d.endColumn-1).toLowerCase();if(e.isOpen(h)?r++:e.isClose(h)&&r--,0===r)return d;a=d.endColumn-1}return null},l=this.getLineCount();for(let m=t.lineNumber;m<=l;m++){var d=this._getLineTokens(m),h=d.getCount(),c=this._buffer.getLineContent(m);let e=0,i=0,o=0,r=(m===t.lineNumber&&(e=d.findTokenIndexAtOffset(t.column-1),i=t.column-1,o=t.column-1),!0);for(;e<h;e++){var u=d.getLanguageId(e)===n&&!Object(we.b)(d.getStandardTokenType(e));if(u)r||(i=d.getStartOffset(e)),o=d.getEndOffset(e);else if(r&&i!==o){var g=a(m,c,i,o);if(g)return g}r=u}if(r&&i!==o){var p=a(m,c,i,o);if(p)return p}}return null}findPrevBracket(e){var t=this.validatePosition(e);let i=-1,n=null;for(let d=t.lineNumber;1<=d;d--){var o=this._getLineTokens(d),r=o.getCount(),s=this._buffer.getLineContent(d);let e=r-1,h=s.length,c=s.length,u=(d===t.lineNumber&&(e=o.findTokenIndexAtOffset(t.column-1),h=t.column-1,c=t.column-1,r=o.getLanguageId(e),i!==r)&&(i=r,n=Ce.a.getBracketsSupport(i)),!0);for(;0<=e;e--){var a=o.getLanguageId(e);if(i!==a){if(n&&u&&h!==c){var l=ye.a.findPrevBracketInRange(n.reversedRegex,d,s,h,c);if(l)return this._toFoundBracket(n,l);u=!1}i=a,n=Ce.a.getBracketsSupport(i)}if(l=!!n&&!Object(we.b)(o.getStandardTokenType(e)),l)u?h=o.getStartOffset(e):(h=o.getStartOffset(e),c=o.getEndOffset(e));else if(n&&u&&h!==c&&(a=ye.a.findPrevBracketInRange(n.reversedRegex,d,s,h,c),a))return this._toFoundBracket(n,a);u=l}if(n&&u&&h!==c&&(r=ye.a.findPrevBracketInRange(n.reversedRegex,d,s,h,c),r))return this._toFoundBracket(n,r)}return null}findNextBracket(e){var t=this.validatePosition(e),i=this.getLineCount();let n=-1,o=null;for(let c=t.lineNumber;c<=i;c++){var r=this._getLineTokens(c),s=r.getCount(),a=this._buffer.getLineContent(c);let e=0,i=0,u=0,g=(c===t.lineNumber&&(e=r.findTokenIndexAtOffset(t.column-1),i=t.column-1,u=t.column-1,h=r.getLanguageId(e),n!==h)&&(n=h,o=Ce.a.getBracketsSupport(n)),!0);for(;e<s;e++){var l=r.getLanguageId(e);if(n!==l){if(o&&g&&i!==u){var d=ye.a.findNextBracketInRange(o.forwardRegex,c,a,i,u);if(d)return this._toFoundBracket(o,d);g=!1}n=l,o=Ce.a.getBracketsSupport(n)}if(d=!!o&&!Object(we.b)(r.getStandardTokenType(e)),d)g||(i=r.getStartOffset(e)),u=r.getEndOffset(e);else if(o&&g&&i!==u&&(l=ye.a.findNextBracketInRange(o.forwardRegex,c,a,i,u),l))return this._toFoundBracket(o,l);g=d}if(o&&g&&i!==u){var h=ye.a.findNextBracketInRange(o.forwardRegex,c,a,i,u);if(h)return this._toFoundBracket(o,h)}}return null}findEnclosingBrackets(e,t){let i;if(void 0===t)i=null;else{const e=Date.now();i=()=>Date.now()-e<=t}var n=this.validatePosition(e),o=this.getLineCount();const r=new Map;let s=[];var a=(e,t)=>{if(!r.has(e)){var i=[];for(let e=0,n=t?t.brackets.length:0;e<n;e++)i[e]=0;r.set(e,i)}s=r.get(e)};let l=0;var d=(e,t,n,o,r)=>{for(;;){if(i&&++l%100==0&&!i())return mt.INSTANCE;var a=ye.a.findNextBracketInRange(e.forwardRegex,t,n,o,r);if(!a)break;var d=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),h=e.textIsBracket[d];if(h&&(h.isOpen(d)?s[h.index]++:h.isClose(d)&&s[h.index]--,-1===s[h.index]))return this._matchFoundBracket(a,h,!1,i);o=a.endColumn-1}return null};let h=-1,c=null;for(let b=n.lineNumber;b<=o;b++){var u=this._getLineTokens(b),g=u.getCount(),p=this._buffer.getLineContent(b);let e=0,t=0,i=0,o=(b===n.lineNumber&&(e=u.findTokenIndexAtOffset(n.column-1),t=n.column-1,i=n.column-1,_=u.getLanguageId(e),h!==_)&&(h=_,c=Ce.a.getBracketsSupport(h),a(h,c)),!0);for(;e<g;e++){var m=u.getLanguageId(e);if(h!==m){if(c&&o&&t!==i){var f=d(c,b,p,t,i);if(f)return ft(f);o=!1}h=m,c=Ce.a.getBracketsSupport(h),a(h,c)}if(f=!!c&&!Object(we.b)(u.getStandardTokenType(e)),f)o||(t=u.getStartOffset(e)),i=u.getEndOffset(e);else if(c&&o&&t!==i&&(m=d(c,b,p,t,i),m))return ft(m);o=f}if(c&&o&&t!==i){var _=d(c,b,p,t,i);if(_)return ft(_)}}return null}_toFoundBracket(e,t){if(!t)return null;let i=this.getValueInRange(t);i=i.toLowerCase();var n=e.textIsBracket[i];return n?{range:t,open:n.open,close:n.close,isOpen:e.textIsOpenBracket[i]}:null}static computeIndentLevel(e,t){let i=0,n=0;for(var o=e.length;n<o;){var r=e.charCodeAt(n);if(32===r)i++;else{if(9!==r)break;i=i-i%t+t}n++}return n===o?-1:i}_computeIndentLevel(e){return _t.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)}getActiveIndentGuide(e,t,i){this._assertNotDisposed();const n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for lineNumber");var o=Ce.a.getFoldingRules(this._languageIdentifier.id),r=Boolean(o&&o.offSide);let s=-2,a=-1,l=-2,d=-1;var h=e=>{if(-1!==s&&(-2===s||s>e-1)){s=-1,a=-1;for(let i=e-2;0<=i;i--){var t=this._computeIndentLevel(i);if(0<=t){s=i,a=t;break}}}if(-2===l){l=-1,d=-1;for(let t=e;t<n;t++){var i=this._computeIndentLevel(t);if(0<=i){l=t,d=i;break}}}};let c=-2,u=-1,g=-2,p=-1;var m=e=>{if(-2===c){c=-1,u=-1;for(let i=e-2;0<=i;i--){var t=this._computeIndentLevel(i);if(0<=t){c=i,u=t;break}}}if(-1!==g&&(-2===g||g<e-1)){g=-1,p=-1;for(let t=e;t<n;t++){var i=this._computeIndentLevel(t);if(0<=i){g=t,p=i;break}}}};let f=0,_=!0,b=0,v=!0,C=0,w=0;for(let x=0;_||v;x++){var y,S=e-x,L=e+x;1<x&&(S<1||S<t)&&(_=!1),1<x&&(L>n||i<L)&&(v=!1),5e4<x&&(_=!1,v=!1);let o=-1,s=(_&&(y=this._computeIndentLevel(S-1),o=0<=y?(l=S-1,d=y,Math.ceil(y/this._options.indentSize)):(h(S),this._getIndentLevelForWhitespaceLine(r,a,d))),-1);if(v&&(y=this._computeIndentLevel(L-1),s=0<=y?(c=L-1,u=y,Math.ceil(y/this._options.indentSize)):(m(L),this._getIndentLevelForWhitespaceLine(r,u,p))),0===x)w=o;else{if(1===x){if(L<=n&&0<=s&&w+1===s){_=!1,f=L,b=L,C=s;continue}if(1<=S&&0<=o&&o-1===w){v=!1,f=S,b=S,C=o;continue}if(f=e,b=e,0===(C=w))return{startLineNumber:f,endLineNumber:b,indent:C}}_&&(o>=C?f=S:_=!1),v&&(s>=C?b=L:v=!1)}}return{startLineNumber:f,endLineNumber:b,indent:C}}getLinesIndentGuides(e,t){this._assertNotDisposed();var i=this.getLineCount();if(e<1||i<e)throw new Error("Illegal value for startLineNumber");if(t<1||i<t)throw new Error("Illegal value for endLineNumber");var n=Ce.a.getFoldingRules(this._languageIdentifier.id),o=Boolean(n&&n.offSide),r=new Array(t-e+1);let s=-2,a=-1,l=-2,d=-1;for(let p=e;p<=t;p++){var h=p-e,c=this._computeIndentLevel(p-1);if(0<=c)s=p-1,a=c,r[h]=Math.ceil(c/this._options.indentSize);else{if(-2===s){s=-1,a=-1;for(let e=p-2;0<=e;e--){var u=this._computeIndentLevel(e);if(0<=u){s=e,a=u;break}}}if(-1!==l&&(-2===l||l<p-1)){l=-1,d=-1;for(let e=p;e<i;e++){var g=this._computeIndentLevel(e);if(0<=g){l=e,d=g;break}}}r[h]=this._getIndentLevelForWhitespaceLine(o,a,d)}}return r}_getIndentLevelForWhitespaceLine(e,t,i){return-1===t||-1===i?0:t<i?1+Math.floor(t/this._options.indentSize):t===i||e?Math.ceil(i/this._options.indentSize):1+Math.floor(i/this._options.indentSize)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}}function bt(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function vt(e){return e.options.after||e.options.before}_t.MODEL_SYNC_LIMIT=52428800,_t.LARGE_FILE_SIZE_THRESHOLD=20971520,_t.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,_t.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:t.d.tabSize,indentSize:t.d.indentSize,insertSpaces:t.d.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:t.d.trimAutoWhitespace,largeFileOptimizations:t.d.largeFileOptimizations,bracketPairColorizationOptions:t.d.bracketPairColorizationOptions};class Ct{constructor(){this._decorationsTree0=new x,this._decorationsTree1=new x,this._injectedTextDecorationsTree=new x}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,n,o){var r=e.getVersionId();t=this._intervalSearch(t,i,n,o,r);return this._ensureNodesHaveRanges(e,t)}_intervalSearch(e,t,i,n,o){var r=this._decorationsTree0.intervalSearch(e,t,i,n,o),s=this._decorationsTree1.intervalSearch(e,t,i,n,o);e=this._injectedTextDecorationsTree.intervalSearch(e,t,i,n,o);return r.concat(s).concat(e)}getInjectedTextInInterval(e,t,i,n){var o=e.getVersionId();t=this._injectedTextDecorationsTree.intervalSearch(t,i,n,!1,o);return this._ensureNodesHaveRanges(e,t)}getAllInjectedText(e,t){var i=e.getVersionId();t=this._injectedTextDecorationsTree.search(t,!1,i);return this._ensureNodesHaveRanges(e,t)}getAll(e,t,i,n){var o=e.getVersionId();t=this._search(t,i,n,o);return this._ensureNodesHaveRanges(e,t)}_search(e,t,i,n){var o;return i?this._decorationsTree1.search(e,t,n):(i=this._decorationsTree0.search(e,t,n),o=this._decorationsTree1.search(e,t,n),e=this._injectedTextDecorationsTree.search(e,t,n),i.concat(o).concat(e))}collectNodesFromOwner(e){var t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e);e=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(e)}collectNodesPostOrder(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){(vt(e)?this._injectedTextDecorationsTree:bt(e)?this._decorationsTree1:this._decorationsTree0).insert(e)}delete(e){(vt(e)?this._injectedTextDecorationsTree:bt(e)?this._decorationsTree1:this._decorationsTree0).delete(e)}getNodeRange(e,t){var i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){(vt(e)?this._injectedTextDecorationsTree:bt(e)?this._decorationsTree1:this._decorationsTree0).resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function wt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class yt{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class St extends yt{constructor(e){super(e),this._resolvedColor=null,this.position="number"==typeof e.position?e.position:c.d.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){return"string"==typeof e?e:(t=e?t.getColor(e.id):null)?t.toString():""}}class Lt extends yt{constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"==typeof e?Se.a.fromHex(e):t.getColor(e.id)}}class xt{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1}static from(e){return e instanceof xt?e:new xt(e)}}class kt{constructor(e){this.description=e.description,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?wt(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new St(e.overviewRuler):null,this.minimap=e.minimap?new Lt(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?wt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?wt(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?wt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?wt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?wt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?wt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?wt(e.afterContentClassName):null,this.after=e.after?xt.from(e.after):null,this.before=e.before?xt.from(e.before):null}static register(e){return new kt(e)}static createDynamic(e){return new kt(e)}}kt.EMPTY=kt.register({description:"empty"});const Dt=[kt.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),kt.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),kt.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),kt.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Nt(e){return e instanceof kt?e:kt.createDynamic(e)}class Ot extends r.a{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new o.b),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;this._deferredCnt--,0===this._deferredCnt&&(this._shouldFire&&(this.handleBeforeFire(this._affectedInjectedTextLines),e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler},this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(e)),null!=(e=this._affectedInjectedTextLines)&&e.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!(!e.minimap||!e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!(!e.overviewRuler||!e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class Et extends r.a{constructor(){super(),this._fastEmitter=this._register(new o.b),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new o.b),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent&&(this._deferredEvent.rawContentChangedEvent.resultingSelection=e,e=this._deferredEvent,this._deferredEvent=null,this._fastEmitter.fire(e),this._slowEmitter.fire(e))}fire(e){0<this._deferredCnt?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}},b589:function(e,t,i){"use strict";i.d(t,"c",(function(){return n})),i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return l}));var n,o=i("30db"),r=i("6d8e");(t=n=n||{}).inMemory="inmemory",t.vscode="vscode",t.internal="private",t.walkThrough="walkThrough",t.walkThroughSnippet="walkThroughSnippet",t.http="http",t.https="https",t.file="file",t.mailto="mailto",t.untitled="untitled",t.data="data",t.command="command",t.vscodeRemote="vscode-remote",t.vscodeRemoteResource="vscode-remote-resource",t.userData="vscode-userdata",t.vscodeCustomEditor="vscode-custom-editor",t.vscodeNotebook="vscode-notebook",t.vscodeNotebookCell="vscode-notebook-cell",t.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",t.vscodeNotebookCellOutput="vscode-notebook-cell-output",t.vscodeInteractive="vscode-interactive",t.vscodeInteractiveInput="vscode-interactive-input",t.vscodeSettings="vscode-settings",t.vscodeWorkspaceTrust="vscode-workspace-trust",t.vscodeTerminal="vscode-terminal",t.webviewPanel="webview-panel",t.vscodeWebview="vscode-webview",t.extension="extension",t.vscodeFileResource="vscode-file",t.tmp="tmp";const s=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)return this._delegate(e);var t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&(i=`[${i}]`);var s=this._ports[t];t=this._connectionTokens[t];let a="path="+encodeURIComponent(e.path);return"string"==typeof t&&(a+="&tkn="+encodeURIComponent(t)),r.a.from({scheme:o.h?this._preferredWebSchema:n.vscodeRemoteResource,authority:i+":"+s,path:"/vscode-remote-resource",query:a})}};class a{asBrowserUri(e,t){return e=this.toUri(e,t),e.scheme===n.vscodeRemote?s.rewrite(e):e.scheme===n.file&&(o.g||"function"==typeof o.b.importScripts&&o.b.origin===n.vscodeFileResource+"://"+a.FALLBACK_AUTHORITY)?e.with({scheme:n.vscodeFileResource,authority:e.authority||a.FALLBACK_AUTHORITY,query:null,fragment:null}):e}toUri(e,t){return r.a.isUri(e)?e:r.a.parse(t.toUrl(e))}}a.FALLBACK_AUTHORITY="vscode-app";const l=new a},b707:function(e,t,i){"use strict";i.d(t,"u",(function(){return u})),i.d(t,"E",(function(){return g})),i.d(t,"I",(function(){return p})),i.d(t,"H",(function(){return m})),i.d(t,"s",(function(){return n})),i.d(t,"C",(function(){return o})),i.d(t,"h",(function(){return r})),i.d(t,"J",(function(){return f})),i.d(t,"D",(function(){return s})),i.d(t,"n",(function(){return _})),i.d(t,"y",(function(){return b})),i.d(t,"z",(function(){return v})),i.d(t,"d",(function(){return C})),i.d(t,"t",(function(){return w})),i.d(t,"B",(function(){return y})),i.d(t,"p",(function(){return S})),i.d(t,"m",(function(){return L})),i.d(t,"i",(function(){return x})),i.d(t,"w",(function(){return k})),i.d(t,"f",(function(){return D})),i.d(t,"e",(function(){return N})),i.d(t,"q",(function(){return O})),i.d(t,"G",(function(){return E})),i.d(t,"b",(function(){return I})),i.d(t,"r",(function(){return M})),i.d(t,"a",(function(){return T})),i.d(t,"g",(function(){return A})),i.d(t,"j",(function(){return R})),i.d(t,"x",(function(){return P})),i.d(t,"v",(function(){return F})),i.d(t,"c",(function(){return B})),i.d(t,"A",(function(){return j})),i.d(t,"o",(function(){return W})),i.d(t,"l",(function(){return V})),i.d(t,"k",(function(){return H})),i.d(t,"F",(function(){return z}));var n,o,r,s,a=i("6d8e"),l=i("6a89"),d=(t=i("6a5d"),i("308f")),h=i("a666"),c=i("561a");class u{constructor(e,t){this.language=e,this.id=t}}class g{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(1792&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>14}static getBackground(e){return(4286578688&e)>>>23}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);return e=this.getFontStyle(e),1&e&&(t+=" mtki"),2&e&&(t+=" mtkb"),4&e&&(t+=" mtku"),t}static getInlineStyleFromMetadata(e,t){var i=this.getForeground(e);e=this.getFontStyle(e);let n=`color: ${t[i]};`;return 1&e&&(n+="font-style: italic;"),2&e&&(n+="font-weight: bold;"),4&e&&(n+="text-decoration: underline;"),n}}const p=function(){let e=Object.create(null);return e[0]="symbol-method",e[1]="symbol-function",e[2]="symbol-constructor",e[3]="symbol-field",e[4]="symbol-variable",e[5]="symbol-class",e[6]="symbol-struct",e[7]="symbol-interface",e[8]="symbol-module",e[9]="symbol-property",e[10]="symbol-event",e[11]="symbol-operator",e[12]="symbol-unit",e[13]="symbol-value",e[14]="symbol-constant",e[15]="symbol-enum",e[16]="symbol-enum-member",e[17]="symbol-keyword",e[27]="symbol-snippet",e[18]="symbol-text",e[19]="symbol-color",e[20]="symbol-file",e[21]="symbol-reference",e[22]="symbol-customcolor",e[23]="symbol-folder",e[24]="symbol-type-parameter",e[25]="account",e[26]="issues",function(t){t=e[t];let i=t&&c.d.get(t);return(i=i||c.b.symbolProperty).classNames}}();let m=function(){let e=Object.create(null);return e.method=0,e.function=1,e.constructor=2,e.field=3,e.variable=4,e.class=5,e.struct=6,e.interface=7,e.module=8,e.property=9,e.event=10,e.operator=11,e.unit=12,e.value=13,e.constant=14,e.enum=15,e["enum-member"]=16,e.enumMember=16,e.keyword=17,e.snippet=27,e.text=18,e.color=19,e.file=20,e.reference=21,e.customcolor=22,e.folder=23,e["type-parameter"]=24,e.typeParameter=24,e.account=25,e.issue=26,function(t,i){let n=e[t];return void 0!==n||i?n:9}}();function f(e){return e&&a.a.isUri(e.uri)&&l.a.isIRange(e.range)&&(l.a.isIRange(e.originSelectionRange)||l.a.isIRange(e.targetSelectionRange))}(i=n=n||{})[i.Automatic=0]="Automatic",i[i.Explicit=1]="Explicit",(i=o=o||{})[i.Invoke=1]="Invoke",i[i.TriggerCharacter=2]="TriggerCharacter",i[i.ContentChange=3]="ContentChange",(i=r=r||{})[i.Text=0]="Text",i[i.Read=1]="Read",i[i.Write=2]="Write";{i=s=s||{};const e=new Map,t=(e.set("file",0),e.set("module",1),e.set("namespace",2),e.set("package",3),e.set("class",4),e.set("method",5),e.set("property",6),e.set("field",7),e.set("constructor",8),e.set("enum",9),e.set("interface",10),e.set("function",11),e.set("variable",12),e.set("constant",13),e.set("string",14),e.set("number",15),e.set("boolean",16),e.set("array",17),e.set("object",18),e.set("key",19),e.set("null",20),e.set("enum-member",21),e.set("struct",22),e.set("event",23),e.set("operator",24),e.set("type-parameter",25),new Map);t.set(0,"file"),t.set(1,"module"),t.set(2,"namespace"),t.set(3,"package"),t.set(4,"class"),t.set(5,"method"),t.set(6,"property"),t.set(7,"field"),t.set(8,"constructor"),t.set(9,"enum"),t.set(10,"interface"),t.set(11,"function"),t.set(12,"variable"),t.set(13,"constant"),t.set(14,"string"),t.set(15,"number"),t.set(16,"boolean"),t.set(17,"array"),t.set(18,"object"),t.set(19,"key"),t.set(20,"null"),t.set(21,"enum-member"),t.set(22,"struct"),t.set(23,"event"),t.set(24,"operator"),t.set(25,"type-parameter"),i.fromString=function(t){return e.get(t)},i.toString=function(e){return t.get(e)},i.toCssClassName=function(e,i){let n=(e=t.get(e))&&c.d.get("symbol-"+e);return(i?"inline":"block")+" "+(n=n||c.b.symbolProperty).classNames}}class _{constructor(e){this.value=e}}_.Comment=new _("comment"),_.Imports=new _("imports"),_.Region=new _("region");const b=new t.a,v=new t.a,C=new t.a,w=new t.a,y=new t.a,S=new t.a,L=new t.a,x=new t.a,k=new t.a,D=new t.a,N=new t.a,O=new t.a,E=new t.a,I=new t.a,M=new t.a,T=new t.a,A=new t.a,R=new t.a,P=new t.a,F=new t.a,B=new t.a,j=new t.a,W=new t.a,V=new t.a,H=new t.a,z=new class{constructor(){this._map=new Map,this._promises=new Map,this._onDidChange=new d.b,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._map.set(e,t),this.fire([e]),Object(h.i)(()=>{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))})}registerPromise(e,t){let i=null,n=!1;return this._promises.set(e,t.then(t=>{this._promises.delete(e),!n&&t&&(i=this.register(e,t))})),Object(h.i)(()=>{n=!0,i&&i.dispose()})}getPromise(e){var t=this.get(e);return t?Promise.resolve(t):(t=this._promises.get(e))?t.then(t=>this.get(e)):null}get(e){return this._map.get(e)||null}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&2<this._colorMap.length?this._colorMap[2]:null}}},b78f:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0a0f");const n=Object(t.c)("textModelService")},b7d0:function(e,t,i){"use strict";i.d(t,"b",(function(){return h})),i.d(t,"g",(function(){return c})),i.d(t,"d",(function(){return o})),i.d(t,"e",(function(){return u})),i.d(t,"a",(function(){return g})),i.d(t,"f",(function(){return m})),i.d(t,"c",(function(){return f}));t=i("561a");var n,o,r=i("308f"),s=i("a666"),a=i("0a0f"),l=i("89cd"),d=i("9c41");const h=Object(a.c)("themeService");function c(e){return{id:e}}(n||(n={})).isThemeColor=function(e){return e&&"object"==typeof e&&"string"==typeof e.id};{(i=o=o||{}).isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||n.isThemeColor(e.color))};const e=new RegExp(`^\\$\\((${t.a.iconNameExpression}(?:${t.a.iconModifierExpression})?)\\)$`);i.fromString=function(t){if(t=e.exec(t))return[,t]=t,{id:t}},i.modify=function(e,t){let i=e.id;return-1!==(e=i.lastIndexOf("~"))&&(i=i.substring(0,e)),{id:i=t?i+"~"+t:i}},i.isEqual=function(e,t){return e.id===t.id&&(null==(e=e.color)?void 0:e.id)===(null==(e=t.color)?void 0:e.id)},i.asThemeIcon=function(e,t){return{id:e.id,color:t?{id:t}:void 0}},i.asClassNameArray=t.a.asClassNameArray,i.asClassName=t.a.asClassName,i.asCSSSelector=t.a.asCSSSelector}function u(e){switch(e){case d.a.DARK:return"vs-dark";case d.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const g={ThemingContribution:"base.contributions.theming"};let p=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.b}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Object(s.i)(()=>{var t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}};function m(e){return p.onColorThemeChange(e)}l.a.add(g.ThemingContribution,p);class f extends s.a{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(e=>this.onThemeChange(e)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},b800:function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return l})),i.d(t,"c",(function(){return p}));class n{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return 48<=e&&e<=57}static isVariableCharacter(e){return 95===e||97<=e&&e<=122||65<=e&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var e=this.pos;let t,i=0,o=this.value.charCodeAt(e);if("number"==typeof(t=n._table[o]))return this.pos+=1,{type:t,pos:e,len:1};if(n.isDigitCharacter(o))for(t=8;i+=1,o=this.value.charCodeAt(e+i),n.isDigitCharacter(o););else if(n.isVariableCharacter(o))for(t=9;o=this.value.charCodeAt(e+ ++i),n.isVariableCharacter(o)||n.isDigitCharacter(o););else for(t=10;i+=1,o=this.value.charCodeAt(e+i),!isNaN(o)&&void 0===n._table[o]&&!n.isDigitCharacter(o)&&!n.isVariableCharacter(o););return this.pos+=i,{type:t,pos:e,len:i}}}n._table={[36]:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class o{constructor(){this._children=[]}appendChild(e){return e instanceof r&&this._children[this._children.length-1]instanceof r?this._children[this._children.length-1].value+=e.value:(e.parent=this)._children.push(e),this}replace(e,t){var i=e["parent"],n=(e=i.children.indexOf(e),i.children.slice(0));n.splice(e,1,...t),i._children=n,function e(t,i){for(const n of t)n.parent=i,e(n.children,n)}(t,i)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class r extends o{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new r(this.value)}}class s extends o{}class a extends s{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0}clone(){var e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}class l extends o{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof r&&(e.parent=this).options.push(e),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){var e=new l;return this.options.forEach(e.appendChild,e),e}}class d extends o{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some(e=>e instanceof h&&Boolean(e.elseValue))?this._replace([]):n}_replace(e){let t="";for(const n of this._children){var i;n instanceof h?(i=e[n.index]||"",i=n.resolve(i),t+=i):t+=n.toString()}return t}toString(){return""}clone(){var e=new d;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(e=>e.clone()),e}}class h extends o{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"==typeof this.ifValue?this.ifValue:Boolean(e)||"string"!=typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){var t=e.match(/[a-z0-9]+/gi);return t?t.map(e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join(""):e}_toCamelCase(e){var t=e.match(/[a-z0-9]+/gi);return t?t.map((e,t)=>0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join(""):e}clone(){return new h(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class c extends s{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return void 0!==(t=this.transform?this.transform.resolve(t||""):t)&&(this._children=[new r(t)],!0)}clone(){var e=new c(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}function u(e,t){for(var i=[...e];0<i.length;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends o{get placeholderInfo(){if(!this._placeholders){let e,t=[];this.walk((function(i){return i instanceof a&&(t.push(i),e=!e||e.index<i.index?i:e),!0})),this._placeholders={all:t,last:e}}return this._placeholders}get placeholders(){var e=this.placeholderInfo["all"];return e}offset(e){let t=0,i=!1;return this.walk(n=>n===e?!(i=!0):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return u([e],e=>(t+=e.len(),!0)),t}enclosingPlaceholders(e){var t=[];let i=e["parent"];for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof c&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){var e=new g;return this._children=this.children.map(e=>e.clone()),e}walk(e){u(this.children,e)}}class p{constructor(){this._scanner=new n,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){this._scanner.text(e),this._token=this._scanner.next();for(var n=new g;this._parse(n););const o=new Map,r=[];let s=0;n.walk(e=>(e instanceof a&&(s+=1,e.isFinalTabstop?o.set(0,void 0):!o.has(e.index)&&0<e.children.length?o.set(e.index,e.children):r.push(e)),!0));for(const h of r){var l=o.get(h.index);if(l){var d=new a(h.index);d.transform=h.transform;for(const e of l)d.appendChild(e.clone());n.replace(h,[d])}}return i=i||0<s&&t,!o.has(0)&&i&&n.appendChild(new a(0)),n}_accept(e,t){return(void 0===e||this._token.type===e)&&(e=!t||this._scanner.tokenText(this._token),this._token=this._scanner.next(),e)}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){for(var t=this._token;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){var i=this._scanner.next();if(0!==i.type&&4!==i.type&&5!==i.type)return!1}this._token=this._scanner.next()}return t=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1"),this._token=this._scanner.next(),t}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){var t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new r(t)),!0)}_parseTabstopOrVariableName(e){let t;var i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new c(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;var i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);var n=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new r("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else{if(!(0<n.index&&this._accept(7)))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(var o=new l;;){if(this._parseChoiceElement(o)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(o),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}}_parseChoiceElement(e){for(var t=this._token,i=[];2!==this._token.type&&7!==this._token.type;){let e;if(!(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0)))return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new r(i.join(""))),!0)}_parseComplexVariable(e){let t;var i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);var n=new c(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new r("${"+t+":")),n.children.forEach(e.appendChild,e),!0}}_parseTransform(e){var t,i,n=new d;let o="",s="";for(;;){if(this._accept(6))break;if(t=this._accept(5,!0))t=this._accept(6,!0)||t,o+=t;else{if(14===this._token.type)return!1;o+=this._accept(void 0,!0)}}for(;;){if(this._accept(6))break;if(i=this._accept(5,!0))i=this._accept(5,!0)||this._accept(6,!0)||i,n.appendChild(new r(i));else if(!this._parseFormatString(n)&&!this._parseAnything(n))return!1}for(;;){if(this._accept(4))break;if(14===this._token.type)return!1;s+=this._accept(void 0,!0)}try{n.regexp=new RegExp(o,s)}catch(e){return!1}return e.transform=n,!0}_parseFormatString(e){var t=this._token;if(this._accept(0)){let r=!1;this._accept(3)&&(r=!0);var i=this._accept(8,!0);if(i){if(!r)return e.appendChild(new h(Number(i))),!0;if(this._accept(4))return e.appendChild(new h(Number(i))),!0;if(this._accept(1)){if(this._accept(6))return(n=this._accept(9,!0))&&this._accept(4)?(e.appendChild(new h(Number(i),n)),!0):(this._backTo(t),!1);if(this._accept(11)){var n=this._until(4);if(n)return e.appendChild(new h(Number(i),void 0,n,void 0)),!0}else if(this._accept(12)){if(n=this._until(4),n)return e.appendChild(new h(Number(i),void 0,void 0,n)),!0}else if(this._accept(13)){if(n=this._until(1),n){var o=this._until(4);if(o)return e.appendChild(new h(Number(i),void 0,n,o)),!0}}else if(n=this._until(4),n)return e.appendChild(new h(Number(i),void 0,void 0,n)),!0}}this._backTo(t)}return!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new r(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},b835:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));t=i("0f70");var n=i("fe45");i=i("30db");let o=new Array(230),r=new Array(112);for(let h=0;h<r.length;h++)r[h]=-1;function s(e,t){o[e]=t,r[t]=e}s(3,7),s(8,1),s(9,2),s(13,3),s(16,4),s(17,5),s(18,6),s(19,7),s(20,8),s(27,9),s(32,10),s(33,11),s(34,12),s(35,13),s(36,14),s(37,15),s(38,16),s(39,17),s(40,18),s(45,19),s(46,20),s(48,21),s(49,22),s(50,23),s(51,24),s(52,25),s(53,26),s(54,27),s(55,28),s(56,29),s(57,30),s(65,31),s(66,32),s(67,33),s(68,34),s(69,35),s(70,36),s(71,37),s(72,38),s(73,39),s(74,40),s(75,41),s(76,42),s(77,43),s(78,44),s(79,45),s(80,46),s(81,47),s(82,48),s(83,49),s(84,50),s(85,51),s(86,52),s(87,53),s(88,54),s(89,55),s(90,56),s(93,58),s(96,93),s(97,94),s(98,95),s(99,96),s(100,97),s(101,98),s(102,99),s(103,100),s(104,101),s(105,102),s(106,103),s(107,104),s(108,105),s(109,106),s(110,107),s(111,108),s(112,59),s(113,60),s(114,61),s(115,62),s(116,63),s(117,64),s(118,65),s(119,66),s(120,67),s(121,68),s(122,69),s(123,70),s(124,71),s(125,72),s(126,73),s(127,74),s(128,75),s(129,76),s(130,77),s(144,78),s(145,79),s(186,80),s(187,81),s(188,82),s(189,83),s(190,84),s(191,85),s(192,86),s(193,110),s(194,111),s(219,87),s(220,88),s(221,89),s(222,90),s(223,91),s(226,92),s(229,109),t.g?(s(59,80),s(107,81),s(109,83),i.f&&s(224,57)):t.j&&(s(91,57),i.f?s(93,57):s(92,57));const a=i.f?256:2048,l=i.f?2048:256;class d{constructor(e){var t,i;this._standardKeyboardEventBrand=!0,this.browserEvent=e,this.target=e.target,this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,this.keyCode=(t=e).charCode?(i=String.fromCharCode(t.charCode).toUpperCase(),n.b.fromString(i)):o[t.keyCode]||0,this.code=e.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0,t=(5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),0);return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|e}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new n.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},b968:function(e,t,i){},b9b4:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"c",(function(){return u})),i.d(t,"b",(function(){return g}));var n,o=i("9768"),r=i("b589"),s=i("32b8"),a=i("82c9"),l=i("3742");(t=n=n||{}).text="text/plain",t.binary="application/octet-stream",t.unknown="application/unknown",t.markdown="text/markdown";let d=[],h=[],c=[];function u(e,t=!1){const i={id:(e=e).id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?Object(o.b)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&0<=e.filepattern.indexOf(s.e.sep)};d.push(i),(i.userConfigured?c:h).push(i),t&&!i.userConfigured&&d.forEach(e=>{e.mime===i.mime||e.userConfigured||(i.extension&&e.extension,i.filename&&e.filename,i.filepattern&&e.filepattern,i.firstline&&e.firstline)})}function g(e,t){let i;if(e)switch(e.scheme){case r.c.file:i=e.fsPath;break;case r.c.data:var o=a.a.parseMetaData(e);i=o.get(a.a.META_DATA_LABEL);break;default:i=e.path}if(i){i=i.toLowerCase();var u=Object(s.a)(i),g=p(i,u,c);if(g)return[g,n.text];if(g=p(i,u,h),g)return[g,n.text];if(t&&(u=function(e){if(Object(l.S)(e)&&(e=e.substr(1)),0<e.length)for(let n=d.length-1;0<=n;n--){var t=d[n];if(t.firstline){var i=e.match(t.firstline);if(i&&0<i.length)return t.mime}}return null}(t),u))return[u,n.text]}return[n.unknown]}function p(e,t,i){var n;let o=null,r=null,s=null;for(let d=i.length-1;0<=d;d--){var a,l=i[d];if(t===l.filenameLowercase){o=l;break}l.filepattern&&(!r||l.filepattern.length>r.filepattern.length)&&(a=l.filepatternOnPath?e:t,null!=(n=l.filepatternLowercase))&&n.call(l,a)&&(r=l),l.extension&&(!s||l.extension.length>s.extension.length)&&t.endsWith(l.extensionLowercase)&&(s=l)}return o?o.mime:r?r.mime:s?s.mime:null}},b9db:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("561a");function o(e){let t=e.definition;for(;t instanceof n.b;)t=t.definition;return`.codicon-${e.id}:before { content: '${t.fontCharacter}'; }`}i("1e03"),i("f2d2")},b9f8:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return i.e("chunk-2d2138c7").then(i.bind(null,"acc2"))}})},ba77:function(e,t,i){},bc02:function(e,t,i){},bc04:function(e,t,i){"use strict";i.d(t,"a",(function(){return p})),i.d(t,"b",(function(){return m})),i.d(t,"d",(function(){return f})),i.d(t,"c",(function(){return _}));var n=i("3742"),o=i("6a89"),r=(t=i("2504"),i("a666")),s=i("b2cc"),a=i("4fc3"),l=i("db88"),d=i("0a0f"),h=i("f5f3");i=i("dff7");const c=Object(d.c)("IEditorCancelService"),u=new a.c("cancellableOperation",!1,Object(i.a)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));Object(h.b)(c,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,n=this._tokens.get(e);return n||(n=e.invokeWithinContext(e=>({key:u.bindTo(e.get(a.b)),tokens:new l.a})),this._tokens.set(e,n)),n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(e){var t;e=this._tokens.get(e);e&&(t=e.tokens.pop())&&(t.cancel(),e.key.set(!e.tokens.isEmpty()))}},!0);class g extends t.b{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(t=>t.get(c).add(e,this))}dispose(){this._unregister(),super.dispose()}}Object(s.k)(new class extends s.c{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:u})}runEditorCommand(e,t){e.get(c).cancel(t)}});class p{constructor(e,t){this.flags=t,0!=(1&this.flags)?(t=e.getModel(),this.modelVersionId=t?n.v("{0}#{1}",t.uri.toString(),t.getVersionId()):null):this.modelVersionId=null,0!=(4&this.flags)?this.position=e.getPosition():this.position=null,0!=(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!=(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){return e instanceof p&&this.modelVersionId===(e=e).modelVersionId&&this.scrollLeft===e.scrollLeft&&this.scrollTop===e.scrollTop&&!(!this.position&&e.position||this.position&&!e.position||this.position&&e.position&&!this.position.equals(e.position)||!this.selection&&e.selection||this.selection&&!e.selection||this.selection&&e.selection&&!this.selection.equalsRange(e.selection))}validate(e){return this._equals(new p(e,this.flags))}}class m extends g{constructor(e,t,i,n){super(e,n),this._listener=new r.b,4&t&&this._listener.add(e.onDidChangeCursorPosition(e=>{i&&o.a.containsPosition(i,e.position)||this.cancel()})),2&t&&this._listener.add(e.onDidChangeCursorSelection(e=>{i&&o.a.containsRange(i,e.selection)||this.cancel()})),8&t&&this._listener.add(e.onDidScrollChange(e=>this.cancel())),1&t&&(this._listener.add(e.onDidChangeModel(e=>this.cancel())),this._listener.add(e.onDidChangeModelContent(e=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class f extends t.b{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}class _{constructor(e,t,i){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=i}static capture(e){let t=null,i=0;var n;return 0!==e.getScrollTop()&&0<(n=e.getVisibleRanges()).length&&(t=n[0].getStartPosition(),n=e.getTopForPosition(t.lineNumber,t.column),i=e.getScrollTop()-n),new _(t,i,e.getPosition())}restore(e){var t;this._visiblePosition&&(t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column),e.setScrollTop(t+this._visiblePositionScrollDelta))}restoreRelativeVerticalPositionOfCursor(e){var t=e.getPosition();this._cursorPosition&&t&&(t=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber),e.setScrollTop(e.getScrollTop()+t))}}},bc61:function(e,t,i){"use strict";i.r(t),i.d(t,"getReindentEditOperations",(function(){return f})),i.d(t,"IndentationToSpacesAction",(function(){return _})),i.d(t,"IndentationToTabsAction",(function(){return b})),i.d(t,"ChangeIndentationSizeAction",(function(){return v})),i.d(t,"IndentUsingTabs",(function(){return C})),i.d(t,"IndentUsingSpaces",(function(){return w})),i.d(t,"DetectIndentation",(function(){return y})),i.d(t,"ReindentLinesAction",(function(){return S})),i.d(t,"ReindentSelectedLinesAction",(function(){return L})),i.d(t,"AutoIndentOnPasteCommand",(function(){return x})),i.d(t,"AutoIndentOnPaste",(function(){return k})),i.d(t,"IndentationToSpacesCommand",(function(){return N})),i.d(t,"IndentationToTabsCommand",(function(){return O}));var n=i("dff7"),o=i("a666"),r=i("3742"),s=(t=i("b2cc"),i("ccde")),a=i("d3f4"),l=i("6a89"),d=i("8025"),h=i("c101"),c=i("b57f"),u=i("70cb"),g=i("1b69"),p=i("580d"),m=i("66bd");function f(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];var o=u.a.getIndentationRules(e.getLanguageIdentifier().id);if(!o)return[];for(i=Math.min(i,e.getLineCount());t<=i&&o.unIndentedLinePattern;){var l=e.getLineContent(t);if(!o.unIndentedLinePattern.test(l))break;t++}if(i-1<t)return[];const{tabSize:h,indentSize:g,insertSpaces:p}=e.getOptions();var m=(e,t)=>s.a.shiftIndent(e,e.length+(t=t||1),h,g,p),f=(e,t)=>s.a.unshiftIndent(e,e.length+(t=t||1),h,g,p),_=[];let b;var v=e.getLineContent(t);let C=v,w=(null!=n?(b=n,n=r.x(v),C=b+v.substring(n.length),o.decreaseIndentPattern&&o.decreaseIndentPattern.test(C)&&(b=f(b),C=b+v.substring(n.length)),v!==C&&_.push(a.a.replaceMove(new d.a(t,1,t,n.length+1),c.b.normalizeIndentation(b,g,p)))):b=r.x(v),b);o.increaseIndentPattern&&o.increaseIndentPattern.test(C)?(w=m(w),b=m(b)):o.indentNextLinePattern&&o.indentNextLinePattern.test(C)&&(w=m(w));for(let s=++t;s<=i;s++){var y=e.getLineContent(s),S=r.x(y),L=w+y.substring(S.length);o.decreaseIndentPattern&&o.decreaseIndentPattern.test(L)&&(w=f(w),b=f(b)),S!==w&&_.push(a.a.replaceMove(new d.a(s,1,s,S.length+1),c.b.normalizeIndentation(w,g,p))),o.unIndentedLinePattern&&o.unIndentedLinePattern.test(y)||(w=o.increaseIndentPattern&&o.increaseIndentPattern.test(L)?b=m(b):o.indentNextLinePattern&&o.indentNextLinePattern.test(L)?m(w):b)}return _}class _ extends t.b{constructor(){super({id:_.ID,label:n.a("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:h.a.writable})}run(e,t){var i,n,o=t.getModel();o&&(i=o.getOptions(),n=t.getSelection())&&(n=new N(n,i.tabSize),t.pushUndoStop(),t.executeCommands(this.id,[n]),t.pushUndoStop(),o.updateOptions({insertSpaces:!0}))}}_.ID="editor.action.indentationToSpaces";class b extends t.b{constructor(){super({id:b.ID,label:n.a("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:h.a.writable})}run(e,t){var i,n,o=t.getModel();o&&(i=o.getOptions(),n=t.getSelection())&&(n=new O(n,i.tabSize),t.pushUndoStop(),t.executeCommands(this.id,[n]),t.pushUndoStop(),o.updateOptions({insertSpaces:!1}))}}b.ID="editor.action.indentationToTabs";class v extends t.b{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const i=e.get(m.a);e=e.get(g.a);let o=t.getModel();if(o){let t=e.getCreationOptions(o.getLanguageIdentifier().language,o.uri,o.isForSimpleWidget);const r=[1,2,3,4,5,6,7,8].map(e=>({id:e.toString(),label:e.toString(),description:e===t.tabSize?n.a("configuredTabSize","Configured Tab Size"):void 0})),s=Math.min(o.getOptions().tabSize-1,7);setTimeout(()=>{i.pick(r,{placeHolder:n.a({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:r[s]}).then(e=>{e&&o&&!o.isDisposed()&&o.updateOptions({tabSize:parseInt(e.label,10),insertSpaces:this.insertSpaces})})},50)}}}class C extends v{constructor(){super(!1,{id:C.ID,label:n.a("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}C.ID="editor.action.indentUsingTabs";class w extends v{constructor(){super(!0,{id:w.ID,label:n.a("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}w.ID="editor.action.indentUsingSpaces";class y extends t.b{constructor(){super({id:y.ID,label:n.a("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){e=e.get(g.a),t=t.getModel();t&&(e=e.getCreationOptions(t.getLanguageIdentifier().language,t.uri,t.isForSimpleWidget),t.detectIndentation(e.insertSpaces,e.tabSize))}}y.ID="editor.action.detectIndentation";class S extends t.b{constructor(){super({id:"editor.action.reindentlines",label:n.a("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:h.a.writable})}run(e,t){var i=t.getModel();i&&0<(i=f(i,1,i.getLineCount())).length&&(t.pushUndoStop(),t.executeEdits(this.id,i),t.pushUndoStop())}}class L extends t.b{constructor(){super({id:"editor.action.reindentselectedlines",label:n.a("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:h.a.writable})}run(e,t){var i=t.getModel();if(i){var n=t.getSelections();if(null!==n){var o,r=[];for(o of n){let e=o.startLineNumber,t=o.endLineNumber;if(e!==t&&1===o.endColumn&&t--,1===e){if(e===t)continue}else e--;var s=f(i,e,t);r.push(...s)}0<r.length&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}}}class x{constructor(e,t){for(var i of(this._initialSelection=t,this._edits=[],this._selectionId=null,e))i.range&&"string"==typeof i.text&&this._edits.push(i)}getEditOperations(e,t){for(var i of this._edits)t.addEditOperation(l.a.lift(i.range),i.text);let n=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),n||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class k{constructor(e){this.callOnDispose=new o.b,this.callOnModel=new o.b,this.editor=e,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),this.editor.getOption(9)<4||this.editor.getOption(46)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){var t=this.editor.getSelections();if(!(null===t||1<t.length)){const g=this.editor.getModel();if(g&&g.isCheapToTokenize(e.getStartPosition().lineNumber)){t=this.editor.getOption(9);const{tabSize:m,indentSize:f,insertSpaces:_}=g.getOptions();var i=[],n={shiftIndent:e=>s.a.shiftIndent(e,e.length+1,m,f,_),unshiftIndent:e=>s.a.unshiftIndent(e,e.length+1,m,f,_)};let b=e.startLineNumber;for(;b<=e.endLineNumber&&this.shouldIgnoreLine(g,b);)b++;if(!(b>e.endLineNumber)){let s=g.getLineContent(b);if(!/\S/.test(s.substring(0,e.startColumn-1))){var o=u.a.getGoodIndentForLine(t,g,g.getLanguageIdentifier().id,b,n);if(null!==o){var a=r.x(s);o=p.b(o,m);if(o!==p.b(a,m))o=p.a(o,m,_),i.push({range:new l.a(b,1,b,a.length+1),text:o}),s=o+s.substr(a.length);else if(o=u.a.getIndentMetadata(g,b),0===o||8===o)return}}const f=b;for(;b<e.endLineNumber&&!/\S/.test(g.getLineContent(b+1));)b++;if(b!==e.endLineNumber&&(a=u.a.getGoodIndentForLine(t,{getLineTokens:e=>g.getLineTokens(e),getLanguageIdentifier:()=>g.getLanguageIdentifier(),getLanguageIdAtPosition:(e,t)=>g.getLanguageIdAtPosition(e,t),getLineContent:e=>e===f?s:g.getLineContent(e)},g.getLanguageIdentifier().id,b+1,n),null!==a&&(o=p.b(a,m),t=p.b(r.x(g.getLineContent(b+1)),m),o!==t))){var d=o-t;for(let t=b+1;t<=e.endLineNumber;t++){var h=g.getLineContent(t),c=(h=r.x(h),p.b(h,m));c=p.a(c+d,m,_);c!==h&&i.push({range:new l.a(t,1,t,h.length+1),text:c})}}0<i.length&&(this.editor.pushUndoStop(),n=new x(i,this.editor.getSelection()),this.editor.executeCommand("autoIndentOnPaste",n),this.editor.pushUndoStop())}}}}shouldIgnoreLine(e,t){e.forceTokenization(t);var i=e.getLineFirstNonWhitespaceColumn(t);return 0===i||(e=e.getLineTokens(t),0<e.getCount()&&(t=e.findTokenIndexAtOffset(i),0<=t&&1===e.getStandardTokenType(t)))}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}function D(e,t,i,n){if(1!==e.getLineCount()||1!==e.getLineMaxColumn(1)){let a="";for(let e=0;e<i;e++)a+=" ";var o,r,s=new RegExp(a,"gi");for(let i=1,d=e.getLineCount();i<=d;i++){let d=e.getLineFirstNonWhitespaceColumn(i);1!==(d=0===d?e.getLineMaxColumn(i):d)&&(o=new l.a(i,1,i,d),r=e.getValueInRange(o),r=n?r.replace(/\t/gi,a):r.replace(s,"\t"),t.addEditOperation(o,r))}}}k.ID="editor.contrib.autoIndentOnPaste";class N{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),D(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class O{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),D(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}Object(t.l)(k.ID,k),Object(t.j)(_),Object(t.j)(b),Object(t.j)(C),Object(t.j)(w),Object(t.j)(y),Object(t.j)(S),Object(t.j)(L)},bd13:function(e,t,i){"use strict";i.d(t,"b",(function(){return d})),i.d(t,"a",(function(){return h})),i.d(t,"c",(function(){return c})),i.d(t,"e",(function(){return u})),i.d(t,"d",(function(){return g}));var n=i("2504"),o=i("fdcc"),r=(t=i("b2cc"),i("b707")),s=i("f68e"),a=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function l(e,t,i,n){return i=i.ordered(e).map(i=>Promise.resolve(n(i,e,t)).then(void 0,e=>{Object(o.g)(e)})),Promise.all(i).then(e=>{var t,i=[];for(t of e)Array.isArray(t)?i.push(...t):t&&i.push(t);return i})}function d(e,t,i){return l(e,t,r.f,(e,t,n)=>e.provideDefinition(t,n,i))}function h(e,t,i){return l(e,t,r.e,(e,t,n)=>e.provideDeclaration(t,n,i))}function c(e,t,i){return l(e,t,r.q,(e,t,n)=>e.provideImplementation(t,n,i))}function u(e,t,i){return l(e,t,r.G,(e,t,n)=>e.provideTypeDefinition(t,n,i))}function g(e,t,i,n){return l(e,t,r.y,(e,t,o)=>a(this,void 0,void 0,(function*(){var r,s=yield e.provideReferences(t,o,{includeDeclaration:!0},n);return i&&s&&2===s.length&&(r=yield e.provideReferences(t,o,{includeDeclaration:!1},n))&&1===r.length?r:s})))}function p(e){return a(this,void 0,void 0,(function*(){var t=yield e(),i=(t=new s.c(t,""),t.references.map(e=>e.link));return t.dispose(),i}))}Object(t.n)("_executeDefinitionProvider",(e,t)=>p(()=>d(e,t,n.a.None))),Object(t.n)("_executeDeclarationProvider",(e,t)=>p(()=>h(e,t,n.a.None))),Object(t.n)("_executeImplementationProvider",(e,t)=>p(()=>c(e,t,n.a.None))),Object(t.n)("_executeTypeDefinitionProvider",(e,t)=>p(()=>u(e,t,n.a.None))),Object(t.n)("_executeReferenceProvider",(e,t)=>p(()=>g(e,t,!1,n.a.None)))},bd50:function(e,t,i){"use strict";i.r(t);t=i("b2cc");var n=i("b1ca"),o=i("03d9");class r extends t.b{constructor(){super({id:"editor.action.toggleHighContrast",label:o.i.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){e=e.get(n.a),this._originalThemeName?(e.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=e.getColorTheme().themeName,e.setTheme("hc-black"))}}Object(t.j)(r)},be5f:function(e,t,i){"use strict";i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return r}));const n=Object.prototype.hasOwnProperty;function o(e,t){for(let i in e)if(n.call(e,i)&&!1===t({key:i,value:e[i]},(function(){delete e[i]})))return}class r{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){var i=this.map.get(e);i&&(i.delete(t),0===i.size)&&this.map.delete(e)}forEach(e,t){e=this.map.get(e),e&&e.forEach(t)}}},bf44:function(e,t,i){"use strict";var n=i("33f9");i.o(n,"Emitter")&&i.d(t,"Emitter",(function(){return n.Emitter})),i.o(n,"MarkerSeverity")&&i.d(t,"MarkerSeverity",(function(){return n.MarkerSeverity})),i.o(n,"MarkerTag")&&i.d(t,"MarkerTag",(function(){return n.MarkerTag})),i.o(n,"Range")&&i.d(t,"Range",(function(){return n.Range})),i.o(n,"Uri")&&i.d(t,"Uri",(function(){return n.Uri})),i.o(n,"editor")&&i.d(t,"editor",(function(){return n.editor})),i.o(n,"languages")&&i.d(t,"languages",(function(){return n.languages}))},bf5b:function(e,t,i){"use strict";i.d(t,"b",(function(){return h})),i.d(t,"a",(function(){return c})),i.d(t,"c",(function(){return m}));t=i("5fe7");var n=i("561a"),o=i("308f"),r=i("dff7"),s=i("dd1b"),a=i("89cd"),l=i("b7d0");const d=new class{constructor(){this._onDidChange=new o.b,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:Object(r.a)("iconDefintion.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:Object(r.a)("iconDefintion.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${n.a.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){var o,r=this.iconsById[e];return r?(i&&!r.description&&(r.description=i,this.iconSchema.properties[e].markdownDescription=i+` $(${e})`,-1!==(o=this.iconReferenceSchema.enum.indexOf(e))&&(this.iconReferenceSchema.enumDescriptions[o]=i),this._onDidChange.fire()),r):(this.iconsById[e]={id:e,description:i,defaults:t,deprecationMessage:n},o={$ref:"#/definitions/icons"},n&&(o.deprecationMessage=n),i&&(o.markdownDescription=i+`: $(${e})`),this.iconSchema.properties[e]=o,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e})}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}getIconFont(e){return this.iconFontsById[e]}toString(){var e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;l.d.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return"codicon codicon-"+(e?e.id:"")},i=[],n=(i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |"),Object.keys(this.iconsById).map(e=>this.iconsById[e]));for(const o of n.filter(e=>!!e.description).sort(e))i.push(`|<i class="${t(o)}"></i>|${o.id}|${(l.d.isThemeIcon(o.defaults)?o.defaults:o).id}|${o.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const o of n.filter(e=>!l.d.isThemeIcon(e.defaults)).sort(e))i.push(`|<i class="${t(o)}"></i>|${o.id}|`);return i.join("\n")}};function h(e,t,i,n){return d.registerIcon(e,t,i,n)}function c(){return d}a.a.add("base.contributions.icons",d);for(const f of n.d.all)d.registerIcon(f.id,f.definition,f.description);n.d.onDidRegister(e=>d.registerIcon(e.id,e.definition,e.description));const u="vscode://schemas/icons";let g=a.a.as(s.a.JSONContribution);g.registerSchema(u,d.getIconSchema());const p=new t.e(()=>g.notifySchemaChanged(u),200),m=(d.onDidChange(()=>{p.isScheduled()||p.schedule()}),h("widget-close",n.b.close,Object(r.a)("widgetClose","Icon for the close action in widgets.")))},bfa1:function(e,t,i){"use strict";i.d(t,"a",(function(){return I}));var n=i("11f7"),o=i("e32d"),r=i("31df"),s=i("5d28"),a=i("7ddc"),l=i("fdcc"),d=i("308f"),h=i("78bc"),c=i("1097"),u=i("9c3e");let g;!function e(t,i,n){function o(r,s){if(!i[r]){var a;if(!t[r])throw(a=new Error("Cannot find module '"+r+"'")).code="MODULE_NOT_FOUND",a;a=i[r]={exports:{}},t[r][0].call(a.exports,(function(e){return o(t[r][1][e]||e)}),a,a.exports,e,t,i,n)}return i[r].exports}for(var r=0;r<n.length;r++)o(n[r]);return o}({1:[function(e,t,i){e=e("./toMap"),t.exports={uris:e(["background","base","cite","href","longdesc","src","usemap"])}},{"./toMap":10}],2:[function(e,t,i){t.exports={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null}},{}],3:[function(e,t,i){e=e("./toMap"),t.exports={voids:e(["area","br","col","hr","img","wbr","input","base","basefont","link","meta"])}},{"./toMap":10}],4:[function(e,t,i){e("he");var n=e("assignment"),o=e("./parser"),r=e("./sanitizer"),s=e("./defaults");function a(e,t,i){var a=[];i=!0===i?t:n({},s,t),t=r(a,i);return o(e,t),a.join("")}a.defaults=s,t.exports=a,g=a},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(e,t,i){t.exports=function(e){return"string"==typeof e?e.toLowerCase():e}},{}],6:[function(e,t,i){t.exports=function e(t){for(var i,n,o=Array.prototype.slice.call(arguments,1);o.length;)for(n in i=o.shift())i.hasOwnProperty(n)&&("[object Object]"===Object.prototype.toString.call(t[n])?t[n]=e(t[n],i[n]):t[n]=i[n]);return t}},{}],7:[function(e,t,i){var n=e("he"),o=e("./lowercase"),r=(e("./attributes"),e("./elements")),s=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,a=/^<\s*\/\s*([\w:-]+)[^>]*>/,l=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,d=/^</,h=/^<\s*\//;t.exports=function(e,t){(i=[]).lastItem=function(){return i[i.length-1]};for(var i,c,u,g,p=i,m=e;e;){if(c=!(g=void 0),"\x3c!--"===e.substr(0,4)){f=void 0;var f=e.indexOf("--\x3e");0<=f&&(t.comment&&t.comment(e.substring(4,f)),e=e.substring(f+3),c=!1)}else h.test(e)?_(a,v):d.test(e)&&_(s,b);u=f=void 0,c&&(e=0<=(u=e.indexOf("<"))?(f=e.substring(0,u),e.substring(u)):(f=e,""),t.chars)&&t.chars(f),g=e===m,m=e,g&&(e="")}function _(t,i){var n=e.match(t);n&&(e=e.substring(n[0].length),n[0].replace(t,i),c=!1)}function b(e,i,s,a){var d={};i=o(i),a=r.voids[i]||!!a;s.replace(l,(function(e,t,i,o,r){d[t]=void 0===i&&void 0===o&&void 0===r?void 0:n.decode(i||o||r||"")})),a||p.push(i),t.start&&t.start(i,d,a)}function v(e,i){var n,r=0,s=o(i);if(s)for(r=p.length-1;0<=r&&p[r]!==s;r--);if(0<=r){for(n=p.length-1;r<=n;n--)t.end&&t.end(p[n]);p.length=r}}v()}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(e,t,i){var n=e("he"),o=e("./lowercase"),r=e("./attributes"),s=e("./elements");t.exports=function(e,t){var i,a=t||{};return c(),{start:function(e,t,s){var h=o(e);i.ignoring||-1===(a.allowedTags||[]).indexOf(h)||a.filter&&!a.filter({tag:h,attrs:t})?d(h):(l("<"),l(h),Object.keys(t).forEach((function(e){var i=t[e],s=(a.allowedClasses||{})[h]||[],d=(a.allowedAttributes||{})[h]||[],c=(d=d.concat((a.allowedAttributes||{})["*"]||[]),o(e));d="class"===c&&-1===d.indexOf(c)?(i=i.split(" ").filter((function(e){return s&&-1!==s.indexOf(e)})).join(" ").trim(),i.length):-1!==d.indexOf(c)&&(!0!==r.uris[c]||function(e){var t=e[0];if("#"===t||"/"===t)return!0;if(t=e.indexOf(":"),-1===t)return!0;var i=e.indexOf("?");return-1!==i&&i<t||(i=e.indexOf("#"),-1!==i&&i<t||a.allowedSchemes.some((function(t){return 0===e.indexOf(t+":")})))}(i)),d&&(l(" "),l(e),"string"==typeof i)&&(l('="'),l(n.encode(i)),l('"'))})),l(s?"/>":">"))},end:function(e){e=o(e),-1!==(a.allowedTags||[]).indexOf(e)&&!1===i.ignoring?(l("</"),l(e),l(">")):h(e)},chars:function(e){!1===i.ignoring&&l(a.transformText?a.transformText(e):e)}};function l(t){e.push(t)}function d(e){s.voids[e]||(!1===i.ignoring?i={ignoring:e,depth:1}:i.ignoring===e&&i.depth++)}function h(e){i.ignoring===e&&--i.depth<=0&&c()}function c(){i={ignoring:!1,depth:0}}}},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(e,t,i){var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},o={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},r=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,s=/[&<>"']/g;function a(e){return n[e]}function l(e){return o[e]}function d(e){return null==e?"":String(e).replace(s,a)}function h(e){return null==e?"":String(e).replace(r,l)}d.options=h.options={},t.exports={encode:d,escape:d,decode:h,unescape:h,version:"1.0.0-browser"}},{}],10:[function(e,t,i){function n(e,t){return e[t]=!0,e}t.exports=function(e){return e.reduce(n,{})}},{}]},{},[4]);var p=g,m=i("4acc"),f=i("438a"),_=i("b589"),b=i("aa3d"),v=i("82c9"),C=i("3742"),w=i("6d8e");const y=null==(t=window.trustedTypes)?void 0:t.createPolicy("insane",{createHTML(e,t){return p(e,t)}});function S(e,t={},i={}){function g(t,i){var n=e.uris&&e.uris[t];if(!n)return t;let o=w.a.revive(n);return i?t.startsWith(_.c.data+":")?t:_.a.asBrowserUri(o).toString(!0):w.a.parse(t).toString()===o.toString()?t:(o=o.query?o.with({query:function(t){let i;try{i=Object(f.a)(decodeURIComponent(t))}catch(t){}return i?(i=Object(b.a)(i,t=>{if(e.uris&&e.uris[t])return w.a.revive(e.uris[t])}),encodeURIComponent(JSON.stringify(i))):t}(o.query)}):o).toString()}const S=Object(r.a)(t);let L;const x=new Promise(e=>L=e);var k,D=new m.Renderer;D.image=(e,i,n)=>{let o=[],r=[];if(e){({href:e,dimensions:o}=Object(h.c)(e)),e=g(e,!0);try{var s=w.a.parse(e);t.baseUrl&&s.scheme===_.c.file&&(e=Object(v.j)(t.baseUrl,e).toString())}catch(e){}r.push(`src="${e}"`)}return n&&r.push(`alt="${n}"`),i&&r.push(`title="${i}"`),"<img "+(r=o.length?r.concat(o):r).join(" ")+">"},D.link=(i,n,o)=>(i===o&&(o=Object(h.d)(o)),i=g(i,!1),t.baseUrl&&!/^\w[\w\d+.-]*:/.test(i)&&(i=Object(v.j)(t.baseUrl,i).toString()),n=Object(h.d)(n),!(i=Object(h.d)(i))||i.match(/^data:|javascript:/i)||i.match(/^command:/i)&&!e.isTrusted||i.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?o:`<a href="#" data-href="${i=i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}" title="${n||i}">${o}</a>`),D.paragraph=t=>`<p>${t=e.supportThemeIcons?Object(a.a)(t).map(e=>"string"==typeof e?e:e.outerHTML).join(""):t}</p>`,t.codeBlockRenderer&&(D.code=(e,i)=>{i=t.codeBlockRenderer(i,e);const o=u.b.nextId();return i=Promise.all([i,x]).then(e=>{var t=S.querySelector(`div[data-code="${o}"]`);t&&n.R(t,e[0])}).catch(e=>{}),t.asyncRenderCallback&&i.then(t.asyncRenderCallback),`<div class="code" data-code="${o}">${Object(C.s)(e)}</div>`}),t.actionHandler&&(k=t.actionHandler.disposables.add(new o.a(S,"click")),O=t.actionHandler.disposables.add(new o.a(S,"auxclick")),t.actionHandler.disposables.add(d.c.any(k.event,O.event)(e=>{if(e=new s.a(e),e.leftButton||e.middleButton){let o=e.target;if("A"===o.tagName||(o=o.parentElement)&&"A"===o.tagName)try{var n=o.dataset.href;n&&t.actionHandler.callback(n,e)}catch(i){Object(l.f)(i)}finally{e.preventDefault()}}}))),i.sanitizer=t=>(e.isTrusted?t.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?t:"",i.sanitize=!0,i.silent=!0,i.renderer=D;let N=null!=(k=e.value)?k:"";1e5<N.length&&(N=N.substr(0,1e5)+"…"),e.supportThemeIcons&&(N=Object(c.b)(N));var O=m.parse(N,i);if(S.innerHTML=function(e,t){var i;return e=function(e){var t=[_.c.http,_.c.https,_.c.mailto,_.c.data,_.c.file,_.c.vscodeFileResource,_.c.vscodeRemote,_.c.vscodeRemoteResource];return e.isTrusted&&t.push(_.c.command),{allowedSchemes:t,allowedTags:["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],allowedAttributes:{a:["href","name","target","data-href"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class","style"],th:["align"],td:["align"]},filter(t){return!("span"===t.tag&&e.isTrusted&&(t.attrs.style&&1===Object.keys(t.attrs).length?!t.attrs.style.match(/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/):!t.attrs.class||!t.attrs.class.match(/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/)))}}}(e),null!=(i=null===y||void 0===y?void 0:y.createHTML(t,e))?i:p(t,e)}(e,O),L(),t.asyncRenderCallback)for(const o of S.getElementsByTagName("img")){const e=n.i(o,"load",()=>{e.dispose(),t.asyncRenderCallback()})}return S}t=i("5bd73");var L,x=i("5818"),k=i("4d05"),D=i("a666"),N=i("b707"),O=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}}),E=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};let I=class e{constructor(e,t,i){this._options=e,this._modeService=t,this._openerService=i,this._onDidRenderAsync=new d.b,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){const n=new D.b;let o;return{element:o=e?S(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i):document.createElement("span"),dispose:()=>n.dispose()}}_getRenderOptions(t,i){return{baseUrl:this._options.baseUrl,codeBlockRenderer:(t,i)=>E(this,void 0,void 0,(function*(){var n;let o;t?o=this._modeService.getModeIdForLanguageName(t):this._options.editor&&(o=null==(r=this._options.editor.getModel())?void 0:r.getLanguageIdentifier().language),o=o||"plaintext",this._modeService.triggerMode(o);var r=null!=(r=yield N.F.getPromise(o))?r:void 0,s=document.createElement("span");s.innerHTML=null!=(n=null==(n=e._ttpTokenizer)?void 0:n.createHTML(i,r))?n:Object(k.b)(i,r);let a=this._options.codeBlockFontFamily;return(a=this._options.editor?this._options.editor.getOption(42).fontFamily:a)&&(s.style.fontFamily=a),s})),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:e=>this._openerService.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:t.isTrusted}).catch(l.f),disposables:i}}}};I._ttpTokenizer=null==(L=window.trustedTypes)?void 0:L.createPolicy("tokenizeToString",{createHTML(e,t){return Object(k.b)(e,t)}}),I=i([O(1,x.a),O(2,t.a)],I)},c101:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var n,o;t=i("dff7"),i=i("4fc3");(o=n=n||{}).editorSimpleInput=new i.c("editorSimpleInput",!1,!0),o.editorTextFocus=new i.c("editorTextFocus",!1,t.a("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),o.focus=new i.c("editorFocus",!1,t.a("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),o.textInputFocus=new i.c("textInputFocus",!1,t.a("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),o.readOnly=new i.c("editorReadonly",!1,t.a("editorReadonly","Whether the editor is read only")),o.inDiffEditor=new i.c("inDiffEditor",!1,t.a("inDiffEditor","Whether the context is a diff editor")),o.columnSelection=new i.c("editorColumnSelection",!1,t.a("editorColumnSelection","Whether `editor.columnSelection` is enabled")),o.writable=o.readOnly.toNegated(),o.hasNonEmptySelection=new i.c("editorHasSelection",!1,t.a("editorHasSelection","Whether the editor has text selected")),o.hasOnlyEmptySelection=o.hasNonEmptySelection.toNegated(),o.hasMultipleSelections=new i.c("editorHasMultipleSelections",!1,t.a("editorHasMultipleSelections","Whether the editor has multiple selections")),o.hasSingleSelection=o.hasMultipleSelections.toNegated(),o.tabMovesFocus=new i.c("editorTabMovesFocus",!1,t.a("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),o.tabDoesNotMoveFocus=o.tabMovesFocus.toNegated(),o.isInWalkThroughSnippet=new i.c("isInEmbeddedEditor",!1,!0),o.canUndo=new i.c("canUndo",!1,!0),o.canRedo=new i.c("canRedo",!1,!0),o.hoverVisible=new i.c("editorHoverVisible",!1,t.a("editorHoverVisible","Whether the editor hover is visible")),o.inCompositeEditor=new i.c("inCompositeEditor",void 0,t.a("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),o.notInCompositeEditor=o.inCompositeEditor.toNegated(),o.languageId=new i.c("editorLangId","",t.a("editorLangId","The language identifier of the editor")),o.hasCompletionItemProvider=new i.c("editorHasCompletionItemProvider",!1,t.a("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),o.hasCodeActionsProvider=new i.c("editorHasCodeActionsProvider",!1,t.a("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),o.hasCodeLensProvider=new i.c("editorHasCodeLensProvider",!1,t.a("editorHasCodeLensProvider","Whether the editor has a code lens provider")),o.hasDefinitionProvider=new i.c("editorHasDefinitionProvider",!1,t.a("editorHasDefinitionProvider","Whether the editor has a definition provider")),o.hasDeclarationProvider=new i.c("editorHasDeclarationProvider",!1,t.a("editorHasDeclarationProvider","Whether the editor has a declaration provider")),o.hasImplementationProvider=new i.c("editorHasImplementationProvider",!1,t.a("editorHasImplementationProvider","Whether the editor has an implementation provider")),o.hasTypeDefinitionProvider=new i.c("editorHasTypeDefinitionProvider",!1,t.a("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),o.hasHoverProvider=new i.c("editorHasHoverProvider",!1,t.a("editorHasHoverProvider","Whether the editor has a hover provider")),o.hasDocumentHighlightProvider=new i.c("editorHasDocumentHighlightProvider",!1,t.a("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),o.hasDocumentSymbolProvider=new i.c("editorHasDocumentSymbolProvider",!1,t.a("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),o.hasReferenceProvider=new i.c("editorHasReferenceProvider",!1,t.a("editorHasReferenceProvider","Whether the editor has a reference provider")),o.hasRenameProvider=new i.c("editorHasRenameProvider",!1,t.a("editorHasRenameProvider","Whether the editor has a rename provider")),o.hasSignatureHelpProvider=new i.c("editorHasSignatureHelpProvider",!1,t.a("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),o.hasInlayHintsProvider=new i.c("editorHasInlayHintsProvider",!1,t.a("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),o.hasDocumentFormattingProvider=new i.c("editorHasDocumentFormattingProvider",!1,t.a("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),o.hasDocumentSelectionFormattingProvider=new i.c("editorHasDocumentSelectionFormattingProvider",!1,t.a("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),o.hasMultipleDocumentFormattingProvider=new i.c("editorHasMultipleDocumentFormattingProvider",!1,t.a("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),o.hasMultipleDocumentSelectionFormattingProvider=new i.c("editorHasMultipleDocumentSelectionFormattingProvider",!1,t.a("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))},c286:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return i.e("chunk-7459c510").then(i.bind(null,"23e02"))}})},c2c6:function(e,t,i){var n;self.MonacoEnvironment={globalAPI:!(n={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"}),getWorkerUrl:function(e,t){var o=i.p;o=(o?o.replace(/\/$/,"")+"/":"")+n[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(o)){var r=String(window.location);r=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(o.substring(0,r.length)!==r)return/^(\/\/)/.test(o)&&(o=window.location.protocol+o),r=new Blob(["/*"+t+'*/importScripts("'+o+'");'],{type:"application/javascript"}),URL.createObjectURL(r)}return o}},i("4816"),i("3765"),i("6e4e"),i("2935"),i("c36f"),i("0b112"),i("77a4"),i("db2d"),i("9f4d"),i("7c3e"),i("d585"),i("e516"),i("fd11"),i("891c"),i("a106"),i("7605"),i("6df4"),i("7082"),i("958f"),i("3323"),i("f187"),i("1f84"),i("aee8"),i("a222"),i("1af3"),i("bc61"),i("6e62"),i("2e66"),i("8090"),i("747f"),i("7eb7"),i("d844"),i("f17c"),i("5b02"),i("2e4b"),i("6c8c"),i("8452"),i("e2c2"),i("43ad"),i("d741"),i("b574"),i("7a9e"),i("bd50"),i("93ba"),i("6daf"),i("87a3"),i("23ec"),i("5ed2"),i("b3b2"),i("2d47"),e.exports=i("8ea9"),i("09d1"),i("db7a"),i("38e9"),i("962f"),i("d1c2"),i("91d3"),i("0292"),i("8eb6"),i("82a1"),i("a771"),i("13e8"),i("f41d"),i("f570"),i("f5ba"),i("4af6"),i("a8f5"),i("9d48"),i("23f2"),i("2dec"),i("d282"),i("f9ad"),i("77db"),i("8457"),i("7367"),i("cd01"),i("93b9"),i("7257"),i("a79b"),i("daaa"),i("0ef9"),i("16f5"),i("38f6"),i("1aa7"),i("66f1"),i("2e5e"),i("4058"),i("6640"),i("fdc0"),i("c5834"),i("8d5c"),i("ea53"),i("abca"),i("b12b"),i("a0a2"),i("1fa1"),i("cb70"),i("2652"),i("8f6a"),i("c286"),i("88b6"),i("4da7"),i("32cc"),i("6a38"),i("4220"),i("a48d"),i("c8aa"),i("8a3f"),i("5d08"),i("19bd"),i("1bd1"),i("c663"),i("73d3"),i("333a"),i("199a"),i("d65c"),i("e8cb"),i("c3d4"),i("b9f8"),i("2d19"),i("d2ce"),i("0542"),i("9f5f"),i("10eb"),i("cf78"),i("9eb0"),i("0447"),i("1389")},c317:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return a}));var n=i("30db");let o;if(void 0!==n.b.vscode&&void 0!==n.b.vscode.process){const e=n.b.vscode.process;o={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()},nextTick(e){return Object(n.j)(e)}}}else o=void 0!==e?{get platform(){return e.platform},get arch(){return e.arch},get env(){return Object({NODE_ENV:"production",VUE_APP_ENV:"production",VUE_APP_TITLE:"CRMEB",VUE_APP_API_URL:"",VUE_APP_WS_KEFU_URL:"",VUE_APP_WS_ADMIN_URL:"",BASE_URL:"/admin/"})},cwd(){return Object({NODE_ENV:"production",VUE_APP_ENV:"production",VUE_APP_TITLE:"CRMEB",VUE_APP_API_URL:"",VUE_APP_WS_KEFU_URL:"",VUE_APP_WS_ADMIN_URL:"",BASE_URL:"/admin/"}).VSCODE_CWD||e.cwd()},nextTick(t){return e.nextTick(t)}}:{get platform(){return n.i?"win32":n.f?"darwin":"linux"},get arch(){},nextTick(e){return Object(n.j)(e)},get env(){return{}},cwd(){return"/"}};const r=o.cwd,s=o.env,a=o.platform}).call(this,i("f28c"))},c36f:function(e,t,i){"use strict";i.r(t),i.d(t,"CutAction",(function(){return m})),i.d(t,"CopyAction",(function(){return f})),i.d(t,"PasteAction",(function(){return _}));var n=i("dff7"),o=(t=i("0f70"),i("30db")),r=i("e53c"),s=i("b2cc"),a=i("5717"),l=i("c101"),d=i("7e32"),h=i("f577"),c=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))},u=(i="9_cutcopypaste",o.g||document.queryCommandSupported("cut")),g=o.g||document.queryCommandSupported("copy");t=void 0!==navigator.clipboard&&!t.g||document.queryCommandSupported("paste");function p(e){return e.register(),e}const m=u?p(new s.e({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:o.g?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:d.b.MenubarEditMenu,group:"2_ccp",title:n.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:d.b.EditorContext,group:i,title:n.a("actions.clipboard.cutLabel","Cut"),when:l.a.writable,order:1},{menuId:d.b.CommandPalette,group:"",title:n.a("actions.clipboard.cutLabel","Cut"),order:1},{menuId:d.b.SimpleEditorContext,group:i,title:n.a("actions.clipboard.cutLabel","Cut"),when:l.a.writable,order:1}]})):void 0,f=g?p(new s.e({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:o.g?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:d.b.MenubarEditMenu,group:"2_ccp",title:n.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:d.b.EditorContext,group:i,title:n.a("actions.clipboard.copyLabel","Copy"),order:2},{menuId:d.b.CommandPalette,group:"",title:n.a("actions.clipboard.copyLabel","Copy"),order:1},{menuId:d.b.SimpleEditorContext,group:i,title:n.a("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0,_=(d.d.appendMenuItem(d.b.MenubarEditMenu,{submenu:d.b.MenubarCopy,title:{value:n.a("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3}),d.d.appendMenuItem(d.b.EditorContext,{submenu:d.b.EditorContextCopy,title:{value:n.a("copy as","Copy As"),original:"Copy As"},group:i,order:3}),t?p(new s.e({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:o.g?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:d.b.MenubarEditMenu,group:"2_ccp",title:n.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:d.b.EditorContext,group:i,title:n.a("actions.clipboard.pasteLabel","Paste"),when:l.a.writable,order:4},{menuId:d.b.CommandPalette,group:"",title:n.a("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:d.b.SimpleEditorContext,group:i,title:n.a("actions.clipboard.pasteLabel","Paste"),when:l.a.writable,order:4}]})):void 0);class b extends s.b{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:n.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:l.a.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(31)&&t.getSelection().isEmpty()||(r.a.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),r.a.forceCopyWithSyntaxHighlighting=!1)}}function v(e,t){e&&(e.addImplementation(1e4,"code-editor",(e,i)=>{var n;e=e.get(a.a).getFocusedCodeEditor();return!(!e||!e.hasTextFocus()||(n=e.getOption(31),(e=e.getSelection())&&e.isEmpty()&&!n||document.execCommand(t),0))}),e.addImplementation(0,"generic-dom",(e,i)=>(document.execCommand(t),!0)))}v(m,"cut"),v(f,"copy"),_&&(_.addImplementation(1e4,"code-editor",(e,t)=>{var i=e.get(a.a);const n=e.get(h.a),s=i.getFocusedCodeEditor();return!(!s||!s.hasTextFocus()||(!document.execCommand("paste")&&o.h&&c(void 0,void 0,void 0,(function*(){var e=yield n.readText();if(""!==e){var t=r.b.INSTANCE.get(e);let i=!1,n=null,o=null;t&&(i=s.getOption(31)&&!!t.isFromEmptySelection,n=void 0!==t.multicursorText?t.multicursorText:null,o=t.mode),s.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:o})}})),0))}),_.addImplementation(0,"generic-dom",(e,t)=>(document.execCommand("paste"),!0))),g&&Object(s.j)(b)},c3d4:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return i.e("chunk-2d0ae937").then(i.bind(null,"0b3b"))}})},c4e3:function(e,t,i){"use strict";i.d(t,"a",(function(){return m}));var n=i("11f7"),o=i("ee56"),r=i("5fe7"),s=i("2504"),a=i("a666"),l=i("ef8e9"),d=i("dff7"),h=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function c(e,t,i){if(i){const o=function(e){if(Object(l.k)(e))return()=>h(this,void 0,void 0,(function*(){return e}));if(Object(l.h)(e.markdown))return e.markdown;{const t=e.markdown;return()=>h(this,void 0,void 0,(function*(){return t}))}}(i);let c,u;const g=n.i(t,n.d.MOUSE_OVER,g=>{if(!c){const g=new s.b;var p=e=>{var i=e.type===n.d.MOUSE_DOWN;i&&(null!==u&&void 0!==u&&u.dispose(),u=void 0),!i&&e.fromElement!==t||(null!==c&&void 0!==c&&c.dispose(),c=void 0)};const m=n.i(t,n.d.MOUSE_LEAVE,p,!0),f=n.i(t,n.d.MOUSE_DOWN,p,!0),_={targetElements:[t],dispose:()=>{}};let b;void 0!==e.placement&&"mouse"!==e.placement||(b=n.i(t,n.d.MOUSE_MOVE,e=>_.x=e.x+10,!0));const v=new r.e(()=>h(this,void 0,void 0,(function*(){var t;c&&(t={content:Object(d.a)("iconLabel.loading","Loading..."),target:_,hoverPosition:2},null!==u&&void 0!==u&&u.dispose(),u=e.showHover(t),t=null!=(t=yield o(g.token))?t:Object(l.k)(i)?void 0:i.markdownNotSupportedFallback,null!==u&&void 0!==u&&u.dispose(),u=void 0,t)&&c&&(t={content:t,target:_,showPointer:"element"===e.placement,hoverPosition:2},u=e.showHover(t)),null!==b&&void 0!==b&&b.dispose()})),e.delay);v.schedule(),c=Object(a.i)(()=>{v.dispose(),null!==b&&void 0!==b&&b.dispose(),f.dispose(),m.dispose(),g.dispose(!0)})}},!0);return Object(a.i)(()=>{g.dispose(),null!==c&&void 0!==c&&c.dispose(),null!==u&&void 0!==u&&u.dispose()})}}var u=i("aa3d"),g=i("9ee1");i("2a04");class p{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class m extends a.a{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new p(n.q(e,n.a(".monaco-icon-label")))),this.labelContainer=n.q(this.domNode.element,n.a(".monaco-icon-label-container")),e=n.q(this.labelContainer,n.a("span.monaco-icon-name-container")),this.descriptionContainer=this._register(new p(n.q(this.labelContainer,n.a("span.monaco-icon-description-container")))),null!=t&&t.supportHighlights||null!=t&&t.supportIcons?this.nameNode=new _(e,!!t.supportIcons):this.nameNode=new f(e),null!=t&&t.supportDescriptionHighlights?this.descriptionNodeFactory=()=>new o.a(n.q(this.descriptionContainer.element,n.a("span.label-description")),!!t.supportIcons):this.descriptionNodeFactory=()=>this._register(new p(n.q(this.descriptionContainer.element,n.a("span.label-description")))),this.hoverDelegate=null==t?void 0:t.hoverDelegate}setLabel(e,t,i){var n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough)&&n.push("strikethrough"),this.domNode.className=n.join(" "),this.setupHover(this.labelContainer,null==i?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof o.a?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,null==i?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(null==i?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){var i=this.customHovers.get(e);i&&(i.dispose(),this.customHovers.delete(e)),t?this.hoverDelegate?(i=c(this.hoverDelegate,e,t))&&this.customHovers.set(e,i):(i=e,t=t,Object(l.k)(t)?i.title=t:null!=t&&t.markdownNotSupportedFallback?i.title=t.markdownNotSupportedFallback:i.removeAttribute("title")):e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class f{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!Object(u.d)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=n.q(this.container,n.a("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let r=0;r<e.length;r++){var i=e[r],o=(null==t?void 0:t.domId)&&(null==t?void 0:t.domId)+"_"+r;n.q(this.container,n.a("a.label-name",{id:o,"data-icon-label-count":e.length,"data-icon-label-index":r,role:"treeitem"},i)),r<e.length-1&&n.q(this.container,n.a("span.label-separator",void 0,(null==t?void 0:t.separator)||"/"))}}}}class _{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!Object(u.d)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new o.a(n.q(this.container,n.a("a.label-name",{id:null==t?void 0:t.domId})),this.supportIcons)),this.singleLabel.set(e,null==t?void 0:t.matches,void 0,null==t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;var i=(null==t?void 0:t.separator)||"/",r=function(e,t,i){if(i){let n=0;return e.map(e=>{const o={start:n,end:n+e.length};return e=i.map(e=>g.a.intersect(o,e)).filter(e=>!g.a.isEmpty(e)).map(({start:e,end:t})=>({start:e-n,end:t-n})),n=o.end+t.length,e})}}(e,i,null==t?void 0:t.matches);for(let d=0;d<e.length;d++){var s=e[d],a=r?r[d]:void 0,l=(null==t?void 0:t.domId)&&(null==t?void 0:t.domId)+"_"+d;l=n.a("a.label-name",{id:l,"data-icon-label-count":e.length,"data-icon-label-index":d,role:"treeitem"});new o.a(n.q(this.container,l),this.supportIcons).set(s,a,void 0,null==t?void 0:t.labelEscapeNewLines),d<e.length-1&&n.q(l,n.a("span.label-separator",void 0,i))}}}}},c5834:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return i.e("chunk-2d20f745").then(i.bind(null,"b463"))}})},c663:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return i.e("chunk-2d0e1b57").then(i.bind(null,"7c1f"))}})},c7f5:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return a}));t=i("0a0f");var n=i("6d8e"),o=i("ef8e9");const r=Object(t.c)("IWorkspaceEditService");class s{constructor(e){this.metadata=e}static convert(e){return e.edits.map(e=>{if(t=e,Object(o.j)(t)&&n.a.isUri(t.resource)&&Object(o.j)(t.edit))return new a(e.resource,e.edit,e.modelVersionId,e.metadata);var t;if(t=e,Object(o.j)(t)&&(Boolean(t.newUri)||Boolean(t.oldUri)))return new l(e.oldUri,e.newUri,e.options,e.metadata);throw new Error("Unsupported edit")})}}class a extends s{constructor(e,t,i,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class l extends s{constructor(e,t,i,n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}},c84a:function(e,t,i){},c8aa:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return i.e("chunk-2d0bdf38").then(i.bind(null,"2dd4"))}})},caa1:function(e,t,i){},cab5:function(e,t,i){},cb70:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return i.e("chunk-2d0cf16e").then(i.bind(null,"61da"))}})},ccde:function(e,t,i){"use strict";i.d(t,"a",(function(){return h}));var n=i("3742"),o=i("2e5d"),r=i("6a89"),s=i("8025"),a=i("70cb");const l=Object.create(null);function d(e,t){if(t<=0)return"";l[e]||(l[e]=["",e]);var i=l[e];for(let n=i.length;n<=t;n++)i[n]=i[n-1]+e;return i[t]}class h{constructor(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(e,t,i,n,r){return e=o.a.visibleColumnFromColumn(e,t,i),r?(t=d(" ",n),d(t,o.a.prevIndentTabStop(e,n)/n)):d("\t",o.a.prevRenderTabStop(e,i)/i)}static shiftIndent(e,t,i,n,r){return e=o.a.visibleColumnFromColumn(e,t,i),r?(t=d(" ",n),d(t,o.a.nextIndentTabStop(e,n)/n)):d("\t",o.a.nextRenderTabStop(e,i)/i)}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){var i=this._selection.startLineNumber;let s=this._selection.endLineNumber;1===this._selection.endColumn&&i!==s&&(s-=1);var{tabSize:l,indentSize:c,insertSpaces:u}=this._opts,g=i===s;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let d=0,_=0;for(let b=i;b<=s;b++,d=_){_=0;var p=e.getLineContent(b);let s=n.u(p);if((!this._opts.isUnshift||0!==p.length&&0!==s)&&(g||this._opts.isUnshift||0!==p.length)){if(-1===s&&(s=p.length),1<b){var m=o.a.visibleColumnFromColumn(p,s+1,l);if(m%c!=0&&e.isCheapToTokenize(b-1)){var f=a.a.getEnterAction(this._opts.autoIndent,e,new r.a(b-1,e.getLineMaxColumn(b-1),b-1,e.getLineMaxColumn(b-1)));if(f){if(_=d,f.appendText)for(let e=0,t=f.appendText.length;e<t&&_<c&&32===f.appendText.charCodeAt(e);e++)_++;f.removeText&&(_=Math.max(0,_-f.removeText));for(let e=0;e<_&&0!==s&&32===p.charCodeAt(s-1);e++)s--}}}if(!this._opts.isUnshift||0!==s){let e;e=this._opts.isUnshift?h.unshiftIndent(p,s+1,l,c,u):h.shiftIndent(p,s+1,l,c,u),this._addEditOperation(t,new r.a(b,1,b,s+1),e),b!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=s+1)}}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(i)&&(this._useLastEditRangeForCursorEndPosition=!0);var _=u?d(" ",c):"\t";for(let o=i;o<=s;o++){var b=e.getLineContent(o);let s=n.u(b);if((!this._opts.isUnshift||0!==b.length&&0!==s)&&(g||this._opts.isUnshift||0!==b.length)&&(-1===s&&(s=b.length),!this._opts.isUnshift||0!==s))if(this._opts.isUnshift){s=Math.min(s,c);for(let e=0;e<s;e++)if(9===b.charCodeAt(e)){s=e+1;break}this._addEditOperation(t,new r.a(o,1,o,s+1),"")}else this._addEditOperation(t,new r.a(o,1,o,1),_),o!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){var i;return this._useLastEditRangeForCursorEndPosition?(i=t.getInverseEditOperations()[0],new s.a(i.range.endLineNumber,i.range.endColumn,i.range.endLineNumber,i.range.endColumn)):(i=t.getTrackedSelection(this._selectionId),!this._selectionStartColumnStaysPut||(t=this._selection.startColumn,i.startColumn<=t)?i:0===i.getDirection()?new s.a(i.startLineNumber,t,i.endLineNumber,i.endColumn):new s.a(i.endLineNumber,i.endColumn,i.startLineNumber,t))}}},cd01:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return i.e("chunk-2d0c4313").then(i.bind(null,"3a7f"))}})},cdd6:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return r}));const n={ctrlCmd:!1,alt:!1};var o,r;(i=o=o||{})[i.Blur=1]="Blur",i[i.Gesture=2]="Gesture",i[i.Other=3]="Other",(t=r=r||{})[t.NONE=0]="NONE",t[t.FIRST=1]="FIRST",t[t.SECOND=2]="SECOND",t[t.LAST=3]="LAST"},ceb8:function(e,t,i){"use strict";function n(e,t){return t=Math.pow(10,t),Math.round(e*t)/t}i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"a",(function(){return a}));class o{constructor(e,t,i,o=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class r{constructor(e,t,i,o){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){var t=e.r/255,i=e.g/255,n=e.b/255,o=(e=e.a,Math.max(t,i,n)),s=Math.min(t,i,n);let a=0,l=0;var d=(s+o)/2,h=o-s;if(0<h){switch(l=Math.min(d<=.5?h/(2*d):h/(2-2*d),1),o){case t:a=(i-n)/h+(i<n?6:0);break;case i:a=(n-t)/h+2;break;case n:a=(t-i)/h+4}a*=60,a=Math.round(a)}return new r(a,l,d,e)}static _hue2rgb(e,t,i){return i<0&&(i+=1),1<i&&--i,i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){var t=e.h/360,{s:e,l:i,a:n}=e;let s,a,l;return 0===e?s=a=l=i:(e=2*i-(i=i<.5?i*(1+e):i+e-i*e),s=r._hue2rgb(e,i,t+1/3),a=r._hue2rgb(e,i,t),l=r._hue2rgb(e,i,t-1/3)),new o(Math.round(255*s),Math.round(255*a),Math.round(255*l),n)}}class s{constructor(e,t,i,o){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){var t=e.r/255,i=e.g/255,n=e.b/255,o=Math.max(t,i,n),r=o-Math.min(t,i,n),a=0===o?0:r/o;let l;return l=0==r?0:o===t?((i-n)/r%6+6)%6:o===i?(n-t)/r+2:(t-i)/r+4,new s(Math.round(60*l),a,o,e.a)}static toRGBA(e){var{h:e,s:t,v:i,a:n}=e,t=i*t,r=t*(1-Math.abs(e/60%2-1)),i=i-t;let[s,a,l]=[0,0,0];return e<60?(s=t,a=r):e<120?(s=r,a=t):e<180?(a=t,l=r):e<240?(a=r,l=t):e<300?(s=r,l=t):e<=360&&(s=t,l=r),s=Math.round(255*(s+i)),a=Math.round(255*(a+i)),l=Math.round(255*(l+i)),new o(s,a,l,n)}}class a{constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof r)this._hsla=e,this.rgba=r.toRGBA(e);else{if(!(e instanceof s))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=s.toRGBA(e)}}static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}get hsla(){return this._hsla||r.fromRGBA(this.rgba)}get hsva(){return this._hsva||s.fromRGBA(this.rgba)}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&r.equals(this.hsla,e.hsla)&&s.equals(this.hsva,e.hsva)}getRelativeLuminance(){return n(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){return e/=255,e<=.03928?e/12.92:Math.pow((.055+e)/1.055,2.4)}isLighter(){return 128<=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3}isLighterThan(e){var t=this.getRelativeLuminance();return e.getRelativeLuminance()<t}isDarkerThan(e){return this.getRelativeLuminance()<e.getRelativeLuminance()}lighten(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new r(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){var{r:t,g:i,b:n,a:r}=this.rgba;return new a(new o(t,i,n,r*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new o(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}toString(){return""+a.Format.CSS.format(this)}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;var n=e.getRelativeLuminance();t=t.getRelativeLuminance();return e.lighten(i=i*(t-n)/t)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;var n=e.getRelativeLuminance();t=t.getRelativeLuminance();return e.darken(i=i*(n-t)/n)}}function l(e){return e=e.toString(16),2!==e.length?"0"+e:e}function d(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}var h;a.white=new a(new o(255,255,255,1)),a.black=new a(new o(0,0,0,1)),a.red=new a(new o(255,0,0,1)),a.blue=new a(new o(0,0,255,1)),a.cyan=new a(new o(0,255,255,1)),a.lightgrey=new a(new o(211,211,211,1)),a.transparent=new a(new o(0,0,0,0)),h=a=a||{},(i=(i=h.Format||(h.Format={})).CSS||(i.CSS={})).formatRGB=function(e){return 1===e.rgba.a?`rgb(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b})`:h.Format.CSS.formatRGBA(e)},i.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`},i.formatHSL=function(e){return 1===e.hsla.a?`hsl(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%)`:h.Format.CSS.formatHSLA(e)},i.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`},i.formatHex=function(e){return"#"+l(e.rgba.r)+l(e.rgba.g)+l(e.rgba.b)},i.formatHexA=function(e,t=!1){return t&&1===e.rgba.a?h.Format.CSS.formatHex(e):"#"+l(e.rgba.r)+l(e.rgba.g)+l(e.rgba.b)+l(Math.round(255*e.rgba.a))},i.format=function(e){return e.isOpaque()?h.Format.CSS.formatHex(e):h.Format.CSS.formatRGBA(e)},i.parseHex=function(e){var t,i,n,r,s=e.length;return 0===s||35!==e.charCodeAt(0)?null:7===s?(i=16*d(e.charCodeAt(1))+d(e.charCodeAt(2)),n=16*d(e.charCodeAt(3))+d(e.charCodeAt(4)),r=16*d(e.charCodeAt(5))+d(e.charCodeAt(6)),new h(new o(i,n,r,1))):9===s?(i=16*d(e.charCodeAt(1))+d(e.charCodeAt(2)),n=16*d(e.charCodeAt(3))+d(e.charCodeAt(4)),r=16*d(e.charCodeAt(5))+d(e.charCodeAt(6)),t=16*d(e.charCodeAt(7))+d(e.charCodeAt(8)),new h(new o(i,n,r,t/255))):4===s?(i=d(e.charCodeAt(1)),n=d(e.charCodeAt(2)),r=d(e.charCodeAt(3)),new h(new o(16*i+i,16*n+n,16*r+r))):5===s?(t=d(e.charCodeAt(1)),i=d(e.charCodeAt(2)),n=d(e.charCodeAt(3)),r=d(e.charCodeAt(4)),new h(new o(16*t+t,16*i+i,16*n+n,(16*r+r)/255))):null}},cf78:function(e,t,i){"use strict";i.r(t),i.d(t,"ModuleKind",(function(){return n})),i.d(t,"JsxEmit",(function(){return o})),i.d(t,"NewLineKind",(function(){return r})),i.d(t,"ScriptTarget",(function(){return s})),i.d(t,"ModuleResolutionKind",(function(){return a})),i.d(t,"typescriptVersion",(function(){return h})),i.d(t,"typescriptDefaults",(function(){return c})),i.d(t,"javascriptDefaults",(function(){return u})),i.d(t,"getTypeScriptWorker",(function(){return g})),i.d(t,"getJavaScriptWorker",(function(){return p})),i("33f9");var n,o,r,s,a,l=i("bf44");(t=n=n||{})[t.None=0]="None",t[t.CommonJS=1]="CommonJS",t[t.AMD=2]="AMD",t[t.UMD=3]="UMD",t[t.System=4]="System",t[t.ES2015=5]="ES2015",t[t.ESNext=99]="ESNext",(t=o=o||{})[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",t[t.ReactJSX=4]="ReactJSX",t[t.ReactJSXDev=5]="ReactJSXDev",(t=r=r||{})[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",(t=s=s||{})[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest",(t=a=a||{})[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",Object.defineProperty(d.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"workerOptions",{get:function(){return this._workerOptions},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"inlayHintsOptions",{get:function(){return this._inlayHintsOptions},enumerable:!1,configurable:!0}),d.prototype.getExtraLibs=function(){return this._extraLibs},d.prototype.addExtraLib=function(e,t){var i,n=this,o=void 0===t?"ts:extralib-"+Math.random().toString(36).substring(2,15):t;return this._extraLibs[o]&&this._extraLibs[o].content===e?{dispose:function(){}}:(i=1,this._removedExtraLibs[o]&&(i=this._removedExtraLibs[o]+1),this._extraLibs[o]&&(i=this._extraLibs[o].version+1),this._extraLibs[o]={content:e,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var e=n._extraLibs[o];e&&e.version===i&&(delete n._extraLibs[o],n._removedExtraLibs[o]=i,n._fireOnDidExtraLibsChangeSoon())}})},d.prototype.setExtraLibs=function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&0<e.length)for(var i=0,n=e;i<n.length;i++){var o=n[i],r=(t=o.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),o=o.content,1);this._removedExtraLibs[t]&&(r=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:o,version:r}}this._fireOnDidExtraLibsChangeSoon()},d.prototype._fireOnDidExtraLibsChangeSoon=function(){var e=this;-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=setTimeout((function(){e._onDidExtraLibsChangeTimeout=-1,e._onDidExtraLibsChange.fire(void 0)}),0))},d.prototype.getCompilerOptions=function(){return this._compilerOptions},d.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},d.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},d.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)},d.prototype.setWorkerOptions=function(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},d.prototype.setInlayHintsOptions=function(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)},d.prototype.setMaximumWorkerIdleTime=function(e){},d.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},d.prototype.getEagerModelSync=function(){return this._eagerModelSync},t=d;function d(e,t,i,n){this._onDidChange=new l.Emitter,this._onDidExtraLibsChange=new l.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this._onDidExtraLibsChangeTimeout=-1}var h="4.4.2",c=new t({allowNonTsExtensions:!0,target:s.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),u=new t({allowNonTsExtensions:!0,allowJs:!0,target:s.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),g=function(){return m().then((function(e){return e.getTypeScriptWorker()}))},p=function(){return m().then((function(e){return e.getJavaScriptWorker()}))};function m(){return i.e("chunk-2d22502a").then(i.bind(null,"e328"))}l.languages.typescript={ModuleKind:n,JsxEmit:o,NewLineKind:r,ScriptTarget:s,ModuleResolutionKind:a,typescriptVersion:h,typescriptDefaults:c,javascriptDefaults:u,getTypeScriptWorker:g,getJavaScriptWorker:p},l.languages.onLanguage("typescript",(function(){return m().then((function(e){return e.setupTypeScript(c)}))})),l.languages.onLanguage("javascript",(function(){return m().then((function(e){return e.setupJavaScript(u)}))}))},d093:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o})),i.d(t,"c",(function(){return r})),i.d(t,"d",(function(){return a}));const n="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",o=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of n)0<=e.indexOf(i)||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function r(e){let t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const s={maxLen:1e3,windowSize:15,timeBudget:150};function a(e,t,i,n,o=s){if(i.length>o.maxLen){let r=e-o.maxLen/2;return r<0?r=0:n+=r,a(e,t,i=i.substring(r,e+o.maxLen/2),n,o)}var r=Date.now(),l=e-1-n;let d=-1,h=null;for(let s=1;!(Date.now()-r>=o.timeBudget);s++){var c=l-o.windowSize*s,u=(t.lastIndex=Math.max(0,c),function(e,t,i,n){for(var o;o=e.exec(t);){var r=o.index||0;if(r<=i&&e.lastIndex>=i)return o;if(0<n&&n<r)return null}return null}(t,i,l,d));if(!u&&h)break;if(h=u,c<=0)break;d=c}return h?(e={word:h[0],startColumn:n+1+h.index,endColumn:n+1+h.index+h[0].length},t.lastIndex=0,e):null}},d0b6:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i("1569"),o=i("308f"),r=(t=i("a666"),i("aa3d")),s=i("6a89");const a={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class l extends t.a{constructor(e,t={}){super(),this._onDidUpdate=this._register(new o.b),this._editor=e,this._options=r.f(t,a,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(e=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(e=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(e=>{!this._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(e=>{this.ranges.push({rhs:!0,range:new s.a(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):this.ranges.push({rhs:!0,range:new s.a(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})}),this.ranges.sort((e,t)=>e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1;var i=this._editor.getPosition();if(i){for(let o=0,r=this.ranges.length;o<r&&!t;o++){var n=this.ranges[o].range;i.isBeforeOrEqual(n.getStartPosition())&&(this.nextIdx=o+(e?0:-1),t=!0)}t||(this.nextIdx=e?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0}_move(e,t){if(n.a(!this.disposed,"Illegal State - diff navigator has been disposed"),this.canNavigate()){-1===this.nextIdx?this._initIdx(e):e?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(--this.nextIdx,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)),e=this.ranges[this.nextIdx],this.ignoreSelectionChange=!0;try{var i=e.range.getStartPosition();this._editor.setPosition(i),this._editor.revealPositionInCenter(i,t)}finally{this.ignoreSelectionChange=!1}}}canNavigate(){return this.ranges&&0<this.ranges.length}next(e=0){this._move(!0,e)}previous(e=0){this._move(!1,e)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}},d1a7:function(e,t,i){"use strict";i.d(t,"a",(function(){return O})),i.d(t,"b",(function(){return E})),i.d(t,"c",(function(){return I}));var n=i("308f"),o=i("a666"),r=i("30db"),s=i("fdcc"),a=i("fd49"),l=i("b57f"),d=i("b707"),h=i("32a4"),c=(t=i("7b4a"),i("fbba")),u=i("5fe7"),g=i("2504"),p=i("b7d0"),m=i("d3d7"),f=i("3803"),_=i("eda7"),b=i("a054"),v=i("b589"),C=i("252f"),w=i("74ce"),y=i("aa3d"),S=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}});function L(e){return e.toString()}function x(e){for(var t,i=new _.a,n=e.createSnapshot();t=n.read();)i.update(t);return i.digest()}class k{constructor(e,t,i){this._modelEventListeners=new o.b,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(t=>i(e,t)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(e.languageIdentifier)),this.model.setMode(e.languageIdentifier)}}const D=r.d||r.f?1:2;class N{constructor(e,t,i,n,o,r,s,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=o,this.sha1=r,this.versionId=s,this.alternativeVersionId=a}}let O=class e extends o.a{constructor(e,t,i,o,r){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=i,this._logService=o,this._undoRedoService=r,this._onModelAdded=this._register(new n.b),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new n.b),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new n.b),this.onModelModeChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new T(this._themeService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new M(this,this._themeService,this._configurationService,this._semanticStyling))}static _readModelOptions(e,t){let i=a.d.tabSize,n=i=e.editor&&void 0!==e.editor.tabSize&&(s=parseInt(e.editor.tabSize,10),(i=isNaN(s)?i:s)<1)?1:i,o=(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize&&(s=parseInt(e.editor.indentSize,10),(n=isNaN(s)?n:s)<1)&&(n=1),a.d.insertSpaces),r=(e.editor&&void 0!==e.editor.insertSpaces&&(o="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces)),D);var s=e.eol;"\r\n"===s?r=2:"\n"===s&&(r=1);let l=a.d.trimAutoWhitespace,d=(e.editor&&void 0!==e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace)),a.d.detectIndentation),h=(e.editor&&void 0!==e.editor.detectIndentation&&(d="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation)),a.d.largeFileOptimizations),c=(e.editor&&void 0!==e.editor.largeFileOptimizations&&(h="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),a.d.bracketPairColorizationOptions);return null!=(s=e.editor)&&s.bracketPairColorization&&"object"==typeof e.editor.bracketPairColorization&&(c={enabled:!!e.editor.bracketPairColorization.enabled}),{isForSimpleWidget:t,tabSize:i,indentSize:n,insertSpaces:o,detectIndentation:d,defaultEOL:r,trimAutoWhitespace:l,largeFileOptimizations:h,bracketPairColorizationOptions:c}}_getEOL(e,t){return e?this._resourcePropertiesService.getEOL(e,t):(e=this._configurationService.getValue("files.eol",{overrideIdentifier:t}))&&"string"==typeof e&&"auto"!==e?e:3===r.a||2===r.a?"\n":"\r\n"}_shouldRestoreUndoStack(){var e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!=typeof e||e}getCreationOptions(t,i,n){let o=this._modelCreationOptionsByLanguageAndResource[t+i];var r,s;return o||(r=this._configurationService.getValue("editor",{overrideIdentifier:t,resource:i}),s=this._getEOL(i,t),o=e._readModelOptions({editor:r,eol:s},n),this._modelCreationOptionsByLanguageAndResource[t+i]=o),o}_updateModelOptions(){var t=this._modelCreationOptionsByLanguageAndResource,i=(this._modelCreationOptionsByLanguageAndResource=Object.create(null),Object.keys(this._models));for(let a=0,l=i.length;a<l;a++){var n=i[a],o=(n=this._models[n],n.model.getLanguageIdentifier().language),r=n.model.uri,s=t[o+r];o=this.getCreationOptions(o,r,n.model.isForSimpleWidget);e._setModelOptionsForModel(n.model,o,s)}}static _setModelOptionsForModel(e,t,i){i&&i.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),i&&i.detectIndentation===t.detectIndentation&&i.insertSpaces===t.insertSpaces&&i.tabSize===t.tabSize&&i.indentSize===t.indentSize&&i.trimAutoWhitespace===t.trimAutoWhitespace&&Object(y.d)(i.bracketPairColorizationOptions,t.bracketPairColorizationOptions)||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace,bracketColorizationOptions:t.bracketPairColorizationOptions}))}_insertDisposedModel(e){this._disposedModels.set(L(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){var t=this._disposedModels.get(L(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(L(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const i=[];for(this._disposedModels.forEach(e=>{e.sharesUndoRedoStack||i.push(e)}),i.sort((e,t)=>e.time-t.time);0<i.length&&this._disposedModelsHeapSize>e;){var t=i.shift();this._removeDisposedModel(t.uri),null!==t.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(t.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){n=this.getCreationOptions(t.language,i,n);var o=new l.b(e,n,t,i,this._undoRedoService);if(i&&this._disposedModels.has(L(i)))if(e=this._removeDisposedModel(i),n=this._undoRedoService.getElements(i),t=x(o)===e.sha1,t||e.sharesUndoRedoStack){for(const e of n.past)Object(b.b)(e)&&e.matchesResource(i)&&e.setModel(o);for(const e of n.future)Object(b.b)(e)&&e.matchesResource(i)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(i,!0,e=>Object(b.b)(e)&&e.matchesResource(i)),t&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot);if(n=L(o.uri),this._models[n])throw new Error("ModelService: Cannot add model because it already exists!");return t=new k(o,e=>this._onWillDispose(e),(e,t)=>this._onDidChangeLanguage(e,t)),this._models[n]=t}createModel(e,t,i,n=!1){let o;return t?(o=this._createModelData(e,t.languageIdentifier,i,n),this.setMode(o.model,t)):o=this._createModelData(e,h.b,i,n),this._onModelAdded.fire(o.model),o.model}setMode(e,t){t&&(e=this._models[L(e.uri)])&&e.setLanguage(t)}getModels(){var e=[],t=Object.keys(this._models);for(let n=0,o=t.length;n<o;n++){var i=t[n];e.push(this._models[i].model)}return e}getModel(e){return e=L(e),e=this._models[e],e?e.model:null}getSemanticTokensProviderStyling(e){return this._semanticStyling.get(e)}_onWillDispose(t){var i=L(t.uri),n=this._models[i],o=this._undoRedoService.getUriComparisonKey(t.uri)!==t.uri.toString();let r=!1,s=0;if(o||this._shouldRestoreUndoStack()&&((a=t.uri).scheme===v.c.file||a.scheme===v.c.vscodeRemote||a.scheme===v.c.userData||a.scheme===v.c.vscodeNotebookCell||"fake-fs"===a.scheme)){var a=this._undoRedoService.getElements(t.uri);if(0<a.past.length||0<a.future.length){for(const e of a.past)Object(b.b)(e)&&e.matchesResource(t.uri)&&(r=!0,s+=e.heapSize(t.uri),e.setModel(t.uri));for(const e of a.future)Object(b.b)(e)&&e.matchesResource(t.uri)&&(r=!0,s+=e.heapSize(t.uri),e.setModel(t.uri))}}var l,d=e.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;r?!o&&s>d?null!==(l=n.model.getInitialUndoRedoSnapshot())&&this._undoRedoService.restoreSnapshot(l):(this._ensureDisposedModelsHeapSize(d-s),this._undoRedoService.setElementsValidFlag(t.uri,!1,e=>Object(b.b)(e)&&e.matchesResource(t.uri)),this._insertDisposedModel(new N(t.uri,n.model.getInitialUndoRedoSnapshot(),Date.now(),o,s,x(t),t.getVersionId(),t.getAlternativeVersionId()))):o||null!==(l=n.model.getInitialUndoRedoSnapshot())&&this._undoRedoService.restoreSnapshot(l),delete this._models[i],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[t.getLanguageIdentifier().language+t.uri],this._onModelRemoved.fire(t)}_onDidChangeLanguage(t,i){i=i.oldLanguage;var n=t.getLanguageIdentifier().language,o=this.getCreationOptions(i,t.uri,t.isForSimpleWidget);n=this.getCreationOptions(n,t.uri,t.isForSimpleWidget);e._setModelOptionsForModel(t,n,o),this._onModelModeChanged.fire({model:t,oldModeId:i})}};O.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,O=i([S(0,c.a),S(1,t.b),S(2,p.b),S(3,m.b),S(4,f.a)],O);const E="editor.semanticHighlighting";function I(e,t,i){return e=null==(i=i.getValue(E,{overrideIdentifier:e.getLanguageIdentifier().language,resource:e.uri}))?void 0:i.enabled,"boolean"==typeof e?e:t.getColorTheme().semanticHighlighting}class M extends o.a{constructor(e,t,i,n){super(),this._watchers=Object.create(null),this._semanticStyling=n;const o=e=>{this._watchers[e.uri.toString()]=new R(e,t,this._semanticStyling)},r=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},s=()=>{for(var n of e.getModels()){var s=this._watchers[n.uri.toString()];I(n,t,i)?s||o(n):s&&r(n,s)}};this._register(e.onModelAdded(e=>{I(e,t,i)&&o(e)})),this._register(e.onModelRemoved(e=>{var t=this._watchers[e.uri.toString()];t&&r(e,t)})),this._register(i.onDidChangeConfiguration(e=>{e.affectsConfiguration(E)&&s()})),this._register(t.onDidColorThemeChange(s))}}class T extends o.a{constructor(e,t){super(),this._themeService=e,this._logService=t,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(e){return this._caches.has(e)||this._caches.set(e,new C.a(e.getLegend(),this._themeService,this._logService)),this._caches.get(e)}}class A{constructor(e,t,i){this._provider=e,this.resultId=t,this.data=i}dispose(){this._provider.releaseDocumentSemanticTokens(this.resultId)}}class R extends o.a{constructor(e,t,i){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=i,this._fetchDocumentSemanticTokens=this._register(new u.e(()=>this._fetchDocumentSemanticTokensNow(),R.FETCH_DOCUMENT_SEMANTIC_TOKENS_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const n=()=>{Object(o.f)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of d.l.all(e))"function"==typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};n(),this._register(d.l.onDidChange(()=>{n(),this._fetchDocumentSemanticTokens.schedule()})),this._register(t.onDidColorThemeChange(e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule()})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(!this._currentDocumentRequestCancellationTokenSource){var e=new g.b,t=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null;t=Object(w.b)(this._model,t,e.token);if(t){const{provider:i,request:n}=t,o=(this._currentDocumentRequestCancellationTokenSource=e,[]),r=this._model.onDidChangeContent(e=>{o.push(e)}),a=this._semanticStyling.get(i);n.then(e=>{this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),this._setDocumentSemanticTokens(i,e||null,a,o)},e=>{e&&(s.e(e)||"string"==typeof e.message&&-1!==e.message.indexOf("busy"))||s.f(e),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),0<o.length&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule())})}else this._currentDocumentResponse&&this._model.setSemanticTokens(null,!1)}}static _copy(e,t,i,n,o){for(let r=0;r<o;r++)i[n+r]=e[t+r]}_setDocumentSemanticTokens(e,t,i,n){var o=this._currentDocumentResponse,r=()=>{0<n.length&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule()};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&i){if(t){if(Object(w.d)(t)){if(!o)return void this._model.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:o.data};else{let e=0;for(const o of t.edits)e+=(o.data?o.data.length:0)-o.deleteCount;var s=o.data,a=new Uint32Array(s.length+e);let i=s.length,n=a.length;for(let o=t.edits.length-1;0<=o;o--){var l=t.edits[o],d=i-(l.start+l.deleteCount);0<d&&(R._copy(s,i-d,a,n-d,d),n-=d),l.data&&(R._copy(l.data,0,a,n-l.data.length,l.data.length),n-=l.data.length),i=l.start}0<i&&R._copy(s,0,a,0,i),t={resultId:t.resultId,data:a}}}if(Object(w.c)(t)){this._currentDocumentResponse=new A(e,t.resultId,t.data);var h=Object(C.b)(t,i,this._model.getLanguageIdentifier());if(0<n.length)for(const e of n)for(const t of h)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.setSemanticTokens(h,!0)}else this._model.setSemanticTokens(null,!0)}else this._model.setSemanticTokens(null,!0);r()}else this._model.setSemanticTokens(null,!1)}}R.FETCH_DOCUMENT_SEMANTIC_TOKENS_DELAY=300},d1c2:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:function(){return i.e("chunk-2d0a4bbf").then(i.bind(null,"0867"))}})},d282:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return i.e("chunk-2d0aa90c").then(i.bind(null,"120e"))}})},d2ce:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return i.e("chunk-2d0a40c8").then(i.bind(null,"057d"))}}),Object(t.a)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return i.e("chunk-2d0a40c8").then(i.bind(null,"057d"))}})},d379:function(e,t,i){"use strict";i.d(t,"a",(function(){return u}));var n=i("aa3d"),o=(t=i("5717"),i("9c1d")),r=i("9e74"),s=i("4fc3"),a=i("0a0f"),l=i("b0cd"),d=i("b7d0"),h=(i=i("4779"),function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}),c=function(e,t){return function(i,n){t(i,n,e)}};let u=class extends o.a{constructor(e,t,i,n,o,r,s,a,l,d){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,o,r,s,a,l,d),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration(e=>this._onParentConfigurationChanged(e)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){n.f(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};u=h([c(3,a.a),c(4,t.a),c(5,r.b),c(6,s.b),c(7,d.b),c(8,l.a),c(9,i.b)],u)},d3d7:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return l})),i.d(t,"d",(function(){return d}));var n,o=i("308f");t=i("a666"),i=i("0a0f");const r=Object(i.c)("logService"),s=((i=n=n||{})[i.Trace=0]="Trace",i[i.Debug=1]="Debug",i[i.Info=2]="Info",i[i.Warning=3]="Warning",i[i.Error=4]="Error",i[i.Critical=5]="Critical",i[i.Off=6]="Off",n.Info);class a extends t.a{constructor(){super(...arguments),this.level=s,this._onDidChangeLogLevel=this._register(new o.b)}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}class l extends a{constructor(e=s){super(),this.setLevel(e)}trace(e){this.getLevel(),n.Trace}debug(e){this.getLevel(),n.Debug}info(e){this.getLevel(),n.Info}error(e){this.getLevel(),n.Error}dispose(){}}class d extends t.a{constructor(e){super(),this.logger=e,this._register(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}error(e,...t){this.logger.error(e,...t)}}},d3ef:function(e,t,i){"use strict";i.d(t,"b",(function(){return _})),i.d(t,"a",(function(){return b}));var n=i("11f7"),o=i("e32d"),r=i("31df"),s=i("5aa5"),a=i("3813"),l=i("1898"),d=(t=i("1b7d"),i("ceb8")),h=i("308f");class c{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class u{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();var e=this._elements;this._navigator=new c(e,0,e.length,e.length)}_reduceToLimit(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){var e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach(t=>e.push(t)),e}}var g=i("aa3d"),p=(i("8bf4"),i("dff7"));const m=n.a,f={inputBackground:d.a.fromHex("#3C3C3C"),inputForeground:d.a.fromHex("#CCCCCC"),inputValidationInfoBorder:d.a.fromHex("#55AAFF"),inputValidationInfoBackground:d.a.fromHex("#063B49"),inputValidationWarningBorder:d.a.fromHex("#B89500"),inputValidationWarningBackground:d.a.fromHex("#352A05"),inputValidationErrorBorder:d.a.fromHex("#BE1100"),inputValidationErrorBackground:d.a.fromHex("#5A1D1D")};class _ extends t.a{constructor(e,t,i){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new h.b),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new h.b),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i||Object.create(null),Object(g.f)(this.options,f,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!=(t=this.options.tooltip)?t:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.q(e,m(".monaco-inputbox.idle"));i=this.options.flexibleHeight?"textarea":"input";let r=n.q(this.element,m(".ibwrapper"));this.input=n.q(r,m(i+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight?(this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.q(r,m("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new l.b(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.q(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(e=>this.input.scrollTop=e.scrollTop)),t=this._register(new o.a(document,"selectionchange")),i=h.c.filter(t.event,()=>{var e=document.getSelection();return(null==e?void 0:e.anchorNode)===r}),this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))):(this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off")),this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new s.a(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}setAriaLabel(e){(this.ariaLabel=e)?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:n.H(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length)&&(this.input.scrollLeft=this.input.scrollWidth)}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return n.I(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let n=0;var t,i;this.mirror&&(t=parseFloat(this.mirror.style.paddingLeft||"")||0,i=parseFloat(this.mirror.style.paddingRight||"")||0,n=t+i),this.input.style.width=e-n+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width=`calc(100% - ${e}px)`:this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){var e,t,i;"number"==typeof this.cachedContentHeight&&"number"==typeof this.cachedHeight&&this.scrollableElement&&(e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop,this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i}))}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type)),e=this.stylesForType(this.message.type),this.element.style.border=e.border?"1px solid "+e.border:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null===e||void 0===e?void 0:e.type}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(this.contextViewProvider&&this.message){let e,t,i=()=>e.style.width=n.I(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:t=>{var o;return this.message&&(e=n.q(t,m(".monaco-inputbox-container")),i(),t={inline:!0,className:"monaco-inputbox-message"},(t=(this.message.formatContent?Object(r.b):Object(r.c))(this.message.content,t)).classList.add(this.classForType(this.message.type)),o=this.stylesForType(this.message.type),t.style.backgroundColor=o.background?o.background.toString():"",t.style.color=o.foreground?o.foreground.toString():"",t.style.border=o.border?"1px solid "+o.border:"",n.q(e,t)),null},onHide:()=>{this.state="closed"},layout:i}),t=3===this.message.type?p.a("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?p.a("alertWarningMessage","Warning: {0}",this.message.content):p.a("alertInfoMessage","Info: {0}",this.message.content),a.a(t),this.state="open"}}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){var e,t;this.mirror&&(t=10===(e=this.value).charCodeAt(e.length-1)?" ":"",(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText=" ",this.layout())}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){var e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",i=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}layout(){var e;this.mirror&&(e=this.cachedContentHeight,this.cachedContentHeight=n.H(this.mirror),e!==this.cachedContentHeight)&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){var t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;null!==i&&null!==n&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class b extends _{constructor(e,t,i){super(e,t,i),this.history=new u(i.history,100)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();(e=e&&(e===this.value?this.getNextValue():e))&&(this.value=e,a.c(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();(e=e&&(e===this.value?this.getPreviousValue():e))&&(this.value=e,a.c(this.value))}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}},d3f4:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("6a89");class o{static insert(e,t){return{range:new n.a(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},d48d:function(e,t,i){"use strict";i.d(t,"a",(function(){return d})),i.d(t,"b",(function(){return h}));var n=i("3742"),o=i("2e5d"),r=i("b272"),s=i("e6ff"),a=i("7061"),l=i("6a89");class d{static _createWord(e,t,i,n,o){return{start:n,end:o,wordType:t,nextCharClass:i}}static _findPreviousWordOnLine(e,t,i){return t=t.getLineContent(i.lineNumber),this._doFindPreviousWordOnLine(t,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0;for(let r=i.column-2;0<=r;r--){var o=e.charCodeAt(r);o=t.get(o);if(0===o){if(2===n)return this._createWord(e,n,o,r+1,this._findEndOfWord(e,t,n,r+1));n=1}else if(2===o){if(1===n)return this._createWord(e,n,o,r+1,this._findEndOfWord(e,t,n,r+1));n=2}else if(1===o&&0!==n)return this._createWord(e,n,o,r+1,this._findEndOfWord(e,t,n,r+1))}return 0!==n?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){var o=e.length;for(let s=n;s<o;s++){var r=e.charCodeAt(s);r=t.get(r);if(1===r)return s;if(1===i&&2===r)return s;if(2===i&&0===r)return s}return o}static _findNextWordOnLine(e,t,i){return t=t.getLineContent(i.lineNumber),this._doFindNextWordOnLine(t,e,i)}static _doFindNextWordOnLine(e,t,i){let n=0;var o=e.length;for(let s=i.column-1;s<o;s++){var r=e.charCodeAt(s);r=t.get(r);if(0===r){if(2===n)return this._createWord(e,n,r,this._findStartOfWord(e,t,n,s-1),s);n=1}else if(2===r){if(1===n)return this._createWord(e,n,r,this._findStartOfWord(e,t,n,s-1),s);n=2}else if(1===r&&0!==n)return this._createWord(e,n,r,this._findStartOfWord(e,t,n,s-1),s)}return 0!==n?this._createWord(e,n,1,this._findStartOfWord(e,t,n,o-1),o):null}static _findStartOfWord(e,t,i,n){for(let r=n;0<=r;r--){var o=e.charCodeAt(r);o=t.get(o);if(1===o)return r+1;if(1===i&&2===o)return r+1;if(2===i&&0===o)return r+1}return 0}static moveWordLeft(e,t,i,n){let o=i.lineNumber,r=i.column,s=(1===r&&1<o&&(o-=1,r=t.getLineMaxColumn(o)),d._findPreviousWordOnLine(e,t,new a.a(o,r)));if(0!==n)if(1===n)s&&2===s.wordType&&s.end-s.start==1&&0===s.nextCharClass&&(s=d._findPreviousWordOnLine(e,t,new a.a(o,s.start+1)));else{if(3!==n)return s&&r<=s.end+1&&(s=d._findPreviousWordOnLine(e,t,new a.a(o,s.start+1))),new a.a(o,s?s.end+1:1);for(;s&&2===s.wordType;)s=d._findPreviousWordOnLine(e,t,new a.a(o,s.start+1))}return new a.a(o,s?s.start+1:1)}static _moveWordPartLeft(e,t){var i=t.lineNumber,o=e.getLineMaxColumn(i);if(1===t.column)return 1<i?new a.a(i-1,e.getLineMaxColumn(i-1)):t;var r=e.getLineContent(i);for(let d=t.column-1;1<d;d--){var s=r.charCodeAt(d-2),l=r.charCodeAt(d-1);if(95===s&&95!==l)return new a.a(i,d);if(n.G(s)&&n.H(l))return new a.a(i,d);if(n.H(s)&&n.H(l)&&d+1<o&&(s=r.charCodeAt(d),n.G(s)))return new a.a(i,d)}return new a.a(i,1)}static moveWordRight(e,t,i,n){let o=i.lineNumber,r=i.column,s=!1,l=(r===t.getLineMaxColumn(o)&&o<t.getLineCount()&&(s=!0,o+=1,r=1),d._findNextWordOnLine(e,t,new a.a(o,r)));if(2===n)l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=d._findNextWordOnLine(e,t,new a.a(o,l.end+1))),r=l?l.end+1:t.getLineMaxColumn(o);else{if(3===n)for(s&&(r=0);l&&(2===l.wordType||l.start+1<=r);)l=d._findNextWordOnLine(e,t,new a.a(o,l.end+1));else l&&!s&&r>=l.start+1&&(l=d._findNextWordOnLine(e,t,new a.a(o,l.end+1)));r=l?l.start+1:t.getLineMaxColumn(o)}return new a.a(o,r)}static _moveWordPartRight(e,t){var i=t.lineNumber,o=e.getLineMaxColumn(i);if(t.column===o)return i<e.getLineCount()?new a.a(i+1,1):t;var r=e.getLineContent(i);for(let d=t.column+1;d<o;d++){var s=r.charCodeAt(d-2),l=r.charCodeAt(d-1);if(95!==s&&95===l)return new a.a(i,d);if(n.G(s)&&n.H(l))return new a.a(i,d);if(n.H(s)&&n.H(l)&&d+1<o&&(s=r.charCodeAt(d),n.G(s)))return new a.a(i,d)}return new a.a(i,o)}static _deleteWordLeftWhitespace(e,t){e=e.getLineContent(t.lineNumber);var i=t.column-2;e=n.I(e,i);return e+1<i?new l.a(t.lineNumber,e+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){var i=e.wordSeparators,n=e.model,o=e.selection,s=e.whitespaceHeuristics;if(!o.isEmpty())return o;if(r.a.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){const t=e.selection.getPosition();return new l.a(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}const h=new a.a(o.positionLineNumber,o.positionColumn);let c=h.lineNumber,u=h.column;if(1===c&&1===u)return null;if(s&&(e=this._deleteWordLeftWhitespace(n,h),e))return e;let g=d._findPreviousWordOnLine(i,n,h);return u=0===t?g?g.start+1:1<u?1:(c--,n.getLineMaxColumn(c)):(g=g&&u<=g.end+1?d._findPreviousWordOnLine(i,n,new a.a(c,g.start+1)):g)?g.end+1:1<u?1:(c--,n.getLineMaxColumn(c)),new l.a(c,u,h.lineNumber,h.column)}static deleteInsideWord(e,t,i){var n;return i.isEmpty()?(n=new a.a(i.positionLineNumber,i.positionColumn),this._deleteInsideWordWhitespace(t,n)||this._deleteInsideWordDetermineDeleteRange(e,t,n)):i}static _charAtIsWhitespace(e,t){return e=e.charCodeAt(t),32===e||9===e}static _deleteInsideWordWhitespace(e,t){var i=e.getLineContent(t.lineNumber),n=i.length;if(0===n)return null;let o=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,o))return null;let r=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,r))return null;for(;0<o&&this._charAtIsWhitespace(i,o-1);)o--;for(;r+1<n&&this._charAtIsWhitespace(i,r+1);)r++;return new l.a(t.lineNumber,o+1,t.lineNumber,r+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){const n=t.getLineContent(i.lineNumber),o=n.length;if(0===o)return 1<i.lineNumber?new l.a(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new l.a(i.lineNumber,1,i.lineNumber+1,1):new l.a(i.lineNumber,1,i.lineNumber,1);var r=e=>e.start+1<=i.column&&i.column<=e.end+1;const s=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.a(i.lineNumber,e,i.lineNumber,t));var a=e=>{let t=e.start+1,i=e.end+1,r=!1;for(;i-1<o&&this._charAtIsWhitespace(n,i-1);)r=!0,i++;if(!r)for(;1<t&&this._charAtIsWhitespace(n,t-2);)t--;return s(t,i)},h=d._findPreviousWordOnLine(e,t,i);return h&&r(h)?a(h):(e=d._findNextWordOnLine(e,t,i))&&r(e)?a(e):h&&e?s(h.end+1,e.start+1):h?s(h.start+1,h.end+1):e?s(e.start+1,e.end+1):s(1,o+1)}static _deleteWordPartLeft(e,t){var i;return t.isEmpty()?(i=t.getPosition(),e=d._moveWordPartLeft(e,i),new l.a(i.lineNumber,i.column,e.lineNumber,e.column)):t}static _findFirstNonWhitespaceChar(e,t){var i=e.length;for(let o=t;o<i;o++){var n=e.charAt(o);if(" "!==n&&"\t"!==n)return o}return i}static _deleteWordRightWhitespace(e,t){e=e.getLineContent(t.lineNumber);var i=t.column-1;e=this._findFirstNonWhitespaceChar(e,i);return 1+i<e?new l.a(t.lineNumber,t.column,t.lineNumber,e+1):null}static deleteWordRight(e,t){var i=e.wordSeparators,n=e.model,o=e.selection;e=e.whitespaceHeuristics;if(!o.isEmpty())return o;o=new a.a(o.positionLineNumber,o.positionColumn);let r=o.lineNumber,s=o.column;var h=n.getLineCount(),c=n.getLineMaxColumn(r);if(r===h&&s===c)return null;if(e&&(e=this._deleteWordRightWhitespace(n,o),e))return e;let u=d._findNextWordOnLine(i,n,o);return s=2===t?u?u.end+1:s<c||r===h?c:(r++,(u=d._findNextWordOnLine(i,n,new a.a(r,1)))?u.start+1:n.getLineMaxColumn(r)):(u=u&&s>=u.start+1?d._findNextWordOnLine(i,n,new a.a(r,u.end+1)):u)?u.start+1:s<c||r===h?c:(r++,(u=d._findNextWordOnLine(i,n,new a.a(r,1)))?u.start+1:n.getLineMaxColumn(r)),new l.a(r,s,o.lineNumber,o.column)}static _deleteWordPartRight(e,t){var i;return t.isEmpty()?(i=t.getPosition(),e=d._moveWordPartRight(e,i),new l.a(i.lineNumber,i.column,e.lineNumber,e.column)):t}static _createWordAtPosition(e,t,i){return t=new l.a(t,i.start+1,t,i.end+1),{word:e.getValueInRange(t),startColumn:t.startColumn,endColumn:t.endColumn}}static getWordAtPosition(e,t,i){t=Object(s.a)(t);var n=d._findPreviousWordOnLine(t,e,i);return n&&1===n.wordType&&n.start<=i.column-1&&i.column-1<=n.end||(n=d._findNextWordOnLine(t,e,i))&&1===n.wordType&&n.start<=i.column-1&&i.column-1<=n.end?d._createWordAtPosition(e,i.lineNumber,n):null}static word(e,t,i,n,r){e=Object(s.a)(e.wordSeparators);var h=d._findPreviousWordOnLine(e,t,r);e=d._findNextWordOnLine(e,t,r);if(!n){let i,n;return n=h&&1===h.wordType&&h.start<=r.column-1&&r.column-1<=h.end?(i=h.start+1,h.end+1):e&&1===e.wordType&&e.start<=r.column-1&&r.column-1<=e.end?(i=e.start+1,e.end+1):(i=h?h.end+1:1,e?e.start+1:t.getLineMaxColumn(r.lineNumber)),new o.f(new l.a(r.lineNumber,i,r.lineNumber,n),0,new a.a(r.lineNumber,n),0)}let c,u,g;return u=h&&1===h.wordType&&h.start<r.column-1&&r.column-1<h.end?(c=h.start+1,h.end+1):e&&1===e.wordType&&e.start<r.column-1&&r.column-1<e.end?(c=e.start+1,e.end+1):(c=r.column,r.column),n=r.lineNumber,i.selectionStart.containsPosition(r)?g=i.selectionStart.endColumn:r.isBeforeOrEqual(i.selectionStart.getStartPosition())?(g=c,t=new a.a(n,g),i.selectionStart.containsPosition(t)&&(g=i.selectionStart.endColumn)):(g=u,h=new a.a(n,g),i.selectionStart.containsPosition(h)&&(g=i.selectionStart.startColumn)),i.move(!0,n,g,0)}}class h extends d{static deleteWordPartLeft(e){return e=c([d.deleteWordLeft(e,0),d.deleteWordLeft(e,2),d._deleteWordPartLeft(e.model,e.selection)]),e.sort(l.a.compareRangesUsingEnds),e[2]}static deleteWordPartRight(e){return e=c([d.deleteWordRight(e,0),d.deleteWordRight(e,2),d._deleteWordPartRight(e.model,e.selection)]),e.sort(l.a.compareRangesUsingStarts),e[0]}static moveWordPartLeft(e,t,i){return e=c([d.moveWordLeft(e,t,i,0),d.moveWordLeft(e,t,i,2),d._moveWordPartLeft(t,i)]),e.sort(a.a.compare),e[2]}static moveWordPartRight(e,t,i){return e=c([d.moveWordRight(e,t,i,0),d.moveWordRight(e,t,i,2),d._moveWordPartRight(t,i)]),e.sort(a.a.compare),e[0]}}function c(e){return e.filter(e=>Boolean(e))}},d585:function(e,t,i){"use strict";i.r(t),i.d(t,"CoreEditorCommand",(function(){return L})),i.d(t,"EditorScroll_",(function(){return g})),i.d(t,"RevealLine_",(function(){return m})),i.d(t,"CoreNavigationCommands",(function(){return f})),i.d(t,"CoreEditingCommands",(function(){return _}));var n=i("dff7"),o=i("0f70"),r=i("ef8e9"),s=i("3813"),a=i("b2cc"),l=i("5717"),d=i("2e5d"),h=i("7061"),c=i("6a89");class u{static columnSelect(e,t,i,n,o,r){var s=Math.abs(o-i)+1,a=o<i,l=r<n,u=n<r,g=[];for(let w=0;w<s;w++){var p=i+(a?-w:w),m=d.a.columnFromVisibleColumn2(e,t,p,n),f=d.a.columnFromVisibleColumn2(e,t,p,r),_=d.a.visibleColumnFromColumn2(e,t,new h.a(p,m)),b=d.a.visibleColumnFromColumn2(e,t,new h.a(p,f));if(u){if(r<_)continue;if(b<n)continue}if(l){if(n<b)continue;if(_<r)continue}g.push(new d.f(new c.a(p,m,p,m),0,new h.a(p,f),0))}if(0===g.length)for(let w=0;w<s;w++){var v=i+(a?-w:w),C=t.getLineMaxColumn(v);g.push(new d.f(new c.a(v,C,v,C),0,new h.a(v,C),0))}return{viewStates:g,reversed:a,fromLineNumber:i,fromVisualColumn:n,toLineNumber:o,toVisualColumn:r}}static columnSelectLeft(e,t,i){let n=i.toViewVisualColumn;return 0<n&&n--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;var o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),r=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let l=o;l<=r;l++){var s=t.getLineMaxColumn(l);s=d.a.visibleColumnFromColumn2(e,t,new h.a(l,s));n=Math.max(n,s)}let a=i.toViewVisualColumn;return a<n&&a++,this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,a)}static columnSelectUp(e,t,i,n){return n=n?e.pageSize:1,n=Math.max(1,i.toViewLineNumber-n),this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,n,i.toViewVisualColumn)}static columnSelectDown(e,t,i,n){return n=n?e.pageSize:1,n=Math.min(t.getLineCount(),i.toViewLineNumber+n),this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,n,i.toViewVisualColumn)}}var g,p,m,f,_,b=i("b272"),v=i("a007"),C=i("191f"),w=i("c101"),y=i("4fc3"),S=i("9eb8");class L extends a.c{runEditorCommand(e,t,i){t=t._getViewModel(),t&&this.runCoreEditorCommand(t,i||{})}}(p=g=g||{}).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){return!!r.j(e)&&!!r.k((e=e).to)&&!(!r.l(e.by)&&!r.k(e.by)||!r.l(e.value)&&!r.i(e.value)||!r.l(e.revealCursor)&&!r.g(e.revealCursor))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},p.RawDirection={Up:"up",Down:"down"},p.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},p.parse=function(e){let t,i;switch(e.to){case p.RawDirection.Up:t=1;break;case p.RawDirection.Down:t=2;break;default:return null}switch(e.by){case p.RawUnit.Line:i=1;break;case p.RawUnit.WrappedLine:i=2;break;case p.RawUnit.Page:i=3;break;case p.RawUnit.HalfPage:i=4;break;default:i=2}var n=Math.floor(e.value||1),o=!!e.revealCursor;return{direction:t,unit:i,value:n,revealCursor:o,select:!!e.select}},(t=m=m||{}).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){return!!r.j(e)&&!(!r.i((e=e).lineNumber)&&!r.k(e.lineNumber)||!r.l(e.at)&&!r.k(e.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},t.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"};class x{constructor(e){e.addImplementation(1e4,"code-editor",(e,t)=>{var i=e.get(l.a).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)}),e.addImplementation(1e3,"generic-dom-input-textarea",(e,t)=>{var i=document.activeElement;return!!(i&&0<=["input","textarea"].indexOf(i.tagName.toLowerCase()))&&(this.runDOMCommand(),!0)}),e.addImplementation(0,"generic-dom",(e,t)=>{var i=e.get(l.a).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))})}_runEditorCommand(e,t,i){return e=this.runEditorCommand(e,t,i),e||!0}}{var k=f=f||{};class e extends L{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[v.b.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!0)}}k.MoveTo=Object(a.k)(new e({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),k.MoveToSelect=Object(a.k)(new e({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class t extends L{runCoreEditorCommand(e,t){e.model.pushStackElement();var i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,i.viewStates.map(e=>d.d.fromViewState(e))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}k.ColumnSelect=Object(a.k)(new class extends t{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,n){var o=e.model.validatePosition(n.position),r=(o=e.coordinatesConverter.validateViewPosition(new h.a(n.viewPosition.lineNumber,n.viewPosition.column),o),n.doColumnSelect?i.fromViewLineNumber:o.lineNumber);i=n.doColumnSelect?i.fromViewVisualColumn:n.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,r,i,o.lineNumber,n.mouseColumn-1)}}),k.CursorColumnSelectLeft=Object(a.k)(new class extends t{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectLeft(e.cursorConfig,e,i)}}),k.CursorColumnSelectRight=Object(a.k)(new class extends t{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectRight(e.cursorConfig,e,i)}});class i extends t{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}k.CursorColumnSelectUp=Object(a.k)(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:3600,linux:{primary:0}}})),k.CursorColumnSelectPageUp=Object(a.k)(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:3595,linux:{primary:0}}}));class r extends t{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}k.CursorColumnSelectDown=Object(a.k)(new r({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:3602,linux:{primary:0}}})),k.CursorColumnSelectPageDown=Object(a.k)(new r({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:3596,linux:{primary:0}}}));class l extends L{constructor(){super({id:"cursorMove",precondition:void 0,description:v.a.description})}runCoreEditorCommand(e,t){var i=v.a.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,l._move(e,e.getCursorStates(),i)),e.revealPrimaryCursor(t,!0)}static _move(e,t,i){var n=i.select,o=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return v.b.simpleMove(e,t,i.direction,n,o,i.unit);case 11:case 13:case 12:case 14:return v.b.viewportMove(e,t,i.direction,n,o);default:return null}}}k.CursorMoveImpl=l,k.CursorMove=Object(a.k)(new l);class p extends L{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,v.b.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealPrimaryCursor(t.source,!0)}}k.CursorLeft=Object(a.k)(new p({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),k.CursorLeftSelect=Object(a.k)(new p({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:1039}})),k.CursorRight=Object(a.k)(new p({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),k.CursorRightSelect=Object(a.k)(new p({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:1041}})),k.CursorUp=Object(a.k)(new p({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),k.CursorUpSelect=Object(a.k)(new p({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),k.CursorPageUp=Object(a.k)(new p({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:11}})),k.CursorPageUpSelect=Object(a.k)(new p({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:1035}})),k.CursorDown=Object(a.k)(new p({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),k.CursorDownSelect=Object(a.k)(new p({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),k.CursorPageDown=Object(a.k)(new p({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:12}})),k.CursorPageDownSelect=Object(a.k)(new p({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:1036}})),k.CreateCursor=Object(a.k)(new class extends L{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){let i;i=t.wholeLine?v.b.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):v.b.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);var n=e.getCursorStates();if(1<n.length){var o=i.modelState?i.modelState.position:null,r=i.viewState?i.viewState.position:null;for(let i=0,a=n.length;i<a;i++){var s=n[i];if((!o||s.modelState.selection.containsPosition(o))&&(!r||s.viewState.selection.containsPosition(r)))return n.splice(i,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,n)}}n.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}),k.LastCursorMoveToSelect=Object(a.k)(new class extends L{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){var i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),o=n.slice(0);o[i]=v.b.moveTo(e,n[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,o)}});class _ extends L{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,v.b.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}k.CursorHome=Object(a.k)(new _({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),k.CursorHomeSelect=Object(a.k)(new _({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class b extends L{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e){var t=[];for(let o=0,r=e.length;o<r;o++){var i=e[o],n=i.modelState.position.lineNumber;t[o]=d.d.fromModelState(i.modelState.move(this._inSelectionMode,n,1,0))}return t}}k.CursorLineStart=Object(a.k)(new b({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:0,mac:{primary:287}}})),k.CursorLineStartSelect=Object(a.k)(new b({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:0,mac:{primary:1311}}}));class C extends L{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,v.b.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealPrimaryCursor(t.source,!0)}}k.CursorEnd=Object(a.k)(new C({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:w.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},description:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:n.a("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),k.CursorEndSelect=Object(a.k)(new C({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:w.a.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},description:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:n.a("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class y extends L{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e,t){var i=[];for(let s=0,a=t.length;s<a;s++){var n=t[s],o=n.modelState.position.lineNumber,r=e.model.getLineMaxColumn(o);i[s]=d.d.fromModelState(n.modelState.move(this._inSelectionMode,o,r,0))}return i}}k.CursorLineEnd=Object(a.k)(new y({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:0,mac:{primary:291}}})),k.CursorLineEndSelect=Object(a.k)(new y({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:0,mac:{primary:1315}}}));class S extends L{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,v.b.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}k.CursorTop=Object(a.k)(new S({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:2062,mac:{primary:2064}}})),k.CursorTopSelect=Object(a.k)(new S({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:3086,mac:{primary:3088}}}));class D extends L{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,v.b.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}k.CursorBottom=Object(a.k)(new D({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:2061,mac:{primary:2066}}})),k.CursorBottomSelect=Object(a.k)(new D({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:3085,mac:{primary:3090}}}));class N extends L{constructor(){super({id:"editorScroll",precondition:void 0,description:g.description})}runCoreEditorCommand(e,t){var i=g.parse(t);i&&this._runEditorScroll(e,t.source,i)}_runEditorScroll(e,t,i){var n,o=this._computeDesiredScrollTop(e,i);i.revealCursor&&(n=e.getCompletelyVisibleViewRangeAtScrollTop(o),e.setCursorStates(t,3,[v.b.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),n,i.select)])),e.setScrollTop(o,0)}_computeDesiredScrollTop(e,t){if(1===t.unit){var i=e.getCompletelyVisibleViewRange();i=e.coordinatesConverter.convertViewRangeToModelRange(i);let n;return n=1===t.direction?Math.max(1,i.startLineNumber-t.value):Math.min(e.model.getLineCount(),i.startLineNumber+t.value),i=e.coordinatesConverter.convertModelPositionToViewPosition(new h.a(n,1)),e.getVerticalOffsetForLineNumber(i.lineNumber)}let n;return n=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value,i=(1===t.direction?-1:1)*n,e.getScrollTop()+i*e.cursorConfig.lineHeight}}k.EditorScrollImpl=N,k.EditorScroll=Object(a.k)(new N),k.ScrollLineUp=Object(a.k)(new class extends L{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(e,t){k.EditorScroll._runEditorScroll(e,t.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})}}),k.ScrollPageUp=Object(a.k)(new class extends L{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(e,t){k.EditorScroll._runEditorScroll(e,t.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})}}),k.ScrollLineDown=Object(a.k)(new class extends L{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(e,t){k.EditorScroll._runEditorScroll(e,t.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})}}),k.ScrollPageDown=Object(a.k)(new class extends L{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(e,t){k.EditorScroll._runEditorScroll(e,t.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})}});class O extends L{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[v.b.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),e.revealPrimaryCursor(t.source,!0)}}k.WordSelect=Object(a.k)(new O({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),k.WordSelectDrag=Object(a.k)(new O({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),k.LastCursorWordSelect=Object(a.k)(new class extends L{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){var i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),o=n.slice(0);n=n[i];o[i]=v.b.word(e,n,n.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,o)}});class E extends L{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[v.b.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!1)}}k.LineSelect=Object(a.k)(new E({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),k.LineSelectDrag=Object(a.k)(new E({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class I extends L{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){var i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),o=n.slice(0);o[i]=v.b.line(e,n[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,o)}}k.LastCursorLineSelect=Object(a.k)(new I({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),k.LastCursorLineSelectDrag=Object(a.k)(new I({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),k.ExpandLineSelection=Object(a.k)(new class extends L{constructor(){super({id:"expandLineSelection",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:2090}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,v.b.expandLineSelection(e,e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}}),k.CancelSelection=Object(a.k)(new class extends L{constructor(){super({id:"cancelSelection",precondition:w.a.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[v.b.cancelSelection(e,e.getPrimaryCursorState())]),e.revealPrimaryCursor(t.source,!0)}}),k.RemoveSecondaryCursors=Object(a.k)(new class extends L{constructor(){super({id:"removeSecondaryCursors",precondition:w.a.hasMultipleSelections,kbOpts:{weight:1,kbExpr:w.a.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealPrimaryCursor(t.source,!0),Object(s.c)(n.a("removedCursor","Removed secondary cursors"))}}),k.RevealLine=Object(a.k)(new class extends L{constructor(){super({id:"revealLine",precondition:void 0,description:m.description})}runCoreEditorCommand(e,t){var i=t,n=i.lineNumber||0;let o="number"==typeof n?n+1:parseInt(n)+1;o<1&&(o=1),n=e.model.getLineCount(),o>n&&(o=n),n=new c.a(o,1,o,e.model.getLineMaxColumn(o));let r=0;if(i.at)switch(i.at){case m.RawAtArgument.Top:r=3;break;case m.RawAtArgument.Center:r=1;break;case m.RawAtArgument.Bottom:r=4}i=e.coordinatesConverter.convertModelRangeToViewRange(n),e.revealRange(t.source,!1,i,r,0)}}),k.SelectAll=new class extends x{constructor(){super(a.h)}runDOMCommand(){o.g&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(e,t,i){t=t._getViewModel(),t&&this.runCoreEditorCommand(t,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[v.b.selectAll(e,e.getPrimaryCursorState())])}},k.SetSelection=Object(a.k)(new class extends L{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[d.d.fromModelSelection(t.selection)])}})}const D=y.a.and(w.a.textInputFocus,w.a.columnSelection);function N(e,t){S.a.registerKeybindingRule({id:e,primary:t,when:D,weight:1})}function O(e){e.register()}N(f.CursorColumnSelectLeft.id,1039),N(f.CursorColumnSelectRight.id,1041),N(f.CursorColumnSelectUp.id,1040),N(f.CursorColumnSelectPageUp.id,1035),N(f.CursorColumnSelectDown.id,1042),N(f.CursorColumnSelectPageDown.id,1036);{i=_=_||{};class e extends a.c{runEditorCommand(e,t,i){var n=t._getViewModel();n&&this.runCoreEditingCommand(t,n,i||{})}}i.CoreEditingCommand=e,i.LineBreakInsert=Object(a.k)(new class extends e{constructor(){super({id:"lineBreakInsert",precondition:w.a.writable,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,C.a.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection)))}}),i.Outdent=Object(a.k)(new class extends e{constructor(){super({id:"outdent",precondition:w.a.writable,kbOpts:{weight:0,kbExpr:y.a.and(w.a.editorTextFocus,w.a.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,C.a.outdent(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),i.Tab=Object(a.k)(new class extends e{constructor(){super({id:"tab",precondition:w.a.writable,kbOpts:{weight:0,kbExpr:y.a.and(w.a.editorTextFocus,w.a.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,C.a.tab(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),i.DeleteLeft=Object(a.k)(new class extends e{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){var[n,o]=b.a.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection),t.getCursorAutoClosedCharacters());n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)}}),i.DeleteRight=Object(a.k)(new class extends e{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:w.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){var[n,o]=b.a.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection));n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)}}),i.Undo=new class extends x{constructor(){super(a.i)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(80))return t.getModel().undo()}},i.Redo=new class extends x{constructor(){super(a.g)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(80))return t.getModel().redo()}}}class E extends a.a{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){e=e.get(l.a).getFocusedCodeEditor(),e&&e.trigger("keyboard",this._handlerId,t)}}function I(e,t){O(new E("default:"+e,e)),O(new E(e,e,t))}I("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),I("replacePreviousChar"),I("compositionType"),I("compositionStart"),I("compositionEnd"),I("paste"),I("cut")},d65c:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return i.e("chunk-2d0d61fd").then(i.bind(null,"70e3"))}})},d741:function(e,t,i){"use strict";i.r(t),i.d(t,"provideSelectionRanges",(function(){return C}));var n=i("e8e3"),o=i("2504"),r=(t=i("b2cc"),i("7061")),s=i("6a89"),a=i("8025"),l=i("c101"),d=i("b707"),h=i("dff7"),c=i("7e32"),u=i("3742"),g=i("67b4"),p=i("9e74"),m=i("fdcc"),f=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class _{constructor(e,t){this.index=e,this.ranges=t}mov(e){var t,i=this.index+(e?1:-1);return i<0||i>=this.ranges.length?this:(t=new _(i,this.ranges)).ranges[i].equalsRange(this.ranges[this.index])?t.mov(e):t}}class b{constructor(e){this._editor=e,this._ignoreSelection=!1}static get(e){return e.getContribution(b.ID)}dispose(){var e;null!=(e=this._selectionListener)&&e.dispose()}run(e){return f(this,void 0,void 0,(function*(){if(this._editor.hasModel()){const i=this._editor.getSelections();var t=this._editor.getModel();if(d.A.has(t)&&(this._state||(yield C(t,i.map(e=>e.getPosition()),this._editor.getOption(102),o.a.None).then(e=>{var t;if(n.n(e)&&e.length===i.length&&this._editor.hasModel()&&n.h(this._editor.getSelections(),i,(e,t)=>e.equalsSelection(t))){for(let t=0;t<e.length;t++)e[t]=e[t].filter(e=>e.containsPosition(i[t].getStartPosition())&&e.containsPosition(i[t].getEndPosition())),e[t].unshift(i[t]);this._state=e.map(e=>new _(0,e)),null!=(t=this._selectionListener)&&t.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var e;this._ignoreSelection||(null!=(e=this._selectionListener)&&e.dispose(),this._state=void 0)})}})),this._state)){this._state=this._state.map(t=>t.mov(e)),t=this._state.map(e=>a.a.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())),this._ignoreSelection=!0;try{this._editor.setSelections(t)}finally{this._ignoreSelection=!1}}}}))}}b.ID="editor.contrib.smartSelectController";class v extends t.b{constructor(e,t){super(t),this._forward=e}run(e,t){return f(this,void 0,void 0,(function*(){var e=b.get(t);e&&(yield e.run(this._forward))}))}}function C(e,t,i,o){return f(this,void 0,void 0,(function*(){var a=d.A.all(e),l=(1===a.length&&a.unshift(new g.a),[]);let h=[];for(const i of a)l.push(Promise.resolve(i.provideSelectionRanges(e,t,o)).then(e=>{if(n.n(e)&&e.length===t.length)for(let i=0;i<t.length;i++){h[i]||(h[i]=[]);for(const n of e[i])s.a.isIRange(n.range)&&s.a.containsPosition(n.range,t[i])&&h[i].push(s.a.lift(n.range))}},m.g));return yield Promise.all(l),h.map(t=>{if(0===t.length)return[];t.sort((e,t)=>r.a.isBefore(e.getStartPosition(),t.getStartPosition())?1:r.a.isBefore(t.getStartPosition(),e.getStartPosition())||r.a.isBefore(e.getEndPosition(),t.getEndPosition())?-1:r.a.isBefore(t.getEndPosition(),e.getEndPosition())?1:0);var n=[];let o;for(const e of t)o&&(!s.a.containsRange(e,o)||s.a.equalsRange(e,o))||(n.push(e),o=e);if(!i.selectLeadingAndTrailingWhitespace)return n;var a=[n[0]];for(let i=1;i<n.length;i++){var l,d,h=n[i-1],c=n[i];c.startLineNumber===h.startLineNumber&&c.endLineNumber===h.endLineNumber||((l=new s.a(h.startLineNumber,e.getLineFirstNonWhitespaceColumn(h.startLineNumber),h.endLineNumber,e.getLineLastNonWhitespaceColumn(h.endLineNumber))).containsRange(h)&&!l.equalsRange(h)&&c.containsRange(l)&&!c.equalsRange(l)&&a.push(l),(d=new s.a(h.startLineNumber,1,h.endLineNumber,e.getLineMaxColumn(h.endLineNumber))).containsRange(h)&&!d.equalsRange(l)&&c.containsRange(d)&&!c.equalsRange(d)&&a.push(d)),a.push(c)}return a})}))}p.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand"),Object(t.l)(b.ID,b),Object(t.j)(class extends v{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:h.a("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:l.a.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:c.b.MenubarSelectionMenu,group:"1_basic",title:h.a({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}),Object(t.j)(class extends v{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:h.a("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:l.a.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:c.b.MenubarSelectionMenu,group:"1_basic",title:h.a({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}),d.A.register("*",new class{provideSelectionRanges(e,t){var i=[];for(const o of t){var n=[];i.push(n),this._addInWordRanges(n,e,o),this._addWordRanges(n,e,o),this._addWhitespaceLine(n,e,o),n.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){if(t=t.getWordAtPosition(i),t){var{word:n,startColumn:t}=t,o=i.column-t;let l=o,d=o,h=0;for(;0<=l;l--){var r=n.charCodeAt(l);if(l!==o&&(95===r||45===r))break;if(Object(u.G)(r)&&Object(u.H)(h))break;h=r}for(l+=1;d<n.length;d++){var a=n.charCodeAt(d);if(Object(u.H)(a)&&Object(u.G)(h))break;if(95===a||45===a)break;h=a}l<d&&e.push({range:new s.a(i.lineNumber,t+l,i.lineNumber,t+d)})}}_addWordRanges(e,t,i){t=t.getWordAtPosition(i),t&&e.push({range:new s.a(i.lineNumber,t.startColumn,i.lineNumber,t.endColumn)})}_addWhitespaceLine(e,t,i){0<t.getLineLength(i.lineNumber)&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new s.a(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}),Object(t.o)("_executeSelectionRangeProvider",(function(e,...t){var[t]=t;return C(e,t,{selectLeadingAndTrailingWhitespace:!0},o.a.None)}))},d844:function(e,t,i){"use strict";i.r(t),i.d(t,"LinkDetector",(function(){return M})),i("607c");var n=i("dff7"),o=i("5fe7"),r=i("2504"),s=i("fdcc"),a=i("78bc"),l=i("a666"),d=i("30db"),h=(t=i("b2cc"),i("b57f")),c=i("b707"),u=i("6816"),g=i("6d8e"),p=i("6a89"),m=i("1b69"),f=i("9e74"),_=i("e8e3"),b=i("ef8e9"),v=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class C{constructor(e,t){this._link=e,this._provider=t}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(e){return v(this,void 0,void 0,(function*(){return this._link.url||("function"==typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing")))}))}}class w{constructor(e){this._disposables=new l.b;let t=[];for(const[n,o]of e){var i=n.links.map(e=>new C(e,o));t=w._union(t,i),Object(l.g)(n)&&this._disposables.add(n)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){var i,n,o=[];let r,s;for(r=0,s=0,i=e.length,n=t.length;r<i&&s<n;){var a=e[r],l=t[s];p.a.areIntersectingOrTouching(a.range,l.range)?r++:p.a.compareRangesUsingStarts(a.range,l.range)<0?(o.push(a),r++):(o.push(l),s++)}for(;r<i;r++)o.push(e[r]);for(;s<n;s++)o.push(t[s]);return o}}function y(e,t){const i=[];var n=c.v.ordered(e).reverse().map((n,o)=>Promise.resolve(n.provideLinks(e,t)).then(e=>{e&&(i[o]=[e,n])},s.g));return Promise.all(n).then(()=>{var e=new w(Object(_.e)(i));return t.isCancellationRequested?(e.dispose(),new w([])):e})}f.a.registerCommand("_executeLinkProvider",(e,...t)=>v(void 0,void 0,void 0,(function*(){let[i,n]=t;Object(b.c)(i instanceof g.a),"number"!=typeof n&&(n=0);var o=e.get(m.a).getModel(i);if(!o)return[];var s=yield y(o,r.a.None);if(!s)return[];for(let e=0;e<Math.min(n,s.links.length);e++)yield s.links[e].resolve(r.a.None);return o=s.links.slice(0),s.dispose(),o})));f=i("b0cd");var S=i("5bd73"),L=i("303e"),x=i("b7d0"),k=i("b589"),D=i("82c9"),N=(i=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},function(e,t){return function(i,n){t(i,n,e)}}),O=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const E={general:h.a.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:h.a.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class I{constructor(e,t){this.link=e,this.decorationId=t}static decoration(e,t){return{range:e.range,options:I._getOptions(e,t,!1)}}static _getOptions(e,t,i){return i=Object.assign({},i?E.active:E.general),i.hoverMessage=function(e,t){var i=e.url&&/^command:/i.test(e.url.toString());i=e.tooltip||(i?n.a("links.navigate.executeCmd","Execute command"):n.a("links.navigate.follow","Follow link")),t=t?d.f?n.a("links.navigate.kb.meta.mac","cmd + click"):n.a("links.navigate.kb.meta","ctrl + click"):d.f?n.a("links.navigate.kb.alt.mac","option + click"):n.a("links.navigate.kb.alt","alt + click");if(e.url){let r="";/^command:/i.test(e.url.toString())&&(o=e.url.toString().match(/^command:([^?#]+)/))&&(o=o[1],o=n.a("tooltip.explanation","Execute command {0}",o),r=` "${o}"`);var o=new a.a("",!0).appendMarkdown(`[${i}](${e.url.toString(!0)}${r}) (${t})`);return o}return(new a.a).appendText(i+` (${t})`)}(e,t),i}activate(e,t){e.changeDecorationOptions(this.decorationId,I._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,I._getOptions(this.link,t,!1))}}let M=class t{constructor(e,t,i){this.listenersToRemove=new l.b,this.editor=e,this.openerService=t,this.notificationService=i,t=new u.a(e),this.listenersToRemove.add(t),this.listenersToRemove.add(t.onMouseMoveOrRelevantKeyDown(([e,t])=>{this._onEditorMouseMove(e,t)})),this.listenersToRemove.add(t.onExecute(e=>{this.onEditorMouseUp(e)})),this.listenersToRemove.add(t.onCancel(e=>{this.cleanUpActiveLinkDecoration()})),this.enabled=e.getOption(62),this.listenersToRemove.add(e.onDidChangeConfiguration(t=>{var i=e.getOption(62);this.enabled!==i&&(this.enabled=i,this.updateDecorations([]),this.stop(),this.beginCompute())})),this.listenersToRemove.add(e.onDidChangeModelContent(e=>this.onChange())),this.listenersToRemove.add(e.onDidChangeModel(e=>this.onModelChanged())),this.listenersToRemove.add(e.onDidChangeModelLanguage(e=>this.onModelModeChanged())),this.listenersToRemove.add(c.v.onDidChange(e=>this.onModelModeChanged())),this.timeout=new o.g,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}static get(e){return e.getContribution(t.ID)}onModelChanged(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()}onModelModeChanged(){this.stop(),this.beginCompute()}onChange(){this.timeout.setIfNotSet(()=>this.beginCompute(),t.RECOMPUTE_TIME)}beginCompute(){return O(this,void 0,void 0,(function*(){if(this.editor.hasModel()&&this.enabled){const t=this.editor.getModel();if(c.v.has(t)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=o.h(e=>y(t,e));try{this.activeLinksList=yield this.computePromise,this.updateDecorations(this.activeLinksList.links)}catch(e){Object(s.f)(e)}finally{this.computePromise=null}}}}))}updateDecorations(e){var t="altKey"===this.editor.getOption(69),i=[],n=Object.keys(this.currentOccurrences);for(let l=0,d=n.length;l<d;l++){var o=n[l];o=this.currentOccurrences[o];i.push(o.decorationId)}var r=[];if(e)for(const l of e)r.push(I.decoration(l,t));var s=this.editor.deltaDecorations(i,r);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let l=0,d=s.length;l<d;l++){var a=new I(e[l],s[l]);this.currentOccurrences[a.decorationId]=a}}_onEditorMouseMove(e,t){const i="altKey"===this.editor.getOption(69);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations(e=>{t.activate(e,i),this.activeLinkDecorationId=t.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(69);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(i=>{t.deactivate(i,e)}),this.activeLinkDecorationId=null}}onEditorMouseUp(e){var t;this.isEnabled(e)&&(t=this.getLinkOccurrence(e.target.position))&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(this.openerService){const o=e["link"];o.resolve(r.a.None).then(e=>{if("string"==typeof e&&this.editor.hasModel()){var n=this.editor.getModel().uri;if(n.scheme===k.c.file&&e.startsWith(k.c.file+":")){var o=g.a.parse(e);if(o.scheme===k.c.file){o=D.i(o);let t=null;o.startsWith("/./")?t="."+o.substr(1):o.startsWith("//./")&&(t="."+o.substr(2)),t&&(e=D.g(n,t))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0})},e=>{var t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(n.a("invalid.url","Failed to open this link because it is not well-formed: {0}",o.url.toString())):"missing"===t?this.notificationService.warn(n.a("missing.url","Failed to open this link because its target is missing.")):Object(s.f)(e)})}}getLinkOccurrence(e){if(this.editor.hasModel()&&e)for(const i of this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0)){var t=this.currentOccurrences[i.id];if(t)return t}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.timeout.cancel(),this.activeLinksList&&(null!=(e=this.activeLinksList)&&e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()}};M.ID="editor.linkDetector",M.RECOMPUTE_TIME=1e3,M=i([N(1,S.a),N(2,f.a)],M);class T extends t.b{constructor(){super({id:"editor.action.openLink",label:n.a("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){var i,n=M.get(t);if(n&&t.hasModel())for(i of t.getSelections()){var o=n.getLinkOccurrence(i.getEndPosition());o&&n.openLinkOccurrence(o,!1)}}}Object(t.l)(M.ID,M),Object(t.j)(T),Object(x.f)((e,t)=>{e=e.getColor(L.q),e&&t.addRule(`.monaco-editor .detected-link-active { color: ${e} !important; }`)})},d8c3:function(e,t,i){},d93b:function(e,t,i){},d95f:function(e,t,i){},daaa:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return i.e("chunk-2d0e4fe5").then(i.bind(null,"931f"))}})},db2d:function(e,t,i){"use strict";i.r(t),i.d(t,"ColorContribution",(function(){return s})),i("92a6");t=i("a666");var n=i("b2cc"),o=i("aee8"),r=i("6a89");class s extends t.a{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(e=>this.onMouseDown(e)))}dispose(){super.dispose()}onMouseDown(e){var t;6===e.target.type&&[...(null==(t=e.target.element)?void 0:t.classList.values())||[]].find(e=>e.startsWith("ced-colorBox"))&&e.target.range&&!(t=this._editor.getContribution(o.ModesHoverController.ID)).isColorPickerVisible()&&(e=new r.a(e.target.range.startLineNumber,e.target.range.startColumn+1,e.target.range.endLineNumber,e.target.range.endColumn+1),t.showContentHover(e,0,!1))}}s.ID="editor.contrib.colorContribution",Object(n.l)(s.ID,s)},db7a:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return i.e("chunk-2d0d056d").then(i.bind(null,"680e"))}})},db88:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class o{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){var t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new n(e);this._first===n.Undefined?(this._first=i,this._last=i):t?(e=this._last,((this._last=i).prev=e).next=i):(t=this._first,((this._first=i).next=t).prev=i),this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){var e;if(this._first!==n.Undefined)return e=this._first.element,this._remove(this._first),e}pop(){var e;if(this._last!==n.Undefined)return e=this._last.element,this._remove(this._last),e}_remove(e){var t;e.prev!==n.Undefined&&e.next!==n.Undefined?((t=e.prev).next=e.next,e.next.prev=t):e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined),--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},dbc9:function(e,t,i){"use strict";var n=i("dff7"),o=i("b7d0"),r=i("303e"),s=i("561a");const a=Object(r.wc)("symbolIcon.arrayForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=Object(r.wc)("symbolIcon.booleanForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=Object(r.wc)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(n.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=Object(r.wc)("symbolIcon.colorForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=Object(r.wc)("symbolIcon.constantForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=Object(r.wc)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(n.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=Object(r.wc)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(n.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=Object(r.wc)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(n.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=Object(r.wc)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(n.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=Object(r.wc)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(n.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=Object(r.wc)("symbolIcon.fileForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=Object(r.wc)("symbolIcon.folderForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=Object(r.wc)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(n.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=Object(r.wc)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(n.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=Object(r.wc)("symbolIcon.keyForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=Object(r.wc)("symbolIcon.keywordForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=Object(r.wc)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(n.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=Object(r.wc)("symbolIcon.moduleForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=Object(r.wc)("symbolIcon.namespaceForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=Object(r.wc)("symbolIcon.nullForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=Object(r.wc)("symbolIcon.numberForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=Object(r.wc)("symbolIcon.objectForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=Object(r.wc)("symbolIcon.operatorForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=Object(r.wc)("symbolIcon.packageForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=Object(r.wc)("symbolIcon.propertyForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=Object(r.wc)("symbolIcon.referenceForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=Object(r.wc)("symbolIcon.snippetForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=Object(r.wc)("symbolIcon.stringForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=Object(r.wc)("symbolIcon.structForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=Object(r.wc)("symbolIcon.textForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=Object(r.wc)("symbolIcon.typeParameterForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=Object(r.wc)("symbolIcon.unitForeground",{dark:r.eb,light:r.eb,hc:r.eb},Object(n.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),j=Object(r.wc)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(n.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(o.f)((e,t)=>{var i=e.getColor(a);i&&t.addRule(s.b.symbolArray.cssSelector+` { color: ${i}; }`),i=e.getColor(l),i&&t.addRule(s.b.symbolBoolean.cssSelector+` { color: ${i}; }`),i=e.getColor(d),i&&t.addRule(s.b.symbolClass.cssSelector+` { color: ${i}; }`),i=e.getColor(S),i&&t.addRule(s.b.symbolMethod.cssSelector+` { color: ${i}; }`),i=e.getColor(h),i&&t.addRule(s.b.symbolColor.cssSelector+` { color: ${i}; }`),i=e.getColor(c),i&&t.addRule(s.b.symbolConstant.cssSelector+` { color: ${i}; }`),i=e.getColor(u),i&&t.addRule(s.b.symbolConstructor.cssSelector+` { color: ${i}; }`),i=e.getColor(g),i&&t.addRule(`\n\t\t\t${s.b.symbolValue.cssSelector},${s.b.symbolEnum.cssSelector} { color: ${i}; }`),i=e.getColor(p),i&&t.addRule(s.b.symbolEnumMember.cssSelector+` { color: ${i}; }`),i=e.getColor(m),i&&t.addRule(s.b.symbolEvent.cssSelector+` { color: ${i}; }`),i=e.getColor(f),i&&t.addRule(s.b.symbolField.cssSelector+` { color: ${i}; }`),i=e.getColor(_),i&&t.addRule(s.b.symbolFile.cssSelector+` { color: ${i}; }`),i=e.getColor(b),i&&t.addRule(s.b.symbolFolder.cssSelector+` { color: ${i}; }`),i=e.getColor(v),i&&t.addRule(s.b.symbolFunction.cssSelector+` { color: ${i}; }`),i=e.getColor(C),i&&t.addRule(s.b.symbolInterface.cssSelector+` { color: ${i}; }`),i=e.getColor(w),i&&t.addRule(s.b.symbolKey.cssSelector+` { color: ${i}; }`),i=e.getColor(y),i&&t.addRule(s.b.symbolKeyword.cssSelector+` { color: ${i}; }`),i=e.getColor(L),i&&t.addRule(s.b.symbolModule.cssSelector+` { color: ${i}; }`),i=e.getColor(x),i&&t.addRule(s.b.symbolNamespace.cssSelector+` { color: ${i}; }`),i=e.getColor(k),i&&t.addRule(s.b.symbolNull.cssSelector+` { color: ${i}; }`),i=e.getColor(D),i&&t.addRule(s.b.symbolNumber.cssSelector+` { color: ${i}; }`),i=e.getColor(N),i&&t.addRule(s.b.symbolObject.cssSelector+` { color: ${i}; }`),i=e.getColor(O),i&&t.addRule(s.b.symbolOperator.cssSelector+` { color: ${i}; }`),i=e.getColor(E),i&&t.addRule(s.b.symbolPackage.cssSelector+` { color: ${i}; }`),i=e.getColor(I),i&&t.addRule(s.b.symbolProperty.cssSelector+` { color: ${i}; }`),i=e.getColor(M),i&&t.addRule(s.b.symbolReference.cssSelector+` { color: ${i}; }`),i=e.getColor(T),i&&t.addRule(s.b.symbolSnippet.cssSelector+` { color: ${i}; }`),i=e.getColor(A),i&&t.addRule(s.b.symbolString.cssSelector+` { color: ${i}; }`),i=e.getColor(R),i&&t.addRule(s.b.symbolStruct.cssSelector+` { color: ${i}; }`),i=e.getColor(P),i&&t.addRule(s.b.symbolText.cssSelector+` { color: ${i}; }`),i=e.getColor(F),i&&t.addRule(s.b.symbolTypeParameter.cssSelector+` { color: ${i}; }`),i=e.getColor(B),i&&t.addRule(s.b.symbolUnit.cssSelector+` { color: ${i}; }`),i=e.getColor(j);i&&t.addRule(s.b.symbolVariable.cssSelector+` { color: ${i}; }`)})},dd1b:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("308f");t=i("89cd");const o={JSONContribution:"base.contributions.json"};i=new class{constructor(){this._onDidChangeSchema=new n.b,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[0<(i=e).length&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}},t.a.add(o.JSONContribution,i)},debc:function(e,t,i){"use strict";i.d(t,"a",(function(){return l})),i.d(t,"b",(function(){return d}));var n=i("3d378"),o=i("b589"),r=i("30db"),s=i("82c9"),a=i("6d8e");function l(e){if(e)return"string"==typeof e&&(e=a.a.file(e)),e=Object(s.b)(e)||(e.scheme===o.c.file?e.fsPath:e.path),r.i&&Object(n.c)(e)?d(e):e}function d(e){return Object(n.a)(e)?e.charAt(0).toUpperCase()+e.slice(1):e}},dff7:function(e,t,i){"use strict";function n(e,t,...i){{var n=i;let e;return e=0===n.length?t:t.replace(/\{(\d+)\}/g,(function(e,t){return t=t[0],void 0!==n[t]?n[t]:e}))}}i.d(t,"a",(function(){return n}))},e1b5:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("b707");class o{constructor(e,t){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}static createEmpty(e){var t=o.defaultTokenMetadata,i=new Uint32Array(2);return i[0]=e.length,i[1]=t,new o(i,e)}equals(e){return e instanceof o&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;t<<=1;var n=t+(i<<1);for(let o=t;o<n;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return 0<e?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){return e=this._tokens[1+(e<<1)],n.E.getLanguageId(e)}getStandardTokenType(e){return e=this._tokens[1+(e<<1)],n.E.getTokenType(e)}getForeground(e){return e=this._tokens[1+(e<<1)],n.E.getForeground(e)}getClassName(e){return e=this._tokens[1+(e<<1)],n.E.getClassNameFromMetadata(e)}getInlineStyle(e,t){return e=this._tokens[1+(e<<1)],n.E.getInlineStyleFromMetadata(e,t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return o.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new r(this,e,t,i)}static convertToEndOffset(e,t){var i=(e.length>>>1)-1;for(let n=0;n<i;n++)e[n<<1]=e[n+1<<1];e[i<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let i=0,n=(e.length>>>1)-1;for(;i<n;){var o=i+Math.floor((n-i)/2),r=e[o<<1];if(r===t)return o+1;r<t?i=o+1:t<r&&(n=o)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="";var r=new Array;let s=0;for(;;){var a=t<this._tokensCount?this._tokens[t<<1]:-1,l=i<e.length?e[i]:null;if(-1!==a&&(null===l||a<=l.offset)){n+=this._text.substring(s,a);var d=this._tokens[1+(t<<1)];r.push(n.length,d),t++,s=a}else{if(!l)break;l.offset>s&&(n+=this._text.substring(s,l.offset),d=this._tokens[1+(t<<1)],r.push(n.length,d),s=l.offset),n+=l.text,r.push(n.length,l.tokenMetadata),i++}}return new o(new Uint32Array(r),n)}}o.defaultTokenMetadata=16793600;class r{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let o=this._firstTokenIndex,r=e.getCount();o<r;o++){if(i<=e.getStartOffset(o))break;this._tokensCount++}}equals(e){return e instanceof r&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){return e=this._source.getEndOffset(this._firstTokenIndex+e),Math.min(this._endOffset,e)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},e2b8:function(e,t,i){},e2c2:function(e,t,i){"use strict";i.r(t),i.d(t,"StandaloneReferencesController",(function(){return c}));t=i("b2cc");var n=i("5717"),o=i("418f"),r=i("fbba"),s=i("4fc3"),a=i("0a0f"),l=i("b0cd"),d=(i=i("03e8"),function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}),h=function(e,t){return function(i,n){t(i,n,e)}};let c=class extends o.a{constructor(e,t,i,n,o,r,s){super(!0,e,t,i,n,o,r,s)}};c=d([h(1,s.b),h(2,n.a),h(3,l.a),h(4,a.a),h(5,i.a),h(6,r.a)],c),Object(t.l)(o.a.ID,c)},e32d:function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return r}));var n=i("308f");class o{constructor(e,t,i){const o=e=>this.emitter.fire(e);this.emitter=new n.b({onFirstListenerAdd:()=>e.addEventListener(t,o,i),onLastListenerRemove:()=>e.removeEventListener(t,o,i)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function r(e){return e.preventDefault(),e.stopPropagation(),e}},e385:function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return b}));var n,o,r=i("11f7"),s=i("70c3"),a=i("1898"),l=i("e8e3"),d=(t=i("ceb8"),i("308f")),h=i("a666"),c=i("49d9"),u=i("42e39"),g=i("ef8e9");i("e750");const p={separatorBorder:t.a.transparent};class m{constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){e!==this.visible&&(e?(this.size=Object(c.b)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e),this.view.setVisible)&&this.view.setVisible(e)}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class f extends m{layoutContainer(e){this.container.style.top=e+"px",this.container.style.height=this.size+"px"}}class _ extends m{layoutContainer(e){this.container.style.left=e+"px",this.container.style.width=this.size+"px"}}(i=n=n||{})[i.Idle=0]="Idle",i[i.Busy=1]="Busy",(t=o=o||{}).Distribute={type:"distribute"},t.Split=function(e){return{type:"split",index:e}},t.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}};class b extends h.a{constructor(e,t={}){super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=n.Idle,this._onDidSashChange=this._register(new d.b),this.onDidSashChange=this._onDidSashChange.event,this._onDidSashReset=this._register(new d.b),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.orientation=g.l(t.orientation)?0:t.orientation,this.inverseAltBehavior=!!t.inverseAltBehavior,this.proportionalLayout=!!g.l(t.proportionalLayout)||!!t.proportionalLayout,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=Object(r.q)(this.el,Object(r.a)(".sash-container")),this.viewContainer=Object(r.a)(".split-view-container"),this.scrollable=new u.a(125,r.V),this.scrollableElement=this._register(new a.c(this.viewContainer,{vertical:0===this.orientation?null!=(e=t.scrollbarVisibility)?e:1:2,horizontal:1===this.orientation?null!=(e=t.scrollbarVisibility)?e:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(e=>{this.viewContainer.scrollTop=e.scrollTop,this.viewContainer.scrollLeft=e.scrollLeft})),Object(r.q)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||p),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((e,t)=>{var i=g.l(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size};e=e.view;this.doAddView(e,i,t,!0)}),this.contentSize=this.viewItems.reduce((e,t)=>e+t.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){var i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let r=0;r<this.viewItems.length;r++){var n=this.viewItems[r];n.size=Object(c.b)(Math.round(this.proportions[r]*e),n.minimumSize,n.maximumSize)}else{t=Object(l.r)(this.viewItems.length);var o=t.filter(e=>1===this.viewItems[e].priority);t=t.filter(e=>2===this.viewItems[e].priority);this.resize(this.viewItems.length-1,e-i,void 0,o,t)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&0<this.contentSize&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:i}){for(const r of this.viewItems)r.enabled=!1;const n=this.sashItems.findIndex(t=>t.sash===e),o=Object(h.e)(Object(r.i)(document.body,"keydown",e=>s(this.sashDragState.current,e.altKey)),Object(r.i)(document.body,"keyup",()=>s(this.sashDragState.current,!1))),s=(e,t)=>{const i=this.viewItems.map(e=>e.size);let r,s,a=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;if((t=this.inverseAltBehavior?!t:t)&&(h=n===this.sashItems.length-1,d=h?(h=this.viewItems[n],a=(h.minimumSize-h.size)/2,(h.maximumSize-h.size)/2):(h=this.viewItems[n+1],a=(h.size-h.maximumSize)/2,(h.size-h.minimumSize)/2)),!t){var h=Object(l.r)(n,-1),c=Object(l.r)(n+1,this.viewItems.length),u=h.reduce((e,t)=>e+(this.viewItems[t].minimumSize-i[t]),0),g=h.reduce((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t]),0),p=0===c.length?Number.POSITIVE_INFINITY:c.reduce((e,t)=>e+(i[t]-this.viewItems[t].minimumSize),0),m=0===c.length?Number.NEGATIVE_INFINITY:c.reduce((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize),0);const e=Math.max(u,m),t=Math.min(p,g);u=this.findFirstSnapIndex(h),m=this.findFirstSnapIndex(c),"number"==typeof u&&(p=this.viewItems[u],g=Math.floor(p.viewMinimumSize/2),r={index:u,limitDelta:p.visible?e-g:e+g,size:p.size}),"number"==typeof m&&(h=this.viewItems[m],c=Math.floor(h.viewMinimumSize/2),s={index:m,limitDelta:h.visible?t+c:t-c,size:h.size})}this.sashDragState={start:e,current:e,index:n,sizes:i,minDelta:a,maxDelta:d,alt:t,snapBefore:r,snapAfter:s,disposable:o}};s(t,i)}onSashChange({current:e}){var{index:t,start:i,sizes:n,alt:o,minDelta:r,maxDelta:s,snapBefore:a,snapAfter:l}=this.sashDragState,i=(e=(this.sashDragState.current=e)-i,this.resize(t,e,n,void 0,void 0,r,s,a,l));o&&(e=t===this.sashItems.length-1,n=this.viewItems.map(e=>e.size),s=(r=this.viewItems[e?t:t+1]).size-r.maximumSize,a=r.size-r.minimumSize,this.resize(e?t-1:t+1,-i,n,void 0,void 0,s,a)),this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){var i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"==typeof t?t:e.size,t=Object(c.b)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&0<i?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(this.state!==n.Idle)throw new Error("Cant modify splitview");var i,o,r;this.state=n.Busy,e<0||e>=this.viewItems.length||(i=[...(o=Object(l.r)(this.viewItems.length).filter(t=>t!==e)).filter(e=>1===this.viewItems[e].priority),e],o=o.filter(e=>2===this.viewItems[e].priority),r=this.viewItems[e],t=Math.round(t),t=Object(c.b)(t,r.minimumSize,Math.min(r.maximumSize,this.size)),r.size=t,this.relayout(i,o),this.state=n.Idle)}distributeViewSizes(){var e=[];let t=0;for(const r of this.viewItems)0<r.maximumSize-r.minimumSize&&(e.push(r),t+=r.size);var i=Math.floor(t/e.length);for(const r of e)r.size=Object(c.b)(i,r.minimumSize,r.maximumSize);var n=Object(l.r)(this.viewItems.length),o=n.filter(e=>1===this.viewItems[e].priority);n=n.filter(e=>2===this.viewItems[e].priority);this.relayout(o,n)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,o){if(this.state!==n.Idle)throw new Error("Cant modify splitview");this.state=n.Busy;const a=Object(r.a)(".split-view-view"),c=(i===this.viewItems.length?this.viewContainer.appendChild(a):this.viewContainer.insertBefore(a,this.viewContainer.children.item(i)),e.onDidChange(e=>this.onViewChange(m,e)));var u=Object(h.i)(()=>this.viewContainer.removeChild(a));const g=Object(h.e)(c,u);let p;p="number"==typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;const m=new(0===this.orientation?f:_)(a,e,p,g);if(this.viewItems.splice(i,0,m),1<this.viewItems.length){u={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash};const e=0===this.orientation?new s.b(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:1})):new s.b(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},u),{orientation:0}));u=0===this.orientation?t=>({sash:e,start:t.startY,current:t.currentY,alt:t.altKey}):t=>({sash:e,start:t.startX,current:t.currentX,alt:t.altKey});var b=d.c.map(e.onDidStart,u)(this.onSashStart,this);const t=d.c.map(e.onDidChange,u)(this.onSashChange,this);u=d.c.map(e.onDidEnd,()=>this.sashItems.findIndex(t=>t.sash===e))(this.onSashEnd,this);var v=e.onDidReset(()=>{var t=this.sashItems.findIndex(t=>t.sash===e),i=Object(l.r)(t,-1),n=Object(l.r)(t+1,this.viewItems.length);i=this.findFirstSnapIndex(i),n=this.findFirstSnapIndex(n);"number"==typeof i&&!this.viewItems[i].visible||"number"==typeof n&&!this.viewItems[n].visible||this._onDidSashReset.fire(t)});const n=Object(h.e)(b,t,u,v,e);b={sash:e,disposable:n},this.sashItems.splice(i-1,0,b)}let C;a.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(C=[t.index]),o||this.relayout([i],C),this.state=n.Idle,o||"number"==typeof t||"distribute"!==t.type||this.distributeViewSizes()}relayout(e,t){var i=this.viewItems.reduce((e,t)=>e+t.size,0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map(e=>e.size),n,o,r=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,a,d){if(e<0||e>=this.viewItems.length)return 0;var h=Object(l.r)(e,-1),u=Object(l.r)(e+1,this.viewItems.length);if(o)for(const c of o)Object(l.p)(h,c),Object(l.p)(u,c);if(n)for(const c of n)Object(l.o)(h,c),Object(l.o)(u,c);var g=h.map(e=>this.viewItems[e]),p=h.map(e=>i[e]),m=u.map(e=>this.viewItems[e]),f=u.map(e=>i[e]),_=h.reduce((e,t)=>e+(this.viewItems[t].minimumSize-i[t]),0),b=h.reduce((e,t)=>e+(this.viewItems[t].maximumSize-i[t]),0),v=0===u.length?Number.POSITIVE_INFINITY:u.reduce((e,t)=>e+(i[t]-this.viewItems[t].minimumSize),0),C=0===u.length?Number.NEGATIVE_INFINITY:u.reduce((e,t)=>e+(i[t]-this.viewItems[t].maximumSize),0);_=Math.max(_,C,r),C=Math.min(v,b,s);let w=!1;if(a&&(v=this.viewItems[a.index],b=t>=a.limitDelta,w=b!==v.visible,v.setVisible(b,a.size)),!w&&d&&(v=this.viewItems[d.index],b=t<d.limitDelta,w=b!==v.visible,v.setVisible(b,d.size)),w)return this.resize(e,t,i,n,o,r,s);for(let l=0,N=t=Object(c.b)(t,_,C);l<g.length;l++){var y=g[l],S=Object(c.b)(p[l]+N,y.minimumSize,y.maximumSize),L=S-p[l];N-=L,y.size=S}for(let l=0,N=t;l<m.length;l++){var x=m[l],k=Object(c.b)(f[l]-N,x.minimumSize,x.maximumSize),D=k-f[l];N+=D,x.size=k}return t}distributeEmptySpace(e){var t=this.viewItems.reduce((e,t)=>e+t.size,0);let i=this.size-t;var n=Object(l.r)(this.viewItems.length-1,-1);t=n.filter(e=>1===this.viewItems[e].priority);for(const a of n.filter(e=>2===this.viewItems[e].priority))Object(l.p)(n,a);for(const a of t)Object(l.o)(n,a);"number"==typeof e&&Object(l.o)(n,e);for(let a=0;0!==i&&a<n.length;a++){var o=this.viewItems[n[a]],r=Object(c.b)(o.size+i,o.minimumSize,o.maximumSize),s=r-o.size;i-=s,o.size=r}}layoutViews(){this.contentSize=this.viewItems.reduce((e,t)=>e+t.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(e=>e.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let e=!1;var t=this.viewItems.map(t=>e=0<t.size-t.minimumSize||e),i=(e=!1,this.viewItems.map(t=>e=0<t.maximumSize-t.size||e)),n=[...this.viewItems].reverse(),o=(e=!1,n.map(t=>e=0<t.size-t.minimumSize||e).reverse()),r=(e=!1,n.map(t=>e=0<t.maximumSize-t.size||e).reverse());let s=0;for(let g=0;g<this.sashItems.length;g++){var a,d,h=this.sashItems[g]["sash"],c=this.viewItems[g],u=(c=(s+=c.size,!(t[g]&&r[g+1])),!(i[g]&&o[g+1]));c&&u?(a=Object(l.r)(g,-1),d=Object(l.r)(g+1,this.viewItems.length),a=this.findFirstSnapIndex(a),d=this.findFirstSnapIndex(d),a="number"==typeof a&&!this.viewItems[a].visible,d="number"==typeof d&&!this.viewItems[d].visible,a&&o[g]&&(0<s||this.startSnappingEnabled)?h.state=1:d&&t[g]&&(s<this.contentSize||this.endSnappingEnabled)?h.state=2:h.state=0):h.state=c&&!u?1:!c&&u?2:3}}getSashPosition(e){let t=0;for(let i=0;i<this.sashItems.length;i++)if(t+=this.viewItems[i].size,this.sashItems[i].sash===e)return t;return 0}findFirstSnapIndex(e){for(const n of e){var t=this.viewItems[n];if(t.visible&&t.snap)return n}for(const n of e){var i=this.viewItems[n];if(i.visible&&0<i.maximumSize-i.minimumSize)return;if(!i.visible&&i.snap)return n}}dispose(){super.dispose(),this.viewItems.forEach(e=>e.dispose()),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}},e516:function(e,t,i){"use strict";i.r(t),i.d(t,"CursorUndoRedoController",(function(){return l})),i.d(t,"CursorUndo",(function(){return d})),i.d(t,"CursorRedo",(function(){return h}));var n=i("dff7"),o=(t=i("a666"),i("b2cc")),r=i("c101");class s{constructor(e){this.selections=e}equals(e){var t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0}}class a{constructor(e,t,i){this.cursorState=e,this.scrollTop=t,this.scrollLeft=i}}class l extends t.a{constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel(e=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(e=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId||(t=new s(t.oldSelections),0<this._undoStack.length&&this._undoStack[this._undoStack.length-1].cursorState.equals(t))||(this._undoStack.push(new a(t,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],50<this._undoStack.length&&this._undoStack.shift())}))}static get(e){return e.getContribution(l.ID)}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new a(new s(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new a(new s(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}l.ID="editor.contrib.cursorUndoRedoController";class d extends o.b{constructor(){super({id:"cursorUndo",label:n.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:r.a.textInputFocus,primary:2099,weight:100}})}run(e,t,i){l.get(t).cursorUndo()}}class h extends o.b{constructor(){super({id:"cursorRedo",label:n.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){l.get(t).cursorRedo()}}Object(o.l)(l.ID,l),Object(o.j)(d),Object(o.j)(h)},e53c:function(e,t,i){"use strict";i.d(t,"d",(function(){return n})),i.d(t,"a",(function(){return p})),i.d(t,"b",(function(){return m})),i.d(t,"c",(function(){return f}));var n,o=i("0f70"),r=i("11f7"),s=i("5fe7"),a=i("308f"),l=(t=i("a666"),i("b9b4")),d=i("30db"),h=i("3742"),c=i("0a89"),u=i("7061"),g=i("8025");const p={forceCopyWithSyntaxHighlighting:!((n=n||{}).Tap="-monaco-textarea-synthetic-tap")};class m{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:this._lastState=null}}m.INSTANCE=new m;class f extends t.a{constructor(e,t){super(),this.textArea=t,this._onFocus=this._register(new a.b),this.onFocus=this._onFocus.event,this._onBlur=this._register(new a.b),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new a.b),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new a.b),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new a.b),this.onCut=this._onCut.event,this._onPaste=this._register(new a.b),this.onPaste=this._onPaste.event,this._onType=this._register(new a.b),this.onType=this._onType.event,this._onCompositionStart=this._register(new a.b),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new a.b),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new a.b),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new a.b),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._host=e,this._textArea=this._register(new b(t)),this._asyncTriggerCut=this._register(new s.e(()=>this._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new s.e(()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=c.b.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._isDoingComposition=!1,this._nextCommand=0;let i=null;this._register(r.o(t.domNode,"keydown",e=>{(109===e.keyCode||this._isDoingComposition&&1===e.keyCode)&&e.stopPropagation(),e.equals(9)&&e.preventDefault(),i=e,this._onKeyDown.fire(e)})),this._register(r.o(t.domNode,"keyup",e=>{this._onKeyUp.fire(e)})),this._register(r.i(t.domNode,"compositionstart",e=>{if(c.c,!this._isDoingComposition){if(this._isDoingComposition=!0,d.f&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&0<this._textAreaState.selectionStart&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&(i&&i.equals(109)&&("ArrowRight"===i.code||"ArrowLeft"===i.code)||o.g))return c.c,this._textAreaState=new c.b(this._textAreaState.value,this._textAreaState.selectionStart-1,this._textAreaState.selectionEnd,this._textAreaState.selectionStartPosition?new u.a(this._textAreaState.selectionStartPosition.lineNumber,this._textAreaState.selectionStartPosition.column-1):null,this._textAreaState.selectionEndPosition),void this._onCompositionStart.fire({revealDeltaColumns:-1});o.e?this._onCompositionStart.fire({revealDeltaColumns:-this._textAreaState.selectionStart}):(this._setAndWriteTextAreaState("compositionstart",c.b.EMPTY),this._onCompositionStart.fire({revealDeltaColumns:0}))}}));const l=e=>{var t=this._textAreaState,i=c.b.readFromTextArea(this._textArea);return[i,c.b.deduceInput(t,i,e)]},g=()=>{var e=this._textAreaState,t=c.b.readFromTextArea(this._textArea);return[t,c.b.deduceAndroidCompositionInput(e,t)]},p=e=>{var t=this._textAreaState;e=c.b.selectedText(e);return[e,{text:e.value,replacePrevCharCnt:t.selectionEnd-t.selectionStart,replaceNextCharCnt:0,positionDelta:0}]};this._register(r.i(t.domNode,"compositionupdate",e=>{if(c.c,o.e){const[t,i]=g();this._textAreaState=t,this._onType.fire(i),this._onCompositionUpdate.fire(e)}else{const[t,i]=p(e.data||"");this._textAreaState=t,this._onType.fire(i),this._onCompositionUpdate.fire(e)}})),this._register(r.i(t.domNode,"compositionend",e=>{if(c.c,this._isDoingComposition)if(this._isDoingComposition=!1,o.e){const[e,t]=g();this._textAreaState=e,this._onType.fire(t),this._onCompositionEnd.fire()}else{const[t,i]=p(e.data||"");this._textAreaState=t,this._onType.fire(i),(o.f||o.g)&&(this._textAreaState=c.b.readFromTextArea(this._textArea)),this._onCompositionEnd.fire()}})),this._register(r.i(t.domNode,"input",()=>{var e,t;this._textArea.setIgnoreSelectionChangeTime("received input event"),this._isDoingComposition||([e,t]=l(d.f),0===t.replacePrevCharCnt&&1===t.text.length&&h.E(t.text.charCodeAt(0)))||(this._textAreaState=e,0===this._nextCommand?""===t.text&&0===t.replacePrevCharCnt||this._onType.fire(t):(""===t.text&&0===t.replacePrevCharCnt||this._firePaste(t.text,null),this._nextCommand=0))})),this._register(r.i(t.domNode,"cut",e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()})),this._register(r.i(t.domNode,"copy",e=>{this._ensureClipboardGetsEditorSelection(e)})),this._register(r.i(t.domNode,"paste",e=>{var t;this._textArea.setIgnoreSelectionChangeTime("received paste event"),_.canUseTextData(e)?([e,t]=_.getTextData(e),""!==e&&this._firePaste(e,t)):(this._textArea.getSelectionStart()!==this._textArea.getSelectionEnd()&&this._setAndWriteTextAreaState("paste",c.b.EMPTY),this._nextCommand=1)})),this._register(r.i(t.domNode,"focus",()=>{var e=this._hasFocus;this._setHasFocus(!0),o.h&&!e&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(r.i(t.domNode,"blur",()=>{this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(r.i(t.domNode,n.Tap,()=>{o.e&&this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let e=0;return r.i(document,"selectionchange",t=>{var i,n;this._hasFocus&&!this._isDoingComposition&&o.f&&(n=(i=Date.now())-e,e=i,n<5||(n=i-this._textArea.getIgnoreSelectionChangeTime(),this._textArea.resetSelectionChangeTime(),n<100)||this._textAreaState.selectionStartPosition&&this._textAreaState.selectionEndPosition&&(i=this._textArea.getValue(),this._textAreaState.value===i)&&(n=this._textArea.getSelectionStart(),i=this._textArea.getSelectionEnd(),this._textAreaState.selectionStart!==n||this._textAreaState.selectionEnd!==i)&&(n=this._textAreaState.deduceEditorPosition(n),n=this._host.deduceModelPosition(n[0],n[1],n[2]),i=this._textAreaState.deduceEditorPosition(i),i=this._host.deduceModelPosition(i[0],i[1],i[2]),n=new g.a(n.lineNumber,n.column,i.lineNumber,i.column),this._onSelectionChangeRequest.fire(n)))})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){var e=r.F(this.textArea.domNode);e?this._setHasFocus(e.activeElement===this.textArea.domNode):r.N(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),(this._hasFocus?this._onFocus:this._onBlur).fire())}_setAndWriteTextAreaState(e,t){(t=this._hasFocus?t:t.collapseSelection()).writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(e){var t=this._host.getDataToCopy(_.canUseTextData(e)),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};m.INSTANCE.set(o.g?t.text.replace(/\r\n/g,"\n"):t.text,i),_.canUseTextData(e)?_.setTextData(e,t.text,t.html,i):this._setAndWriteTextAreaState("copy or cut",c.b.selectedText(t.text))}_firePaste(e,t){t=t||m.INSTANCE.get(e),this._onPaste.fire({text:e,metadata:t})}}class _{static canUseTextData(e){return!!e.clipboardData||!!window.clipboardData}static getTextData(t){if(t.clipboardData){t.preventDefault();var i=t.clipboardData.getData(l.a.text);let o=null;var n=t.clipboardData.getData("vscode-editor-data");if("string"==typeof n)try{1!==(o=JSON.parse(n)).version&&(o=null)}catch(e){}return[i,o]}if(window.clipboardData)return t.preventDefault(),[window.clipboardData.getData("Text"),null];throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}static setTextData(e,t,i,n){if(e.clipboardData)e.clipboardData.setData(l.a.text,t),"string"==typeof i&&e.clipboardData.setData("text/html",i),e.clipboardData.setData("vscode-editor-data",JSON.stringify(n));else{if(!window.clipboardData)throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!");window.clipboardData.setData("Text",t)}e.preventDefault()}}class b extends t.a{constructor(e){super(),this._actual=e,this._ignoreSelectionChangeTime=0}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.domNode.value}setValue(e,t){var i=this._actual.domNode;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.domNode.selectionDirection?this._actual.domNode.selectionEnd:this._actual.domNode.selectionStart}getSelectionEnd(){return"backward"===this._actual.domNode.selectionDirection?this._actual.domNode.selectionStart:this._actual.domNode.selectionEnd}setSelectionRange(e,t,i){var n=this._actual.domNode;let s=null;var a=r.F(n),l=(a=(s=(a||document).activeElement)===n,n.selectionStart),d=n.selectionEnd;if(a&&l===t&&d===i)o.g&&window.parent!==window&&n.focus();else if(a)this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),o.g&&window.parent!==window&&n.focus();else try{var h=r.U(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),r.S(n,h)}catch(e){}}}},e58e:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i("30db");const o=n.b.performance&&"function"==typeof n.b.performance.now;class r{constructor(e){this._highResolution=o&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new r(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return(this._highResolution?n.b.performance:Date).now()}}},e679:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return a}));var n=i("1e93"),o=i("7ab3");function r(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class s{constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${r(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${r(this.oldText)}")`:`(replace@${this.oldPosition} "${r(this.oldText)}" with "${r(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){var o=t.length;n.f(e,o,i),i+=4;for(let r=0;r<o;r++)n.e(e,t.charCodeAt(r),i),i+=2;return i}static _readString(e,t){var i=n.c(e,t);return t+=4,Object(o.b)(e,t,i)}writeSize(){return 8+s._writeStringSize(this.oldText)+s._writeStringSize(this.newText)}write(e,t){return n.f(e,this.oldPosition,t),n.f(e,this.newPosition,t+=4),t+=4,t=s._writeString(e,this.oldText,t),s._writeString(e,this.newText,t)}static read(e,t,i){var o=n.c(e,t),r=n.c(e,t+=4),a=(t+=4,s._readString(e,t));t+=s._writeStringSize(a),e=s._readString(e,t);return t+=s._writeStringSize(e),i.push(new s(o,a,r,e)),t}}function a(e,t){return null===e||0===e.length?t:new l(e,t).compress()}class l{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,i=this._getPrev(e),n=this._getCurr(t);for(;e<this._prevLen||t<this._currLen;)if(null===i)this._acceptCurr(n),n=this._getCurr(++t);else if(null===n)this._acceptPrev(i),i=this._getPrev(++e);else if(n.oldEnd<=i.newPosition)this._acceptCurr(n),n=this._getCurr(++t);else if(i.newEnd<=n.oldPosition)this._acceptPrev(i),i=this._getPrev(++e);else if(n.oldPosition<i.newPosition){var[o,r]=l._splitCurr(n,i.newPosition-n.oldPosition);this._acceptCurr(o),n=r}else if(i.newPosition<n.oldPosition){var[o,r]=l._splitPrev(i,n.oldPosition-i.newPosition);this._acceptPrev(o),i=r}else{let o,r;var a,d;n=n.oldEnd===i.newEnd?(o=i,r=n,i=this._getPrev(++e),this._getCurr(++t)):n.oldEnd<i.newEnd?([a,d]=l._splitPrev(i,n.oldLength),o=a,r=n,i=d,this._getCurr(++t)):([a,d]=l._splitCurr(n,i.newLength),o=i,r=a,i=this._getPrev(++e),d),this._result[this._resultLen++]=new s(o.oldPosition,o.oldText,r.newPosition,r.newText),this._prevDeltaOffset+=o.newLength-o.oldLength,this._currDeltaOffset+=r.newLength-r.oldLength}var h=l._merge(this._result);return l._removeNoOps(h)}_acceptCurr(e){this._result[this._resultLen++]=l._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=l._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new s(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new s(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){var i=e.newText.substr(0,t),n=e.newText.substr(t);return[new s(e.oldPosition,e.oldText,e.newPosition,i),new s(e.oldEnd,"",e.newPosition+t,n)]}static _splitCurr(e,t){var i=e.oldText.substr(0,t),n=e.oldText.substr(t);return[new s(e.oldPosition,i,e.newPosition,e.newText),new s(e.oldPosition+t,n,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;let t=[],i=0,n=e[0];for(let r=1;r<e.length;r++){var o=e[r];n=n.oldEnd===o.oldPosition?new s(n.oldPosition,n.oldText+o.oldText,n.newPosition,n.newText+o.newText):(t[i++]=n,o)}return t[i++]=n,t}static _removeNoOps(e){if(0===e.length)return e;let t=[],i=0;for(let o=0;o<e.length;o++){var n=e[o];n.oldText!==n.newText&&(t[i++]=n)}return t}}},e6ff:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));class n extends i("3170").a{constructor(e){super(0);for(let t=0,i=e.length;t<i;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}}const o=function(e){let t={};return i=>(t.hasOwnProperty(i)||(t[i]=e(i)),t[i])}(e=>new n(e))},e750:function(e,t,i){},e757:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));let n=!1,o=null;class r{static getSameOriginWindowChain(){if(!o){o=[];let t=window;for(var e;(e=function(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&(t.protocol!==i.protocol||t.hostname!==i.hostname||t.port!==i.port))return n=!0,null}catch(e){return n=!0,null}return e.parent}(t))?o.push({window:t,iframeElement:t.frameElement||null}):o.push({window:t,iframeElement:null}),t=e;);}return o.slice(0)}static hasDifferentOriginAncestor(){return o||this.getSameOriginWindowChain(),n}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0;for(const r of this.getSameOriginWindowChain()){if(i+=r.window.scrollY,n+=r.window.scrollX,r.window===t)break;if(!r.iframeElement)break;var o=r.iframeElement.getBoundingClientRect();i+=o.top,n+=o.left}return{top:i,left:n}}}},e75b:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i("f0b2");const n="monaco-mouse-cursor-text"},e8cb:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:function(){return i.e("chunk-2d0b21d7").then(i.bind(null,"2377"))}})},e8e3:function(e,t,i){"use strict";function n(e,t=0){return e[e.length-(1+t)]}function o(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function r(e,t,i=((e,t)=>e===t)){if(e!==t){if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,o=e.length;n<o;n++)if(!i(e[n],t[n]))return!1}return!0}function s(e,t,i){let n=0,o=e.length-1;for(;n<=o;){var r=(n+o)/2|0,s=i(e[r],t);if(s<0)n=1+r;else{if(!(0<s))return r;o=r-1}}return-(n+1)}function a(e,t){let i=0,n=e.length;if(0===n)return 0;for(;i<n;){var o=Math.floor((i+n)/2);t(e[o])?n=o:i=o+1}return i}function l(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");var n,o=t[Math.floor(t.length*Math.random())],r=[],s=[],a=[];for(n of t){var d=i(n,o);(d<0?r:0<d?s:a).push(n)}return e<r.length?l(e,r,i):e<r.length+a.length?a[0]:l(e-(r.length+a.length),s,i)}function d(e,t){var i=[];let n=void 0;for(const o of e.slice(0).sort(t))n&&0===t(n[0],o)?n.push(o):(n=[o],i.push(n));return i}function h(e){return e.filter(e=>!!e)}function c(e){return!Array.isArray(e)||0===e.length}function u(e){return Array.isArray(e)&&0<e.length}function g(e,t){if(!t)return e.filter((t,i)=>e.indexOf(t)===i);const i=Object.create(null);return e.filter(e=>(e=t(e),!i[e]&&(i[e]=!0)))}function p(e){const t=new Set;return e.filter(e=>!t.has(e)&&(t.add(e),!0))}function m(e,t){return 0<e.length?e[0]:t}function f(e){return[].concat(...e)}function _(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);var n=[];if(i<=t)for(let o=i;o<t;o++)n.push(o);else for(let o=i;o>t;o--)n.push(o);return n}function b(e,t,i){var n=e.slice(0,t);e=e.slice(t);return n.concat(i,e)}function v(e,t){var i=e.indexOf(t);-1<i&&(e.splice(i,1),e.unshift(t))}function C(e,t){var i=e.indexOf(t);-1<i&&(e.splice(i,1),e.push(t))}function w(e){return Array.isArray(e)?e:[e]}function y(e,t,i,n){t=S(e,t),i=e.splice(t,i);var o=e,r=n,s=S(o,e=t),a=(e=o.length,r.length);o.length=e+a;for(let l=e-1;l>=s;l--)o[l+a]=o[l];for(let l=0;l<a;l++)o[l+s]=r[l];return i}function S(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}i.d(t,"t",(function(){return n})),i.d(t,"u",(function(){return o})),i.d(t,"h",(function(){return r})),i.d(t,"d",(function(){return s})),i.d(t,"i",(function(){return a})),i.d(t,"q",(function(){return l})),i.d(t,"l",(function(){return d})),i.d(t,"e",(function(){return h})),i.d(t,"m",(function(){return c})),i.d(t,"n",(function(){return u})),i.d(t,"f",(function(){return g})),i.d(t,"g",(function(){return p})),i.d(t,"j",(function(){return m})),i.d(t,"k",(function(){return f})),i.d(t,"r",(function(){return _})),i.d(t,"b",(function(){return b})),i.d(t,"p",(function(){return v})),i.d(t,"o",(function(){return C})),i.d(t,"c",(function(){return w})),i.d(t,"s",(function(){return y})),i.d(t,"a",(function(){return L}));class L{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;var i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;0<=t&&e(this.items[t]);)t--;var i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}}},ea53:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return i.e("chunk-2d0e6c86").then(i.bind(null,"99e5"))}})},eafb:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0a0f");const n=Object(t.c)("dialogService")},eb68:function(e,t,i){},ec60:function(e,t,i){},eda7:function(e,t,i){"use strict";i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return r})),i.d(t,"d",(function(){return a})),i.d(t,"a",(function(){return c}));var n=i("3742");function o(e){return r(e,0)}function r(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=s(104579,n=t),e.reduce((e,t)=>r(t,e),n)):(i=e,n=s(181387,n=t),Object.keys(i).sort().reduce((e,t)=>(e=a(t,e),r(i[t],e)),n));case"string":return a(e,t);case"boolean":return s(e?433:863,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}var i,n}function s(e,t){return(t<<5)-t+e|0}function a(e,t){t=s(149417,t);for(let i=0,n=e.length;i<n;i++)t=s(e.charCodeAt(i),t);return t}function l(e,t,i=32){return i-=t,(e<<t|(~((1<<i)-1)&e)>>>i)>>>0}function d(e,t=0,i=e.byteLength,n=0){for(let o=0;o<i;o++)e[t+o]=n}function h(e,t=32){if(e instanceof ArrayBuffer)return Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join("");for(var[i,n,o="0"]=[(e>>>0).toString(16),t/4];i.length<n;)i=o+i;return i}class c{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){var t=e.length;if(0!==t){var i=this._buff;let r,s,a=this._buffLen,l=this._leftoverHighSurrogate;for(0!==l?(r=l,s=-1,l=0):(r=e.charCodeAt(0),s=0);;){let d=r;if(n.E(r)){if(!(s+1<t)){l=r;break}var o=e.charCodeAt(s+1);d=n.F(o)?(s++,n.j(r,o)):65533}else n.F(r)&&(d=65533);if(a=this._push(i,a,d),!(++s<t))break;r=e.charCodeAt(s)}this._buffLen=a,this._leftoverHighSurrogate=l}}_push(e,t,i){return i<128?e[t++]=i:(i<2048?e[t++]=192|(1984&i)>>>6:(i<65536?e[t++]=224|(61440&i)>>>12:(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12),e[t++]=128|(4032&i)>>>6),e[t++]=128|(63&i)>>>0),64<=t&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),h(this._h0)+h(this._h1)+h(this._h2)+h(this._h3)+h(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,d(this._buff,this._buffLen),56<this._buffLen&&(this._step(),d(this._buff));var e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){var e,t=c._bigBlock32,i=this._buffDV;for(let l=0;l<64;l+=4)t.setUint32(l,i.getUint32(l,!1),!1);for(let c=64;c<320;c+=4)t.setUint32(c,l(t.getUint32(c-12,!1)^t.getUint32(c-32,!1)^t.getUint32(c-56,!1)^t.getUint32(c-64,!1),1),!1);let n,o,r=this._h0,s=this._h1,a=this._h2,d=this._h3,h=this._h4;for(let c=0;c<80;c++)o=c<20?(n=s&a|~s&d,1518500249):c<40?(n=s^a^d,1859775393):c<60?(n=s&a|s&d|a&d,2400959708):(n=s^a^d,3395469782),e=l(r,5)+n+h+o+t.getUint32(4*c,!1)&4294967295,h=d,d=a,a=l(s,30),s=r,r=e;this._h0=this._h0+r&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+d&4294967295,this._h4=this._h4+h&4294967295}}c._bigBlock32=new DataView(new ArrayBuffer(320))},ee56:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var n=i("11f7"),o=i("7ddc"),r=i("aa3d");class s{constructor(e,t){this.supportIcons=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t=[],i="",n){e=e||"",n&&(e=s.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&r.d(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){var e,t,i,r=[];let s=0;for(const a of this.highlights)a.end!==a.start&&(s<a.start&&(e=this.text.substring(s,a.start),r.push(n.a("span",void 0,...this.supportIcons?Object(o.a)(e):[e])),s=a.end),e=this.text.substring(a.start,a.end),t=n.a("span.highlight",void 0,...this.supportIcons?Object(o.a)(e):[e]),a.extraClasses&&t.classList.add(a.extraClasses),r.push(t),s=a.end);s<this.text.length&&(i=this.text.substring(s),r.push(n.a("span",void 0,...this.supportIcons?Object(o.a)(i):[i]))),n.R(this.domNode,...r),this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}static escapeNewLines(e,t){let i,n=0;return e.replace(/\r\n|\r|\n/g,(e,o)=>{i="\r\n"===e?-1:0,o+=n;for(const n of t)n.end<=o||(n.start>=o&&(n.start+=i),n.end>=o&&(n.end+=i));return n+=i,"⏎"})}}},ef37:function(e,t,i){},ef8e9:function(e,t,i){"use strict";function n(e){return Array.isArray(e)}function o(e){return"string"==typeof e}function r(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!0===e||!1===e}function l(e){return void 0===e}function d(e){return l(e)||null===e}function h(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function c(e){if(d(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function u(e){return"function"==typeof e}function g(e,t){var i=Math.min(e.length,t.length);for(let n=0;n<i;n++)!function(e,t){if(o(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(u(t)){try{if(e instanceof t)return}catch(e){}if((d(e)||e.constructor!==t)&&(1!==t.length||!0!==t.call(void 0,e)))throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}(e[n],t[n])}function p(e){var t=[];for(const i of function(e){let t=[],i=Object.getPrototypeOf(e);for(;Object.prototype!==i;)t=t.concat(Object.getOwnPropertyNames(i)),i=Object.getPrototypeOf(i);return t}(e))"function"==typeof e[i]&&t.push(i);return t}function m(e,t){var i={};for(const n of e)i[n]=(e=>function(){var i=Array.prototype.slice.call(arguments,0);return t(e,i)})(n);return i}function f(e){return null===e?void 0:e}function _(e,t="Unreachable"){throw new Error(t)}i.d(t,"f",(function(){return n})),i.d(t,"k",(function(){return o})),i.d(t,"j",(function(){return r})),i.d(t,"i",(function(){return s})),i.d(t,"g",(function(){return a})),i.d(t,"l",(function(){return l})),i.d(t,"m",(function(){return d})),i.d(t,"c",(function(){return h})),i.d(t,"a",(function(){return c})),i.d(t,"h",(function(){return u})),i.d(t,"n",(function(){return g})),i.d(t,"e",(function(){return p})),i.d(t,"d",(function(){return m})),i.d(t,"o",(function(){return f})),i.d(t,"b",(function(){return _}))},efdb:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0a0f");const n=Object(t.c)("markerDecorationsService")},eff2:function(e,t,i){"use strict";i.d(t,"b",(function(){return c})),i.d(t,"a",(function(){return u}));var n=i("0f70"),o=i("650e"),r=i("11f7"),s=i("a60f"),a=i("f070"),l=(t=i("a666"),i("30db")),d=i("ef8e9"),h=(i("c84a"),i("dff7"));class c extends t.a{constructor(e,t,i={}){super(),this.options=i,this._context=e||this,(this._action=t)instanceof a.a&&this._register(t.onDidChange(e=>{this.element&&this.handleActionChangeEvent(e)}))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new a.b)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e,i=(this._register(s.b.addTarget(e)),this.options&&this.options.draggable);i&&(e.draggable=!0,n.g)&&this._register(Object(r.i)(e,r.d.DRAG_START,e=>null==(e=e.dataTransfer)?void 0:e.setData(o.a.TEXT,this._action.label))),this._register(Object(r.i)(t,s.a.Tap,e=>this.onClick(e,!0))),this._register(Object(r.i)(t,r.d.MOUSE_DOWN,e=>{i||r.c.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")})),l.f&&this._register(Object(r.i)(t,r.d.CONTEXT_MENU,e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)})),this._register(Object(r.i)(t,r.d.CLICK,e=>{r.c.stop(e,!0),this.options&&this.options.isMenu||l.j(()=>this.onClick(e))})),this._register(Object(r.i)(t,r.d.DBLCLICK,e=>{r.c.stop(e,!0)})),[r.d.MOUSE_UP,r.d.MOUSE_OUT].forEach(e=>{this._register(Object(r.i)(t,e,e=>{r.c.stop(e),t.classList.remove("active")}))})}onClick(e,t=!1){r.c.stop(e,!0);var i=d.m(this._context)?null!=(i=this.options)&&i.useEventAsContext?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,i)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class u extends c{constructor(e,t,i={}){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=Object(r.q)(this.element,Object(r.a)("a.action-label"))),this.label&&(this._action.id===a.d.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(Object(r.q)(this.element,Object(r.a)("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding)&&(e=h.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding)),e&&this.label&&(this.label.title=e)}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass)&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element&&this.element.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element&&this.element.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}},f004:function(e,t,i){},f070:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return a})),i.d(t,"d",(function(){return l})),i.d(t,"e",(function(){return d})),i.d(t,"c",(function(){return h}));var n=i("308f"),o=(t=i("a666"),i("dff7")),r=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class s extends t.a{constructor(e,t="",i="",o=!0,r){super(),this._onDidChange=this._register(new n.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._checked=!1,this._id=e,this._label=t,this._cssClass=i,this._enabled=o,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return r(this,void 0,void 0,(function*(){this._actionCallback&&(yield this._actionCallback(e))}))}}class a extends t.a{constructor(){super(...arguments),this._onBeforeRun=this._register(new n.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new n.b),this.onDidRun=this._onDidRun.event}run(e,t){return r(this,void 0,void 0,(function*(){if(e.enabled){this._onBeforeRun.fire({action:e});let i=void 0;try{yield this.runAction(e,t)}catch(e){i=e}this._onDidRun.fire({action:e,error:i})}}))}runAction(e,t){return r(this,void 0,void 0,(function*(){yield e.run(t)}))}}class l extends s{constructor(e){super(l.ID,e,e?"separator text":"separator"),this.checked=!1,this.enabled=!1}}l.ID="vs.actions.separator";class d{constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=e,this.label=t,this.class=n,this._actions=i}get actions(){return this._actions}dispose(){}run(){return r(this,void 0,void 0,(function*(){}))}}class h extends s{constructor(){super(h.ID,o.a("submenu.empty","(empty)"),void 0,!1)}}h.ID="vs.actions.empty"},f07b:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));class n{constructor(...e){for(var[t,i]of(this._entries=new Map,e))this.set(t,i)}set(e,t){var i=this._entries.get(e);return this._entries.set(e,t),i}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}},f0b2:function(e,t,i){},f17c:function(e,t,i){"use strict";i.r(t),i.d(t,"InsertCursorAbove",(function(){return w})),i.d(t,"InsertCursorBelow",(function(){return y})),i.d(t,"MultiCursorSessionResult",(function(){return k})),i.d(t,"MultiCursorSession",(function(){return D})),i.d(t,"MultiCursorSelectionController",(function(){return N})),i.d(t,"MultiCursorSelectionControllerAction",(function(){return O})),i.d(t,"AddSelectionToNextFindMatchAction",(function(){return E})),i.d(t,"AddSelectionToPreviousFindMatchAction",(function(){return I})),i.d(t,"MoveSelectionToNextFindMatchAction",(function(){return M})),i.d(t,"MoveSelectionToPreviousFindMatchAction",(function(){return T})),i.d(t,"SelectHighlightsAction",(function(){return A})),i.d(t,"CompatChangeAll",(function(){return R})),i.d(t,"SelectionHighlighter",(function(){return F}));var n=i("dff7"),o=i("5fe7"),r=i("fe45"),s=i("a666"),a=i("3813"),l=(t=i("b2cc"),i("a007")),d=i("6a89"),h=i("8025"),c=i("c101"),u=i("3352"),g=i("b57f"),p=i("b707"),m=i("a106"),f=i("7e32"),_=i("303e"),b=i("b7d0"),v=i("4fc3");function C(e,t){var i;t=t.filter(t=>!e.find(e=>e.equals(t)));1<=t.length&&(i=t.map(e=>`line ${e.viewState.position.lineNumber} column `+e.viewState.position.column).join(", "),t=1===t.length?n.a("cursorAdded","Cursor added: {0}",i):n.a("cursorsAdded","Cursors added: {0}",i),Object(a.c)(t))}class w extends t.b{constructor(){super({id:"editor.action.insertCursorAbove",label:n.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:c.a.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:f.b.MenubarSelectionMenu,group:"3_multi",title:n.a({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){var n,o;t.hasModel()&&(n=i&&!0===i.logicalLine,(t=t._getViewModel()).cursorConfig.readOnly||(t.pushStackElement(),o=t.getCursorStates(),t.setCursorStates(i.source,3,l.b.addCursorUp(t,o,n)),t.revealTopMostCursor(i.source),C(o,t.getCursorStates())))}}class y extends t.b{constructor(){super({id:"editor.action.insertCursorBelow",label:n.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:c.a.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:f.b.MenubarSelectionMenu,group:"3_multi",title:n.a({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){var n,o;t.hasModel()&&(n=i&&!0===i.logicalLine,(t=t._getViewModel()).cursorConfig.readOnly||(t.pushStackElement(),o=t.getCursorStates(),t.setCursorStates(i.source,3,l.b.addCursorDown(t,o,n)),t.revealBottomMostCursor(i.source),C(o,t.getCursorStates())))}}class S extends t.b{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:n.a("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:c.a.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:f.b.MenubarSelectionMenu,group:"3_multi",title:n.a({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let o=e.startLineNumber;o<e.endLineNumber;o++){var n=t.getLineMaxColumn(o);i.push(new h.a(o,n,o,n))}1<e.endColumn&&i.push(new h.a(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(t.hasModel()){const e=t.getModel();var i=t.getSelections(),n=t._getViewModel(),o=n.getCursorStates();let r=[];i.forEach(t=>this.getCursorsForSelection(t,e,r)),0<r.length&&t.setSelections(r),C(o,n.getCursorStates())}}}class L extends t.b{constructor(){super({id:"editor.action.addCursorsToBottom",label:n.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(t.hasModel()){var i=t.getSelections(),n=t.getModel().getLineCount(),o=[];for(let e=i[0].startLineNumber;e<=n;e++)o.push(new h.a(e,i[0].startColumn,e,i[0].endColumn));var r=t._getViewModel(),s=r.getCursorStates();0<o.length&&t.setSelections(o),C(s,r.getCursorStates())}}}class x extends t.b{constructor(){super({id:"editor.action.addCursorsToTop",label:n.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(t.hasModel()){var i=t.getSelections(),n=[];for(let e=i[0].startLineNumber;1<=e;e--)n.push(new h.a(e,i[0].startColumn,e,i[0].endColumn));var o=t._getViewModel(),r=o.getCursorStates();0<n.length&&t.setSelections(n),C(r,o.getCursorStates())}}}class k{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class D{constructor(e,t,i,n,o,r,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=o,this.matchCase=r,this.currentMatch=s}static create(e,t){if(!e.hasModel())return null;var i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&0<i.searchString.length)return new D(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let n,o,r=!1;var s=e.getSelections();o=1===s.length&&s[0].isEmpty()?(r=!0,n=!0):(n=i.wholeWord,i.matchCase),s=e.getSelection();let a,l=null;if(s.isEmpty()){if(i=e.getConfiguredWordAtPosition(s.getStartPosition()),!i)return null;a=i.word,l=new h.a(s.startLineNumber,i.startColumn,s.startLineNumber,i.endColumn)}else a=e.getModel().getValueInRange(s).replace(/\r\n/g,"\n");return new D(e,t,r,a,n,o,l)}addSelectionToNextFindMatch(){var e,t;return this._editor.hasModel()&&(e=this._getNextMatch())?(t=this._editor.getSelections(),new k(t.concat(e),e,0)):null}moveSelectionToNextFindMatch(){var e,t;return this._editor.hasModel()&&(e=this._getNextMatch())?(t=this._editor.getSelections(),new k(t.slice(0,t.length-1).concat(e),e,0)):null}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch)return e=this.currentMatch,this.currentMatch=null,e;this.findController.highlightFindOptions();var e=this._editor.getSelections();e=e[e.length-1],e=this._editor.getModel().findNextMatch(this.searchText,e.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(116):null,!1);return e?new h.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn):null}addSelectionToPreviousFindMatch(){var e,t;return this._editor.hasModel()&&(e=this._getPreviousMatch())?(t=this._editor.getSelections(),new k(t.concat(e),e,0)):null}moveSelectionToPreviousFindMatch(){var e,t;return this._editor.hasModel()&&(e=this._getPreviousMatch())?(t=this._editor.getSelections(),new k(t.slice(0,t.length-1).concat(e),e,0)):null}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch)return e=this.currentMatch,this.currentMatch=null,e;this.findController.highlightFindOptions();var e=this._editor.getSelections();e=e[e.length-1],e=this._editor.getModel().findPreviousMatch(this.searchText,e.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(116):null,!1);return e?new h.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn):null}selectAll(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(116):null,!1,1073741824)):[]}}class N extends s.a{constructor(e){super(),this._sessionDispose=this._register(new s.b),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}static get(e){return e.getContribution(N.ID)}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){var t;this._session||(t=D.create(this._editor,e))&&(this._session=t,t={searchString:this._session.searchText},this._session.isDisconnectedFromFindController&&(t.wholeWordOverride=1,t.matchCaseOverride=1,t.isRegexOverride=2),e.getState().change(t,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(e=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}_endSession(){var e;this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController&&(e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},this._session.findController.getState().change(e,!1)),this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){var i;return t.isEmpty()&&(i=this._editor.getConfiguredWordAtPosition(t.getStartPosition()))?new h.a(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange)&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType)}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){var t=this._editor.getSelections();if(1<t.length){var i=e.getState().matchCase;if(!B(this._editor.getModel(),t,i)){var n=this._editor.getModel(),o=[];for(let e=0,i=t.length;e<i;e++)o[e]=this._expandEmptyToWord(n,t[e]);return void this._editor.setSelections(o)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(this._editor.hasModel()){let o=null;var t=e.getState();if(t.isRevealed&&0<t.searchString.length&&t.isRegex)o=this._editor.getModel().findMatches(t.searchString,!0,t.isRegex,t.matchCase,t.wholeWord?this._editor.getOption(116):null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;o=this._session.selectAll()}if(t.searchScope){const e=t.searchScope;let i=[];o.forEach(t=>{e.forEach(e=>{t.range.endLineNumber<=e.endLineNumber&&t.range.startLineNumber>=e.startLineNumber&&i.push(t)})}),o=i}if(0<o.length){var i=this._editor.getSelection();for(let e=0,t=o.length;e<t;e++){var n=o[e];if(n.range.intersectRanges(i)){o[e]=o[0],o[0]=n;break}}this._setSelections(o.map(e=>new h.a(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)))}}}}N.ID="editor.contrib.multiCursorController";class O extends t.b{run(e,t){var i,n,o=N.get(t);o&&(i=m.CommonFindController.get(t))&&(t=t._getViewModel())&&(n=t.getCursorStates(),this._run(o,i),C(n,t.getCursorStates()))}}class E extends O{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:n.a("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:c.a.focus,primary:2082,weight:100},menuOpts:{menuId:f.b.MenubarSelectionMenu,group:"3_multi",title:n.a({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}class I extends O{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:n.a("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:f.b.MenubarSelectionMenu,group:"3_multi",title:n.a({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}class M extends O{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:n.a("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:c.a.focus,primary:Object(r.a)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}class T extends O{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:n.a("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}class A extends O{constructor(){super({id:"editor.action.selectHighlights",label:n.a("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:c.a.focus,primary:3114,weight:100},menuOpts:{menuId:f.b.MenubarSelectionMenu,group:"3_multi",title:n.a({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}class R extends O{constructor(){super({id:"editor.action.changeAll",label:n.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:v.a.and(c.a.writable,c.a.editorTextFocus),kbOpts:{kbExpr:c.a.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}class P{constructor(e,t,i,n){this.searchText=e,this.matchCase=t,this.wordSeparators=i,this.modelVersionId=n}static softEquals(e,t){return!e&&!t||!(!e||!t)&&e.searchText===t.searchText&&e.matchCase===t.matchCase&&e.wordSeparators===t.wordSeparators&&e.modelVersionId===t.modelVersionId}}class F extends s.a{constructor(e){super(),this.editor=e,this._isEnabled=e.getOption(97),this.decorations=[],this.updateSoon=this._register(new o.e(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(t=>{this._isEnabled=e.getOption(97)})),this._register(e.onDidChangeCursorSelection(e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(e=>{this._setState(null)})),this._register(e.onDidChangeModelContent(e=>{this._isEnabled&&this.updateSoon.schedule()})),this._register(m.CommonFindController.get(e).getState().onFindReplaceStateChange(e=>{this._update()}))}_update(){this._setState(F._createState(this._isEnabled,this.editor))}static _createState(e,t){if(!e)return null;if(!t.hasModel())return null;if(e=t.getSelection(),e.startLineNumber!==e.endLineNumber)return null;if(e=N.get(t),!e)return null;var i=m.CommonFindController.get(t);if(!i)return null;let n=e.getSession(i);if(!n){if(e=t.getSelections(),1<e.length){const n=i.getState();var o=n.matchCase;if(!B(t.getModel(),e,o))return null}n=D.create(t,i)}if(!n)return null;if(n.currentMatch)return null;if(/^[ \t]+$/.test(n.searchText))return null;if(200<n.searchText.length)return null;const r=i.getState();if(e=r.matchCase,r.isRevealed){let t=r.searchString,i=(e||(t=t.toLowerCase()),n.searchText);if(e||(i=i.toLowerCase()),t===i&&n.matchCase===r.matchCase&&n.wholeWord===r.wholeWord&&!r.isRegex)return null}return new P(n.searchText,n.matchCase,n.wholeWord?t.getOption(116):null,t.getModel().getVersionId())}_setState(e){if(P.softEquals(this.state,e))this.state=e;else if(this.state=e,this.state){if(this.editor.hasModel()&&(e=this.editor.getModel(),!e.isTooLargeForTokenization())){const s=p.i.has(e)&&this.editor.getOption(71);var t=e.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(e=>e.range),i=(t.sort(d.a.compareRangesUsingStarts),this.editor.getSelections()),n=(i.sort(d.a.compareRangesUsingStarts),[]);for(let e=0,a=0,l=t.length,h=i.length;e<l;){var o,r=t[e];a>=h?(n.push(r),e++):(o=d.a.compareRangesUsingStarts(r,i[a]))<0?(!i[a].isEmpty()&&d.a.areIntersecting(r,i[a])||n.push(r),e++):(0<o||e++,a++)}e=n.map(e=>({range:e,options:s?F._SELECTION_HIGHLIGHT:F._SELECTION_HIGHLIGHT_OVERVIEW})),this.decorations=this.editor.deltaDecorations(this.decorations,e)}}else this.decorations=this.editor.deltaDecorations(this.decorations,[])}dispose(){this._setState(null),super.dispose()}}function B(e,t,i){var n=j(e,t[0],!i);for(let r=1,s=t.length;r<s;r++){var o=t[r];if(o.isEmpty())return!1;if(n!==j(e,o,!i))return!1}return!0}function j(e,t,i){return e=e.getValueInRange(t),i?e.toLowerCase():e}F.ID="editor.contrib.selectionHighlighter",F._SELECTION_HIGHLIGHT_OVERVIEW=g.a.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(b.g)(_.jc),position:u.d.Center}}),F._SELECTION_HIGHLIGHT=g.a.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),Object(t.l)(N.ID,N),Object(t.l)(F.ID,F),Object(t.j)(w),Object(t.j)(y),Object(t.j)(S),Object(t.j)(E),Object(t.j)(I),Object(t.j)(M),Object(t.j)(T),Object(t.j)(A),Object(t.j)(R),Object(t.j)(L),Object(t.j)(x)},f187:function(e,t,i){"use strict";i.r(t),i.d(t,"DefinitionAction",(function(){return K}));var n=i("3813"),o=i("5fe7"),r=i("fe45"),s=(t=i("30db"),i("b055")),a=i("b2cc"),l=i("5717"),d=i("7061"),h=i("6a89"),c=i("c101"),u=i("b707"),g=i("351f"),p=i("88d4"),m=i("418f"),f=i("f68e"),_=i("dff7"),b=i("7e32"),v=i("4fc3"),C=i("b0cd"),w=i("b539"),y=i("bd13"),S=i("9e74"),L=i("bc04"),x=i("0a0f"),k=i("f5f3"),D=i("9eb8"),N=i("a666"),O=i("308f"),E=i("6dec"),I=i("82c9"),M=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},T=function(e,t){return function(i,n){t(i,n,e)}};const A=new v.c("hasSymbols",!1,Object(_.a)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),R=Object(x.c)("ISymbolNavigationService");var P=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=A.bindTo(e)}reset(){var e;this._ctxHasSymbols.reset(),null!=(e=this._currentState)&&e.dispose(),null!=(e=this._currentMessage)&&e.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;var i;t.references.length<=1?this.reset():(this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage(),i=(e=new F(this._editorService)).onDidChange(e=>{if(!this._ignoreEditorChange){var i=this._editorService.getActiveCodeEditor();if(i){var n=i.getModel(),o=i.getPosition();if(n&&o){let e=!1,i=!1;for(const r of t.references)if(Object(I.f)(r.uri,n.uri))e=!0,i=i||h.a.containsPosition(r.range,o);else if(e)break;e&&i||this.reset()}}}}),this._currentState=Object(N.e)(e,i))}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:h.a.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){null!=(e=this._currentMessage)&&e.dispose();var e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult");e=e?Object(_.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):Object(_.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(e)}};P=M([T(0,v.b),T(1,l.a),T(2,C.a),T(3,E.a)],P);Object(k.b)(R,P,!0),Object(a.k)(new class extends a.c{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:A,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(R).revealNext(t)}}),D.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:A,primary:9,handler(e){e.get(R).reset()}});let F=class{constructor(e){this._listener=new Map,this._disposables=new N.b,this._onDidChange=new O.b,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),Object(N.f)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Object(N.e)(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;null!=(t=this._listener.get(e))&&t.dispose(),this._listener.delete(e)}};F=M([T(0,l.a)],F);E=i("0f70");var B=i("6d8e"),j=i("ef8e9"),W=i("d379"),V=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};b.d.appendMenuItem(b.b.EditorContext,{submenu:b.b.EditorContextPeek,title:_.a("peek.submenu","Peek"),group:"navigation",order:100});const H=new Set;function z(e){e=new e,Object(a.m)(e),H.add(e.id)}class U extends a.b{constructor(e,t){super(t),this._configuration=e}run(e,t){if(!t.hasModel())return Promise.resolve(void 0);const i=e.get(C.a),r=e.get(l.a);var s=e.get(w.a);const a=e.get(R),d=t.getModel(),h=t.getPosition(),c=new L.b(t,5);return e=Object(o.l)(this._getLocationModel(d,h,c.token),c.token).then(e=>V(this,void 0,void 0,(function*(){if(e&&!c.token.isCancellationRequested){let s;Object(n.a)(e.ariaMessage),e.referenceAt(d.uri,h)&&(o=this._getAlternativeCommand(t))!==this.id&&H.has(o)&&(s=t.getAction(o));var i,o=e.references.length;if(0===o)this._configuration.muteMessage||(i=d.getWordAtPosition(h),g.a.get(t).showMessage(this._getNoResultFoundMessage(i),h));else{if(1!==o||!s)return this._onResult(r,a,t,e);s.run()}}})),e=>{i.error(e)}).finally(()=>{c.dispose()}),s.showWhile(e,250),e}_onResult(e,t,i,n){return V(this,void 0,void 0,(function*(){var o,r,s,a=this._getGoToPreference(i);i instanceof W.a||!(this._configuration.openInPeek||"peek"===a&&1<n.references.length)?(o=n.firstReference(),r=1<n.references.length&&"gotoAndPeek"===a,s=yield this._openReference(i,e,o,this._configuration.openToSide,!r),r&&s?this._openInPeek(s,n):n.dispose(),"goto"===a&&t.put(o)):this._openInPeek(i,n)}))}_openReference(e,t,i,n,o){return V(this,void 0,void 0,(function*(){let r=void 0;if(r=(r=Object(u.J)(i)?i.targetSelectionRange:r)||i.range){const s=yield t.openCodeEditor({resource:i.uri,options:{selection:h.a.collapseToStart(r),selectionRevealType:3}},e,n);if(s){if(o){const e=s.getModel(),t=s.deltaDecorations([],[{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{s.getModel()===e&&s.deltaDecorations(t,[])},350)}return s}}}))}_openInPeek(e,t){var i=m.a.get(e);i&&e.hasModel()?i.toggleWidget(e.getSelection(),Object(o.h)(e=>Promise.resolve(t)),this._configuration.openInPeek):t.dispose()}}class K extends U{_getLocationModel(e,t,i){return V(this,void 0,void 0,(function*(){return new f.c(yield Object(y.b)(e,t,i),_.a("def.title","Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?_.a("noResultWord","No definition found for '{0}'",e.word):_.a("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(49).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(49).multipleDefinitions}}const q=t.h&&!E.i?2118:70;z(((k=class e extends K{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,label:_.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:v.a.and(c.a.hasDefinitionProvider,c.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:q,weight:100},contextMenuOpts:{group:"navigation",order:1.1}}),S.a.registerCommandAlias("editor.action.goToDeclaration",e.id)}}).id="editor.action.revealDefinition",k)),z(((P=class e extends K{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,label:_.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:v.a.and(c.a.hasDefinitionProvider,c.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:Object(r.a)(2089,q),weight:100}}),S.a.registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}}).id="editor.action.revealDefinitionAside",P)),z(((D=class e extends K{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,label:_.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:v.a.and(c.a.hasDefinitionProvider,p.b.notInPeekEditor,c.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:b.b.EditorContextPeek,group:"peek",order:2}}),S.a.registerCommandAlias("editor.action.previewDeclaration",e.id)}}).id="editor.action.peekDefinition",D));class $ extends U{_getLocationModel(e,t,i){return V(this,void 0,void 0,(function*(){return new f.c(yield Object(y.a)(e,t,i),_.a("decl.title","Declarations"))}))}_getNoResultFoundMessage(e){return e&&e.word?_.a("decl.noResultWord","No declaration found for '{0}'",e.word):_.a("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(49).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(49).multipleDeclarations}}z(((M=class e extends ${constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,label:_.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:v.a.and(c.a.hasDeclarationProvider,c.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3}})}_getNoResultFoundMessage(e){return e&&e.word?_.a("decl.noResultWord","No declaration found for '{0}'",e.word):_.a("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",M)),z(class extends ${constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:_.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:v.a.and(c.a.hasDeclarationProvider,p.b.notInPeekEditor,c.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:b.b.EditorContextPeek,group:"peek",order:3}})}});class G extends U{_getLocationModel(e,t,i){return V(this,void 0,void 0,(function*(){return new f.c(yield Object(y.e)(e,t,i),_.a("typedef.title","Type Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?_.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):_.a("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(49).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(49).multipleTypeDefinitions}}z(((T=class e extends G{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:_.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:v.a.and(c.a.hasTypeDefinitionProvider,c.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4}})}}).ID="editor.action.goToTypeDefinition",T)),z(((i=class e extends G{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:_.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:v.a.and(c.a.hasTypeDefinitionProvider,p.b.notInPeekEditor,c.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:b.b.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",i));class Z extends U{_getLocationModel(e,t,i){return V(this,void 0,void 0,(function*(){return new f.c(yield Object(y.c)(e,t,i),_.a("impl.title","Implementations"))}))}_getNoResultFoundMessage(e){return e&&e.word?_.a("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):_.a("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(49).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(49).multipleImplementations}}z(((t=class e extends Z{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:_.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:v.a.and(c.a.hasImplementationProvider,c.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:2118,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}}).ID="editor.action.goToImplementation",t)),z(((E=class e extends Z{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:_.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:v.a.and(c.a.hasImplementationProvider,p.b.notInPeekEditor,c.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:b.b.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",E));class Y extends U{_getNoResultFoundMessage(e){return e?_.a("references.no","No references found for '{0}'",e.word):_.a("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(49).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(49).multipleReferences}}z(class extends Y{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:_.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:v.a.and(c.a.hasReferenceProvider,p.b.notInPeekEditor,c.a.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:c.a.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}_getLocationModel(e,t,i){return V(this,void 0,void 0,(function*(){return new f.c(yield Object(y.d)(e,t,!0,i),_.a("ref.title","References"))}))}}),z(class extends Y{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:_.a("references.action.label","Peek References"),alias:"Peek References",precondition:v.a.and(c.a.hasReferenceProvider,p.b.notInPeekEditor,c.a.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:b.b.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i){return V(this,void 0,void 0,(function*(){return new f.c(yield Object(y.d)(e,t,!1,i),_.a("ref.title","References"))}))}});class X extends U{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",label:_.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:v.a.and(p.b.notInPeekEditor,c.a.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i){return V(this,void 0,void 0,(function*(){return new f.c(this._references,_.a("generic.title","Locations"))}))}_getNoResultFoundMessage(e){return e&&_.a("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!=(t=this._gotoMultipleBehaviour)?t:e.getOption(49).multipleReferences}_getAlternativeCommand(){return""}}S.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:B.a},{name:"position",description:"The position at which to start",constraint:d.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(e,t,i,n,o,r,a)=>V(void 0,void 0,void 0,(function*(){Object(j.c)(B.a.isUri(t)),Object(j.c)(d.a.isIPosition(i)),Object(j.c)(Array.isArray(n)),Object(j.c)(void 0===o||"string"==typeof o),Object(j.c)(void 0===a||"boolean"==typeof a);var h=e.get(l.a);const c=yield h.openCodeEditor({resource:t},h.getFocusedCodeEditor());if(Object(s.b)(c))return c.setPosition(i),c.revealPositionInCenterIfOutsideViewport(i,0),c.invokeWithinContext(e=>{var t=new class extends X{_getNoResultFoundMessage(e){return r||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(r),openInPeek:Boolean(a),openToSide:!1},n,o);e.get(x.a).invokeFunction(t.run.bind(t),c)})}))}),S.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:B.a},{name:"position",description:"The position at which to start",constraint:d.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(e,t,i,n,o)=>V(void 0,void 0,void 0,(function*(){e.get(S.b).executeCommand("editor.action.goToLocations",t,i,n,o,void 0,!0)}))}),S.a.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>(Object(j.c)(B.a.isUri(t)),Object(j.c)(d.a.isIPosition(i)),e=e.get(l.a),e.openCodeEditor({resource:t},e.getFocusedCodeEditor()).then(e=>{if(Object(s.b)(e)&&e.hasModel()){var t,n,r=m.a.get(e);if(r)return t=Object(o.h)(t=>Object(y.d)(e.getModel(),d.a.lift(i),!1,t).then(e=>new f.c(e,_.a("ref.title","References")))),n=new h.a(i.lineNumber,i.column,i.lineNumber,i.column),Promise.resolve(r.toggleWidget(n,t,!1))}}))}),S.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations"),b.d.appendMenuItems([{id:b.b.MenubarGoMenu,item:{command:{id:"editor.action.revealDefinition",title:_.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},group:"4_symbol_nav",order:2}},{id:b.b.MenubarGoMenu,item:{command:{id:"editor.action.revealDeclaration",title:_.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},group:"4_symbol_nav",order:3}},{id:b.b.MenubarGoMenu,item:{command:{id:"editor.action.goToTypeDefinition",title:_.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},group:"4_symbol_nav",order:3}},{id:b.b.MenubarGoMenu,item:{command:{id:"editor.action.goToImplementation",title:_.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},group:"4_symbol_nav",order:4}},{id:b.b.MenubarGoMenu,item:{command:{id:"editor.action.goToReferences",title:_.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},group:"4_symbol_nav",order:5}}])},f20b:function(e,t,i){},f2d2:function(e,t,i){},f33e:function(e,t,i){"use strict";i.r(t),i.d(t,"CancellationTokenSource",(function(){return La})),i.d(t,"Emitter",(function(){return xa})),i.d(t,"KeyCode",(function(){return ka})),i.d(t,"KeyMod",(function(){return Da})),i.d(t,"Position",(function(){return Na})),i.d(t,"Range",(function(){return Oa})),i.d(t,"Selection",(function(){return Ea})),i.d(t,"SelectionDirection",(function(){return Ia})),i.d(t,"MarkerSeverity",(function(){return Ma})),i.d(t,"MarkerTag",(function(){return Ta})),i.d(t,"Uri",(function(){return Aa})),i.d(t,"Token",(function(){return Ra})),i.d(t,"editor",(function(){return Pa})),i.d(t,"languages",(function(){return Fa}));t=i("fd49");var n,o,r,s,a,l,d,h,c,u,g,p,m,f,_,b,v,C,w,y,S,L,x,k,D,N,O,E,I,M,T,A,R,P,F,B=i("2504"),j=i("308f"),W=i("fe45"),V=i("6d8e"),H=i("7061"),z=i("6a89"),U=i("8025"),K=i("4dc7");(oe=n=n||{})[oe.Unknown=0]="Unknown",oe[oe.Disabled=1]="Disabled",oe[oe.Enabled=2]="Enabled",(oe=o=o||{})[oe.KeepWhitespace=1]="KeepWhitespace",oe[oe.InsertAsSnippet=4]="InsertAsSnippet",(oe=r=r||{})[oe.Method=0]="Method",oe[oe.Function=1]="Function",oe[oe.Constructor=2]="Constructor",oe[oe.Field=3]="Field",oe[oe.Variable=4]="Variable",oe[oe.Class=5]="Class",oe[oe.Struct=6]="Struct",oe[oe.Interface=7]="Interface",oe[oe.Module=8]="Module",oe[oe.Property=9]="Property",oe[oe.Event=10]="Event",oe[oe.Operator=11]="Operator",oe[oe.Unit=12]="Unit",oe[oe.Value=13]="Value",oe[oe.Constant=14]="Constant",oe[oe.Enum=15]="Enum",oe[oe.EnumMember=16]="EnumMember",oe[oe.Keyword=17]="Keyword",oe[oe.Text=18]="Text",oe[oe.Color=19]="Color",oe[oe.File=20]="File",oe[oe.Reference=21]="Reference",oe[oe.Customcolor=22]="Customcolor",oe[oe.Folder=23]="Folder",oe[oe.TypeParameter=24]="TypeParameter",oe[oe.User=25]="User",oe[oe.Issue=26]="Issue",oe[oe.Snippet=27]="Snippet",s=s||{},s[s.Deprecated=1]="Deprecated",(oe=a=a||{})[oe.Invoke=0]="Invoke",oe[oe.TriggerCharacter=1]="TriggerCharacter",oe[oe.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(oe=l=l||{})[oe.EXACT=0]="EXACT",oe[oe.ABOVE=1]="ABOVE",oe[oe.BELOW=2]="BELOW",(oe=d=d||{})[oe.NotSet=0]="NotSet",oe[oe.ContentFlush=1]="ContentFlush",oe[oe.RecoverFromMarkers=2]="RecoverFromMarkers",oe[oe.Explicit=3]="Explicit",oe[oe.Paste=4]="Paste",oe[oe.Undo=5]="Undo",oe[oe.Redo=6]="Redo",(oe=h=h||{})[oe.LF=1]="LF",oe[oe.CRLF=2]="CRLF",(oe=c=c||{})[oe.Text=0]="Text",oe[oe.Read=1]="Read",oe[oe.Write=2]="Write",(oe=u=u||{})[oe.None=0]="None",oe[oe.Keep=1]="Keep",oe[oe.Brackets=2]="Brackets",oe[oe.Advanced=3]="Advanced",oe[oe.Full=4]="Full",(oe=g=g||{})[oe.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",oe[oe.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",oe[oe.accessibilitySupport=2]="accessibilitySupport",oe[oe.accessibilityPageSize=3]="accessibilityPageSize",oe[oe.ariaLabel=4]="ariaLabel",oe[oe.autoClosingBrackets=5]="autoClosingBrackets",oe[oe.autoClosingDelete=6]="autoClosingDelete",oe[oe.autoClosingOvertype=7]="autoClosingOvertype",oe[oe.autoClosingQuotes=8]="autoClosingQuotes",oe[oe.autoIndent=9]="autoIndent",oe[oe.automaticLayout=10]="automaticLayout",oe[oe.autoSurround=11]="autoSurround",oe[oe.bracketPairColorization=12]="bracketPairColorization",oe[oe.codeLens=13]="codeLens",oe[oe.codeLensFontFamily=14]="codeLensFontFamily",oe[oe.codeLensFontSize=15]="codeLensFontSize",oe[oe.colorDecorators=16]="colorDecorators",oe[oe.columnSelection=17]="columnSelection",oe[oe.comments=18]="comments",oe[oe.contextmenu=19]="contextmenu",oe[oe.copyWithSyntaxHighlighting=20]="copyWithSyntaxHighlighting",oe[oe.cursorBlinking=21]="cursorBlinking",oe[oe.cursorSmoothCaretAnimation=22]="cursorSmoothCaretAnimation",oe[oe.cursorStyle=23]="cursorStyle",oe[oe.cursorSurroundingLines=24]="cursorSurroundingLines",oe[oe.cursorSurroundingLinesStyle=25]="cursorSurroundingLinesStyle",oe[oe.cursorWidth=26]="cursorWidth",oe[oe.disableLayerHinting=27]="disableLayerHinting",oe[oe.disableMonospaceOptimizations=28]="disableMonospaceOptimizations",oe[oe.domReadOnly=29]="domReadOnly",oe[oe.dragAndDrop=30]="dragAndDrop",oe[oe.emptySelectionClipboard=31]="emptySelectionClipboard",oe[oe.extraEditorClassName=32]="extraEditorClassName",oe[oe.fastScrollSensitivity=33]="fastScrollSensitivity",oe[oe.find=34]="find",oe[oe.fixedOverflowWidgets=35]="fixedOverflowWidgets",oe[oe.folding=36]="folding",oe[oe.foldingStrategy=37]="foldingStrategy",oe[oe.foldingHighlight=38]="foldingHighlight",oe[oe.foldingImportsByDefault=39]="foldingImportsByDefault",oe[oe.unfoldOnClickAfterEndOfLine=40]="unfoldOnClickAfterEndOfLine",oe[oe.fontFamily=41]="fontFamily",oe[oe.fontInfo=42]="fontInfo",oe[oe.fontLigatures=43]="fontLigatures",oe[oe.fontSize=44]="fontSize",oe[oe.fontWeight=45]="fontWeight",oe[oe.formatOnPaste=46]="formatOnPaste",oe[oe.formatOnType=47]="formatOnType",oe[oe.glyphMargin=48]="glyphMargin",oe[oe.gotoLocation=49]="gotoLocation",oe[oe.hideCursorInOverviewRuler=50]="hideCursorInOverviewRuler",oe[oe.highlightActiveIndentGuide=51]="highlightActiveIndentGuide",oe[oe.hover=52]="hover",oe[oe.inDiffEditor=53]="inDiffEditor",oe[oe.inlineSuggest=54]="inlineSuggest",oe[oe.letterSpacing=55]="letterSpacing",oe[oe.lightbulb=56]="lightbulb",oe[oe.lineDecorationsWidth=57]="lineDecorationsWidth",oe[oe.lineHeight=58]="lineHeight",oe[oe.lineNumbers=59]="lineNumbers",oe[oe.lineNumbersMinChars=60]="lineNumbersMinChars",oe[oe.linkedEditing=61]="linkedEditing",oe[oe.links=62]="links",oe[oe.matchBrackets=63]="matchBrackets",oe[oe.minimap=64]="minimap",oe[oe.mouseStyle=65]="mouseStyle",oe[oe.mouseWheelScrollSensitivity=66]="mouseWheelScrollSensitivity",oe[oe.mouseWheelZoom=67]="mouseWheelZoom",oe[oe.multiCursorMergeOverlapping=68]="multiCursorMergeOverlapping",oe[oe.multiCursorModifier=69]="multiCursorModifier",oe[oe.multiCursorPaste=70]="multiCursorPaste",oe[oe.occurrencesHighlight=71]="occurrencesHighlight",oe[oe.overviewRulerBorder=72]="overviewRulerBorder",oe[oe.overviewRulerLanes=73]="overviewRulerLanes",oe[oe.padding=74]="padding",oe[oe.parameterHints=75]="parameterHints",oe[oe.peekWidgetDefaultFocus=76]="peekWidgetDefaultFocus",oe[oe.definitionLinkOpensInPeek=77]="definitionLinkOpensInPeek",oe[oe.quickSuggestions=78]="quickSuggestions",oe[oe.quickSuggestionsDelay=79]="quickSuggestionsDelay",oe[oe.readOnly=80]="readOnly",oe[oe.renameOnType=81]="renameOnType",oe[oe.renderControlCharacters=82]="renderControlCharacters",oe[oe.renderIndentGuides=83]="renderIndentGuides",oe[oe.renderFinalNewline=84]="renderFinalNewline",oe[oe.renderLineHighlight=85]="renderLineHighlight",oe[oe.renderLineHighlightOnlyWhenFocus=86]="renderLineHighlightOnlyWhenFocus",oe[oe.renderValidationDecorations=87]="renderValidationDecorations",oe[oe.renderWhitespace=88]="renderWhitespace",oe[oe.revealHorizontalRightPadding=89]="revealHorizontalRightPadding",oe[oe.roundedSelection=90]="roundedSelection",oe[oe.rulers=91]="rulers",oe[oe.scrollbar=92]="scrollbar",oe[oe.scrollBeyondLastColumn=93]="scrollBeyondLastColumn",oe[oe.scrollBeyondLastLine=94]="scrollBeyondLastLine",oe[oe.scrollPredominantAxis=95]="scrollPredominantAxis",oe[oe.selectionClipboard=96]="selectionClipboard",oe[oe.selectionHighlight=97]="selectionHighlight",oe[oe.selectOnLineNumbers=98]="selectOnLineNumbers",oe[oe.showFoldingControls=99]="showFoldingControls",oe[oe.showUnused=100]="showUnused",oe[oe.snippetSuggestions=101]="snippetSuggestions",oe[oe.smartSelect=102]="smartSelect",oe[oe.smoothScrolling=103]="smoothScrolling",oe[oe.stickyTabStops=104]="stickyTabStops",oe[oe.stopRenderingLineAfter=105]="stopRenderingLineAfter",oe[oe.suggest=106]="suggest",oe[oe.suggestFontSize=107]="suggestFontSize",oe[oe.suggestLineHeight=108]="suggestLineHeight",oe[oe.suggestOnTriggerCharacters=109]="suggestOnTriggerCharacters",oe[oe.suggestSelection=110]="suggestSelection",oe[oe.tabCompletion=111]="tabCompletion",oe[oe.tabIndex=112]="tabIndex",oe[oe.unusualLineTerminators=113]="unusualLineTerminators",oe[oe.useShadowDOM=114]="useShadowDOM",oe[oe.useTabStops=115]="useTabStops",oe[oe.wordSeparators=116]="wordSeparators",oe[oe.wordWrap=117]="wordWrap",oe[oe.wordWrapBreakAfterCharacters=118]="wordWrapBreakAfterCharacters",oe[oe.wordWrapBreakBeforeCharacters=119]="wordWrapBreakBeforeCharacters",oe[oe.wordWrapColumn=120]="wordWrapColumn",oe[oe.wordWrapOverride1=121]="wordWrapOverride1",oe[oe.wordWrapOverride2=122]="wordWrapOverride2",oe[oe.wrappingIndent=123]="wrappingIndent",oe[oe.wrappingStrategy=124]="wrappingStrategy",oe[oe.showDeprecated=125]="showDeprecated",oe[oe.inlayHints=126]="inlayHints",oe[oe.editorClassName=127]="editorClassName",oe[oe.pixelRatio=128]="pixelRatio",oe[oe.tabFocusMode=129]="tabFocusMode",oe[oe.layoutInfo=130]="layoutInfo",oe[oe.wrappingInfo=131]="wrappingInfo",(oe=p=p||{})[oe.TextDefined=0]="TextDefined",oe[oe.LF=1]="LF",oe[oe.CRLF=2]="CRLF",(oe=m=m||{})[oe.LF=0]="LF",oe[oe.CRLF=1]="CRLF",(oe=f=f||{})[oe.None=0]="None",oe[oe.Indent=1]="Indent",oe[oe.IndentOutdent=2]="IndentOutdent",oe[oe.Outdent=3]="Outdent",(oe=_=_||{})[oe.Other=0]="Other",oe[oe.Type=1]="Type",oe[oe.Parameter=2]="Parameter",(oe=b=b||{})[oe.Automatic=0]="Automatic",oe[oe.Explicit=1]="Explicit",(oe=v=v||{})[oe.DependsOnKbLayout=-1]="DependsOnKbLayout",oe[oe.Unknown=0]="Unknown",oe[oe.Backspace=1]="Backspace",oe[oe.Tab=2]="Tab",oe[oe.Enter=3]="Enter",oe[oe.Shift=4]="Shift",oe[oe.Ctrl=5]="Ctrl",oe[oe.Alt=6]="Alt",oe[oe.PauseBreak=7]="PauseBreak",oe[oe.CapsLock=8]="CapsLock",oe[oe.Escape=9]="Escape",oe[oe.Space=10]="Space",oe[oe.PageUp=11]="PageUp",oe[oe.PageDown=12]="PageDown",oe[oe.End=13]="End",oe[oe.Home=14]="Home",oe[oe.LeftArrow=15]="LeftArrow",oe[oe.UpArrow=16]="UpArrow",oe[oe.RightArrow=17]="RightArrow",oe[oe.DownArrow=18]="DownArrow",oe[oe.Insert=19]="Insert",oe[oe.Delete=20]="Delete",oe[oe.KEY_0=21]="KEY_0",oe[oe.KEY_1=22]="KEY_1",oe[oe.KEY_2=23]="KEY_2",oe[oe.KEY_3=24]="KEY_3",oe[oe.KEY_4=25]="KEY_4",oe[oe.KEY_5=26]="KEY_5",oe[oe.KEY_6=27]="KEY_6",oe[oe.KEY_7=28]="KEY_7",oe[oe.KEY_8=29]="KEY_8",oe[oe.KEY_9=30]="KEY_9",oe[oe.KEY_A=31]="KEY_A",oe[oe.KEY_B=32]="KEY_B",oe[oe.KEY_C=33]="KEY_C",oe[oe.KEY_D=34]="KEY_D",oe[oe.KEY_E=35]="KEY_E",oe[oe.KEY_F=36]="KEY_F",oe[oe.KEY_G=37]="KEY_G",oe[oe.KEY_H=38]="KEY_H",oe[oe.KEY_I=39]="KEY_I",oe[oe.KEY_J=40]="KEY_J",oe[oe.KEY_K=41]="KEY_K",oe[oe.KEY_L=42]="KEY_L",oe[oe.KEY_M=43]="KEY_M",oe[oe.KEY_N=44]="KEY_N",oe[oe.KEY_O=45]="KEY_O",oe[oe.KEY_P=46]="KEY_P",oe[oe.KEY_Q=47]="KEY_Q",oe[oe.KEY_R=48]="KEY_R",oe[oe.KEY_S=49]="KEY_S",oe[oe.KEY_T=50]="KEY_T",oe[oe.KEY_U=51]="KEY_U",oe[oe.KEY_V=52]="KEY_V",oe[oe.KEY_W=53]="KEY_W",oe[oe.KEY_X=54]="KEY_X",oe[oe.KEY_Y=55]="KEY_Y",oe[oe.KEY_Z=56]="KEY_Z",oe[oe.Meta=57]="Meta",oe[oe.ContextMenu=58]="ContextMenu",oe[oe.F1=59]="F1",oe[oe.F2=60]="F2",oe[oe.F3=61]="F3",oe[oe.F4=62]="F4",oe[oe.F5=63]="F5",oe[oe.F6=64]="F6",oe[oe.F7=65]="F7",oe[oe.F8=66]="F8",oe[oe.F9=67]="F9",oe[oe.F10=68]="F10",oe[oe.F11=69]="F11",oe[oe.F12=70]="F12",oe[oe.F13=71]="F13",oe[oe.F14=72]="F14",oe[oe.F15=73]="F15",oe[oe.F16=74]="F16",oe[oe.F17=75]="F17",oe[oe.F18=76]="F18",oe[oe.F19=77]="F19",oe[oe.NumLock=78]="NumLock",oe[oe.ScrollLock=79]="ScrollLock",oe[oe.US_SEMICOLON=80]="US_SEMICOLON",oe[oe.US_EQUAL=81]="US_EQUAL",oe[oe.US_COMMA=82]="US_COMMA",oe[oe.US_MINUS=83]="US_MINUS",oe[oe.US_DOT=84]="US_DOT",oe[oe.US_SLASH=85]="US_SLASH",oe[oe.US_BACKTICK=86]="US_BACKTICK",oe[oe.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",oe[oe.US_BACKSLASH=88]="US_BACKSLASH",oe[oe.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",oe[oe.US_QUOTE=90]="US_QUOTE",oe[oe.OEM_8=91]="OEM_8",oe[oe.OEM_102=92]="OEM_102",oe[oe.NUMPAD_0=93]="NUMPAD_0",oe[oe.NUMPAD_1=94]="NUMPAD_1",oe[oe.NUMPAD_2=95]="NUMPAD_2",oe[oe.NUMPAD_3=96]="NUMPAD_3",oe[oe.NUMPAD_4=97]="NUMPAD_4",oe[oe.NUMPAD_5=98]="NUMPAD_5",oe[oe.NUMPAD_6=99]="NUMPAD_6",oe[oe.NUMPAD_7=100]="NUMPAD_7",oe[oe.NUMPAD_8=101]="NUMPAD_8",oe[oe.NUMPAD_9=102]="NUMPAD_9",oe[oe.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",oe[oe.NUMPAD_ADD=104]="NUMPAD_ADD",oe[oe.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",oe[oe.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",oe[oe.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",oe[oe.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",oe[oe.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",oe[oe.ABNT_C1=110]="ABNT_C1",oe[oe.ABNT_C2=111]="ABNT_C2",oe[oe.MAX_VALUE=112]="MAX_VALUE",(oe=C=C||{})[oe.Hint=1]="Hint",oe[oe.Info=2]="Info",oe[oe.Warning=4]="Warning",oe[oe.Error=8]="Error",(oe=w=w||{})[oe.Unnecessary=1]="Unnecessary",oe[oe.Deprecated=2]="Deprecated",(oe=y=y||{})[oe.Inline=1]="Inline",oe[oe.Gutter=2]="Gutter",(oe=S=S||{})[oe.UNKNOWN=0]="UNKNOWN",oe[oe.TEXTAREA=1]="TEXTAREA",oe[oe.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",oe[oe.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",oe[oe.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",oe[oe.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",oe[oe.CONTENT_TEXT=6]="CONTENT_TEXT",oe[oe.CONTENT_EMPTY=7]="CONTENT_EMPTY",oe[oe.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",oe[oe.CONTENT_WIDGET=9]="CONTENT_WIDGET",oe[oe.OVERVIEW_RULER=10]="OVERVIEW_RULER",oe[oe.SCROLLBAR=11]="SCROLLBAR",oe[oe.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",oe[oe.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(oe=L=L||{})[oe.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",oe[oe.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",oe[oe.TOP_CENTER=2]="TOP_CENTER",(oe=x=x||{})[oe.Left=1]="Left",oe[oe.Center=2]="Center",oe[oe.Right=4]="Right",oe[oe.Full=7]="Full",(oe=k=k||{})[oe.Off=0]="Off",oe[oe.On=1]="On",oe[oe.Relative=2]="Relative",oe[oe.Interval=3]="Interval",oe[oe.Custom=4]="Custom",(oe=D=D||{})[oe.None=0]="None",oe[oe.Text=1]="Text",oe[oe.Blocks=2]="Blocks",(oe=N=N||{})[oe.Smooth=0]="Smooth",oe[oe.Immediate=1]="Immediate",(oe=O=O||{})[oe.Auto=1]="Auto",oe[oe.Hidden=2]="Hidden",oe[oe.Visible=3]="Visible",(oe=E=E||{})[oe.LTR=0]="LTR",oe[oe.RTL=1]="RTL",(oe=I=I||{})[oe.Invoke=1]="Invoke",oe[oe.TriggerCharacter=2]="TriggerCharacter",oe[oe.ContentChange=3]="ContentChange",(oe=M=M||{})[oe.File=0]="File",oe[oe.Module=1]="Module",oe[oe.Namespace=2]="Namespace",oe[oe.Package=3]="Package",oe[oe.Class=4]="Class",oe[oe.Method=5]="Method",oe[oe.Property=6]="Property",oe[oe.Field=7]="Field",oe[oe.Constructor=8]="Constructor",oe[oe.Enum=9]="Enum",oe[oe.Interface=10]="Interface",oe[oe.Function=11]="Function",oe[oe.Variable=12]="Variable",oe[oe.Constant=13]="Constant",oe[oe.String=14]="String",oe[oe.Number=15]="Number",oe[oe.Boolean=16]="Boolean",oe[oe.Array=17]="Array",oe[oe.Object=18]="Object",oe[oe.Key=19]="Key",oe[oe.Null=20]="Null",oe[oe.EnumMember=21]="EnumMember",oe[oe.Struct=22]="Struct",oe[oe.Event=23]="Event",oe[oe.Operator=24]="Operator",oe[oe.TypeParameter=25]="TypeParameter",T=T||{},T[T.Deprecated=1]="Deprecated",(oe=A=A||{})[oe.Hidden=0]="Hidden",oe[oe.Blink=1]="Blink",oe[oe.Smooth=2]="Smooth",oe[oe.Phase=3]="Phase",oe[oe.Expand=4]="Expand",oe[oe.Solid=5]="Solid",(oe=R=R||{})[oe.Line=1]="Line",oe[oe.Block=2]="Block",oe[oe.Underline=3]="Underline",oe[oe.LineThin=4]="LineThin",oe[oe.BlockOutline=5]="BlockOutline",oe[oe.UnderlineThin=6]="UnderlineThin",(oe=P=P||{})[oe.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",oe[oe.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",oe[oe.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",oe[oe.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(oe=F=F||{})[oe.None=0]="None",oe[oe.Same=1]="Same",oe[oe.Indent=2]="Indent",oe[oe.DeepIndent=3]="DeepIndent";class q{static chord(e,t){return Object(W.a)(e,t)}}function $(){return{editor:void 0,languages:void 0,CancellationTokenSource:B.b,Emitter:j.b,KeyCode:v,KeyMod:q,Position:H.a,Range:z.a,Selection:U.a,SelectionDirection:E,MarkerSeverity:C,MarkerTag:w,Uri:V.a,Token:K.a}}q.CtrlCmd=2048,q.Shift=1024,q.Alt=512,q.WinCtrl=256,i("b223");var G,Z=i("5717"),Y=i("11f7"),X=i("db88"),Q=i("40355"),J=i("438a"),ee=i("b589"),te=i("82c9"),ie=i("9e74"),ne=((oe=G=G||{})[oe.API=0]="API",oe[oe.USER=1]="USER",i("5bd73")),oe=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},re=function(e,t){return function(i,n){t(i,n,e)}},se=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};let ae=class{constructor(e){this._commandService=e}open(e,t){return se(this,void 0,void 0,(function*(){if(!Object(ne.c)(e,ee.c.command))return!1;if(null!=t&&t.allowCommands){"string"==typeof e&&(e=V.a.parse(e));let i=[];try{i=Object(J.a)(decodeURIComponent(e.query))}catch(t){try{i=Object(J.a)(e.query)}catch(t){}}Array.isArray(i)||(i=[i]),yield this._commandService.executeCommand(e.path,...i)}return!0}))}},le=(ae=oe([re(0,ie.b)],ae),class{constructor(e){this._editorService=e}open(e,t){return se(this,void 0,void 0,(function*(){"string"==typeof e&&(e=V.a.parse(e));let i=void 0;var n=/^L?(\d+)(?:,(\d+))?/.exec(e.fragment);return n&&(i={startLineNumber:parseInt(n[1]),startColumn:n[2]?parseInt(n[2]):1},e=e.with({fragment:""})),e.scheme===ee.c.file&&(e=Object(te.h)(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:i,context:null!=t&&t.fromUserGesture?G.USER:G.API},null==t?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),null==t?void 0:t.openToSide),!0}))}}),de=(le=oe([re(0,Z.a)],le),class{constructor(e,t){this._openers=new X.a,this._validators=new X.a,this._resolvers=new X.a,this._resolvedUriTargets=new Q.b(e=>e.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new X.a,this._defaultExternalOpener={openExternal:e=>se(this,void 0,void 0,(function*(){return Object(ne.c)(e,ee.c.http)||Object(ne.c)(e,ee.c.https)?Y.Z(e):window.location.href=e,!0}))},this._openers.push({open:(e,t)=>se(this,void 0,void 0,(function*(){return!!(null!=t&&t.openExternal||Object(ne.c)(e,ee.c.mailto)||Object(ne.c)(e,ee.c.http)||Object(ne.c)(e,ee.c.https))&&(yield this._doOpenExternal(e,t),!0)}))}),this._openers.push(new ae(t)),this._openers.push(new le(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}registerValidator(e){return{dispose:this._validators.push(e)}}registerExternalUriResolver(e){return{dispose:this._resolvers.push(e)}}setDefaultExternalOpener(e){this._defaultExternalOpener=e}registerExternalOpener(e){return{dispose:this._externalOpeners.push(e)}}open(e,t){var i;return se(this,void 0,void 0,(function*(){var n="string"==typeof e?V.a.parse(e):e,o=null!=(i=this._resolvedUriTargets.get(n))?i:e;for(const e of this._validators)if(!(yield e.shouldOpen(o)))return!1;for(const i of this._openers)if(yield i.open(e,t))return!0;return!1}))}resolveExternalUri(e,t){return se(this,void 0,void 0,(function*(){for(const n of this._resolvers)try{var i=yield n.resolveExternalUri(e,t);if(i)return this._resolvedUriTargets.has(i.resolved)||this._resolvedUriTargets.set(i.resolved,e),i}catch(i){}throw new Error("Could not resolve external URI: "+e.toString())}))}_doOpenExternal(e,t){return se(this,void 0,void 0,(function*(){var i="string"==typeof e?V.a.parse(e):e;let n,o;try{n=(yield this.resolveExternalUri(i,t)).resolved}catch(o){n=i}if(o="string"==typeof e&&i.toString()===n.toString()?e:encodeURI(n.toString(!0)),null!=t&&t.allowContributedOpeners){var r="string"!=typeof(null==t?void 0:t.allowContributedOpeners)||null==t?void 0:t.allowContributedOpeners;for(const e of this._externalOpeners)if(yield e.openExternal(o,{sourceUri:i,preferredOpenerId:r},B.a.None))return!0}return this._defaultExternalOpener.openExternal(o,{sourceUri:i},B.a.None)}))}dispose(){this._validators.clear()}});de=oe([re(0,Z.a),re(1,ie.b)],de);var he=i("d0b6"),ce=(oe=i("fb71"),i("8ae8")),ue=i("3352"),ge=i("b707"),pe=i("8bf1"),me=i("a40b"),fe=i("5818"),_e=i("b78f"),be=i("5fe7"),ve=i("a666"),Ce=i("fdcc"),we=i("30db"),ye=i("ef8e9");const Se="$initialize";let Le=!1;function xe(){we.h&&(Le=Le||!0)}class ke{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(e){this._workerId=e}sendMessage(e,t){let i=String(++this._lastSentReq);return new Promise((n,o)=>{this._pendingReplies[i]={resolve:n,reject:o},this._send({vsWorker:this._workerId,req:i,method:e,args:t})})}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){if(e.seq){var t=e;if(this._pendingReplies[t.seq]){var i=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let e=t.err;t.err.$isError&&((e=new Error).name=t.err.name,e.message=t.err.message,e.stack=t.err.stack),i.reject(e)}else i.resolve(t.res)}}else{let t=e.req;this._handler.handleMessage(e.method,e.args).then(e=>{this._send({vsWorker:this._workerId,seq:t,res:e,err:void 0})},e=>{e.detail instanceof Error&&(e.detail=Object(Ce.h)(e.detail)),this._send({vsWorker:this._workerId,seq:t,res:void 0,err:Object(Ce.h)(e)})})}}_send(e){var t=[];if(e.req){var i=e;for(let e=0;e<i.args.length;e++)i.args[e]instanceof ArrayBuffer&&t.push(i.args[e])}else{var n=e;n.res instanceof ArrayBuffer&&t.push(n.res)}this._handler.sendMessage(e,t)}}class De extends ve.a{constructor(e,t,i){super();let n=null,o=(this._worker=this._register(e.create("vs/base/common/worker/simpleWorker",e=>{this._protocol.handleMessage(e)},e=>{n&&n(e)})),this._protocol=new ke({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!=typeof i[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(e){return Promise.reject(e)}}}),this._protocol.setWorkerId(this._worker.getId()),null);void 0!==self.require&&"function"==typeof self.require.getConfig?o=self.require.getConfig():void 0!==self.requirejs&&(o=self.requirejs.s.contexts._.config),e=ye.e(i),this._onModuleLoaded=this._protocol.sendMessage(Se,[this._worker.getId(),JSON.parse(JSON.stringify(o)),t,e]);const r=(e,t)=>this._request(e,t);this._lazyProxy=new Promise((e,i)=>{n=i,this._onModuleLoaded.then(t=>{e(ye.d(t,r))},e=>{i(e),this._onError("Worker failed to load "+t,e)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,n)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,n)},n)})}_onError(e,t){}}const Ne=null==(re=window.trustedTypes)?void 0:re.createPolicy("defaultWorkerFactory",{createScriptURL:e=>e});class Oe{constructor(e,t,i,n,o){this.id=t,t=function(e,t){if(we.b.MonacoEnvironment){if("function"==typeof we.b.MonacoEnvironment.getWorker)return we.b.MonacoEnvironment.getWorker(e,t);if("function"==typeof we.b.MonacoEnvironment.getWorkerUrl)return e=we.b.MonacoEnvironment.getWorkerUrl(e,t),new Worker(Ne?Ne.createScriptURL(e):e,{name:t})}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",i),"function"==typeof t.then?this.worker=t:this.worker=Promise.resolve(t),this.postMessage(e,[]),this.worker.then(e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=o,"function"==typeof e.addEventListener&&e.addEventListener("error",o)})}getId(){return this.id}postMessage(e,t){this.worker&&this.worker.then(i=>i.postMessage(e,t))}dispose(){this.worker&&this.worker.then(e=>e.terminate()),this.worker=null}}class Ee{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){var n=++Ee.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new Oe(e,n,this._label||"anonymous"+n,t,e=>{xe(),this._webWorkerFailedBeforeError=e,i(e)})}}Ee.LAST_WORKER_ID=0;var Ie=i("70cb"),Me=i("1b0e"),Te=i("3742");function Ae(e,t,i,n){return new Me.a(e,t,i).ComputeDiff(n)}class Re{constructor(e){var t=[],i=[];for(let n=0,o=e.length;n<o;n++)t[n]=We(e[n],1),i[n]=Ve(e[n],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){var e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){var n=[],o=[],r=[];let s=0;for(let h=t;h<=i;h++){var a=this.lines[h],l=e?this._startColumns[h]:1,d=e?this._endColumns[h]:a.length+1;for(let e=l;e<d;e++)n[s]=a.charCodeAt(e-1),o[s]=h+1,r[s]=e,s++}return new Pe(n,o,r)}}class Pe{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}getElements(){return this._charCodes}getStartLineNumber(e){return this._lineNumbers[e]}getStartColumn(e){return this._columns[e]}getEndLineNumber(e){return this._lineNumbers[e]}getEndColumn(e){return this._columns[e]+1}}class Fe{constructor(e,t,i,n,o,r,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=n,this.modifiedStartLineNumber=o,this.modifiedStartColumn=r,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){let n,o,r,s,a,l,d,h;return s=0===e.originalLength?(n=0,o=0,r=0):(n=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),t.getEndColumn(e.originalStart+e.originalLength-1)),h=0===e.modifiedLength?(a=0,l=0,d=0):(a=i.getStartLineNumber(e.modifiedStart),l=i.getStartColumn(e.modifiedStart),d=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),i.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new Fe(n,o,r,s,a,l,d,h)}}class Be{constructor(e,t,i,n,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=n,this.charChanges=o}static createFromDiffResult(e,t,i,n,o,r,s){let a,l,d,h,c=void 0;if(l=0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,0):(a=i.getStartLineNumber(t.originalStart),i.getEndLineNumber(t.originalStart+t.originalLength-1)),h=0===t.modifiedLength?(d=n.getStartLineNumber(t.modifiedStart)-1,0):(d=n.getStartLineNumber(t.modifiedStart),n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&0<t.originalLength&&t.originalLength<20&&0<t.modifiedLength&&t.modifiedLength<20&&o()){var u=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),g=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let r=Ae(u,g,o,!0).changes;s&&(r=function(e){if(e.length<=1)return e;var t=[e[0]];let i=t[0];for(let s=1,a=e.length;s<a;s++){var n=e[s],o=n.originalStart-(i.originalStart+i.originalLength),r=n.modifiedStart-(i.modifiedStart+i.modifiedLength);Math.min(o,r)<3?(i.originalLength=n.originalStart+n.originalLength-i.originalStart,i.modifiedLength=n.modifiedStart+n.modifiedLength-i.modifiedStart):(t.push(n),i=n)}return t}(r)),c=[];for(let e=0,t=r.length;e<t;e++)c.push(Fe.createFromDiffChange(r[e],u,g))}return new Be(a,l,d,h,c)}}class je{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Re(e),this.modified=new Re(t),this.continueLineDiff=He(i.maxComputationTime),this.continueCharDiff=He(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var e=Ae(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes;e=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){var i=[];for(let e=0,n=t.length;e<n;e++)i.push(Be.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[e],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:e,changes:i}}var n=[];let o=0,r=0;for(let g=-1,p=t.length;g<p;g++){for(var s=g+1<p?t[g+1]:null,a=s?s.originalStart:this.originalLines.length,l=s?s.modifiedStart:this.modifiedLines.length;o<a&&r<l;){var d=this.originalLines[o],h=this.modifiedLines[r];if(d!==h){{let e=We(d,1),t=We(h,1);for(;1<e&&1<t;){if(d.charCodeAt(e-2)!==h.charCodeAt(t-2))break;e--,t--}(1<e||1<t)&&this._pushTrimWhitespaceCharChange(n,o+1,1,e,r+1,1,t)}{let e=Ve(d,1),t=Ve(h,1);for(var c=d.length+1,u=h.length+1;e<c&&t<u;){if(d.charCodeAt(e-1)!==d.charCodeAt(t-1))break;e++,t++}(e<c||t<u)&&this._pushTrimWhitespaceCharChange(n,o+1,e,c,r+1,t,u)}}o++,r++}s&&(n.push(Be.createFromDiffResult(this.shouldIgnoreTrimWhitespace,s,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),o+=s.originalLength,r+=s.modifiedLength)}return{quitEarly:e,changes:n}}_pushTrimWhitespaceCharChange(e,t,i,n,o,r,s){if(!this._mergeTrimWhitespaceCharChange(e,t,i,n,o,r,s)){let a=void 0;this.shouldComputeCharChanges&&(a=[new Fe(t,i,t,n,o,r,o,s)]),e.push(new Be(t,t,o,o,a))}}_mergeTrimWhitespaceCharChange(e,t,i,n,o,r,s){var a=e.length;return 0!==a&&0!==(e=e[a-1]).originalEndLineNumber&&0!==e.modifiedEndLineNumber&&e.originalEndLineNumber+1===t&&e.modifiedEndLineNumber+1===o&&(e.originalEndLineNumber=t,e.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&e.charChanges&&e.charChanges.push(new Fe(t,i,t,n,o,r,o,s)),!0)}}function We(e,t){return e=Te.u(e),-1===e?t:e+1}function Ve(e,t){return e=Te.I(e),-1===e?t:e+2}function He(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var ze=i("2de5"),Ue=i("d093"),Ke=i("3170");class qe{constructor(e,t,i){var n=new Uint8Array(e*t);for(let o=0,r=e*t;o<r;o++)n[o]=i;this._data=n,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class $e{constructor(e){let t=0,i=0;for(let h=0,c=e.length;h<c;h++){var[n,o,r]=e[h];o>t&&(t=o),r>(i=n>i?n:i)&&(i=r)}t++,i++;var s=new qe(i,t,0);for(let h=0,c=e.length;h<c;h++){var[a,l,d]=e[h];s.set(a,l,d)}this._states=s,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let Ge=null,Ze=null;class Ye{static _createLink(e,t,i,n,o){let r=o-1;do{var s=t.charCodeAt(r);if(2!==e.get(s))break}while(--r>n);var a;return 0<n&&(o=t.charCodeAt(n-1),a=t.charCodeAt(r),40===o&&41===a||91===o&&93===a||123===o&&125===a)&&r--,{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:r+2},url:t.substring(n,r+1)}}static computeLinks(e,t=(Ge=null===Ge?new $e([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]]):Ge)){var i=function(){if(null===Ze){Ze=new Ke.a(0);var e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t<e.length;t++)Ze.set(e.charCodeAt(t),1);for(let e=0;e<".,;".length;e++)Ze.set(".,;".charCodeAt(e),2)}return Ze}(),n=[];for(let a=1,l=e.getLineCount();a<=l;a++){var o=e.getLineContent(a),r=o.length;let l=0,d=0,h=0,c=1,u=!1,g=!1,p=!1,m=!1;for(;l<r;){let e=!1;var s=o.charCodeAt(l);if(13===c){let t;switch(s){case 40:u=!0,t=0;break;case 41:t=u?0:1;break;case 91:p=!0,g=!0,t=0;break;case 93:p=!1,t=g?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:t=34===h||96===h?0:1;break;case 34:t=39===h||96===h?0:1;break;case 96:t=39===h||34===h?0:1;break;case 42:t=42===h?1:0;break;case 124:t=124===h?1:0;break;case 32:t=p?0:1;break;default:t=i.get(s)}1===t&&(n.push(Ye._createLink(i,o,a,d,l)),e=!0)}else if(12===c){let t;1===(t=91===s?(g=!0,0):i.get(s))?e=!0:c=13}else 0===(c=t.nextState(c,s))&&(e=!0);e&&(c=1,u=!1,g=!1,m=!1,d=l+1,h=s),l++}13===c&&n.push(Ye._createLink(i,o,a,d,r))}return n}}class Xe{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,i,n,o){return e&&t&&(t=this.doNavigateValueSet(t,o),t)?{range:e,value:t}:i&&n&&(e=this.doNavigateValueSet(n,o),e)?{range:i,value:e}:null}doNavigateValueSet(e,t){var i=this.numberReplace(e,t);return null!==i?i:this.textReplace(e,t)}numberReplace(e,t){var i=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),n=Number(e);e=parseFloat(e);return isNaN(n)||isNaN(e)||n!==e||0===n&&!t?null:(n=Math.floor(n*i),n+=t?i:-i,String(n/i))}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let n=null;for(let o=0,r=e.length;null===n&&o<r;o++)n=this.valueSetReplace(e[o],t,i);return n}valueSetReplace(e,t,i){let n=e.indexOf(t);return 0<=n?((n+=i?1:-1)<0?n=e.length-1:n%=e.length,e[n]):null}}Xe.INSTANCE=new Xe;var Qe=i("e58e"),Je=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class et extends class{constructor(e,t,i,n){this._uri=e,this._lines=t,this._eol=i,this._versionId=n,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(const t of e.changes)this._acceptDeleteRange(t.range),this._acceptInsertText(new H.a(t.range.startLineNumber,t.range.startColumn),t.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){var e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let n=0;n<t;n++)i[n]=this._lines[n].length+e;this._lineStarts=new ze.a(i)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber)return e.startColumn===e.endColumn?void 0:void this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){if(0!==t.length){var i=Object(Te.Q)(t);if(1===i.length)this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));else{i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);var n=new Uint32Array(i.length-1);for(let t=1;t<i.length;t++)this._lines.splice(e.lineNumber+t-1,0,i[t]),n[t-1]=i[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,n)}}}}{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){return t=Object(Ue.d)(e.column,Object(Ue.c)(t),this._lines[e.lineNumber-1],0),t?new z.a(e.lineNumber,t.startColumn,e.lineNumber,t.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let n=0,o="",r=0,s=[];return{*[Symbol.iterator](){for(;;)if(r<s.length){var a=o.substring(s[r].start,s[r].end);r+=1,yield a}else{if(!(n<t.length))break;o=t[n],s=i(o,e),r=0,n+=1}}}}getLineWords(e,t){var i=this._lines[e-1],n=[];for(const o of this._wordenize(i,t))n.push({word:i.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return n}_wordenize(e,t){var i,n=[];for(t.lastIndex=0;(i=t.exec(e))&&0!==i[0].length;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,i=e.startLineNumber-1,n=e.endLineNumber-1,o=[];o.push(this._lines[i].substring(e.startColumn-1));for(let r=1+i;r<n;r++)o.push(this._lines[r]);return o.push(this._lines[n].substring(0,e.endColumn-1)),o.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();e=this._lineStarts.getIndexOf(e);var t=this._lines[e.index].length;return{lineNumber:1+e.index,column:1+Math.min(e.remainder,t)}}_validateRange(e){var t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),i=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||i.lineNumber!==e.endLineNumber||i.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}:e}_validatePosition(e){if(!H.a.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:i}=e,n=!1;var o;return t<1?(t=1,i=1,n=!0):t>this._lines.length?(t=this._lines.length,i=this._lines[t-1].length+1,n=!0):(o=this._lines[t-1].length+1,i<1?(i=1,n=!0):i>o&&(i=o,n=!0)),n?{lineNumber:t,column:i}:e}}class tt{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new et(V.a.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,i,n){return Je(this,void 0,void 0,(function*(){var o,r,s=this._getModel(e),a=this._getModel(t);return s&&a?(o=s.getLinesContent(),r=a.getLinesContent(),r=!(0<(o=new je(o,r,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:i,shouldMakePrettyDiff:!0,maxComputationTime:n}).computeDiff()).changes.length)&&this._modelsAreIdentical(s,a),{quitEarly:o.quitEarly,identical:r,changes:o.changes}):null}))}_modelsAreIdentical(e,t){var i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let n=1;n<=i;n++)if(e.getLineContent(n)!==t.getLineContent(n))return!1;return!0}computeMoreMinimalEdits(e,t){return Je(this,void 0,void 0,(function*(){var i=this._getModel(e);if(!i)return t;var n,o,r,s=[];let a=void 0;for({range:n,text:o,eol:r}of t=t.slice(0).sort((e,t)=>e.range&&t.range?z.a.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)))if("number"==typeof r&&(a=r),!z.a.isEmpty(n)||o){var l=i.getValueInRange(n);if(l!==(o=o.replace(/\r\n|\n|\r/g,i.eol)))if(Math.max(o.length,l.length)>tt._diffLimit)s.push({range:n,text:o});else{l=Object(Me.b)(l,o,!1);var d=i.offsetAt(z.a.lift(n).getStartPosition());for(const e of l){var h=i.positionAt(d+e.originalStart),c=i.positionAt(d+e.originalStart+e.originalLength);h={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:h.lineNumber,startColumn:h.column,endLineNumber:c.lineNumber,endColumn:c.column}};i.getValueInRange(h.range)!==h.text&&s.push(h)}}}return"number"==typeof a&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}))}computeLinks(e){return Je(this,void 0,void 0,(function*(){var t=this._getModel(e);return t?(t=t)&&"function"==typeof t.getLineCount&&"function"==typeof t.getLineContent?Ye.computeLinks(t):[]:null}))}textualSuggest(e,t,i,n){return Je(this,void 0,void 0,(function*(){var o=new Qe.a(!0),r=new RegExp(i,n),s=new Set;e:for(var a of e)if(a=this._getModel(a),a)for(var l of a.words(r))if(l!==t&&isNaN(Number(l))&&(s.add(l),s.size>tt._suggestionsLimit))break e;return{words:Array.from(s),duration:o.elapsed()}}))}computeWordRanges(e,t,i,n){return Je(this,void 0,void 0,(function*(){var o=this._getModel(e);if(!o)return Object.create(null);var r=new RegExp(i,n),s=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++)for(const t of o.getLineWords(e,r))if(isNaN(Number(t.word))){let i=s[t.word];i||(i=[],s[t.word]=i),i.push({startLineNumber:e,startColumn:t.startColumn,endLineNumber:e,endColumn:t.endColumn})}return s}))}navigateValueSet(e,t,i,n,o){return Je(this,void 0,void 0,(function*(){var r,s,a=this._getModel(e);return a&&(s=new RegExp(n,o),t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1}),r=a.getValueInRange(t),s=a.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s))?(a=a.getValueInRange(s),Xe.INSTANCE.navigateValueSet(t,r,s,a,i)):null}))}loadForeignModule(e,t,i){return i=ye.d(i,(e,t)=>this._host.fhr(e,t)),this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory({host:i,getMirrorModels:()=>this._getModels()},t),Promise.resolve(ye.e(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}tt._diffLimit=1e5,tt._suggestionsLimit=1e4,"function"==typeof importScripts&&(we.b.monaco=$());var it=i("1b69"),nt=(re=i("7b4a"),i("e8e3")),ot=i("d3d7"),rt=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},st=function(e,t){return function(i,n){t(i,n,e)}},at=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function lt(e,t){return e=e.getModel(t),!!e&&!e.isTooLargeForSyncing()}let dt=class extends ve.a{constructor(e,t,i){super(),this._modelService=e,this._workerManager=this._register(new ct(this._modelService)),this._logService=i,this._register(ge.v.register("*",{provideLinks:(e,t)=>lt(this._modelService,e.uri)?this._workerManager.withWorker().then(t=>t.computeLinks(e.uri)).then(e=>e&&{links:e}):Promise.resolve({links:[]})})),this._register(ge.d.register("*",new ht(this._workerManager,t,this._modelService)))}dispose(){super.dispose()}canComputeDiff(e,t){return lt(this._modelService,e)&&lt(this._modelService,t)}computeDiff(e,t,i,n){return this._workerManager.withWorker().then(o=>o.computeDiff(e,t,i,n))}computeMoreMinimalEdits(e,t){if(Object(nt.n)(t)){if(!lt(this._modelService,e))return Promise.resolve(t);const n=Qe.a.create(!0);var i=this._workerManager.withWorker().then(i=>i.computeMoreMinimalEdits(e,t));return i.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())),Promise.race([i,Object(be.n)(1e3).then(()=>t)])}return Promise.resolve(void 0)}canNavigateValueSet(e){return lt(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then(n=>n.navigateValueSet(e,t,i))}canComputeWordRanges(e){return lt(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(i=>i.computeWordRanges(e,t))}};dt=rt([st(0,it.a),st(1,re.a),st(2,ot.b)],dt);class ht{constructor(e,t,i){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return at(this,void 0,void 0,(function*(){var i=this._configurationService.getValue(e.uri,t,"editor");if(i.wordBasedSuggestions){var n=[];if("currentDocument"===i.wordBasedSuggestionsMode)lt(this._modelService,e.uri)&&n.push(e.uri);else for(const t of this._modelService.getModels())lt(this._modelService,t.uri)&&(t===e?n.unshift(t.uri):"allDocuments"!==i.wordBasedSuggestionsMode&&t.getLanguageIdentifier().id!==e.getLanguageIdentifier().id||n.push(t.uri));if(0!==n.length){var o=Ie.a.getWordDefinition(e.getLanguageIdentifier().id),r=e.getWordAtPosition(t);const i=r?new z.a(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):z.a.fromPositions(t),s=i.setEndPosition(t.lineNumber,t.column);if(r=yield(yield this._workerManager.withWorker()).textualSuggest(n,null==r?void 0:r.word,o),r)return{duration:r.duration,suggestions:r.words.map(e=>({kind:18,label:e,insertText:e,range:{insert:s,replace:i}}))}}}}))}}class ct extends ve.a{constructor(e){super(),this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime(),this._register(new be.c).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(15e4)),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){this._editorWorkerClient&&3e5<(new Date).getTime()-this._lastWorkerUsedTime&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new mt(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)}}class ut extends ve.a{constructor(e,t,i){super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,i||((e=new be.c).cancelAndSet(()=>this._checkStopModelSync(),Math.round(3e4)),this._register(e))}dispose(){for(var e in this._syncedModels)Object(ve.f)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e){for(const i of e){var t=i.toString();this._syncedModels[t]||this._beginModelSync(i),this._syncedModels[t]&&(this._syncedModelsLastUsedTime[t]=(new Date).getTime())}}_checkStopModelSync(){var e,t=(new Date).getTime(),i=[];for(e in this._syncedModelsLastUsedTime)6e4<t-this._syncedModelsLastUsedTime[e]&&i.push(e);for(const n of i)this._stopModelSync(n)}_beginModelSync(e){var t=this._modelService.getModel(e);if(t&&!t.isTooLargeForSyncing()){let i=e.toString();this._proxy.acceptNewModel({url:t.uri.toString(),lines:t.getLinesContent(),EOL:t.getEOL(),versionId:t.getVersionId()}),e=new ve.b,e.add(t.onDidChangeContent(e=>{this._proxy.acceptModelChanged(i.toString(),e)})),e.add(t.onWillDispose(()=>{this._stopModelSync(i)})),e.add(Object(ve.i)(()=>{this._proxy.acceptRemovedModel(i)})),this._syncedModels[i]=e}}_stopModelSync(e){var t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Object(ve.f)(t)}}class gt{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class pt{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class mt extends ve.a{constructor(e,t,i){super(),this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new Ee(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new De(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new pt(this)))}catch(t){xe(),this._worker=new gt(new tt(new pt(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(xe(),this._worker=new gt(new tt(new pt(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new ut(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e){return this._disposed?Promise.reject(Object(Ce.b)()):this._getProxy().then(t=>(this._getOrCreateModelManager(t).ensureSyncedResources(e),t))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t]).then(o=>o.computeDiff(e.toString(),t.toString(),i,n))}computeMoreMinimalEdits(e,t){return this._withSyncedResources([e]).then(i=>i.computeMoreMinimalEdits(e.toString(),t))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}textualSuggest(e,t,i){return at(this,void 0,void 0,(function*(){var n=yield this._withSyncedResources(e),o=i.source,r=Object(Te.M)(i);return n.textualSuggest(e.map(e=>e.toString()),t,o,r)}))}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{var n,o=this._modelService.getModel(e);return o?(n=(o=Ie.a.getWordDefinition(o.getLanguageIdentifier().id)).source,o=Object(Te.M)(o),i.computeWordRanges(e.toString(),t,n,o)):Promise.resolve(null)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(n=>{var o,r=this._modelService.getModel(e);return r?(o=(r=Ie.a.getWordDefinition(r.getLanguageIdentifier().id)).source,r=Object(Te.M)(r),n.navigateValueSet(e.toString(),t,i,o,r)):null})}dispose(){super.dispose(),this._disposed=!0}}class ft extends mt{constructor(e,t){super(e,t.keepIdleModels||!1,t.label),this._foreignModuleId=t.moduleId,this._foreignModuleCreateData=t.createData||null,this._foreignModuleHost=t.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{var t=this._foreignModuleHost?ye.e(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(t=>{this._foreignModuleCreateData=null;var i=(t,i)=>e.fmr(t,i),n={};for(const e of t)n[e]=((e,t)=>function(){var i=Array.prototype.slice.call(arguments,0);return t(e,i)})(e,i);return n})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(e=>this.getProxy())}}var _t=i("e1b5"),bt=i("6da2"),vt=i("a8d0");function Ct(e){return!Array.isArray(e)}function wt(e){return"string"==typeof e}function yt(e){return!wt(e)}function St(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function Lt(e){return e.replace(/[&<>'"_]/g,"-")}function xt(e,t){return new Error(e.languageId+": "+t)}function kt(e,t,i,n,o){let r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,s,a,l,d,h,c,u,g){return a?"$":l?St(e,i):d&&d<n.length?St(e,n[d]):c&&e&&"string"==typeof e[c]?e[c]:(null===r&&(r=o.split(".")).unshift(o),h&&h<r.length?St(e,r[h]):"")}))}function Dt(e,t){let i=t;for(;i&&0<i.length;){var n=e.tokenizer[i];if(n)return n;n=i.lastIndexOf("."),i=n<0?null:i.substr(0,n)}return null}class Nt{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new Ot(e,t);let i=Ot.getStackElementId(e);0<i.length&&(i+="|"),i+=t;var n=this._entries[i];return n||(n=new Ot(e,t),this._entries[i]=n),n}}Nt._INSTANCE=new Nt(5);class Ot{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)0<t.length&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return Ot._equals(this,e)}push(e){return Nt.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return Nt.create(this.parent,e)}}class Et{constructor(e,t){this.modeId=e,this.state=t}equals(e){return this.modeId===e.modeId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new Et(this.modeId,this.state)}}class It{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){var i;return null!==t||null!==e&&e.depth>=this._maxCacheDepth?new Mt(e,t):(t=Ot.getStackElementId(e),(i=this._entries[t])||(i=new Mt(e,null),this._entries[t]=i),i)}}It._INSTANCE=new It(5);class Mt{constructor(e,t){this.stack=e,this.embeddedModeData=t}clone(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:It.create(this.stack,this.embeddedModeData)}equals(e){return e instanceof Mt&&!!this.stack.equals(e.stack)&&(null===this.embeddedModeData&&null===e.embeddedModeData||null!==this.embeddedModeData&&null!==e.embeddedModeData&&this.embeddedModeData.equals(e.embeddedModeData))}}class Tt{constructor(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterMode(e,t){this._language=t}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new K.a(e,t,this._language)))}nestedModeTokenize(e,t,i,n){var o=i.modeId,r=(i=i.state,ge.F.get(o));return r?(r=r.tokenize(e,t,i,n),this._tokens=this._tokens.concat(r.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,r.endState):(this.enterMode(n,o),this.emit(n,""),i)}finalize(e){return new K.b(this._tokens,e)}}class At{constructor(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterMode(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id}emit(e,t){t=this._theme.match(this._currentLanguageId,t),this._lastTokenMetadata!==t&&(this._lastTokenMetadata=t,this._tokens.push(e),this._tokens.push(t))}static _merge(e,t,i){var n=null!==e?e.length:0,o=t.length,r=null!==i?i.length:0;if(0===n&&0===o&&0===r)return new Uint32Array(0);if(0===n&&0===o)return i;if(0===o&&0===r)return e;var s=new Uint32Array(n+o+r);null!==e&&s.set(e);for(let a=0;a<o;a++)s[n+a]=t[a];return null!==i&&s.set(i,n+o),s}nestedModeTokenize(e,t,i,n){var o=i.modeId,r=(i=i.state,ge.F.get(o));return r?(r=r.tokenize2(e,t,i,n),this._prependTokens=At._merge(this._prependTokens,this._tokens,r.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,r.endState):(this.enterMode(n,o),this.emit(n,""),i)}finalize(e){return new K.c(At._merge(this._prependTokens,this._tokens,null),e)}}class Rt{constructor(e,t,i,n){this._modeService=e,this._standaloneThemeService=t,this._modeId=i,this._lexer=n,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let o=!1;this._tokenizationRegistryListener=ge.F.onDidChange(e=>{if(!o){let i=!1;for(let n=0,o=e.changedLanguages.length;n<o;n++){var t=e.changedLanguages[n];if(this._embeddedModes[t]){i=!0;break}}i&&(o=!0,ge.F.fire([this._modeId]),o=!1)}})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){var e,t=[];for(e in this._embeddedModes){var i=ge.F.get(e);i?i instanceof Rt&&!1===(i=i.getLoadStatus()).loaded&&t.push(i.promise):(i=ge.F.getPromise(e))&&t.push(i)}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then(e=>{})}}getInitialState(){var e=Nt.create(null,this._lexer.start);return It.create(e,null)}tokenize(e,t,i,n){var o=new Tt;e=this._tokenize(e,t,i,n,o);return o.finalize(e)}tokenize2(e,t,i,n){var o=new At(this._modeService,this._standaloneThemeService.getColorTheme().tokenTheme);e=this._tokenize(e,t,i,n,o);return o.finalize(e)}_tokenize(e,t,i,n,o){return i.embeddedModeData?this._nestedTokenize(e,t,i,n,o):this._myTokenize(e,t,i,n,o)}_findLeavingNestedModeOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&!(i=Dt(this._lexer,t.stack.state)))throw xt(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,o=!1;for(const a of i)if(yt(a.action)&&"@pop"===a.action.nextEmbedded){o=!0;let t=a.regex;var r,s=a.regex.source;s=("^(?:"===s.substr(0,4)&&")"===s.substr(s.length-1,1)&&(r=(t.ignoreCase?"i":"")+(t.unicode?"u":""),t=new RegExp(s.substr(4,s.length-5),r)),e.search(t));-1===s||0!==s&&a.matchOnlyAtLineStart||(-1===n||s<n)&&(n=s)}if(o)return n;throw xt(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state)}_nestedTokenize(e,t,i,n,o){var r,s=this._findLeavingNestedModeOffset(e,i);return-1===s?(r=o.nestedModeTokenize(e,t,i.embeddedModeData,n),It.create(i.stack,new Et(i.embeddedModeData.modeId,r))):(0<(r=e.substring(0,s)).length&&o.nestedModeTokenize(r,!1,i.embeddedModeData,n),r=e.substring(s),this._myTokenize(r,t,i,n+s,o))}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,o){o.enterMode(n,this._modeId);var r=e.length,s=t&&this._lexer.includeLF?e+"\n":e;const a=s.length;let l=i.embeddedModeData,d=i.stack,h=0,c=null,u=!0;for(;u||h<a;){var g=h,p=d.depth,m=c?c.groups.length:0,f=d.state;let i=null,v=null,C=null,w=null,y=null;if(c){i=c.matches;var _=c.groups.shift();v=_.matched,C=_.action,w=c.rule,0===c.groups.length&&(c=null)}else{if(!u&&h>=a)break;u=!1;let e=this._lexer.tokenizer[f];if(!e&&!(e=Dt(this._lexer,f)))throw xt(this._lexer,"tokenizer state is not defined: "+f);var b=s.substr(h);for(const t of e)if((0===h||!t.matchOnlyAtLineStart)&&(i=b.match(t.regex))){v=i[0],C=t.action;break}}if(i||(i=[""],v=""),C||(h<a&&(i=[s.charAt(h)],v=i[0]),C=this._lexer.defaultToken),null===v)break;for(h+=v.length;Ct(C)&&yt(C)&&C.test;)C=C.test(v,i,f,h===a);let S=null;if("string"==typeof C||Array.isArray(C))S=C;else if(C.group)S=C.group;else if(null!==C.token&&void 0!==C.token){if(S=C.tokenSubst?kt(this._lexer,C.token,v,i,f):C.token,C.nextEmbedded)if("@pop"===C.nextEmbedded){if(!l)throw xt(this._lexer,"cannot pop embedded mode if not inside one");l=null}else{if(l)throw xt(this._lexer,"cannot enter embedded mode from within an embedded mode");y=kt(this._lexer,C.nextEmbedded,v,i,f)}if(C.goBack&&(h=Math.max(0,h-C.goBack)),C.switchTo&&"string"==typeof C.switchTo){let e=kt(this._lexer,C.switchTo,v,i,f);if("@"===e[0]&&(e=e.substr(1)),!Dt(this._lexer,e))throw xt(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(w));d=d.switchTo(e)}else{if(C.transform&&"function"==typeof C.transform)throw xt(this._lexer,"action.transform not supported");if(C.next)if("@push"===C.next){if(d.depth>=this._lexer.maxStack)throw xt(this._lexer,"maximum tokenizer stack size reached: ["+d.state+","+d.parent.state+",...]");d=d.push(f)}else if("@pop"===C.next){if(d.depth<=1)throw xt(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(w));d=d.pop()}else if("@popall"===C.next)d=d.popall();else{let e=kt(this._lexer,C.next,v,i,f);if("@"===e[0]&&(e=e.substr(1)),!Dt(this._lexer,e))throw xt(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(w));d=d.push(e)}}C.log&&"string"==typeof C.log&&(this._lexer,this._lexer.languageId,kt(this._lexer,C.log,v,i,f))}if(null===S)throw xt(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(w));if(_=i=>{var r=this._modeService.getModeIdForLanguageName(i);r=this._getNestedEmbeddedModeData(i=r||i);return h<a?(i=e.substr(h),this._nestedTokenize(i,t,It.create(d,r),n+h,o)):It.create(d,r)},Array.isArray(S)){if(c&&0<c.groups.length)throw xt(this._lexer,"groups cannot be nested: "+this._safeRuleName(w));if(i.length!==S.length+1)throw xt(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(w));let e=0;for(let t=1;t<i.length;t++)e+=i[t].length;if(e!==v.length)throw xt(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(w));c={rule:w,matches:i,groups:[]};for(let t=0;t<S.length;t++)c.groups[t]={action:S[t],matched:i[t+1]};h-=v.length}else{{if("@rematch"===S&&(h-=v.length,v="",i=null,S="",null!==y))return _(y);if(0===v.length){if(0===a||p!==d.depth||f!==d.state||(c?c.groups.length:0)!==m)continue;throw xt(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(w))}let e=null;if(wt(S)&&0===S.indexOf("@brackets")){if(p=S.substr("@brackets".length),m=function(e,t){if(t){t=St(e,t);for(const i of e.brackets){if(i.open===t)return{token:i.token,bracketType:1};if(i.close===t)return{token:i.token,bracketType:-1}}}return null}(this._lexer,v),!m)throw xt(this._lexer,"@brackets token returned but no bracket defined as: "+v);e=Lt(m.token+p)}else m=""===S?"":S+this._lexer.tokenPostfix,e=Lt(m);g<r&&o.emit(g+n,e)}if(null!==y)return _(y)}}return It.create(d,l)}_getNestedEmbeddedModeData(e){if(e=this._locateMode(e),e){var t=ge.F.get(e);if(t)return new Et(e,t.getInitialState())}return new Et(e||pe.b,pe.c)}_locateMode(e){return e&&this._modeService.isRegisteredMode(e)?(e===this._modeId||(e=this._modeService.getModeId(e))&&(this._modeService.triggerMode(e),this._embeddedModes[e]=!0),e):null}}const Pt=null==(rt=window.trustedTypes)?void 0:rt.createPolicy("standaloneColorizer",{createHTML:e=>e});class Ft{static colorizeElement(e,t,i,n){var o=(n=n||{}).theme||"vs",r=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");return r?(e.setTheme(o),e=i.firstChild?i.firstChild.nodeValue:"",i.className+=" "+o,this.colorize(t,e||"",r,n).then(e=>{var t=null!=(t=null===Pt||void 0===Pt?void 0:Pt.createHTML(e))?t:e;i.innerHTML=t},e=>{})):Promise.resolve()}static colorize(e,t,i,n){let o=4,r=(n&&"number"==typeof n.tabSize&&(o=n.tabSize),Te.S(t)&&(t=t.substr(1)),Te.Q(t)),s=e.getModeId(i);if(!s)return Promise.resolve(jt(r,o));if(e.triggerMode(s),n=ge.F.get(s),n)return Bt(r,o,n);const a=ge.F.getPromise(s);return new Promise(a?(e,t)=>{a.then(i=>{Bt(r,o,i).then(e,t)},t)}:(e,t)=>{let i=null,n=null;const a=()=>{i&&(i.dispose(),i=null),n&&(n.dispose(),n=null);var a=ge.F.get(s);a?Bt(r,o,a).then(e,t):e(jt(r,o))};(n=new be.g).cancelAndSet(a,500),i=ge.F.onDidChange(e=>{0<=e.changedLanguages.indexOf(s)&&a()})})}static colorizeLine(e,t,i,n,o=4){return t=vt.f.isBasicASCII(e,t),i=vt.f.containsRTL(e,t,i),Object(bt.e)(new bt.c(!1,!0,e,!1,t,i,0,n,[],o,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){var n=e.getLineContent(t);return e.forceTokenization(t),t=e.getLineTokens(t).inflate(),this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),t,i)}}function Bt(e,t,i){return new Promise((n,o)=>{const r=()=>{var s=function(e,t,i){let n=[],o=i.getInitialState();for(let h=0,c=e.length;h<c;h++){var r=e[h],s=i.tokenize2(r,!0,o,0),a=(_t.a.convertToEndOffset(s.tokens,r.length),new _t.a(s.tokens,r)),l=vt.f.isBasicASCII(r,!0),d=vt.f.containsRTL(r,l,!0);r=Object(bt.e)(new bt.c(!1,!0,r,!1,l,d,0,a.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));(n=n.concat(r.html)).push("<br/>"),o=s.endState}return n.join("")}(e,t,i);if(i instanceof Rt){var a=i.getLoadStatus();if(!1===a.loaded)return void a.promise.then(r,o)}n(s)};r()})}function jt(e,t){let i=[];var n=new Uint32Array(2);n[0]=0,n[1]=16793600;for(let l=0,d=e.length;l<d;l++){var o=e[l],r=(n[0]=o.length,new _t.a(n,o)),s=vt.f.isBasicASCII(o,!0),a=vt.f.containsRTL(o,s,!0);o=Object(bt.e)(new bt.c(!1,!0,o,!1,s,a,0,r,[],t,0,0,0,0,-1,"none",!1,!1,null));(i=i.concat(o.html)).push("<br/>")}return i.join("")}var Wt=i("b835"),Vt=i("4b76"),Ht=i("b055"),zt=i("c7f5"),Ut=i("8830"),Kt=i("d3f4"),qt=i("fbba"),$t=i("aa3d"),Gt=i("0910");class Zt{constructor(e={},t=[],i=[]){this._contents=e,this._keys=t,this._overrides=i,this.isFrozen=!1}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?Object(qt.d)(this.contents,e):this.contents}override(e){var t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;var i={};for(const o of nt.f([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[o];var n=t[o];n&&("object"==typeof e&&"object"==typeof n?(e=$t.b(e),this.mergeContents(e,n)):e=n),i[o]=e}return new Zt(i,this.keys,this.overrides)}merge(...e){var t=$t.b(this.contents),i=$t.b(this.overrides),n=[...this.keys];for(const r of e){this.mergeContents(t,r.contents);for(const e of r.overrides){var[o]=i.filter(t=>nt.h(t.identifiers,e.identifiers));o?this.mergeContents(o.contents,e.contents):i.push($t.b(e))}for(const e of r.keys)-1===n.indexOf(e)&&n.push(e)}return new Zt(t,n,i)}freeze(){return this.isFrozen=!0,this}mergeContents(e,t){for(const i of Object.keys(t))i in e&&ye.j(e[i])&&ye.j(t[i])?this.mergeContents(e[i],t[i]):e[i]=$t.b(t[i])}checkAndFreeze(e){return this.isFrozen&&!Object.isFrozen(e)?$t.c(e):e}getContentsForOverrideIdentifer(e){for(const t of this.overrides)if(-1!==t.identifiers.indexOf(e))return t.contents;return null}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),Object(qt.b)(this.contents,e,t,e=>{throw new Error(e)})}removeValue(e){this.removeKey(e)&&Object(qt.f)(this.contents,e)}addKey(e){let t=this.keys.length;for(let i=0;i<t;i++)0===e.indexOf(this.keys[i])&&(t=i);this.keys.splice(t,1,e)}removeKey(e){return e=this.keys.indexOf(e),-1!==e&&(this.keys.splice(e,1),!0)}}class Yt extends Zt{constructor(){var e=Object(qt.e)(),t=Object(qt.c)(),i=[];for(const n of Object.keys(e))Gt.b.test(n)&&i.push({identifiers:[Object(Gt.c)(n).trim()],keys:Object.keys(e[n]),contents:Object(qt.g)(e[n],e=>{})});super(e,t,i)}}class Xt{constructor(e,t,i=new Zt,n=new Zt,o=new Q.b,r=new Zt,s=new Q.b,a=!0){this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=i,this._workspaceConfiguration=n,this._folderConfigurations=o,this._memoryConfiguration=r,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Q.b,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidateConfigurationModel(t,i).getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource))||(n=new Zt,this._memoryConfigurationByResource.set(i.resource,n)):n=this._memoryConfiguration,void 0===t?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}getConsolidateConfigurationModel(e,t){return t=this.getConsolidatedConfigurationModelForResource(e,t),e.overrideIdentifier?t.override(e.overrideIdentifier):t}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();return t&&e&&((t=t.getFolder(e))&&(i=this.getFolderConsolidatedConfiguration(t.uri)||i),t=this._memoryConfigurationByResource.get(e))?i.merge(t):i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);var i,n;return t||(i=this.getWorkspaceConsolidatedConfiguration(),(n=this._folderConfigurations.get(e))?(t=i.merge(n),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=i),t}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((e,t)=>{var{contents:i,overrides:n,keys:o}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:o}]),e},[])}}static parse(e){var t=this.parseConfigurationModel(e.defaults),i=this.parseConfigurationModel(e.user),n=this.parseConfigurationModel(e.workspace);e=e.folders.reduce((e,t)=>(e.set(V.a.revive(t[0]),this.parseConfigurationModel(t[1])),e),new Q.b);return new Xt(t,i,new Zt,n,e,new Zt,new Q.b,!1)}static parseConfigurationModel(e){return new Zt(e.contents,e.keys,e.overrides).freeze()}}class Qt{constructor(e,t,i,n){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this._previousConfiguration=void 0;const o=new Set,r=(e.keys.forEach(e=>o.add(e)),e.overrides.forEach(([,e])=>e.forEach(e=>o.add(e))),this.affectedKeys=[...o.values()],new Zt);this.affectedKeys.forEach(e=>r.setValue(e,{})),this.affectedKeysTree=r.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Xt.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var i;return!(!this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)||t&&(i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null==(i=this.previous)?void 0:i.workspace):void 0,e=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace),$t.d(i,e)))}doesAffectedKeysTreeContains(e,t){let i,n=Object(qt.g)({[t]:!0},()=>{});for(;"object"==typeof n&&(i=Object.keys(n)[0]);){if(!(e=e[i]))return!1;n=n[i]}return!0}}var Jt=i("dff7");class ei extends ve.a{constructor(e,t,i,n,o){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=o,this._onDidUpdateKeybindings=this._register(new j.b),this._currentChord=null,this._currentChordChecker=new be.c,this._currentChordStatusMessage=null,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new be.g,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:j.c.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info("[KeybindingService]: "+e)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){if(e=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService),e)return e.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){var i;e=this.resolveKeyboardEvent(e);return e.isChord()||([e]=e.getDispatchParts(),null===e)?null:(t=this._contextKeyService.getContext(t),i=this._currentChord?this._currentChord.keypress:null,this._getResolver().resolve(t,i,e))}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(Jt.a("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const i=Date.now();this._currentChordChecker.cancelAndSet(()=>{(!this._documentHasFocus()||5e3<Date.now()-i)&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){e=this.resolveKeyboardEvent(e);var[i]=e.getSingleModifierDispatchParts();if(null!==i&&null===this._currentSingleModifier)this._log(`+ Storing single modifier for possible chord ${i}.`),this._currentSingleModifier=i,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300);else{if(null!==i&&i===this._currentSingleModifier)return this._log(`/ Dispatching single modifier chord ${i} `+i),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(e,t,!0);this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null}return!1}_doDispatch(e,t,i=!1){let n=!1;if(e.isChord())return!1;let o=null,r=null;return r=i?([i]=e.getSingleModifierDispatchParts(),o=i):([o]=e.getDispatchParts(),this._currentChord?this._currentChord.keypress:null),null===o?this._log("\\ Keyboard event cannot be dispatched in keydown phase."):(i=this._contextKeyService.getContext(t),t=e.getLabel(),e=this._getResolver().resolve(i,r,o),this._logService.trace("KeybindingService#dispatch",t,null==e?void 0:e.commandId),e&&e.enterChord?(n=!0,this._enterChordMode(o,t)):(!this._currentChord||e&&e.commandId||(this._notificationService.status(Jt.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,t),{hideAfter:1e4}),n=!0),this._leaveChordMode(),e&&e.commandId&&(e.bubble||(n=!0),void 0===e.commandArgs?this._commandService.executeCommand(e.commandId).then(void 0,e=>this._notificationService.warn(e)):this._commandService.executeCommand(e.commandId,e.commandArgs).then(void 0,e=>this._notificationService.warn(e)),this._telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:"keybinding"})))),n}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(31<=e.keyCode&&e.keyCode<=56||21<=e.keyCode&&e.keyCode<=30)}}var ti=i("4fc3");class ii{constructor(e,t,i){this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(let r=0,s=e.length;r<s;r++){var n=e[r].command;n&&this._defaultBoundCommands.set(n,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=ii.combine(e,t);for(let r=0,s=this._keybindings.length;r<s;r++){var o=this._keybindings[r];0===o.keypressParts.length||o.when&&0===o.when.type||this._addKeyPress(o.keypressParts[0],o)}}static _isTargetedForRemoval(e,t,i,n,o){if(e.command!==n)return!1;if(t&&e.keypressParts[0]!==t)return!1;if(i&&e.keypressParts[1]!==i)return!1;if(o){if(!e.when)return!1;if(!o.equals(e.when))return!1}return!0}static combine(e,t){e=e.slice(0);var i=[];for(const a of t)if(a.command&&0!==a.command.length&&"-"===a.command.charAt(0)){var n=a.command.substr(1),o=a.keypressParts[0],r=a.keypressParts[1],s=a.when;for(let t=e.length-1;0<=t;t--)this._isTargetedForRemoval(e[t],o,r,n,s)&&e.splice(t,1)}else i.push(a);return e.concat(i)}_addKeyPress(e,t){var i=this._map.get(e);if(void 0===i)this._map.set(e,[t]);else{for(let e=i.length-1;0<=e;e--){var n,o,r=i[e];r.command===t.command||(n=1<r.keypressParts.length,o=1<t.keypressParts.length,n&&o&&r.keypressParts[1]!==t.keypressParts[1])||ii.whenIsEntirelyIncluded(r.when,t.when)&&this._removeFromLookupMap(r)}i.push(t)}this._addToLookupMap(t)}_addToLookupMap(e){if(e.command){let t=this._lookupMap.get(e.command);void 0===t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}}_removeFromLookupMap(e){if(e.command){var t=this._lookupMap.get(e.command);if(void 0!==t)for(let i=0,n=t.length;i<n;i++)if(t[i]===e)return void t.splice(i,1)}}static whenIsEntirelyIncluded(e,t){return!t||1===t.type||!(!e||1===e.type)&&Object(ti.e)(e,t)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(e,t){var i=this._lookupMap.get(e);if(void 0===i||0===i.length)return null;if(1===i.length)return i[0];for(let o=i.length-1;0<=o;o--){var n=i[o];if(t.contextMatchesRules(n.when))return n}return i[i.length-1]}resolve(e,t,i){this._log("| Resolving "+i+(t?" chorded from "+t:""));let n=null;if(null!==t){var o=this._map.get(t);if(void 0===o)return this._log("\\ No keybinding entries."),null;n=[];for(let e=0,t=o.length;e<t;e++){var r=o[e];r.keypressParts[1]===i&&n.push(r)}}else{var s=this._map.get(i);if(void 0===s)return this._log("\\ No keybinding entries."),null;n=s}return s=this._findCommand(e,n),s?null===t&&1<s.keypressParts.length&&null!==s.keypressParts[1]?(this._log(`\\ From ${n.length} keybinding entries, matched chord, when: ${ni(s.when)}, source: ${oi(s)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${n.length} keybinding entries, matched ${s.command}, when: ${ni(s.when)}, source: ${oi(s)}.`),{enterChord:!1,leaveChord:1<s.keypressParts.length,commandId:s.command,commandArgs:s.commandArgs,bubble:s.bubble}):(this._log(`\\ From ${n.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let n=t.length-1;0<=n;n--){var i=t[n];if(ii.contextMatchesRules(e,i.when))return i}return null}static contextMatchesRules(e,t){return!t||t.evaluate(e)}}function ni(e){return e?""+e.serialize():"no when condition"}function oi(e){return e.extensionId?e.isBuiltinExtension?"built-in extension "+e.extensionId:"user extension "+e.extensionId:e.isDefault?"built-in":"user"}var ri=i("9eb8");class si{constructor(e,t,i,n,o,r,s){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.keypressParts=e?ai(e.getDispatchParts()):[],e&&0===this.keypressParts.length&&(this.keypressParts=ai(e.getSingleModifierDispatchParts())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=o,this.extensionId=r,this.isBuiltinExtension=s}}function ai(e){var t=[];for(let n=0,o=e.length;n<o;n++){var i=e[n];if(!i)return t;t.push(i)}return t}var li=i("8b4e");class di extends W.c{constructor(e,t){if(super(),0===t.length)throw Object(Ce.c)("parts");this._os=e,this._parts=t}getLabel(){return li.b.toLabel(this._os,this._parts,e=>this._getLabel(e))}getAriaLabel(){return li.a.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}isChord(){return 1<this._parts.length}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new W.d(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}class hi extends di{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return W.b.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":W.b.toString(e.keyCode)}_getDispatchPart(e){return hi.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+W.b.toString(e.keyCode)}_getSingleModifierDispatchPart(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}}var ci=i("b0cd"),ui=i("1165"),gi=i("03d9"),pi=(st=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},rt=function(e,t){return function(i,n){t(i,n,e)}},function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});class mi{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new j.b}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let fi=class{constructor(e){this.modelService=e}setEditor(e){this.editor=e}createModelReference(e){let t=null;var i,n,o;return(t=this.editor?(i=this.editor,n=t=>this.findModel(t,e),o=t=>this.findModel(t.getOriginalEditor(),e)||this.findModel(t.getModifiedEditor(),e),(Object(Ht.b)(i)?n:o)(i)):t)?Promise.resolve(new ve.c(new mi(t))):Promise.reject(new Error("Model not found"))}findModel(e,t){var i=this.modelService.getModel(t);return i&&i.uri.toString()!==t.toString()?null:i}};fi=st([rt(0,it.a)],fi);class _i{show(){return _i.NULL_PROGRESS_RUNNER}showWhile(e,t){return pi(this,void 0,void 0,(function*(){yield e}))}}_i.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class bi{confirm(e){return this.doConfirm(e).then(e=>({confirmed:e,checkboxChecked:!1}))}doConfirm(e){let t=e.message;return e.detail&&(t=t+"\n\n"+e.detail),Promise.resolve(window.confirm(t))}show(e,t,i,n){return Promise.resolve({choice:0})}}class vi{info(e){return this.notify({severity:Vt.a.Info,message:e})}warn(e){return this.notify({severity:Vt.a.Warning,message:e})}error(e){return this.notify({severity:Vt.a.Error,message:e})}notify(e){switch(e.severity){case Vt.a.Error:case Vt.a.Warning:}return vi.NO_OP}status(e,t){return ve.a.None}}vi.NO_OP=new ci.b;class Ci{constructor(e){this._onWillExecuteCommand=new j.b,this._onDidExecuteCommand=new j.b,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){var i=ie.a.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});var n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(e){return Promise.reject(e)}}}class wi extends ei{constructor(e,t,i,n,o,r){super(e,t,i,n,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._register(Y.i(r,Y.d.KEY_DOWN,e=>{e=new Wt.a(e),this._dispatch(e,e.target)&&(e.preventDefault(),e.stopPropagation())})),this._register(Y.i(window,Y.d.KEY_UP,e=>{e=new Wt.a(e),this._singleModifierDispatch(e,e.target)&&e.preventDefault()}))}addDynamicKeybinding(e,t,i,n){t=Object(W.f)(t,we.a);var o=new ve.b;return t&&(this._dynamicKeybindings.push({keybinding:t,command:e,when:n,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),o.add(Object(ve.i)(()=>{for(let t=0;t<this._dynamicKeybindings.length;t++)if(this._dynamicKeybindings[t].command===e)return this._dynamicKeybindings.splice(t,1),void this.updateResolver({source:1})}))),o.add(ie.a.registerCommand(e,i)),this.updateResolver({source:1}),o}updateResolver(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e)}_getResolver(){var e,t;return this._cachedResolver||(e=this._toNormalizedKeybindingItems(ri.a.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1),this._cachedResolver=new ii(e,t,e=>this._log(e))),this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){let i=[],n=0;for(const s of e){var o=s.when||void 0,r=s.keybinding;if(r)for(const e of this.resolveKeybinding(r))i[n++]=new si(e,s.command,s.commandArgs,o,t,null,!1);else i[n++]=new si(void 0,s.command,s.commandArgs,o,t,null,!1)}return i}resolveKeybinding(e){return[new hi(e,we.a)]}resolveKeyboardEvent(e){return e=new W.e(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord(),new hi(e,we.a)}}function yi(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof V.a)}class Si{constructor(){this._onDidChangeConfiguration=new j.b,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Xt(new Yt,new Zt)}getValue(e,t){var i="string"==typeof e?e:void 0;e=yi(e)?e:yi(t)?t:{};return this._configuration.getValue(i,e,void 0)}updateValues(e){var t={data:this._configuration.toData()},i=[];for(const r of e){var[n,o]=r;this.getValue(n)!==o&&(this._configuration.updateValue(n,o),i.push(n))}return 0<i.length&&((e=new Qt({keys:i,overrides:[]},t,this._configuration)).source=7,e.sourceConfig=null,this._onDidChangeConfiguration.fire(e)),Promise.resolve()}}class Li{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new j.b,this.configurationService.onDidChangeConfiguration(e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})})}getValue(e,t,i){return i=H.a.isIPosition(t)&&t?"string"==typeof i?i:void 0:"string"==typeof t?t:void 0,void 0===i?this.configurationService.getValue():this.configurationService.getValue(i)}}let xi=class{constructor(e){this.configurationService=e}getEOL(e,t){return t=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e}),t&&"string"==typeof t&&"auto"!==t?t:we.d||we.f?"\n":"\r\n"}};xi=st([rt(0,qt.a)],xi);class ki{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class Di{constructor(){var e=V.a.from({scheme:Di.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new ui.b({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}}function Ni(e,t,i){if(t&&e instanceof Si){let n=[];Object.keys(t).forEach(e=>{Object(Ut.d)(e)&&n.push(["editor."+e,t[e]]),i&&Object(Ut.c)(e)&&n.push(["diffEditor."+e,t[e]])}),0<n.length&&e.updateValues(n)}}Di.SCHEME="inmemory";class Oi{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return pi(this,void 0,void 0,(function*(){var t,i=new Map;for(t of e){if(!(t instanceof zt.c))throw new Error("bad edit - only text edits are supported");var n=this._modelService.getModel(t.resource);if(!n)throw new Error("bad edit - model not found");if("number"==typeof t.versionId&&n.getVersionId()!==t.versionId)throw new Error("bad state - model changed in the meantime");let e=i.get(n);e||(e=[],i.set(n,e)),e.push(Kt.a.replaceMove(z.a.lift(t.textEdit.range),t.textEdit.text))}let o=0,r=0;for(const[e,s]of i)e.pushStackElement(),e.pushEditOperations([],s,()=>[]),e.pushStackElement(),r+=1,o+=s.length;return{ariaSummary:Te.v(gi.g.bulkEditServiceSummary,o,r)}}))}}class Ei{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}}class Ii{constructor(e,t){this._codeEditorService=e,this._container=t,this.onDidLayout=j.c.None}get dimension(){return this._dimension||(this._dimension=Y.z(window.document.body)),this._dimension}get container(){return this._container}focus(){var e;null!=(e=this._codeEditorService.getFocusedCodeEditor())&&e.focus()}}var Mi=i("3813"),Ti=(st=i("9c1d"),rt=i("4a64"),i("f58f")),Ai=i("b1ca"),Ri=i("7e32"),Pi=i("533b"),Fi=i("0a0f"),Bi=i("6dec"),ji=i("b7d0"),Wi=i("4779"),Vi=i("f577"),Hi=i("b539");class zi extends ve.a{constructor(){super(),this._onCodeEditorAdd=this._register(new j.b),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new j.b),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new j.b),this._onDiffEditorRemove=this._register(new j.b),this._onDecorationTypeRegistered=this._register(new j.b),this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null)}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;for(const t of this.listCodeEditors()){if(t.hasTextFocus())return t;t.hasWidgetFocus()&&(e=t)}return e}setModelProperty(e,t,i){let n;e=e.toString(),this._modelProperties.has(e)?n=this._modelProperties.get(e):(n=new Map,this._modelProperties.set(e,n)),n.set(t,i)}getModelProperty(e,t){if(e=e.toString(),this._modelProperties.has(e))return this._modelProperties.get(e).get(t)}}class Ui{constructor(e,t,i){this._parent=e,this._editorId=t,this._styleSheet=i,this._refCount=0}ref(){this._refCount++}unref(){var e;this._refCount--,0===this._refCount&&(null!=(e=this._styleSheet.parentNode)&&e.removeChild(this._styleSheet),this._parent._removeEditorStyleSheets(this._editorId))}insertRule(e,t){this._styleSheet.sheet.insertRule(e,t)}removeRulesContainingSelector(e){Y.Q(e,this._styleSheet)}}class Ki{constructor(e){this._styleSheet=e}ref(){}unref(){}insertRule(e,t){this._styleSheet.sheet.insertRule(e,t)}removeRulesContainingSelector(e){Y.Q(e,this._styleSheet)}}var qi=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}([function(e,t){return function(i,n){t(i,n,e)}}(1,ji.b)],class extends zi{constructor(e,t){super(),this._decorationOptionProviders=new Map,this._editorStyleSheets=new Map,this._globalStyleSheet=e||null,this._themeService=t}_getOrCreateGlobalStyleSheet(){return this._globalStyleSheet||(this._globalStyleSheet=new Ki(Y.w())),this._globalStyleSheet}_getOrCreateStyleSheet(e){var t;return e&&(t=e.getContainerDomNode(),Y.O(t))?(e=e.getId(),this._editorStyleSheets.has(e)||(t=new Ui(this,e,Y.w(t)),this._editorStyleSheets.set(e,t)),this._editorStyleSheets.get(e)):this._getOrCreateGlobalStyleSheet()}_removeEditorStyleSheets(e){this._editorStyleSheets.delete(e)}registerDecorationType(e,t,i,n,o){let r=this._decorationOptionProviders.get(t);r||(i={styleSheet:o=this._getOrCreateStyleSheet(o),key:t,parentTypeKey:n,options:i||Object.create(null)},r=n?new $i(this._themeService,o,i):new Gi(e,this._themeService,o,i),this._decorationOptionProviders.set(t,r),this._onDecorationTypeRegistered.fire(t)),r.refCount++}removeDecorationType(e){var t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0)&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(t=>t.removeDecorations(e)))}resolveDecorationOptions(e,t){var i=this._decorationOptionProviders.get(e);if(i)return i.getOptions(this,t);throw new Error("Unknown decoration type key: "+e)}});class $i{constructor(e,t,i){this._styleSheet=t,this._styleSheet.ref(),this._parentTypeKey=i.parentTypeKey,this.refCount=0,this._beforeContentRules=new Yi(3,i,e),this._afterContentRules=new Yi(4,i,e)}getOptions(e,t){return e=e.resolveDecorationOptions(this._parentTypeKey,!0),this._beforeContentRules&&(e.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(e.afterContentClassName=this._afterContentRules.className),e}dispose(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()}}class Gi{constructor(e,t,i,n){this._disposables=new ve.b,this.description=e,this._styleSheet=i,this._styleSheet.ref(),this.refCount=0;e=e=>{if(e=new Yi(e,n,t),this._disposables.add(e),e.hasContent)return e.className},i=e=>(e=new Yi(e,n,t),this._disposables.add(e),e.hasContent?{className:e.className,hasLetterSpacing:e.hasLetterSpacing}:null);var o=(this.className=e(0),i(1));o&&(this.inlineClassName=o.className,this.inlineClassNameAffectsLetterSpacing=o.hasLetterSpacing),this.beforeContentClassName=e(3),this.afterContentClassName=e(4),n.options.beforeInjectedText&&n.options.beforeInjectedText.contentText&&(o=i(5),this.beforeInjectedText={content:n.options.beforeInjectedText.contentText,inlineClassName:null==o?void 0:o.className,inlineClassNameAffectsLetterSpacing:(null==o?void 0:o.hasLetterSpacing)||n.options.beforeInjectedText.affectsLetterSpacing}),n.options.afterInjectedText&&n.options.afterInjectedText.contentText&&(o=i(6),this.afterInjectedText={content:n.options.afterInjectedText.contentText,inlineClassName:null==o?void 0:o.className,inlineClassNameAffectsLetterSpacing:(null==o?void 0:o.hasLetterSpacing)||n.options.afterInjectedText.affectsLetterSpacing}),this.glyphMarginClassName=e(2),i=n.options,this.isWholeLine=Boolean(i.isWholeLine),this.stickiness=i.rangeBehavior,o=i.light&&i.light.overviewRulerColor||i.overviewRulerColor,e=i.dark&&i.dark.overviewRulerColor||i.overviewRulerColor;void 0===o&&void 0===e||(this.overviewRuler={color:o||e,darkColor:e||o,position:i.overviewRulerLane||ue.d.Center})}getOptions(e,t){return t?{description:this.description,inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness,before:this.beforeInjectedText}:this}dispose(){this._disposables.dispose(),this._styleSheet.unref()}}const Zi={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",fontSize:"font-size:{0};",fontFamily:"font-family:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",padding:"padding:{0};",width:"width:{0};",height:"height:{0};",verticalAlign:"vertical-align:{0};"};class Yi{constructor(e,t,i){this._theme=i.getColorTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;let n=Xi.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(n=n+" "+Xi.getClassName(this._providerArgs.parentTypeKey,e)),this._className=n,this._unThemedSelector=Xi.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=i.onDidColorThemeChange(e=>{this._theme=i.getColorTheme(),this._removeCSS(),this._buildCSS()}):this._themeListener=null}dispose(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)}get hasContent(){return this._hasContent}get hasLetterSpacing(){return this._hasLetterSpacing}get className(){return this._className}_buildCSS(){var e=this._providerArgs.options;let t,i,n;switch(this._ruleType){case 0:t=this.getCSSTextForModelDecorationClassName(e),i=this.getCSSTextForModelDecorationClassName(e.light),n=this.getCSSTextForModelDecorationClassName(e.dark);break;case 1:t=this.getCSSTextForModelDecorationInlineClassName(e),i=this.getCSSTextForModelDecorationInlineClassName(e.light),n=this.getCSSTextForModelDecorationInlineClassName(e.dark);break;case 2:t=this.getCSSTextForModelDecorationGlyphMarginClassName(e),i=this.getCSSTextForModelDecorationGlyphMarginClassName(e.light),n=this.getCSSTextForModelDecorationGlyphMarginClassName(e.dark);break;case 3:t=this.getCSSTextForModelDecorationContentClassName(e.before),i=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.before),n=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.before);break;case 4:t=this.getCSSTextForModelDecorationContentClassName(e.after),i=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.after),n=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.after);break;case 5:t=this.getCSSTextForModelDecorationContentClassName(e.beforeInjectedText),i=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.beforeInjectedText),n=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.beforeInjectedText);break;case 6:t=this.getCSSTextForModelDecorationContentClassName(e.afterInjectedText),i=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.afterInjectedText),n=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.afterInjectedText);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var o=this._providerArgs.styleSheet;let r=!1;0<t.length&&(o.insertRule(`${this._unThemedSelector} {${t}}`,0),r=!0),0<i.length&&(o.insertRule(`.vs${this._unThemedSelector} {${i}}`,0),r=!0),0<n.length&&(o.insertRule(`.vs-dark${this._unThemedSelector}, .hc-black${this._unThemedSelector} {${n}}`,0),r=!0),this._hasContent=r}_removeCSS(){this._providerArgs.styleSheet.removeRulesContainingSelector(this._unThemedSelector)}getCSSTextForModelDecorationClassName(e){var t;return e?(this.collectCSSText(e,["backgroundColor"],t=[]),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")):""}getCSSTextForModelDecorationInlineClassName(e){var t;return e?(this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t=[]),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")):""}getCSSTextForModelDecorationContentClassName(e){var t,i;return e?(t=[],void 0!==e&&(this.collectBorderSettingsCSSText(e,t),void 0!==e.contentIconPath&&t.push(Te.v(Zi.contentIconPath,Y.s(V.a.revive(e.contentIconPath)))),"string"==typeof e.contentText&&(i=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&"),t.push(Te.v(Zi.contentText,i))),this.collectCSSText(e,["verticalAlign","fontStyle","fontWeight","fontSize","fontFamily","textDecoration","color","opacity","backgroundColor","margin","padding"],t),this.collectCSSText(e,["width","height"],t))&&t.push("display:inline-block;"),t.join("")):""}getCSSTextForModelDecorationGlyphMarginClassName(e){var t;return e?(t=[],void 0!==e.gutterIconPath&&(t.push(Te.v(Zi.gutterIconPath,Y.s(V.a.revive(e.gutterIconPath)))),void 0!==e.gutterIconSize)&&t.push(Te.v(Zi.gutterIconSize,e.gutterIconSize)),t.join("")):""}collectBorderSettingsCSSText(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(Te.v("box-sizing: border-box;")),!0)}collectCSSText(e,t,i){var n,o=i.length;for(n of t){var r=this.resolveValue(e[n]);"string"==typeof r&&i.push(Te.v(Zi[n],r))}return i.length!==o}resolveValue(e){var t;return Object(ce.b)(e)?(this._usesThemeColors=!0,(t=this._theme.getColor(e.id))?t.toString():"transparent"):e}}class Xi{static getClassName(e,t){return"ced-"+e+"-"+t}static getSelector(e,t,i){let n=".monaco-editor ."+this.getClassName(e,i);return t&&(n=n+"."+this.getClassName(t,i)),3===i?n+="::before":4===i&&(n+="::after"),n}}var Qi=function(e,t){return function(i,n){t(i,n,e)}};let Ji=class extends qi{constructor(e,t,i){super(e,i),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=t.createKey("editorIsOpen",!1),this._activeCodeEditor=null}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}openCodeEditor(e,t,i){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)}doOpenEditor(e,t){if(this.findModel(e,t.resource))return(i=t.options?t.options.selection:null)&&("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn?(e.setSelection(i),e.revealRangeInCenter(i,1)):(i={lineNumber:i.startLineNumber,column:i.startColumn},e.setPosition(i),e.revealPositionInCenter(i,1))),e;if(t.resource){var i=t.resource.scheme;if(i===ee.c.http||i===ee.c.https)return Object(Y.Z)(t.resource.toString()),e}return null}findModel(e,t){return e=e.getModel(),e&&e.uri.toString()!==t.toString()?null:e}};Ji=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s}([Qi(1,ti.b),Qi(2,ji.b)],Ji);var en=i("b9b4");qi=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},Qi=function(e,t){return function(i,n){t(i,n,e)}};let tn=0,nn=!1,on=class extends st.a{constructor(e,t,i,n,o,r,s,a,l,d){t=Object.assign({},t),t.ariaLabel=t.ariaLabel||gi.h.editorViewAccessibleLabel,t.ariaLabel=t.ariaLabel+";"+gi.h.accessibilityHelpMessage,super(e,t,{},i,n,o,r,a,l,d),this._standaloneKeybindingService=s instanceof wi?s:null,nn||(nn=!0,Mi.b(document.body))}addCommand(e,t,i){var n;return this._standaloneKeybindingService?(n="DYNAMIC_"+ ++tn,i=ti.a.deserialize(i),this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,i),n):null}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return ve.a.None;const t=e.id;var i=e.label,n=ti.a.and(ti.a.equals("editorId",this.getId()),ti.a.deserialize(e.precondition)),o=e.keybindings,r=ti.a.and(n,ti.a.deserialize(e.keybindingContext)),s=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,l=(t,...i)=>Promise.resolve(e.run(this,...i)),d=new ve.b,h=this.getId()+":"+t;if(d.add(ie.a.registerCommand(h,l)),s&&d.add(Ri.d.appendMenuItem(Ri.b.EditorContext,{command:{id:h,title:i},when:n,group:s,order:a})),Array.isArray(o))for(const c of o)d.add(this._standaloneKeybindingService.addDynamicKeybinding(h,c,l,r));return s=new Ti.a(h,i,i,n,l,this._contextKeyService),this._actions[t]=s,d.add(Object(ve.i)(()=>{delete this._actions[t]})),d}_triggerCommand(e,t){if(this._codeEditorService instanceof Ji)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}},rn=class extends(on=qi([Qi(2,Fi.a),Qi(3,Z.a),Qi(4,ie.b),Qi(5,ti.b),Qi(6,Bi.a),Qi(7,ji.b),Qi(8,ci.a),Qi(9,Wi.b)],on)){constructor(e,t,i,n,o,r,s,a,l,d,h,c,u,g,p){t=Object.assign({},t);var m=(Ni(c,t,!1),d.registerEditorContainer(e)),f=("string"==typeof t.theme&&d.setTheme(t.theme),void 0!==t.autoDetectHighContrast&&d.setAutoDetectHighContrast(Boolean(t.autoDetectHighContrast)),t.model);let _;delete t.model,super(e,t,n,o,r,s,a,d,h,u),this._contextViewService=l,this._configurationService=c,this._standaloneThemeService=d,this._register(i),this._register(m),void 0===f?(_=an(g,p,t.value||"",t.language||en.a.text,void 0),this._ownsModel=!0):(_=f,this._ownsModel=!1),this._attachModel(_),_&&(e={oldModelUrl:null,newModelUrl:_.uri},this._onDidChangeModel.fire(e))}dispose(){super.dispose()}updateOptions(e){Ni(this._configurationService,e,!1),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_attachModel(e){super._attachModel(e),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}},sn=(rn=qi([Qi(3,Fi.a),Qi(4,Z.a),Qi(5,ie.b),Qi(6,ti.b),Qi(7,Bi.a),Qi(8,Pi.b),Qi(9,Ai.a),Qi(10,ci.a),Qi(11,qt.a),Qi(12,Wi.b),Qi(13,it.a),Qi(14,fe.a)],rn),class extends rt.a{constructor(e,t,i,n,o,r,s,a,l,d,h,c,u,g,p){t=Object.assign({},t);var m=(Ni(c,t,!0),d.registerEditorContainer(e));"string"==typeof t.theme&&d.setTheme(t.theme),void 0!==t.autoDetectHighContrast&&d.setAutoDetectHighContrast(Boolean(t.autoDetectHighContrast)),super(e,t,{},p,a,o,n,l,d,h,u,g),this._contextViewService=s,this._configurationService=c,this._standaloneThemeService=d,this._register(i),this._register(m),this._contextViewService.setContainer(this._containerDomElement)}dispose(){super.dispose()}updateOptions(e){Ni(this._configurationService,e,!0),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(on,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}});function an(e,t,i,n,o){if(i=i||"",n)return ln(e,i,t.create(n),o);{n=i.indexOf("\n");let r=i;return-1!==n&&(r=i.substring(0,n)),ln(e,i,t.createByFilepathOrFirstLine(o||null,r),o)}}function ln(e,t,i,n){return e.createModel(t,i,n)}sn=qi([Qi(3,Fi.a),Qi(4,ti.b),Qi(5,Bi.a),Qi(6,Pi.b),Qi(7,me.a),Qi(8,Z.a),Qi(9,Ai.a),Qi(10,ci.a),Qi(11,qt.a),Qi(12,Pi.a),Qi(13,Hi.a),Qi(14,Vi.a)],sn);class dn{constructor(e){this._languageIdentifier=e}getId(){return this._languageIdentifier.language}}var hn=i("32a4"),cn=i("89cd");const un=Object.prototype.hasOwnProperty;class gn extends ve.a{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new j.b),this.onDidChange=this._onDidChange.event,this._warnOnOverwrite=t,this._nextLanguageId2=1,this._languageIdToLanguage=[],this._languageToLanguageId=Object.create(null),this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(hn.a.onDidChangeLanguages(e=>this._initializeFromRegistry())))}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=hn.a.getLanguages();this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(e=>{let t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach(e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier}),t.mimetypes.forEach(e=>{this._mimeTypesMap[e]=t.identifier})}),cn.a.as(Gt.a.Configuration).registerOverrideIdentifiers(hn.a.getLanguages().map(e=>e.id)),this._onDidChange.fire()}_getLanguageId(e){var t;return this._languageToLanguageId[e]||(t=this._nextLanguageId2++,this._languageIdToLanguage[t]=e,this._languageToLanguageId[e]=t)}_registerLanguage(e){var t,i=e.id;let n;un.call(this._languages,i)?n=this._languages[i]:(t=this._getLanguageId(i),n={identifier:new ge.u(i,t),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[i]=n),this._mergeLanguage(n,e)}_mergeLanguage(e,t){var i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&0<t.mimetypes.length&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n="text/x-"+i,e.mimetypes.push(n)),Array.isArray(t.extensions))for(var o of(t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions),t.extensions))en.c({id:i,mime:n,extension:o},this._warnOnOverwrite);if(Array.isArray(t.filenames))for(var r of t.filenames)en.c({id:i,mime:n,filename:r},this._warnOnOverwrite),e.filenames.push(r);if(Array.isArray(t.filenamePatterns))for(var s of t.filenamePatterns)en.c({id:i,mime:n,filepattern:s},this._warnOnOverwrite);if("string"==typeof t.firstLine&&0<t.firstLine.length){let o=t.firstLine;"^"!==o.charAt(0)&&(o="^"+o);try{var a=new RegExp(o);Te.N(a)||en.c({id:i,mime:n,firstline:a},this._warnOnOverwrite)}catch(e){Object(Ce.f)(e)}}e.aliases.push(i);let l=null;if(null!==(l=void 0!==t.aliases&&Array.isArray(t.aliases)?0===t.aliases.length?[null]:t.aliases:l))for(const h of l)h&&0!==h.length&&e.aliases.push(h);var d;a=null!==l&&0<l.length;a&&null===l[0]||(d=(a?l[0]:null)||i,!a&&e.name)||(e.name=d),t.configuration&&e.configurationFiles.push(t.configuration)}isRegisteredMode(e){return!!un.call(this._mimeTypesMap,e)||un.call(this._languages,e)}getModeIdForLanguageNameLowercase(e){return un.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null}extractModeIds(e){return e?e.split(",").map(e=>e.trim()).map(e=>un.call(this._mimeTypesMap,e)?this._mimeTypesMap[e].language:e).filter(e=>un.call(this._languages,e)):[]}getLanguageIdentifier(e){if(e===pe.b||0===e)return pe.a;let t;if("string"==typeof e)t=e;else if(!(t=this._languageIdToLanguage[e]))return null;return un.call(this._languages,t)?this._languages[t].identifier:null}getModeIdsFromFilepathOrFirstLine(e,t){return e||t?(e=en.b(e,t),this.extractModeIds(e.join(","))):[]}}class pn{constructor(e,t){let i;this._selector=t,this.languageIdentifier=this._selector(),this._onDidChange=new j.b({onFirstListenerAdd:()=>{i=e(()=>this._evaluate())},onLastListenerRemove:()=>{i.dispose()}}),this.onDidChange=this._onDidChange.event}_evaluate(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))}}class mn extends ve.a{constructor(e=!1){super(),this._onDidCreateMode=this._register(new j.b),this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=this._register(new j.b({leakWarningThreshold:200})),this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=this._register(new gn(!0,e)),this._register(this._registry.onDidChange(()=>this._onLanguagesMaybeChanged.fire()))}isRegisteredMode(e){return this._registry.isRegisteredMode(e)}getModeIdForLanguageName(e){return this._registry.getModeIdForLanguageNameLowercase(e)}getModeIdByFilepathOrFirstLine(e,t){return e=this._registry.getModeIdsFromFilepathOrFirstLine(e,t),Object(nt.j)(e,null)}getModeId(e){return e=this._registry.extractModeIds(e),Object(nt.j)(e,null)}getLanguageIdentifier(e){return this._registry.getLanguageIdentifier(e)}create(e){return new pn(this.onLanguagesMaybeChanged,()=>{var t=this.getModeId(e);return this._createModeAndGetLanguageIdentifier(t)})}createByFilepathOrFirstLine(e,t){return new pn(this.onLanguagesMaybeChanged,()=>{var i=this.getModeIdByFilepathOrFirstLine(e,t);return this._createModeAndGetLanguageIdentifier(i)})}_createModeAndGetLanguageIdentifier(e){return e=this.getLanguageIdentifier(e||"plaintext")||pe.a,this._getOrCreateMode(e.language),e}triggerMode(e){e=this.getModeId(e),this._getOrCreateMode(e||"plaintext")}_getOrCreateMode(e){var t;return this._instantiatedModes.hasOwnProperty(e)||(t=this.getLanguageIdentifier(e)||pe.a,this._instantiatedModes[e]=new dn(t),this._onDidCreateMode.fire(this._instantiatedModes[e])),this._instantiatedModes[e]}}var fn=i("d1a7"),_n=i("ceb8");class bn{constructor(e,t,i,n,o){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}}function vn(e,t){e.sort((e,t)=>{var i=function(e,t){return e<t?-1:t<e?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index});let i=0,n="000000",o="ffffff";for(;1<=e.length&&""===e[0].token;){var r=e.shift();-1!==r.fontStyle&&(i=r.fontStyle),null!==r.foreground&&(n=r.foreground),null!==r.background&&(o=r.background)}var s,a=new wn;for(s of t)a.getId(s);t=a.getId(n);var l=a.getId(o),d=(t=new Ln(i,t,l),new xn(t));for(let c=0,u=e.length;c<u;c++){var h=e[c];d.insert(h.token,h.fontStyle,a.getId(h.foreground),a.getId(h.background))}return new yn(a,d)}const Cn=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class wn{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;var t=e.match(Cn);if(!t)throw new Error("Illegal value for token color: "+e);return e=t[1].toUpperCase(),t=this._color2id.get(e),t||(t=++this._lastColorId,this._color2id.set(e,t),this._id2color[t]=_n.a.fromHex("#"+e)),t}getColorMap(){return this._id2color.slice(0)}}class yn{constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];let t=[],i=0;for(let r=0,s=e.length;r<s;r++){var n=e[r];let s=-1;if("string"==typeof n.fontStyle){s=0;var o=n.fontStyle.split(" ");for(let e=0,t=o.length;e<t;e++)switch(o[e]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4}}let a=null,l=("string"==typeof n.foreground&&(a=n.foreground),null);"string"==typeof n.background&&(l=n.background),t[i++]=new bn(n.token||"",r,s,a,l)}return t}(e),t)}static createFromParsedTokenTheme(e,t){return vn(e,t)}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let i=this._cache.get(t);var n,o;return void 0===i&&(n=this._match(t),o=function(e){if(e=e.match(Sn),!e)return 0;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}(t),i=(n.metadata|o<<8)>>>0,this._cache.set(t,i)),(i|e<<0)>>>0}}const Sn=/\b(comment|string|regex|regexp)\b/;class Ln{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}clone(){return new Ln(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}}class xn{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;var t=e.indexOf(".");let i,n;return n=-1===t?(i=e,""):(i=e.substring(0,t),e.substring(t+1)),e=this._children.get(i),void 0!==e?e.match(n):this._mainRule}insert(e,t,i,n){if(""===e)this._mainRule.acceptOverwrite(t,i,n);else{var o=e.indexOf(".");let r,s,a=(s=-1===o?(r=e,""):(r=e.substring(0,o),e.substring(o+1)),this._children.get(r));void 0===a&&(a=new xn(this._mainRule.clone()),this._children.set(r,a)),a.insert(s,t,i,n)}}}var kn=i("918c"),Dn=i("303e");const Nn={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[Dn.r]:"#FFFFFE",[Dn.B]:"#000000",[Dn.J]:"#E5EBF1",[kn.o]:"#D3D3D3",[kn.a]:"#939393",[Dn.T]:"#ADD6FF4D"}},On={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Dn.r]:"#1E1E1E",[Dn.B]:"#D4D4D4",[Dn.J]:"#3A3D41",[kn.o]:"#404040",[kn.a]:"#707070",[Dn.T]:"#ADD6FF26"}},En={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[Dn.r]:"#000000",[Dn.B]:"#FFFFFF",[kn.o]:"#FFFFFF",[kn.a]:"#FFFFFF"}};var In=i("9c41"),Mn=i("bf5b");function Tn(){const e=new j.b,t=Object(Mn.a)();return t.onDidChange(()=>e.fire()),{onDidChange:e.event,getCSS(){const e={};var i,n,o=[];for(i of t.getIcons()){var r=(i=>{let n=i.defaults;for(;ji.d.isThemeIcon(n);){var o=t.getIcon(n.id);if(!o)return;n=o.defaults}var r=n.fontId;if(r){var s=t.getIconFont(r);if(s)return e[r]=s,`.codicon-${i.id}:before { content: '${n.fontCharacter}'; font-family: ${Object(Y.r)(r)}; }`}return`.codicon-${i.id}:before { content: '${n.fontCharacter}'; }`})(i);r&&o.push(r)}for(n in e){var s=e[n].definition.src.map(e=>`${Object(Y.s)(e.location)} format('${e.format}')`).join(", ");o.push(`@font-face { src: ${s}; font-family: ${Object(Y.r)(n)}; font-display: block; }`)}return o.join("\n")}}}const An="vs-dark",Rn="hc-black",Pn=cn.a.as(Dn.a.ColorContribution),Fn=cn.a.as(ji.a.ThemingContribution);class Bn{constructor(e,t){this.semanticHighlighting=!1,t=(this.themeData=t).base,0<e.length?(jn(e)?this.id=e:this.id=t+" "+e,this.themeName=e):(this.id=t,this.themeName=t),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){var e,t=new Map;for(e in this.themeData.colors)t.set(e,_n.a.fromHex(this.themeData.colors[e]));if(this.themeData.inherit){var i,n=Wn(this.themeData.base);for(i in n.colors)t.has(i)||t.set(i,_n.a.fromHex(n.colors[i]))}this.colors=t}return this.colors}getColor(e,t){var i=this.getColors().get(e);return i||(!1!==t?this.getDefault(e):void 0)}getDefault(e){var t=this.defaultColors[e];return t||(t=Pn.resolveDefaultColor(e,this),this.defaultColors[e]=t),t}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case"vs":return In.a.LIGHT;case Rn:return In.a.HIGH_CONTRAST;default:return In.a.DARK}}get tokenTheme(){if(!this._tokenTheme){let t=[],i=[];var e;this.themeData.inherit&&(e=Wn(this.themeData.base),t=e.rules,e.encodedTokensColors)&&(i=e.encodedTokensColors),t=t.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(i=this.themeData.encodedTokensColors),this._tokenTheme=yn.createFromRawTokenTheme(t,i)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){return e=this.tokenTheme._match([e].concat(t).join(".")).metadata,t=ge.E.getForeground(e),e=ge.E.getFontStyle(e),{foreground:t,italic:Boolean(1&e),bold:Boolean(2&e),underline:Boolean(4&e)}}}function jn(e){return"vs"===e||e===An||e===Rn}function Wn(e){switch(e){case"vs":return Nn;case An:return On;case Rn:return En}}function Vn(e){var t=Wn(e);return new Bn(e,t)}class Hn extends ve.a{constructor(){super(),this._onColorThemeChange=this._register(new j.b),this.onDidColorThemeChange=this._onColorThemeChange.event,this._environment=Object.create(null),this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set("vs",Vn("vs")),this._knownThemes.set(An,Vn(An)),this._knownThemes.set(Rn,Vn(Rn));const e=Tn();this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=this._codiconCSS+"\n"+this._themeCSS,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme("vs"),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),Y.m("(forced-colors: active)",()=>{this._updateActualTheme()})}registerEditorContainer(e){return Y.O(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=Y.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),ve.a.None}_registerShadowDomContainer(e){const t=Y.w(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t)return void this._styleElements.splice(e,1)}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!jn(t.base)&&!jn(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new Bn(e,t)),jn(e)&&this._knownThemes.forEach(t=>{t.base===e&&t.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get("vs"),this._desiredTheme=t,this._updateActualTheme()}_updateActualTheme(){var e=this._autoDetectHighContrast&&window.matchMedia("(forced-colors: active)").matches?this._knownThemes.get(Rn):this._desiredTheme;this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._updateActualTheme()}_updateThemeOrColorMap(){let e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};Fn.getThemingParticipants().forEach(e=>e(this._theme,i,this._environment));var n=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule(function(e){var t=[];for(let n=1,o=e.length;n<o;n++){var i=e[n];t[n]=`.mtk${n} { color: ${i}; }`}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.join("\n")}(n)),this._themeCSS=e.join("\n"),this._updateCSS(),ge.F.setColorMap(n),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=this._codiconCSS+"\n"+this._themeCSS,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}}var zn=i("258a");st=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},rt=function(e,t){return function(i,n){t(i,n,e)}};const Un="data-keybinding-context";class Kn{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){var t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t}}class qn extends Kn{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}qn.INSTANCE=new qn;class $n extends Kn{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Q.c.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(e=>{if(6===e.source){var t=Array.from(zn.a.map(this._values,([e])=>e));this._values.clear(),i.fire(new Yn(t))}else{var n=[];for(const t of e.affectedKeys){var o="config."+t,r=this._values.findSuperstr(o);void 0!==r&&(n.push(...zn.a.map(r,([e])=>e)),this._values.deleteSuperstr(o)),this._values.has(o)&&(n.push(o),this._values.delete(o))}i.fire(new Yn(n))}})}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf($n._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);var t=e.substr($n._keyPrefix.length),i=this._configurationService.getValue(t);let n=void 0;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:n=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}$n._keyPrefix="config.";class Gn{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Zn{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}}class Yn{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}}class Xn{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}}class Qn{constructor(e){this._onDidChangeContext=new j.e({merge:e=>new Xn(e)}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Gn(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new eo(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId);return ii.contextMatchesRules(t,e)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){var i;this._isDisposed||(i=this.getContextValuesContainer(this._myContextId))&&i.setValue(e,t)&&this._onDidChangeContext.fire(new Zn(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Zn(e))}getContext(e){return this._isDisposed?qn.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){var t;if(e.hasAttribute(Un))return(t=e.getAttribute(Un))?parseInt(t,10):NaN;e=e.parentElement}return 0}(e))}}let Jn=class extends Qn{constructor(e){super(0),this._contexts=new Map,this._toDispose=new ve.b,this._lastContextId=0,e=new $n(this._myContextId,e,this._onDidChangeContext),this._contexts.set(this._myContextId,e),this._toDispose.add(e)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return!this._isDisposed&&this._contexts.get(e)||qn.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");var t=++this._lastContextId;return this._contexts.set(t,new Kn(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Jn=st([rt(0,qt.a)],Jn);class eo extends Qn{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=new ve.d,this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(Un)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", "))}this._domNode.setAttribute(Un,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(this._onDidChangeContext.fire,this._onDidChangeContext)}dispose(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(Un),this._isDisposed=!0)}getContextValuesContainer(e){return this._isDisposed?qn.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}ie.a.registerCommand(ti.d,(function(e,t,i){e.get(ti.b).createKey(String(t),i)})),ie.a.registerCommand({id:"getContextKeyInfo",handler(){return[...ti.c.all()].sort((e,t)=>e.key.localeCompare(t.key))},description:{description:Object(Jt.a)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),ie.a.registerCommand("_generateContextKeyInfo",(function(){var e,t=[],i=new Set;for(e of ti.c.all())i.has(e.key)||(i.add(e.key),t.push(e));t.sort((e,t)=>e.key.localeCompare(t.key))}));var to,io=i("5d75"),no=i("5d28"),oo=i("0f70"),ro=i("a60f"),so=i("5aa5"),ao=(qi=i("eff2"),Qi=i("b9db"),i("0a31")),lo=i("9ee1");function ho(e,t,i){var n=i.mode===to.ALIGN?i.offset:i.offset+i.size,o=i.mode===to.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-n?n:t<=o?o-t:Math.max(e-t,0):t<=o?o-t:t<=e-n?n:0}i("4d3d"),(st=to=to||{})[st.AVOID=0]="AVOID",st[st.ALIGN=1]="ALIGN";class co extends ve.a{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=ve.a.None,this.toDisposeOnSetContainer=ve.a.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=Y.a(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,Y.K(this.view),this.setContainer(e,t),this._register(Object(ve.i)(()=>this.setContainer(null,1)))}setContainer(e,t){var i;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),(this.shadowRoot=null)!=(i=this.shadowRootHostElement)&&i.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){this.container=e,this.useFixedPosition=1!==t,this.useShadowDOM=3===t,this.useShadowDOM?(this.shadowRootHostElement=Y.a(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"}),(i=document.createElement("style")).textContent=uo,this.shadowRoot.appendChild(i),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(Y.a("slot"))):this.container.appendChild(this.view);const n=new ve.b;co.BUBBLE_UP_EVENTS.forEach(e=>{n.add(Y.o(this.container,e,e=>{this.onDOMEvent(e,!1)}))}),co.BUBBLE_DOWN_EVENTS.forEach(e=>{n.add(Y.o(this.container,e,e=>{this.onDOMEvent(e,!0)},!0))}),this.toDisposeOnSetContainer=n}}show(e){this.isVisible()&&this.hide(),Y.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",Y.W(this.view),this.toDisposeOnClean=e.render(this.view)||ve.a.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||we.c&&ao.a.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())}doLayout(){if(this.isVisible()){var e=this.delegate.getAnchor();let s;s=Y.M(e)?{top:(n=Y.D(e)).top,left:n.left,width:n.width,height:n.height}:{top:e.y,left:e.x,width:e.width||1,height:e.height||2};var t,i,n=Y.I(this.view),o=(e=Y.H(this.view),this.delegate.anchorPosition||0),r=this.delegate.anchorAlignment||0;let a,l;0===(this.delegate.anchorAxisAlignment||0)?(t={offset:s.top-window.pageYOffset,size:s.height,position:0===o?0:1},i={offset:s.left,size:s.width,position:0===r?0:1,mode:to.ALIGN},a=ho(window.innerHeight,e,t)+window.pageYOffset,lo.a.intersects({start:a,end:a+e},{start:t.offset,end:t.offset+t.size})&&(i.mode=to.AVOID),l=ho(window.innerWidth,n,i)):(t={offset:s.left,size:s.width,position:0===r?0:1},i={offset:s.top,size:s.height,position:0===o?0:1,mode:to.ALIGN},l=ho(window.innerWidth,n,t),lo.a.intersects({start:l,end:l+n},{start:t.offset,end:t.offset+t.size})&&(i.mode=to.AVOID),a=ho(window.innerHeight,e,i)+window.pageYOffset),this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===o?"bottom":"top"),this.view.classList.add(0===r?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition),n=Y.D(this.container),this.view.style.top=a-(this.useFixedPosition?Y.D(this.view):n).top+"px",this.view.style.left=l-(this.useFixedPosition?Y.D(this.view):n).left+"px",this.view.style.width="initial"}}hide(e){var t=this.delegate;(this.delegate=null)!=t&&t.onHide&&t.onHide(e),this.toDisposeOnClean.dispose(),Y.K(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Y.L(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}co.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],co.BUBBLE_DOWN_EVENTS=["click"];let uo='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t@font-face {\n\t\tfont-family: "codicon";\n\t\tfont-display: block;\n\t\tsrc: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype");\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var go,po=i("1898"),mo=i("f070"),fo=i("561a"),_o=i("1097");const bo=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,vo=/(&amp;)?(&amp;)([^\s&])/g,Co=Object(fo.e)("menu-selection",fo.b.check),wo=Object(fo.e)("menu-submenu",fo.b.chevronRight);(rt=go=go||{})[rt.Right=0]="Right",rt[rt.Left=1]="Left";class yo extends so.a{constructor(e,t,i={}){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");var n=document.createElement("div");n.classList.add("monaco-menu"),n.setAttribute("role","presentation"),super(n,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,o),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...we.f||we.d?[10]:[]],keyDown:!0}}),this.menuElement=n,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new ve.b),this.initializeStyleSheet(e),this._register(ro.b.addTarget(n)),Object(Y.i)(n,Y.d.KEY_DOWN,e=>{new Wt.a(e).equals(2)&&e.preventDefault()}),i.enableMnemonics&&this.menuDisposables.add(Object(Y.i)(n,Y.d.KEY_DOWN,e=>{var t,i=e.key.toLocaleLowerCase();this.mnemonics.has(i)&&(Y.c.stop(e,!0),1===(t=this.mnemonics.get(i)).length&&(t[0]instanceof Lo&&t[0].container&&this.focusItemByElement(t[0].container),t[0].onClick(e)),1<t.length)&&((e=t.shift())&&e.container&&(this.focusItemByElement(e.container),t.push(e)),this.mnemonics.set(i,t))})),we.d&&this._register(Object(Y.i)(n,Y.d.KEY_DOWN,e=>{var t=new Wt.a(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),Y.c.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),Y.c.stop(e,!0))})),this._register(Object(Y.i)(this.domNode,Y.d.MOUSE_OUT,e=>{var t=e.relatedTarget;Object(Y.L)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())})),this._register(Object(Y.i)(this.actionsList,Y.d.MOUSE_OVER,e=>{let t=e.target;if(t&&Object(Y.L)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;t.classList.contains("action-item")&&(e=this.focusedItem,this.setFocusedItem(t),e!==this.focusedItem)&&this.updateFocus()}})),this._register(ro.b.addTarget(this.actionsList)),this._register(Object(Y.i)(this.actionsList,ro.a.Tap,e=>{let t=e.initialTarget;if(t&&Object(Y.L)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;t.classList.contains("action-item")&&(e=this.focusedItem,this.setFocusedItem(t),e!==this.focusedItem)&&this.updateFocus()}}));let o={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new po.a(n,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var r=this.scrollableElement.getDomNode();r.style.position="",this._register(Object(Y.i)(n,ro.a.Change,e=>{Y.c.stop(e,!0);var t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})})),this._register(Object(Y.i)(r,Y.d.MOUSE_UP,e=>{e.preventDefault()})),n.style.maxHeight=Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)+"px",t=t.filter(e=>{var t;return null==(t=i.submenuIds)||!t.has(e.id)}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(e=>!(e instanceof xo)).forEach((e,t,i)=>{e.updatePositionInSet(t+1,i.length)})}initializeStyleSheet(e){Object(Y.O)(e)?(this.styleSheet=Object(Y.w)(e),this.styleSheet.textContent=ko):(yo.globalStyleSheet||(yo.globalStyleSheet=Object(Y.w)(),yo.globalStyleSheet.textContent=ko),this.styleSheet=yo.globalStyleSheet)}style(e){var t=this.getContainer(),i=e.foregroundColor?""+e.foregroundColor:"",n=e.backgroundColor?""+e.backgroundColor:"",o=e.borderColor?"1px solid "+e.borderColor:"",r=e.shadowColor?"0 2px 4px "+e.shadowColor:"";t.style.border=o,this.domNode.style.color=i,this.domNode.style.backgroundColor=n,t.style.boxShadow=r,this.viewItems&&this.viewItems.forEach(t=>{(t instanceof So||t instanceof xo)&&t.style(e)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++)if(e===this.actionsList.children[t]){this.focusedItem=t;break}}updateFocus(e){super.updateFocus(e,!0),void 0!==this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,i){if(e instanceof mo.d)return new xo(t.context,e,{icon:!0});if(e instanceof mo.e){if(i=new Lo(e,e.actions,i,Object.assign(Object.assign({},t),{submenuIds:new Set([...t.submenuIds||[],e.id])})),t.enableMnemonics){var n=i.getMnemonic();if(n&&i.isEnabled()){let e=[];(e=this.mnemonics.has(n)?this.mnemonics.get(n):e).push(i),this.mnemonics.set(n,e)}}return i}if(n={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext},t.getKeyBinding&&(i=t.getKeyBinding(e))&&(i=i.getLabel())&&(n.keybinding=i),i=new So(t.context,e,n),t.enableMnemonics&&(e=i.getMnemonic(),e&&i.isEnabled())){let t=[];(t=this.mnemonics.has(e)?this.mnemonics.get(e):t).push(i),this.mnemonics.set(e,t)}return i}}class So extends qi.b{constructor(e,t,i={}){i.isMenu=!0,super(t,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass="",this.options.label&&i.enableMnemonics&&(t=this.getAction().label)&&(i=bo.exec(t))&&(this.mnemonic=(i[1]||i[3]).toLocaleLowerCase()),this.runOnceToEnableMouseUp=new be.e(()=>{this.element&&(this._register(Object(Y.i)(this.element,Y.d.MOUSE_UP,e=>{Y.c.stop(e,!0),oo.g?new no.a(e).rightButton||this.onClick(e):setTimeout(()=>{this.onClick(e)},0)})),this._register(Object(Y.i)(this.element,Y.d.CONTEXT_MENU,e=>{Y.c.stop(e,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=Object(Y.q)(this.element,Object(Y.a)("a.action-menu-item")),this._action.id===mo.d.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(Y.q)(this.item,Object(Y.a)("span.menu-item-check"+Co.cssSelector)),this.check.setAttribute("role","none"),this.label=Object(Y.q)(this.item,Object(Y.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(Y.q)(this.item,Object(Y.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",""+e),this.item.setAttribute("aria-setsize",""+t))}updateLabel(){if(this.label&&this.options.label){Object(Y.t)(this.label);let i=Object(_o.e)(this.getAction().label);if(i){var e=function(e){var t=bo,i=t.exec(e);return i?(i=!i[1],e.replace(t,i?"$2$3":"").trim()):e}(i);e=(this.options.enableMnemonics||(i=e),this.label.setAttribute("aria-label",e.replace(/&&/g,"&")),bo.exec(i));if(e){i=Te.s(i),vo.lastIndex=0;let n=vo.exec(i);for(;n&&n[1];)n=vo.exec(i);var t=e=>e.replace(/&amp;&amp;/g,"&amp;");n?this.label.append(Te.J(t(i.substr(0,n.index))," "),Object(Y.a)("u",{"aria-hidden":"true"},n[3]),Te.O(t(i.substr(n.index+n[0].length))," ")):this.label.innerText=t(i).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(e[1]||e[3]).toLocaleLowerCase())}else this.label.innerText=i.replace(/&&/g,"&").trim()}}}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding)&&(e=Jt.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding)),e&&this.item&&(this.item.title=e)}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){this.item&&(this.getAction().checked?(this.item.classList.add("checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(this.item.classList.remove("checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))}getMnemonic(){return this.mnemonic}applyStyle(){var e,t,i;this.menuStyle&&(e=(i=this.element&&this.element.classList.contains("focused"))&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,t=i&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,i=i&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"",this.item&&(this.item.style.color=e?e.toString():"",this.item.style.backgroundColor=t?t.toString():""),this.check&&(this.check.style.color=e?e.toString():""),this.container)&&(this.container.style.border=i)}style(e){this.menuStyle=e,this.applyStyle()}}class Lo extends So{constructor(e,t,i,n){super(e,e,n),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new ve.b),this.mouseOver=!1,this.expandDirection=n&&void 0!==n.expandDirection?n.expandDirection:go.Right,this.showScheduler=new be.e(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new be.e(()=>{this.element&&!Object(Y.L)(Object(Y.y)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(Y.q)(this.item,Object(Y.a)("span.submenu-indicator"+wo.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(Y.i)(this.element,Y.d.KEY_UP,e=>{var t=new Wt.a(e);(t.equals(17)||t.equals(3))&&(Y.c.stop(e,!0),this.createSubmenu(!0))})),this._register(Object(Y.i)(this.element,Y.d.KEY_DOWN,e=>{var t=new Wt.a(e);Object(Y.y)()===this.item&&(t.equals(17)||t.equals(3))&&Y.c.stop(e,!0)})),this._register(Object(Y.i)(this.element,Y.d.MOUSE_OVER,e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(Object(Y.i)(this.element,Y.d.MOUSE_LEAVE,e=>{this.mouseOver=!1})),this._register(Object(Y.i)(this.element,Y.d.FOCUS_OUT,e=>{this.element&&!Object(Y.L)(Object(Y.y)(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)})))}updateEnabled(){}onClick(e){Y.c.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(e){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){var o={top:0,left:0};return o.left=ho(e.width,t.width,{position:n===go.Right?0:1,offset:i.left,size:i.width}),o.left>=i.left&&o.left<i.left+i.width&&(i.left+10+t.width<=e.width&&(o.left=i.left+10),i.top+=10,i.height=0),o.top=ho(e.height,t.height,{position:0,offset:i.top,size:0}),o.top+t.height===i.top&&o.top+i.height+t.height<=e.height&&(o.top+=i.height),o}createSubmenu(e=!0){var t,i;this.element&&(this.parentData.submenu?this.parentData.submenu.focus(!1):(this.updateAriaExpanded("true"),this.submenuContainer=Object(Y.q)(this.element,Object(Y.a)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view"),i=getComputedStyle(this.parentData.parent.domNode),i=parseFloat(i.paddingTop||"0")||0,this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new yo(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new mo.c],this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle),i={top:(t=this.element.getBoundingClientRect()).top-i,left:t.left,height:t.height+2*i,width:t.width},t=this.submenuContainer.getBoundingClientRect(),({top:t,left:i}=this.calculateSubmenuMenuLayout(new Y.b(window.innerWidth,window.innerHeight),Y.b.lift(t),i,this.expandDirection)),this.submenuContainer.style.left=i+"px",this.submenuContainer.style.top=t+"px",this.submenuDisposables.add(Object(Y.i)(this.submenuContainer,Y.d.KEY_UP,e=>{new Wt.a(e).equals(15)&&(Y.c.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(Y.i)(this.submenuContainer,Y.d.KEY_DOWN,e=>{new Wt.a(e).equals(15)&&Y.c.stop(e,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu))}updateAriaExpanded(e){var t;this.item&&null!=(t=this.item)&&t.setAttribute("aria-expanded",e)}applyStyle(){var e;super.applyStyle(),this.menuStyle&&(e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,this.submenuIndicator&&(this.submenuIndicator.style.color=e?""+e:""),this.parentData.submenu)&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class xo extends qi.a{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:"")}}let ko=`\n.monaco-menu {\n\tfont-size: 13px;\n\n}\n\n${Object(Qi.a)(Co)}\n${Object(Qi.a)(wo)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar.animated .action-item.active {\n\ttransform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\topacity: 0.4;\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid #bbb;\n\tpadding-top: 1px;\n\tmargin-left: .8em;\n\tmargin-right: .8em;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tpadding: 0.5em 0 0 0;\n\tmargin-bottom: 0.5em;\n\twidth: 100%;\n\theight: 0px !important;\n\tmargin-left: .8em !important;\n\tmargin-right: .8em !important;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tborder: thin solid transparent; /* prevents jumping behaviour on hover or focus */\n}\n\n\n/* High Contrast Theming */\n:host-context(.hc-black) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: .5em 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 1.8em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tpadding: 0.2em 0 0 0;\n\tmargin-bottom: 0.2em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}\n\n/* Arrows */\n.monaco-scrollable-element > .scrollbar > .scra {\n\tcursor: pointer;\n\tfont-size: 11px !important;\n}\n\n.monaco-scrollable-element > .visible {\n\topacity: 1;\n\n\t/* Background rule added for IE9 - to allow clicks on dom node */\n\tbackground:rgba(0,0,0,0);\n\n\ttransition: opacity 100ms linear;\n}\n.monaco-scrollable-element > .invisible {\n\topacity: 0;\n\tpointer-events: none;\n}\n.monaco-scrollable-element > .invisible.fade {\n\ttransition: opacity 800ms linear;\n}\n\n/* Scrollable Content Inset Shadow */\n.monaco-scrollable-element > .shadow {\n\tposition: absolute;\n\tdisplay: none;\n}\n.monaco-scrollable-element > .shadow.top {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 3px;\n\theight: 3px;\n\twidth: 100%;\n\tbox-shadow: #DDD 0 6px 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.left {\n\tdisplay: block;\n\ttop: 3px;\n\tleft: 0;\n\theight: 100%;\n\twidth: 3px;\n\tbox-shadow: #DDD 6px 0 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.top-left-corner {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 0;\n\theight: 3px;\n\twidth: 3px;\n}\n.monaco-scrollable-element > .shadow.top.left {\n\tbox-shadow: #DDD 6px 6px 6px -6px inset;\n}\n\n/* ---------- Default Style ---------- */\n\n:host-context(.vs) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(100, 100, 100, .4);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(121, 121, 121, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(111, 195, 223, .6);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(100, 100, 100, .7);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(111, 195, 223, .8);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(0, 0, 0, .6);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(191, 191, 191, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(111, 195, 223, 1);\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: #000 6px 0 6px -6px inset;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: #000 6px 6px 6px -6px inset;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: none;\n}\n`;i("7a2c");var Do=i("a6d7");class No{constructor(e,t,i,n,o){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.themeService=o,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(t.length){let n;this.focusToReturn=document.activeElement;var i=Object(Y.M)(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:i=>{var o=e.getMenuClassName?e.getMenuClassName():"",r=(o=(o&&(i.className+=" "+o),this.options.blockMouse&&(this.block=i.appendChild(Object(Y.a)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",Object(Y.i)(this.block,Y.d.MOUSE_DOWN,e=>e.stopPropagation())),new ve.b),e.actionRunner||new mo.b);return r.onBeforeRun(this.onActionRun,this,o),r.onDidRun(this.onDidActionRun,this,o),n=new yo(i,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:r,getKeyBinding:e.getKeyBinding||(e=>this.keybindingService.lookupKeybinding(e.id))}),o.add(Object(Do.c)(n,this.themeService)),n.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,o),n.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,o),o.add(Object(Y.i)(window,Y.d.BLUR,()=>this.contextViewService.hideContextView(!0))),o.add(Object(Y.i)(window,Y.d.MOUSE_DOWN,e=>{if(!e.defaultPrevented){e=new no.a(e);let t=e.target;if(!e.rightButton){for(;t;){if(t===i)return;t=t.parentElement}this.contextViewService.hideContextView(!0)}}})),Object(ve.e)(o,n)},focus:()=>{n&&n.focus(!!e.autoSelectFirstItem)},onHide:t=>{e.onHide&&e.onHide(!!t),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},i,!!i)}}onActionRun(e){this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&!Object(Ce.e)(e.error)&&this.notificationService.error(e.error)}}st=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},rt=function(e,t){return function(i,n){t(i,n,e)}};let Oo=class extends ve.a{constructor(e,t,i,n,o){super(),this.contextMenuHandler=new No(i,e,t,n,o)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(e),Y.e.getInstance().resetKeyStatus()}};Oo=st([rt(0,io.a),rt(1,ci.a),rt(2,Pi.b),rt(3,Bi.a),rt(4,ji.b)],Oo);const Eo=Object(Fi.c)("layoutService");qi=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},Qi=function(e,t){return function(i,n){t(i,n,e)}};let Io=class extends ve.a{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=ve.a.None,this.container=e.container,this.contextView=this._register(new co(this.container,1)),this.layout(),this._register(e.onDidLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,i){t?t!==this.container&&(this.container=t,this.setContainer(t,i?3:2)):this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(e);const n=Object(ve.i)(()=>{this.currentViewDisposable===n&&this.hideContextView()});return this.currentViewDisposable=n}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};Io=qi([Qi(0,Eo)],Io);st=i("eafb");var Mo=i("af40");class To{constructor(e){this.incoming=new Map,this.outgoing=new Map,this.data=e}}class Ao{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){var e,t=[];for(e of this._nodes.values())0===e.outgoing.size&&t.push(e);return t}insertEdge(e,t){var i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(this._hashFn(t),n),n.incoming.set(this._hashFn(e),i)}removeNode(e){var t,i=this._hashFn(e);for(t of(this._nodes.delete(i),this._nodes.values()))t.outgoing.delete(i),t.incoming.delete(i)}lookupOrInsertNode(e){var t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new To(e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){var e,t,i=[];for([e,t]of this._nodes)i.push(`${e}, (incoming)[${[...t.incoming.keys()].join(", ")}], (outgoing)[${[...t.outgoing.keys()].join(",")}]`);return i.join("\n")}findCycleSlow(){for(var[e,t]of this._nodes)if(e=new Set([e]),t=this._findCycle(t,e),t)return t}_findCycle(e,t){for(var[i,n]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");if(t.add(i),n=this._findCycle(n,t),n)return n;t.delete(i)}}}var Ro=i("f07b");class Po extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=null!=(t=e.findCycleSlow())?t:"UNABLE to detect cycle, dumping graph: \n"+e.toString()}}class Fo{constructor(e=new Ro.a,t=!1,i){this._activeInstantiations=new Set,this._services=e,this._strict=t,this._parent=i,this._services.set(Fi.a,this)}createChild(e){return new Fo(e,this._strict,this)}invokeFunction(e,...t){let i=Bo.traceInvocation(e),n=!1;try{return e({get:(e,t)=>{if(n)throw Object(Ce.d)("service accessor is only valid during the invocation of its target method");var o=this._getOrCreateServiceInstance(e,i);if(o||t===Fi.d)return o;throw new Error(`[invokeFunction] unknown service '${e}'`)}},...t)}finally{n=!0,i.stop()}}createInstance(e,...t){let i,n;return n=e instanceof Mo.a?(i=Bo.traceCreation(e.ctor),this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=Bo.traceCreation(e),this._createInstance(e,t,i)),i.stop(),n}_createInstance(e,t=[],i){var n=Fi.b.getServiceDependencies(e).sort((e,t)=>e.index-t.index),o=[];for(const a of n){var r=this._getOrCreateServiceInstance(a.id,i);if(!r&&this._strict&&!a.optional)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${a.id}.`);o.push(r)}var s;n=0<n.length?n[0].index:t.length;return new e(...t=t.length!==n?0<(s=n-t.length)?t.concat(new Array(s)):t.slice(0,n):t,...o)}_setServiceInstance(e,t){if(this._services.get(e)instanceof Mo.a)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){var i=this._getServiceInstanceOrDescriptor(e);return i instanceof Mo.a?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){var n=new Ao(e=>e.id.toString());let o=0;for(var r=[{id:e,desc:t,_trace:i}];r.length;){var s,a=r.pop();if(n.lookupOrInsertNode(a),1e3<o++)throw new Po(n);for(s of Fi.b.getServiceDependencies(a.desc.ctor)){var l=this._getServiceInstanceOrDescriptor(s.id);l||s.optional,l instanceof Mo.a&&(l={id:s.id,desc:l,_trace:a._trace.branch(s.id,!0)},n.insertEdge(a,l),r.push(l))}}for(;;){var d,h,c=n.roots();if(0===c.length){if(n.isEmpty())break;throw new Po(n)}for({data:d}of c)this._getServiceInstanceOrDescriptor(d.id)instanceof Mo.a&&(h=this._createServiceInstanceWithOwner(d.id,d.desc.ctor,d.desc.staticArguments,d.desc.supportsDelayedInstantiation,d._trace),this._setServiceInstance(d.id,h)),n.removeNode(d)}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],n,o){if(this._services.get(e)instanceof Mo.a)return this._createServiceInstance(t,i,n,o);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,o);throw new Error("illegalState - creating UNKNOWN service instance "+t.name)}_createServiceInstance(e,t=[],i,n){if(i){const i=new be.b(()=>this._createInstance(e,t,n));return new Proxy(Object.create(null),{get(e,t){if(t in e)return e[t];var n=i.value;let o=n[t];return"function"==typeof o&&(o=o.bind(n),e[t]=o),o},set(e,t,n){return i.value[t]=n,!0}})}return this._createInstance(e,t,n)}}class Bo{constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}static traceInvocation(e){return Bo._None}static traceCreation(e){return Bo._None}branch(e,t){var i=new Bo(2,e.toString());return this._dep.push([e,t,i]),i}stop(){var e=Date.now()-this._start;Bo._totals+=e;let t=!1;this.type,this.name,function e(i,n){var o,r,s,a,l=[],d=new Array(i+1).join("\t");for([o,r,s]of n._dep)r&&s?(t=!0,l.push(d+"CREATES -> "+o),(a=e(i+1,s))&&l.push(a)):l.push(d+"uses -> "+o);return l.join("\n")}(1,this),e.toFixed(2),Bo._totals.toFixed(2)}}Bo._None=new class extends Bo{constructor(){super(-1,null)}stop(){}branch(){return this}},Bo._totals=0;rt=i("47cb");var jo=i("93d9"),Wo=i("b400");class Vo{constructor(){this._byResource=new Q.b,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e),o=(n||(n=new Map,this._byResource.set(e,n)),n.set(t,i),this._byOwner.get(t));o||(o=new Q.b,this._byOwner.set(t,o)),o.set(e,i)}get(e,t){return e=this._byResource.get(e),null==e?void 0:e.get(t)}delete(e,t){let i=!1,n=!1;var o=this._byResource.get(e);o&&(i=o.delete(t)),o=this._byOwner.get(t);if(o&&(n=o.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t;return"string"==typeof e?null!=(t=null==(t=this._byOwner.get(e))?void 0:t.values())?t:zn.a.empty():V.a.isUri(e)?null!=(e=null==(t=this._byResource.get(e))?void 0:t.values())?e:zn.a.empty():zn.a.map(zn.a.concat(...this._byOwner.values()),e=>e[1])}}class Ho{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new Q.b,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const i of e){var t=this._data.get(i);t=(t&&this._substract(t),this._resourceStats(i));this._add(t),this._data.set(i,t)}}_resourceStats(e){var t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme!==ee.c.inMemory&&e.scheme!==ee.c.walkThrough&&e.scheme!==ee.c.walkThroughSnippet)for(var{severity:i}of this._service.read({resource:e}))i===Wo.c.Error?t.errors+=1:i===Wo.c.Warning?t.warnings+=1:i===Wo.c.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class zo{constructor(){this._onMarkerChanged=new j.a({delay:0,merge:zo._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new Vo,this._stats=new Ho(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if(Object(nt.m)(i))this._data.delete(t,e)&&this._onMarkerChanged.fire([t]);else{var n=[];for(const r of i){var o=zo._toMarker(e,t,r);o&&n.push(o)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){var{code:i,severity:n,message:o,source:r,startLineNumber:s,startColumn:a,endLineNumber:l,endColumn:d,relatedInformation:h,tags:c}=i;if(o)return{resource:t,owner:e,code:i,severity:n,message:o,source:r,startLineNumber:s=0<s?s:1,startColumn:a=0<a?a:1,endLineNumber:s<=l?l:s,endColumn:0<d?d:a,relatedInformation:h,tags:c}}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:o}=e;if((!o||o<0)&&(o=-1),t&&i){if(e=this._data.get(i,t),e){var r=[];for(const t of e)if(zo._accept(t,n)){var s=r.push(t);if(0<o&&s===o)break}return r}return[]}if(t||i){var a=[];for(const e of this._data.values(null!=i?i:t))for(const t of e)if(zo._accept(t,n)){var l=a.push(t);if(0<o&&l===o)return a}return a}var d,h=[];for(d of this._data.values())for(var c of d)if(zo._accept(c,n)&&(c=h.push(c),0<o&&c===o))return h;return h}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){var t,i=new Q.b;for(t of e)for(var n of t)i.set(n,!0);return Array.from(i.keys())}}var Uo=i("03e8");qi=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},Qi=function(e,t){return function(i,n){t(i,n,e)}};let Ko=class{constructor(e){this._commandService=e}createMenu(e,t,i){return new qo(e,Object.assign({emitEventsForSubmenuChanges:!1,eventDebounceDelay:50},i),this._commandService,t,this)}},qo=(Ko=qi([Qi(0,ie.b)],Ko),class e{constructor(e,t,i,n,o){this._id=e,this._options=t,this._commandService=i,this._contextKeyService=n,this._menuService=o,this._disposables=new ve.b,this._menuGroups=[],this._contextKeys=new Set,this._build();const r=new be.e(()=>{this._build(),this._onDidChange.fire(this)},t.eventDebounceDelay),s=(this._disposables.add(r),this._disposables.add(Ri.d.onDidChangeMenu(t=>{t.has(e)&&r.schedule()})),this._disposables.add(new ve.b));this._onDidChange=new j.b({onFirstListenerAdd:()=>{const e=new be.e(()=>this._onDidChange.fire(this),t.eventDebounceDelay);s.add(e),s.add(n.onDidChangeContext(t=>{t.affectsSome(this._contextKeys)&&e.schedule()}))},onLastListenerRemove:s.clear.bind(s)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();var t=Ri.d.getMenuItems(this._id);let i;t.sort(e._compareMenuItems);for(const e of t){var n=e.group||"";i&&i[0]===n||(i=[n,[]],this._menuGroups.push(i)),i[1].push(e),this._collectContextKeys(e)}}_collectContextKeys(t){var i;e._fillInKbExprKeys(t.when,this._contextKeys),Object(Ri.f)(t)?(t.command.precondition&&e._fillInKbExprKeys(t.command.precondition,this._contextKeys),t.command.toggled&&(i=t.command.toggled.condition||t.command.toggled,e._fillInKbExprKeys(i,this._contextKeys))):this._options.emitEventsForSubmenuChanges&&Ri.d.getMenuItems(t.submenu).forEach(this._collectContextKeys,this)}getActions(e){var t,i=[];for(t of this._menuGroups){var n,[o,r]=t,s=[];for(const t of r)this._contextKeyService.contextMatchesRules(t.when)&&(n=Object(Ri.f)(t)?new Ri.c(t.command,t.alt,e,this._contextKeyService,this._commandService):new Ri.e(t,this._menuService,this._contextKeyService,e),s.push(n));0<s.length&&i.push([o,s])}return i}static _fillInKbExprKeys(e,t){if(e)for(var i of e.keys())t.add(i)}static _compareMenuItems(t,i){var n=t.group,o=i.group;if(n!==o){if(!n)return 1;if(!o)return-1;if("navigation"===n)return-1;if("navigation"===o)return 1;if(n=n.localeCompare(o),0!==n)return n}return o=t.order||0,n=i.order||0,o<n?-1:n<o?1:e._compareTitles((Object(Ri.f)(t)?t.command:t).title,(Object(Ri.f)(i)?i.command:i).title)}static _compareTitles(e,t){return e="string"==typeof e?e:e.original,t="string"==typeof t?t:t.original,e.localeCompare(t)}});qo=qi([Qi(2,ie.b),Qi(3,ti.b),Qi(4,Ri.a)],qo);qi=i("efdb"),Qi=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s};var $o=function(e,t){return function(i,n){t(i,n,e)}};class Go extends ve.a{constructor(e){super(),this.model=e,this._markersData=new Map,this._register(Object(ve.i)(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(e,t){var i=[...this._markersData.keys()],n=(this._markersData.clear(),this.model.deltaDecorations(i,t));for(let o=0;o<n.length;o++)this._markersData.set(n[o],e[o]);return 0!==i.length||0!==n.length}getMarker(e){return this._markersData.get(e.id)}}let Zo=class extends ve.a{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new j.b),this._markerDecorations=new Q.b,e.getModels().forEach(e=>this._onModelAdded(e)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear()}getMarker(e,t){return e=this._markerDecorations.get(e),e&&e.getMarker(t)||null}_handleMarkerChange(e){e.forEach(e=>{e=this._markerDecorations.get(e),e&&this._updateDecorations(e)})}_onModelAdded(e){var t=new Go(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==ee.c.inMemory&&e.uri.scheme!==ee.c.internal&&e.uri.scheme!==ee.c.vscode||this._markerService&&this._markerService.read({resource:e.uri}).map(e=>e.owner).forEach(t=>this._markerService.remove(t,[e.uri]))}_updateDecorations(e){var t=this._markerService.read({resource:e.model.uri,take:500}),i=t.map(t=>({range:this._createDecorationRange(e.model,t),options:this._createDecorationOption(t)}));e.update(t,i)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let i=z.a.lift(t);var n;return t.severity!==Wo.c.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(i=i.setEndPosition(i.startLineNumber,i.startColumn+2)),(i=e.validateRange(i)).isEmpty()?(n=e.getWordAtPosition(i.getStartPosition()))?i=new z.a(i.startLineNumber,n.startColumn,i.endLineNumber,n.endColumn):1!==(n=e.getLineLastNonWhitespaceColumn(i.startLineNumber)||e.getLineMaxColumn(i.startLineNumber))&&(i=i.endColumn>=n?new z.a(i.startLineNumber,n-1,i.endLineNumber,n):new z.a(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn+1)):t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber&&(n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber))<i.endColumn&&(i=new z.a(i.startLineNumber,n,i.endLineNumber,i.endColumn),t.startColumn=n),i}_createDecorationOption(e){let t,i,n,o=void 0,r=void 0;switch(e.severity){case Wo.c.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",i=0;break;case Wo.c.Warning:t="squiggly-warning",o=Object(ji.g)(kn.C),i=20,n={color:Object(ji.g)(Dn.gc),position:ue.c.Inline};break;case Wo.c.Info:t="squiggly-info",o=Object(ji.g)(kn.A),i=10;break;default:Wo.c.Error,t="squiggly-error",o=Object(ji.g)(kn.z),i=30,n={color:Object(ji.g)(Dn.ac),position:ue.c.Inline}}return e.tags&&(-1!==e.tags.indexOf(1)&&(r="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2))&&(r="squiggly-inline-deprecated"),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:o,position:ue.d.Right},minimap:n,zIndex:i,inlineClassName:r}}_hasMarkerTag(e,t){return!!e.tags&&0<=e.tags.indexOf(t)}};Zo=Qi([$o(0,it.a),$o(1,Wo.b)],Zo);var Yo=i("f5f3");Qi=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},$o=function(e,t){return function(i,n){t(i,n,e)}};let Xo=class extends ve.a{constructor(e,t){super(),this._contextKeyService=e,this._configurationService=t,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new j.b,this._accessibilityModeEnabledContext=Wi.a.bindTo(this._contextKeyService);const i=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(i(),this._onDidChangeScreenReaderOptimized.fire())})),i(),this.onDidChangeScreenReaderOptimized(()=>i())}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){var e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}getAccessibilitySupport(){return this._accessibilitySupport}};Xo=Qi([$o(0,ti.b),$o(1,qt.a)],Xo);var Qo=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class Jo{constructor(){this.mapTextToType=new Map,this.findText=""}writeText(e,t){return Qo(this,void 0,void 0,(function*(){if(t)this.mapTextToType.set(t,e);else{try{return yield navigator.clipboard.writeText(e)}catch(i){}var i=document.activeElement,n=document.body.appendChild(Object(Y.a)("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),document.execCommand("copy"),i instanceof HTMLElement&&i.focus(),document.body.removeChild(n)}}))}readText(e){return Qo(this,void 0,void 0,(function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(e){return""}}))}readFindText(){return Qo(this,void 0,void 0,(function*(){return this.findText}))}writeFindText(e){return Qo(this,void 0,void 0,(function*(){this.findText=e}))}}var er=i("3803"),tr=(Qi=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},$o=function(e,t){return function(i,n){t(i,n,e)}},function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))});function ir(e){return e.scheme===ee.c.file?e.fsPath:e.path}let nr=0;class or{constructor(e,t,i,n,o,r,s){this.id=++nr,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=o,this.sourceId=r,this.sourceOrder=s,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - `+this.actual}}class rr{constructor(e,t){this.resourceLabel=e,this.reason=t}}class sr{constructor(){this.elements=new Map}createMessage(){var e,t=[],i=[];for([,e]of this.elements)(0===e.reason?t:i).push(e.resourceLabel);var n=[];return 0<t.length&&n.push(Jt.a({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",t.join(", "))),0<i.length&&n.push(Jt.a({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",i.join(", "))),n.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class ar{constructor(e,t,i,n,o,r,s){this.id=++nr,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=o,this.sourceId=r,this.sourceOrder=s,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new sr),this.removedResources.has(t)||this.removedResources.set(t,new rr(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size)&&(this.invalidatedResources=null):(this.invalidatedResources||(this.invalidatedResources=new sr),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new rr(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - `+this.actual}}class lr{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){var e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(" * [UNDO] "+this._past[t]);for(let t=this._future.length-1;0<=t;t--)e.push(" * [REDO] "+this._future[t]);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){var t=[];for(let i=0,n=this._past.length;i<n;i++)t.push(this._past[i].id);for(let i=this._future.length-1;0<=i;i--)t.push(this._future[i].id);return new er.b(e,t)}restoreSnapshot(e){var t=e.elements.length;let i=!0,n=0,o=-1;for(let l=0,d=this._past.length;l<d;l++,n++){var r=this._past[l];i&&(n>=t||r.id!==e.elements[n])&&(i=!1,o=0),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}let s=-1;for(let l=this._future.length-1;0<=l;l--,n++){var a=this._future[l];i&&(n>=t||a.id!==e.elements[n])&&(i=!1,s=l),i||1!==a.type||a.removeResource(this.resourceLabel,this.strResource,0)}-1!==o&&(this._past=this._past.slice(0,o)),-1!==s&&(this._future=this._future.slice(s+1)),this.versionId++}getElements(){var e=[],t=[];for(const i of this._past)e.push(i.actual);for(const i of this._future)t.push(i.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return 0<this._past.length}hasFutureElements(){return 0<this._future.length}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;0<=i;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;0<=i;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class dr{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,i=this.editStacks.length;t<i;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const hr=new lr("","");hr.locked=!0;let cr=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){var t=[];for(const i of this._editStacks)t.push(i[1].toString())}pushElement(e,t=er.c.None,i=er.d.None){if(0===e.type){var n=ir(e.resource),o=this.getUriComparisonKey(e.resource);this._pushElement(new or(e,n,o,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{var r=new Set,s=[],a=[];for(const t of e.resources){var l=ir(t),d=this.getUriComparisonKey(t);r.has(d)||(r.add(d),s.push(l),a.push(d))}1===s.length?this._pushElement(new or(e,s[0],a[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new ar(e,s,a,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let n=0,o=e.strResources.length;n<o;n++){var t=e.resourceLabels[n],i=e.strResources[n];let o;this._editStacks.has(i)?o=this._editStacks.get(i):(o=new lr(t,i),this._editStacks.set(i,o)),o.pushElement(e)}}getLastElement(e){e=this.getUriComparisonKey(e);return this._editStacks.has(e)&&!(e=this._editStacks.get(e)).hasFutureElements()&&(e=e.getClosestPastElement())?e.actual:null}_splitPastWorkspaceElement(e,t){var i=e.actual.split(),n=new Map;for(const s of i){var o=ir(s.resource),r=this.getUriComparisonKey(s.resource);o=new or(s,o,r,0,0,0,0);n.set(o.strResource,o)}for(const s of e.strResources)t&&t.has(s)||this._editStacks.get(s).splitPastWorkspaceElement(e,n)}_splitFutureWorkspaceElement(e,t){var i=e.actual.split(),n=new Map;for(const s of i){var o=ir(s.resource),r=this.getUriComparisonKey(s.resource);o=new or(s,o,r,0,0,0,0);n.set(o.strResource,o)}for(const s of e.strResources)t&&t.has(s)||this._editStacks.get(s).splitFutureWorkspaceElement(e,n)}removeElements(e){e="string"==typeof e?e:this.getUriComparisonKey(e),this._editStacks.has(e)&&(this._editStacks.get(e).dispose(),this._editStacks.delete(e))}setElementsValidFlag(e,t,i){e=this.getUriComparisonKey(e),this._editStacks.has(e)&&this._editStacks.get(e).setElementsValidFlag(t,i)}createSnapshot(e){var t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).createSnapshot(e):new er.b(e,[])}restoreSnapshot(e){var t,i=this.getUriComparisonKey(e.resource);this._editStacks.has(i)&&((t=this._editStacks.get(i)).restoreSnapshot(e),t.hasPastElements()||t.hasFutureElements()||(t.dispose(),this._editStacks.delete(i)))}getElements(e){return e=this.getUriComparisonKey(e),this._editStacks.has(e)?this._editStacks.get(e).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(var[n,o]of this._editStacks)o=o.getClosestPastElement(),o&&o.sourceId===e&&(!t||o.sourceOrder>t.sourceOrder)&&(t=o,i=n);return[t,i]}canUndo(e){var t;return e instanceof er.d?([,t]=this._findClosestUndoElementWithSource(e.id),!!t):(t=this.getUriComparisonKey(e),!!this._editStacks.has(t)&&this._editStacks.get(t).hasPastElements())}_onError(e,t){Object(Ce.f)(e);for(const i of t.strResources)this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,o){const r=this._acquireLocks(i);let s;try{s=t()}catch(t){return r(),n.dispose(),this._onError(t,e)}return s?s.then(()=>(r(),n.dispose(),o()),t=>(r(),n.dispose(),this._onError(t,e))):(r(),n.dispose(),o())}_invokeWorkspacePrepare(e){return tr(this,void 0,void 0,(function*(){var t;return void 0===e.actual.prepareUndoRedo||void 0===(t=e.actual.prepareUndoRedo())?ve.a.None:t}))}_invokeResourcePrepare(e,t){return 1===e.actual.type&&void 0!==e.actual.prepareUndoRedo&&(e=e.actual.prepareUndoRedo())?Object(ve.g)(e)?t(e):e.then(e=>t(e)):t(ve.a.None)}_getAffectedEditStacks(e){var t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||hr);return new dr(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new ur(this._undo(e,0,!0));for(const o of t.strResources)this.removeElements(o);return this._notificationService.warn(n),new ur}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,Jt.a({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,Jt.a({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));var o=[];for(const s of i.editStacks)s.getClosestPastElement()!==t&&o.push(s.resourceLabel);if(0<o.length)return this._tryToSplitAndUndo(e,t,null,Jt.a({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));var r=[];for(const s of i.editStacks)s.locked&&r.push(s.resourceLabel);return 0<r.length?this._tryToSplitAndUndo(e,t,null,Jt.a({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,Jt.a({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){var n=this._getAffectedEditStacks(t),o=this._checkWorkspaceUndo(e,t,n,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(e.groupId)for(var[,t]of this._editStacks){var i=t.getClosestPastElement();if(i){if(i===e&&(t=t.getSecondClosestPastElement(),t&&t.groupId===e.groupId))return!0;if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,n){return tr(this,void 0,void 0,(function*(){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){var o=yield this._dialogService.show(Vt.a.Info,Jt.a("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[Jt.a({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),Jt.a("nok","Undo this File"),Jt.a("cancel","Cancel")],{cancelId:2});if(2===o.choice)return;if(1===o.choice)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);if(o=this._checkWorkspaceUndo(e,t,i,!1),o)return o.returnValue;n=!0}let r;try{r=yield this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}if(o=this._checkWorkspaceUndo(e,t,i,!0),o)return r.dispose(),o.returnValue;for(const e of i.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,r,()=>this._continueUndoInGroup(t.groupId,n))}))}_resourceUndo(e,t,i){if(t.isValid){var n;if(!e.locked)return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new dr([e]),n,()=>this._continueUndoInGroup(t.groupId,i))));n=Jt.a({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label),this._notificationService.warn(n)}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(var[n,o]of this._editStacks)o=o.getClosestPastElement(),o&&o.groupId===e&&(!t||o.groupOrder>t.groupOrder)&&(t=o,i=n);return[t,i]}_continueUndoInGroup(e,t){if(e)return[,e]=this._findClosestUndoElementInGroup(e),e?this._undo(e,0,t):void 0}undo(e){var t;return e instanceof er.d?([,t]=this._findClosestUndoElementWithSource(e.id),t?this._undo(t,e.id,!1):void 0):"string"==typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(this._editStacks.has(e)){var n=this._editStacks.get(e),o=n.getClosestPastElement();if(o){if(o.groupId){var[r,s]=this._findClosestUndoElementInGroup(o.groupId);if(o!==r&&s)return this._undo(s,t,i)}return o.sourceId===t&&!o.confirmBeforeUndo||i?1===o.type?this._workspaceUndo(e,o,i):this._resourceUndo(n,o,i):this._confirmAndContinueUndo(e,t,o)}}}_confirmAndContinueUndo(e,t,i){return tr(this,void 0,void 0,(function*(){var n=yield this._dialogService.show(Vt.a.Info,Jt.a("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[Jt.a("confirmDifferentSource.yes","Yes"),Jt.a("cancel","Cancel")],{cancelId:1});if(1!==n.choice)return this._undo(e,t,!0)}))}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(var[n,o]of this._editStacks)o=o.getClosestFutureElement(),o&&o.sourceId===e&&(!t||o.sourceOrder<t.sourceOrder)&&(t=o,i=n);return[t,i]}canRedo(e){var t;return e instanceof er.d?([,t]=this._findClosestRedoElementWithSource(e.id),!!t):(t=this.getUriComparisonKey(e),!!this._editStacks.has(t)&&this._editStacks.get(t).hasFutureElements())}_tryToSplitAndRedo(e,t,i,n){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(n),new ur(this._redo(e));for(const o of t.strResources)this.removeElements(o);return this._notificationService.warn(n),new ur}_checkWorkspaceRedo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,Jt.a({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,Jt.a({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));var o=[];for(const s of i.editStacks)s.getClosestFutureElement()!==t&&o.push(s.resourceLabel);if(0<o.length)return this._tryToSplitAndRedo(e,t,null,Jt.a({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));var r=[];for(const s of i.editStacks)s.locked&&r.push(s.resourceLabel);return 0<r.length?this._tryToSplitAndRedo(e,t,null,Jt.a({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,Jt.a({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){var i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return tr(this,void 0,void 0,(function*(){let n;try{n=yield this._invokeWorkspacePrepare(t)}catch(n){return this._onError(n,t)}var o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return n.dispose(),o.returnValue;for(const e of i.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,n,()=>this._continueRedoInGroup(t.groupId))}))}_resourceRedo(e,t){if(t.isValid){var i;if(!e.locked)return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new dr([e]),i,()=>this._continueRedoInGroup(t.groupId))));i=Jt.a({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label),this._notificationService.warn(i)}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(var[n,o]of this._editStacks)o=o.getClosestFutureElement(),o&&o.groupId===e&&(!t||o.groupOrder<t.groupOrder)&&(t=o,i=n);return[t,i]}_continueRedoInGroup(e){if(e)return[,e]=this._findClosestRedoElementInGroup(e),e?this._redo(e):void 0}redo(e){var t;return e instanceof er.d?([,t]=this._findClosestRedoElementWithSource(e.id),t?this._redo(t):void 0):"string"==typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(this._editStacks.has(e)){var t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){var[n,o]=this._findClosestRedoElementInGroup(i.groupId);if(i!==n&&o)return this._redo(o)}return 1===i.type?this._workspaceRedo(e,i):this._resourceRedo(t,i)}}}};cr=Qi([$o(0,st.a),$o(1,ci.a)],cr);class ur{constructor(e){this.returnValue=e}}Object(Yo.b)(er.a,cr),i("675a4");Qi=i("b2cc");var gr=i("7ddc");i("ffac");const pr={buttonBackground:_n.a.fromHex("#0E639C"),buttonHoverBackground:_n.a.fromHex("#006BB3"),buttonForeground:_n.a.white};class mr extends ve.a{constructor(e,t){super(),this._onDidClick=this._register(new j.b),this.options=t||Object.create(null),Object($t.f)(this.options,pr,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),e.appendChild(this._element),this._register(ro.b.addTarget(this._element)),[Y.d.CLICK,ro.a.Tap].forEach(e=>{this._register(Object(Y.i)(this._element,e,e=>{this.enabled?this._onDidClick.fire(e):Y.c.stop(e)}))}),this._register(Object(Y.i)(this._element,Y.d.KEY_DOWN,e=>{var t=new Wt.a(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._element.blur(),i=!0),i&&Y.c.stop(t,!0)})),this._register(Object(Y.i)(this._element,Y.d.MOUSE_OVER,e=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register(Object(Y.i)(this._element,Y.d.MOUSE_OUT,e=>{this.applyStyles()})),this.focusTracker=this._register(Object(Y.Y)(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;(e=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null)&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let t,i;t=this.options.secondary?(i=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(i=this.buttonForeground?this.buttonForeground.toString():"",this.buttonBackground?this.buttonBackground.toString():"");var e=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=i,this._element.style.backgroundColor=t,this._element.style.borderWidth=e?"1px":"",this._element.style.borderStyle=e?"solid":"",this._element.style.borderColor=e}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?Object(Y.R)(this._element,...Object(gr.a)(e)):this._element.textContent=e,"string"==typeof this.options.title?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}var fr=i("3bfb");i("1f26");const _r="infinite",br={progressBarBackground:_n.a.fromHex("#0E70C0")};class vr extends ve.a{constructor(e,t){super(),this.options=t||Object.create(null),Object($t.f)(this.options,br,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this._register(this.showDelayedScheduler=new be.e(()=>Object(Y.W)(this.element),0)),this.create(e)}create(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove("active",_r,"discrete"),this.workedVal=0,this.totalWork=void 0}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add("done"),this.element.classList.contains(_r)?this.bit.style.opacity="0":this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off(),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove("discrete","done"),this.element.classList.add("active",_r),this}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){var e;this.bit&&(e=this.progressBarBackground?this.progressBarBackground.toString():"",this.bit.style.backgroundColor=e)}}$o=i("9c3e"),i("0836");const Cr={},wr=new $o.a("quick-input-button-icon-");function yr(e){if(e){let i;var t=e.dark.toString();return Cr[t]?i=Cr[t]:(i=wr.nextId(),Y.v("."+i,"background-image: "+Y.s(e.light||e.dark)),Y.v(`.vs-dark .${i}, .hc-black .`+i,"background-image: "+Y.s(e.dark)),Cr[t]=i),i}}var Sr=i("cdd6"),Lr=i("d3ef");const xr=Y.a;class kr extends ve.a{constructor(e){super(),this.parent=e,this.onKeyDown=e=>Y.i(this.inputBox.inputElement,Y.d.KEY_DOWN,t=>{e(new Wt.a(t))}),this.onMouseDown=e=>Y.i(this.inputBox.inputElement,Y.d.MOUSE_DOWN,t=>{e(new no.a(t))}),this.onDidChange=e=>this.inputBox.onDidChange(e),this.container=Y.q(this.parent,xr(".quick-input-box")),this.inputBox=this._register(new Lr.b(this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return"password"===this.inputBox.inputElement.type}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===Vt.a.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===Vt.a.Info?1:e===Vt.a.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===Vt.a.Info?1:e===Vt.a.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}var Dr=i("ee56"),Nr=i("c4e3");i("abf2");const Or=Y.a;class Er{constructor(e,t,i){this.os=t,this.keyElements=new Set,this.options=i||Object.create(null),this.labelBackground=this.options.keybindingLabelBackground,this.labelForeground=this.options.keybindingLabelForeground,this.labelBorder=this.options.keybindingLabelBorder,this.labelBottomBorder=this.options.keybindingLabelBottomBorder,this.labelShadow=this.options.keybindingLabelShadow,this.domNode=Y.q(e,Or(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&Er.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){var e,t;this.clear(),this.keybinding?([e,t]=this.keybinding.getParts(),e&&this.renderPart(this.domNode,e,this.matches?this.matches.firstPart:null),t&&(Y.q(this.domNode,Or("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,t,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""):this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode),this.applyStyles(),this.didEverRender=!0}clear(){Y.t(this.domNode),this.keyElements.clear()}renderPart(e,t,i){var n=li.b.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,n.ctrlKey,Boolean(null==i?void 0:i.ctrlKey),n.separator),t.shiftKey&&this.renderKey(e,n.shiftKey,Boolean(null==i?void 0:i.shiftKey),n.separator),t.altKey&&this.renderKey(e,n.altKey,Boolean(null==i?void 0:i.altKey),n.separator),t.metaKey&&this.renderKey(e,n.metaKey,Boolean(null==i?void 0:i.metaKey),n.separator),n=t.keyLabel;n&&this.renderKey(e,n,Boolean(null==i?void 0:i.keyCode),"")}renderKey(e,t,i,n){Y.q(e,this.createKeyElement(t,i?".highlight":"")),n&&Y.q(e,Or("span.monaco-keybinding-key-separator",void 0,n))}renderUnbound(e){Y.q(e,this.createKeyElement(Object(Jt.a)("unbound","Unbound")))}createKeyElement(e,t=""){return t=Or("span.monaco-keybinding-key"+t,void 0,e),this.keyElements.add(t),t}style(e){this.labelBackground=e.keybindingLabelBackground,this.labelForeground=e.keybindingLabelForeground,this.labelBorder=e.keybindingLabelBorder,this.labelBottomBorder=e.keybindingLabelBottomBorder,this.labelShadow=e.keybindingLabelShadow,this.applyStyles()}applyStyles(){var e;if(this.element){for(const t of this.keyElements)this.labelBackground&&(t.style.backgroundColor=null==(e=this.labelBackground)?void 0:e.toString()),this.labelBorder&&(t.style.borderColor=this.labelBorder.toString()),this.labelBottomBorder&&(t.style.borderBottomColor=this.labelBottomBorder.toString()),this.labelShadow&&(t.style.boxShadow="inset 0 -1px 0 "+this.labelShadow);this.labelForeground&&(this.element.style.color=this.labelForeground.toString())}}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&Object($t.d)(e.firstPart,t.firstPart)&&Object($t.d)(e.chordPart,t.chordPart)}}const Ir=new be.b(()=>{var e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}});function Mr(e,t,i){var n=e.toLowerCase(),o=t.toLowerCase();e=function(e,t,i){e=e.toLowerCase(),t=t.toLowerCase();var n=e.startsWith(i);i=t.startsWith(i);if(n!==i)return n?-1:1;if(n&&i){if(e.length<t.length)return-1;if(e.length>t.length)return 1}return 0}(e,t,i);return e||((t=n.endsWith(i))!==o.endsWith(i)?t?-1:1:(e=(e=n)||"",i=(i=o)||"",t=Ir.value.collator.compare(e,i),0!==(e=Ir.value.collatorIsNumeric&&0===t&&e!==i?e<i?-1:1:t)?e:n.localeCompare(o)))}$o=i("6424");var Tr,Ar=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},Rr=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const Pr=Y.a;class Fr{constructor(e){this.hidden=!1,this._onChecked=new j.b,this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class Br{get templateId(){return Br.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=Y.q(e,Pr(".quick-input-list-entry"));e=Y.q(t.entry,Pr("label.quick-input-list-label")),t.toDisposeTemplate.push(Y.o(e,Y.d.CLICK,e=>{t.checkbox.offsetParent||e.preventDefault()})),t.checkbox=Y.q(e,Pr("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(Y.o(t.checkbox,Y.d.CHANGE,e=>{t.element.checked=t.checkbox.checked})),e=Y.q(e,Pr(".quick-input-list-rows"));var i=Y.q(e,Pr(".quick-input-list-row"));e=Y.q(e,Pr(".quick-input-list-row")),t.label=new Nr.a(i,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0}),i=Y.q(i,Pr(".quick-input-list-entry-keybinding")),t.keybinding=new Er(i,we.a),i=Y.q(e,Pr(".quick-input-list-label-meta"));return t.detail=new Dr.a(i,!0),t.separator=Y.q(t.entry,Pr(".quick-input-list-separator")),t.actionBar=new so.a(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,i){i.toDisposeElement=Object(ve.f)(i.toDisposeElement),i.element=e,i.checkbox.checked=e.checked,i.toDisposeElement.push(e.onChecked(e=>i.checkbox.checked=e));var{labelHighlights:n,descriptionHighlights:o,detailHighlights:r}=e,s=Object.create(null),n=(s.matches=n||[],s.descriptionTitle=e.saneDescription,s.descriptionMatches=o||[],s.extraClasses=e.item.iconClasses,s.italic=e.item.italic,s.strikethrough=e.item.strikethrough,i.label.setLabel(e.saneLabel,e.saneDescription,s),i.keybinding.set(e.item.keybinding),i.detail.set(e.saneDetail,r),e.separator&&e.separator.label?(i.separator.textContent=e.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),i.actionBar.clear(),e.item.buttons);n&&n.length?(i.actionBar.push(n.map((t,i)=>{let n=t.iconClass||(t.iconPath?yr(t.iconPath):void 0);return t.alwaysVisible&&(n=n?n+" always-visible":"always-visible"),i=new mo.a("id-"+i,"",n,!0,()=>Rr(this,void 0,void 0,(function*(){e.fireButtonTriggered({button:t,item:e.item})}))),i.tooltip=t.tooltip||"",i}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){i.toDisposeElement=Object(ve.f)(i.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=Object(ve.f)(e.toDisposeElement),e.toDisposeTemplate=Object(ve.f)(e.toDisposeTemplate)}}Br.ID="listelement";class jr{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return Br.ID}}(Xr=Tr=Tr||{})[Xr.First=1]="First",Xr[Xr.Second=2]="Second",Xr[Xr.Last=3]="Last",Xr[Xr.Next=4]="Next",Xr[Xr.Previous=5]="Previous",Xr[Xr.NextPage=6]="NextPage",Xr[Xr.PreviousPage=7]="PreviousPage";class Wr{constructor(e,t,i){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new j.b,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new j.b,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new j.b,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new j.b,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new j.b,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new j.b,this.onKeyDown=this._onKeyDown.event,this._onLeave=new j.b,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=Y.q(this.parent,Pr(".quick-input-list"));e=new jr;var n=new Vr;this.list=i.createList("QuickInput",this.container,e,[new Br],{identityProvider:{getId:e=>e.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:n}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(e=>{var t=new Wt.a(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(we.f?e.metaKey:e.ctrlKey)&&this.list.setFocus(Object(nt.r)(this.list.length));break;case 16:var i=this.list.getFocus();1===i.length&&0===i[0]&&this._onLeave.fire();break;case 18:i=this.list.getFocus(),1===i.length&&i[0]===this.list.length-1&&this._onLeave.fire()}this._onKeyDown.fire(t)})),this.disposables.push(this.list.onMouseDown(e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()})),this.disposables.push(Y.i(this.container,Y.d.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(e=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(e=>{"number"==typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return j.c.map(this.list.onDidChangeFocus,e=>e.elements.map(e=>e.item))}get onDidChangeSelection(){return j.c.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(e=>e.item),event:e.browserEvent}))}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let n=0,o=e.length;n<o;n++){var i=e[n];if(!i.hidden){if(!i.checked)return!1;t=!0}}return t}getCheckedCount(){let e=0;var t=this.elements;for(let i=0,n=t.length;i<n;i++)t[i].checked&&e++;return e}getVisibleCount(){let e=0;var t=this.elements;for(let i=0,n=t.length;i<n;i++)t[i].hidden||e++;return e}setAllVisibleChecked(e){try{this._fireCheckedEvents=!1,this.elements.forEach(t=>{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=Object(ve.f)(this.elementDisposables);const t=e=>this.fireButtonTriggered(e);this.inputElements=e,this.elements=e.reduce((i,n,o)=>{var r,s,a,l,d,h;return"separator"!==n.type&&(r=o&&e[o-1],s=n.label&&n.label.replace(/\r?\n/g," "),a=n.meta&&n.meta.replace(/\r?\n/g," "),l=n.description&&n.description.replace(/\r?\n/g," "),d=n.detail&&n.detail.replace(/\r?\n/g," "),h=n.ariaLabel||[s,l,d].map(e=>Object(fo.c)(e)).filter(e=>!!e).join(", "),i.push(new Fr({index:o,item:n,saneLabel:s,saneMeta:a,saneAriaLabel:h,saneDescription:l,saneDetail:d,labelHighlights:null==(o=n.highlights)?void 0:o.label,descriptionHighlights:null==(s=n.highlights)?void 0:s.description,detailHighlights:null==(a=n.highlights)?void 0:a.detail,checked:!1,separator:r&&"separator"===r.type?r:void 0,fireButtonTriggered:t}))),i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(e=>e.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){this.list.setFocus(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e))),0<e.length&&"number"==typeof(e=this.list.getFocus()[0])&&this.list.reveal(e)}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;var t=new Set;for(const i of e)t.add(i);for(const e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(this.list.length){switch(e=(e=(e=e===Tr.Next&&this.list.getFocus()[0]===this.list.length-1?Tr.First:e)===Tr.Previous&&0===this.list.getFocus()[0]?Tr.Last:e)===Tr.Second&&this.list.length<2?Tr.First:e){case Tr.First:this.list.focusFirst();break;case Tr.Second:this.list.focusNth(1);break;case Tr.Last:this.list.focusLast();break;case Tr.Next:this.list.focusNext();break;case Tr.Previous:this.list.focusPrevious();break;case Tr.NextPage:this.list.focusNextPage();break;case Tr.PreviousPage:this.list.focusPreviousPage()}e=this.list.getFocus()[0],"number"==typeof e&&this.list.reveal(e)}}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${44*Math.floor(e/44)}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let t;this.elements.forEach(i=>{var n=this.matchOnLabel?Object(ye.o)(Object(_o.c)(e,Object(_o.d)(i.saneLabel))):void 0,o=this.matchOnDescription?Object(ye.o)(Object(_o.c)(e,Object(_o.d)(i.saneDescription||""))):void 0,r=this.matchOnDetail?Object(ye.o)(Object(_o.c)(e,Object(_o.d)(i.saneDetail||""))):void 0,s=this.matchOnMeta?Object(ye.o)(Object(_o.c)(e,Object(_o.d)(i.saneMeta||""))):void 0;n||o||r||s?(i.labelHighlights=n,i.descriptionHighlights=o,i.detailHighlights=r,i.hidden=!1):(i.labelHighlights=void 0,i.descriptionHighlights=void 0,i.detailHighlights=void 0,i.hidden=!i.item.alwaysShow),i.separator=void 0,this.sortByLabel||(s=i.index&&this.inputElements[i.index-1],(t=s&&"separator"===s.type?s:t)&&!i.hidden&&(i.separator=t,t=void 0))})}else this.elements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;var t=e.index&&this.inputElements[e.index-1];e.separator=t&&"separator"===t.type?t:void 0});var t=this.elements.filter(e=>!e.hidden);if(this.sortByLabel&&e){const i=e.toLowerCase();t.sort((e,t)=>{return e=e,t=t,n=i,o=e.labelHighlights||[],r=t.labelHighlights||[],!o.length||r.length?o.length||!r.length?0!==o.length||0!==r.length?Mr(e.saneLabel,t.saneLabel,n):0:1:-1;var n,o,r})}return this.elementsToIndexes=t.reduce((e,t,i)=>(e.set(t.item,i),e),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;var e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const i of e)i.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=Object(ve.f)(this.elementDisposables),this.disposables=Object(ve.f)(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}Ar([$o.a],Wr.prototype,"onDidChangeFocus",null),Ar([$o.a],Wr.prototype,"onDidChangeSelection",null);class Vr{getWidgetAriaLabel(){return Object(Jt.a)("quickInput","Quick Input")}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}var Hr=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const zr=Y.a,Ur={iconClass:Object(fo.e)("quick-input-back",fo.b.arrowLeft).classNames,tooltip:Object(Jt.a)("quickInput.back","Back"),handle:-1};class Kr extends ve.a{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=Kr.noPromptMessage,this._severity=Vt.a.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new j.b),this.onDidHideEmitter=this._register(new j.b),this.onDisposeEmitter=this._register(new j.b),this.visibleDisposables=this._register(new ve.b),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){var t=this._ignoreFocusOut!==e&&!we.c;this._ignoreFocusOut=e&&!we.c,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=Sr.c.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){var e;this.visible&&((e=this.getTitle())&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||"&nbsp;"===this.ui.title.innerHTML||(this.ui.title.innerText=" "),e=this.getDescription(),this.ui.description1.textContent!==e&&(this.ui.description1.textContent=e),this.ui.description2.textContent!==e&&(this.ui.description2.textContent=e),this.busy&&!this.busyDelay&&(this.busyDelay=new be.g,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated&&(this.buttonsUpdated=!1,this.ui.leftActionBar.clear(),e=this.buttons.filter(e=>e===Ur),this.ui.leftActionBar.push(e.map((e,t)=>(t=new mo.a("id-"+t,"",e.iconClass||yr(e.iconPath),!0,()=>Hr(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)}))),t.tooltip=e.tooltip||"",t)),{icon:!0,label:!1}),this.ui.rightActionBar.clear(),e=this.buttons.filter(e=>e!==Ur),this.ui.rightActionBar.push(e.map((e,t)=>(t=new mo.a("id-"+t,"",e.iconClass||yr(e.iconPath),!0,()=>Hr(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)}))),t.tooltip=e.tooltip||"",t)),{icon:!0,label:!1})),this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey),e=this.validationMessage||this.noValidationMessage,this._lastValidationMessage!==e&&(this._lastValidationMessage=e,Y.R(this.ui.message,...Object(gr.a)(e))),this._lastSeverity!==this.severity)&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title||(this.step?this.getSteps():"")}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?Object(Jt.a)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){this.ui.inputBox.showDecoration(e),e!==Vt.a.Ignore?(e=this.ui.inputBox.stylesForType(e),this.ui.message.style.color=e.foreground?""+e.foreground:"",this.ui.message.style.backgroundColor=e.background?""+e.background:"",this.ui.message.style.border=e.border?"1px solid "+e.border:"",this.ui.message.style.paddingBottom="4px"):(this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom="")}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}Kr.noPromptMessage=Object(Jt.a)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class qr extends Kr{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new j.b),this.onWillAcceptEmitter=this._register(new j.b),this.onDidAcceptEmitter=this._register(new j.b),this.onDidCustomEmitter=this._register(new j.b),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._itemActivation=this.ui.isScreenReaderOptimized()?Sr.a.NONE:Sr.a.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new j.b),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new j.b),this.onDidTriggerItemButtonEmitter=this._register(new j.b),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e||"",this.update(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?Sr.b:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){!this.autoFocusOnList||this.canSelectMany||this.ui.list.focus(Tr.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{e!==this.value&&(this._value=e,this.ui.list.filter(this.filterValue(this.ui.inputBox.value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(e))})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(Tr.Next),this.canSelectMany&&this.ui.list.domFocus(),Y.c.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(Tr.Previous):this.ui.list.focus(Tr.Last),this.canSelectMany&&this.ui.list.domFocus(),Y.c.stop(e,!0);break;case 12:this.ui.list.focus(Tr.NextPage),this.canSelectMany&&this.ui.list.domFocus(),Y.c.stop(e,!0);break;case 11:this.ui.list.focus(Tr.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),Y.c.stop(e,!0);break;case 17:this._canAcceptInBackground&&this.ui.inputBox.isSelectionAtEnd()&&this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Tr.First),Y.c.stop(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Tr.Last),Y.c.stop(e,!0))}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{!this.canSelectMany&&this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Object(nt.h)(e,this._activeItems,(e,t)=>e===t)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&Object(nt.h)(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&1===t.button))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{!this.canSelectMany||this.selectedItemsToConfirm!==this._selectedItems&&Object(nt.h)(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return Y.i(this.ui.container,Y.d.KEY_UP,e=>{if(!this.canSelectMany&&this._quickNavigate){const t=new Wt.a(e),i=t.keyCode;this._quickNavigate.keybindings.some(e=>{var[e,n]=e.getParts();return!(n||(e.shiftKey&&4===i?t.ctrlKey||t.altKey||t.metaKey:!(e.altKey&&6===i||e.ctrlKey&&5===i||e.metaKey&&57===i)))})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}})}update(){if(this.visible){var e=!!this._hideInput&&0<this._items.length,t=(e=(this.ui.container.classList.toggle("hidden-input",e&&!this.description),{title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!e,progressBar:!e,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton}),this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ariaLabel||this.placeholder||qr.DEFAULT_ARIA_LABEL);if(this.ui.inputBox.ariaLabel!==t&&(this.ui.inputBox.ariaLabel=t),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case Sr.a.NONE:this._itemActivation=Sr.a.FIRST;break;case Sr.a.SECOND:this.ui.list.focus(Tr.Second),this._itemActivation=Sr.a.FIRST;break;case Sr.a.LAST:this.ui.list.focus(Tr.Last),this._itemActivation=Sr.a.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems)&&(this.activeItemsToConfirm=null),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems)&&(this.selectedItemsToConfirm=null),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),e.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Tr.First))}}}qr.DEFAULT_ARIA_LABEL=Object(Jt.a)("quickInputBox.ariaLabel","Type to narrow down results.");class $r extends ve.a{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new j.b),this.onDidCustomEmitter=this._register(new j.b),this.onDidTriggerButtonEmitter=this._register(new j.b),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new j.b),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new j.b),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){var e=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};this._register(Y.i(window,Y.d.KEY_DOWN,e,!0)),this._register(Y.i(window,Y.d.KEY_UP,e,!0)),this._register(Y.i(window,Y.d.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=Y.q(this.parentElement,zr(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";var t=Y.w(e),i=Y.q(e,zr(".quick-input-titlebar")),n=this._register(new so.a(i)),o=(n.domNode.classList.add("quick-input-left-action-bar"),Y.q(i,zr(".quick-input-title"))),r=this._register(new so.a(i)),s=(r.domNode.classList.add("quick-input-right-action-bar"),Y.q(e,zr(".quick-input-description"))),a=Y.q(e,zr(".quick-input-header"));const l=Y.q(a,zr("input.quick-input-check-all"));l.type="checkbox",this._register(Y.o(l,Y.d.CHANGE,e=>{var t=l.checked;C.setAllVisibleChecked(t)})),this._register(Y.i(l,Y.d.CLICK,e=>{(e.x||e.y)&&u.setFocus()}));var d=Y.q(a,zr(".quick-input-description")),h=Y.q(a,zr(".quick-input-and-message")),c=Y.q(h,zr(".quick-input-filter"));const u=this._register(new kr(c));u.setAttribute("aria-describedby",this.idPrefix+"message");var g=Y.q(c,zr(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new fr.a(g,{countFormat:Object(Jt.a)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")});var m=Y.q(c,zr(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new fr.a(m,{countFormat:Object(Jt.a)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")});var _=Y.q(a,zr(".quick-input-action")),b=new mr(_),v=(a=(b.label=Object(Jt.a)("ok","OK"),this._register(b.onDidClick(e=>{this.onDidAcceptEmitter.fire()})),Y.q(a,zr(".quick-input-action"))),new mr(a));v.label=Object(Jt.a)("custom","Custom"),this._register(v.onDidClick(e=>{this.onDidCustomEmitter.fire()})),h=Y.q(h,zr(`#${this.idPrefix}message.quick-input-message`));const C=this._register(new Wr(e,this.idPrefix+"list",this.options));this._register(C.onChangedAllVisibleChecked(e=>{l.checked=e})),this._register(C.onChangedVisibleCount(e=>{p.setCount(e)})),this._register(C.onChangedCheckedCount(e=>{f.setCount(e)})),this._register(C.onLeave(()=>{setTimeout(()=>{u.setFocus(),this.controller instanceof qr&&this.controller.canSelectMany&&C.clearFocus()},0)})),this._register(C.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));var w=new vr(e),y=(w.getContainer().classList.add("quick-input-progress"),Y.Y(e));return this._register(y),this._register(Y.i(e,Y.d.FOCUS,e=>{this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0},!0)),this._register(y.onDidBlur(()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(Sr.c.Blur),this.previousFocusElement=void 0})),this._register(Y.i(e,Y.d.FOCUS,e=>{u.setFocus()})),this._register(Y.i(e,Y.d.KEY_DOWN,t=>{var i,n=new Wt.a(t);switch(n.keyCode){case 3:Y.c.stop(t,!0),this.onDidAcceptEmitter.fire();break;case 9:Y.c.stop(t,!0),this.hide(Sr.c.Gesture);break;case 2:n.altKey||n.ctrlKey||n.metaKey||(i=[".action-label.codicon"],e.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.isDisplayed()&&i.push(".monaco-list"),i=e.querySelectorAll(i.join(", ")),n.shiftKey&&n.target===i[0]?(Y.c.stop(t,!0),i[i.length-1].focus()):n.shiftKey||n.target!==i[i.length-1]||(Y.c.stop(t,!0),i[0].focus()))}})),this.ui={container:e,styleSheet:t,leftActionBar:n,titleBar:i,title:o,description1:s,description2:d,rightActionBar:r,checkAll:l,filterContainer:c,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:_,ok:b,message:h,customButtonContainer:a,customButton:v,list:C,progressBar:w,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setComboboxAccessibility:e=>this.setComboboxAccessibility(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e)},this.updateStyles(),this.ui}pick(e,t={},i=B.a.None){return new Promise((n,o)=>{let r=e=>{r=n,t.onKeyMods&&t.onKeyMods(s.keyMods),n(e)};if(i.isCancellationRequested)return void r(void 0);const s=this.createQuickPick();let a;const l=[s,s.onDidAccept(()=>{var e;s.canSelectMany?(r(s.selectedItems.slice()),s.hide()):(e=s.activeItems[0])&&(r(e),s.hide())}),s.onDidChangeActive(e=>{e=e[0],e&&t.onDidFocus&&t.onDidFocus(e)}),s.onDidChangeSelection(e=>{s.canSelectMany||(e=e[0])&&(r(e),s.hide())}),s.onDidTriggerItemButton(e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},e),{removeItem:()=>{var t=s.items.indexOf(e.item);if(-1!==t){var i=s.items.slice();const e=i.splice(t,1);t=s.activeItems.filter(t=>t!==e[0]),s.items=i,t&&(s.activeItems=t)}}}))),s.onDidChangeValue(e=>{!a||e||1===s.activeItems.length&&s.activeItems[0]===a||(s.activeItems=[a])}),i.onCancellationRequested(()=>{s.hide()}),s.onDidHide(()=>{Object(ve.f)(l),r(void 0)})];s.title=t.title,s.canSelectMany=!!t.canPickMany,s.placeholder=t.placeHolder,s.ignoreFocusOut=!!t.ignoreFocusLost,s.matchOnDescription=!!t.matchOnDescription,s.matchOnDetail=!!t.matchOnDetail,s.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,s.autoFocusOnList=void 0===t.autoFocusOnList||t.autoFocusOnList,s.quickNavigate=t.quickNavigate,s.contextKey=t.contextKey,s.busy=!0,Promise.all([e,t.activeItem]).then(([e,t])=>{a=t,s.busy=!1,s.items=e,s.canSelectMany&&(s.selectedItems=e.filter(e=>"separator"!==e.type&&e.picked)),a&&(s.activeItems=[a])}),s.show(),Promise.resolve(e).then(void 0,e=>{o(e),s.hide()})})}createQuickPick(){var e=this.getUI();return new qr(e)}show(e){var t=this.getUI(),i=(this.onShowEmitter.fire(),this.controller);this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Vt.a.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),Y.R(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="",e=this.options.backKeybindingLabel();Ur.tooltip=e?Object(Jt.a)("quickInput.backWithKeybinding","Back ({0})",e):Object(Jt.a)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){var t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){var t;e!==this.comboboxAccessibility&&(t=this.getUI(),this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant")))}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t,i=this.controller;i&&(t=!(null!=(t=this.ui)&&t.container.contains(document.activeElement)),this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",t||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),i.didHide(e))}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){var e,t;this.ui&&(this.ui.container.style.top=this.titleBarOffset+"px",e=this.ui.container.style,t=Math.min(.62*this.dimension.width,$r.MAX_WIDTH),e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height))}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){var e,t,i,n,o;this.ui&&(({quickInputTitleBackground:n,quickInputBackground:o,quickInputForeground:e,contrastBorder:t,widgetShadow:i}=this.styles.widget),this.ui.titleBar.style.backgroundColor=n?n.toString():"",this.ui.container.style.backgroundColor=o?o.toString():"",this.ui.container.style.color=e?e.toString():"",this.ui.container.style.border=t?"1px solid "+t:"",this.ui.container.style.boxShadow=i?"0 0 8px 2px "+i:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list),n=[],this.styles.list.pickerGroupBorder&&n.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&n.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(n.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&n.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&n.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&n.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&n.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&n.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),n.push("}")),(o=n.join("\n"))!==this.ui.styleSheet.textContent)&&(this.ui.styleSheet.textContent=o)}}$r.MAX_WIDTH=600;var Gr=i("0bfb"),Zr=i("2f1e"),Yr=i("66bd"),Xr=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s};Ar=function(e,t){return function(i,n){t(i,n,e)}};let Qr=class extends ve.a{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=cn.a.as(Zr.b.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){const[n,o]=this.getOrInstantiateProvider(e);var r=this.visibleQuickAccess,s=null==r?void 0:r.descriptor;if(!r||!o||s!==o){if(o&&(null==i||!i.preserveValue)){let t=void 0;(t=r&&s&&s!==o&&(s=r.value.substr(s.prefix.length))?""+o.prefix+s:t)||((s=null==n?void 0:n.defaultFilterValue)===Zr.a.LAST?t=this.lastAcceptedPickerValues.get(o):"string"==typeof s&&(t=""+o.prefix+s)),"string"==typeof t&&(e=t)}const a=new ve.b,l=a.add(this.quickInputService.createQuickPick());l.value=e,this.adjustValueSelection(l,o,i),l.placeholder=null===o||void 0===o?void 0:o.placeholder,l.quickNavigate=null==i?void 0:i.quickNavigateConfiguration,l.hideInput=!!l.quickNavigate&&!r,("number"==typeof(null==i?void 0:i.itemActivation)||null!=i&&i.quickNavigateConfiguration)&&(l.itemActivation=null!=(s=null==i?void 0:i.itemActivation)?s:Yr.b.SECOND),l.contextKey=null===o||void 0===o?void 0:o.contextKey,l.filterValue=e=>e.substring(o?o.prefix.length:0),null!==o&&void 0!==o&&o.placeholder&&(l.ariaLabel=null===o||void 0===o?void 0:o.placeholder);let d=void 0,h=void 0;t&&(d=new Promise(e=>h=e),a.add(Object(Gr.a)(l.onWillAccept)(e=>{e.veto(),l.hide()}))),a.add(this.registerPickerListeners(l,n,o,e));const c=a.add(new B.b);return n&&a.add(n.provide(l,c.token)),Object(Gr.a)(l.onDidHide)(()=>{0===l.selectedItems.length&&c.cancel(),a.dispose(),null!==h&&void 0!==h&&h(l.selectedItems)}),l.show(),t?d:void 0}e===o.prefix||null!=i&&i.preserveValue||(r.picker.value=e),this.adjustValueSelection(r.picker,o,i)}adjustValueSelection(e,t,i){let n;n=null!=i&&i.preserveValue?[e.value.length,e.value.length]:[null!=(i=null==t?void 0:t.prefix.length)?i:0,e.value.length],e.valueSelection=n}registerPickerListeners(e,t,i,n){var o=new ve.b;const r=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return o.add(Object(ve.i)(()=>{r===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),o.add(e.onDidChangeValue(e=>{var[i]=this.getOrInstantiateProvider(e);i!==t?this.show(e,{preserveValue:!0}):r.value=e})),i&&o.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(i,e.value)})),o}getOrInstantiateProvider(e){if(e=this.registry.getQuickAccessProvider(e),!e)return[void 0,void 0];let t=this.mapProviderToDescriptor.get(e);return t||(t=this.instantiationService.createInstance(e.ctor),this.mapProviderToDescriptor.set(e,t)),[t,e]}};Qr=Xr([Ar(0,Yr.a),Ar(1,Fi.a)],Qr);$o=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},Xr=function(e,t){return function(i,n){t(i,n,e)}},Ar=class extends ji.c{constructor(e,t,i,n,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=n,this.layoutService=o,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(Qr))),this._quickAccess}createController(e=this.layoutService,t){var i={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),returnFocus:()=>e.focus(),createList:(e,t,i,n,o)=>this.instantiationService.createInstance(jo.d,e,t,i,n,o),styles:this.computeStyles()};const n=this._register(new $r(Object.assign(Object.assign({},i),t)));return n.layout(e.dimension,null!=(t=null==(i=e.offset)?void 0:i.top)?t:0),this._register(e.onDidLayout(t=>n.layout(t,null!=(t=null==(t=e.offset)?void 0:t.top)?t:0))),this._register(n.onShow(()=>this.resetContextKeys())),this._register(n.onHide(()=>this.resetContextKeys())),n}setContextKey(e){let t;e&&!(t=this.contexts.get(e))&&(t=new ti.c(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t)),t&&t.get()||(this.resetContextKeys(),t&&t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},i=B.a.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},Object(Do.d)(this.theme,{quickInputBackground:Dn.qc,quickInputForeground:Dn.rc,quickInputTitleBackground:Dn.vc,contrastBorder:Dn.h,widgetShadow:Dn.Nc})),inputBox:Object(Do.d)(this.theme,{inputForeground:Dn.lb,inputBackground:Dn.jb,inputBorder:Dn.kb,inputValidationInfoBackground:Dn.pb,inputValidationInfoForeground:Dn.rb,inputValidationInfoBorder:Dn.qb,inputValidationWarningBackground:Dn.sb,inputValidationWarningForeground:Dn.ub,inputValidationWarningBorder:Dn.tb,inputValidationErrorBackground:Dn.mb,inputValidationErrorForeground:Dn.ob,inputValidationErrorBorder:Dn.nb}),countBadge:Object(Do.d)(this.theme,{badgeBackground:Dn.c,badgeForeground:Dn.d,badgeBorder:Dn.h}),button:Object(Do.d)(this.theme,{buttonForeground:Dn.f,buttonBackground:Dn.e,buttonHoverBackground:Dn.g,buttonBorder:Dn.h}),progressBar:Object(Do.d)(this.theme,{progressBarBackground:Dn.pc}),keybindingLabel:Object(Do.d)(this.theme,{keybindingLabelBackground:Dn.vb,keybindingLabelForeground:Dn.yb,keybindingLabelBorder:Dn.wb,keybindingLabelBottomBorder:Dn.xb,keybindingLabelShadow:Dn.Nc}),list:Object(Do.d)(this.theme,{listBackground:Dn.qc,listInactiveFocusForeground:Dn.tc,listInactiveSelectionIconForeground:Dn.uc,listInactiveFocusBackground:Dn.sc,listFocusOutline:Dn.b,listInactiveFocusOutline:Dn.b,pickerGroupBorder:Dn.kc,pickerGroupForeground:Dn.lc})}}};var Jr,es=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3<r?o(t,i,s):o(t,i))||s);return 3<r&&s&&Object.defineProperty(t,i,s),s},ts=function(e,t){return function(i,n){t(i,n,e)}};let is=class extends($o([Xr(0,Fi.a),Xr(1,ti.b),Xr(2,ji.b),Xr(3,Wi.b),Xr(4,Eo)],Ar)){constructor(e,t,i,n,o,r){super(t,i,n,o,r),this.host=void 0;const s=os.get(e);this.host={_serviceBrand:void 0,get container(){return s.widget.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus()}}createController(){return super.createController(this.host)}},ns=(is=es([ts(1,Fi.a),ts(2,ti.b),ts(3,ji.b),ts(4,Wi.b),ts(5,Eo)],is),class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(is,e);this.mapEditorToService.set(e,t),Object(Gr.a)(e.onDidDispose)(()=>{i.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},i=B.a.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}});ns=es([ts(0,Fi.a),ts(1,Z.a)],ns);class os{constructor(e){this.editor=e,this.widget=new rs(this.editor)}static get(e){return e.getContribution(os.ID)}dispose(){this.widget.dispose()}}os.ID="editor.controller.quickInput";class rs{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return rs.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}rs.ID="editor.contrib.quickInputWidget",Object(Qi.l)(os.ID,os);{var ss=Jr=Jr||{};const e=new Ro.a;class t{constructor(e,t){this._serviceId=e,this._factory=t,this._value=null}get id(){return this._serviceId}get(t){if(!this._value){if(t&&(this._value=t[this._serviceId.toString()]),this._value||(this._value=this._factory(t)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");e.set(this._serviceId,this._value)}return this._value}}ss.LazyStaticService=t;let i=[];function as(e,n){return e=new t(e,n),i.push(e),e}ss.init=function(e){let t=new Ro.a;for(var[n,o]of Object(Yo.a)())t.set(n,o);for(var r in e)e.hasOwnProperty(r)&&t.set(Object(Fi.c)(r),e[r]);i.forEach(i=>t.set(i.id,i.get(e)));var s=new Fo(t,!0);return t.set(Fi.a,s),[t,s]},ss.instantiationService=as(Fi.a,()=>new Fo(e,!0));const n=new Si;ss.configurationService=as(qt.a,()=>n),ss.resourceConfigurationService=as(re.a,()=>new Li(n)),ss.resourcePropertiesService=as(re.b,()=>new xi(n)),ss.contextService=as(ui.a,()=>new Di),ss.labelService=as(rt.a,()=>new Ei),ss.telemetryService=as(io.a,()=>new ki),ss.dialogService=as(st.a,()=>new bi),ss.notificationService=as(ci.a,()=>new vi),ss.markerService=as(Wo.b,()=>new zo),ss.modeService=as(fe.a,e=>new mn),ss.standaloneThemeService=as(Ai.a,()=>new Hn),ss.logService=as(ot.b,()=>new ot.d(new ot.a)),ss.undoRedoService=as(er.a,e=>new cr(ss.dialogService.get(e),ss.notificationService.get(e))),ss.modelService=as(it.a,e=>new fn.a(ss.configurationService.get(e),ss.resourcePropertiesService.get(e),ss.standaloneThemeService.get(e),ss.logService.get(e),ss.undoRedoService.get(e))),ss.markerDecorationsService=as(qi.a,e=>new Zo(ss.modelService.get(e),ss.markerService.get(e))),ss.contextKeyService=as(ti.b,e=>new Jn(ss.configurationService.get(e))),ss.codeEditorService=as(Z.a,e=>new Ji(null,ss.contextKeyService.get(e),ss.standaloneThemeService.get(e))),ss.editorProgressService=as(Hi.a,()=>new _i),ss.storageService=as(Uo.a,()=>new Uo.b),ss.editorWorkerService=as(me.a,e=>new dt(ss.modelService.get(e),ss.resourceConfigurationService.get(e),ss.logService.get(e)))}class ls extends ve.a{constructor(e,t){super();const[i,n]=Jr.init(t),o=(this._serviceCollection=i,this._instantiationService=n,this.get(qt.a)),r=this.get(ci.a),s=this.get(io.a),a=this.get(ji.b),l=this.get(ot.b),d=this.get(ti.b);var h=(e,i)=>{let n=null;return n=(n=t?t[e.toString()]:n)||i(),this._serviceCollection.set(e,n),n};h(Wi.b,()=>new Xo(d,o)),h(jo.a,()=>new jo.b(a));let c=h(ie.b,()=>new Ci(this._instantiationService)),u=h(Bi.a,()=>this._register(new wi(d,c,s,r,l,e))),g=h(Eo,()=>new Ii(Jr.codeEditorService.get(Z.a),e)),p=(h(Yr.a,()=>new ns(n,Jr.codeEditorService.get(Z.a))),h(Pi.b,()=>this._register(new Io(g))));h(Vi.a,()=>new Jo),h(Pi.a,()=>{var e=new Oo(s,r,p,u,a);return e.configure({blockMouse:!1}),this._register(e)}),h(Ri.a,()=>new Ko(c)),h(zt.a,()=>new Oi(Jr.modelService.get(it.a)))}get(e){var t=this._serviceCollection.get(e);if(t)return t;throw new Error("Missing service "+e)}set(e,t){this._serviceCollection.set(e,t)}has(e){return this._serviceCollection.has(e)}}var ds=i("1ddc");function hs(e,t,i){e=new ls(e,t);let n=null;return e.has(_e.a)||(n=new fi(Jr.modelService.get()),e.set(_e.a,n)),e.has(ne.a)||e.set(ne.a,new de(e.get(Z.a),e.get(ie.b))),t=i(e),n&&n.setEditor(t),t}function cs(e,t,i){return hs(e,i||{},i=>new rn(e,t,i,i.get(Fi.a),i.get(Z.a),i.get(ie.b),i.get(ti.b),i.get(Bi.a),i.get(Pi.b),i.get(Ai.a),i.get(ci.a),i.get(qt.a),i.get(Wi.b),i.get(it.a),i.get(fe.a)))}function us(e){return Jr.codeEditorService.get().onCodeEditorAdd(t=>{e(t)})}function gs(e,t,i){return hs(e,i||{},i=>new sn(e,t,i,i.get(Fi.a),i.get(ti.b),i.get(Bi.a),i.get(Pi.b),i.get(me.a),i.get(Z.a),i.get(Ai.a),i.get(ci.a),i.get(qt.a),i.get(Pi.a),i.get(Hi.a),i.get(Vi.a)))}function ps(e,t){return new he.a(e,t)}function ms(e,t,i){return an(Jr.modelService.get(),Jr.modeService.get(),e,t,i)}function fs(e,t){Jr.modelService.get().setMode(e,Jr.modeService.get().create(t))}function _s(e,t,i){e&&Jr.markerService.get().changeOne(t,e.uri,i)}function bs(e){return Jr.markerService.get().read(e)}function vs(e){return Jr.markerService.get().onMarkerChanged(e)}function Cs(e){return Jr.modelService.get().getModel(e)}function ws(){return Jr.modelService.get().getModels()}function ys(e){return Jr.modelService.get().onModelAdded(e)}function Ss(e){return Jr.modelService.get().onModelRemoved(e)}function Ls(e){return Jr.modelService.get().onModelModeChanged(t=>{e({model:t.model,oldLanguage:t.oldModeId})})}function xs(e){return t=Jr.modelService.get(),e=e,new ft(t,e);var t}function ks(e,t){var i=Jr.standaloneThemeService.get();return i.registerEditorContainer(e),Ft.colorizeElement(i,Jr.modeService.get(),e,t)}function Ds(e,t,i){return Jr.standaloneThemeService.get().registerEditorContainer(document.body),Ft.colorize(Jr.modeService.get(),e,t,i)}function Ns(e,t,i=4){return Jr.standaloneThemeService.get().registerEditorContainer(document.body),Ft.colorizeModelLine(e,t,i)}function Os(e,t){Jr.modeService.get().triggerMode(t),i=t;var i,n=ge.F.get(i)||{getInitialState:()=>pe.c,tokenize:(e,t,n,o)=>Object(pe.d)(i,e,n,o)},o=Object(Te.Q)(e),r=[];let s=n.getInitialState();for(let l=0,d=o.length;l<d;l++){var a=o[l];a=n.tokenize(a,!0,s,0);r[l]=a.tokens,s=a.endState}return r}function Es(e,t){Jr.standaloneThemeService.get().defineTheme(e,t)}function Is(e){Jr.standaloneThemeService.get().setTheme(e)}function Ms(){Object(ds.b)()}function Ts(e,t){return ie.a.registerCommand({id:e,handler:t})}function As(e,t){return"boolean"==typeof e?e:t}function Rs(e,t){return"string"==typeof e?e:t}function Ps(e,t=!1){const i=function(e){var t={};for(const i of e)t[i]=!0;return t}(e=t?e.map((function(e){return e.toLowerCase()})):e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function Fs(e,t){t=t.replace(/@@/g,"");let i,n=0;for(;i=!1,t=t.replace(/@(\w+)/g,(function(n,o){i=!0;let r="";if("string"==typeof e[o])r=e[o];else{if(!(e[o]&&e[o]instanceof RegExp))throw void 0===e[o]?xt(e,"language definition does not contain attribute '"+o+"', used at: "+t):xt(e,"attribute reference '"+o+"' must be a string, used at: "+t);r=e[o].source}return r?"(?:"+r+")":""})),n++,i&&n<5;);t=t.replace(/\x01/g,"@");var o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,o)}function Bs(e,t,i,n){let o=-1,r=i;var s=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(o=parseInt(s[3]),s[2])&&(o+=100),r=s[4]);let a,l="~",d=r;if(r&&0!==r.length?/^\w*$/.test(d)?l="==":(s=r.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(l=s[1],d=s[2]):(l="!=",d=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(d))if("@"===l||"!@"===l){if(s=e[d],!s)throw xt(e,"the @ match target '"+d+"' is not defined, in rule: "+t);if(!function(e,t){if(t&&Array.isArray(t)){for(const i of t)if(!e(i))return;return 1}}((function(e){return"string"==typeof e}),s))throw xt(e,"the @ match target '"+d+"' must be an array of strings, in rule: "+t);let i=Ps(s,e.ignoreCase);a=function(e){return"@"===l?i(e):!i(e)}}else if("~"===l||"!~"===l)if(d.indexOf("$")<0){let t=Fs(e,"^"+d+"$");a=function(e){return"~"===l?t.test(e):!t.test(e)}}else a=function(t,i,n,o){return Fs(e,"^"+kt(e,d,i,n,o)+"$").test(t)};else if(d.indexOf("$")<0){let t=St(e,d);a=function(e){return"=="===l?e===t:e!==t}}else{let t=St(e,d);a=function(i,n,o,r,s){return n=kt(e,t,n,o,r),"=="===l?i===n:i!==n}}else{let t=Ps(d.split("|"),e.ignoreCase);a=function(e){return"~"===l?t(e):!t(e)}}return-1===o?{name:i,value:n,test:function(e,t,i,n){return a(e,e,t,i,n)}}:{name:i,value:n,test:function(e,t,i,n){var r=function(e,t,i,n){return n<0?e:n<t.length?t[n]:100<=n&&(n-=100,e=i.split("."),e.unshift(i),n<e.length)?e[n]:null}(e,t,i,o);return a(r||"",e,t,i,n)}}}function js(e,t,i){if(i){if("string"==typeof i)return i;if(i.token||""===i.token){if("string"!=typeof i.token)throw xt(e,"a 'token' attribute must be of type string, in rule: "+t);var n={token:i.token};if(0<=i.token.indexOf("$")&&(n.tokenSubst=!0),"string"==typeof i.bracket)if("@open"===i.bracket)n.bracket=1;else{if("@close"!==i.bracket)throw xt(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);n.bracket=-1}if(i.next){if("string"!=typeof i.next)throw xt(e,"the next state must be a string value in rule: "+t);{let o=i.next;if(!/^(@pop|@push|@popall)$/.test(o)&&(o="@"===o[0]?o.substr(1):o).indexOf("$")<0&&!function(e,t){let i=t;for(;i&&0<i.length;){if(e.stateNames[i])return 1;var n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}}(e,kt(e,o,"",[],"")))throw xt(e,"the next state '"+i.next+"' is not defined in rule: "+t);n.next=o}}return"number"==typeof i.goBack&&(n.goBack=i.goBack),"string"==typeof i.switchTo&&(n.switchTo=i.switchTo),"string"==typeof i.log&&(n.log=i.log),"string"==typeof i.nextEmbedded&&(n.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),n}if(Array.isArray(i)){var o=[];for(let n=0,r=i.length;n<r;n++)o[n]=js(e,t,i[n]);return{group:o}}if(i.cases){let n=[];for(var r in i.cases){var s;i.cases.hasOwnProperty(r)&&(s=js(e,t,i.cases[r]),"@default"===r||"@"===r||""===r?n.push({test:void 0,value:s,name:r}):"@eos"===r?n.push({test:function(e,t,i,n){return n},value:s,name:r}):n.push(Bs(e,t,r,s)))}const o=e.defaultToken;return{test:function(e,t,i,r){for(const o of n)if(!o.test||o.test(e,t,i,r))return o.value;return o}}}throw xt(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}class Ws{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let i;if("string"==typeof t)i=t;else{if(!(t instanceof RegExp))throw xt(e,"rules must start with a match string or regular expression: "+this.name);i=t.source}this.matchOnlyAtLineStart=0<i.length&&"^"===i[0],this.name=this.name+": "+i,this.regex=Fs(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=js(e,this.name,t)}}function Vs(e,t){if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");let i={},n=(i.languageId=e,i.includeLF=As(t.includeLF,!1),i.noThrow=!1,i.maxStack=100,i.start="string"==typeof t.start?t.start:null,i.ignoreCase=As(t.ignoreCase,!1),i.unicode=As(t.unicode,!1),i.tokenPostfix=Rs(t.tokenPostfix,"."+i.languageId),i.defaultToken=Rs(t.defaultToken,"source"),i.usesEmbedded=!1,t);if(n.languageId=e,n.includeLF=i.includeLF,n.ignoreCase=i.ignoreCase,n.unicode=i.unicode,n.noThrow=i.noThrow,n.usesEmbedded=i.usesEmbedded,n.stateNames=t.tokenizer,n.defaultToken=i.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw xt(i,"a language definition must define the 'tokenizer' attribute as an object");for(var o in i.tokenizer=[],t.tokenizer){var r;t.tokenizer.hasOwnProperty(o)&&(i.start||(i.start=o),r=t.tokenizer[o],i.tokenizer[o]=new Array,function e(o,r,s){for(const d of s){let s=d.include;if(s){if("string"!=typeof s)throw xt(i,"an 'include' attribute must be a string at: "+o);if("@"===s[0]&&(s=s.substr(1)),!t.tokenizer[s])throw xt(i,"include target '"+s+"' is not defined at: "+o);e(o+"."+s,r,t.tokenizer[s])}else{var a=new Ws(o);if(Array.isArray(d)&&1<=d.length&&d.length<=3)if(a.setRegex(n,d[0]),3<=d.length)if("string"==typeof d[1])a.setAction(n,{token:d[1],next:d[2]});else{if("object"!=typeof d[1])throw xt(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+o);var l=d[1];l.next=d[2],a.setAction(n,l)}else a.setAction(n,d[1]);else{if(!d.regex)throw xt(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+o);d.name&&"string"==typeof d.name&&(a.name=d.name),d.matchOnlyAtStart&&(a.matchOnlyAtLineStart=As(d.matchOnlyAtLineStart,!1)),a.setRegex(n,d.regex),a.setAction(n,d.action)}r.push(a)}}}("tokenizer."+o,i.tokenizer[o],r))}if(i.usesEmbedded=n.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw xt(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];var s,a=[];for(s of t.brackets){let e=s;if((e=e&&Array.isArray(e)&&3===e.length?{token:e[2],open:e[0],close:e[1]}:e).open===e.close)throw xt(i,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof e.open||"string"!=typeof e.token||"string"!=typeof e.close)throw xt(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");a.push({token:e.token+i.tokenPostfix,open:St(i,e.open),close:St(i,e.close)})}return i.brackets=a,i.noThrow=!0,i}function Hs(e){hn.a.registerLanguage(e)}function zs(){let e=[];return e.concat(hn.a.getLanguages())}function Us(e){return e=Jr.modeService.get().getLanguageIdentifier(e),e?e.id:0}function Ks(e,t){let i=Jr.modeService.get().onDidCreateMode(n=>{n.getId()===e&&(i.dispose(),t())});return i}function qs(e,t){var i=Jr.modeService.get().getLanguageIdentifier(e);if(i)return Ie.a.register(i,t,100);throw new Error("Cannot set configuration for unknown language "+e)}class $s{constructor(e,t){this._languageIdentifier=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i,n){if("function"==typeof this._actual.tokenize)return Gs.adaptTokenize(this._languageIdentifier.language,this._actual,e,i,n);throw new Error("Not supported!")}tokenize2(e,t,i){return e=this._actual.tokenizeEncoded(e,i),new K.c(e.tokens,e.endState)}}class Gs{constructor(e,t,i){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=i}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t,i){var n=[];let o=0;for(let s=0,a=e.length;s<a;s++){var r=e[s];let a=r.startIndex;0===s?a=0:a<o&&(a=o),n[s]=new K.a(a+i,r.scopes,t),o=a}return n}static adaptTokenize(e,t,i,n,o){let r;return t=t.tokenize(i,n),i=Gs._toClassicTokens(t.tokens,e,o),r=t.endState.equals(n)?n:t.endState,new K.b(i,r)}tokenize(e,t,i,n){return Gs.adaptTokenize(this._languageIdentifier.language,this._actual,e,i,n)}_toBinaryTokens(e,t){var i=this._languageIdentifier.id,n=this._standaloneThemeService.getColorTheme().tokenTheme;let o=[],r=0,s=0;for(let h=0,c=e.length;h<c;h++){var a=e[h],l=n.match(i,a.scopes);if(!(0<r&&o[r-1]===l)){let e=a.startIndex;0===h?e=0:e<s&&(e=s),o[r++]=e+t,o[r++]=l,s=e}}var d=new Uint32Array(r);for(let h=0;h<r;h++)d[h]=o[h];return d}tokenize2(e,t,i,n){let o;return e=this._actual.tokenize(e,i),n=this._toBinaryTokens(e.tokens,n),o=e.endState.equals(i)?i:e.endState,new K.c(n,o)}}function Zs(e){return e&&"function"==typeof e.then}function Ys(e){if(e){var t=[null];for(let i=1,n=e.length;i<n;i++)t[i]=_n.a.fromHex(e[i]);Jr.standaloneThemeService.get().setColorMapOverride(t)}else Jr.standaloneThemeService.get().setColorMapOverride(null)}function Xs(e,t){let i=Jr.modeService.get().getLanguageIdentifier(e);if(!i)throw new Error("Cannot set tokens provider for unknown language "+e);const n=e=>"tokenizeEncoded"in e?new $s(i,e):new Gs(Jr.standaloneThemeService.get(),i,e);return Zs(t)?ge.F.registerPromise(e,t.then(e=>n(e))):ge.F.register(e,n(t))}function Qs(e,t){const i=t=>{return i=Jr.modeService.get(),n=Jr.standaloneThemeService.get(),o=e,t=Vs(e,t),new Rt(i,n,o,t);var i,n,o};return Zs(t)?ge.F.registerPromise(e,t.then(e=>i(e))):ge.F.register(e,i(t))}function Js(e,t){return ge.y.register(e,t)}function ea(e,t){return ge.z.register(e,t)}function ta(e,t){return ge.B.register(e,t)}function ia(e,t){return ge.p.register(e,{provideHover:(e,i,n)=>{let o=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,n)).then(e=>{if(e)return!e.range&&o&&(e.range=new z.a(i.lineNumber,o.startColumn,i.lineNumber,o.endColumn)),e.range||(e.range=new z.a(i.lineNumber,i.column,i.lineNumber,i.column)),e})}})}function na(e,t){return ge.m.register(e,t)}function oa(e,t){return ge.i.register(e,t)}function ra(e,t){return ge.w.register(e,t)}function sa(e,t){return ge.f.register(e,t)}function aa(e,t){return ge.q.register(e,t)}function la(e,t){return ge.G.register(e,t)}function da(e,t){return ge.b.register(e,t)}function ha(e,t,i){return ge.a.register(e,{providedCodeActionKinds:null==i?void 0:i.providedCodeActionKinds,provideCodeActions:(e,i,n,o)=>{var r=Jr.markerService.get().read({resource:e.uri}).filter(e=>z.a.areIntersectingOrTouching(e,i));return t.provideCodeActions(e,i,{markers:r,only:n.only},o)}})}function ca(e,t){return ge.g.register(e,t)}function ua(e,t){return ge.j.register(e,t)}function ga(e,t){return ge.x.register(e,t)}function pa(e,t){return ge.v.register(e,t)}function ma(e,t){return ge.d.register(e,t)}function fa(e,t){return ge.c.register(e,t)}function _a(e,t){return ge.o.register(e,t)}function ba(e,t){return ge.e.register(e,t)}function va(e,t){return ge.A.register(e,t)}function Ca(e,t){return ge.l.register(e,t)}function wa(e,t){return ge.k.register(e,t)}function ya(e,t){return ge.t.register(e,t)}function Sa(e,t){return ge.r.register(e,t)}$o=i("84df"),t.g.wrappingIndent.defaultValue=0,t.g.glyphMargin.defaultValue=!1,t.g.autoIndent.defaultValue=3,t.g.overviewRulerLanes.defaultValue=2,$o.a.setFormatterSelector((e,t,i)=>Promise.resolve(e[0])),Xr=$(),Xr.editor={create:cs,onDidCreateEditor:us,createDiffEditor:gs,createDiffNavigator:ps,createModel:ms,setModelLanguage:fs,setModelMarkers:_s,getModelMarkers:bs,onDidChangeMarkers:vs,getModels:ws,getModel:Cs,onDidCreateModel:ys,onWillDisposeModel:Ss,onDidChangeModelLanguage:Ls,createWebWorker:xs,colorizeElement:ks,colorize:Ds,colorizeModelLine:Ns,tokenize:Os,defineTheme:Es,setTheme:Is,remeasureFonts:Ms,registerCommand:Ts,AccessibilitySupport:n,ContentWidgetPositionPreference:l,CursorChangeReason:d,DefaultEndOfLine:h,EditorAutoIndentStrategy:u,EditorOption:g,EndOfLinePreference:p,EndOfLineSequence:m,MinimapPosition:y,MouseTargetType:S,OverlayWidgetPositionPreference:L,OverviewRulerLane:x,RenderLineNumbersType:k,RenderMinimap:D,ScrollbarVisibility:O,ScrollType:N,TextEditorCursorBlinkingStyle:A,TextEditorCursorStyle:R,TrackedRangeStickiness:P,WrappingIndent:F,ConfigurationChangedEvent:t.b,BareFontInfo:oe.a,FontInfo:oe.b,TextModelResolvedOptions:ue.e,FindMatch:ue.b,EditorType:ce.a,EditorOptions:t.g},Xr.languages={register:Hs,getLanguages:zs,onLanguage:Ks,getEncodedLanguageId:Us,setLanguageConfiguration:qs,setColorMap:Ys,setTokensProvider:Xs,setMonarchTokensProvider:Qs,registerReferenceProvider:Js,registerRenameProvider:ea,registerCompletionItemProvider:ma,registerSignatureHelpProvider:ta,registerHoverProvider:ia,registerDocumentSymbolProvider:na,registerDocumentHighlightProvider:oa,registerLinkedEditingRangeProvider:ra,registerDefinitionProvider:sa,registerImplementationProvider:aa,registerTypeDefinitionProvider:la,registerCodeLensProvider:da,registerCodeActionProvider:ha,registerDocumentFormattingEditProvider:ca,registerDocumentRangeFormattingEditProvider:ua,registerOnTypeFormattingEditProvider:ga,registerLinkProvider:pa,registerColorProvider:fa,registerFoldingRangeProvider:_a,registerDeclarationProvider:ba,registerSelectionRangeProvider:va,registerDocumentSemanticTokensProvider:Ca,registerDocumentRangeSemanticTokensProvider:wa,registerInlineCompletionsProvider:ya,registerInlayHintsProvider:Sa,DocumentHighlightKind:c,CompletionItemKind:r,CompletionItemTag:s,CompletionItemInsertTextRule:o,SymbolKind:M,SymbolTag:T,IndentAction:f,CompletionTriggerKind:a,SignatureHelpTriggerKind:I,InlayHintKind:_,InlineCompletionTriggerKind:b,FoldingRangeKind:ge.n};const La=Xr.CancellationTokenSource,xa=Xr.Emitter,ka=Xr.KeyCode,Da=Xr.KeyMod,Na=Xr.Position,Oa=Xr.Range,Ea=Xr.Selection,Ia=Xr.SelectionDirection,Ma=Xr.MarkerSeverity,Ta=Xr.MarkerTag,Aa=Xr.Uri,Ra=Xr.Token,Pa=Xr.editor,Fa=Xr.languages;(null!=(Ar=we.b.MonacoEnvironment)&&Ar.globalAPI||"function"==typeof define&&i("3c35"))&&(self.monaco=Xr),void 0!==self.require&&"function"==typeof self.require.config&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},f41d:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return i.e("chunk-2d21b84a").then(i.bind(null,"bfb2"))}})},f570:function(e,t,i){"use strict";i.r(t),i.d(t,"cssDefaults",(function(){return a})),i.d(t,"scssDefaults",(function(){return l})),i.d(t,"lessDefaults",(function(){return d})),i("33f9");var n=i("0b3c");Object.defineProperty(o.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"diagnosticsOptions",{get:function(){return this.options},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),o.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},o.prototype.setDiagnosticsOptions=function(e){this.setOptions(e)},o.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},t=o;function o(e,t,i){this._onDidChange=new n.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}var r={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0}},s={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},a=new t("css",r,s),l=new t("scss",r,s),d=new t("less",r,s);function h(){return i.e("chunk-0b65ffb6").then(i.bind(null,"db4f"))}n.languages.css={cssDefaults:a,lessDefaults:d,scssDefaults:l},n.languages.onLanguage("less",(function(){h().then((function(e){return e.setupMode(d)}))})),n.languages.onLanguage("scss",(function(){h().then((function(e){return e.setupMode(l)}))})),n.languages.onLanguage("css",(function(){h().then((function(e){return e.setupMode(a)}))}))},f577:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),t=i("0a0f");const n=Object(t.c)("clipboardService")},f58f:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));class n{constructor(e,t,i,n,o,r){this.id=e,this.label=t,this.alias=i,this._precondition=n,this._run=o,this._contextKeyService=r}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}},f5ba:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return i.e("chunk-2d0de971").then(i.bind(null,"85fd"))}})},f5f3:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return s}));var n=i("af40");const o=[];function r(e,t,i){t instanceof n.a||(t=new n.a(t,[],i)),o.push([e,t])}function s(){return o}},f68e:function(e,t,i){"use strict";i.d(t,"b",(function(){return g})),i.d(t,"a",(function(){return m})),i.d(t,"c",(function(){return f}));var n=i("dff7"),o=i("308f"),r=i("82c9"),s=i("a666"),a=i("3742"),l=i("9c3e"),d=i("6a89"),h=i("40355"),c=i("fdcc"),u=function(e,t,i,n){return new(i=i||Promise)((function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class g{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=l.b.nextId()}get uri(){return this.link.uri}get range(){var e;return null!=(e=null!=(e=this._range)?e:this.link.targetSelectionRange)?e:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e=null==(e=this.parent.getPreview(this))?void 0:e.preview(this.range);return e?Object(n.a)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",Object(r.b)(this.uri),this.range.startLineNumber,this.range.startColumn,e.value):Object(n.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(r.b)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class p{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){var i,n,o,r,s=this._modelReference.object.textEditorModel;if(s)return({startLineNumber:n,startColumn:o,endLineNumber:i,endColumn:r}=e),t=s.getWordUntilPosition({lineNumber:n,column:o-t}),t=new d.a(n,t.startColumn,n,o),n=new d.a(i,r,i,1073741824),{value:(o=s.getValueInRange(t).replace(/^\s+/,""))+(r=s.getValueInRange(e))+s.getValueInRange(n).replace(/\s+$/,""),highlight:{start:o.length,end:o.length+r.length}}}}class m{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new h.b}dispose(){Object(s.f)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){var e=this.children.length;return 1===e?Object(n.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(r.b)(this.uri),this.uri.fsPath):Object(n.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Object(r.b)(this.uri),this.uri.fsPath)}resolve(e){return u(this,void 0,void 0,(function*(){if(0===this._previews.size)for(var t of this.children)if(!this._previews.has(t.uri))try{var i=yield e.createModelReference(t.uri);this._previews.set(t.uri,new p(i))}catch(t){Object(c.f)(t)}return this}))}}class f{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new o.b,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;var i,n,[s]=e;let a;for(i of(e.sort(f._compareReferences),e))a&&r.e.isEqual(a.uri,i.uri,!0)||(a=new m(this,i.uri),this.groups.push(a)),0!==a.children.length&&0===f._compareReferences(i,a.children[a.children.length-1])||(n=new g(s===i,a,i,e=>this._onDidChangeReferenceRange.fire(e)),this.references.push(n),a.children.push(n))}dispose(){Object(s.f)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new f(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?Object(n.a)("aria.result.0","No results found"):1===this.references.length?Object(n.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?Object(n.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(n.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){var i=e["parent"];let n=i.children.indexOf(e);e=i.children.length;var o=i.parent.groups.length;return 1===o||t&&n+1<e||!t&&0<n?(n=t?(n+1)%e:(n+e-1)%e,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%o,i.parent.groups[n].children[0]):(n=(n+o-1)%o,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){var i=this.references.map((i,n)=>({idx:n,prefixLen:a.d(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)})).sort((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0)[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&d.a.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return r.e.compare(e.uri,t.uri)||d.a.compareRangesUsingStarts(e.range,t.range)}}},f85a:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var n=i("2e5d"),o=i("7061"),r=i("6a89"),s=i("3742"),a=i("708a");class l{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class d{static leftPosition(e,t){var i;return t.column>e.getLineMinColumn(t.lineNumber)?t.delta(void 0,-s.L(e.getLineContent(t.lineNumber),t.column-1)):1<t.lineNumber?(i=t.lineNumber-1,new o.a(i,e.getLineMaxColumn(i))):t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){var n=e.getLineMinColumn(t.lineNumber),r=e.getLineContent(t.lineNumber);r=a.a.atomicPosition(r,t.column-1,i,0);if(-1!==r&&n<=r+1)return new o.a(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){return e=e.stickyTabStops?d.leftPositionAtomicSoftTabs(t,i,e.tabSize):d.leftPosition(t,i),new l(e.lineNumber,e.column,0)}static moveLeft(e,t,i,n,o){let r,s;return s=i.hasSelection()&&!n?(r=i.selection.startLineNumber,i.selection.startColumn):(o=i.position.delta(void 0,-(o-1)),o=t.normalizePosition(d.clipPositionColumn(o,t),0),e=d.left(e,t,o),r=e.lineNumber,e.column),i.move(n,r,s,0)}static clipPositionColumn(e,t){return new o.a(e.lineNumber,d.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return e<t?t:i<e?i:e}static rightPosition(e,t,i){return i<e.getLineMaxColumn(t)?i+=s.K(e.getLineContent(t),i-1):t<e.getLineCount()&&(i=e.getLineMinColumn(t+=1)),new o.a(t,i)}static rightPositionAtomicSoftTabs(e,t,i,n,r){if(i<e.getLineIndentColumn(t)){var s=e.getLineContent(t);s=a.a.atomicPosition(s,i-1,n,1);if(-1!==s)return new o.a(t,s+1)}return this.rightPosition(e,t,i)}static right(e,t,i){return e=e.stickyTabStops?d.rightPositionAtomicSoftTabs(t,i.lineNumber,i.column,e.tabSize,e.indentSize):d.rightPosition(t,i.lineNumber,i.column),new l(e.lineNumber,e.column,0)}static moveRight(e,t,i,n,o){let r,s;return s=i.hasSelection()&&!n?(r=i.selection.endLineNumber,i.selection.endColumn):(o=i.position.delta(void 0,o-1),o=t.normalizePosition(d.clipPositionColumn(o,t),1),e=d.right(e,t,o),r=e.lineNumber,e.column),i.move(n,r,s,0)}static down(e,t,i,o,r,s,a){var d=n.a.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize)+r,h=t.getLineCount(),c=i===h&&o===t.getLineMaxColumn(i);return o=h<(i+=s)?(i=h,a?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),o)):n.a.columnFromVisibleColumn2(e,t,i,d),r=c?0:d-n.a.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize),new l(i,o,r)}static moveDown(e,t,i,n,o){let r,s;return s=i.hasSelection()&&!n?(r=i.selection.endLineNumber,i.selection.endColumn):(r=i.position.lineNumber,i.position.column),e=d.down(e,t,r,s,i.leftoverVisibleColumns,o,!0),i.move(n,e.lineNumber,e.column,e.leftoverVisibleColumns)}static translateDown(e,t,i){var s=i.selection,a=d.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1);e=d.down(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new n.f(new r.a(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.a(e.lineNumber,e.column),e.leftoverVisibleColumns)}static up(e,t,i,o,r,s,a){var d=n.a.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize)+r,h=1===i&&1===o;return o=(i-=s)<1?(i=1,a?t.getLineMinColumn(i):Math.min(t.getLineMaxColumn(i),o)):n.a.columnFromVisibleColumn2(e,t,i,d),r=h?0:d-n.a.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize),new l(i,o,r)}static moveUp(e,t,i,n,o){let r,s;return s=i.hasSelection()&&!n?(r=i.selection.startLineNumber,i.selection.startColumn):(r=i.position.lineNumber,i.position.column),e=d.up(e,t,r,s,i.leftoverVisibleColumns,o,!0),i.move(n,e.lineNumber,e.column,e.leftoverVisibleColumns)}static translateUp(e,t,i){var s=i.selection,a=d.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1);e=d.up(e,t,s.positionLineNumber,s.positionColumn,i.leftoverVisibleColumns,1,!1);return new n.f(new r.a(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.a(e.lineNumber,e.column),e.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,n){let o=i.position.lineNumber;for(;1<o&&this._isBlankLine(t,o);)o--;for(;1<o&&!this._isBlankLine(t,o);)o--;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToNextBlankLine(e,t,i,n){var o=t.getLineCount();let r=i.position.lineNumber;for(;r<o&&this._isBlankLine(t,r);)r++;for(;r<o&&!this._isBlankLine(t,r);)r++;return i.move(n,r,t.getLineMinColumn(r),0)}static moveToBeginningOfLine(e,t,i,n){var o=i.position.lineNumber,r=t.getLineMinColumn(o);t=t.getLineFirstNonWhitespaceColumn(o)||r;let s;var a=i.position.column;return s=a===t?r:t,i.move(n,o,s,0)}static moveToEndOfLine(e,t,i,n,o){var r=i.position.lineNumber;t=t.getLineMaxColumn(r);return i.move(n,r,t,o?1073741824-t:0)}static moveToBeginningOfBuffer(e,t,i,n){return i.move(n,1,1,0)}static moveToEndOfBuffer(e,t,i,n){var o=t.getLineCount();t=t.getLineMaxColumn(o);return i.move(n,o,t,0)}}},f8a4:function(e,t,i){"use strict";i.r(t),i("780f"),i("4816"),i("a222"),i("8090"),i("6c8c"),i("3323"),i("8452"),i("2e4b"),i("e2c2"),i("bd50");var n,o=i("33f9");for(n in o)["default"].indexOf(n)<0&&function(e){i.d(t,e,(function(){return o[e]}))}(n)},f9ad:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:function(){return i.e("chunk-2d0c46d1").then(i.bind(null,"3b7c"))}})},fa12:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var n=i("fac6"),o={},r={},s=(a.getOrCreate=function(e){return r[e]||(r[e]=new a(e)),r[e]},a.prototype.whenLoaded=function(){return this._lazyLoadPromise},a.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,o[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise},a);function a(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,i){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=i}))}function l(e){var t=e.id,i=(o[t]=e,n.languages.register(e),s.getOrCreate(t));n.languages.setMonarchTokensProvider(t,i.whenLoaded().then((function(e){return e.language}))),n.languages.onLanguage(t,(function(){i.load().then((function(e){n.languages.setLanguageConfiguration(t,e.conf)}))}))}},fac6:function(e,t,i){"use strict";var n=i("33f9");i.o(n,"languages")&&i.d(t,"languages",(function(){return n.languages}))},fb71:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return s}));t=i("30db");var n=i("62bd");const o=t.f?1.5:1.35;class r{constructor(e){this._bareFontInfoBrand=void 0,this.zoomLevel=e.zoomLevel,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}static createFromValidatedSettings(e,t,i,n){var o=e.get(41),s=e.get(45),a=e.get(44),l=e.get(43),d=e.get(58);e=e.get(55);return r._create(o,s,a,l,d,e,t,i,n)}static _create(e,t,i,s,a,l,d,h,c){return 0===a?a=o*i:a<8&&(a*=i),(a=Math.round(a))<8&&(a=8),c=1+(c?0:.1*n.a.getZoomLevel()),i*=c,a*=c,new r({zoomLevel:d,pixelRatio:h,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:s,lineHeight:a,letterSpacing:l})}getId(){return this.zoomLevel+"-"+this.pixelRatio+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing}getMassagedFontFamily(){return!/[,"']/.test(this.fontFamily)&&/[+ ]/.test(this.fontFamily)?`"${this.fontFamily}"`:this.fontFamily}}class s extends r{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=1,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},fbba:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"g",(function(){return s})),i.d(t,"b",(function(){return a})),i.d(t,"f",(function(){return l})),i.d(t,"d",(function(){return d})),i.d(t,"c",(function(){return h})),i.d(t,"e",(function(){return c}));var n=i("0910"),o=(t=i("0a0f"),i("89cd"));const r=Object(t.c)("configurationService");function s(e,t){var i,n=Object.create(null);for(i in e)a(n,i,e[i],t);return n}function a(e,t,i,n){var o=t.split("."),r=o.pop();let s=e;for(let l=0;l<o.length;l++){var a=o[l];let e=s[a];switch(typeof e){case"undefined":e=s[a]=Object.create(null);break;case"object":break;default:return void n(`Ignoring ${t} as ${o.slice(0,l+1).join(".")} is `+JSON.stringify(e))}s=e}if("object"==typeof s&&null!==s)try{s[r]=i}catch(e){n(`Ignoring ${t} as ${o.join(".")} is `+JSON.stringify(s))}else n(`Ignoring ${t} as ${o.join(".")} is `+JSON.stringify(s))}function l(e,t){!function e(t,i){const n=i.shift();if(0!==i.length){if(-1!==Object.keys(t).indexOf(n)){const o=t[n];"object"!=typeof o||Array.isArray(o)||(e(o,i),0===Object.keys(o).length&&delete t[n])}}else delete t[n]}(e,t.split("."))}function d(e,t,i){return e=function(e,t){let i=e;for(const n of t){if("object"!=typeof i||null===i)return;i=i[n]}return i}(e,t.split(".")),void 0===e?i:e}function h(){var e=o.a.as(n.a.Configuration).getConfigurationProperties();return Object.keys(e)}function c(){var e,t=Object.create(null),i=o.a.as(n.a.Configuration).getConfigurationProperties();for(e in i){var r=i[e].default;a(t,e,r,e=>{})}return t}},fd11:function(e,t,i){"use strict";i.r(t),i.d(t,"DragAndDropController",(function(){return h})),i("3a19");t=i("a666");var n=i("30db"),o=i("b2cc"),r=i("7061"),s=i("6a89"),a=i("8025");class l{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){e=e.getValueInRange(this.selection),this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new s.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),e),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new a.a(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new a.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber<this.selection.endLineNumber?this.targetSelection=new a.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new a.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new a.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn):this.targetSelection=this.selection}computeCursorState(e,t){return this.targetSelection}}function d(e){return n.f?e.altKey:e.ctrlKey}i=i("b57f");class h extends t.a{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(e=>this._onEditorMouseDown(e))),this._register(this._editor.onMouseUp(e=>this._onEditorMouseUp(e))),this._register(this._editor.onMouseDrag(e=>this._onEditorMouseDrag(e))),this._register(this._editor.onMouseDrop(e=>this._onEditorMouseDrop(e))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(e=>this.onEditorKeyDown(e))),this._register(this._editor.onKeyUp(e=>this.onEditorKeyUp(e))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._dndDecorationIds=[],this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(30)&&!this._editor.getOption(17)&&(d(e)&&(this._modifierPressed=!0),this._mouseDown)&&d(e)&&this._editor.updateOptions({mouseStyle:"copy"})}onEditorKeyUp(e){this._editor.getOption(30)&&!this._editor.getOption(17)&&(d(e)&&(this._modifierPressed=!1),this._mouseDown)&&e.keyCode===h.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"})}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){let t=e.target;if(null===this._dragSelection){var i=(this._editor.getSelections()||[]).filter(e=>t.position&&e.containsPosition(t.position));if(1!==i.length)return;this._dragSelection=i[0]}d(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){let n=new r.a(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let o=null;var t,i;e.event.shiftKey?(t=this._editor.getSelection())&&(({selectionStartLineNumber:t,selectionStartColumn:i}=t),o=[new a.a(t,i,n.lineNumber,n.column)]):o=(this._editor.getSelections()||[]).map(e=>e.containsPosition(n)?new a.a(n.lineNumber,n.column,n.lineNumber,n.column):e),this._editor.setSelections(o||[],"mouse",3)}else this._dragSelection.containsPosition(n)&&(!d(e.event)&&!this._modifierPressed||!this._dragSelection.getEndPosition().equals(n)&&!this._dragSelection.getStartPosition().equals(n))||(this._editor.pushUndoStop(),this._editor.executeCommand(h.ID,new l(this._dragSelection,n,d(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){var t=[{range:new s.a(e.lineNumber,e.column,e.lineNumber,e.column),options:h._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,t),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}h.ID="editor.contrib.dragAndDrop",h.TRIGGER_KEY_VALUE=n.f?6:5,h._DECORATION_OPTIONS=i.a.register({description:"dnd-target",className:"dnd-target"}),Object(o.l)(h.ID,h)},fd49:function(e,t,i){"use strict";i.d(t,"h",(function(){return s})),i.d(t,"b",(function(){return a})),i.d(t,"j",(function(){return l})),i.d(t,"a",(function(){return d})),i.d(t,"k",(function(){return g})),i.d(t,"n",(function(){return b})),i.d(t,"i",(function(){return n})),i.d(t,"e",(function(){return x})),i.d(t,"f",(function(){return I})),i.d(t,"m",(function(){return V})),i.d(t,"c",(function(){return X})),i.d(t,"d",(function(){return Q})),i.d(t,"l",(function(){return J})),i.d(t,"g",(function(){return te}));var n,o=i("dff7"),r=i("30db");t=i("d093");const s=8;class a{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class l{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class d{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class h{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}compute(e,t,i){return i}}class c{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class u{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,i){return i}}function g(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}class p extends u{constructor(e,t,i,n){void 0!==n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return g(e,this.defaultValue)}}class m extends u{constructor(e,t,i,n,o,r){void 0!==r&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return void 0===e||(e=parseInt(e,10),isNaN(e))?t:(e=Math.max(i,e),0|(e=Math.min(n,e)))}validate(e){return m.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class f extends u{constructor(e,t,i,n,o){void 0!==o&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return e<t?t:i<e?i:e}static float(e,t){return"number"==typeof e||void 0!==e&&(e=parseFloat(e),!isNaN(e))?e:t}validate(e){return this.validationFn(f.float(e,this.defaultValue))}}class _ extends u{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,i,n){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return _.string(e,this.defaultValue)}}function b(e,t,i){return"string"!=typeof e||-1===i.indexOf(e)?t:e}class v extends u{constructor(e,t,i,n,o){void 0!==o&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return b(e,this.defaultValue,this._allowedValues)}}class C extends h{constructor(e,t,i,n,o,r,s){void 0!==s&&(s.type="string",s.enum=o,s.default=n),super(e,t,i,s),this._allowedValues=o,this._convert=r}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}class w extends h{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[o.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),o.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),o.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:o.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}class y extends h{constructor(){var e={insertSpace:!0,ignoreEmptyLines:!0};super(18,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:o.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:o.a("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){return e&&"object"==typeof e?{insertSpace:g((e=e).insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:g(e.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}:this.defaultValue}}(i=n=n||{})[i.Line=1]="Line",i[i.Block=2]="Block",i[i.Underline=3]="Underline",i[i.LineThin=4]="LineThin",i[i.BlockOutline=5]="BlockOutline",i[i.UnderlineThin=6]="UnderlineThin";class S extends c{constructor(){super(127,[65,32])}compute(e,t,i){var n=["monaco-editor"];return t.get(32)&&n.push(t.get(32)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(65)?n.push("mouse-default"):"copy"===t.get(65)&&n.push("mouse-copy"),t.get(100)&&n.push("showUnused"),t.get(125)&&n.push("showDeprecated"),n.join(" ")}}class L extends h{constructor(){var e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(34,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:o.a("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[o.a("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),o.a("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),o.a("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:o.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[o.a("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),o.a("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),o.a("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:o.a("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:o.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.f},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:o.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:o.a("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){var t;return e&&"object"==typeof e?{cursorMoveOnType:g((t=e).cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":b(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":b(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:g(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:g(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:g(t.loop,this.defaultValue.loop)}:this.defaultValue}}class x extends h{constructor(){super(43,"fontLigatures",x.OFF,{anyOf:[{type:"boolean",description:o.a("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:o.a("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:o.a("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?x.OFF:"true"===e?x.ON:e:Boolean(e)?x.ON:x.OFF}}x.OFF='"liga" off, "calt" off',x.ON='"liga" on, "calt" on';class k extends c{constructor(){super(42)}compute(e,t,i){return e.fontInfo}}class D extends u{constructor(){super(44,"fontSize",X.fontSize,{type:"number",minimum:6,maximum:100,default:X.fontSize,description:o.a("fontSize","Controls the font size in pixels.")})}validate(e){return e=f.float(e,this.defaultValue),0===e?X.fontSize:f.clamp(e,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class N extends h{constructor(){super(45,"fontWeight",X.fontWeight,{anyOf:[{type:"number",minimum:N.MINIMUM_VALUE,maximum:N.MAXIMUM_VALUE,errorMessage:o.a("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:N.SUGGESTION_VALUES}],default:X.fontWeight,description:o.a("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(m.clampedInt(e,X.fontWeight,N.MINIMUM_VALUE,N.MAXIMUM_VALUE))}}N.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],N.MINIMUM_VALUE=1,N.MAXIMUM_VALUE=1e3;class O extends h{constructor(){var e={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:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[o.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),o.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),o.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","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(49,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:o.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:o.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:o.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:o.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:o.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:o.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:o.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:o.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:o.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:o.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:o.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t;return e&&"object"==typeof e?{multiple:b((e=e).multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!=(t=e.multipleDefinitions)?t:b(e.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!=(t=e.multipleTypeDefinitions)?t:b(e.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!=(t=e.multipleDeclarations)?t:b(e.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!=(t=e.multipleImplementations)?t:b(e.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!=(t=e.multipleReferences)?t:b(e.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:_.string(e.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:_.string(e.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:_.string(e.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:_.string(e.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:_.string(e.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}:this.defaultValue}}class E extends h{constructor(){var e={enabled:!0,delay:300,sticky:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:o.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:o.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:o.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})}validate(e){return e&&"object"==typeof e?{enabled:g((e=e).enabled,this.defaultValue.enabled),delay:m.clampedInt(e.delay,this.defaultValue.delay,0,1e4),sticky:g(e.sticky,this.defaultValue.sticky)}:this.defaultValue}}class I extends c{constructor(){super(130,[48,57,36,64,92,59,60,94,117,120,121,122,2])}compute(e,t,i){return I.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){var t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,t){var i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};var r=t.stableMinimapLayoutInput,a=(r=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,e.lineHeight),l=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let c=2<=o?Math.round(2*e.minimap.scale):e.minimap.scale;var u=e.minimap.maxColumn,g=e.minimap.size,p=e.minimap.side,m=e.verticalScrollbarWidth,f=e.viewLineCount,_=e.remainingWidth,b=e.isViewportWrapping,v=h?2:3;let C=Math.floor(o*n);var w=C/o;let y=!1,S=!1,L=v*c,x=c/o,k=1;if("fill"===g||"fit"===g){var{typicalViewportLineCount:d,extraLinesBeyondLastLine:n,desiredRatio:D,minimapLineCount:N}=I.computeContainedMinimapLineCount({viewLineCount:f,scrollBeyondLastLine:d,height:n,lineHeight:a,pixelRatio:o});if(1<f/N)y=!0,S=!0,c=1,L=1,x=c/o;else{let i=!1,s=c+1;"fit"===g&&(N=Math.ceil((f+n)*L),b&&r&&_<=t.stableFitRemainingWidth?(i=!0,s=t.stableFitMaxMinimapScale):i=N>C),"fill"!==g&&!i||(y=!0,N=c,L=Math.min(a*o,Math.max(1,Math.floor(1/D))),b&&r&&_<=t.stableFitRemainingWidth&&(s=t.stableFitMaxMinimapScale),(c=Math.min(s,Math.max(1,Math.floor(L/v))))>N&&(k=Math.min(2,c/N)),x=c/o/k,C=Math.ceil(Math.max(d,f+n)*L),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=c):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0))}}return g=Math.floor(u*x),a=Math.min(g,Math.max(0,Math.floor((_-m-2)*x/(l+x)))+s),r=(D=Math.floor(o*a))/o,D=Math.floor(D*k),{renderMinimap:h?1:2,minimapLeft:"left"===p?0:i-a-m,minimapWidth:a,minimapHeightIsEditorHeight:y,minimapIsSampling:S,minimapScale:c,minimapLineHeight:L,minimapCanvasInnerWidth:D,minimapCanvasInnerHeight:C,minimapCanvasOuterWidth:r,minimapCanvasOuterHeight:w}}static computeLayout(e,t){var i,n=0|t.outerWidth,o=0|t.outerHeight,r=0|t.lineHeight,s=0|t.lineNumbersDigitCount,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,h=t.pixelRatio,c=t.viewLineCount,u=e.get(122),g=(u="inherit"===u?e.get(121):u,"inherit"===u?e.get(117):u),p=e.get(120),f=e.get(2),_=t.isDominatedByLongLines,b=e.get(48),v=0!==e.get(59).renderType,C=e.get(60),w=e.get(94),y=e.get(64),S=e.get(92),L=S.verticalScrollbarSize,x=S.verticalHasArrows,k=S.arrowSize,D=(S=S.horizontalScrollbarSize,e.get(57));e=e.get(36);let N,O=(N="string"==typeof D&&/^\d+(\.\d+)?ch$/.test(D)?(i=parseFloat(D.substr(0,D.length-2)),m.clampedInt(i*a,0,0,1e3)):m.clampedInt(D,0,0,1e3),e&&(N+=16),0),E=(v&&(i=Math.max(s,C),O=Math.round(i*l)),0),M=(b&&(E=r),0),T=M+E,A=T+O,R=A+N;D=n-E-O-N;let P=!1,F=!1,B=-1;return 2!==f&&("inherit"===u&&_?(P=!0,F=!0):"on"===g||"bounded"===g?F=!0:"wordWrapColumn"===g&&(B=p)),e=I._computeMinimapLayout({outerWidth:n,outerHeight:o,lineHeight:r,typicalHalfwidthCharacterWidth:a,pixelRatio:h,scrollBeyondLastLine:w,minimap:y,verticalScrollbarWidth:L,viewLineCount:c,remainingWidth:D,isViewportWrapping:F},t.memory||new d),0!==e.renderMinimap&&0===e.minimapLeft&&(M+=e.minimapWidth,T+=e.minimapWidth,A+=e.minimapWidth,R+=e.minimapWidth),v=D-e.minimapWidth,s=Math.max(1,Math.floor((v-L-2)/a)),C=x?k:0,F&&(B=Math.max(1,s),"bounded"===g)&&(B=Math.min(B,p)),{width:n,height:o,glyphMarginLeft:M,glyphMarginWidth:E,lineNumbersLeft:T,lineNumbersWidth:O,decorationsLeft:A,decorationsWidth:N,contentLeft:R,contentWidth:v,minimap:e,viewportColumn:s,isWordWrapMinified:P,isViewportWrapping:F,wrappingColumn:B,verticalScrollbarWidth:L,horizontalScrollbarHeight:S,overviewRuler:{top:C,width:L,height:o-2*C,right:0}}}}class M extends h{constructor(){var e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:o.a("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return e&&"object"==typeof e?{enabled:g(e.enabled,this.defaultValue.enabled)}:this.defaultValue}}class T extends h{constructor(){var e={enabled:!0,fontSize:0,fontFamily:""};super(126,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:o.a("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:o.a("inlayHints.fontSize","Controls font size of inlay hints in the editor. When set to `0`, the 90% of `#editor.fontSize#` is used.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,description:o.a("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){return e&&"object"==typeof e?{enabled:g((e=e).enabled,this.defaultValue.enabled),fontSize:m.clampedInt(e.fontSize,this.defaultValue.fontSize,0,100),fontFamily:_.string(e.fontFamily,this.defaultValue.fontFamily)}:this.defaultValue}}class A extends f{constructor(){super(58,"lineHeight",X.lineHeight,e=>f.clamp(e,0,150),{markdownDescription:o.a("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}class R extends h{constructor(){var e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(64,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:o.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[o.a("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),o.a("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),o.a("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:o.a("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:o.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:o.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:o.a("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:o.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:o.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){return e&&"object"==typeof e?{enabled:g((e=e).enabled,this.defaultValue.enabled),size:b(e.size,this.defaultValue.size,["proportional","fill","fit"]),side:b(e.side,this.defaultValue.side,["right","left"]),showSlider:b(e.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:g(e.renderCharacters,this.defaultValue.renderCharacters),scale:m.clampedInt(e.scale,1,1,3),maxColumn:m.clampedInt(e.maxColumn,this.defaultValue.maxColumn,1,1e4)}:this.defaultValue}}class P extends h{constructor(){super(74,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:o.a("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:o.a("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){return e&&"object"==typeof e?(e=e,{top:m.clampedInt(e.top,0,0,1e3),bottom:m.clampedInt(e.bottom,0,0,1e3)}):this.defaultValue}}class F extends h{constructor(){var e={enabled:!0,cycle:!1};super(75,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:o.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:o.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){return e&&"object"==typeof e?{enabled:g((e=e).enabled,this.defaultValue.enabled),cycle:g(e.cycle,this.defaultValue.cycle)}:this.defaultValue}}class B extends c{constructor(){super(128)}compute(e,t,i){return e.pixelRatio}}class j extends h{constructor(){var e={other:!0,comments:!1,strings:!1};super(78,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:o.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:o.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:o.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:o.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){return"boolean"==typeof e?e:e&&"object"==typeof e?!!((e={other:g((e=e).other,this.defaultValue.other),comments:g(e.comments,this.defaultValue.comments),strings:g(e.strings,this.defaultValue.strings)}).other&&e.comments&&e.strings)||!!(e.other||e.comments||e.strings)&&e:this.defaultValue}}class W extends h{constructor(){super(59,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[o.a("lineNumbers.off","Line numbers are not rendered."),o.a("lineNumbers.on","Line numbers are rendered as absolute number."),o.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),o.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:o.a("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}function V(e){var t=e.get(87);return"editable"===t?e.get(80):"on"!==t}class H extends h{constructor(){var e=[],t={type:"number",description:o.a("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(91,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:o.a("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:o.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){var t,i,n=[];for(t of e)"number"==typeof t?n.push({column:m.clampedInt(t,0,0,1e4),color:null}):t&&"object"==typeof t&&(i=t,n.push({column:m.clampedInt(i.column,0,0,1e4),color:i.color}));return n.sort((e,t)=>e.column-t.column),n}return this.defaultValue}}function z(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}class U extends h{constructor(){var e={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",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[o.a("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),o.a("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),o.a("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:o.a("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[o.a("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),o.a("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),o.a("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:o.a("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:o.a("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:o.a("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:o.a("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){var t,i;return e&&"object"==typeof e?(e=e,t=m.clampedInt(e.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=m.clampedInt(e.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3),{arrowSize:m.clampedInt(e.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:z(e.vertical,this.defaultValue.vertical),horizontal:z(e.horizontal,this.defaultValue.horizontal),useShadows:g(e.useShadows,this.defaultValue.useShadows),verticalHasArrows:g(e.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:g(e.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:g(e.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:g(e.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:t,horizontalSliderSize:m.clampedInt(e.horizontalSliderSize,t,0,1e3),verticalScrollbarSize:i,verticalSliderSize:m.clampedInt(e.verticalSliderSize,i,0,1e3),scrollByPage:g(e.scrollByPage,this.defaultValue.scrollByPage)}):this.defaultValue}}class K extends h{constructor(){var e={enabled:!0,mode:"subwordSmart"};super(54,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:o.a("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.mode":{type:"string",enum:["prefix","subword","subwordSmart"],enumDescriptions:[o.a("inlineSuggest.mode.prefix","Only render an inline suggestion if the replace text is a prefix of the insert text."),o.a("inlineSuggest.mode.subword","Only render an inline suggestion if the replace text is a subword of the insert text."),o.a("inlineSuggest.mode.subwordSmart","Only render an inline suggestion if the replace text is a subword of the insert text, but the subword must start after the cursor.")],default:e.mode,description:o.a("inlineSuggest.mode","Controls which mode to use for rendering inline suggestions.")}})}validate(e){return e&&"object"==typeof e?{enabled:g((e=e).enabled,this.defaultValue.enabled),mode:b(e.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}:this.defaultValue}}class q extends h{constructor(){var e={enabled:Q.bracketPairColorizationOptions.enabled};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,description:o.a("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors.")}})}validate(e){return e&&"object"==typeof e?{enabled:g(e.enabled,this.defaultValue.enabled)}:this.defaultValue}}class $ extends h{constructor(){var e={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",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[o.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),o.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:o.a("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:o.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:o.a("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:o.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:o.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:o.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:o.a("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:o.a("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.previewMode":{type:"string",enum:["prefix","subword","subwordSmart"],enumDescriptions:[o.a("suggest.previewMode.prefix","Only render a preview if the replace text is a prefix of the insert text."),o.a("suggest.previewMode.subword","Only render a preview if the replace text is a subword of the insert text."),o.a("suggest.previewMode.subwordSmart","Render a preview if the replace text is a subword of the insert text, or if it is a prefix of the insert text.")],default:e.previewMode,description:o.a("suggest.previewMode","Controls which mode to use for rendering the suggest preview.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:o.a("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:o.a("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:o.a("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:o.a("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){return e&&"object"==typeof e?{insertMode:b((e=e).insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:g(e.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:g(e.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:g(e.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:g(e.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:g(e.showIcons,this.defaultValue.showIcons),showStatusBar:g(e.showStatusBar,this.defaultValue.showStatusBar),preview:g(e.preview,this.defaultValue.preview),previewMode:b(e.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:g(e.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:g(e.showMethods,this.defaultValue.showMethods),showFunctions:g(e.showFunctions,this.defaultValue.showFunctions),showConstructors:g(e.showConstructors,this.defaultValue.showConstructors),showDeprecated:g(e.showDeprecated,this.defaultValue.showDeprecated),showFields:g(e.showFields,this.defaultValue.showFields),showVariables:g(e.showVariables,this.defaultValue.showVariables),showClasses:g(e.showClasses,this.defaultValue.showClasses),showStructs:g(e.showStructs,this.defaultValue.showStructs),showInterfaces:g(e.showInterfaces,this.defaultValue.showInterfaces),showModules:g(e.showModules,this.defaultValue.showModules),showProperties:g(e.showProperties,this.defaultValue.showProperties),showEvents:g(e.showEvents,this.defaultValue.showEvents),showOperators:g(e.showOperators,this.defaultValue.showOperators),showUnits:g(e.showUnits,this.defaultValue.showUnits),showValues:g(e.showValues,this.defaultValue.showValues),showConstants:g(e.showConstants,this.defaultValue.showConstants),showEnums:g(e.showEnums,this.defaultValue.showEnums),showEnumMembers:g(e.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:g(e.showKeywords,this.defaultValue.showKeywords),showWords:g(e.showWords,this.defaultValue.showWords),showColors:g(e.showColors,this.defaultValue.showColors),showFiles:g(e.showFiles,this.defaultValue.showFiles),showReferences:g(e.showReferences,this.defaultValue.showReferences),showFolders:g(e.showFolders,this.defaultValue.showFolders),showTypeParameters:g(e.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:g(e.showSnippets,this.defaultValue.showSnippets),showUsers:g(e.showUsers,this.defaultValue.showUsers),showIssues:g(e.showIssues,this.defaultValue.showIssues)}:this.defaultValue}}class G extends h{constructor(){super(102,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:o.a("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:g(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}:this.defaultValue}}class Z extends c{constructor(){super(129,[80])}compute(e,t,i){return!!t.get(80)||e.tabFocusMode}}class Y extends c{constructor(){super(131,[130])}compute(e,t,i){return t=t.get(130),{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:t.isWordWrapMinified,isViewportWrapping:t.isViewportWrapping,wrappingColumn:t.wrappingColumn}}}const X={fontFamily:r.f?"Menlo, Monaco, 'Courier New', monospace":r.d?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.f?12:14,lineHeight:0,letterSpacing:0},Q={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!1}},J=[];function ee(e){return J[e.id]=e}const te={acceptSuggestionOnCommitCharacter:ee(new p(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:o.a("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ee(new v(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",o.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:o.a("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ee(new w),accessibilityPageSize:ee(new m(3,"accessibilityPageSize",10,1,1073741824,{description:o.a("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:ee(new _(4,"ariaLabel",o.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ee(new v(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",o.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),o.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:o.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:ee(new v(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",o.a("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:o.a("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ee(new v(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",o.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:o.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ee(new v(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",o.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),o.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:o.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ee(new C(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[o.a("editor.autoIndent.none","The editor will not insert indentation automatically."),o.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),o.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),o.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),o.a("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:o.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ee(new p(10,"automaticLayout",!1)),autoSurround:ee(new v(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[o.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),o.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),o.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:o.a("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ee(new q),stickyTabStops:ee(new p(104,"stickyTabStops",!1,{description:o.a("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ee(new p(13,"codeLens",!0,{description:o.a("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ee(new _(14,"codeLensFontFamily","",{description:o.a("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ee(new m(15,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:o.a("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, the 90% of `#editor.fontSize#` is used.")})),colorDecorators:ee(new p(16,"colorDecorators",!0,{description:o.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:ee(new p(17,"columnSelection",!1,{description:o.a("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ee(new y),contextmenu:ee(new p(19,"contextmenu",!0)),copyWithSyntaxHighlighting:ee(new p(20,"copyWithSyntaxHighlighting",!0,{description:o.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ee(new C(21,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:o.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ee(new p(22,"cursorSmoothCaretAnimation",!1,{description:o.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ee(new C(23,"cursorStyle",n.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return n.Line;case"block":return n.Block;case"underline":return n.Underline;case"line-thin":return n.LineThin;case"block-outline":return n.BlockOutline;case"underline-thin":return n.UnderlineThin}}),{description:o.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ee(new m(24,"cursorSurroundingLines",0,0,1073741824,{description:o.a("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ee(new v(25,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[o.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),o.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:o.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ee(new m(26,"cursorWidth",0,0,1073741824,{markdownDescription:o.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ee(new p(27,"disableLayerHinting",!1)),disableMonospaceOptimizations:ee(new p(28,"disableMonospaceOptimizations",!1)),domReadOnly:ee(new p(29,"domReadOnly",!1)),dragAndDrop:ee(new p(30,"dragAndDrop",!0,{description:o.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ee(new class extends p{constructor(){super(31,"emptySelectionClipboard",!0,{description:o.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),extraEditorClassName:ee(new _(32,"extraEditorClassName","")),fastScrollSensitivity:ee(new f(33,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:o.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ee(new L),fixedOverflowWidgets:ee(new p(35,"fixedOverflowWidgets",!1)),folding:ee(new p(36,"folding",!0,{description:o.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ee(new v(37,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[o.a("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),o.a("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:o.a("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ee(new p(38,"foldingHighlight",!0,{description:o.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ee(new p(39,"foldingImportsByDefault",!1,{description:o.a("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),unfoldOnClickAfterEndOfLine:ee(new p(40,"unfoldOnClickAfterEndOfLine",!1,{description:o.a("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ee(new _(41,"fontFamily",X.fontFamily,{description:o.a("fontFamily","Controls the font family.")})),fontInfo:ee(new k),fontLigatures2:ee(new x),fontSize:ee(new D),fontWeight:ee(new N),formatOnPaste:ee(new p(46,"formatOnPaste",!1,{description:o.a("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ee(new p(47,"formatOnType",!1,{description:o.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ee(new p(48,"glyphMargin",!0,{description:o.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ee(new O),hideCursorInOverviewRuler:ee(new p(50,"hideCursorInOverviewRuler",!1,{description:o.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:ee(new p(51,"highlightActiveIndentGuide",!0,{description:o.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:ee(new E),inDiffEditor:ee(new p(53,"inDiffEditor",!1)),letterSpacing:ee(new f(55,"letterSpacing",X.letterSpacing,e=>f.clamp(e,-5,20),{description:o.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ee(new M),lineDecorationsWidth:ee(new u(57,"lineDecorationsWidth",10)),lineHeight:ee(new A),lineNumbers:ee(new W),lineNumbersMinChars:ee(new m(60,"lineNumbersMinChars",5,1,300)),linkedEditing:ee(new p(61,"linkedEditing",!1,{description:o.a("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:ee(new p(62,"links",!0,{description:o.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ee(new v(63,"matchBrackets","always",["always","near","never"],{description:o.a("matchBrackets","Highlight matching brackets.")})),minimap:ee(new R),mouseStyle:ee(new v(65,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ee(new f(66,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:o.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ee(new p(67,"mouseWheelZoom",!1,{markdownDescription:o.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ee(new p(68,"multiCursorMergeOverlapping",!0,{description:o.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ee(new C(69,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?r.f?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[o.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),o.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:o.a({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ee(new v(70,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[o.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),o.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:o.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:ee(new p(71,"occurrencesHighlight",!0,{description:o.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ee(new p(72,"overviewRulerBorder",!0,{description:o.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ee(new m(73,"overviewRulerLanes",3,0,3)),padding:ee(new P),parameterHints:ee(new F),peekWidgetDefaultFocus:ee(new v(76,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[o.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),o.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:o.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ee(new p(77,"definitionLinkOpensInPeek",!1,{description:o.a("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ee(new j),quickSuggestionsDelay:ee(new m(79,"quickSuggestionsDelay",10,0,1073741824,{description:o.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ee(new p(80,"readOnly",!1)),renameOnType:ee(new p(81,"renameOnType",!1,{description:o.a("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:o.a("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ee(new p(82,"renderControlCharacters",!1,{description:o.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:ee(new p(83,"renderIndentGuides",!0,{description:o.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:ee(new p(84,"renderFinalNewline",!0,{description:o.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ee(new v(85,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",o.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:o.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ee(new p(86,"renderLineHighlightOnlyWhenFocus",!1,{description:o.a("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ee(new v(87,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ee(new v(88,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",o.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),o.a("renderWhitespace.selection","Render whitespace characters only on selected text."),o.a("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:o.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ee(new m(89,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:ee(new p(90,"roundedSelection",!0,{description:o.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ee(new H),scrollbar:ee(new U),scrollBeyondLastColumn:ee(new m(93,"scrollBeyondLastColumn",5,0,1073741824,{description:o.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ee(new p(94,"scrollBeyondLastLine",!0,{description:o.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ee(new p(95,"scrollPredominantAxis",!0,{description:o.a("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ee(new p(96,"selectionClipboard",!0,{description:o.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r.d})),selectionHighlight:ee(new p(97,"selectionHighlight",!0,{description:o.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ee(new p(98,"selectOnLineNumbers",!0)),showFoldingControls:ee(new v(99,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[o.a("showFoldingControls.always","Always show the folding controls."),o.a("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:o.a("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ee(new p(100,"showUnused",!0,{description:o.a("showUnused","Controls fading out of unused code.")})),showDeprecated:ee(new p(125,"showDeprecated",!0,{description:o.a("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ee(new T),snippetSuggestions:ee(new v(101,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[o.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),o.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),o.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),o.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:o.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ee(new G),smoothScrolling:ee(new p(103,"smoothScrolling",!1,{description:o.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ee(new m(105,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ee(new $),inlineSuggest:ee(new K),suggestFontSize:ee(new m(107,"suggestFontSize",0,0,1e3,{markdownDescription:o.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:ee(new m(108,"suggestLineHeight",0,0,1e3,{markdownDescription:o.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used. The minimum value is 8.")})),suggestOnTriggerCharacters:ee(new p(109,"suggestOnTriggerCharacters",!0,{description:o.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ee(new v(110,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[o.a("suggestSelection.first","Always select the first suggestion."),o.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),o.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:o.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ee(new v(111,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[o.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),o.a("tabCompletion.off","Disable tab completions."),o.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:o.a("tabCompletion","Enables tab completions.")})),tabIndex:ee(new m(112,"tabIndex",0,-1,1073741824)),unusualLineTerminators:ee(new v(113,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[o.a("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),o.a("unusualLineTerminators.off","Unusual line terminators are ignored."),o.a("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:o.a("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ee(new p(114,"useShadowDOM",!0)),useTabStops:ee(new p(115,"useTabStops",!0,{description:o.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:ee(new _(116,"wordSeparators",t.b,{description:o.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ee(new v(117,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[o.a("wordWrap.off","Lines will never wrap."),o.a("wordWrap.on","Lines will wrap at the viewport width."),o.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),o.a({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:o.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ee(new _(118,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ee(new _(119,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ee(new m(120,"wordWrapColumn",80,1,1073741824,{markdownDescription:o.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ee(new v(121,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ee(new v(122,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:ee(new C(123,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[o.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),o.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),o.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),o.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:o.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:ee(new v(124,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[o.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),o.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:o.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:ee(new S),pixelRatio:ee(new B),tabFocusMode:ee(new Z),layoutInfo:ee(new I),wrappingInfo:ee(new Y)}},fdc0:function(e,t,i){"use strict";i.r(t),t=i("fa12"),Object(t.a)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return i.e("chunk-2d22c171").then(i.bind(null,"f26e"))}})},fdcc:function(e,t,i){"use strict";i.d(t,"f",(function(){return o})),i.d(t,"g",(function(){return r})),i.d(t,"h",(function(){return s})),i.d(t,"e",(function(){return l})),i.d(t,"b",(function(){return d})),i.d(t,"c",(function(){return h})),i.d(t,"d",(function(){return c})),i.d(t,"a",(function(){return u}));const n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function o(e){l(e)||n.onUnexpectedError(e)}function r(e){l(e)||n.onUnexpectedExternalError(e)}function s(e){var t,i;return e instanceof Error?(({name:t,message:i}=e),{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack}):e}const a="Canceled";function l(e){return e instanceof Error&&e.name===a&&e.message===a}function d(){var e=new Error(a);return e.name=e.message,e}function h(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function c(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}class u extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}},fe45:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return h})),i.d(t,"f",(function(){return c})),i.d(t,"e",(function(){return g})),i.d(t,"d",(function(){return m})),i.d(t,"c",(function(){return f}));var n,o=i("fdcc");class r{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const s=new r,a=new r,l=new r;function d(e,t,i=t,n=i){s.define(e,t),a.define(e,i),l.define(e,n)}function h(e,t){return(e|(65535&t)<<16>>>0)>>>0}function c(e,t){var i;return 0===e?null:(i=(65535&e)>>>0,0!=(e=(4294901760&e)>>>16)?new p([u(i,t),u(e,t)]):new p([u(i,t)]))}function u(e,t){var i=!!(2048&e),n=!!(256&e),o=2===t?n:i,r=!!(1024&e),s=!!(512&e);t=2===t?i:n,i=255&e;return new g(o,r,s,t,i)}d(0,"unknown"),d(1,"Backspace"),d(2,"Tab"),d(3,"Enter"),d(4,"Shift"),d(5,"Ctrl"),d(6,"Alt"),d(7,"PauseBreak"),d(8,"CapsLock"),d(9,"Escape"),d(10,"Space"),d(11,"PageUp"),d(12,"PageDown"),d(13,"End"),d(14,"Home"),d(15,"LeftArrow","Left"),d(16,"UpArrow","Up"),d(17,"RightArrow","Right"),d(18,"DownArrow","Down"),d(19,"Insert"),d(20,"Delete"),d(21,"0"),d(22,"1"),d(23,"2"),d(24,"3"),d(25,"4"),d(26,"5"),d(27,"6"),d(28,"7"),d(29,"8"),d(30,"9"),d(31,"A"),d(32,"B"),d(33,"C"),d(34,"D"),d(35,"E"),d(36,"F"),d(37,"G"),d(38,"H"),d(39,"I"),d(40,"J"),d(41,"K"),d(42,"L"),d(43,"M"),d(44,"N"),d(45,"O"),d(46,"P"),d(47,"Q"),d(48,"R"),d(49,"S"),d(50,"T"),d(51,"U"),d(52,"V"),d(53,"W"),d(54,"X"),d(55,"Y"),d(56,"Z"),d(57,"Meta"),d(58,"ContextMenu"),d(59,"F1"),d(60,"F2"),d(61,"F3"),d(62,"F4"),d(63,"F5"),d(64,"F6"),d(65,"F7"),d(66,"F8"),d(67,"F9"),d(68,"F10"),d(69,"F11"),d(70,"F12"),d(71,"F13"),d(72,"F14"),d(73,"F15"),d(74,"F16"),d(75,"F17"),d(76,"F18"),d(77,"F19"),d(78,"NumLock"),d(79,"ScrollLock"),d(80,";",";","OEM_1"),d(81,"=","=","OEM_PLUS"),d(82,",",",","OEM_COMMA"),d(83,"-","-","OEM_MINUS"),d(84,".",".","OEM_PERIOD"),d(85,"/","/","OEM_2"),d(86,"`","`","OEM_3"),d(110,"ABNT_C1"),d(111,"ABNT_C2"),d(87,"[","[","OEM_4"),d(88,"\\","\\","OEM_5"),d(89,"]","]","OEM_6"),d(90,"'","'","OEM_7"),d(91,"OEM_8"),d(92,"OEM_102"),d(93,"NumPad0"),d(94,"NumPad1"),d(95,"NumPad2"),d(96,"NumPad3"),d(97,"NumPad4"),d(98,"NumPad5"),d(99,"NumPad6"),d(100,"NumPad7"),d(101,"NumPad8"),d(102,"NumPad9"),d(103,"NumPad_Multiply"),d(104,"NumPad_Add"),d(105,"NumPad_Separator"),d(106,"NumPad_Subtract"),d(107,"NumPad_Decimal"),d(108,"NumPad_Divide"),(t=n=n||{}).toString=function(e){return s.keyCodeToStr(e)},t.fromString=function(e){return s.strToKeyCode(e)},t.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},t.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},t.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)};class g{constructor(e,t,i,n,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=o}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new p([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class p{constructor(e){if(0===e.length)throw Object(o.c)("parts");this.parts=e}}class m{constructor(e,t,i,n,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=o,this.keyAriaLabel=r}}class f{}},fe86:function(e,t,i){},ffac:function(e,t,i){}}]);