A?1:0}function M(R,A,P,E){return RP?1:AE?1:0}function O(R,A){if(A.type===6&&R.type!==9&&R.type!==6){for(const B of A.expr)if(R.equals(B))return!0}const P=R.negate(),E=F(P).concat(F(A));E.sort(g);for(let B=0;BAe(void 0,void 0,void 0,function*(){const[c,l,a]=r;(0,T.assertType)(I.URI.isUri(c)),(0,T.assertType)(b.Position.isIPosition(l)),(0,T.assertType)(typeof a=="string"||!a);const s=yield t.get(p.ITextModelService).createModelReference(c);try{const o=yield i(s.object.textEditorModel,b.Position.lift(l),{triggerKind:C.SignatureHelpTriggerKind.Invoke,isRetrigger:!1,triggerCharacter:a},y.CancellationToken.None);return o?(setTimeout(()=>o.dispose(),0),o.value):void 0}finally{s.dispose()}}))}),define(ee[580],te([0,1,10,13,4,2,97,18,190]),function(q,e,y,N,T,I,b,C,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParameterHintsModel=void 0;var h;(function(t){t.Default={type:0};class r{constructor(a,s){this.request=a,this.previouslyActiveHints=s,this.type=2}}t.Pending=r;class c{constructor(a){this.hints=a,this.type=1}}t.Active=c})(h||(h={}));class g extends I.Disposable{constructor(r,c=g.DEFAULT_DELAY){super();this._onChangedHints=this._register(new T.Emitter),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=h.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new I.MutableDisposable),this.triggerChars=new b.CharacterSet,this.retriggerChars=new b.CharacterSet,this.triggerId=0,this.editor=r,this.throttledDelayer=new y.Delayer(c),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(l=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(l=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(l=>this.onCursorChange(l))),this._register(this.editor.onDidChangeModelContent(l=>this.onModelContentChange())),this._register(C.SignatureHelpProviderRegistry.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(l=>this.onDidType(l))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(r){this._state.type===2&&this._state.request.cancel(),this._state=r}cancel(r=!1){this.state=h.Default,this.throttledDelayer.cancel(),r||this._onChangedHints.fire(void 0)}trigger(r,c){const l=this.editor.getModel();if(!l||!C.SignatureHelpProviderRegistry.has(l))return;const a=++this.triggerId;this._pendingTriggers.push(r),this.throttledDelayer.trigger(()=>this.doTrigger(a),c).catch(N.onUnexpectedError)}next(){if(this.state.type!==1)return;const r=this.state.hints.signatures.length,c=this.state.hints.activeSignature,l=c%r==r-1,a=this.editor.getOption(75).cycle;if((r<2||l)&&!a){this.cancel();return}this.updateActiveSignature(l&&a?0:c+1)}previous(){if(this.state.type!==1)return;const r=this.state.hints.signatures.length,c=this.state.hints.activeSignature,l=c===0,a=this.editor.getOption(75).cycle;if((r<2||l)&&!a){this.cancel();return}this.updateActiveSignature(l&&a?r-1:c-1)}updateActiveSignature(r){this.state.type===1&&(this.state=new h.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:r})),this._onChangedHints.fire(this.state.hints))}doTrigger(r){return Ae(this,void 0,void 0,function*(){const c=this.state.type===1||this.state.type===2,l=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;const a=this._pendingTriggers.reduce(i);this._pendingTriggers=[];const s={triggerKind:a.triggerKind,triggerCharacter:a.triggerCharacter,isRetrigger:c,activeSignatureHelp:l};if(!this.editor.hasModel())return!1;const o=this.editor.getModel(),n=this.editor.getPosition();this.state=new h.Pending((0,y.createCancelablePromise)(d=>(0,p.provideSignatureHelp)(o,n,s,d)),l);try{const d=yield this.state.request;return r!==this.triggerId?(d==null||d.dispose(),!1):!d||!d.value.signatures||d.value.signatures.length===0?(d==null||d.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new h.Active(d.value),this._lastSignatureHelpResult.value=d,this._onChangedHints.fire(this.state.hints),!0)}catch(d){return r===this.triggerId&&(this.state=h.Default),(0,N.onUnexpectedError)(d),!1}})}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new b.CharacterSet,this.retriggerChars=new b.CharacterSet;const r=this.editor.getModel();if(!!r)for(const c of C.SignatureHelpProviderRegistry.ordered(r)){for(const l of c.signatureHelpTriggerCharacters||[])this.triggerChars.add(l.charCodeAt(0)),this.retriggerChars.add(l.charCodeAt(0));for(const l of c.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(l.charCodeAt(0))}}onDidType(r){if(!this.triggerOnType)return;const c=r.length-1,l=r.charCodeAt(c);(this.triggerChars.has(l)||this.isTriggered&&this.retriggerChars.has(l))&&this.trigger({triggerKind:C.SignatureHelpTriggerKind.TriggerCharacter,triggerCharacter:r.charAt(c)})}onCursorChange(r){r.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:C.SignatureHelpTriggerKind.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:C.SignatureHelpTriggerKind.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(75).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}e.ParameterHintsModel=g,g.DEFAULT_DELAY=120;function i(t,r){switch(r.triggerKind){case C.SignatureHelpTriggerKind.Invoke:return r;case C.SignatureHelpTriggerKind.ContentChange:return t;case C.SignatureHelpTriggerKind.TriggerCharacter:default:return r}}}),define(ee[581],te([0,1,16]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestAlternatives=void 0;let N=class Mt{constructor(I,b){this._editor=I,this._index=0,this._ckOtherSuggestions=Mt.OtherSuggestions.bindTo(b)}dispose(){this.reset()}reset(){var I;this._ckOtherSuggestions.reset(),(I=this._listener)===null||I===void 0||I.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:I,index:b},C){if(I.items.length===0){this.reset();return}if(Mt._moveIndex(!0,I,b)===b){this.reset();return}this._acceptNext=C,this._model=I,this._index=b,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(I,b,C){let p=C;for(;p=(p+b.items.length+(I?1:-1))%b.items.length,!(p===C||!b.items[p].completion.additionalTextEdits););return p}next(){this._move(!0)}prev(){this._move(!1)}_move(I){if(!!this._model)try{this._ignore=!0,this._index=Mt._moveIndex(I,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};N.OtherSuggestions=new y.RawContextKey("hasOtherSuggestions",!1),N=Be([Ce(1,y.IContextKeyService)],N),e.SuggestAlternatives=N}),define(ee[582],te([0,1,16]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordContextKey=void 0;let N=class vi{constructor(I,b){this._editor=I,this._enabled=!1,this._ckAtEnd=vi.AtEnd.bindTo(b),this._configListener=this._editor.onDidChangeConfiguration(C=>C.hasChanged(110)&&this._update()),this._update()}dispose(){var I;this._configListener.dispose(),(I=this._selectionListener)===null||I===void 0||I.dispose(),this._ckAtEnd.reset()}_update(){const I=this._editor.getOption(110)==="on";if(this._enabled!==I)if(this._enabled=I,this._enabled){const b=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}const C=this._editor.getModel(),p=this._editor.getSelection(),h=C.getWordAtPosition(p.getStartPosition());if(!h){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(h.endColumn===p.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(b),b()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};N.AtEnd=new y.RawContextKey("atEndOfWord",!1),N=Be([Ce(1,y.IContextKeyService)],N),e.WordContextKey=N}),define(ee[60],te([0,1,16,9]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CONTEXT_ACCESSIBILITY_MODE_ENABLED=e.IAccessibilityService=void 0,e.IAccessibilityService=(0,N.createDecorator)("accessibilityService"),e.CONTEXT_ACCESSIBILITY_MODE_ENABLED=new y.RawContextKey("accessibilityModeEnabled",!1)}),define(ee[583],te([0,1,4,2,60,35,16]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AccessibilityService=void 0;let C=class extends N.Disposable{constructor(h,g){super();this._contextKeyService=h,this._configurationService=g,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new y.Emitter,this._accessibilityModeEnabledContext=T.CONTEXT_ACCESSIBILITY_MODE_ENABLED.bindTo(this._contextKeyService);const i=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(t=>{t.affectsConfiguration("editor.accessibilitySupport")&&(i(),this._onDidChangeScreenReaderOptimized.fire())})),i(),this.onDidChangeScreenReaderOptimized(()=>i())}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const h=this._configurationService.getValue("editor.accessibilitySupport");return h==="on"||h==="auto"&&this._accessibilitySupport===2}getAccessibilitySupport(){return this._accessibilitySupport}};C=Be([Ce(0,b.IContextKeyService),Ce(1,I.IConfigurationService)],C),e.AccessibilityService=C}),define(ee[265],te([0,1,17,554,16]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputFocusedContext=e.InputFocusedContextKey=e.IsIOSContext=e.IsMacNativeContext=e.IsWebContext=e.IsWindowsContext=e.IsLinuxContext=e.IsMacContext=void 0,e.IsMacContext=new T.RawContextKey("isMac",y.isMacintosh,(0,N.localize)(0,null)),e.IsLinuxContext=new T.RawContextKey("isLinux",y.isLinux,(0,N.localize)(1,null)),e.IsWindowsContext=new T.RawContextKey("isWindows",y.isWindows,(0,N.localize)(2,null)),e.IsWebContext=new T.RawContextKey("isWeb",y.isWeb,(0,N.localize)(3,null)),e.IsMacNativeContext=new T.RawContextKey("isMacNative",y.isMacintosh&&!y.isWeb,(0,N.localize)(4,null)),e.IsIOSContext=new T.RawContextKey("isIOS",y.isIOS,(0,N.localize)(5,null)),e.InputFocusedContextKey="inputFocus",e.InputFocusedContext=new T.RawContextKey(e.InputFocusedContextKey,!1,(0,N.localize)(6,null))}),define(ee[73],te([0,1,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IContextMenuService=e.IContextViewService=void 0,e.IContextViewService=(0,y.createDecorator)("contextViewService"),e.IContextMenuService=(0,y.createDecorator)("contextMenuService")}),define(ee[124],te([0,1,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IDialogService=void 0,e.IDialogService=(0,y.createDecorator)("dialogService")}),define(ee[153],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceCollection=void 0;class y{constructor(...T){this._entries=new Map;for(let[I,b]of T)this.set(I,b)}set(T,I){const b=this._entries.get(T);return this._entries.set(T,I),b}has(T){return this._entries.has(T)}get(T){return this._entries.get(T)}}e.ServiceCollection=y}),define(ee[584],te([0,1,10,13,254,568,9,153]),function(q,e,y,N,T,I,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InstantiationService=void 0;const p=!1;class h extends Error{constructor(r){var c;super("cyclic dependency between services");this.message=(c=r.findCycleSlow())!==null&&c!==void 0?c:`UNABLE to detect cycle, dumping graph:
${r.toString()}`}}class g{constructor(r=new C.ServiceCollection,c=!1,l){this._activeInstantiations=new Set,this._services=r,this._strict=c,this._parent=l,this._services.set(b.IInstantiationService,this)}createChild(r){return new g(r,this._strict,this)}invokeFunction(r,...c){let l=i.traceInvocation(r),a=!1;try{return r({get:o=>{if(a)throw(0,N.illegalState)("service accessor is only valid during the invocation of its target method");const n=this._getOrCreateServiceInstance(o,l);if(!n)throw new Error(`[invokeFunction] unknown service '${o}'`);return n}},...c)}finally{a=!0,l.stop()}}createInstance(r,...c){let l,a;return r instanceof T.SyncDescriptor?(l=i.traceCreation(r.ctor),a=this._createInstance(r.ctor,r.staticArguments.concat(c),l)):(l=i.traceCreation(r),a=this._createInstance(r,c,l)),l.stop(),a}_createInstance(r,c=[],l){let a=b._util.getServiceDependencies(r).sort((n,d)=>n.index-d.index),s=[];for(const n of a){let d=this._getOrCreateServiceInstance(n.id,l);if(!d&&this._strict&&!n.optional)throw new Error(`[createInstance] ${r.name} depends on UNKNOWN service ${n.id}.`);s.push(d)}let o=a.length>0?a[0].index:c.length;if(c.length!==o){console.warn(`[createInstance] First service dependency of ${r.name} at position ${o+1} conflicts with ${c.length} static arguments`);let n=o-c.length;n>0?c=c.concat(new Array(n)):c=c.slice(0,o)}return new r(...[...c,...s])}_setServiceInstance(r,c){if(this._services.get(r)instanceof T.SyncDescriptor)this._services.set(r,c);else if(this._parent)this._parent._setServiceInstance(r,c);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(r){let c=this._services.get(r);return!c&&this._parent?this._parent._getServiceInstanceOrDescriptor(r):c}_getOrCreateServiceInstance(r,c){let l=this._getServiceInstanceOrDescriptor(r);return l instanceof T.SyncDescriptor?this._safeCreateAndCacheServiceInstance(r,l,c.branch(r,!0)):(c.branch(r,!1),l)}_safeCreateAndCacheServiceInstance(r,c,l){if(this._activeInstantiations.has(r))throw new Error(`illegal state - RECURSIVELY instantiating service '${r}'`);this._activeInstantiations.add(r);try{return this._createAndCacheServiceInstance(r,c,l)}finally{this._activeInstantiations.delete(r)}}_createAndCacheServiceInstance(r,c,l){const a=new I.Graph(n=>n.id.toString());let s=0;const o=[{id:r,desc:c,_trace:l}];for(;o.length;){const n=o.pop();if(a.lookupOrInsertNode(n),s++>1e3)throw new h(a);for(let d of b._util.getServiceDependencies(n.desc.ctor)){let u=this._getServiceInstanceOrDescriptor(d.id);if(!u&&!d.optional&&console.warn(`[createInstance] ${r} depends on ${d.id} which is NOT registered.`),u instanceof T.SyncDescriptor){const f={id:d.id,desc:u,_trace:n._trace.branch(d.id,!0)};a.insertEdge(n,f),o.push(f)}}}for(;;){const n=a.roots();if(n.length===0){if(!a.isEmpty())throw new h(a);break}for(const{data:d}of n){if(this._getServiceInstanceOrDescriptor(d.id)instanceof T.SyncDescriptor){const f=this._createServiceInstanceWithOwner(d.id,d.desc.ctor,d.desc.staticArguments,d.desc.supportsDelayedInstantiation,d._trace);this._setServiceInstance(d.id,f)}a.removeNode(d)}}return this._getServiceInstanceOrDescriptor(r)}_createServiceInstanceWithOwner(r,c,l=[],a,s){if(this._services.get(r)instanceof T.SyncDescriptor)return this._createServiceInstance(c,l,a,s);if(this._parent)return this._parent._createServiceInstanceWithOwner(r,c,l,a,s);throw new Error(`illegalState - creating UNKNOWN service instance ${c.name}`)}_createServiceInstance(r,c=[],l,a){if(l){const s=new y.IdleValue(()=>this._createInstance(r,c,a));return new Proxy(Object.create(null),{get(o,n){if(n in o)return o[n];let d=s.value,u=d[n];return typeof u!="function"||(u=u.bind(d),o[n]=u),u},set(o,n,d){return s.value[n]=d,!0}})}else return this._createInstance(r,c,a)}}e.InstantiationService=g;class i{constructor(r,c){this.type=r,this.name=c,this._start=Date.now(),this._dep=[]}static traceInvocation(r){return p?new i(1,r.name||r.toString().substring(0,42).replace(/\n/g,"")):i._None}static traceCreation(r){return p?new i(0,r.name):i._None}branch(r,c){let l=new i(2,r.toString());return this._dep.push([r,c,l]),l}stop(){let r=Date.now()-this._start;i._totals+=r;let c=!1;function l(s,o){let n=[],d=new Array(s+1).join(" ");for(const[u,f,S]of o._dep)if(f&&S){c=!0,n.push(`${d}CREATES -> ${u}`);let v=l(s+1,S);v&&n.push(v)}else n.push(`${d}uses -> ${u}`);return n.join(`
`)}let a=[`${this.type===0?"CREATE":"CALL"} ${this.name}`,`${l(1,this)}`,`DONE, took ${r.toFixed(2)}ms (grand total ${i._totals.toFixed(2)}ms)`];(r>2||c)&&console.log(a.join(`
`))}}i._None=new class extends i{constructor(){super(-1,null)}stop(){}branch(){return this}},i._totals=0}),define(ee[585],te([0,1,10,4,2,555]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractKeybindingService=void 0;const b=/^(cursor|delete)/;class C extends T.Disposable{constructor(g,i,t,r,c){super();this._contextKeyService=g,this._commandService=i,this._telemetryService=t,this._notificationService=r,this._logService=c,this._onDidUpdateKeybindings=this._register(new N.Emitter),this._currentChord=null,this._currentChordChecker=new y.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=p.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new y.TimeoutTimer,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:N.Event.None}dispose(){super.dispose()}_log(g){this._logging&&this._logService.info(`[KeybindingService]: ${g}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(g,i){const t=this._getResolver().lookupPrimaryKeybinding(g,i||this._contextKeyService);if(!!t)return t.resolvedKeybinding}dispatchEvent(g,i){return this._dispatch(g,i)}softDispatch(g,i){const t=this.resolveKeyboardEvent(g);if(t.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[r]=t.getDispatchParts();if(r===null)return null;const c=this._contextKeyService.getContext(i),l=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(c,l,r)}_enterChordMode(g,i){this._currentChord={keypress:g,label:i},this._currentChordStatusMessage=this._notificationService.status(I.localize(0,null,i));const t=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-t>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(g,i){return this._doDispatch(this.resolveKeyboardEvent(g),i,!1)}_singleModifierDispatch(g,i){const t=this.resolveKeyboardEvent(g),[r]=t.getSingleModifierDispatchParts();if(r)return this._ignoreSingleModifiers.has(r)?(this._log(`+ Ignoring single modifier ${r} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=p.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=p.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${r}.`),this._currentSingleModifier=r,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):r===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${r} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(t,i,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[c]=t.getParts();return this._ignoreSingleModifiers=new p(c),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(g,i,t=!1){let r=!1;if(g.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let c=null,l=null;if(t){const[n]=g.getSingleModifierDispatchParts();c=n,l=n}else[c]=g.getDispatchParts(),l=this._currentChord?this._currentChord.keypress:null;if(c===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),r;const a=this._contextKeyService.getContext(i),s=g.getLabel(),o=this._getResolver().resolve(a,l,c);return this._logService.trace("KeybindingService#dispatch",s,o==null?void 0:o.commandId),o&&o.enterChord?(r=!0,this._enterChordMode(c,s),r):(this._currentChord&&(!o||!o.commandId)&&(this._notificationService.status(I.localize(1,null,this._currentChord.label,s),{hideAfter:10*1e3}),r=!0),this._leaveChordMode(),o&&o.commandId&&(o.bubble||(r=!0),typeof o.commandArgs=="undefined"?this._commandService.executeCommand(o.commandId).then(void 0,n=>this._notificationService.warn(n)):this._commandService.executeCommand(o.commandId,o.commandArgs).then(void 0,n=>this._notificationService.warn(n)),b.test(o.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:o.commandId,from:"keybinding"})),r)}mightProducePrintableCharacter(g){return g.ctrlKey||g.metaKey?!1:g.keyCode>=31&&g.keyCode<=56||g.keyCode>=21&&g.keyCode<=30}}e.AbstractKeybindingService=C;class p{constructor(g){this._ctrlKey=g?g.ctrlKey:!1,this._shiftKey=g?g.shiftKey:!1,this._altKey=g?g.altKey:!1,this._metaKey=g?g.metaKey:!1}has(g){switch(g){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}p.EMPTY=new p(null)}),define(ee[586],te([0,1,13,188,95]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseResolvedKeybinding=void 0;class I extends T.ResolvedKeybinding{constructor(C,p){super();if(p.length===0)throw(0,y.illegalArgument)("parts");this._os=C,this._parts=p}getLabel(){return N.UILabelProvider.toLabel(this._os,this._parts,C=>this._getLabel(C))}getAriaLabel(){return N.AriaLabelProvider.toLabel(this._os,this._parts,C=>this._getAriaLabel(C))}getElectronAccelerator(){return this._parts.length>1||this._parts[0].isDuplicateModifierCase()?null:N.ElectronAcceleratorLabelProvider.toLabel(this._os,this._parts,C=>this._getElectronAccelerator(C))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(C=>this._getPart(C))}_getPart(C){return new T.ResolvedKeybindingPart(C.ctrlKey,C.shiftKey,C.altKey,C.metaKey,this._getLabel(C),this._getAriaLabel(C))}getDispatchParts(){return this._parts.map(C=>this._getDispatchPart(C))}getSingleModifierDispatchParts(){return this._parts.map(C=>this._getSingleModifierDispatchPart(C))}}e.BaseResolvedKeybinding=I}),define(ee[41],te([0,1,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IKeybindingService=void 0,e.IKeybindingService=(0,y.createDecorator)("keybindingService")}),define(ee[266],te([0,1,16]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.KeybindingResolver=void 0;class N{constructor(C,p,h){this._log=h,this._defaultKeybindings=C,this._defaultBoundCommands=new Map;for(let g=0,i=C.length;g=0;l--)this._isTargetedForRemoval(C[l],t,r,i,c)&&C.splice(l,1)}return C.concat(h)}_addKeyPress(C,p){const h=this._map.get(C);if(typeof h=="undefined"){this._map.set(C,[p]),this._addToLookupMap(p);return}for(let g=h.length-1;g>=0;g--){let i=h[g];if(i.command===p.command)continue;const t=i.keypressParts.length>1,r=p.keypressParts.length>1;t&&r&&i.keypressParts[1]!==p.keypressParts[1]||N.whenIsEntirelyIncluded(i.when,p.when)&&this._removeFromLookupMap(i)}h.push(p),this._addToLookupMap(p)}_addToLookupMap(C){if(!C.command)return;let p=this._lookupMap.get(C.command);typeof p=="undefined"?(p=[C],this._lookupMap.set(C.command,p)):p.push(C)}_removeFromLookupMap(C){if(!C.command)return;let p=this._lookupMap.get(C.command);if(typeof p!="undefined"){for(let h=0,g=p.length;h=0;g--){const i=h[g];if(p.contextMatchesRules(i.when))return i}return h[h.length-1]}resolve(C,p,h){this._log(`| Resolving ${h}${p?` chorded from ${p}`:""}`);let g=null;if(p!==null){const t=this._map.get(p);if(typeof t=="undefined")return this._log("\\ No keybinding entries."),null;g=[];for(let r=0,c=t.length;r1&&i.keypressParts[1]!==null?(this._log(`\\ From ${g.length} keybinding entries, matched chord, when: ${T(i.when)}, source: ${I(i)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${g.length} keybinding entries, matched ${i.command}, when: ${T(i.when)}, source: ${I(i)}.`),{enterChord:!1,leaveChord:i.keypressParts.length>1,commandId:i.command,commandArgs:i.commandArgs,bubble:i.bubble}):(this._log(`\\ From ${g.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(C,p){for(let h=p.length-1;h>=0;h--){let g=p[h];if(!!N.contextMatchesRules(C,g.when))return g}return null}static contextMatchesRules(C,p){return p?p.evaluate(C):!0}}e.KeybindingResolver=N;function T(b){return b?`${b.serialize()}`:"no when condition"}function I(b){return b.extensionId?b.isBuiltinExtension?`built-in extension ${b.extensionId}`:`user extension ${b.extensionId}`:b.isDefault?"built-in":"user"}}),define(ee[587],te([0,1,4,55,2,47,553,26,35,16,266]),function(q,e,y,N,T,I,b,C,p,h,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextKeyService=e.AbstractContextKeyService=e.Context=void 0;const i="data-keybinding-context";class t{constructor(v,m){this._id=v,this._parent=m,this._value=Object.create(null),this._value._contextId=v}setValue(v,m){return this._value[v]!==m?(this._value[v]=m,!0):!1}removeValue(v){return v in this._value?(delete this._value[v],!0):!1}getValue(v){const m=this._value[v];return typeof m=="undefined"&&this._parent?this._parent.getValue(v):m}}e.Context=t;class r extends t{constructor(){super(-1,null)}setValue(v,m){return!1}removeValue(v){return!1}getValue(v){}}r.INSTANCE=new r;class c extends t{constructor(v,m,_){super(v,null);this._configurationService=m,this._values=I.TernarySearchTree.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(L=>{if(L.source===6){const w=Array.from(N.Iterable.map(this._values,([k])=>k));this._values.clear(),_.fire(new s(w))}else{const w=[];for(const k of L.affectedKeys){const D=`config.${k}`,M=this._values.findSuperstr(D);M!==void 0&&(w.push(...N.Iterable.map(M,([O])=>O)),this._values.deleteSuperstr(D)),this._values.has(D)&&(w.push(D),this._values.delete(D))}_.fire(new s(w))}})}dispose(){this._listener.dispose()}getValue(v){if(v.indexOf(c._keyPrefix)!==0)return super.getValue(v);if(this._values.has(v))return this._values.get(v);const m=v.substr(c._keyPrefix.length),_=this._configurationService.getValue(m);let L;switch(typeof _){case"number":case"boolean":case"string":L=_;break;default:Array.isArray(_)?L=JSON.stringify(_):L=_}return this._values.set(v,L),L}setValue(v,m){return super.setValue(v,m)}removeValue(v){return super.removeValue(v)}}c._keyPrefix="config.";class l{constructor(v,m,_){this._service=v,this._key=m,this._defaultValue=_,this.reset()}set(v){this._service.setContext(this._key,v)}reset(){typeof this._defaultValue=="undefined"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class a{constructor(v){this.key=v}affectsSome(v){return v.has(this.key)}}class s{constructor(v){this.keys=v}affectsSome(v){for(const m of this.keys)if(v.has(m))return!0;return!1}}class o{constructor(v){this.events=v}affectsSome(v){for(const m of this.events)if(m.affectsSome(v))return!0;return!1}}class n{constructor(v){this._onDidChangeContext=new y.PauseableEmitter({merge:m=>new o(m)}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=v}createKey(v,m){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new l(this,v,m)}bufferChangeEvents(v){this._onDidChangeContext.pause();try{v()}finally{this._onDidChangeContext.resume()}}createScoped(v){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new u(this,v)}contextMatchesRules(v){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const m=this.getContextValuesContainer(this._myContextId);return g.KeybindingResolver.contextMatchesRules(m,v)}getContextKeyValue(v){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(v)}setContext(v,m){if(this._isDisposed)return;const _=this.getContextValuesContainer(this._myContextId);!_||_.setValue(v,m)&&this._onDidChangeContext.fire(new a(v))}removeContext(v){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(v)&&this._onDidChangeContext.fire(new a(v))}getContext(v){return this._isDisposed?r.INSTANCE:this.getContextValuesContainer(f(v))}}e.AbstractContextKeyService=n;let d=class extends n{constructor(v){super(0);this._contexts=new Map,this._toDispose=new T.DisposableStore,this._lastContextId=0;const m=new c(this._myContextId,v,this._onDidChangeContext);this._contexts.set(this._myContextId,m),this._toDispose.add(m)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(v){return this._isDisposed?r.INSTANCE:this._contexts.get(v)||r.INSTANCE}createChildContext(v=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let m=++this._lastContextId;return this._contexts.set(m,new t(m,this.getContextValuesContainer(v))),m}disposeContext(v){this._isDisposed||this._contexts.delete(v)}};d=Be([Ce(0,p.IConfigurationService)],d),e.ContextKeyService=d;class u extends n{constructor(v,m){super(v.createChildContext());if(this._parentChangeListener=new T.MutableDisposable,this._parent=v,this._updateParentChangeListener(),this._domNode=m,this._domNode.hasAttribute(i)){let _="";this._domNode.classList&&(_=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${_?": "+_:""}`)}this._domNode.setAttribute(i,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(i),this._isDisposed=!0)}getContextValuesContainer(v){return this._isDisposed?r.INSTANCE:this._parent.getContextValuesContainer(v)}createChildContext(v=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(v)}disposeContext(v){this._isDisposed||this._parent.disposeContext(v)}}function f(S){for(;S;){if(S.hasAttribute(i)){const v=S.getAttribute(i);return v?parseInt(v,10):NaN}S=S.parentElement}return 0}C.CommandsRegistry.registerCommand(h.SET_CONTEXT_COMMAND_ID,function(S,v,m){S.get(h.IContextKeyService).createKey(String(v),m)}),C.CommandsRegistry.registerCommand({id:"getContextKeyInfo",handler(){return[...h.RawContextKey.all()].sort((S,v)=>S.key.localeCompare(v.key))},description:{description:(0,b.localize)(0,null),args:[]}}),C.CommandsRegistry.registerCommand("_generateContextKeyInfo",function(){const S=[],v=new Set;for(let m of h.RawContextKey.all())v.has(m.key)||(v.add(m.key),S.push(m));S.sort((m,_)=>m.key.localeCompare(_.key)),console.log(JSON.stringify(S,void 0,2))})}),define(ee[267],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeElementsAfterNulls=e.ResolvedKeybindingItem=void 0;class y{constructor(I,b,C,p,h,g,i){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=I,this.keypressParts=I?N(I.getDispatchParts()):[],I&&this.keypressParts.length===0&&(this.keypressParts=N(I.getSingleModifierDispatchParts())),this.bubble=b?b.charCodeAt(0)===94:!1,this.command=this.bubble?b.substr(1):b,this.commandArgs=C,this.when=p,this.isDefault=h,this.extensionId=g,this.isBuiltinExtension=i}}e.ResolvedKeybindingItem=y;function N(T){let I=[];for(let b=0,C=T.length;bthis._resolveSimpleUserBinding(i)));return g.length>0?[new b(new N.ChordKeybinding(g),h)]:[]}}e.USLayoutResolvedKeybinding=b}),define(ee[125],te([0,1,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,y.createDecorator)("labelService")}),define(ee[154],te([0,1,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILayoutService=void 0,e.ILayoutService=(0,y.createDecorator)("layoutService")}),define(ee[589],te([0,1,215,2,154]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextViewService=void 0;let I=class extends N.Disposable{constructor(C){super();this.layoutService=C,this.currentViewDisposable=N.Disposable.None,this.container=C.container,this.contextView=this._register(new y.ContextView(this.container,1)),this.layout(),this._register(C.onDidLayout(()=>this.layout()))}setContainer(C,p){this.contextView.setContainer(C,p||1)}showContextView(C,p,h){p?p!==this.container&&(this.container=p,this.setContainer(p,h?3:2)):this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(C);const g=(0,N.toDisposable)(()=>{this.currentViewDisposable===g&&this.hideContextView()});return this.currentViewDisposable=g,g}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(C){this.contextView.hide(C)}};I=Be([Ce(0,T.ILayoutService)],I),e.ContextViewService=I}),define(ee[74],te([0,1,4,2,9]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogService=e.ConsoleLogger=e.AbstractLogger=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILogService=void 0,e.ILogService=(0,T.createDecorator)("logService");var I;(function(h){h[h.Trace=0]="Trace",h[h.Debug=1]="Debug",h[h.Info=2]="Info",h[h.Warning=3]="Warning",h[h.Error=4]="Error",h[h.Critical=5]="Critical",h[h.Off=6]="Off"})(I=e.LogLevel||(e.LogLevel={})),e.DEFAULT_LOG_LEVEL=I.Info;class b extends N.Disposable{constructor(){super(...arguments);this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new y.Emitter)}setLevel(g){this.level!==g&&(this.level=g,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}e.AbstractLogger=b;class C extends b{constructor(g=e.DEFAULT_LOG_LEVEL){super();this.setLevel(g)}trace(g,...i){this.getLevel()<=I.Trace&&console.log("%cTRACE","color: #888",g,...i)}debug(g,...i){this.getLevel()<=I.Debug&&console.log("%cDEBUG","background: #eee; color: #888",g,...i)}info(g,...i){this.getLevel()<=I.Info&&console.log("%c INFO","color: #33f",g,...i)}error(g,...i){this.getLevel()<=I.Error&&console.log("%c ERR","color: #f33",g,...i)}dispose(){}}e.ConsoleLogger=C;class p extends N.Disposable{constructor(g){super();this.logger=g,this._register(g)}getLevel(){return this.logger.getLevel()}trace(g,...i){this.logger.trace(g,...i)}debug(g,...i){this.logger.debug(g,...i)}info(g,...i){this.logger.info(g,...i)}error(g,...i){this.logger.error(g,...i)}}e.LogService=p}),define(ee[268],te([0,1,10,2,212,318,3,18,39,418,43,152,8,19,74,85,13]),function(q,e,y,N,T,I,b,C,p,h,g,i,t,r,c,l,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorWorkerClient=e.EditorWorkerHost=e.EditorWorkerServiceImpl=void 0;const s=60*1e3,o=5*60*1e3;function n(L,w){let k=L.getModel(w);return!(!k||k.isTooLargeForSyncing())}let d=class extends N.Disposable{constructor(w,k,D){super();this._modelService=w,this._workerManager=this._register(new f(this._modelService)),this._logService=D,this._register(C.LinkProviderRegistry.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(M,O)=>n(this._modelService,M.uri)?this._workerManager.withWorker().then(F=>F.computeLinks(M.uri)).then(F=>F&&{links:F}):Promise.resolve({links:[]})})),this._register(C.CompletionProviderRegistry.register("*",new u(this._workerManager,k,this._modelService)))}dispose(){super.dispose()}canComputeUnicodeHighlights(w){return n(this._modelService,w)}computedUnicodeHighlights(w,k,D){return this._workerManager.withWorker().then(M=>M.computedUnicodeHighlights(w,k,D))}computeDiff(w,k,D,M){return this._workerManager.withWorker().then(O=>O.computeDiff(w,k,D,M))}computeMoreMinimalEdits(w,k){if((0,r.isNonEmptyArray)(k)){if(!n(this._modelService,w))return Promise.resolve(k);const D=l.StopWatch.create(!0),M=this._workerManager.withWorker().then(O=>O.computeMoreMinimalEdits(w,k));return M.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",w.toString(!0),D.elapsed())),Promise.race([M,(0,y.timeout)(1e3).then(()=>k)])}else return Promise.resolve(void 0)}canNavigateValueSet(w){return n(this._modelService,w)}navigateValueSet(w,k,D){return this._workerManager.withWorker().then(M=>M.navigateValueSet(w,k,D))}canComputeWordRanges(w){return n(this._modelService,w)}computeWordRanges(w,k){return this._workerManager.withWorker().then(D=>D.computeWordRanges(w,k))}};d=Be([Ce(0,g.IModelService),Ce(1,i.ITextResourceConfigurationService),Ce(2,c.ILogService)],d),e.EditorWorkerServiceImpl=d;class u{constructor(w,k,D){this._debugDisplayName="wordbasedCompletions",this._workerManager=w,this._configurationService=k,this._modelService=D}provideCompletionItems(w,k){return Ae(this,void 0,void 0,function*(){const D=this._configurationService.getValue(w.uri,k,"editor");if(!D.wordBasedSuggestions)return;const M=[];if(D.wordBasedSuggestionsMode==="currentDocument")n(this._modelService,w.uri)&&M.push(w.uri);else for(const B of this._modelService.getModels())!n(this._modelService,B.uri)||(B===w?M.unshift(B.uri):(D.wordBasedSuggestionsMode==="allDocuments"||B.getLanguageId()===w.getLanguageId())&&M.push(B.uri));if(M.length===0)return;const O=p.LanguageConfigurationRegistry.getWordDefinition(w.getLanguageId()),F=w.getWordAtPosition(k),R=F?new b.Range(k.lineNumber,F.startColumn,k.lineNumber,F.endColumn):b.Range.fromPositions(k),A=R.setEndPosition(k.lineNumber,k.column),E=yield(yield this._workerManager.withWorker()).textualSuggest(M,F==null?void 0:F.word,O);if(!!E)return{duration:E.duration,suggestions:E.words.map(B=>({kind:18,label:B,insertText:B,range:{insert:A,replace:R}}))}})}}class f extends N.Disposable{constructor(w){super();this._modelService=w,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new y.IntervalTimer).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(o/2)),this._register(this._modelService.onModelRemoved(D=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>o&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new _(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)}}class S extends N.Disposable{constructor(w,k,D){super();if(this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=w,this._modelService=k,!D){let M=new y.IntervalTimer;M.cancelAndSet(()=>this._checkStopModelSync(),Math.round(s/2)),this._register(M)}}dispose(){for(let w in this._syncedModels)(0,N.dispose)(this._syncedModels[w]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(w,k){for(const D of w){let M=D.toString();this._syncedModels[M]||this._beginModelSync(D,k),this._syncedModels[M]&&(this._syncedModelsLastUsedTime[M]=new Date().getTime())}}_checkStopModelSync(){let w=new Date().getTime(),k=[];for(let D in this._syncedModelsLastUsedTime)w-this._syncedModelsLastUsedTime[D]>s&&k.push(D);for(const D of k)this._stopModelSync(D)}_beginModelSync(w,k){let D=this._modelService.getModel(w);if(!D||!k&&D.isTooLargeForSyncing())return;let M=w.toString();this._proxy.acceptNewModel({url:D.uri.toString(),lines:D.getLinesContent(),EOL:D.getEOL(),versionId:D.getVersionId()});const O=new N.DisposableStore;O.add(D.onDidChangeContent(F=>{this._proxy.acceptModelChanged(M.toString(),F)})),O.add(D.onWillDispose(()=>{this._stopModelSync(M)})),O.add((0,N.toDisposable)(()=>{this._proxy.acceptRemovedModel(M)})),this._syncedModels[M]=O}_stopModelSync(w){let k=this._syncedModels[w];delete this._syncedModels[w],delete this._syncedModelsLastUsedTime[w],(0,N.dispose)(k)}}class v{constructor(w){this._instance=w,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class m{constructor(w){this._workerClient=w}fhr(w,k){return this._workerClient.fhr(w,k)}}e.EditorWorkerHost=m;class _ extends N.Disposable{constructor(w,k,D){super();this._disposed=!1,this._modelService=w,this._keepIdleModels=k,this._workerFactory=new I.DefaultWorkerFactory(D),this._worker=null,this._modelManager=null}fhr(w,k){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new T.SimpleWorkerClient(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new m(this)))}catch(w){(0,T.logOnceWebWorkerWarning)(w),this._worker=new v(new h.EditorSimpleWorker(new m(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,w=>((0,T.logOnceWebWorkerWarning)(w),this._worker=new v(new h.EditorSimpleWorker(new m(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(w){return this._modelManager||(this._modelManager=this._register(new S(w,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(w,k=!1){return Ae(this,void 0,void 0,function*(){return this._disposed?Promise.reject((0,a.canceled)()):this._getProxy().then(D=>(this._getOrCreateModelManager(D).ensureSyncedResources(w,k),D))})}computedUnicodeHighlights(w,k,D){return this._withSyncedResources([w]).then(M=>M.computeUnicodeHighlights(w.toString(),k,D))}computeDiff(w,k,D,M){return this._withSyncedResources([w,k],!0).then(O=>O.computeDiff(w.toString(),k.toString(),D,M))}computeMoreMinimalEdits(w,k){return this._withSyncedResources([w]).then(D=>D.computeMoreMinimalEdits(w.toString(),k))}computeLinks(w){return this._withSyncedResources([w]).then(k=>k.computeLinks(w.toString()))}textualSuggest(w,k,D){return Ae(this,void 0,void 0,function*(){const M=yield this._withSyncedResources(w),O=D.source,F=(0,t.regExpFlags)(D);return M.textualSuggest(w.map(R=>R.toString()),k,O,F)})}computeWordRanges(w,k){return this._withSyncedResources([w]).then(D=>{let M=this._modelService.getModel(w);if(!M)return Promise.resolve(null);let O=p.LanguageConfigurationRegistry.getWordDefinition(M.getLanguageId()),F=O.source,R=(0,t.regExpFlags)(O);return D.computeWordRanges(w.toString(),k,F,R)})}navigateValueSet(w,k,D){return this._withSyncedResources([w]).then(M=>{let O=this._modelService.getModel(w);if(!O)return null;let F=p.LanguageConfigurationRegistry.getWordDefinition(O.getLanguageId()),R=F.source,A=(0,t.regExpFlags)(F);return M.navigateValueSet(w.toString(),k,D,R,A)})}dispose(){super.dispose(),this._disposed=!0}}e.EditorWorkerClient=_}),define(ee[590],te([0,1,268,20]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createWebWorker=void 0;function T(b,C){return new I(b,C)}e.createWebWorker=T;class I extends y.EditorWorkerClient{constructor(C,p){super(C,p.keepIdleModels||!1,p.label);this._foreignModuleId=p.moduleId,this._foreignModuleCreateData=p.createData||null,this._foreignModuleHost=p.host||null,this._foreignProxy=null}fhr(C,p){if(!this._foreignModuleHost||typeof this._foreignModuleHost[C]!="function")return Promise.reject(new Error("Missing method "+C+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[C].apply(this._foreignModuleHost,p))}catch(h){return Promise.reject(h)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(C=>{const p=this._foreignModuleHost?N.getAllMethodNames(this._foreignModuleHost):[];return C.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,p).then(h=>{this._foreignModuleCreateData=null;const g=(r,c)=>C.fmr(r,c),i=(r,c)=>function(){const l=Array.prototype.slice.call(arguments,0);return c(r,l)};let t={};for(const r of h)t[r]=i(r,g);return t})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(C){return this._withSyncedResources(C).then(p=>this.getProxy())}}}),define(ee[92],te([0,1,79,557,9]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IMarkerService=e.IMarkerData=e.MarkerSeverity=void 0;var I;(function(C){C[C.Hint=1]="Hint",C[C.Info=2]="Info",C[C.Warning=4]="Warning",C[C.Error=8]="Error"})(I=e.MarkerSeverity||(e.MarkerSeverity={})),function(C){function p(r,c){return c-r}C.compare=p;const h=Object.create(null);h[C.Error]=(0,N.localize)(0,null),h[C.Warning]=(0,N.localize)(1,null),h[C.Info]=(0,N.localize)(2,null);function g(r){return h[r]||""}C.toString=g;function i(r){switch(r){case y.default.Error:return C.Error;case y.default.Warning:return C.Warning;case y.default.Info:return C.Info;case y.default.Ignore:return C.Hint}}C.fromSeverity=i;function t(r){switch(r){case C.Error:return y.default.Error;case C.Warning:return y.default.Warning;case C.Info:return y.default.Info;case C.Hint:return y.default.Ignore}}C.toSeverity=t}(I=e.MarkerSeverity||(e.MarkerSeverity={}));var b;(function(C){const p="";function h(i){return g(i,!0)}C.makeKey=h;function g(i,t){let r=[p];return i.source?r.push(i.source.replace("\xA6","\\\xA6")):r.push(p),i.code?typeof i.code=="string"?r.push(i.code.replace("\xA6","\\\xA6")):r.push(i.code.value.replace("\xA6","\\\xA6")):r.push(p),i.severity!==void 0&&i.severity!==null?r.push(I.toString(i.severity)):r.push(p),i.message&&t?r.push(i.message.replace("\xA6","\\\xA6")):r.push(p),i.startLineNumber!==void 0&&i.startLineNumber!==null?r.push(i.startLineNumber.toString()):r.push(p),i.startColumn!==void 0&&i.startColumn!==null?r.push(i.startColumn.toString()):r.push(p),i.endLineNumber!==void 0&&i.endLineNumber!==null?r.push(i.endLineNumber.toString()):r.push(p),i.endColumn!==void 0&&i.endColumn!==null?r.push(i.endColumn.toString()):r.push(p),r.push(p),r.join("\xA6")}C.makeKeyOptionalMessage=g})(b=e.IMarkerData||(e.IMarkerData={})),e.IMarkerService=(0,T.createDecorator)("markerService")}),define(ee[591],te([0,1,19,4,2,77,8,25,3,71,9,92,35]),function(q,e,y,N,T,I,b,C,p,h,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IMarkerNavigationService=e.MarkerList=e.MarkerCoordinate=void 0;class r{constructor(s,o,n){this.marker=s,this.index=o,this.total=n}}e.MarkerCoordinate=r;let c=class{constructor(s,o,n){this._markerService=o,this._configService=n,this._onDidChange=new N.Emitter,this.onDidChange=this._onDidChange.event,this._dispoables=new T.DisposableStore,this._markers=[],this._nextIdx=-1,C.URI.isUri(s)?this._resourceFilter=S=>S.toString()===s.toString():s&&(this._resourceFilter=s);const d=this._configService.getValue("problems.sortOrder"),u=(S,v)=>{let m=(0,b.compare)(S.resource.toString(),v.resource.toString());return d==="position"?m=p.Range.compareRangesUsingStarts(S,v)||i.MarkerSeverity.compare(S.severity,v.severity):m=i.MarkerSeverity.compare(S.severity,v.severity)||p.Range.compareRangesUsingStarts(S,v),m},f=()=>{this._markers=this._markerService.read({resource:C.URI.isUri(s)?s:void 0,severities:i.MarkerSeverity.Error|i.MarkerSeverity.Warning|i.MarkerSeverity.Info}),typeof s=="function"&&(this._markers=this._markers.filter(S=>this._resourceFilter(S.resource))),this._markers.sort(u)};f(),this._dispoables.add(o.onMarkerChanged(S=>{(!this._resourceFilter||S.some(v=>this._resourceFilter(v)))&&(f(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(s){return!this._resourceFilter&&!s?!0:!this._resourceFilter||!s?!1:this._resourceFilter(s)}get selected(){const s=this._markers[this._nextIdx];return s&&new r(s,this._nextIdx+1,this._markers.length)}_initIdx(s,o,n){let d=!1,u=this._markers.findIndex(f=>f.resource.toString()===s.uri.toString());u<0&&(u=(0,y.binarySearch)(this._markers,{resource:s.uri},(f,S)=>(0,b.compare)(f.resource.toString(),S.resource.toString())),u<0&&(u=~u));for(let f=u;fd.resource.toString()===s.toString());if(!(n<0)){for(;no[1])}}class g{constructor(r){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new I.ResourceMap,this._service=r,this._subscription=r.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(r){for(const c of r){const l=this._data.get(c);l&&this._substract(l);const a=this._resourceStats(c);this._add(a),this._data.set(c,a)}}_resourceStats(r){const c={errors:0,warnings:0,infos:0,unknowns:0};if(r.scheme===b.Schemas.inMemory||r.scheme===b.Schemas.walkThrough||r.scheme===b.Schemas.walkThroughSnippet)return c;for(const{severity:l}of this._service.read({resource:r}))l===p.MarkerSeverity.Error?c.errors+=1:l===p.MarkerSeverity.Warning?c.warnings+=1:l===p.MarkerSeverity.Info?c.infos+=1:c.unknowns+=1;return c}_substract(r){this.errors-=r.errors,this.warnings-=r.warnings,this.infos-=r.infos,this.unknowns-=r.unknowns}_add(r){this.errors+=r.errors,this.warnings+=r.warnings,this.infos+=r.infos,this.unknowns+=r.unknowns}}class i{constructor(){this._onMarkerChanged=new N.DebounceEmitter({delay:0,merge:i._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new h,this._stats=new g(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(r,c){for(const l of c||[])this.changeOne(r,l,[])}changeOne(r,c,l){if((0,y.isFalsyOrEmpty)(l))this._data.delete(c,r)&&this._onMarkerChanged.fire([c]);else{const a=[];for(const s of l){const o=i._toMarker(r,c,s);o&&a.push(o)}this._data.set(c,r,a),this._onMarkerChanged.fire([c])}}static _toMarker(r,c,l){let{code:a,severity:s,message:o,source:n,startLineNumber:d,startColumn:u,endLineNumber:f,endColumn:S,relatedInformation:v,tags:m}=l;if(!!o)return d=d>0?d:1,u=u>0?u:1,f=f>=d?f:d,S=S>0?S:u,{resource:c,owner:r,code:a,severity:s,message:o,source:n,startLineNumber:d,startColumn:u,endLineNumber:f,endColumn:S,relatedInformation:v,tags:m}}read(r=Object.create(null)){let{owner:c,resource:l,severities:a,take:s}=r;if((!s||s<0)&&(s=-1),c&&l){const o=this._data.get(l,c);if(o){const n=[];for(const d of o)if(i._accept(d,a)){const u=n.push(d);if(s>0&&u===s)break}return n}else return[]}else if(!c&&!l){const o=[];for(let n of this._data.values())for(let d of n)if(i._accept(d,a)){const u=o.push(d);if(s>0&&u===s)return o}return o}else{const o=this._data.values(l??c),n=[];for(const d of o)for(const u of d)if(i._accept(u,a)){const f=n.push(u);if(s>0&&f===s)return n}return n}}static _accept(r,c){return c===void 0||(c&r.severity)===r.severity}static _merge(r){const c=new I.ResourceMap;for(let l of r)for(let a of l)c.set(a,!0);return Array.from(c.keys())}}e.MarkerService=i}),define(ee[40],te([0,1,79,9]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoOpNotification=e.INotificationService=e.Severity=void 0,e.Severity=y.default,e.INotificationService=(0,N.createDecorator)("notificationService");class T{}e.NoOpNotification=T}),define(ee[53],te([0,1,2,8,25,9]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchesSomeScheme=e.matchesScheme=e.NullOpenerService=e.IOpenerService=void 0,e.IOpenerService=(0,I.createDecorator)("openerService"),e.NullOpenerService=Object.freeze({_serviceBrand:void 0,registerOpener(){return y.Disposable.None},registerValidator(){return y.Disposable.None},registerExternalUriResolver(){return y.Disposable.None},setDefaultExternalOpener(){},registerExternalOpener(){return y.Disposable.None},open(){return Ae(this,void 0,void 0,function*(){return!1})},resolveExternalUri(p){return Ae(this,void 0,void 0,function*(){return{resolved:p,dispose(){}}})}});function b(p,h){return T.URI.isUri(p)?(0,N.equalsIgnoreCase)(p.scheme,h):(0,N.startsWithIgnoreCase)(p,h+":")}e.matchesScheme=b;function C(p,...h){return h.some(g=>b(p,g))}e.matchesSomeScheme=C}),define(ee[593],te([0,1,7,23,77,47,209,48,42,25,28,26,566,53]),function(q,e,y,N,T,I,b,C,p,h,g,i,t,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OpenerService=void 0;let c=class{constructor(o){this._commandService=o}open(o,n){return Ae(this,void 0,void 0,function*(){if(!(0,r.matchesScheme)(o,C.Schemas.command))return!1;if(!(n==null?void 0:n.allowCommands))return!0;typeof o=="string"&&(o=h.URI.parse(o));let d=[];try{d=(0,b.parse)(decodeURIComponent(o.query))}catch(u){try{d=(0,b.parse)(o.query)}catch(f){}}return Array.isArray(d)||(d=[d]),yield this._commandService.executeCommand(o.path,...d),!0})}};c=Be([Ce(0,i.ICommandService)],c);let l=class{constructor(o){this._editorService=o}open(o,n){return Ae(this,void 0,void 0,function*(){typeof o=="string"&&(o=h.URI.parse(o));let d;const u=/^L?(\d+)(?:,(\d+))?/.exec(o.fragment);return u&&(d={startLineNumber:parseInt(u[1]),startColumn:u[2]?parseInt(u[2]):1},o=o.with({fragment:""})),o.scheme===C.Schemas.file&&(o=(0,p.normalizePath)(o)),yield this._editorService.openCodeEditor({resource:o,options:Object.assign({selection:d,context:(n==null?void 0:n.fromUserGesture)?t.EditorOpenContext.USER:t.EditorOpenContext.API},n==null?void 0:n.editorOptions)},this._editorService.getFocusedCodeEditor(),n==null?void 0:n.openToSide),!0})}};l=Be([Ce(0,g.ICodeEditorService)],l);let a=class{constructor(o,n){this._openers=new T.LinkedList,this._validators=new T.LinkedList,this._resolvers=new T.LinkedList,this._resolvedUriTargets=new I.ResourceMap(d=>d.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new T.LinkedList,this._defaultExternalOpener={openExternal:d=>Ae(this,void 0,void 0,function*(){return(0,r.matchesSomeScheme)(d,C.Schemas.http,C.Schemas.https)?y.windowOpenNoOpener(d):window.location.href=d,!0})},this._openers.push({open:(d,u)=>Ae(this,void 0,void 0,function*(){return(u==null?void 0:u.openExternal)||(0,r.matchesSomeScheme)(d,C.Schemas.mailto,C.Schemas.http,C.Schemas.https,C.Schemas.vsls)?(yield this._doOpenExternal(d,u),!0):!1})}),this._openers.push(new c(n)),this._openers.push(new l(o))}registerOpener(o){return{dispose:this._openers.unshift(o)}}registerValidator(o){return{dispose:this._validators.push(o)}}registerExternalUriResolver(o){return{dispose:this._resolvers.push(o)}}setDefaultExternalOpener(o){this._defaultExternalOpener=o}registerExternalOpener(o){return{dispose:this._externalOpeners.push(o)}}open(o,n){var d;return Ae(this,void 0,void 0,function*(){const u=typeof o=="string"?h.URI.parse(o):o,f=(d=this._resolvedUriTargets.get(u))!==null&&d!==void 0?d:o;for(const S of this._validators)if(!(yield S.shouldOpen(f)))return!1;for(const S of this._openers)if(yield S.open(o,n))return!0;return!1})}resolveExternalUri(o,n){return Ae(this,void 0,void 0,function*(){for(const d of this._resolvers)try{const u=yield d.resolveExternalUri(o,n);if(u)return this._resolvedUriTargets.has(u.resolved)||this._resolvedUriTargets.set(u.resolved,o),u}catch(u){}throw new Error("Could not resolve external URI: "+o.toString())})}_doOpenExternal(o,n){return Ae(this,void 0,void 0,function*(){const d=typeof o=="string"?h.URI.parse(o):o;let u;try{u=(yield this.resolveExternalUri(d,n)).resolved}catch(S){u=d}let f;if(typeof o=="string"&&d.toString()===u.toString()?f=o:f=encodeURI(u.toString(!0)),n==null?void 0:n.allowContributedOpeners){const S=typeof(n==null?void 0:n.allowContributedOpeners)=="string"?n==null?void 0:n.allowContributedOpeners:void 0;for(const v of this._externalOpeners)if(yield v.openExternal(f,{sourceUri:d,preferredOpenerId:S},N.CancellationToken.None))return!0}return this._defaultExternalOpener.openExternal(f,{sourceUri:d},N.CancellationToken.None)})}dispose(){this._validators.clear()}};a=Be([Ce(0,g.ICodeEditorService),Ce(1,i.ICommandService)],a),e.OpenerService=a}),define(ee[61],te([0,1,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEditorProgressService=e.Progress=e.emptyProgressRunner=void 0,e.emptyProgressRunner=Object.freeze({total(){},worked(){},done(){}});class N{constructor(I){this.callback=I}report(I){this._value=I,this.callback(this._value)}}e.Progress=N,N.None=Object.freeze({report(){}}),e.IEditorProgressService=(0,y.createDecorator)("editorProgressService")}),define(ee[594],te([0,1,10,23,2]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PickerQuickAccessProvider=e.TriggerAction=void 0;var I;(function(h){h[h.NO_ACTION=0]="NO_ACTION",h[h.CLOSE_PICKER=1]="CLOSE_PICKER",h[h.REFRESH_PICKER=2]="REFRESH_PICKER",h[h.REMOVE_ITEM=3]="REMOVE_ITEM"})(I=e.TriggerAction||(e.TriggerAction={}));function b(h){const g=h;return Array.isArray(g.items)}function C(h){const g=h;return!!g.picks&&g.additionalPicks instanceof Promise}class p extends T.Disposable{constructor(g,i){super();this.prefix=g,this.options=i}provide(g,i){var t;const r=new T.DisposableStore;g.canAcceptInBackground=!!((t=this.options)===null||t===void 0?void 0:t.canAcceptInBackground),g.matchOnLabel=g.matchOnDescription=g.matchOnDetail=g.sortByLabel=!1;let c;const l=r.add(new T.MutableDisposable),a=()=>Ae(this,void 0,void 0,function*(){const s=l.value=new T.DisposableStore;c==null||c.dispose(!0),g.busy=!1,c=new N.CancellationTokenSource(i);const o=c.token,n=g.value.substr(this.prefix.length).trim(),d=this._getPicks(n,s,o),u=(f,S)=>{var v;let m,_;if(b(f)?(m=f.items,_=f.active):m=f,m.length===0){if(S)return!1;n.length>0&&((v=this.options)===null||v===void 0?void 0:v.noResultsPick)&&(m=[this.options.noResultsPick])}return g.items=m,_&&(g.activeItems=[_]),!0};if(d!==null)if(C(d)){let f=!1,S=!1;yield Promise.all([(()=>Ae(this,void 0,void 0,function*(){yield(0,y.timeout)(p.FAST_PICKS_RACE_DELAY),!o.isCancellationRequested&&(S||(f=u(d.picks,!0)))}))(),(()=>Ae(this,void 0,void 0,function*(){g.busy=!0;try{const v=yield d.additionalPicks;if(o.isCancellationRequested)return;let m,_;b(d.picks)?(m=d.picks.items,_=d.picks.active):m=d.picks;let L,w;if(b(v)?(L=v.items,w=v.active):L=v,L.length>0||!f){let k;if(!_&&!w){const D=g.activeItems[0];D&&m.indexOf(D)!==-1&&(k=D)}u({items:[...m,...L],active:_||w||k})}}finally{o.isCancellationRequested||(g.busy=!1),S=!0}}))()])}else if(!(d instanceof Promise))u(d);else{g.busy=!0;try{const f=yield d;if(o.isCancellationRequested)return;u(f)}finally{o.isCancellationRequested||(g.busy=!1)}}});return r.add(g.onDidChangeValue(()=>a())),a(),r.add(g.onDidAccept(s=>{const[o]=g.selectedItems;typeof(o==null?void 0:o.accept)=="function"&&(s.inBackground||g.hide(),o.accept(g.keyMods,s))})),r.add(g.onDidTriggerItemButton(({button:s,item:o})=>Ae(this,void 0,void 0,function*(){var n,d;if(typeof o.trigger=="function"){const u=(d=(n=o.buttons)===null||n===void 0?void 0:n.indexOf(s))!==null&&d!==void 0?d:-1;if(u>=0){const f=o.trigger(u,g.keyMods),S=typeof f=="number"?f:yield f;if(i.isCancellationRequested)return;switch(S){case I.NO_ACTION:break;case I.CLOSE_PICKER:g.hide();break;case I.REFRESH_PICKER:a();break;case I.REMOVE_ITEM:const v=g.items.indexOf(o);if(v!==-1){const m=g.items.slice(),_=m.splice(v,1),L=g.activeItems.filter(k=>k!==_[0]),w=g.keepScrollPosition;g.keepScrollPosition=!0,g.items=m,L&&(g.activeItems=L),g.keepScrollPosition=w}break}}}}))),r}}e.PickerQuickAccessProvider=p,p.FAST_PICKS_RACE_DELAY=200});var Kt=this&&this.__createBinding||(Object.create?function(q,e,y,N){N===void 0&&(N=y),Object.defineProperty(q,N,{enumerable:!0,get:function(){return e[y]}})}:function(q,e,y,N){N===void 0&&(N=y),q[N]=e[y]}),jt=this&&this.__exportStar||function(q,e){for(var y in q)y!=="default"&&!Object.prototype.hasOwnProperty.call(e,y)&&Kt(e,q,y)};define(ee[75],te([0,1,9,213]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IQuickInputService=void 0,jt(N,e),e.IQuickInputService=(0,y.createDecorator)("quickInputService")}),define(ee[33],te([0,1,206,20]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Registry=void 0;class T{constructor(){this.data=new Map}add(b,C){y.ok(N.isString(b)),y.ok(N.isObject(C)),y.ok(!this.data.has(b),"There is already an extension with this id"),this.data.set(b,C)}as(b){return this.data.get(b)||null}}e.Registry=new T}),define(ee[191],te([0,1,4,33]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=void 0,e.Extensions={JSONContribution:"base.contributions.json"};function T(C){return C.length>0&&C.charAt(C.length-1)==="#"?C.substring(0,C.length-1):C}class I{constructor(){this._onDidChangeSchema=new y.Emitter,this.schemasById={}}registerSchema(p,h){this.schemasById[T(p)]=h,this._onDidChangeSchema.fire(p)}notifySchemaChanged(p){this._onDidChangeSchema.fire(p)}}const b=new I;N.Registry.add(e.Extensions.JSONContribution,b)}),define(ee[100],te([0,1,19,4,20,552,191,33]),function(q,e,y,N,T,I,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateProperty=e.getDefaultValue=e.overrideIdentifiersFromKey=e.OVERRIDE_PROPERTY_REGEX=e.OVERRIDE_PROPERTY_PATTERN=e.resourceLanguageSettingsSchemaId=e.resourceSettings=e.windowSettings=e.machineOverridableSettings=e.machineSettings=e.applicationSettings=e.allSettings=e.Extensions=void 0,e.Extensions={Configuration:"base.contributions.configuration"},e.allSettings={properties:{},patternProperties:{}},e.applicationSettings={properties:{},patternProperties:{}},e.machineSettings={properties:{},patternProperties:{}},e.machineOverridableSettings={properties:{},patternProperties:{}},e.windowSettings={properties:{},patternProperties:{}},e.resourceSettings={properties:{},patternProperties:{}},e.resourceLanguageSettingsSchemaId="vscode://schemas/settings/resourceLanguage";const p=C.Registry.as(b.Extensions.JSONContribution);class h{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new N.Emitter,this._onDidUpdateConfiguration=new N.Emitter,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:I.localize(0,null),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(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(s,o=!0){this.registerConfigurations([s],o)}registerConfigurations(s,o=!0){const n=this.doRegisterConfigurations(s,o);p.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(s){var o;const n=[],d=[];for(const{overrides:u,source:f}of s)for(const S in u)if(n.push(S),e.OVERRIDE_PROPERTY_REGEX.test(S)){const v=Object.assign(Object.assign({},((o=this.configurationDefaultsOverrides.get(S))===null||o===void 0?void 0:o.value)||{}),u[S]);this.configurationDefaultsOverrides.set(S,{source:f,value:v});const m={type:"object",default:v,description:I.localize(1,null,S),$ref:e.resourceLanguageSettingsSchemaId,defaultDefaultValue:v,source:T.isString(f)?void 0:f};d.push(...t(S)),this.configurationProperties[S]=m,this.defaultLanguageConfigurationOverridesNode.properties[S]=m}else{this.configurationDefaultsOverrides.set(S,{value:u[S],source:f});const v=this.configurationProperties[S];v&&(this.updatePropertyDefaultValue(S,v),this.updateSchema(S,v))}this.registerOverrideIdentifiers(d),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n,defaultsOverrides:!0})}registerOverrideIdentifiers(s){for(const o of s)this.overrideIdentifiers.add(o);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(s,o){const n=[];return s.forEach(d=>{n.push(...this.validateAndRegisterProperties(d,o,d.extensionInfo,d.restrictedProperties)),this.configurationContributors.push(d),this.registerJSONConfiguration(d)}),n}validateAndRegisterProperties(s,o=!0,n,d,u=3){u=T.isUndefinedOrNull(s.scope)?u:s.scope;let f=[],S=s.properties;if(S)for(let m in S){if(o&&l(m)){delete S[m];continue}const _=S[m];if(_.source=n,_.defaultDefaultValue=S[m].default,this.updatePropertyDefaultValue(m,_),e.OVERRIDE_PROPERTY_REGEX.test(m)?_.scope=void 0:(_.scope=T.isUndefinedOrNull(_.scope)?u:_.scope,_.restricted=T.isUndefinedOrNull(_.restricted)?!!(d==null?void 0:d.includes(m)):_.restricted),S[m].hasOwnProperty("included")&&!S[m].included){this.excludedConfigurationProperties[m]=S[m],delete S[m];continue}else this.configurationProperties[m]=S[m];!S[m].deprecationMessage&&S[m].markdownDeprecationMessage&&(S[m].deprecationMessage=S[m].markdownDeprecationMessage),f.push(m)}let v=s.allOf;if(v)for(let m of v)f.push(...this.validateAndRegisterProperties(m,o,n,d,u));return f}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(s){const o=n=>{let d=n.properties;if(d)for(const f in d)this.updateSchema(f,d[f]);let u=n.allOf;u&&u.forEach(o)};o(s)}updateSchema(s,o){switch(e.allSettings.properties[s]=o,o.scope){case 1:e.applicationSettings.properties[s]=o;break;case 2:e.machineSettings.properties[s]=o;break;case 6:e.machineOverridableSettings.properties[s]=o;break;case 3:e.windowSettings.properties[s]=o;break;case 4:e.resourceSettings.properties[s]=o;break;case 5:e.resourceSettings.properties[s]=o,this.resourceLanguageSettingsSchema.properties[s]=o;break}}updateOverridePropertyPatternKey(){for(const s of this.overrideIdentifiers.values()){const o=`[${s}]`,n={type:"object",description:I.localize(2,null),errorMessage:I.localize(3,null),$ref:e.resourceLanguageSettingsSchemaId};this.updatePropertyDefaultValue(o,n),e.allSettings.properties[o]=n,e.applicationSettings.properties[o]=n,e.machineSettings.properties[o]=n,e.machineOverridableSettings.properties[o]=n,e.windowSettings.properties[o]=n,e.resourceSettings.properties[o]=n}this._onDidSchemaChange.fire()}registerOverridePropertyPatternKey(){const s={type:"object",description:I.localize(4,null),errorMessage:I.localize(5,null),$ref:e.resourceLanguageSettingsSchemaId};e.allSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,e.applicationSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,e.machineSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,e.machineOverridableSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,e.windowSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,e.resourceSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=s,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(s,o){const n=this.configurationDefaultsOverrides.get(s);let d=n==null?void 0:n.value,u=n==null?void 0:n.source;T.isUndefined(d)&&(d=o.defaultDefaultValue,u=void 0),T.isUndefined(d)&&(d=r(o.type)),o.default=d,o.defaultValueSource=u}}const g="\\[([^\\]]+)\\]",i=new RegExp(g,"g");e.OVERRIDE_PROPERTY_PATTERN=`^(${g})+$`,e.OVERRIDE_PROPERTY_REGEX=new RegExp(e.OVERRIDE_PROPERTY_PATTERN);function t(a){const s=[];if(e.OVERRIDE_PROPERTY_REGEX.test(a)){let o=i.exec(a);for(;o==null?void 0:o.length;){const n=o[1].trim();n&&s.push(n),o=i.exec(a)}}return(0,y.distinct)(s)}e.overrideIdentifiersFromKey=t;function r(a){switch(Array.isArray(a)?a[0]:a){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}e.getDefaultValue=r;const c=new h;C.Registry.add(e.Extensions.Configuration,c);function l(a){return a.trim()?e.OVERRIDE_PROPERTY_REGEX.test(a)?I.localize(7,null,a):c.getConfigurationProperties()[a]!==void 0?I.localize(8,null,a):null:I.localize(6,null)}e.validateProperty=l}),define(ee[192],te([0,1,479,4,2,37,19,30,140,174,100,33,207]),function(q,e,y,N,T,I,b,C,p,h,g,i,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDiffEditorConfigurationKey=e.isEditorConfigurationKey=e.editorConfigurationBaseNode=e.CommonEditorConfiguration=e.ComputedEditorOptions=e.TabFocus=void 0,e.TabFocus=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new N.Emitter,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(L){this._tabFocus!==L&&(this._tabFocus=L,this._onDidChangeTabFocus.fire(this._tabFocus))}};const r=Object.hasOwnProperty;class c{constructor(){this._values=[]}_read(w){return this._values[w]}get(w){return this._values[w]}_write(w,k){this._values[w]=k}}e.ComputedEditorOptions=c;class l{constructor(){this._values=[]}_read(w){return this._values[w]}_write(w,k){this._values[w]=k}}class a{static readOptions(w){const k=w,D=new l;for(const M of C.editorOptionsRegistry){const O=M.name==="_never_"?void 0:k[M.name];D._write(M.id,O)}return D}static validateOptions(w){const k=new C.ValidatedEditorOptions;for(const D of C.editorOptionsRegistry)k._write(D.id,D.validate(w._read(D.id)));return k}static computeOptions(w,k){const D=new c;for(const M of C.editorOptionsRegistry)D._write(M.id,M.compute(k,D,w._read(M.id)));return D}static _deepEquals(w,k){if(typeof w!="object"||typeof k!="object"||!w||!k)return w===k;if(Array.isArray(w)||Array.isArray(k))return Array.isArray(w)&&Array.isArray(k)?b.equals(w,k):!1;if(Object.keys(w).length!==Object.keys(k).length)return!1;for(let D in w)if(!a._deepEquals(w[D],k[D]))return!1;return!0}static checkEquals(w,k){const D=[];let M=!1;for(const O of C.editorOptionsRegistry){const F=!a._deepEquals(w._read(O.id),k._read(O.id));D[O.id]=F,F&&(M=!0)}return M?new C.ConfigurationChangedEvent(D):null}static applyUpdate(w,k){let D=!1;for(const M of C.editorOptionsRegistry)if(k.hasOwnProperty(M.name)){const O=M.applyUpdate(w[M.name],k[M.name]);w[M.name]=O.newValue,D=D||O.didChange}return D}}function s(L){const w=L.wordWrap;w===!0?L.wordWrap="on":w===!1&&(L.wordWrap="off");const k=L.lineNumbers;k===!0?L.lineNumbers="on":k===!1&&(L.lineNumbers="off"),L.autoClosingBrackets===!1&&(L.autoClosingBrackets="never",L.autoClosingQuotes="never",L.autoSurround="never"),L.cursorBlinking==="visible"&&(L.cursorBlinking="solid");const O=L.renderWhitespace;O===!0?L.renderWhitespace="boundary":O===!1&&(L.renderWhitespace="none");const F=L.renderLineHighlight;F===!0?L.renderLineHighlight="line":F===!1&&(L.renderLineHighlight="none");const R=L.acceptSuggestionOnEnter;R===!0?L.acceptSuggestionOnEnter="on":R===!1&&(L.acceptSuggestionOnEnter="off");const A=L.tabCompletion;A===!1?L.tabCompletion="off":A===!0&&(L.tabCompletion="onlySnippets");const P=L.suggest;if(P&&typeof P.filteredTypes=="object"&&P.filteredTypes){const J={};J.method="showMethods",J.function="showFunctions",J.constructor="showConstructors",J.deprecated="showDeprecated",J.field="showFields",J.variable="showVariables",J.class="showClasses",J.struct="showStructs",J.interface="showInterfaces",J.module="showModules",J.property="showProperties",J.event="showEvents",J.operator="showOperators",J.unit="showUnits",J.value="showValues",J.constant="showConstants",J.enum="showEnums",J.enumMember="showEnumMembers",J.keyword="showKeywords",J.text="showWords",J.color="showColors",J.file="showFiles",J.reference="showReferences",J.folder="showFolders",J.typeParameter="showTypeParameters",J.snippet="showSnippets",(0,t.forEach)(J,Z=>{const ie=P.filteredTypes[Z.key];ie===!1&&(P[Z.value]=ie)})}const E=L.hover;E===!0?L.hover={enabled:!0}:E===!1&&(L.hover={enabled:!1});const B=L.parameterHints;B===!0?L.parameterHints={enabled:!0}:B===!1&&(L.parameterHints={enabled:!1});const V=L.autoIndent;V===!0?L.autoIndent="full":V===!1&&(L.autoIndent="advanced");const j=L.matchBrackets;j===!0?L.matchBrackets="always":j===!1&&(L.matchBrackets="never");const{renderIndentGuides:K,highlightActiveIndentGuide:Y}=L;L.guides||(L.guides={}),K!==void 0&&(L.guides.indentation=!!K),Y!==void 0&&(L.guides.highlightActiveIndentation=!!Y)}function o(L){const w=I.deepClone(L);return s(w),w}class n extends T.Disposable{constructor(w,k){super();this._onDidChange=this._register(new N.Emitter),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new N.Emitter),this.onDidChangeFast=this._onDidChangeFast.event,this._reservedHeight=0,this.isSimpleWidget=w,this._isDominatedByLongLines=!1,this._computeOptionsMemory=new C.ComputeOptionsMemory,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._rawOptions=o(k),this._readOptions=a.readOptions(this._rawOptions),this._validatedOptions=a.validateOptions(this._readOptions),this._register(p.EditorZoom.onDidChangeZoomLevel(D=>this._recomputeOptions())),this._register(e.TabFocus.onDidChangeTabFocus(D=>this._recomputeOptions()))}observeReferenceElement(w){}updatePixelRatio(){}_recomputeOptions(){const w=this.options,k=this._computeInternalOptions();if(!w)this.options=k;else{const D=a.checkEquals(w,k);if(D===null)return;this.options=k,this._onDidChangeFast.fire(D),this._onDidChange.fire(D)}}getRawOptions(){return this._rawOptions}_computeInternalOptions(){const w=this._getEnvConfiguration(),k=h.BareFontInfo.createFromValidatedSettings(this._validatedOptions,w.zoomLevel,w.pixelRatio,this.isSimpleWidget),D={memory:this._computeOptionsMemory,outerWidth:w.outerWidth,outerHeight:w.outerHeight-this._reservedHeight,fontInfo:this.readConfiguration(k),extraEditorClassName:w.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:w.emptySelectionClipboard,pixelRatio:w.pixelRatio,tabFocusMode:e.TabFocus.getTabFocusMode(),accessibilitySupport:w.accessibilitySupport};return a.computeOptions(this._validatedOptions,D)}updateOptions(w){if(typeof w=="undefined")return;const k=o(w);!a.applyUpdate(this._rawOptions,k)||(this._readOptions=a.readOptions(this._rawOptions),this._validatedOptions=a.validateOptions(this._readOptions),this._recomputeOptions())}setIsDominatedByLongLines(w){this._isDominatedByLongLines=w,this._recomputeOptions()}setMaxLineNumber(w){const k=n._digitCount(w);this._lineNumbersDigitCount!==k&&(this._lineNumbersDigitCount=k,this._recomputeOptions())}setViewLineCount(w){this._viewLineCount!==w&&(this._viewLineCount=w,this._recomputeOptions())}static _digitCount(w){let k=0;for(;w;)w=Math.floor(w/10),k++;return k||1}reserveHeight(w){this._reservedHeight=w,this._recomputeOptions()}}e.CommonEditorConfiguration=n,e.editorConfigurationBaseNode=Object.freeze({id:"editor",order:5,type:"object",title:y.localize(0,null),scope:5});const d=i.Registry.as(g.Extensions.Configuration),u=Object.assign(Object.assign({},e.editorConfigurationBaseNode),{properties:{"editor.tabSize":{type:"number",default:C.EDITOR_MODEL_DEFAULTS.tabSize,minimum:1,markdownDescription:y.localize(1,null)},"editor.insertSpaces":{type:"boolean",default:C.EDITOR_MODEL_DEFAULTS.insertSpaces,markdownDescription:y.localize(2,null)},"editor.detectIndentation":{type:"boolean",default:C.EDITOR_MODEL_DEFAULTS.detectIndentation,markdownDescription:y.localize(3,null)},"editor.trimAutoWhitespace":{type:"boolean",default:C.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,description:y.localize(4,null)},"editor.largeFileOptimizations":{type:"boolean",default:C.EDITOR_MODEL_DEFAULTS.largeFileOptimizations,description:y.localize(5,null)},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:y.localize(6,null)},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[y.localize(7,null),y.localize(8,null),y.localize(9,null)],description:y.localize(10,null)},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[y.localize(11,null),y.localize(12,null),y.localize(13,null)],default:"configuredByTheme",description:y.localize(14,null)},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:y.localize(15,null)},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:y.localize(16,null)},"editor.language.brackets":{type:"array",default:!1,description:y.localize(17,null),items:{type:"array",items:[{type:"string",description:y.localize(18,null)},{type:"string",description:y.localize(19,null)}]}},"editor.language.colorizedBracketPairs":{type:"array",default:!1,description:y.localize(20,null),items:{type:"array",items:[{type:"string",description:y.localize(21,null)},{type:"string",description:y.localize(22,null)}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:y.localize(23,null)},"diffEditor.maxFileSize":{type:"number",default:50,description:y.localize(24,null)},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:y.localize(25,null)},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:y.localize(26,null)},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:y.localize(27,null)},"diffEditor.codeLens":{type:"boolean",default:!1,description:y.localize(28,null)},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[y.localize(29,null),y.localize(30,null),y.localize(31,null)]}}});function f(L){return typeof L.type!="undefined"||typeof L.anyOf!="undefined"}for(const L of C.editorOptionsRegistry){const w=L.schema;if(typeof w!="undefined")if(f(w))u.properties[`editor.${L.name}`]=w;else for(let k in w)r.call(w,k)&&(u.properties[k]=w[k])}let S=null;function v(){return S===null&&(S=Object.create(null),Object.keys(u.properties).forEach(L=>{S[L]=!0})),S}function m(L){return v()[`editor.${L}`]||!1}e.isEditorConfigurationKey=m;function _(L){return v()[`diffEditor.${L}`]||!1}e.isDiffEditorConfigurationKey=_,d.registerConfiguration(u)}),define(ee[62],te([0,1,34,4,2,17,481,223,192,30,174]),function(q,e,y,N,T,I,b,C,p,h,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Configuration=e.clearAllFontInfos=void 0;class i{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(a){const s=a.getId();return!!this._values[s]}get(a){const s=a.getId();return this._values[s]}put(a,s){const o=a.getId();this._keys[o]=a,this._values[o]=s}remove(a){const s=a.getId();delete this._keys[s],delete this._values[s]}getValues(){return Object.keys(this._keys).map(a=>this._values[a])}}function t(){r.INSTANCE.clearCache()}e.clearAllFontInfos=t;class r extends T.Disposable{constructor(){super();this._onDidChange=this._register(new N.Emitter),this.onDidChange=this._onDidChange.event,this._cache=new i,this._evictUntrustedReadingsTimeout=-1}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new i,this._onDidChange.fire()}_writeToCache(a,s){this._cache.put(a,s),!s.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const a=this._cache.getValues();let s=!1;for(const o of a)o.isTrusted||(s=!0,this._cache.remove(o));s&&this._onDidChange.fire()}readConfiguration(a){if(!this._cache.has(a)){let s=r._actualReadConfiguration(a);(s.typicalHalfwidthCharacterWidth<=2||s.typicalFullwidthCharacterWidth<=2||s.spaceWidth<=2||s.maxDigitWidth<=2)&&(s=new g.FontInfo({zoomLevel:y.getZoomLevel(),pixelRatio:y.getPixelRatio(),fontFamily:s.fontFamily,fontWeight:s.fontWeight,fontSize:s.fontSize,fontFeatureSettings:s.fontFeatureSettings,lineHeight:s.lineHeight,letterSpacing:s.letterSpacing,isMonospace:s.isMonospace,typicalHalfwidthCharacterWidth:Math.max(s.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(s.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:s.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(s.spaceWidth,5),middotWidth:Math.max(s.middotWidth,5),wsmiddotWidth:Math.max(s.wsmiddotWidth,5),maxDigitWidth:Math.max(s.maxDigitWidth,5)},!1)),this._writeToCache(a,s)}return this._cache.get(a)}static createRequest(a,s,o,n){const d=new b.CharWidthRequest(a,s);return o.push(d),n&&n.push(d),d}static _actualReadConfiguration(a){const s=[],o=[],n=this.createRequest("n",0,s,o),d=this.createRequest("\uFF4D",0,s,null),u=this.createRequest(" ",0,s,o),f=this.createRequest("0",0,s,o),S=this.createRequest("1",0,s,o),v=this.createRequest("2",0,s,o),m=this.createRequest("3",0,s,o),_=this.createRequest("4",0,s,o),L=this.createRequest("5",0,s,o),w=this.createRequest("6",0,s,o),k=this.createRequest("7",0,s,o),D=this.createRequest("8",0,s,o),M=this.createRequest("9",0,s,o),O=this.createRequest("\u2192",0,s,o),F=this.createRequest("\uFFEB",0,s,null),R=this.createRequest("\xB7",0,s,o),A=this.createRequest(String.fromCharCode(11825),0,s,null),P="|/-_ilm%";for(let Y=0,J=P.length;Y.001){B=!1;break}}let j=!0;B&&F.width!==V&&(j=!1),F.width>O.width&&(j=!1);const K=y.getTimeSinceLastZoomLevelChanged()>2e3;return new g.FontInfo({zoomLevel:y.getZoomLevel(),pixelRatio:y.getPixelRatio(),fontFamily:a.fontFamily,fontWeight:a.fontWeight,fontSize:a.fontSize,fontFeatureSettings:a.fontFeatureSettings,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,isMonospace:B,typicalHalfwidthCharacterWidth:n.width,typicalFullwidthCharacterWidth:d.width,canUseHalfwidthRightwardsArrow:j,spaceWidth:u.width,middotWidth:R.width,wsmiddotWidth:A.width,maxDigitWidth:E},K)}}r.INSTANCE=new r;class c extends p.CommonEditorConfiguration{constructor(a,s,o=null,n){super(a,s);this.accessibilityService=n,this._elementSizeObserver=this._register(new C.ElementSizeObserver(o,s.dimension,()=>this._recomputeOptions())),this._register(r.INSTANCE.onDidChange(()=>this._recomputeOptions())),this._validatedOptions.get(10)&&this._elementSizeObserver.startObserving(),this._register(y.onDidChangeZoomLevel(d=>this._recomputeOptions())),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions())),this._recomputeOptions()}static applyFontInfoSlow(a,s){a.style.fontFamily=s.getMassagedFontFamily(y.isSafari?h.EDITOR_FONT_DEFAULTS.fontFamily:null),a.style.fontWeight=s.fontWeight,a.style.fontSize=s.fontSize+"px",a.style.fontFeatureSettings=s.fontFeatureSettings,a.style.lineHeight=s.lineHeight+"px",a.style.letterSpacing=s.letterSpacing+"px"}static applyFontInfo(a,s){a.setFontFamily(s.getMassagedFontFamily(y.isSafari?h.EDITOR_FONT_DEFAULTS.fontFamily:null)),a.setFontWeight(s.fontWeight),a.setFontSize(s.fontSize),a.setFontFeatureSettings(s.fontFeatureSettings),a.setLineHeight(s.lineHeight),a.setLetterSpacing(s.letterSpacing)}observeReferenceElement(a){this._elementSizeObserver.observe(a)}updatePixelRatio(){this._recomputeOptions()}static _getExtraEditorClassName(){let a="";return!y.isSafari&&!y.isWebkitWebView&&(a+="no-user-select "),y.isSafari&&(a+="no-minimap-shadow "),I.isMacintosh&&(a+="mac "),a}_getEnvConfiguration(){return{extraEditorClassName:c._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:y.isWebKit||y.isFirefox,pixelRatio:y.getPixelRatio(),zoomLevel:y.getZoomLevel(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(a){return r.INSTANCE.readConfiguration(a)}}e.Configuration=c}),define(ee[101],te([0,1,315,53,38,13,257,4,2,18,62]),function(q,e,y,N,T,I,b,C,p,h,g){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.MarkdownRenderer=void 0;let t=class _i{constructor(c,l,a){this._options=c,this._modeService=l,this._openerService=a,this._onDidRenderAsync=new C.Emitter,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(c,l,a){if(!c)return{element:document.createElement("span"),dispose:()=>{}};const s=new p.DisposableStore;return{element:s.add((0,y.renderMarkdown)(c,Object.assign(Object.assign({},this._getRenderOptions(c,s)),l),a)).element,dispose:()=>s.dispose()}}_getRenderOptions(c,l){return{baseUrl:this._options.baseUrl,codeBlockRenderer:(a,s)=>Ae(this,void 0,void 0,function*(){var o,n,d,u;let f;a?f=this._modeService.getModeIdForLanguageName(a):this._options.editor&&(f=(o=this._options.editor.getModel())===null||o===void 0?void 0:o.getLanguageId()),f||(f="plaintext"),this._modeService.triggerMode(f);const S=(n=yield h.TokenizationRegistry.getPromise(f))!==null&&n!==void 0?n:void 0,v=document.createElement("span");if(v.innerHTML=(u=(d=_i._ttpTokenizer)===null||d===void 0?void 0:d.createHTML(s,this._modeService.languageIdCodec,S))!==null&&u!==void 0?u:(0,b.tokenizeToString)(s,this._modeService.languageIdCodec,S),this._options.editor){const m=this._options.editor.getOption(43);g.Configuration.applyFontInfoSlow(v,m)}else this._options.codeBlockFontFamily&&(v.style.fontFamily=this._options.codeBlockFontFamily);return v}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:a=>this._openerService.open(a,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:c.isTrusted}).catch(I.onUnexpectedError),disposables:l}}}};t._ttpTokenizer=(i=window.trustedTypes)===null||i===void 0?void 0:i.createPolicy("tokenizeToString",{createHTML(r,c,l){return(0,b.tokenizeToString)(r,c,l)}}),t=Be([Ce(1,T.IModeService),Ce(2,N.IOpenerService)],t),e.MarkdownRenderer=t}),define(ee[595],te([0,1,87,8,62,89,235]),function(q,e,y,N,T,I,b){"use strict";var C;Object.defineProperty(e,"__esModule",{value:!0}),e.DOMLineBreaksComputerFactory=void 0;const p=(C=window.trustedTypes)===null||C===void 0?void 0:C.createPolicy("domLineBreaksComputer",{createHTML:l=>l});class h{static create(){return new h}constructor(){}createLineBreaksComputer(a,s,o,n){let d=[],u=[];return{addRequest:(f,S,v)=>{d.push(f),u.push(S)},finalize:()=>g(d,a,s,o,n,u)}}}e.DOMLineBreaksComputerFactory=h;function g(l,a,s,o,n,d){var u;function f(V){const j=d[V];if(j){const K=I.LineInjectedText.applyInjectedText(l[V],j),Y=j.map(Z=>Z.options),J=j.map(Z=>Z.column-1);return new b.ModelLineProjectionData(J,Y,[K.length],[],0)}else return null}if(o===-1){const V=[];for(let j=0,K=l.length;jS?(K=0,Y=0):J=S-ne}const Z=j.substr(K),ie=i(Z,Y,s,J,w,_);k[V]=K,D[V]=Y,M[V]=Z,O[V]=ie[0],F[V]=ie[1]}const R=w.build(),A=(u=p==null?void 0:p.createHTML(R))!==null&&u!==void 0?u:R;L.innerHTML=A,L.style.position="absolute",L.style.top="10000",L.style.wordWrap="break-word",document.body.appendChild(L);let P=document.createRange();const E=Array.prototype.slice.call(L.children,0);let B=[];for(let V=0;Vz.options),G=W.map(z=>z.column-1)):(ne=null,G=null),B[V]=new b.ModelLineProjectionData(G,ne,K,ie,J)}return document.body.removeChild(L),B}function i(l,a,s,o,n,d){if(d!==0){let L=String(d);n.appendASCIIString('');const u=l.length;let f=a,S=0,v=[],m=[],_=0");for(let L=0;L"),v[L]=S,m[L]=f;const w=_;_=L+1"),v[l.length]=S,m[l.length]=f,n.appendASCIIString("
"),[v,m]}function t(l,a,s,o){if(s.length<=1)return null;const n=Array.prototype.slice.call(a.children,0),d=[];try{r(l,n,o,0,null,s.length-1,null,d)}catch(u){return console.log(u),null}return d.length===0?null:(d.push(s.length),d)}function r(l,a,s,o,n,d,u,f){if(o===d||(n=n||c(l,a,s[o],s[o+1]),u=u||c(l,a,s[d],s[d+1]),Math.abs(n[0].top-u[0].top)<=.1))return;if(o+1===d){f.push(d);return}const S=o+(d-o)/2|0,v=c(l,a,s[S],s[S+1]);r(l,a,s,o,n,S,v,f),r(l,a,s,S,v,d,u,f)}function c(l,a,s,o){return l.setStart(a[s/16384|0].firstChild,s%16384),l.setEnd(a[o/16384|0].firstChild,o%16384),l.getClientRects()}}),define(ee[596],te([0,1,32,62,176,50]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginViewOverlays=e.ContentViewOverlays=e.ViewOverlayLine=e.ViewOverlays=void 0;class b extends I.ViewPart{constructor(i){super(i);this._visibleLines=new T.VisibleLinesCollection(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let i=0,t=this._dynamicOverlays.length;ir.shouldRender());for(let r=0,c=t.length;r'),c.appendASCIIString(l),c.appendASCIIString(""),!0)}layoutLine(i,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}e.ViewOverlayLine=C;class p extends b{constructor(i){super(i);const r=this._context.configuration.options.get(130);this._contentWidth=r.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(i){const r=this._context.configuration.options.get(130);return this._contentWidth=r.contentWidth,super.onConfigurationChanged(i)||!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollWidthChanged}_viewOverlaysRender(i){super._viewOverlaysRender(i),this.domNode.setWidth(Math.max(i.scrollWidth,this._contentWidth))}}e.ContentViewOverlays=p;class h extends b{constructor(i){super(i);const t=this._context.configuration.options,r=t.get(130);this._contentLeft=r.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),N.Configuration.applyFontInfo(this.domNode,t.get(43))}onConfigurationChanged(i){const t=this._context.configuration.options;N.Configuration.applyFontInfo(this.domNode,t.get(43));const r=t.get(130);return this._contentLeft=r.contentLeft,super.onConfigurationChanged(i)||!0}onScrollChanged(i){return super.onScrollChanged(i)||i.scrollHeightChanged}_viewOverlaysRender(i){super._viewOverlaysRender(i);const t=Math.min(i.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}e.MarginViewOverlays=h}),define(ee[597],te([0,1,7,32,8,62,30,14,3,138]),function(q,e,y,N,T,I,b,C,p,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewCursor=void 0;class g{constructor(r,c,l,a,s,o){this.top=r,this.left=c,this.width=l,this.height=a,this.textContent=s,this.textContentClassName=o}}class i{constructor(r){this._context=r;const c=this._context.configuration.options,l=c.get(43);this._cursorStyle=c.get(24),this._lineHeight=c.get(58),this._typicalHalfwidthCharacterWidth=l.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(c.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,N.createFastDomNode)(document.createElement("div")),this._domNode.setClassName(`cursor ${h.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),I.Configuration.applyFontInfo(this._domNode,l),this._domNode.setDisplay("none"),this._position=new C.Position(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(r){const c=this._context.configuration.options,l=c.get(43);return this._cursorStyle=c.get(24),this._lineHeight=c.get(58),this._typicalHalfwidthCharacterWidth=l.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(c.get(27),this._typicalHalfwidthCharacterWidth),I.Configuration.applyFontInfo(this._domNode,l),!0}onCursorPositionChanged(r){return this._position=r,!0}_prepareRender(r){let c="";if(this._cursorStyle===b.TextEditorCursorStyle.Line||this._cursorStyle===b.TextEditorCursorStyle.LineThin){const v=r.visibleRangeForPosition(this._position);if(!v||v.outsideRenderedLine)return null;let m;if(this._cursorStyle===b.TextEditorCursorStyle.Line){if(m=y.computeScreenAwareSize(this._lineCursorWidth>0?this._lineCursorWidth:2),m>2){const w=this._context.model.getLineContent(this._position.lineNumber),k=T.nextCharLength(w,this._position.column-1);c=w.substr(this._position.column-1,k)}}else m=y.computeScreenAwareSize(1);let _=v.left;m>=2&&_>=1&&(_-=1);const L=r.getVerticalOffsetForLineNumber(this._position.lineNumber)-r.bigNumbersDelta;return new g(L,_,m,this._lineHeight,c,"")}const l=this._context.model.getLineContent(this._position.lineNumber),a=T.nextCharLength(l,this._position.column-1),s=r.linesVisibleRangesForRange(new p.Range(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+a),!1);if(!s||s.length===0)return null;const o=s[0];if(o.outsideRenderedLine||o.ranges.length===0)return null;const n=o.ranges[0],d=n.width<1?this._typicalHalfwidthCharacterWidth:n.width;let u="";if(this._cursorStyle===b.TextEditorCursorStyle.Block){const v=this._context.model.getViewLineData(this._position.lineNumber);c=l.substr(this._position.column-1,a);const m=v.tokens.findTokenIndexAtOffset(this._position.column-1);u=v.tokens.getClassName(m)}let f=r.getVerticalOffsetForLineNumber(this._position.lineNumber)-r.bigNumbersDelta,S=this._lineHeight;return(this._cursorStyle===b.TextEditorCursorStyle.Underline||this._cursorStyle===b.TextEditorCursorStyle.UnderlineThin)&&(f+=this._lineHeight-2,S=2),new g(f,n.left,d,S,c,u)}prepareRender(r){this._renderData=this._prepareRender(r)}render(r){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${h.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}e.ViewCursor=i}),define(ee[126],te([0,1,484,4,39,33,109,100]),function(q,e,y,N,T,I,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PLAINTEXT_EXTENSION=e.PLAINTEXT_MODE_ID=e.ModesRegistry=e.EditorModesRegistry=e.Extensions=void 0,e.Extensions={ModesRegistry:"editor.modesRegistry"};class p{constructor(){this._onDidChangeLanguages=new N.Emitter,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}registerLanguage(g){return this._languages.push(g),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let i=0,t=this._languages.length;i"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0),I.Registry.as(C.Extensions.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1}}}])}),define(ee[598],te([0,1,48,42,126,253]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cssEscape=e.getIconClasses=void 0;function b(h,g,i,t){const r=t===I.FileKind.ROOT_FOLDER?["rootfolder-icon"]:t===I.FileKind.FOLDER?["folder-icon"]:["file-icon"];if(i){let c;if(i.scheme===y.Schemas.data?c=N.DataUri.parseMetaData(i).get(N.DataUri.META_DATA_LABEL):c=p((0,N.basenameOrAuthority)(i).toLowerCase()),t===I.FileKind.FOLDER)r.push(`${c}-name-folder-icon`);else{if(c){if(r.push(`${c}-name-file-icon`),c.length<=255){const a=c.split(".");for(let s=1;s{this._initializeFromRegistry()})))}dispose(){r.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},I.clearTextMimes();const l=C.ModesRegistry.getLanguages();this._registerLanguages(l)}_registerLanguages(l){for(const a of l)this._registerLanguage(a);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(a=>{let s=this._languages[a];s.name&&(this._nameMap[s.name]=s.identifier),s.aliases.forEach(o=>{this._lowercaseNameMap[o.toLowerCase()]=s.identifier}),s.mimetypes.forEach(o=>{this._mimeTypesMap[o]=s.identifier})}),g.Registry.as(h.Extensions.Configuration).registerOverrideIdentifiers(C.ModesRegistry.getLanguages().map(a=>a.id)),this._onDidChange.fire()}_registerLanguage(l){const a=l.id;let s;i.call(this._languages,a)?s=this._languages[a]:(this.languageIdCodec.register(a),s={identifier:a,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[a]=s),this._mergeLanguage(s,l)}_mergeLanguage(l,a){const s=a.id;let o=null;if(Array.isArray(a.mimetypes)&&a.mimetypes.length>0&&(l.mimetypes.push(...a.mimetypes),o=a.mimetypes[0]),o||(o=`text/x-${s}`,l.mimetypes.push(o)),Array.isArray(a.extensions)){a.configuration?l.extensions=a.extensions.concat(l.extensions):l.extensions=l.extensions.concat(a.extensions);for(let u of a.extensions)I.registerTextMime({id:s,mime:o,extension:u},this._warnOnOverwrite)}if(Array.isArray(a.filenames))for(let u of a.filenames)I.registerTextMime({id:s,mime:o,filename:u},this._warnOnOverwrite),l.filenames.push(u);if(Array.isArray(a.filenamePatterns))for(let u of a.filenamePatterns)I.registerTextMime({id:s,mime:o,filepattern:u},this._warnOnOverwrite);if(typeof a.firstLine=="string"&&a.firstLine.length>0){let u=a.firstLine;u.charAt(0)!=="^"&&(u="^"+u);try{let f=new RegExp(u);b.regExpLeadsToEndlessLoop(f)||I.registerTextMime({id:s,mime:o,firstline:f},this._warnOnOverwrite)}catch(f){(0,y.onUnexpectedError)(f)}}l.aliases.push(s);let n=null;if(typeof a.aliases!="undefined"&&Array.isArray(a.aliases)&&(a.aliases.length===0?n=[null]:n=a.aliases),n!==null)for(const u of n)!u||u.length===0||l.aliases.push(u);let d=n!==null&&n.length>0;if(!(d&&n[0]===null)){let u=(d?n[0]:null)||s;(d||!l.name)&&(l.name=u)}a.configuration&&l.configurationFiles.push(a.configuration)}isRegisteredMode(l){return i.call(this._mimeTypesMap,l)?!0:i.call(this._languages,l)}getModeIdForLanguageNameLowercase(l){return i.call(this._lowercaseNameMap,l)?this._lowercaseNameMap[l]:null}extractModeIds(l){return l?l.split(",").map(a=>a.trim()).map(a=>i.call(this._mimeTypesMap,a)?this._mimeTypesMap[a]:a).filter(a=>i.call(this._languages,a)):[]}validateLanguageId(l){return!l||l===p.NULL_MODE_ID?p.NULL_MODE_ID:i.call(this._languages,l)?l:null}getModeIdsFromFilepathOrFirstLine(l,a){if(!l&&!a)return[];let s=I.guessMimeTypes(l,a);return this.extractModeIds(s.join(","))}}e.LanguagesRegistry=r,r.instanceCount=0}),define(ee[600],te([0,1,4,2,80,599,19]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ModeServiceImpl=void 0;class C{constructor(g,i){this._selector=i,this.languageId=this._selector();let t;this._onDidChange=new y.Emitter({onFirstListenerAdd:()=>{t=g(()=>this._evaluate())},onLastListenerRemove:()=>{t.dispose()}}),this.onDidChange=this._onDidChange.event}_evaluate(){const g=this._selector();g!==this.languageId&&(this.languageId=g,this._onDidChange.fire(this.languageId))}}class p extends N.Disposable{constructor(g=!1){super();this._onDidEncounterLanguage=this._register(new y.Emitter),this.onDidEncounterLanguage=this._onDidEncounterLanguage.event,this._onLanguagesMaybeChanged=this._register(new y.Emitter({leakWarningThreshold:200})),this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,p.instanceCount++,this._encounteredLanguages=new Set,this._registry=this._register(new I.LanguagesRegistry(!0,g)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onLanguagesMaybeChanged.fire()))}dispose(){p.instanceCount--,super.dispose()}isRegisteredMode(g){return this._registry.isRegisteredMode(g)}getModeIdForLanguageName(g){return this._registry.getModeIdForLanguageNameLowercase(g)}getModeIdByFilepathOrFirstLine(g,i){const t=this._registry.getModeIdsFromFilepathOrFirstLine(g,i);return(0,b.firstOrDefault)(t,null)}getModeId(g){const i=this._registry.extractModeIds(g);return(0,b.firstOrDefault)(i,null)}validateLanguageId(g){return this._registry.validateLanguageId(g)}create(g){return new C(this.onLanguagesMaybeChanged,()=>{const i=this.getModeId(g);return this._createModeAndGetLanguageIdentifier(i)})}createByFilepathOrFirstLine(g,i){return new C(this.onLanguagesMaybeChanged,()=>{const t=this.getModeIdByFilepathOrFirstLine(g,i);return this._createModeAndGetLanguageIdentifier(t)})}_createModeAndGetLanguageIdentifier(g){const i=this.validateLanguageId(g||"plaintext")||T.NULL_MODE_ID;return this._getOrCreateMode(i),i}triggerMode(g){const i=this.getModeId(g);this._getOrCreateMode(i||"plaintext")}_getOrCreateMode(g){if(!this._encounteredLanguages.has(g)){this._encounteredLanguages.add(g);const i=this.validateLanguageId(g)||T.NULL_MODE_ID;this._onDidEncounterLanguage.fire(i)}}}e.ModeServiceImpl=p,p.instanceCount=0}),define(ee[601],te([0,1,7,19,70,2,101,241,54,53,220]),function(q,e,y,N,T,I,b,C,p,h,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ModesGlyphHoverWidget=void 0;const i=y.$;class t{constructor(l){this._editor=l,this._lineNumber=-1,this._result=[]}setLineNumber(l){this._lineNumber=l,this._result=[]}clearResult(){this._result=[]}computeSync(){const l=o=>({value:o}),a=this._editor.getLineDecorations(this._lineNumber),s=[];if(!a)return s;for(const o of a){if(!o.options.glyphMarginClassName)continue;const n=o.options.glyphMarginHoverMessage;!n||(0,T.isEmptyMarkdownString)(n)||s.push(...(0,N.asArray)(n).map(l))}return s}onResult(l,a){this._result=this._result.concat(l)}getResult(){return this._result}getResultWithLoadingMessage(){return this.getResult()}}class r extends p.Widget{constructor(l,a,s=h.NullOpenerService){super();this._renderDisposeables=this._register(new I.DisposableStore),this._editor=l,this._isVisible=!1,this._messages=[],this._lastLineNumber=-1,this._hover=this._register(new g.HoverWidget),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new b.MarkdownRenderer({editor:this._editor},a,s)),this._computer=new t(this._editor),this._hoverOperation=new C.HoverOperation(this._computer,o=>this._withResult(o),void 0,o=>this._withResult(o),300),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(43)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._hoverOperation.cancel(),this._editor.removeOverlayWidget(this),super.dispose()}getId(){return r.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_showAt(l){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const a=this._editor.getLayoutInfo(),s=this._editor.getTopForLineNumber(l),o=this._editor.getScrollTop(),n=this._editor.getOption(58),d=this._hover.containerDomNode.clientHeight,u=s-o-(d-n)/2;this._hover.containerDomNode.style.left=`${a.glyphMarginLeft+a.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(u),0)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(a=>this._editor.applyFontInfo(a))}_updateContents(l){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(l),this._updateFont()}onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))}startShowingAt(l){this._lastLineNumber!==l&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=l,this._computer.setLineNumber(l),this._hoverOperation.start(0))}hide(){this._lastLineNumber=-1,this._hoverOperation.cancel(),!!this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(l){this._messages=l,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()}_renderMessages(l,a){this._renderDisposeables.clear();const s=document.createDocumentFragment();for(const o of a){const n=i("div.hover-row.markdown-hover"),d=y.append(n,i("div.hover-contents")),u=this._renderDisposeables.add(this._markdownRenderer.render(o.value));d.appendChild(u.element),s.appendChild(n)}this._updateContents(s),this._showAt(l)}}e.ModesGlyphHoverWidget=r,r.ID="editor.contrib.modesGlyphHoverWidget"}),define(ee[269],te([0,1,34,7,63,27,4,70,2,101,30,247,541,9]),function(q,e,y,N,T,I,b,C,p,h,g,i,t,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SuggestDetailsOverlay=e.SuggestDetailsWidget=e.canExpandCompletionItem=void 0;function c(s){return!!s&&Boolean(s.completion.documentation||s.completion.detail&&s.completion.detail!==s.completion.label)}e.canExpandCompletionItem=c;let l=class{constructor(o,n){this._editor=o,this._onDidClose=new b.Emitter,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new b.Emitter,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new p.DisposableStore,this._renderDisposeable=new p.DisposableStore,this._borderWidth=1,this._size=new N.Dimension(330,0),this.domNode=N.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=n.createInstance(h.MarkdownRenderer,{editor:o}),this._body=N.$(".body"),this._scrollbar=new T.DomScrollableElement(this._body,{}),N.append(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=N.append(this._body,N.$(".header")),this._close=N.append(this._header,N.$("span"+I.Codicon.close.cssSelector)),this._close.title=t.localize(0,null),this._type=N.append(this._header,N.$("p.type")),this._docs=N.append(this._body,N.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(d=>{d.hasChanged(43)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const o=this._editor.getOptions(),n=o.get(43),d=n.getMassagedFontFamily(y.isSafari?g.EDITOR_FONT_DEFAULTS.fontFamily:null),u=o.get(106)||n.fontSize,f=o.get(107)||n.lineHeight,S=n.fontWeight,v=`${u}px`,m=`${f}px`;this.domNode.style.fontSize=v,this.domNode.style.lineHeight=`${f/u}`,this.domNode.style.fontWeight=S,this.domNode.style.fontFeatureSettings=n.fontFeatureSettings,this._type.style.fontFamily=d,this._close.style.height=m,this._close.style.width=m}getLayoutInfo(){const o=this._editor.getOption(107)||this._editor.getOption(43).lineHeight,n=this._borderWidth,d=n*2;return{lineHeight:o,borderWidth:n,borderHeight:d,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=t.localize(1,null),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,this.getLayoutInfo().lineHeight*2),this._onDidChangeContents.fire(this)}renderItem(o,n){var d,u;this._renderDisposeable.clear();let{detail:f,documentation:S}=o.completion;if(n){let v="";v+=`score: ${o.score[0]}
`,v+=`prefix: ${(d=o.word)!==null&&d!==void 0?d:"(no prefix)"}
`,v+=`word: ${o.completion.filterText?o.completion.filterText+" (filterText)":o.textLabel}
`,v+=`distance: ${o.distance} (localityBonus-setting)
`,v+=`index: ${o.idx}, based on ${o.completion.sortText&&`sortText: "${o.completion.sortText}"`||"label"}
`,v+=`commit_chars: ${(u=o.completion.commitCharacters)===null||u===void 0?void 0:u.join("")}
`,S=new C.MarkdownString().appendCodeblock("empty",v),f=`Provider: ${o.provider._debugDisplayName}`}if(!n&&!c(o)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),f){const v=f.length>1e5?`${f.substr(0,1e5)}\u2026`:f;this._type.textContent=v,this._type.title=v,N.show(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(v))}else N.clearNode(this._type),this._type.title="",N.hide(this._type),this.domNode.classList.add("no-type");if(N.clearNode(this._docs),typeof S=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=S;else if(S){this._docs.classList.add("markdown-docs"),N.clearNode(this._docs);const v=this._markdownRenderer.render(S);this._docs.appendChild(v.element),this._renderDisposeable.add(v),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=v=>{v.preventDefault(),v.stopPropagation()},this._close.onclick=v=>{v.preventDefault(),v.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(o,n){const d=new N.Dimension(o,n);N.Dimension.equals(d,this._size)||(this._size=d,N.size(this.domNode,o,n)),this._scrollbar.scanDomNode()}scrollDown(o=8){this._body.scrollTop+=o}scrollUp(o=8){this._body.scrollTop-=o}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(o){this._borderWidth=o}get borderWidth(){return this._borderWidth}};l=Be([Ce(1,r.IInstantiationService)],l),e.SuggestDetailsWidget=l;class a{constructor(o,n){this.widget=o,this._editor=n,this._disposables=new p.DisposableStore,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new i.ResizableHTMLElement,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(o.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let d,u,f=0,S=0;this._disposables.add(this._resizable.onDidWillResize(()=>{d=this._topLeft,u=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(v=>{if(d&&u){this.widget.layout(v.dimension.width,v.dimension.height);let m=!1;v.west&&(S=u.width-v.dimension.width,m=!0),v.north&&(f=u.height-v.dimension.height,m=!0),m&&this._applyTopLeft({top:d.top+f,left:d.left+S})}v.done&&(d=void 0,u=void 0,f=0,S=0,this._userSize=v.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var v;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(v=this._userSize)!==null&&v!==void 0?v:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(o=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),o&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(o,n){var d;const u=o.getBoundingClientRect();this._anchorBox=u,this._preferAlignAtTop=n,this._placeAtAnchor(this._anchorBox,(d=this._userSize)!==null&&d!==void 0?d:this.widget.size,n)}_placeAtAnchor(o,n,d){var u;const f=N.getClientArea(document.body),S=this.widget.getLayoutInfo(),v=new N.Dimension(220,2*S.lineHeight),m=o.top,_=function(){const P=f.width-(o.left+o.width+S.borderWidth+S.horizontalPadding),E=-S.borderWidth+o.left+o.width,B=new N.Dimension(P,f.height-o.top-S.borderHeight-S.verticalPadding),V=B.with(void 0,o.top+o.height-S.borderHeight-S.verticalPadding);return{top:m,left:E,fit:P-n.width,maxSizeTop:B,maxSizeBottom:V,minSize:v.with(Math.min(P,v.width))}}(),L=function(){const P=o.left-S.borderWidth-S.horizontalPadding,E=Math.max(S.horizontalPadding,o.left-n.width-S.borderWidth),B=new N.Dimension(P,f.height-o.top-S.borderHeight-S.verticalPadding),V=B.with(void 0,o.top+o.height-S.borderHeight-S.verticalPadding);return{top:m,left:E,fit:P-n.width,maxSizeTop:B,maxSizeBottom:V,minSize:v.with(Math.min(P,v.width))}}(),w=function(){const P=o.left,E=-S.borderWidth+o.top+o.height,B=new N.Dimension(o.width-S.borderHeight,f.height-o.top-o.height-S.verticalPadding);return{top:E,left:P,fit:B.height-n.height,maxSizeBottom:B,maxSizeTop:B,minSize:v.with(B.width)}}(),k=[_,L,w],D=(u=k.find(P=>P.fit>=0))!==null&&u!==void 0?u:k.sort((P,E)=>E.fit-P.fit)[0],M=o.top+o.height-S.borderHeight;let O,F=n.height;const R=Math.max(D.maxSizeTop.height,D.maxSizeBottom.height);F>R&&(F=R);let A;d?F<=D.maxSizeTop.height?(O=!0,A=D.maxSizeTop):(O=!1,A=D.maxSizeBottom):F<=D.maxSizeBottom.height?(O=!1,A=D.maxSizeBottom):(O=!0,A=D.maxSizeTop),this._applyTopLeft({left:D.left,top:O?D.top:M-F}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!O,D===_,O,D!==_),this._resizable.minSize=D.minSize,this._resizable.maxSize=A,this._resizable.layout(F,Math.min(A.width,n.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(o){this._topLeft=o,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}e.SuggestDetailsOverlay=a}),define(ee[602],te([0,1,19,47,37,20,25,35,100,33]),function(q,e,y,N,T,I,b,C,p,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationChangeEvent=e.Configuration=e.DefaultConfigurationModel=e.ConfigurationModel=void 0;class g{constructor(l={},a=[],s=[]){this._contents=l,this._keys=a,this._overrides=s,this.isFrozen=!1,this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(l){return l?(0,C.getConfigurationValue)(this.contents,l):this.contents}override(l){let a=this.overrideConfigurations.get(l);return a||(a=this.createOverrideConfigurationModel(l),this.overrideConfigurations.set(l,a)),a}merge(...l){const a=T.deepClone(this.contents),s=T.deepClone(this.overrides),o=[...this.keys];for(const n of l){this.mergeContents(a,n.contents);for(const d of n.overrides){const[u]=s.filter(f=>y.equals(f.identifiers,d.identifiers));u?(this.mergeContents(u.contents,d.contents),u.keys.push(...d.keys),u.keys=y.distinct(u.keys)):s.push(T.deepClone(d))}for(const d of n.keys)o.indexOf(d)===-1&&o.push(d)}return new g(a,o,s)}freeze(){return this.isFrozen=!0,this}createOverrideConfigurationModel(l){const a=this.getContentsForOverrideIdentifer(l);if(!a||typeof a!="object"||!Object.keys(a).length)return this;let s={};for(const o of y.distinct([...Object.keys(this.contents),...Object.keys(a)])){let n=this.contents[o],d=a[o];d&&(typeof n=="object"&&typeof d=="object"?(n=T.deepClone(n),this.mergeContents(n,d)):n=d),s[o]=n}return new g(s,this.keys,this.overrides)}mergeContents(l,a){for(const s of Object.keys(a)){if(s in l&&I.isObject(l[s])&&I.isObject(a[s])){this.mergeContents(l[s],a[s]);continue}l[s]=T.deepClone(a[s])}}checkAndFreeze(l){return this.isFrozen&&!Object.isFrozen(l)?T.deepFreeze(l):l}getContentsForOverrideIdentifer(l){let a=null,s=null;const o=n=>{n&&(s?this.mergeContents(s,n):s=T.deepClone(n))};for(const n of this.overrides)y.equals(n.identifiers,[l])?a=n.contents:n.identifiers.includes(l)&&o(n.contents);return o(a),s}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(l,a){this.addKey(l),(0,C.addToValueTree)(this.contents,l,a,s=>{throw new Error(s)})}removeValue(l){this.removeKey(l)&&(0,C.removeFromValueTree)(this.contents,l)}addKey(l){let a=this.keys.length;for(let s=0;sconsole.error(`Conflict in default settings: ${S}`))}for(const d of Object.keys(o))p.OVERRIDE_PROPERTY_REGEX.test(d)&&n.push({identifiers:(0,p.overrideIdentifiersFromKey)(d),keys:Object.keys(o[d]),contents:(0,C.toValuesTree)(o[d],u=>console.error(`Conflict in default settings file: ${u}`))});super(o,s,n)}}e.DefaultConfigurationModel=i;class t{constructor(l,a,s=new g,o=new g,n=new N.ResourceMap,d=new g,u=new N.ResourceMap,f=!0){this._defaultConfiguration=l,this._localUserConfiguration=a,this._remoteUserConfiguration=s,this._workspaceConfiguration=o,this._folderConfigurations=n,this._memoryConfiguration=d,this._memoryConfigurationByResource=u,this._freeze=f,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new N.ResourceMap,this._userConfiguration=null}getValue(l,a,s){return this.getConsolidateConfigurationModel(a,s).getValue(l)}updateValue(l,a,s={}){let o;s.resource?(o=this._memoryConfigurationByResource.get(s.resource),o||(o=new g,this._memoryConfigurationByResource.set(s.resource,o))):o=this._memoryConfiguration,a===void 0?o.removeValue(l):o.setValue(l,a),s.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(l,a){let s=this.getConsolidatedConfigurationModelForResource(l,a);return l.overrideIdentifier?s.override(l.overrideIdentifier):s}getConsolidatedConfigurationModelForResource({resource:l},a){let s=this.getWorkspaceConsolidatedConfiguration();if(a&&l){const o=a.getFolder(l);o&&(s=this.getFolderConsolidatedConfiguration(o.uri)||s);const n=this._memoryConfigurationByResource.get(l);n&&(s=s.merge(n))}return s}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(l){let a=this._foldersConsolidatedConfigurations.get(l);if(!a){const s=this.getWorkspaceConsolidatedConfiguration(),o=this._folderConfigurations.get(l);o?(a=s.merge(o),this._freeze&&(a=a.freeze()),this._foldersConsolidatedConfigurations.set(l,a)):a=s}return a}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((l,a)=>{const{contents:s,overrides:o,keys:n}=this._folderConfigurations.get(a);return l.push([a,{contents:s,overrides:o,keys:n}]),l},[])}}static parse(l){const a=this.parseConfigurationModel(l.defaults),s=this.parseConfigurationModel(l.user),o=this.parseConfigurationModel(l.workspace),n=l.folders.reduce((d,u)=>(d.set(b.URI.revive(u[0]),this.parseConfigurationModel(u[1])),d),new N.ResourceMap);return new t(a,s,new g,o,n,new g,new N.ResourceMap,!1)}static parseConfigurationModel(l){return new g(l.contents,l.keys,l.overrides).freeze()}}e.Configuration=t;class r{constructor(l,a,s,o){this.change=l,this.previous=a,this.currentConfiguraiton=s,this.currentWorkspace=o,this._previousConfiguration=void 0;const n=new Set;l.keys.forEach(u=>n.add(u)),l.overrides.forEach(([,u])=>u.forEach(f=>n.add(f))),this.affectedKeys=[...n.values()];const d=new g;this.affectedKeys.forEach(u=>d.setValue(u,{})),this.affectedKeysTree=d.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=t.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(l,a){var s;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,l)){if(a){const o=this.previousConfiguration?this.previousConfiguration.getValue(l,a,(s=this.previous)===null||s===void 0?void 0:s.workspace):void 0,n=this.currentConfiguraiton.getValue(l,a,this.currentWorkspace);return!T.equals(o,n)}return!0}return!1}doesAffectedKeysTreeContains(l,a){let s=(0,C.toValuesTree)({[a]:!0},()=>{}),o;for(;typeof s=="object"&&(o=Object.keys(s)[0]);){if(l=l[o],!l)return!1;s=s[o]}return!0}}e.ConfigurationChangeEvent=r}),define(ee[82],te([0,1,95,17,26,33]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=e.KeybindingsRegistry=void 0;class b{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(h){if(N.OS===1){if(h&&h.win)return h.win}else if(N.OS===2){if(h&&h.mac)return h.mac}else if(h&&h.linux)return h.linux;return h}registerKeybindingRule(h){const g=b.bindToCurrentPlatform(h);if(g&&g.primary){const i=(0,y.createKeybinding)(g.primary,N.OS);i&&this._registerDefaultKeybinding(i,h.id,h.args,h.weight,0,h.when)}if(g&&Array.isArray(g.secondary))for(let i=0,t=g.secondary.length;i=21&&h<=30||h>=31&&h<=56?!0:h===80||h===81||h===82||h===83||h===84||h===85||h===86||h===110||h===111||h===87||h===88||h===89||h===90||h===91||h===92}_assertNoCtrlAlt(h,g){h.ctrlKey&&h.altKey&&!h.metaKey&&b._mightProduceChar(h.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",h," for ",g)}_registerDefaultKeybinding(h,g,i,t,r,c){N.OS===1&&this._assertNoCtrlAlt(h.parts[0],g),this._coreKeybindings.push({keybinding:h.parts,command:g,commandArgs:i,when:c,weight1:t,weight2:r,extensionId:null,isBuiltinExtension:!1}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(C)),this._cachedMergedKeybindings.slice(0)}}e.KeybindingsRegistry=new b,e.Extensions={EditorModes:"platform.keybindingsRegistry"},I.Registry.add(e.Extensions.EditorModes,e.KeybindingsRegistry);function C(p,h){return p.weight1!==h.weight1?p.weight1-h.weight1:p.commandh.command?1:p.weight2-h.weight2}}),define(ee[102],te([0,1,19,2,33]),function(q,e,y,N,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickAccessRegistry=e.Extensions=e.DefaultQuickAccessFilterValue=void 0;var I;(function(C){C[C.PRESERVE=0]="PRESERVE",C[C.LAST=1]="LAST"})(I=e.DefaultQuickAccessFilterValue||(e.DefaultQuickAccessFilterValue={})),e.Extensions={Quickaccess:"workbench.contributions.quickaccess"};class b{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(p){return p.prefix.length===0?this.defaultProvider=p:this.providers.push(p),this.providers.sort((h,g)=>g.prefix.length-h.prefix.length),(0,N.toDisposable)(()=>{this.providers.splice(this.providers.indexOf(p),1),this.defaultProvider===p&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return(0,y.coalesce)([this.defaultProvider,...this.providers])}getQuickAccessProvider(p){return p&&this.providers.find(g=>p.startsWith(g.prefix))||void 0||this.defaultProvider}}e.QuickAccessRegistry=b,T.Registry.add(e.Extensions.Quickaccess,new b)}),define(ee[603],te([0,1,2,559,102,75,33]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HelpQuickAccessProvider=void 0;let C=class At{constructor(h){this.quickInputService=h,this.registry=b.Registry.as(T.Extensions.Quickaccess)}provide(h){const g=new y.DisposableStore;g.add(h.onDidAccept(()=>{const[r]=h.selectedItems;r&&this.quickInputService.quickAccess.show(r.prefix,{preserveValue:!0})})),g.add(h.onDidChangeValue(r=>{const c=this.registry.getQuickAccessProvider(r.substr(At.PREFIX.length));c&&c.prefix&&c.prefix!==At.PREFIX&&this.quickInputService.quickAccess.show(c.prefix,{preserveValue:!0})}));const{editorProviders:i,globalProviders:t}=this.getQuickAccessProviders();return h.items=i.length===0||t.length===0?[...i.length===0?t:i]:[{label:(0,N.localize)(0,null),type:"separator"},...t,{label:(0,N.localize)(1,null),type:"separator"},...i],g}getQuickAccessProviders(){const h=[],g=[];for(const i of this.registry.getQuickAccessProviders().sort((t,r)=>t.prefix.localeCompare(r.prefix)))if(i.prefix!==At.PREFIX)for(const t of i.helpEntries){const r=t.prefix||i.prefix,c=r||"\u2026";(t.needsEditor?g:h).push({prefix:r,label:c,ariaLabel:(0,N.localize)(2,null,c,t.description),description:t.description})}return{editorProviders:g,globalProviders:h}}};C.PREFIX="?",C=Be([Ce(0,I.IQuickInputService)],C),e.HelpQuickAccessProvider=C}),define(ee[604],te([0,1,33,102,65,603]),function(q,e,y,N,T,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),y.Registry.as(N.Extensions.Quickaccess).registerQuickAccessProvider({ctor:I.HelpQuickAccessProvider,prefix:"",helpEntries:[{description:T.QuickHelpNLS.helpQuickAccessActionLabel,needsEditor:!0}]})}),define(ee[605],te([0,1,10,23,84,2,9,102,75,33]),function(q,e,y,N,T,I,b,C,p,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QuickAccessController=void 0;let g=class extends I.Disposable{constructor(t,r){super();this.quickInputService=t,this.instantiationService=r,this.registry=h.Registry.as(C.Extensions.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(t="",r){this.doShowOrPick(t,!1,r)}doShowOrPick(t,r,c){var l;const[a,s]=this.getOrInstantiateProvider(t),o=this.visibleQuickAccess,n=o==null?void 0:o.descriptor;if(o&&s&&n===s){t!==s.prefix&&!(c==null?void 0:c.preserveValue)&&(o.picker.value=t),this.adjustValueSelection(o.picker,s,c);return}if(s&&!(c==null?void 0:c.preserveValue)){let v;if(o&&n&&n!==s){const m=o.value.substr(n.prefix.length);m&&(v=`${s.prefix}${m}`)}if(!v){const m=a==null?void 0:a.defaultFilterValue;m===C.DefaultQuickAccessFilterValue.LAST?v=this.lastAcceptedPickerValues.get(s):typeof m=="string"&&(v=`${s.prefix}${m}`)}typeof v=="string"&&(t=v)}const d=new I.DisposableStore,u=d.add(this.quickInputService.createQuickPick());u.value=t,this.adjustValueSelection(u,s,c),u.placeholder=s==null?void 0:s.placeholder,u.quickNavigate=c==null?void 0:c.quickNavigateConfiguration,u.hideInput=!!u.quickNavigate&&!o,(typeof(c==null?void 0:c.itemActivation)=="number"||(c==null?void 0:c.quickNavigateConfiguration))&&(u.itemActivation=(l=c==null?void 0:c.itemActivation)!==null&&l!==void 0?l:p.ItemActivation.SECOND),u.contextKey=s==null?void 0:s.contextKey,u.filterValue=v=>v.substring(s?s.prefix.length:0),(s==null?void 0:s.placeholder)&&(u.ariaLabel=s==null?void 0:s.placeholder);let f;r&&(f=new y.DeferredPromise,d.add((0,T.once)(u.onWillAccept)(v=>{v.veto(),u.hide()}))),d.add(this.registerPickerListeners(u,a,s,t));const S=d.add(new N.CancellationTokenSource);if(a&&d.add(a.provide(u,S.token)),(0,T.once)(u.onDidHide)(()=>{u.selectedItems.length===0&&S.cancel(),d.dispose(),f==null||f.complete(u.selectedItems.slice(0))}),u.show(),r)return f==null?void 0:f.p}adjustValueSelection(t,r,c){var l;let a;(c==null?void 0:c.preserveValue)?a=[t.value.length,t.value.length]:a=[(l=r==null?void 0:r.prefix.length)!==null&&l!==void 0?l:0,t.value.length],t.valueSelection=a}registerPickerListeners(t,r,c,l){const a=new I.DisposableStore,s=this.visibleQuickAccess={picker:t,descriptor:c,value:l};return a.add((0,I.toDisposable)(()=>{s===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),a.add(t.onDidChangeValue(o=>{const[n]=this.getOrInstantiateProvider(o);n!==r?this.show(o,{preserveValue:!0}):s.value=o})),c&&a.add(t.onDidAccept(()=>{this.lastAcceptedPickerValues.set(c,t.value)})),a}getOrInstantiateProvider(t){const r=this.registry.getQuickAccessProvider(t);if(!r)return[void 0,void 0];let c=this.mapProviderToDescriptor.get(r);return c||(c=this.instantiationService.createInstance(r.ctor),this.mapProviderToDescriptor.set(r,c)),[c,r]}};g=Be([Ce(0,p.IQuickInputService),Ce(1,b.IInstantiationService)],g),e.QuickAccessController=g}),define(ee[76],te([0,1,4,2,20,317,9]),function(q,e,y,N,T,I,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorageService=e.AbstractStorageService=e.WillSaveStateReason=e.IStorageService=void 0;const C="__$__targetStorageMarker";e.IStorageService=(0,b.createDecorator)("storageService");var p;(function(i){i[i.NONE=0]="NONE",i[i.SHUTDOWN=1]="SHUTDOWN"})(p=e.WillSaveStateReason||(e.WillSaveStateReason={}));class h extends N.Disposable{constructor(t={flushInterval:h.DEFAULT_FLUSH_INTERVAL}){super();this.options=t,this._onDidChangeValue=this._register(new y.PauseableEmitter),this._onDidChangeTarget=this._register(new y.PauseableEmitter),this._onWillSaveState=this._register(new y.Emitter),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._globalKeyTargets=void 0}emitDidChangeValue(t,r){r===C?(t===0?this._globalKeyTargets=void 0:t===1&&(this._workspaceKeyTargets=void 0),this._onDidChangeTarget.fire({scope:t})):this._onDidChangeValue.fire({scope:t,key:r,target:this.getKeyTargets(t)[r]})}get(t,r,c){var l;return(l=this.getStorage(r))===null||l===void 0?void 0:l.get(t,c)}getBoolean(t,r,c){var l;return(l=this.getStorage(r))===null||l===void 0?void 0:l.getBoolean(t,c)}getNumber(t,r,c){var l;return(l=this.getStorage(r))===null||l===void 0?void 0:l.getNumber(t,c)}store(t,r,c,l){if((0,T.isUndefinedOrNull)(r)){this.remove(t,c);return}this.withPausedEmitters(()=>{var a;this.updateKeyTarget(t,c,l),(a=this.getStorage(c))===null||a===void 0||a.set(t,r)})}remove(t,r){this.withPausedEmitters(()=>{var c;this.updateKeyTarget(t,r,void 0),(c=this.getStorage(r))===null||c===void 0||c.delete(t)})}withPausedEmitters(t){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{t()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(t,r,c){var l,a;const s=this.getKeyTargets(r);typeof c=="number"?s[t]!==c&&(s[t]=c,(l=this.getStorage(r))===null||l===void 0||l.set(C,JSON.stringify(s))):typeof s[t]=="number"&&(delete s[t],(a=this.getStorage(r))===null||a===void 0||a.set(C,JSON.stringify(s)))}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(t){return t===0?this.globalKeyTargets:this.workspaceKeyTargets}loadKeyTargets(t){const r=this.get(C,t);if(r)try{return JSON.parse(r)}catch(c){}return Object.create(null)}}e.AbstractStorageService=h,h.DEFAULT_FLUSH_INTERVAL=60*1e3;class g extends h{constructor(){super();this.globalStorage=this._register(new I.Storage(new I.InMemoryStorageDatabase)),this.workspaceStorage=this._register(new I.Storage(new I.InMemoryStorageDatabase)),this._register(this.workspaceStorage.onDidChangeStorage(t=>this.emitDidChangeValue(1,t))),this._register(this.globalStorage.onDidChangeStorage(t=>this.emitDidChangeValue(0,t)))}getStorage(t){return t===0?this.globalStorage:this.workspaceStorage}}e.InMemoryStorageService=g}),define(ee[606],te([0,1,10,84,47,3,262,71,9,76]),function(q,e,y,N,T,I,b,C,p,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CodeLensCache=e.ICodeLensCache=void 0,e.ICodeLensCache=(0,p.createDecorator)("ICodeLensCache");class g{constructor(r,c){this.lineCount=r,this.data=c}}let i=class{constructor(r){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new T.LRUCache(20,.75);const c="codelens/cache";(0,y.runWhenIdle)(()=>r.remove(c,1));const l="codelens/cache2",a=r.get(l,1,"{}");this._deserialize(a),(0,N.once)(r.onWillSaveState)(s=>{s.reason===h.WillSaveStateReason.SHUTDOWN&&r.store(l,this._serialize(),1,1)})}put(r,c){const l=c.lenses.map(o=>{var n;return{range:o.symbol.range,command:o.symbol.command&&{id:"",title:(n=o.symbol.command)===null||n===void 0?void 0:n.title}}}),a=new b.CodeLensModel;a.add({lenses:l,dispose:()=>{}},this._fakeProvider);const s=new g(r.getLineCount(),a);this._cache.set(r.uri.toString(),s)}get(r){const c=this._cache.get(r.uri.toString());return c&&c.lineCount===r.getLineCount()?c.data:void 0}delete(r){this._cache.delete(r.uri.toString())}_serialize(){const r=Object.create(null);for(const[c,l]of this._cache){const a=new Set;for(const s of l.data.lenses)a.add(s.symbol.range.startLineNumber);r[c]={lineCount:l.lineCount,lines:[...a.values()]}}return JSON.stringify(r)}_deserialize(r){try{const c=JSON.parse(r);for(const l in c){const a=c[l],s=[];for(const n of a.lines)s.push({range:new I.Range(n,1,n,11)});const o=new b.CodeLensModel;o.add({lenses:s,dispose(){}},this._fakeProvider),this._cache.set(l,new g(a.lineCount,o))}}catch(c){}}};i=Be([Ce(0,h.IStorageService)],i),e.CodeLensCache=i,(0,C.registerSingleton)(e.ICodeLensCache,i)}),define(ee[607],te([0,1,10,2,47,18,35,71,9,76]),function(q,e,y,N,T,I,b,C,p,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ISuggestMemoryService=e.SuggestMemoryService=e.PrefixMemory=e.LRUMemory=e.NoMemory=e.Memory=void 0;class g{constructor(a){this.name=a}select(a,s,o){if(o.length===0)return 0;let n=o[0].score[0];for(let d=0;dS&&_.type===o[v].completion.kind&&_.insertText===o[v].completion.insertText&&(S=_.touch,f=v),o[v].completion.preselect&&u===-1)return u=v}return f!==-1?f:u!==-1?u:0}toJSON(){return this._cache.toJSON()}fromJSON(a){this._cache.clear();let s=0;for(const[o,n]of a)n.touch=s,n.type=typeof n.type=="number"?n.type:(0,I.completionKindFromString)(n.type),this._cache.set(o,n);this._seq=this._cache.size}}e.LRUMemory=t;class r extends g{constructor(){super("recentlyUsedByPrefix");this._trie=T.TernarySearchTree.forStrings(),this._seq=0}memorize(a,s,o){const{word:n}=a.getWordUntilPosition(s),d=`${a.getLanguageId()}/${n}`;this._trie.set(d,{type:o.completion.kind,insertText:o.completion.insertText,touch:this._seq++})}select(a,s,o){let{word:n}=a.getWordUntilPosition(s);if(!n)return super.select(a,s,o);let d=`${a.getLanguageId()}/${n}`,u=this._trie.get(d);if(u||(u=this._trie.findSubstr(d)),u)for(let f=0;fa.push([o,s])),a.sort((s,o)=>-(s[1].touch-o[1].touch)).forEach((s,o)=>s[1].touch=o),a.slice(0,200)}fromJSON(a){if(this._trie.clear(),a.length>0){this._seq=a[0][1].touch+1;for(const[s,o]of a)o.type=typeof o.type=="number"?o.type:(0,I.completionKindFromString)(o.type),this._trie.set(s,o)}}}e.PrefixMemory=r;let c=class Rt{constructor(a,s){this._storageService=a,this._configService=s,this._disposables=new N.DisposableStore,this._persistSoon=new y.RunOnceScheduler(()=>this._saveState(),500),this._disposables.add(a.onWillSaveState(o=>{o.reason===h.WillSaveStateReason.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(a,s,o){this._withStrategy(a,s).memorize(a,s,o),this._persistSoon.schedule()}select(a,s,o){return this._withStrategy(a,s).select(a,s,o)}_withStrategy(a,s){var o;const n=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:a.getLanguageIdAtPosition(s.lineNumber,s.column),resource:a.uri});if(((o=this._strategy)===null||o===void 0?void 0:o.name)!==n){this._saveState();const d=Rt._strategyCtors.get(n)||i;this._strategy=new d;try{const f=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,S=this._storageService.get(`${Rt._storagePrefix}/${n}`,f);S&&this._strategy.fromJSON(JSON.parse(S))}catch(u){}}return this._strategy}_saveState(){if(this._strategy){const s=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,o=JSON.stringify(this._strategy);this._storageService.store(`${Rt._storagePrefix}/${this._strategy.name}`,o,s,1)}}};c._strategyCtors=new Map([["recentlyUsedByPrefix",r],["recentlyUsed",t],["first",i]]),c._storagePrefix="suggest/memories",c=Be([Ce(0,h.IStorageService),Ce(1,b.IConfigurationService)],c),e.SuggestMemoryService=c,e.ISuggestMemoryService=(0,p.createDecorator)("ISuggestMemories"),(0,C.registerSingleton)(e.ISuggestMemoryService,c,!0)}),define(ee[83],te([0,1,9]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITelemetryService=void 0,e.ITelemetryService=(0,y.createDecorator)("telemetryService")}),define(ee[608],te([0,1,463,13,69,2,47,79,20,558,26,35,124,9,41,594,76,83]),function(q,e,y,N,T,I,b,C,p,h,g,i,t,r,c,l,a,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommandsHistory=e.AbstractCommandsQuickAccessProvider=void 0;let o=class Pt extends l.PickerQuickAccessProvider{constructor(u,f,S,v,m,_){super(Pt.PREFIX,u);this.instantiationService=f,this.keybindingService=S,this.commandService=v,this.telemetryService=m,this.dialogService=_,this.commandsHistory=this._register(this.instantiationService.createInstance(n)),this.options=u}_getPicks(u,f,S){return Ae(this,void 0,void 0,function*(){const v=yield this.getCommandPicks(f,S);if(S.isCancellationRequested)return[];const m=[];for(const k of v){const D=(0,p.withNullAsUndefined)(Pt.WORD_FILTER(u,k.label)),M=k.commandAlias?(0,p.withNullAsUndefined)(Pt.WORD_FILTER(u,k.commandAlias)):void 0;D||M?(k.highlights={label:D,detail:this.options.showAlias?M:void 0},m.push(k)):u===k.commandId&&m.push(k)}const _=new Map;for(const k of m){const D=_.get(k.label);D?(k.description=k.commandId,D.description=D.commandId):_.set(k.label,k)}m.sort((k,D)=>{const M=this.commandsHistory.peek(k.commandId),O=this.commandsHistory.peek(D.commandId);return M&&O?M>O?-1:1:M?-1:O?1:k.label.localeCompare(D.label)});const L=[];let w=!1;for(let k=0;kAe(this,void 0,void 0,function*(){this.commandsHistory.push(D.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:D.commandId,from:"quick open"});try{yield this.commandService.executeCommand(D.commandId)}catch(F){(0,N.isPromiseCanceledError)(F)||this.dialogService.show(C.default.Error,(0,h.localize)(3,null,D.label,(0,y.toErrorMessage)(F)))}})}))}return L})}};o.PREFIX=">",o.WORD_FILTER=(0,T.or)(T.matchesPrefix,T.matchesWords,T.matchesContiguousSubString),o=Be([Ce(1,r.IInstantiationService),Ce(2,c.IKeybindingService),Ce(3,g.ICommandService),Ce(4,s.ITelemetryService),Ce(5,t.IDialogService)],o),e.AbstractCommandsQuickAccessProvider=o;let n=class tt extends I.Disposable{constructor(u,f){super();this.storageService=u,this.configurationService=f,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=tt.getConfiguredCommandHistoryLength(this.configurationService),tt.cache&&tt.cache.limit!==this.configuredCommandsHistoryLength&&(tt.cache.limit=this.configuredCommandsHistoryLength,tt.saveState(this.storageService))}load(){const u=this.storageService.get(tt.PREF_KEY_CACHE,0);let f;if(u)try{f=JSON.parse(u)}catch(v){}const S=tt.cache=new b.LRUCache(this.configuredCommandsHistoryLength,1);if(f){let v;f.usesLRU?v=f.entries:v=f.entries.sort((m,_)=>m.value-_.value),v.forEach(m=>S.set(m.key,m.value))}tt.counter=this.storageService.getNumber(tt.PREF_KEY_COUNTER,0,tt.counter)}push(u){!tt.cache||(tt.cache.set(u,tt.counter++),tt.saveState(this.storageService))}peek(u){var f;return(f=tt.cache)===null||f===void 0?void 0:f.peek(u)}static saveState(u){if(!tt.cache)return;const f={usesLRU:!0,entries:[]};tt.cache.forEach((S,v)=>f.entries.push({key:v,value:S})),u.store(tt.PREF_KEY_CACHE,JSON.stringify(f),0,0),u.store(tt.PREF_KEY_COUNTER,tt.counter,0,0)}static getConfiguredCommandHistoryLength(u){var f,S;const m=(S=(f=u.getValue().workbench)===null||f===void 0?void 0:f.commandPalette)===null||S===void 0?void 0:S.history;return typeof m=="number"?m:tt.DEFAULT_COMMANDS_HISTORY_LENGTH}};n.DEFAULT_COMMANDS_HISTORY_LENGTH=50,n.PREF_KEY_CACHE="commandPalette.mru.cache",n.PREF_KEY_COUNTER="commandPalette.mru.counter",n.counter=1,n=Be([Ce(0,a.IStorageService),Ce(1,i.IConfigurationService)],n),e.CommandsHistory=n}),define(ee[609],te([0,1,107,608]),function(q,e,y,N){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractEditorCommandsQuickAccessProvider=void 0;class T extends N.AbstractCommandsQuickAccessProvider{constructor(b,C,p,h,g,i){super(b,C,p,h,g,i)}getCodeEditorCommandPicks(){const b=this.activeTextEditorControl;if(!b)return[];const C=[];for(const p of b.getSupportedActions())C.push({commandId:p.id,commandAlias:p.alias,label:(0,y.stripIcons)(p.label)||p.id});return C}}e.AbstractEditorCommandsQuickAccessProvider=T}),define(ee[22],te([0,1,10,29,4,20,560,191,33]),function(q,e,y,N,T,I,b,C,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.workbenchColorsSchemaId=e.resolveColorValue=e.ifDefinedThenElse=e.oneOf=e.transparent=e.lighten=e.darken=e.executeTransform=e.chartsPurple=e.chartsGreen=e.chartsOrange=e.chartsYellow=e.chartsBlue=e.chartsRed=e.chartsLines=e.chartsForeground=e.problemsInfoIconForeground=e.problemsWarningIconForeground=e.problemsErrorIconForeground=e.minimapSliderActiveBackground=e.minimapSliderHoverBackground=e.minimapSliderBackground=e.minimapUnicodeHighlight=e.minimapForegroundOpacity=e.minimapBackground=e.minimapWarning=e.minimapError=e.minimapSelection=e.minimapSelectionOccurrenceHighlight=e.minimapFindMatch=e.overviewRulerUnicodeHighlightForeground=e.overviewRulerSelectionHighlightForeground=e.overviewRulerFindMatchForeground=e.overviewRulerCommonContentForeground=e.overviewRulerIncomingContentForeground=e.overviewRulerCurrentContentForeground=e.mergeBorder=e.mergeCommonContentBackground=e.mergeCommonHeaderBackground=e.mergeIncomingContentBackground=e.mergeIncomingHeaderBackground=e.mergeCurrentContentBackground=e.mergeCurrentHeaderBackground=e.breadcrumbsPickerBackground=e.breadcrumbsActiveSelectionForeground=e.breadcrumbsFocusForeground=e.breadcrumbsBackground=e.breadcrumbsForeground=e.snippetFinalTabstopHighlightBorder=e.snippetFinalTabstopHighlightBackground=e.snippetTabstopHighlightBorder=e.snippetTabstopHighlightBackground=e.toolbarActiveBackground=e.toolbarHoverOutline=e.toolbarHoverBackground=e.menuSeparatorBackground=e.menuSelectionBorder=e.menuSelectionBackground=e.menuSelectionForeground=e.menuBackground=e.menuForeground=e.menuBorder=e.quickInputListFocusBackground=e.quickInputListFocusIconForeground=e.quickInputListFocusForeground=e._deprecatedQuickInputListFocusBackground=e.listDeemphasizedForeground=e.tableOddRowsBackgroundColor=e.tableColumnsBorder=e.treeIndentGuidesStroke=e.listFilterMatchHighlightBorder=e.listFilterMatchHighlight=e.listFilterWidgetNoMatchesOutline=e.listFilterWidgetOutline=e.listFilterWidgetBackground=e.listWarningForeground=e.listErrorForeground=e.listInvalidItemForeground=e.listFocusHighlightForeground=e.listHighlightForeground=e.listDropBackground=e.listHoverForeground=e.listHoverBackground=e.listInactiveFocusOutline=e.listInactiveFocusBackground=e.listInactiveSelectionIconForeground=e.listInactiveSelectionForeground=e.listInactiveSelectionBackground=e.listActiveSelectionIconForeground=e.listActiveSelectionForeground=e.listActiveSelectionBackground=e.listFocusOutline=e.listFocusForeground=e.listFocusBackground=e.diffDiagonalFill=e.diffBorder=e.diffRemovedOutline=e.diffInsertedOutline=e.diffRemoved=e.diffInserted=e.defaultRemoveColor=e.defaultInsertColor=e.editorLightBulbAutoFixForeground=e.editorLightBulbForeground=e.editorInlayHintParameterBackground=e.editorInlayHintParameterForeground=e.editorInlayHintTypeBackground=e.editorInlayHintTypeForeground=e.editorInlayHintBackground=e.editorInlayHintForeground=e.editorActiveLinkForeground=e.editorHoverStatusBarBackground=e.editorHoverBorder=e.editorHoverForeground=e.editorHoverBackground=e.editorHoverHighlight=e.searchEditorFindMatchBorder=e.searchEditorFindMatch=e.editorFindRangeHighlightBorder=e.editorFindMatchHighlightBorder=e.editorFindMatchBorder=e.editorFindRangeHighlight=e.editorFindMatchHighlight=e.editorFindMatch=e.editorSelectionHighlightBorder=e.editorSelectionHighlight=e.editorInactiveSelection=e.editorSelectionForeground=e.editorSelectionBackground=e.keybindingLabelBottomBorder=e.keybindingLabelBorder=e.keybindingLabelForeground=e.keybindingLabelBackground=e.pickerGroupBorder=e.pickerGroupForeground=e.quickInputTitleBackground=e.quickInputForeground=e.quickInputBackground=e.editorWidgetResizeBorder=e.editorWidgetBorder=e.editorWidgetForeground=e.editorWidgetBackground=e.editorForeground=e.editorBackground=e.sashHoverBorder=e.editorHintBorder=e.editorHintForeground=e.editorInfoBorder=e.editorInfoForeground=e.editorInfoBackground=e.editorWarningBorder=e.editorWarningForeground=e.editorWarningBackground=e.editorErrorBorder=e.editorErrorForeground=e.editorErrorBackground=e.progressBarBackground=e.scrollbarSliderActiveBackground=e.scrollbarSliderHoverBackground=e.scrollbarSliderBackground=e.scrollbarShadow=e.badgeForeground=e.badgeBackground=e.buttonSecondaryHoverBackground=e.buttonSecondaryBackground=e.buttonSecondaryForeground=e.buttonBorder=e.buttonHoverBackground=e.buttonBackground=e.buttonForeground=e.simpleCheckboxBorder=e.simpleCheckboxForeground=e.simpleCheckboxBackground=e.selectBorder=e.selectForeground=e.selectListBackground=e.selectBackground=e.inputValidationErrorBorder=e.inputValidationErrorForeground=e.inputValidationErrorBackground=e.inputValidationWarningBorder=e.inputValidationWarningForeground=e.inputValidationWarningBackground=e.inputValidationInfoBorder=e.inputValidationInfoForeground=e.inputValidationInfoBackground=e.inputPlaceholderForeground=e.inputActiveOptionForeground=e.inputActiveOptionBackground=e.inputActiveOptionHoverBackground=e.inputActiveOptionBorder=e.inputBorder=e.inputForeground=e.inputBackground=e.widgetShadow=e.textCodeBlockBackground=e.textBlockQuoteBorder=e.textBlockQuoteBackground=e.textPreformatForeground=e.textLinkActiveForeground=e.textLinkForeground=e.textSeparatorForeground=e.selectionBackground=e.activeContrastBorder=e.contrastBorder=e.focusBorder=e.iconForeground=e.descriptionForeground=e.errorForeground=e.foreground=e.registerColor=e.Extensions=e.asCssVariableName=void 0;function h(k){return`--vscode-${k.replace(".","-")}`}e.asCssVariableName=h,e.Extensions={ColorContribution:"base.contributions.colors"};class g{constructor(){this._onDidChangeSchema=new T.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(D,M,O,F=!1,R){let A={id:D,description:O,defaults:M,needsTransparency:F,deprecationMessage:R};this.colorsById[D]=A;let P={type:"string",description:O,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return R&&(P.deprecationMessage=R),this.colorSchema.properties[D]=P,this.colorReferenceSchema.enum.push(D),this.colorReferenceSchema.enumDescriptions.push(O),this._onDidChangeSchema.fire(),D}getColors(){return Object.keys(this.colorsById).map(D=>this.colorsById[D])}resolveDefaultColor(D,M){const O=this.colorsById[D];if(O&&O.defaults){const F=O.defaults[M.type];return _(F,M)}}getColorSchema(){return this.colorSchema}toString(){let D=(M,O)=>{let F=M.indexOf(".")===-1?0:1,R=O.indexOf(".")===-1?0:1;return F!==R?F-R:M.localeCompare(O)};return Object.keys(this.colorsById).sort(D).map(M=>`- \`${M}\`: ${this.colorsById[M].description}`).join(`
`)}}const i=new g;p.Registry.add(e.Extensions.ColorContribution,i);function t(k,D,M,O,F){return i.registerColor(k,D,M,O,F)}e.registerColor=t,e.foreground=t("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},b.localize(0,null)),e.errorForeground=t("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},b.localize(1,null)),e.descriptionForeground=t("descriptionForeground",{light:"#717171",dark:f(e.foreground,.7),hc:f(e.foreground,.7)},b.localize(2,null)),e.iconForeground=t("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},b.localize(3,null)),e.focusBorder=t("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},b.localize(4,null)),e.contrastBorder=t("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},b.localize(5,null)),e.activeContrastBorder=t("contrastActiveBorder",{light:null,dark:null,hc:e.focusBorder},b.localize(6,null)),e.selectionBackground=t("selection.background",{light:null,dark:null,hc:null},b.localize(7,null)),e.textSeparatorForeground=t("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hc:N.Color.black},b.localize(8,null)),e.textLinkForeground=t("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},b.localize(9,null)),e.textLinkActiveForeground=t("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},b.localize(10,null)),e.textPreformatForeground=t("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hc:"#D7BA7D"},b.localize(11,null)),e.textBlockQuoteBackground=t("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hc:null},b.localize(12,null)),e.textBlockQuoteBorder=t("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hc:N.Color.white},b.localize(13,null)),e.textCodeBlockBackground=t("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:N.Color.black},b.localize(14,null)),e.widgetShadow=t("widget.shadow",{dark:f(N.Color.black,.36),light:f(N.Color.black,.16),hc:null},b.localize(15,null)),e.inputBackground=t("input.background",{dark:"#3C3C3C",light:N.Color.white,hc:N.Color.black},b.localize(16,null)),e.inputForeground=t("input.foreground",{dark:e.foreground,light:e.foreground,hc:e.foreground},b.localize(17,null)),e.inputBorder=t("input.border",{dark:null,light:null,hc:e.contrastBorder},b.localize(18,null)),e.inputActiveOptionBorder=t("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:e.contrastBorder},b.localize(19,null)),e.inputActiveOptionHoverBackground=t("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hc:null},b.localize(20,null)),e.inputActiveOptionBackground=t("inputOption.activeBackground",{dark:f(e.focusBorder,.4),light:f(e.focusBorder,.2),hc:N.Color.transparent},b.localize(21,null)),e.inputActiveOptionForeground=t("inputOption.activeForeground",{dark:N.Color.white,light:N.Color.black,hc:null},b.localize(22,null)),e.inputPlaceholderForeground=t("input.placeholderForeground",{light:f(e.foreground,.5),dark:f(e.foreground,.5),hc:f(e.foreground,.7)},b.localize(23,null)),e.inputValidationInfoBackground=t("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:N.Color.black},b.localize(24,null)),e.inputValidationInfoForeground=t("inputValidation.infoForeground",{dark:null,light:null,hc:null},b.localize(25,null)),e.inputValidationInfoBorder=t("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:e.contrastBorder},b.localize(26,null)),e.inputValidationWarningBackground=t("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:N.Color.black},b.localize(27,null)),e.inputValidationWarningForeground=t("inputValidation.warningForeground",{dark:null,light:null,hc:null},b.localize(28,null)),e.inputValidationWarningBorder=t("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:e.contrastBorder},b.localize(29,null)),e.inputValidationErrorBackground=t("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:N.Color.black},b.localize(30,null)),e.inputValidationErrorForeground=t("inputValidation.errorForeground",{dark:null,light:null,hc:null},b.localize(31,null)),e.inputValidationErrorBorder=t("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:e.contrastBorder},b.localize(32,null)),e.selectBackground=t("dropdown.background",{dark:"#3C3C3C",light:N.Color.white,hc:N.Color.black},b.localize(33,null)),e.selectListBackground=t("dropdown.listBackground",{dark:null,light:null,hc:N.Color.black},b.localize(34,null)),e.selectForeground=t("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:N.Color.white},b.localize(35,null)),e.selectBorder=t("dropdown.border",{dark:e.selectBackground,light:"#CECECE",hc:e.contrastBorder},b.localize(36,null)),e.simpleCheckboxBackground=t("checkbox.background",{dark:e.selectBackground,light:e.selectBackground,hc:e.selectBackground},b.localize(37,null)),e.simpleCheckboxForeground=t("checkbox.foreground",{dark:e.selectForeground,light:e.selectForeground,hc:e.selectForeground},b.localize(38,null)),e.simpleCheckboxBorder=t("checkbox.border",{dark:e.selectBorder,light:e.selectBorder,hc:e.selectBorder},b.localize(39,null)),e.buttonForeground=t("button.foreground",{dark:N.Color.white,light:N.Color.white,hc:N.Color.white},b.localize(40,null)),e.buttonBackground=t("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},b.localize(41,null)),e.buttonHoverBackground=t("button.hoverBackground",{dark:u(e.buttonBackground,.2),light:d(e.buttonBackground,.2),hc:null},b.localize(42,null)),e.buttonBorder=t("button.border",{dark:e.contrastBorder,light:e.contrastBorder,hc:e.contrastBorder},b.localize(43,null)),e.buttonSecondaryForeground=t("button.secondaryForeground",{dark:N.Color.white,light:N.Color.white,hc:N.Color.white},b.localize(44,null)),e.buttonSecondaryBackground=t("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hc:null},b.localize(45,null)),e.buttonSecondaryHoverBackground=t("button.secondaryHoverBackground",{dark:u(e.buttonSecondaryBackground,.2),light:d(e.buttonSecondaryBackground,.2),hc:null},b.localize(46,null)),e.badgeBackground=t("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:N.Color.black},b.localize(47,null)),e.badgeForeground=t("badge.foreground",{dark:N.Color.white,light:"#333",hc:N.Color.white},b.localize(48,null)),e.scrollbarShadow=t("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},b.localize(49,null)),e.scrollbarSliderBackground=t("scrollbarSlider.background",{dark:N.Color.fromHex("#797979").transparent(.4),light:N.Color.fromHex("#646464").transparent(.4),hc:f(e.contrastBorder,.6)},b.localize(50,null)),e.scrollbarSliderHoverBackground=t("scrollbarSlider.hoverBackground",{dark:N.Color.fromHex("#646464").transparent(.7),light:N.Color.fromHex("#646464").transparent(.7),hc:f(e.contrastBorder,.8)},b.localize(51,null)),e.scrollbarSliderActiveBackground=t("scrollbarSlider.activeBackground",{dark:N.Color.fromHex("#BFBFBF").transparent(.4),light:N.Color.fromHex("#000000").transparent(.6),hc:e.contrastBorder},b.localize(52,null)),e.progressBarBackground=t("progressBar.background",{dark:N.Color.fromHex("#0E70C0"),light:N.Color.fromHex("#0E70C0"),hc:e.contrastBorder},b.localize(53,null)),e.editorErrorBackground=t("editorError.background",{dark:null,light:null,hc:null},b.localize(54,null),!0),e.editorErrorForeground=t("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hc:null},b.localize(55,null)),e.editorErrorBorder=t("editorError.border",{dark:null,light:null,hc:N.Color.fromHex("#E47777").transparent(.8)},b.localize(56,null)),e.editorWarningBackground=t("editorWarning.background",{dark:null,light:null,hc:null},b.localize(57,null),!0),e.editorWarningForeground=t("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hc:null},b.localize(58,null)),e.editorWarningBorder=t("editorWarning.border",{dark:null,light:null,hc:N.Color.fromHex("#FFCC00").transparent(.8)},b.localize(59,null)),e.editorInfoBackground=t("editorInfo.background",{dark:null,light:null,hc:null},b.localize(60,null),!0),e.editorInfoForeground=t("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hc:"#3794FF"},b.localize(61,null)),e.editorInfoBorder=t("editorInfo.border",{dark:null,light:null,hc:N.Color.fromHex("#3794FF").transparent(.8)},b.localize(62,null)),e.editorHintForeground=t("editorHint.foreground",{dark:N.Color.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},b.localize(63,null)),e.editorHintBorder=t("editorHint.border",{dark:null,light:null,hc:N.Color.fromHex("#eeeeee").transparent(.8)},b.localize(64,null)),e.sashHoverBorder=t("sash.hoverBorder",{dark:e.focusBorder,light:e.focusBorder,hc:e.focusBorder},b.localize(65,null)),e.editorBackground=t("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:N.Color.black},b.localize(66,null)),e.editorForeground=t("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:N.Color.white},b.localize(67,null)),e.editorWidgetBackground=t("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},b.localize(68,null)),e.editorWidgetForeground=t("editorWidget.foreground",{dark:e.foreground,light:e.foreground,hc:e.foreground},b.localize(69,null)),e.editorWidgetBorder=t("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:e.contrastBorder},b.localize(70,null)),e.editorWidgetResizeBorder=t("editorWidget.resizeBorder",{light:null,dark:null,hc:null},b.localize(71,null)),e.quickInputBackground=t("quickInput.background",{dark:e.editorWidgetBackground,light:e.editorWidgetBackground,hc:e.editorWidgetBackground},b.localize(72,null)),e.quickInputForeground=t("quickInput.foreground",{dark:e.editorWidgetForeground,light:e.editorWidgetForeground,hc:e.editorWidgetForeground},b.localize(73,null)),e.quickInputTitleBackground=t("quickInputTitle.background",{dark:new N.Color(new N.RGBA(255,255,255,.105)),light:new N.Color(new N.RGBA(0,0,0,.06)),hc:"#000000"},b.localize(74,null)),e.pickerGroupForeground=t("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:N.Color.white},b.localize(75,null)),e.pickerGroupBorder=t("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:N.Color.white},b.localize(76,null)),e.keybindingLabelBackground=t("keybindingLabel.background",{dark:new N.Color(new N.RGBA(128,128,128,.17)),light:new N.Color(new N.RGBA(221,221,221,.4)),hc:N.Color.transparent},b.localize(77,null)),e.keybindingLabelForeground=t("keybindingLabel.foreground",{dark:N.Color.fromHex("#CCCCCC"),light:N.Color.fromHex("#555555"),hc:N.Color.white},b.localize(78,null)),e.keybindingLabelBorder=t("keybindingLabel.border",{dark:new N.Color(new N.RGBA(51,51,51,.6)),light:new N.Color(new N.RGBA(204,204,204,.4)),hc:new N.Color(new N.RGBA(111,195,223))},b.localize(79,null)),e.keybindingLabelBottomBorder=t("keybindingLabel.bottomBorder",{dark:new N.Color(new N.RGBA(68,68,68,.6)),light:new N.Color(new N.RGBA(187,187,187,.4)),hc:new N.Color(new N.RGBA(111,195,223))},b.localize(80,null)),e.editorSelectionBackground=t("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},b.localize(81,null)),e.editorSelectionForeground=t("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},b.localize(82,null)),e.editorInactiveSelection=t("editor.inactiveSelectionBackground",{light:f(e.editorSelectionBackground,.5),dark:f(e.editorSelectionBackground,.5),hc:f(e.editorSelectionBackground,.5)},b.localize(83,null),!0),e.editorSelectionHighlight=t("editor.selectionHighlightBackground",{light:m(e.editorSelectionBackground,e.editorBackground,.3,.6),dark:m(e.editorSelectionBackground,e.editorBackground,.3,.6),hc:null},b.localize(84,null),!0),e.editorSelectionHighlightBorder=t("editor.selectionHighlightBorder",{light:null,dark:null,hc:e.activeContrastBorder},b.localize(85,null)),e.editorFindMatch=t("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},b.localize(86,null)),e.editorFindMatchHighlight=t("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},b.localize(87,null),!0),e.editorFindRangeHighlight=t("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},b.localize(88,null),!0),e.editorFindMatchBorder=t("editor.findMatchBorder",{light:null,dark:null,hc:e.activeContrastBorder},b.localize(89,null)),e.editorFindMatchHighlightBorder=t("editor.findMatchHighlightBorder",{light:null,dark:null,hc:e.activeContrastBorder},b.localize(90,null)),e.editorFindRangeHighlightBorder=t("editor.findRangeHighlightBorder",{dark:null,light:null,hc:f(e.activeContrastBorder,.4)},b.localize(91,null),!0),e.searchEditorFindMatch=t("searchEditor.findMatchBackground",{light:f(e.editorFindMatchHighlight,.66),dark:f(e.editorFindMatchHighlight,.66),hc:e.editorFindMatchHighlight},b.localize(92,null)),e.searchEditorFindMatchBorder=t("searchEditor.findMatchBorder",{light:f(e.editorFindMatchHighlightBorder,.66),dark:f(e.editorFindMatchHighlightBorder,.66),hc:e.editorFindMatchHighlightBorder},b.localize(93,null)),e.editorHoverHighlight=t("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},b.localize(94,null),!0),e.editorHoverBackground=t("editorHoverWidget.background",{light:e.editorWidgetBackground,dark:e.editorWidgetBackground,hc:e.editorWidgetBackground},b.localize(95,null)),e.editorHoverForeground=t("editorHoverWidget.foreground",{light:e.editorWidgetForeground,dark:e.editorWidgetForeground,hc:e.editorWidgetForeground},b.localize(96,null)),e.editorHoverBorder=t("editorHoverWidget.border",{light:e.editorWidgetBorder,dark:e.editorWidgetBorder,hc:e.editorWidgetBorder},b.localize(97,null)),e.editorHoverStatusBarBackground=t("editorHoverWidget.statusBarBackground",{dark:u(e.editorHoverBackground,.2),light:d(e.editorHoverBackground,.05),hc:e.editorWidgetBackground},b.localize(98,null)),e.editorActiveLinkForeground=t("editorLink.activeForeground",{dark:"#4E94CE",light:N.Color.blue,hc:N.Color.cyan},b.localize(99,null)),e.editorInlayHintForeground=t("editorInlayHint.foreground",{dark:f(e.badgeForeground,.8),light:f(e.badgeForeground,.8),hc:e.badgeForeground},b.localize(100,null)),e.editorInlayHintBackground=t("editorInlayHint.background",{dark:f(e.badgeBackground,.6),light:f(e.badgeBackground,.3),hc:e.badgeBackground},b.localize(101,null)),e.editorInlayHintTypeForeground=t("editorInlayHint.typeForeground",{dark:e.editorInlayHintForeground,light:e.editorInlayHintForeground,hc:e.editorInlayHintForeground},b.localize(102,null)),e.editorInlayHintTypeBackground=t("editorInlayHint.typeBackground",{dark:e.editorInlayHintBackground,light:e.editorInlayHintBackground,hc:e.editorInlayHintBackground},b.localize(103,null)),e.editorInlayHintParameterForeground=t("editorInlayHint.parameterForeground",{dark:e.editorInlayHintForeground,light:e.editorInlayHintForeground,hc:e.editorInlayHintForeground},b.localize(104,null)),e.editorInlayHintParameterBackground=t("editorInlayHint.parameterBackground",{dark:e.editorInlayHintBackground,light:e.editorInlayHintBackground,hc:e.editorInlayHintBackground},b.localize(105,null)),e.editorLightBulbForeground=t("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},b.localize(106,null)),e.editorLightBulbAutoFixForeground=t("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},b.localize(107,null)),e.defaultInsertColor=new N.Color(new N.RGBA(155,185,85,.2)),e.defaultRemoveColor=new N.Color(new N.RGBA(255,0,0,.2)),e.diffInserted=t("diffEditor.insertedTextBackground",{dark:e.defaultInsertColor,light:e.defaultInsertColor,hc:null},b.localize(108,null),!0),e.diffRemoved=t("diffEditor.removedTextBackground",{dark:e.defaultRemoveColor,light:e.defaultRemoveColor,hc:null},b.localize(109,null),!0),e.diffInsertedOutline=t("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},b.localize(110,null)),e.diffRemovedOutline=t("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},b.localize(111,null)),e.diffBorder=t("diffEditor.border",{dark:null,light:null,hc:e.contrastBorder},b.localize(112,null)),e.diffDiagonalFill=t("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},b.localize(113,null)),e.listFocusBackground=t("list.focusBackground",{dark:null,light:null,hc:null},b.localize(114,null)),e.listFocusForeground=t("list.focusForeground",{dark:null,light:null,hc:null},b.localize(115,null)),e.listFocusOutline=t("list.focusOutline",{dark:e.focusBorder,light:e.focusBorder,hc:e.activeContrastBorder},b.localize(116,null)),e.listActiveSelectionBackground=t("list.activeSelectionBackground",{dark:"#094771",light:"#0060C0",hc:null},b.localize(117,null)),e.listActiveSelectionForeground=t("list.activeSelectionForeground",{dark:N.Color.white,light:N.Color.white,hc:null},b.localize(118,null)),e.listActiveSelectionIconForeground=t("list.activeSelectionIconForeground",{dark:null,light:null,hc:null},b.localize(119,null)),e.listInactiveSelectionBackground=t("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},b.localize(120,null)),e.listInactiveSelectionForeground=t("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},b.localize(121,null)),e.listInactiveSelectionIconForeground=t("list.inactiveSelectionIconForeground",{dark:null,light:null,hc:null},b.localize(122,null)),e.listInactiveFocusBackground=t("list.inactiveFocusBackground",{dark:null,light:null,hc:null},b.localize(123,null)),e.listInactiveFocusOutline=t("list.inactiveFocusOutline",{dark:null,light:null,hc:null},b.localize(124,null)),e.listHoverBackground=t("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},b.localize(125,null)),e.listHoverForeground=t("list.hoverForeground",{dark:null,light:null,hc:null},b.localize(126,null)),e.listDropBackground=t("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},b.localize(127,null)),e.listHighlightForeground=t("list.highlightForeground",{dark:"#18A3FF",light:"#0066BF",hc:e.focusBorder},b.localize(128,null)),e.listFocusHighlightForeground=t("list.focusHighlightForeground",{dark:e.listHighlightForeground,light:v(e.listActiveSelectionBackground,e.listHighlightForeground,"#9DDDFF"),hc:e.listHighlightForeground},b.localize(129,null)),e.listInvalidItemForeground=t("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hc:"#B89500"},b.localize(130,null)),e.listErrorForeground=t("list.errorForeground",{dark:"#F88070",light:"#B01011",hc:null},b.localize(131,null)),e.listWarningForeground=t("list.warningForeground",{dark:"#CCA700",light:"#855F00",hc:null},b.localize(132,null)),e.listFilterWidgetBackground=t("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:N.Color.black},b.localize(133,null)),e.listFilterWidgetOutline=t("listFilterWidget.outline",{dark:N.Color.transparent,light:N.Color.transparent,hc:"#f38518"},b.localize(134,null)),e.listFilterWidgetNoMatchesOutline=t("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:e.contrastBorder},b.localize(135,null)),e.listFilterMatchHighlight=t("list.filterMatchBackground",{dark:e.editorFindMatchHighlight,light:e.editorFindMatchHighlight,hc:null},b.localize(136,null)),e.listFilterMatchHighlightBorder=t("list.filterMatchBorder",{dark:e.editorFindMatchHighlightBorder,light:e.editorFindMatchHighlightBorder,hc:e.contrastBorder},b.localize(137,null)),e.treeIndentGuidesStroke=t("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},b.localize(138,null)),e.tableColumnsBorder=t("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hc:null},b.localize(139,null)),e.tableOddRowsBackgroundColor=t("tree.tableOddRowsBackground",{dark:f(e.foreground,.04),light:f(e.foreground,.04),hc:null},b.localize(140,null)),e.listDeemphasizedForeground=t("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hc:"#A7A8A9"},b.localize(141,null)),e._deprecatedQuickInputListFocusBackground=t("quickInput.list.focusBackground",{dark:null,light:null,hc:null},"",void 0,b.localize(142,null)),e.quickInputListFocusForeground=t("quickInputList.focusForeground",{dark:e.listActiveSelectionForeground,light:e.listActiveSelectionForeground,hc:e.listActiveSelectionForeground},b.localize(143,null)),e.quickInputListFocusIconForeground=t("quickInputList.focusIconForeground",{dark:e.listActiveSelectionIconForeground,light:e.listActiveSelectionIconForeground,hc:e.listActiveSelectionIconForeground},b.localize(144,null)),e.quickInputListFocusBackground=t("quickInputList.focusBackground",{dark:S(e._deprecatedQuickInputListFocusBackground,e.listActiveSelectionBackground),light:S(e._deprecatedQuickInputListFocusBackground,e.listActiveSelectionBackground),hc:null},b.localize(145,null)),e.menuBorder=t("menu.border",{dark:null,light:null,hc:e.contrastBorder},b.localize(146,null)),e.menuForeground=t("menu.foreground",{dark:e.selectForeground,light:e.foreground,hc:e.selectForeground},b.localize(147,null)),e.menuBackground=t("menu.background",{dark:e.selectBackground,light:e.selectBackground,hc:e.selectBackground},b.localize(148,null)),e.menuSelectionForeground=t("menu.selectionForeground",{dark:e.listActiveSelectionForeground,light:e.listActiveSelectionForeground,hc:e.listActiveSelectionForeground},b.localize(149,null)),e.menuSelectionBackground=t("menu.selectionBackground",{dark:e.listActiveSelectionBackground,light:e.listActiveSelectionBackground,hc:e.listActiveSelectionBackground},b.localize(150,null)),e.menuSelectionBorder=t("menu.selectionBorder",{dark:null,light:null,hc:e.activeContrastBorder},b.localize(151,null)),e.menuSeparatorBackground=t("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:e.contrastBorder},b.localize(152,null)),e.toolbarHoverBackground=t("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hc:null},b.localize(153,null)),e.toolbarHoverOutline=t("toolbar.hoverOutline",{dark:null,light:null,hc:e.activeContrastBorder},b.localize(154,null)),e.toolbarActiveBackground=t("toolbar.activeBackground",{dark:u(e.toolbarHoverBackground,.1),light:d(e.toolbarHoverBackground,.1),hc:null},b.localize(155,null)),e.snippetTabstopHighlightBackground=t("editor.snippetTabstopHighlightBackground",{dark:new N.Color(new N.RGBA(124,124,124,.3)),light:new N.Color(new N.RGBA(10,50,100,.2)),hc:new N.Color(new N.RGBA(124,124,124,.3))},b.localize(156,null)),e.snippetTabstopHighlightBorder=t("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},b.localize(157,null)),e.snippetFinalTabstopHighlightBackground=t("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},b.localize(158,null)),e.snippetFinalTabstopHighlightBorder=t("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new N.Color(new N.RGBA(10,50,100,.5)),hc:"#525252"},b.localize(159,null)),e.breadcrumbsForeground=t("breadcrumb.foreground",{light:f(e.foreground,.8),dark:f(e.foreground,.8),hc:f(e.foreground,.8)},b.localize(160,null)),e.breadcrumbsBackground=t("breadcrumb.background",{light:e.editorBackground,dark:e.editorBackground,hc:e.editorBackground},b.localize(161,null)),e.breadcrumbsFocusForeground=t("breadcrumb.focusForeground",{light:d(e.foreground,.2),dark:u(e.foreground,.1),hc:u(e.foreground,.1)},b.localize(162,null)),e.breadcrumbsActiveSelectionForeground=t("breadcrumb.activeSelectionForeground",{light:d(e.foreground,.2),dark:u(e.foreground,.1),hc:u(e.foreground,.1)},b.localize(163,null)),e.breadcrumbsPickerBackground=t("breadcrumbPicker.background",{light:e.editorWidgetBackground,dark:e.editorWidgetBackground,hc:e.editorWidgetBackground},b.localize(164,null));const r=.5,c=N.Color.fromHex("#40C8AE").transparent(r),l=N.Color.fromHex("#40A6FF").transparent(r),a=N.Color.fromHex("#606060").transparent(.4),s=.4,o=1;e.mergeCurrentHeaderBackground=t("merge.currentHeaderBackground",{dark:c,light:c,hc:null},b.localize(165,null),!0),e.mergeCurrentContentBackground=t("merge.currentContentBackground",{dark:f(e.mergeCurrentHeaderBackground,s),light:f(e.mergeCurrentHeaderBackground,s),hc:f(e.mergeCurrentHeaderBackground,s)},b.localize(166,null),!0),e.mergeIncomingHeaderBackground=t("merge.incomingHeaderBackground",{dark:l,light:l,hc:null},b.localize(167,null),!0),e.mergeIncomingContentBackground=t("merge.incomingContentBackground",{dark:f(e.mergeIncomingHeaderBackground,s),light:f(e.mergeIncomingHeaderBackground,s),hc:f(e.mergeIncomingHeaderBackground,s)},b.localize(168,null),!0),e.mergeCommonHeaderBackground=t("merge.commonHeaderBackground",{dark:a,light:a,hc:null},b.localize(169,null),!0),e.mergeCommonContentBackground=t("merge.commonContentBackground",{dark:f(e.mergeCommonHeaderBackground,s),light:f(e.mergeCommonHeaderBackground,s),hc:f(e.mergeCommonHeaderBackground,s)},b.localize(170,null),!0),e.mergeBorder=t("merge.border",{dark:null,light:null,hc:"#C3DF6F"},b.localize(171,null)),e.overviewRulerCurrentContentForeground=t("editorOverviewRuler.currentContentForeground",{dark:f(e.mergeCurrentHeaderBackground,o),light:f(e.mergeCurrentHeaderBackground,o),hc:e.mergeBorder},b.localize(172,null)),e.overviewRulerIncomingContentForeground=t("editorOverviewRuler.incomingContentForeground",{dark:f(e.mergeIncomingHeaderBackground,o),light:f(e.mergeIncomingHeaderBackground,o),hc:e.mergeBorder},b.localize(173,null)),e.overviewRulerCommonContentForeground=t("editorOverviewRuler.commonContentForeground",{dark:f(e.mergeCommonHeaderBackground,o),light:f(e.mergeCommonHeaderBackground,o),hc:e.mergeBorder},b.localize(174,null)),e.overviewRulerFindMatchForeground=t("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},b.localize(175,null),!0),e.overviewRulerSelectionHighlightForeground=t("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},b.localize(176,null),!0),e.overviewRulerUnicodeHighlightForeground=t("editorOverviewRuler.unicodeForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},b.localize(177,null),!0),e.minimapFindMatch=t("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},b.localize(178,null),!0),e.minimapSelectionOccurrenceHighlight=t("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hc:"#ffffff"},b.localize(179,null),!0),e.minimapSelection=t("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},b.localize(180,null),!0),e.minimapError=t("minimap.errorHighlight",{dark:new N.Color(new N.RGBA(255,18,18,.7)),light:new N.Color(new N.RGBA(255,18,18,.7)),hc:new N.Color(new N.RGBA(255,50,50,1))},b.localize(181,null)),e.minimapWarning=t("minimap.warningHighlight",{dark:e.editorWarningForeground,light:e.editorWarningForeground,hc:e.editorWarningBorder},b.localize(182,null)),e.minimapBackground=t("minimap.background",{dark:null,light:null,hc:null},b.localize(183,null)),e.minimapForegroundOpacity=t("minimap.foregroundOpacity",{dark:N.Color.fromHex("#000f"),light:N.Color.fromHex("#000f"),hc:N.Color.fromHex("#000f")},b.localize(184,null)),e.minimapUnicodeHighlight=t("minimap.unicodeHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},b.localize(185,null)),e.minimapSliderBackground=t("minimapSlider.background",{light:f(e.scrollbarSliderBackground,.5),dark:f(e.scrollbarSliderBackground,.5),hc:f(e.scrollbarSliderBackground,.5)},b.localize(186,null)),e.minimapSliderHoverBackground=t("minimapSlider.hoverBackground",{light:f(e.scrollbarSliderHoverBackground,.5),dark:f(e.scrollbarSliderHoverBackground,.5),hc:f(e.scrollbarSliderHoverBackground,.5)},b.localize(187,null)),e.minimapSliderActiveBackground=t("minimapSlider.activeBackground",{light:f(e.scrollbarSliderActiveBackground,.5),dark:f(e.scrollbarSliderActiveBackground,.5),hc:f(e.scrollbarSliderActiveBackground,.5)},b.localize(188,null)),e.problemsErrorIconForeground=t("problemsErrorIcon.foreground",{dark:e.editorErrorForeground,light:e.editorErrorForeground,hc:e.editorErrorForeground},b.localize(189,null)),e.problemsWarningIconForeground=t("problemsWarningIcon.foreground",{dark:e.editorWarningForeground,light:e.editorWarningForeground,hc:e.editorWarningForeground},b.localize(190,null)),e.problemsInfoIconForeground=t("problemsInfoIcon.foreground",{dark:e.editorInfoForeground,light:e.editorInfoForeground,hc:e.editorInfoForeground},b.localize(191,null)),e.chartsForeground=t("charts.foreground",{dark:e.foreground,light:e.foreground,hc:e.foreground},b.localize(192,null)),e.chartsLines=t("charts.lines",{dark:f(e.foreground,.5),light:f(e.foreground,.5),hc:f(e.foreground,.5)},b.localize(193,null)),e.chartsRed=t("charts.red",{dark:e.editorErrorForeground,light:e.editorErrorForeground,hc:e.editorErrorForeground},b.localize(194,null)),e.chartsBlue=t("charts.blue",{dark:e.editorInfoForeground,light:e.editorInfoForeground,hc:e.editorInfoForeground},b.localize(195,null)),e.chartsYellow=t("charts.yellow",{dark:e.editorWarningForeground,light:e.editorWarningForeground,hc:e.editorWarningForeground},b.localize(196,null)),e.chartsOrange=t("charts.orange",{dark:e.minimapFindMatch,light:e.minimapFindMatch,hc:e.minimapFindMatch},b.localize(197,null)),e.chartsGreen=t("charts.green",{dark:"#89D185",light:"#388A34",hc:"#89D185"},b.localize(198,null)),e.chartsPurple=t("charts.purple",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},b.localize(199,null));function n(k,D){var M,O,F;switch(k.op){case 0:return(M=_(k.value,D))===null||M===void 0?void 0:M.darken(k.factor);case 1:return(O=_(k.value,D))===null||O===void 0?void 0:O.lighten(k.factor);case 2:return(F=_(k.value,D))===null||F===void 0?void 0:F.transparent(k.factor);case 3:for(const P of k.values){const E=_(P,D);if(E)return E}return;case 5:return _(D.defines(k.if)?k.then:k.else,D);case 4:const R=_(k.value,D);if(!R)return;const A=_(k.background,D);return A?R.isDarkerThan(A)?N.Color.getLighterColor(R,A,k.factor).transparent(k.transparency):N.Color.getDarkerColor(R,A,k.factor).transparent(k.transparency):R.transparent(k.factor*k.transparency);default:throw(0,I.assertNever)(k)}}e.executeTransform=n;function d(k,D){return{op:0,value:k,factor:D}}e.darken=d;function u(k,D){return{op:1,value:k,factor:D}}e.lighten=u;function f(k,D){return{op:2,value:k,factor:D}}e.transparent=f;function S(...k){return{op:3,values:k}}e.oneOf=S;function v(k,D,M){return{op:5,if:k,then:D,else:M}}e.ifDefinedThenElse=v;function m(k,D,M,O){return{op:4,value:k,background:D,factor:M,transparency:O}}function _(k,D){if(k!==null){if(typeof k=="string")return k[0]==="#"?N.Color.fromHex(k):D.getColor(k);if(k instanceof N.Color)return k;if(typeof k=="object")return n(k,D)}}e.resolveColorValue=_,e.workbenchColorsSchemaId="vscode://schemas/workbench-colors";let L=p.Registry.as(C.Extensions.JSONContribution);L.registerSchema(e.workbenchColorsSchemaId,i.getColorSchema());const w=new y.RunOnceScheduler(()=>L.notifySchemaChanged(e.workbenchColorsSchemaId),200);i.onDidChangeSchema(()=>{w.isScheduled()||w.schedule()})}),define(ee[127],te([0,1,7,96,57,10,2,22]),function(q,e,y,N,T,I,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicCssRules=e.GlobalEditorMouseMoveMonitor=e.EditorPointerEventFactory=e.EditorMouseEventFactory=e.EditorMouseEvent=e.createEditorPagePosition=e.EditorPagePosition=e.ClientCoordinates=e.PageCoordinates=void 0;class p{constructor(d,u){this.x=d,this.y=u,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new h(this.x-y.StandardWindow.scrollX,this.y-y.StandardWindow.scrollY)}}e.PageCoordinates=p;class h{constructor(d,u){this.clientX=d,this.clientY=u,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new p(this.clientX+y.StandardWindow.scrollX,this.clientY+y.StandardWindow.scrollY)}}e.ClientCoordinates=h;class g{constructor(d,u,f,S){this.x=d,this.y=u,this.width=f,this.height=S,this._editorPagePositionBrand=void 0}}e.EditorPagePosition=g;function i(n){const d=y.getDomNodePagePosition(n);return new g(d.left,d.top,d.width,d.height)}e.createEditorPagePosition=i;class t extends T.StandardMouseEvent{constructor(d,u){super(d);this._editorMouseEventBrand=void 0,this.pos=new p(this.posx,this.posy),this.editorPos=i(u)}}e.EditorMouseEvent=t;class r{constructor(d){this._editorViewDomNode=d}_create(d){return new t(d,this._editorViewDomNode)}onContextMenu(d,u){return y.addDisposableListener(d,"contextmenu",f=>{u(this._create(f))})}onMouseUp(d,u){return y.addDisposableListener(d,"mouseup",f=>{u(this._create(f))})}onMouseDown(d,u){return y.addDisposableListener(d,"mousedown",f=>{u(this._create(f))})}onMouseLeave(d,u){return y.addDisposableNonBubblingMouseOutListener(d,f=>{u(this._create(f))})}onMouseMoveThrottled(d,u,f,S){const v=(m,_)=>f(m,this._create(_));return y.addDisposableThrottledListener(d,"mousemove",u,v,S)}}e.EditorMouseEventFactory=r;class c{constructor(d){this._editorViewDomNode=d}_create(d){return new t(d,this._editorViewDomNode)}onPointerUp(d,u){return y.addDisposableListener(d,"pointerup",f=>{u(this._create(f))})}onPointerDown(d,u){return y.addDisposableListener(d,"pointerdown",f=>{u(this._create(f))})}onPointerLeave(d,u){return y.addDisposableNonBubblingPointerOutListener(d,f=>{u(this._create(f))})}onPointerMoveThrottled(d,u,f,S){const v=(m,_)=>f(m,this._create(_));return y.addDisposableThrottledListener(d,"pointermove",u,v,S)}}e.EditorPointerEventFactory=c;class l extends b.Disposable{constructor(d){super();this._editorViewDomNode=d,this._globalMouseMoveMonitor=this._register(new N.GlobalMouseMoveMonitor),this._keydownListener=null}startMonitoring(d,u,f,S,v){this._keydownListener=y.addStandardDisposableListener(document,"keydown",_=>{_.toKeybinding().isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0,_.browserEvent)},!0);const m=(_,L)=>f(_,new t(L,this._editorViewDomNode));this._globalMouseMoveMonitor.startMonitoring(d,u,m,S,_=>{this._keydownListener.dispose(),v(_)})}stopMonitoring(){this._globalMouseMoveMonitor.stopMonitoring(!0)}}e.GlobalEditorMouseMoveMonitor=l;class a{constructor(d){this._editor=d,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new I.RunOnceScheduler(()=>this.garbageCollect(),1e3)}createClassNameRef(d){const u=this.getOrCreateRule(d);return u.increaseRefCount(),{className:u.className,dispose:()=>{u.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(d){const u=this.computeUniqueKey(d);let f=this._rules.get(u);if(!f){const S=this._counter++;f=new s(u,`dyn-rule-${S}`,y.isInShadowDOM(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,d),this._rules.set(u,f)}return f}computeUniqueKey(d){return JSON.stringify(d)}garbageCollect(){for(const d of this._rules.values())d.hasReferences()||(this._rules.delete(d.key),d.dispose())}}e.DynamicCssRules=a;class s{constructor(d,u,f,S){this.key=d,this.className=u,this.properties=S,this._referenceCount=0,this._styleElement=y.createStyleSheet(f),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(d,u){let f=`.${d} {`;for(const S in u){const v=u[S];let m;typeof v=="object"?m=`var(${(0,C.asCssVariableName)(v.id)})`:m=v,f+=`
${o(S)}: ${m};`}return f+=`
}`,f}dispose(){this._styleElement.remove()}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function o(n){return n.replace(/(^[A-Z])/,([d])=>d.toLowerCase()).replace(/([A-Z])/g,([d])=>`-${d.toLowerCase()}`)}}),define(ee[128],te([0,1,22]),function(q,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.attachMenuStyler=e.defaultMenuStyles=e.defaultListStyles=e.attachListStyler=e.attachBadgeStyler=e.attachStyler=e.computeStyles=void 0;function N(p,h){const g=Object.create(null);for(let i in h){const t=h[i];t&&(g[i]=(0,y.resolveColorValue)(t,p))}return g}e.computeStyles=N;function T(p,h,g){function i(){const t=N(p.getColorTheme(),h);typeof g=="function"?g(t):g.style(t)}return i(),p.onDidColorThemeChange(i)}e.attachStyler=T;function I(p,h,g){return T(h,{badgeBackground:(g==null?void 0:g.badgeBackground)||y.badgeBackground,badgeForeground:(g==null?void 0:g.badgeForeground)||y.badgeForeground,badgeBorder:y.contrastBorder},p)}e.attachBadgeStyler=I;function b(p,h,g){return T(h,Object.assign(Object.assign({},e.defaultListStyles),g||{}),p)}e.attachListStyler=b,e.defaultListStyles={listFocusBackground:y.listFocusBackground,listFocusForeground:y.listFocusForeground,listFocusOutline:y.listFocusOutline,listActiveSelectionBackground:y.listActiveSelectionBackground,listActiveSelectionForeground:y.listActiveSelectionForeground,listActiveSelectionIconForeground:y.listActiveSelectionIconForeground,listFocusAndSelectionBackground:y.listActiveSelectionBackground,listFocusAndSelectionForeground:y.listActiveSelectionForeground,listInactiveSelectionBackground:y.listInactiveSelectionBackground,listInactiveSelectionIconForeground:y.listInactiveSelectionIconForeground,listInactiveSelectionForeground:y.listInactiveSelectionForeground,listInactiveFocusBackground:y.listInactiveFocusBackground,listInactiveFocusOutline:y.listInactiveFocusOutline,listHoverBackground:y.listHoverBackground,listHoverForeground:y.listHoverForeground,listDropBackground:y.listDropBackground,listSelectionOutline:y.activeContrastBorder,listHoverOutline:y.activeContrastBorder,listFilterWidgetBackground:y.listFilterWidgetBackground,listFilterWidgetOutline:y.listFilterWidgetOutline,listFilterWidgetNoMatchesOutline:y.listFilterWidgetNoMatchesOutline,listMatchesShadow:y.widgetShadow,treeIndentGuidesStroke:y.treeIndentGuidesStroke,tableColumnsBorder:y.tableColumnsBorder,tableOddRowsBackgroundColor:y.tableOddRowsBackgroundColor},e.defaultMenuStyles={shadowColor:y.widgetShadow,borderColor:y.menuBorder,foregroundColor:y.menuForeground,backgroundColor:y.menuBackground,selectionForegroundColor:y.menuSelectionForeground,selectionBackgroundColor:y.menuSelectionBackground,selectionBorderColor:y.menuSelectionBorder,separatorColor:y.menuSeparatorBackground,scrollbarShadow:y.scrollbarShadow,scrollbarSliderBackground:y.scrollbarSliderBackground,scrollbarSliderHoverBackground:y.scrollbarSliderHoverBackground,scrollbarSliderActiveBackground:y.scrollbarSliderActiveBackground};function C(p,h,g){return T(h,Object.assign(Object.assign({},e.defaultMenuStyles),g),p)}e.attachMenuStyler=C}),define(ee[610],te([0,1,7,57,460,51,13,2,128,387]),function(q,e,y,N,T,I,b,C,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContextMenuHandler=void 0;class h{constructor(i,t,r,c,l){this.contextViewService=i,this.telemetryService=t,this.notificationService=r,this.keybindingService=c,this.themeService=l,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(i){this.options=i}showContextMenu(i){const t=i.getActions();if(!t.length)return;this.focusToReturn=document.activeElement;let r,c=(0,y.isHTMLElement)(i.domForShadowRoot)?i.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>i.getAnchor(),canRelayout:!1,anchorAlignment:i.anchorAlignment,anchorAxisAlignment:i.anchorAxisAlignment,render:l=>{let a=i.getMenuClassName?i.getMenuClassName():"";a&&(l.className+=" "+a),this.options.blockMouse&&(this.block=l.appendChild((0,y.$)(".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",(0,y.addDisposableListener)(this.block,y.EventType.MOUSE_DOWN,n=>n.stopPropagation()));const s=new C.DisposableStore,o=i.actionRunner||new I.ActionRunner;return o.onBeforeRun(this.onActionRun,this,s),o.onDidRun(this.onDidActionRun,this,s),r=new T.Menu(l,t,{actionViewItemProvider:i.getActionViewItem,context:i.getActionsContext?i.getActionsContext():null,actionRunner:o,getKeyBinding:i.getKeyBinding?i.getKeyBinding:n=>this.keybindingService.lookupKeybinding(n.id)}),s.add((0,p.attachMenuStyler)(r,this.themeService)),r.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,s),r.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,s),s.add((0,y.addDisposableListener)(window,y.EventType.BLUR,()=>this.contextViewService.hideContextView(!0))),s.add((0,y.addDisposableListener)(window,y.EventType.MOUSE_DOWN,n=>{if(n.defaultPrevented)return;let d=new N.StandardMouseEvent(n),u=d.target;if(!d.rightButton){for(;u;){if(u===l)return;u=u.parentElement}this.contextViewService.hideContextView(!0)}})),(0,C.combinedDisposable)(s,r)},focus:()=>{r&&r.focus(!!i.autoSelectFirstItem)},onHide:l=>{i.onHide&&i.onHide(!!l),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},c,!!c)}onActionRun(i){this.telemetryService.publicLog2("workbenchActionExecuted",{id:i.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(i){i.error&&!(0,b.isPromiseCanceledError)(i.error)&&this.notificationService.error(i.error)}}e.ContextMenuHandler=h}),define(ee[129],te([0,1]),function(q,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorScheme=void 0;var y;(function(N){N.DARK="dark",N.LIGHT="light",N.HIGH_CONTRAST="hc"})(y=e.ColorScheme||(e.ColorScheme={}))}),define(ee[270],te([0,1,34,32,17,412,116,148,117,129,30]),function(q,e,y,N,T,I,b,C,p,h,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewLine=e.ViewLineOptions=e.DomReadingContext=void 0;const i=function(){return T.isNative?!0:!(T.isLinux||y.isFirefox||y.isSafari)}();let t=!0;class r{constructor(S,v){this._domNode=S,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=v}get clientRectDeltaLeft(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft}}e.DomReadingContext=r;class c{constructor(S,v){this.themeType=v;const m=S.options,_=m.get(43);this.renderWhitespace=m.get(87),this.renderControlCharacters=m.get(82),this.spaceWidth=_.spaceWidth,this.middotWidth=_.middotWidth,this.wsmiddotWidth=_.wsmiddotWidth,this.useMonospaceOptimizations=_.isMonospace&&!m.get(29),this.canUseHalfwidthRightwardsArrow=_.canUseHalfwidthRightwardsArrow,this.lineHeight=m.get(58),this.stopRenderingLineAfter=m.get(104),this.fontLigatures=m.get(44)}equals(S){return this.themeType===S.themeType&&this.renderWhitespace===S.renderWhitespace&&this.renderControlCharacters===S.renderControlCharacters&&this.spaceWidth===S.spaceWidth&&this.middotWidth===S.middotWidth&&this.wsmiddotWidth===S.wsmiddotWidth&&this.useMonospaceOptimizations===S.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===S.canUseHalfwidthRightwardsArrow&&this.lineHeight===S.lineHeight&&this.stopRenderingLineAfter===S.stopRenderingLineAfter&&this.fontLigatures===S.fontLigatures}}e.ViewLineOptions=c;class l{constructor(S){this._options=S,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(S){if(this._renderedViewLine)this._renderedViewLine.domNode=(0,N.createFastDomNode)(S);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(S){this._isMaybeInvalid=!0,this._options=S}onSelectionChanged(){return this._options.themeType===h.ColorScheme.HIGH_CONTRAST||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(S,v,m,_){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;const L=m.getViewLineRenderingData(S),w=this._options,k=C.LineDecoration.filter(L.inlineDecorations,S,L.minColumn,L.maxColumn);let D=null;if(w.themeType===h.ColorScheme.HIGH_CONTRAST||this._options.renderWhitespace==="selection"){const R=m.selections;for(const A of R){if(A.endLineNumberS)continue;const P=A.startLineNumber===S?A.startColumn:L.minColumn,E=A.endLineNumber===S?A.endColumn:L.maxColumn;P');const O=(0,p.renderViewLine)(M,_);_.appendASCIIString("");let F=null;return t&&i&&L.isBasicASCII&&w.useMonospaceOptimizations&&O.containsForeignElements===0&&L.content.length<300&&M.lineTokens.getCount()<100&&(F=new a(this._renderedViewLine?this._renderedViewLine.domNode:null,M,O.characterMapping)),F||(F=n(this._renderedViewLine?this._renderedViewLine.domNode:null,M,O.characterMapping,O.containsRTL,O.containsForeignElements)),this._renderedViewLine=F,!0}layoutLine(S,v){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(v),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0}needsMonospaceFontCheck(){return this._renderedViewLine?this._renderedViewLine instanceof a:!1}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof a?this._renderedViewLine.monospaceAssumptionsAreValid():t}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof a&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(S,v,m,_){if(!this._renderedViewLine)return null;v=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,v)),m=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,m));const L=this._renderedViewLine.input.stopRenderingLineAfter;let w=!1;L!==-1&&v>L+1&&m>L+1&&(w=!0),L!==-1&&v>L+1&&(v=L+1),L!==-1&&m>L+1&&(m=L+1);const k=this._renderedViewLine.getVisibleRangesForRange(S,v,m,_);return k&&k.length>0?new b.VisibleRanges(w,k):null}getColumnOfNodeOffset(S,v,m){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(S,v,m):1}}e.ViewLine=l,l.CLASS_NAME="view-line";class a{constructor(S,v,m){this.domNode=S,this.input=v,this._characterMapping=m,this._charWidth=v.spaceWidth}getWidth(){return Math.round(this._getCharPosition(this._characterMapping.length))}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return t;const S=this.getWidth(),v=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(S-v)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),t=!1),t}toSlowRenderedLine(){return n(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(S,v,m,_){const L=this._getCharPosition(v),w=this._getCharPosition(m);return[new b.FloatHorizontalRange(L,w-L)]}_getCharPosition(S){const v=this._characterMapping.getAbsoluteOffset(S);return this._charWidth*v}getColumnOfNodeOffset(S,v,m){const _=v.textContent.length;let L=-1;for(;v;)v=v.previousSibling,L++;return this._characterMapping.getColumn(new p.DomPosition(L,m),_)}}class s{constructor(S,v,m,_,L){if(this.domNode=S,this.input=v,this._characterMapping=m,this._isWhitespaceOnly=/^\s*$/.test(v.lineContent),this._containsForeignElements=L,this._cachedWidth=-1,this._pixelOffsetCache=null,!_||this._characterMapping.length===0){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let w=0,k=this._characterMapping.length;w<=k;w++)this._pixelOffsetCache[w]=-1}}_getReadingTarget(S){return S.domNode.firstChild}getWidth(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(S,v,m,_){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){const L=this._readPixelOffset(this.domNode,S,v,_);if(L===-1)return null;const w=this._readPixelOffset(this.domNode,S,m,_);return w===-1?null:[new b.FloatHorizontalRange(L,w-L)]}return this._readVisibleRangesForRange(this.domNode,S,v,m,_)}_readVisibleRangesForRange(S,v,m,_,L){if(m===_){const w=this._readPixelOffset(S,v,m,L);return w===-1?null:[new b.FloatHorizontalRange(w,0)]}else return this._readRawVisibleRangesForRange(S,m,_,L)}_readPixelOffset(S,v,m,_){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();const L=this._getReadingTarget(S);return L.firstChild?L.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){const L=this._pixelOffsetCache[m];if(L!==-1)return L;const w=this._actualReadPixelOffset(S,v,m,_);return this._pixelOffsetCache[m]=w,w}return this._actualReadPixelOffset(S,v,m,_)}_actualReadPixelOffset(S,v,m,_){if(this._characterMapping.length===0){const D=I.RangeUtil.readHorizontalRanges(this._getReadingTarget(S),0,0,0,0,_.clientRectDeltaLeft,_.endNode);return!D||D.length===0?-1:D[0].left}if(m===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();const L=this._characterMapping.getDomPosition(m),w=I.RangeUtil.readHorizontalRanges(this._getReadingTarget(S),L.partIndex,L.charIndex,L.partIndex,L.charIndex,_.clientRectDeltaLeft,_.endNode);if(!w||w.length===0)return-1;const k=w[0].left;if(this.input.isBasicASCII){const D=this._characterMapping.getAbsoluteOffset(m),M=Math.round(this.input.spaceWidth*D);if(Math.abs(M-k)<=1)return M}return k}_readRawVisibleRangesForRange(S,v,m,_){if(v===1&&m===this._characterMapping.length)return[new b.FloatHorizontalRange(0,this.getWidth())];const L=this._characterMapping.getDomPosition(v),w=this._characterMapping.getDomPosition(m);return I.RangeUtil.readHorizontalRanges(this._getReadingTarget(S),L.partIndex,L.charIndex,w.partIndex,w.charIndex,_.clientRectDeltaLeft,_.endNode)}getColumnOfNodeOffset(S,v,m){const _=v.textContent.length;let L=-1;for(;v;)v=v.previousSibling,L++;return this._characterMapping.getColumn(new p.DomPosition(L,m),_)}}class o extends s{_readVisibleRangesForRange(S,v,m,_,L){const w=super._readVisibleRangesForRange(S,v,m,_,L);if(!w||w.length===0||m===_||m===1&&_===this._characterMapping.length)return w;if(!this.input.containsRTL){const k=this._readPixelOffset(S,v,_,L);if(k!==-1){const D=w[w.length-1];D.left{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new N.RunOnceScheduler(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new t,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new C.ViewLine(this._viewLineOptions)}onConfigurationChanged(s){this._visibleLines.onConfigurationChanged(s),s.hasChanged(131)&&(this._maxLineWidth=0);const o=this._context.configuration.options,n=o.get(43),d=o.get(131);return this._lineHeight=o.get(58),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=d.isViewportWrapping,this._revealHorizontalRightPadding=o.get(88),this._cursorSurroundingLines=o.get(25),this._cursorSurroundingLinesStyle=o.get(26),this._canUseLayerHinting=!o.get(28),T.Configuration.applyFontInfo(this.domNode,n),this._onOptionsMaybeChanged(),s.hasChanged(130)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const s=this._context.configuration,o=new C.ViewLineOptions(s,this._context.theme.type);if(!this._viewLineOptions.equals(o)){this._viewLineOptions=o;const n=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();for(let u=n;u<=d;u++)this._visibleLines.getVisibleLine(u).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(s){const o=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();let d=!1;for(let u=o;u<=n;u++)d=this._visibleLines.getVisibleLine(u).onSelectionChanged()||d;return d}onDecorationsChanged(s){{const o=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let d=o;d<=n;d++)this._visibleLines.getVisibleLine(d).onDecorationsChanged()}return!0}onFlushed(s){const o=this._visibleLines.onFlushed(s);return this._maxLineWidth=0,o}onLinesChanged(s){return this._visibleLines.onLinesChanged(s)}onLinesDeleted(s){return this._visibleLines.onLinesDeleted(s)}onLinesInserted(s){return this._visibleLines.onLinesInserted(s)}onRevealRangeRequest(s){const o=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),s.source,s.range,s.selections,s.verticalType);if(o===-1)return!1;let n=this._context.viewLayout.validateScrollPosition({scrollTop:o});s.revealHorizontal?s.range&&s.range.startLineNumber!==s.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:s.range?this._horizontalRevealRequest=new r(s.range.startLineNumber,s.range.startColumn,s.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,s.scrollType):s.selections&&s.selections.length>0&&(this._horizontalRevealRequest=new c(s.selections,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,s.scrollType)):this._horizontalRevealRequest=null;const u=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop)<=this._lineHeight?1:s.scrollType;return this._context.model.setScrollPosition(n,u),!0}onScrollChanged(s){if(this._horizontalRevealRequest&&s.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&s.scrollTopChanged){const o=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(s.scrollTopn)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(s.scrollWidth),this._visibleLines.onScrollChanged(s)||!0}onTokensChanged(s){return this._visibleLines.onTokensChanged(s)}onZonesChanged(s){return this._context.model.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(s)}onThemeChanged(s){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(s,o){const n=this._getViewLineDomNode(s);if(n===null)return null;const d=this._getLineNumberFor(n);if(d===-1||d<1||d>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(d)===1)return new p.Position(d,1);const u=this._visibleLines.getStartLineNumber(),f=this._visibleLines.getEndLineNumber();if(d