@rsdoctor/client 0.2.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["786"],{85763:function(e,t,i){"use strict";i.d(t,{y:function(){return c}});var n=i("59527"),r=i("88980"),o=i("10109"),s=i("7875");let a=s.dz?256:2048,l=s.dz?2048:256;class c{constructor(e){this._standardKeyboardEventBrand=!0;this.browserEvent=e,this.target=e.target,this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,this.keyCode=function(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return r.kL.fromString(t)}let t=e.keyCode;if(3===t)return 7;if(n.isFirefox){if(59===t)return 80;if(107===t)return 81;else if(109===t)return 83;else if(s.dz&&224===t)return 57}else if(n.isWebKit){if(91===t)return 57;if(s.dz&&93===t)return 57;else if(!s.dz&&92===t)return 57}return r.H_[t]||0}(e),this.code=e.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|=e}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new o.QC(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},62880:function(e,t,i){"use strict";i.d(t,{o:function(){return d}});var n=i("9737"),r=i("85763"),o=i("68587"),s=i("31453"),a=i("16904"),l=i("19527"),c=i("44138");i("71550");class d extends l.JT{constructor(e,t={}){var i,l,c,d,u,h;let g,f;switch(super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new a.Q5),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new a.Q5({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new a.Q5),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new a.Q5),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(l=this.options.orientation)&&void 0!==l?l:0,this._triggerKeys={keyDown:null!==(d=null===(c=this.options.triggerKeys)||void 0===c?void 0:c.keyDown)&&void 0!==d&&d,keys:null!==(h=null===(u=this.options.triggerKeys)||void 0===u?void 0:u.keys)&&void 0!==h?h:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new s.Wi,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(e=>this._onDidRun.fire(e))),this._register(this._actionRunner.onBeforeRun(e=>this._onBeforeRun.fire(e))),this._actionIds=[],this.viewItems=[],this.viewItemDisposables=new Map,this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&this.domNode.classList.add("animated"),this._orientation){case 0:g=[15],f=[17];break;case 1:g=[16],f=[18],this.domNode.className+=" vertical"}this._register(n.nm(this.domNode,n.tw.KEY_DOWN,e=>{let t=new r.y(e),i=!0,n="number"==typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;g&&(t.equals(g[0])||t.equals(g[1]))?i=this.focusPrevious():f&&(t.equals(f[0])||t.equals(f[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof o.Y&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())})),this._register(n.nm(this.domNode,n.tw.KEY_UP,e=>{let t=new r.y(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(n.go(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(n.vY()===this.domNode||!n.jg(n.vY(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=2?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){let e=this.viewItems.find(e=>e instanceof o.Y&&e.isEnabled());e instanceof o.Y&&e.setFocusable(!0)}else this.viewItems.forEach(e=>{e instanceof o.Y&&e.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){let t=this.actionsList.children[e];if(n.jg(n.vY(),t)){this.focusedItem=e;break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach(t=>t.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){let i=Array.isArray(e)?e:[e],r=c.hj(t.index)?t.index:null;i.forEach(e=>{let i;let s=document.createElement("li");s.className="action-item",s.setAttribute("role","presentation"),this.options.actionViewItemProvider&&(i=this.options.actionViewItemProvider(e)),!i&&(i=new o.g(this.context,e,Object.assign({hoverDelegate:this.options.hoverDelegate},t))),!this.options.allowContextMenu&&this.viewItemDisposables.set(i,n.nm(s,n.tw.CONTEXT_MENU,e=>{n.zB.stop(e,!0)})),i.actionRunner=this._actionRunner,i.setActionContext(this.context),i.render(s),this.focusable&&i instanceof o.Y&&0===this.viewItems.length&&i.setFocusable(!0),null===r||r<0||r>=this.actionsList.children.length?(this.actionsList.appendChild(s),this.viewItems.push(i),this._actionIds.push(e.id)):(this.actionsList.insertBefore(s,this.actionsList.children[r]),this.viewItems.splice(r,0,i),this._actionIds.splice(r,0,e.id),r++)}),"number"==typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){(0,l.B9)(this.viewItems),this.viewItemDisposables.forEach(e=>e.dispose()),this.viewItemDisposables.clear(),this.viewItems=[],this._actionIds=[],n.PO(this.actionsList),this.refreshRole()}length(){return this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"==typeof e?t=e:"boolean"==typeof e&&(i=e),i&&void 0===this.focusedItem){let e=this.viewItems.findIndex(e=>e.isEnabled());this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){let t;if(void 0===this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;let i=this.focusedItem;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=i,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!t.isEnabled()||t.action.id===s.Z0.ID));return this.updateFocus(),!0}focusPrevious(e){let t;if(void 0===this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;let i=this.focusedItem;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=i,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!t.isEnabled()||t.action.id===s.Z0.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n;void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());let r=void 0!==this.focusedItem&&this.viewItems[this.focusedItem];if(r){let n=!0;!c.mf(r.focus)&&(n=!1),this.options.focusOnlyEnabledItems&&c.mf(r.isEnabled)&&!r.isEnabled()&&(n=!1),r.action.id===s.Z0.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(r.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}doTrigger(e){if(void 0===this.focusedItem)return;let t=this.viewItems[this.focusedItem];if(t instanceof o.Y){let i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}run(e,t){var i,n,r,o;return i=this,n=void 0,r=void 0,o=function*(){yield this._actionRunner.run(e,t)},new(r||(r=Promise))(function(e,t){function s(e){try{l(o.next(e))}catch(e){t(e)}}function a(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof r?i:new r(function(e){e(i)})).then(s,a)}l((o=o.apply(i,n||[])).next())})}dispose(){(0,l.B9)(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}},42072:function(e,t,i){"use strict";i.d(t,{z:function(){return h}});var n=i("9737"),r=i("85763"),o=i("66569"),s=i("72740"),a=i("35271"),l=i("16904"),c=i("19527"),d=i("777");i("31241");let u={buttonBackground:a.Il.fromHex("#0E639C"),buttonHoverBackground:a.Il.fromHex("#006BB3"),buttonSeparator:a.Il.white,buttonForeground:a.Il.white};class h extends c.JT{constructor(e,t){super(),this._onDidClick=this._register(new l.Q5),this.options=t||Object.create(null),(0,d.jB)(this.options,u,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),e.appendChild(this._element),this._register(o.o.addTarget(this._element)),[n.tw.CLICK,o.t.Tap].forEach(e=>{this._register((0,n.nm)(this._element,e,e=>{if(!this.enabled){n.zB.stop(e);return}this._onDidClick.fire(e)}))}),this._register((0,n.nm)(this._element,n.tw.KEY_DOWN,e=>{let t=new r.y(e),i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._element.blur(),i=!0),i&&n.zB.stop(t,!0)})),this._register((0,n.nm)(this._element,n.tw.MOUSE_OVER,e=>{!this._element.classList.contains("disabled")&&this.setHoverBackground()})),this._register((0,n.nm)(this._element,n.tw.MOUSE_OUT,e=>{this.applyStyles()})),this.focusTracker=this._register((0,n.go)(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.setHoverBackground()})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.applyStyles()})),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;(e=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null)&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");let i=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=i?"1px":"",this._element.style.borderStyle=i?"solid":"",this._element.style.borderColor=i}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?(0,n.mc)(this._element,...(0,s.T)(e)):this._element.textContent=e,"string"==typeof this.options.title?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}},13876:function(e,t,i){"use strict";i.d(t,{k:function(){return f}});var n=i("9737"),r=i("67518"),o=i("35271"),s=i("19527"),a=i("777");i("83726");let l="done",c="active",d="infinite",u="infinite-long-running",h="discrete",g={progressBarBackground:o.Il.fromHex("#0E70C0")};class f extends s.JT{constructor(e,t){super(),this.options=t||Object.create(null),(0,a.jB)(this.options,g,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new r.pY(()=>(0,n.$Z)(this.element),0)),this.longRunningScheduler=this._register(new r.pY(()=>this.infiniteLongRunning(),f.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e)}create(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(c,d,u,h),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(l),this.element.classList.contains(d)?this.bit.style.opacity="0":this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off(),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(h,l,u),this.element.classList.add(c,d),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(u)}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){let e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}f.LONG_RUNNING_INFINITE_THRESHOLD=1e4},86774:function(e,t,i){"use strict";i.d(t,{M:function(){return n}});class n{constructor(e,t,i,n,r,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=r,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new n(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){let t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){let t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){let t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,r){let o=Math.max(0,i-e),s=Math.max(0,o-2*t),a=n>0&&n>i;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};let l=Math.round(Math.max(20,Math.floor(i*s/n))),c=(s-l)/(n-i);return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(r*c)}}_refreshComputedValues(){let e=n._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){return this._computedIsNeeded?Math.round((e-this._arrowSize-this._computedSliderSize/2)/this._computedSliderRatio):0}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;let t=e-this._arrowSize,i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){return this._computedIsNeeded?Math.round((this._computedSliderPosition+e)/this._computedSliderRatio):0}}},69552:function(e,t,i){"use strict";i.d(t,{i:function(){return d}});var n=i("9737"),r=i("49482"),o=i("52897"),s=i("16904"),a=i("19527");i("47537");class l{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=l.TemplateId,this.renderedTemplates=new Set;let n=new Map(t.map(e=>[e.templateId,e]));for(let t of(this.renderers=[],e)){let e=n.get(t.templateId);if(!e)throw Error(`Table cell renderer for template id ${t.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){let t=(0,n.R3)(e,(0,n.$)(".monaco-table-tr")),i=[],r=[];for(let e=0;e<this.columns.length;e++){let o=this.renderers[e],s=(0,n.R3)(t,(0,n.$)(".monaco-table-td",{"data-col-index":e}));s.style.width=`${this.getColumnSize(e)}px`,i.push(s),r.push(o.renderTemplate(s))}let o={container:e,cellContainers:i,cellTemplateData:r};return this.renderedTemplates.add(o),o}renderElement(e,t,i,n){for(let r=0;r<this.columns.length;r++){let o=this.columns[r].project(e);this.renderers[r].renderElement(o,t,i.cellTemplateData[r],n)}}disposeElement(e,t,i,n){for(let r=0;r<this.columns.length;r++){let o=this.renderers[r];if(o.disposeElement){let s=this.columns[r].project(e);o.disposeElement(s,t,i.cellTemplateData[r],n)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++)this.renderers[t].disposeTemplate(e.cellTemplateData[t]);(0,n.PO)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(let{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`}}l.TemplateId="row";class c{constructor(e,t){this.column=e,this.index=t,this._onDidLayout=new s.Q5,this.onDidLayout=this._onDidLayout.event,this.element=(0,n.$)(".monaco-table-th",{"data-col-index":t,title:e.tooltip},e.label)}get minimumSize(){var e;return null!==(e=this.column.minimumWidth)&&void 0!==e?e:120}get maximumSize(){var e;return null!==(e=this.column.maximumWidth)&&void 0!==e?e:Number.POSITIVE_INFINITY}get onDidChange(){var e;return null!==(e=this.column.onDidChangeWidthConstraints)&&void 0!==e?e:s.ju.None}layout(e){this._onDidLayout.fire([this.index,e])}}class d{constructor(e,t,i,u,h,g){var f;this.virtualDelegate=i,this.domId=`table_id_${++d.InstanceCount}`,this.disposables=new a.SL,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,n.R3)(t,(0,n.$)(`.monaco-table.${this.domId}`));let p=u.map((e,t)=>new c(e,t)),m={size:p.reduce((e,t)=>e+t.column.weight,0),views:p.map(e=>({size:e.column.weight,view:e}))};this.splitview=this.disposables.add(new o.z(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:m})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;let v=new l(u,h,e=>this.splitview.getViewSize(e));this.list=this.disposables.add(new r.aV(e,this.domNode,(f=i,{getHeight:e=>f.getHeight(e),getTemplateId:()=>l.TemplateId}),[v],g)),s.ju.any(...p.map(e=>e.onDidLayout))(([e,t])=>v.layoutColumn(e,t),null,this.disposables),this.splitview.onDidSashReset(e=>{let t=u.reduce((e,t)=>e+t.weight,0),i=u[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)},null,this.disposables),this.styleElement=(0,n.dS)(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){let t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {
|
|
1
|
+
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["889"],{85763:function(e,t,i){"use strict";i.d(t,{y:function(){return c}});var n=i("59527"),r=i("88980"),o=i("10109"),s=i("7875");let a=s.dz?256:2048,l=s.dz?2048:256;class c{constructor(e){this._standardKeyboardEventBrand=!0;this.browserEvent=e,this.target=e.target,this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,this.keyCode=function(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return r.kL.fromString(t)}let t=e.keyCode;if(3===t)return 7;if(n.isFirefox){if(59===t)return 80;if(107===t)return 81;else if(109===t)return 83;else if(s.dz&&224===t)return 57}else if(n.isWebKit){if(91===t)return 57;if(s.dz&&93===t)return 57;else if(!s.dz&&92===t)return 57}return r.H_[t]||0}(e),this.code=e.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|=e}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new o.QC(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},62880:function(e,t,i){"use strict";i.d(t,{o:function(){return d}});var n=i("9737"),r=i("85763"),o=i("68587"),s=i("31453"),a=i("16904"),l=i("19527"),c=i("44138");i("71550");class d extends l.JT{constructor(e,t={}){var i,l,c,d,u,h;let g,f;switch(super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new a.Q5),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new a.Q5({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new a.Q5),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new a.Q5),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(l=this.options.orientation)&&void 0!==l?l:0,this._triggerKeys={keyDown:null!==(d=null===(c=this.options.triggerKeys)||void 0===c?void 0:c.keyDown)&&void 0!==d&&d,keys:null!==(h=null===(u=this.options.triggerKeys)||void 0===u?void 0:u.keys)&&void 0!==h?h:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new s.Wi,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(e=>this._onDidRun.fire(e))),this._register(this._actionRunner.onBeforeRun(e=>this._onBeforeRun.fire(e))),this._actionIds=[],this.viewItems=[],this.viewItemDisposables=new Map,this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&this.domNode.classList.add("animated"),this._orientation){case 0:g=[15],f=[17];break;case 1:g=[16],f=[18],this.domNode.className+=" vertical"}this._register(n.nm(this.domNode,n.tw.KEY_DOWN,e=>{let t=new r.y(e),i=!0,n="number"==typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;g&&(t.equals(g[0])||t.equals(g[1]))?i=this.focusPrevious():f&&(t.equals(f[0])||t.equals(f[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof o.Y&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())})),this._register(n.nm(this.domNode,n.tw.KEY_UP,e=>{let t=new r.y(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(n.go(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(n.vY()===this.domNode||!n.jg(n.vY(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=2?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){let e=this.viewItems.find(e=>e instanceof o.Y&&e.isEnabled());e instanceof o.Y&&e.setFocusable(!0)}else this.viewItems.forEach(e=>{e instanceof o.Y&&e.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){let t=this.actionsList.children[e];if(n.jg(n.vY(),t)){this.focusedItem=e;break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach(t=>t.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){let i=Array.isArray(e)?e:[e],r=c.hj(t.index)?t.index:null;i.forEach(e=>{let i;let s=document.createElement("li");s.className="action-item",s.setAttribute("role","presentation"),this.options.actionViewItemProvider&&(i=this.options.actionViewItemProvider(e)),!i&&(i=new o.g(this.context,e,Object.assign({hoverDelegate:this.options.hoverDelegate},t))),!this.options.allowContextMenu&&this.viewItemDisposables.set(i,n.nm(s,n.tw.CONTEXT_MENU,e=>{n.zB.stop(e,!0)})),i.actionRunner=this._actionRunner,i.setActionContext(this.context),i.render(s),this.focusable&&i instanceof o.Y&&0===this.viewItems.length&&i.setFocusable(!0),null===r||r<0||r>=this.actionsList.children.length?(this.actionsList.appendChild(s),this.viewItems.push(i),this._actionIds.push(e.id)):(this.actionsList.insertBefore(s,this.actionsList.children[r]),this.viewItems.splice(r,0,i),this._actionIds.splice(r,0,e.id),r++)}),"number"==typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){(0,l.B9)(this.viewItems),this.viewItemDisposables.forEach(e=>e.dispose()),this.viewItemDisposables.clear(),this.viewItems=[],this._actionIds=[],n.PO(this.actionsList),this.refreshRole()}length(){return this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"==typeof e?t=e:"boolean"==typeof e&&(i=e),i&&void 0===this.focusedItem){let e=this.viewItems.findIndex(e=>e.isEnabled());this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){let t;if(void 0===this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;let i=this.focusedItem;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=i,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!t.isEnabled()||t.action.id===s.Z0.ID));return this.updateFocus(),!0}focusPrevious(e){let t;if(void 0===this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;let i=this.focusedItem;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=i,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!t.isEnabled()||t.action.id===s.Z0.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n;void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());let r=void 0!==this.focusedItem&&this.viewItems[this.focusedItem];if(r){let n=!0;!c.mf(r.focus)&&(n=!1),this.options.focusOnlyEnabledItems&&c.mf(r.isEnabled)&&!r.isEnabled()&&(n=!1),r.action.id===s.Z0.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(r.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}doTrigger(e){if(void 0===this.focusedItem)return;let t=this.viewItems[this.focusedItem];if(t instanceof o.Y){let i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}run(e,t){var i,n,r,o;return i=this,n=void 0,r=void 0,o=function*(){yield this._actionRunner.run(e,t)},new(r||(r=Promise))(function(e,t){function s(e){try{l(o.next(e))}catch(e){t(e)}}function a(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof r?i:new r(function(e){e(i)})).then(s,a)}l((o=o.apply(i,n||[])).next())})}dispose(){(0,l.B9)(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}},42072:function(e,t,i){"use strict";i.d(t,{z:function(){return h}});var n=i("9737"),r=i("85763"),o=i("66569"),s=i("72740"),a=i("35271"),l=i("16904"),c=i("19527"),d=i("777");i("31241");let u={buttonBackground:a.Il.fromHex("#0E639C"),buttonHoverBackground:a.Il.fromHex("#006BB3"),buttonSeparator:a.Il.white,buttonForeground:a.Il.white};class h extends c.JT{constructor(e,t){super(),this._onDidClick=this._register(new l.Q5),this.options=t||Object.create(null),(0,d.jB)(this.options,u,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),e.appendChild(this._element),this._register(o.o.addTarget(this._element)),[n.tw.CLICK,o.t.Tap].forEach(e=>{this._register((0,n.nm)(this._element,e,e=>{if(!this.enabled){n.zB.stop(e);return}this._onDidClick.fire(e)}))}),this._register((0,n.nm)(this._element,n.tw.KEY_DOWN,e=>{let t=new r.y(e),i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._element.blur(),i=!0),i&&n.zB.stop(t,!0)})),this._register((0,n.nm)(this._element,n.tw.MOUSE_OVER,e=>{!this._element.classList.contains("disabled")&&this.setHoverBackground()})),this._register((0,n.nm)(this._element,n.tw.MOUSE_OUT,e=>{this.applyStyles()})),this.focusTracker=this._register((0,n.go)(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.setHoverBackground()})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.applyStyles()})),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;(e=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null)&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");let i=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=i?"1px":"",this._element.style.borderStyle=i?"solid":"",this._element.style.borderColor=i}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?(0,n.mc)(this._element,...(0,s.T)(e)):this._element.textContent=e,"string"==typeof this.options.title?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}},13876:function(e,t,i){"use strict";i.d(t,{k:function(){return f}});var n=i("9737"),r=i("67518"),o=i("35271"),s=i("19527"),a=i("777");i("83726");let l="done",c="active",d="infinite",u="infinite-long-running",h="discrete",g={progressBarBackground:o.Il.fromHex("#0E70C0")};class f extends s.JT{constructor(e,t){super(),this.options=t||Object.create(null),(0,a.jB)(this.options,g,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new r.pY(()=>(0,n.$Z)(this.element),0)),this.longRunningScheduler=this._register(new r.pY(()=>this.infiniteLongRunning(),f.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e)}create(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(c,d,u,h),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(l),this.element.classList.contains(d)?this.bit.style.opacity="0":this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off(),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(h,l,u),this.element.classList.add(c,d),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(u)}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){let e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}f.LONG_RUNNING_INFINITE_THRESHOLD=1e4},86774:function(e,t,i){"use strict";i.d(t,{M:function(){return n}});class n{constructor(e,t,i,n,r,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=r,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new n(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){let t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){let t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){let t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,r){let o=Math.max(0,i-e),s=Math.max(0,o-2*t),a=n>0&&n>i;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};let l=Math.round(Math.max(20,Math.floor(i*s/n))),c=(s-l)/(n-i);return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(r*c)}}_refreshComputedValues(){let e=n._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){return this._computedIsNeeded?Math.round((e-this._arrowSize-this._computedSliderSize/2)/this._computedSliderRatio):0}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;let t=e-this._arrowSize,i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){return this._computedIsNeeded?Math.round((this._computedSliderPosition+e)/this._computedSliderRatio):0}}},69552:function(e,t,i){"use strict";i.d(t,{i:function(){return d}});var n=i("9737"),r=i("49482"),o=i("52897"),s=i("16904"),a=i("19527");i("47537");class l{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=l.TemplateId,this.renderedTemplates=new Set;let n=new Map(t.map(e=>[e.templateId,e]));for(let t of(this.renderers=[],e)){let e=n.get(t.templateId);if(!e)throw Error(`Table cell renderer for template id ${t.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){let t=(0,n.R3)(e,(0,n.$)(".monaco-table-tr")),i=[],r=[];for(let e=0;e<this.columns.length;e++){let o=this.renderers[e],s=(0,n.R3)(t,(0,n.$)(".monaco-table-td",{"data-col-index":e}));s.style.width=`${this.getColumnSize(e)}px`,i.push(s),r.push(o.renderTemplate(s))}let o={container:e,cellContainers:i,cellTemplateData:r};return this.renderedTemplates.add(o),o}renderElement(e,t,i,n){for(let r=0;r<this.columns.length;r++){let o=this.columns[r].project(e);this.renderers[r].renderElement(o,t,i.cellTemplateData[r],n)}}disposeElement(e,t,i,n){for(let r=0;r<this.columns.length;r++){let o=this.renderers[r];if(o.disposeElement){let s=this.columns[r].project(e);o.disposeElement(s,t,i.cellTemplateData[r],n)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++)this.renderers[t].disposeTemplate(e.cellTemplateData[t]);(0,n.PO)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(let{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`}}l.TemplateId="row";class c{constructor(e,t){this.column=e,this.index=t,this._onDidLayout=new s.Q5,this.onDidLayout=this._onDidLayout.event,this.element=(0,n.$)(".monaco-table-th",{"data-col-index":t,title:e.tooltip},e.label)}get minimumSize(){var e;return null!==(e=this.column.minimumWidth)&&void 0!==e?e:120}get maximumSize(){var e;return null!==(e=this.column.maximumWidth)&&void 0!==e?e:Number.POSITIVE_INFINITY}get onDidChange(){var e;return null!==(e=this.column.onDidChangeWidthConstraints)&&void 0!==e?e:s.ju.None}layout(e){this._onDidLayout.fire([this.index,e])}}class d{constructor(e,t,i,u,h,g){var f;this.virtualDelegate=i,this.domId=`table_id_${++d.InstanceCount}`,this.disposables=new a.SL,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,n.R3)(t,(0,n.$)(`.monaco-table.${this.domId}`));let p=u.map((e,t)=>new c(e,t)),m={size:p.reduce((e,t)=>e+t.column.weight,0),views:p.map(e=>({size:e.column.weight,view:e}))};this.splitview=this.disposables.add(new o.z(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:m})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;let v=new l(u,h,e=>this.splitview.getViewSize(e));this.list=this.disposables.add(new r.aV(e,this.domNode,(f=i,{getHeight:e=>f.getHeight(e),getTemplateId:()=>l.TemplateId}),[v],g)),s.ju.any(...p.map(e=>e.onDidLayout))(([e,t])=>v.layoutColumn(e,t),null,this.disposables),this.splitview.onDidSashReset(e=>{let t=u.reduce((e,t)=>e+t.weight,0),i=u[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)},null,this.disposables),this.styleElement=(0,n.dS)(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){let t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {
|
|
2
2
|
top: ${this.virtualDelegate.headerRowHeight+1}px;
|
|
3
3
|
height: calc(100% - ${this.virtualDelegate.headerRowHeight}px);
|
|
4
4
|
}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}d.InstanceCount=0},55498:function(e,t,i){"use strict";i.d(t,{CH:function(){return R},cz:function(){return E},sZ:function(){return s}});var n,r,o,s,a=i("9737");i("53376");var l=i("85763");i("62880"),i("20184");var c=i("38367"),d=i("49482");i("47185");var u=i("85142"),h=i("507");i("31453");var g=i("3868"),f=i("67518"),p=i("71628"),m=i("33296"),v=i("16904"),b=i("75024"),C=i("19527"),k=i("68308"),_=i("44138");i("61761");var w=i("8339");class y extends c.kX{constructor(e){super(e.elements.map(e=>e.element)),this.data=e}}function S(e){return e instanceof c.kX?new y(e):e}class x{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=C.JT.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,S(e),t)}onDragOver(e,t,i,n,r=!0){let o=this.dnd.onDragOver(S(e),t&&t.element,i,n),s=this.autoExpandNode!==t;if(s&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return o;if(s&&"boolean"!=typeof o&&o.autoExpand&&(this.autoExpandDisposable=(0,f.Vg)(()=>{let e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0},500)),"boolean"==typeof o||!o.accept||void 0===o.bubble||o.feedback){if(!r){let e="boolean"==typeof o?o:o.accept;return{accept:e,effect:"boolean"==typeof o?void 0:o.effect,feedback:[i]}}return o}if(1===o.bubble){let i=this.modelProvider(),r=i.getNodeLocation(t),o=i.getParentNodeLocation(r),s=i.getNode(o),a=o&&i.getListIndex(o);return this.onDragOver(e,s,a,n,!1)}let a=this.modelProvider(),l=a.getNodeLocation(t),c=a.getListIndex(l),d=a.getListRenderCount(l);return Object.assign(Object.assign({},o),{feedback:(0,g.w6)(c,c+d)})}drop(e,t,i,n){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(S(e),t&&t.element,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}}class E{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;null===(n=(i=this.delegate).setDynamicHeight)||void 0===n||n.call(i,e.element,t)}}(n=o||(o={})).None="none",n.OnHover="onHover",n.Always="always";class L{constructor(e,t=[]){this._elements=t,this.disposables=new C.SL,this.onDidChange=v.ju.forEach(e,e=>this._elements=e,this.disposables)}get elements(){return this._elements}dispose(){this.disposables.dispose()}}class I{constructor(e,t,i,n,r={}){var o;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=I.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new m.r,this.activeIndentNodes=new Set,this.indentGuidesDisposable=C.JT.None,this.disposables=new C.SL,this.templateId=e.templateId,this.updateOptions(r),v.ju.map(i,e=>e.node)(this.onDidChangeNodeTwistieState,this,this.disposables),null===(o=e.onDidChangeTwistieState)||void 0===o||o.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(void 0!==e.indent&&(this.indent=(0,k.uZ)(e.indent,0,40)),void 0!==e.renderIndentGuides){let t=e.renderIndentGuides!==o.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){let e=new C.SL;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){let t=(0,a.R3)(e,(0,a.$)(".monaco-tl-row")),i=(0,a.R3)(t,(0,a.$)(".monaco-tl-indent")),n=(0,a.R3)(t,(0,a.$)(".monaco-tl-twistie")),r=(0,a.R3)(t,(0,a.$)(".monaco-tl-contents")),o=this.renderer.renderTemplate(r);return{container:e,indent:i,twistie:n,indentGuidesDisposable:C.JT.None,templateData:o}}renderElement(e,t,i,n){"number"==typeof n&&(this.renderedNodes.set(e,{templateData:i,height:n}),this.renderedElements.set(e.element,e));let r=I.DefaultIndent+(e.depth-1)*this.indent;i.twistie.style.paddingLeft=`${r}px`,i.indent.style.width=`${r+this.indent-16}px`,this.renderTwistie(e,i),"number"==typeof n&&this.renderIndentGuides(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var r,o;i.indentGuidesDisposable.dispose(),null===(o=(r=this.renderer).disposeElement)||void 0===o||o.call(r,e,t,i.templateData,n),"number"==typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){let t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){let t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){t.twistie.classList.remove(...p.lA.treeItemExpanded.classNamesArray);let i=!1;this.renderer.renderTwistie&&(i=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(!i&&t.twistie.classList.add(...p.lA.treeItemExpanded.classNamesArray),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if((0,a.PO)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;let i=new C.SL,n=this.modelProvider(),r=e;for(;;){let e=n.getNodeLocation(r),o=n.getParentNodeLocation(e);if(!o)break;let s=n.getNode(o),l=(0,a.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(s)&&l.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(l):t.indent.insertBefore(l,t.indent.firstElementChild),this.renderedIndentGuides.add(s,l),i.add((0,C.OF)(()=>this.renderedIndentGuides.delete(s,l))),r=s}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;let t=new Set,i=this.modelProvider();e.forEach(e=>{let n=i.getNodeLocation(e);try{let r=i.getParentNodeLocation(n);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):r&&t.add(i.getNode(r))}catch(e){}}),this.activeIndentNodes.forEach(e=>{!t.has(e)&&this.renderedIndentGuides.forEach(e,e=>e.classList.remove("active"))}),t.forEach(e=>{!this.activeIndentNodes.has(e)&&this.renderedIndentGuides.forEach(e,e=>e.classList.add("active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,C.B9)(this.disposables)}}I.DefaultIndent=8;class N{constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new C.SL,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}filter(e,t){let i=1;if(this._filter){let n=this._filter.filter(e,t);if(0===(i="boolean"==typeof n?n?1:0:(0,u.gB)(n)?(0,u.aG)(n.visibility):n))return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:b.CL.Default,visibility:i};let n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),r=Array.isArray(n)?n:[n];for(let e of r){let t=e&&e.toString();if(void 0===t)return{data:b.CL.Default,visibility:i};let n=(0,b.EW)(this._pattern,this._lowercasePattern,0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(n)return this._matchCount++,1===r.length?{data:n,visibility:i}:{data:{label:t,score:n},visibility:i}}return this.tree.findMode===s.Filter?2:{data:b.CL.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,C.B9)(this.disposables)}}(r=s||(s={}))[r.Highlight=0]="Highlight",r[r.Filter=1]="Filter";class D{constructor(e,t,i,n,r){var o;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=r,this._pattern="",this.width=0,this._onDidChangeMode=new v.Q5,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangePattern=new v.Q5,this._onDidChangeOpenState=new v.Q5,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new C.SL,this.disposables=new C.SL,this._mode=null!==(o=e.options.defaultFindMode)&&void 0!==o?o:s.Highlight,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){var e,t;let i=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&i?null===(e=this.widget)||void 0===e||e.showMessage({type:2,content:(0,w.NC)("not found","No elements found.")}):null===(t=this.widget)||void 0===t||t.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this._mode===s.Filter||!!(this.filter.totalCount>0)&&!!(this.filter.matchCount<=1)||!b.CL.isDefault(e.filterData)}style(e){var t;this.styles=e,null===(t=this.widget)||void 0===t||t.style(e)}layout(e){var t;this.width=e,null===(t=this.widget)||void 0===t||t.layout(e)}dispose(){this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function A(e){let t=h.sD.Unknown;return(0,a.uU)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=h.sD.Twistie:(0,a.uU)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=h.sD.Element:(0,a.uU)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=h.sD.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function T(e,t){t(e),e.children.forEach(e=>T(e,t))}class P{constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new v.Q5,this.onDidChange=this._onDidChange.event}get nodeSet(){return!this._nodeSet&&(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){!(!(null==t?void 0:t.__forceEvent)&&(0,g.fS)(this.nodes,e))&&this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){let e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return!this.elements&&(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){let e=this.createNodeSet(),i=t=>e.delete(t);t.forEach(e=>T(e,i)),this.set([...e.values()]);return}let i=new Set,n=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach(e=>T(e,n));let r=new Map,o=e=>r.set(this.identityProvider.getId(e.element).toString(),e);e.forEach(e=>T(e,o));let s=[];for(let e of this.nodes){let t=this.identityProvider.getId(e.element).toString();if(i.has(t)){let e=r.get(t);e&&s.push(e)}else s.push(e)}if(this.nodes.length>0&&0===s.length){let e=this.getFirstViewElementWithTrait();e&&s.push(e)}this._set(s,!0)}createNodeSet(){let e=new Set;for(let t of this.nodes)e.add(t);return e}}class F extends d.sx{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if((0,d.iK)(e.browserEvent.target)||(0,d.cK)(e.browserEvent.target)||(0,d.hD)(e.browserEvent.target))return;let t=e.element;if(!t||this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);let i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,r=!1;if((r="function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick)&&!n&&2!==e.browserEvent.detail||!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e);if(t.collapsible){let i=this.tree.model,o=i.getNodeLocation(t),s=e.browserEvent.altKey;if(this.tree.setFocus([o]),i.setCollapsed(o,void 0,s),r&&n)return}super.onViewPointer(e)}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&super.onDoubleClick(e)}}class O extends d.aV{constructor(e,t,i,n,r,o,s,a){super(e,t,i,n,a),this.focusTrait=r,this.selectionTrait=o,this.anchorTrait=s}createMouseController(e){return new F(this,e.tree)}splice(e,t,i=[]){let n;if(super.splice(e,t,i),0===i.length)return;let r=[],o=[];i.forEach((t,i)=>{this.focusTrait.has(t)&&r.push(e+i),this.selectionTrait.has(t)&&o.push(e+i),this.anchorTrait.has(t)&&(n=e+i)}),r.length>0&&super.setFocus((0,g.EB)([...super.getFocus(),...r])),o.length>0&&super.setSelection((0,g.EB)([...super.getSelection(),...o])),"number"==typeof n&&super.setAnchor(n)}setFocus(e,t,i=!1){super.setFocus(e,t),!i&&this.focusTrait.set(e.map(e=>this.element(e)),t)}setSelection(e,t,i=!1){super.setSelection(e,t),!i&&this.selectionTrait.set(e.map(e=>this.element(e)),t)}setAnchor(e,t=!1){super.setAnchor(e),!t&&(void 0===e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class R{constructor(e,t,i,n,r={}){var s,c,u;let h;this._user=e,this._options=r,this.eventBufferer=new v.E7,this.onDidChangeFindOpenState=v.ju.None,this.disposables=new C.SL,this._onWillRefilter=new v.Q5,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new v.Q5;let g=new E(i),f=new v.ZD,p=new v.ZD,m=this.disposables.add(new L(p.event));for(let e of(this.renderers=n.map(e=>new I(e,()=>this.model,f.event,m,r)),this.renderers))this.disposables.add(e);r.keyboardNavigationLabelProvider&&(h=new N(this,r.keyboardNavigationLabelProvider,r.filter),r=Object.assign(Object.assign({},r),{filter:h}),this.disposables.add(h)),this.focus=new P(()=>this.view.getFocusedElements()[0],r.identityProvider),this.selection=new P(()=>this.view.getSelectedElements()[0],r.identityProvider),this.anchor=new P(()=>this.view.getAnchorElement(),r.identityProvider),this.view=new O(e,t,g,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},(c=()=>this.model,(u=r)&&Object.assign(Object.assign({},u),{identityProvider:u.identityProvider&&{getId:e=>u.identityProvider.getId(e.element)},dnd:u.dnd&&new x(c,u.dnd),multipleSelectionController:u.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>u.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element})),isSelectionRangeChangeEvent:e=>u.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},accessibilityProvider:u.accessibilityProvider&&Object.assign(Object.assign({},u.accessibilityProvider),{getSetSize(e){let t=c(),i=t.getNodeLocation(e),n=t.getParentNodeLocation(i);return t.getNode(n).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:u.accessibilityProvider&&u.accessibilityProvider.isChecked?e=>u.accessibilityProvider.isChecked(e.element):void 0,getRole:u.accessibilityProvider&&u.accessibilityProvider.getRole?e=>u.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>u.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>u.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:u.accessibilityProvider&&u.accessibilityProvider.getWidgetRole?()=>u.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:u.accessibilityProvider&&u.accessibilityProvider.getAriaLevel?e=>u.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:u.accessibilityProvider.getActiveDescendantId&&(e=>u.accessibilityProvider.getActiveDescendantId(e.element))}),keyboardNavigationLabelProvider:u.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},u.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:e=>u.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)})}))),{tree:this})),this.model=this.createModel(e,this.view,r),f.input=this.model.onDidChangeCollapseState;let b=v.ju.forEach(this.model.onDidSplice,e=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)})},this.disposables);if(b(()=>null,null,this.disposables),p.input=v.ju.chain(v.ju.any(b,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{let e=new Set;for(let t of this.focus.getNodes())e.add(t);for(let t of this.selection.getNodes())e.add(t);return[...e.values()]}).event,!1!==r.keyboardSupport){let e=v.ju.chain(this.view.onKeyDown).filter(e=>!(0,d.cK)(e.target)).map(e=>new l.y(e));e.filter(e=>15===e.keyCode).on(this.onLeftArrow,this,this.disposables),e.filter(e=>17===e.keyCode).on(this.onRightArrow,this,this.disposables),e.filter(e=>10===e.keyCode).on(this.onSpace,this,this.disposables)}(null===(s=r.findWidgetEnabled)||void 0===s||s)&&r.keyboardNavigationLabelProvider&&r.contextViewProvider?(this.findController=new D(this,this.model,this.view,h,r.contextViewProvider),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode):this.onDidChangeFindMode=v.ju.None,this.styleElement=(0,a.dS)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===o.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return v.ju.filter(v.ju.map(this.view.onMouseDblClick,A),e=>e.target!==h.sD.Filter)}get onPointer(){return v.ju.map(this.view.onPointer,A)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return v.ju.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.mode)&&void 0!==t?t:s.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get expandOnDoubleClick(){return void 0===this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return void 0===this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){for(let t of(this._options=Object.assign(Object.assign({},this._options),e),this.renderers))t.updateOptions(e);this.view.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===o.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),(0,_.hj)(t)&&(null===(i=this.findController)||void 0===i||i.layout(t))}style(e){var t;let i=`.${this.view.domId}`,n=[];e.treeIndentGuidesStroke&&(n.push(`.monaco-list${i}:hover .monaco-tl-indent > .indent-guide, .monaco-list${i}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),n.push(`.monaco-list${i} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`)),this.styleElement.textContent=n.join("\n"),null===(t=this.findController)||void 0===t||t.style(e),this.view.style(e)}getParentElement(e){let t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){let i=e.map(e=>this.model.getNode(e));this.selection.set(i,t);let n=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setSelection(n,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){let i=e.map(e=>this.model.getNode(e));this.focus.set(i,t);let n=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setFocus(n,t,!0)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);let i=this.model.getListIndex(e);-1!==i&&this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();let t=this.view.getFocusedElements();if(0===t.length)return;let i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){let e=this.model.getParentNodeLocation(n);if(!e)return;let t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();let t=this.view.getFocusedElements();if(0===t.length)return;let i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some(e=>e.visible))return;let[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();let t=this.view.getFocusedElements();if(0===t.length)return;let i=t[0],n=this.model.getNodeLocation(i),r=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,r)}dispose(){(0,C.B9)(this.disposables),this.view.dispose()}}},28356:function(e,t,i){"use strict";i.d(t,{UE:function(){return f}});var n=i("3692"),r=i("507"),o=i("16904"),s=i("80189");function a(e){let t=[e.element];return{element:{elements:t,incompressible:e.incompressible||!1},children:s.$.map(s.$.from(e.children),a),collapsible:e.collapsible,collapsed:e.collapsed}}function l(e){let t,i;let n=[e.element],r=e.incompressible||!1;for(;[i,t]=s.$.consume(s.$.from(e.children),2),1===i.length&&!i[0].incompressible;){;e=i[0],n.push(e.element)}return{element:{elements:n,incompressible:r},children:s.$.map(s.$.concat(i,t),l),collapsible:e.collapsible,collapsed:e.collapsed}}function c(e){return function e(t,i=0){let n;return(n=i<t.element.elements.length-1?[e(t,i+1)]:s.$.map(s.$.from(t.children),t=>e(t,0)),0===i&&t.element.incompressible)?{element:t.element.elements[i],children:n,incompressible:!0,collapsible:t.collapsible,collapsed:t.collapsed}:{element:t.element.elements[i],children:n,collapsible:t.collapsible,collapsed:t.collapsed}}(e,0)}let d=e=>({getId:t=>t.elements.map(t=>e.getId(t).toString()).join("\0")});class u{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new n.F(e,t,i),this.enabled=void 0===i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=s.$.empty(),i){let n=i.diffIdentityProvider&&d(i.diffIdentityProvider);if(null===e){let e=s.$.map(t,this.enabled?l:a);this._setChildren(null,e,{diffIdentityProvider:n,diffDepth:1/0});return}let r=this.nodes.get(e);if(!r)throw Error("Unknown compressed tree node");let o=this.model.getNode(r),u=this.model.getParentNodeLocation(r),h=this.model.getNode(u),g=function e(t,i,n){return t.element===i?Object.assign(Object.assign({},t),{children:n}):Object.assign(Object.assign({},t),{children:s.$.map(s.$.from(t.children),t=>e(t,i,n))})}(c(o),e,t),f=(this.enabled?l:a)(g),p=h.children.map(e=>e===o?f:e);this._setChildren(h.element,p,{diffIdentityProvider:n,diffDepth:o.depth-h.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;let t=this.model.getNode().children,i=s.$.map(t,c),n=s.$.map(i,e?l:a);this._setChildren(null,n,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){let n=new Set;this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{for(let t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(let t of e.element.elements)!n.has(t)&&this.nodes.delete(t)}}))}has(e){return this.nodes.has(e)}getListIndex(e){let t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){let t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(void 0===e)return this.model.getNode();let t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){let t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){let t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){let t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){let t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){let i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){let t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){let n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){let t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){let t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;let t=this.nodes.get(e);if(!t)throw new r.ac(this.user,`Tree element not found: ${e}`);return t}}let h=e=>e[e.length-1];class g{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new g(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class f{constructor(e,t,i={}){var n,o,s,a;this.rootRef=null,this.elementMapper=i.elementMapper||h;let l=e=>this.elementMapper(e.elements);this.nodeMapper=new r.VA(e=>new g(l,e)),this.model=new u(e,(n=this.nodeMapper,o=t,{splice(e,t,i){o.splice(e,t,i.map(e=>n.map(e)))},updateElementHeight(e,t){o.updateElementHeight(e,t)}}),(s=l,Object.assign(Object.assign({},a=i),{identityProvider:a.identityProvider&&{getId:e=>a.identityProvider.getId(s(e))},sorter:a.sorter&&{compare:(e,t)=>a.sorter.compare(e.elements[0],t.elements[0])},filter:a.filter&&{filter:(e,t)=>a.filter.filter(s(e),t)}})))}get onDidSplice(){return o.ju.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(e=>this.nodeMapper.map(e)),deletedNodes:t.map(e=>this.nodeMapper.map(e))}))}get onDidChangeCollapseState(){return o.ju.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return o.ju.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=s.$.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){let t=this.model.getFirstElementChild(e);return null==t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}},95832:function(e,t,i){"use strict";i.d(t,{$:function(){return l}});var n=i("9737"),r=i("85763"),o=i("19219"),s=i("66569"),a=i("19527");class l extends a.JT{onclick(e,t){this._register(n.nm(e,n.tw.CLICK,e=>t(new o.n(e))))}onmousedown(e,t){this._register(n.nm(e,n.tw.MOUSE_DOWN,e=>t(new o.n(e))))}onmouseover(e,t){this._register(n.nm(e,n.tw.MOUSE_OVER,e=>t(new o.n(e))))}onmouseleave(e,t){this._register(n.nm(e,n.tw.MOUSE_LEAVE,e=>t(new o.n(e))))}onkeydown(e,t){this._register(n.nm(e,n.tw.KEY_DOWN,e=>t(new r.y(e))))}onkeyup(e,t){this._register(n.nm(e,n.tw.KEY_UP,e=>t(new r.y(e))))}oninput(e,t){this._register(n.nm(e,n.tw.INPUT,t))}onblur(e,t){this._register(n.nm(e,n.tw.BLUR,t))}onfocus(e,t){this._register(n.nm(e,n.tw.FOCUS,t))}ignoreGesture(e){s.o.ignoreTarget(e)}}},3868:function(e,t,i){"use strict";var n,r;function o(e,t=0){return e[e.length-(1+t)]}function s(e){if(0===e.length)throw Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function a(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!i(e[n],t[n]))return!1;return!0}function l(e,t){let i=e.length-1;t<i&&(e[t]=e[i]),e.pop()}function c(e,t,i){return function(e,t){let i=0,n=e-1;for(;i<=n;){let e=(i+n)/2|0,r=t(e);if(r<0)i=e+1;else{if(!(r>0))return e;n=e-1}}return-(i+1)}(e.length,n=>i(e[n],t))}i.d(t,{Dc:function(){return I},EB:function(){return p},Gb:function(){return o},H9:function(){return A},HW:function(){return function e(t,i,n){if((t|=0)>=i.length)throw TypeError("invalid index");let r=i[Math.floor(i.length*Math.random())],o=[],s=[],a=[];for(let e of i){let t=n(e,r);t<0?o.push(e):t>0?s.push(e):a.push(e)}return t<o.length?e(t,o,n):t<o.length+a.length?a[0]:e(t-(o.length+a.length),s,n)}},JH:function(){return s},LS:function(){return l},Of:function(){return f},VJ:function(){return D},XY:function(){return g},Xh:function(){return v},Zv:function(){return C},_2:function(){return y},al:function(){return _},dF:function(){return m},db:function(){return S},fS:function(){return a},fv:function(){return L},jV:function(){return N},kX:function(){return h},lG:function(){return d},ry:function(){return c},tT:function(){return E},vA:function(){return w},vM:function(){return u},w6:function(){return b},zI:function(){return k}});function d(e,t){let i=0,n=e.length;if(0===n)return 0;for(;i<n;){let r=Math.floor((i+n)/2);t(e[r])?n=r:i=r+1}return i}function u(e,t){let i,n=[];for(let r of e.slice(0).sort(t))i&&0===t(i[0],r)?i.push(r):(i=[r],n.push(i));return n}function h(e){return e.filter(e=>!!e)}function g(e){return!Array.isArray(e)||0===e.length}function f(e){return Array.isArray(e)&&e.length>0}function p(e,t=e=>e){let i=new Set;return e.filter(e=>{let n=t(e);return!i.has(n)&&(i.add(n),!0)})}function m(e,t){let i=function(e,t){for(let i=e.length-1;i>=0;i--)if(t(e[i]))return i;return -1}(e,t);if(-1!==i)return e[i]}function v(e,t){return e.length>0?e[0]:t}function b(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);let n=[];if(i<=t)for(let e=i;e<t;e++)n.push(e);else for(let e=i;e>t;e--)n.push(e);return n}function C(e,t,i){let n=e.slice(0,t),r=e.slice(t);return n.concat(i,r)}function k(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function _(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function w(e,t){for(let i of t)e.push(i)}function y(e){return Array.isArray(e)?e:[e]}function S(e,t,i,n){let r=x(e,t),o=e.splice(r,i);return!function(e,t,i){let n=x(e,t),r=e.length,o=i.length;e.length=r+o;for(let t=r-1;t>=n;t--)e[t+o]=e[t];for(let t=0;t<o;t++)e[t+n]=i[t]}(e,r,n),o}function x(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}function E(e,t){return(i,n)=>t(e(i),e(n))}(r=n||(n={})).isLessThan=function(e){return e<0},r.isGreaterThan=function(e){return e>0},r.isNeitherLessOrGreaterThan=function(e){return 0===e},r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0;let L=(e,t)=>e-t;function I(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){let r=e[n];t(r,i)>0&&(i=r)}return i}function N(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n<e.length;n++){let r=e[n];t(r,i)>=0&&(i=r)}return i}function D(e,t){return I(e,(e,i)=>-t(e,i))}class A{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;let i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}},68308:function(e,t,i){"use strict";function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{N:function(){return o},nM:function(){return r},uZ:function(){return n}});class r{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class o{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=Array(e),this._values.fill(0,0,e)}update(e){let t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}},777:function(e,t,i){"use strict";i.d(t,{I8:function(){return function e(t){if(!t||"object"!=typeof t||t instanceof RegExp)return t;let i=Array.isArray(t)?[]:{};return Object.keys(t).forEach(n=>{t[n]&&"object"==typeof t[n]?i[n]=e(t[n]):i[n]=t[n]}),i}},_A:function(){return r},fS:function(){return function e(t,i){let n,r;if(t===i)return!0;if(null==t||null==i||typeof t!=typeof i||"object"!=typeof t||Array.isArray(t)!==Array.isArray(i))return!1;if(Array.isArray(t)){if(t.length!==i.length)return!1;for(n=0;n<t.length;n++)if(!e(t[n],i[n]))return!1}else{let o=[];for(r in t)o.push(r);o.sort();let s=[];for(r in i)s.push(r);if(s.sort(),!e(o,s))return!1;for(n=0;n<o.length;n++)if(!e(t[o[n]],i[o[n]]))return!1}return!0}},jB:function(){return function e(t,i,r=!0){return(0,n.Kn)(t)?((0,n.Kn)(i)&&Object.keys(i).forEach(o=>{o in t?r&&((0,n.Kn)(t[o])&&(0,n.Kn)(i[o])?e(t[o],i[o],r):t[o]=i[o]):t[o]=i[o]}),t):i}},rs:function(){return s}});var n=i("44138");function r(e){if(!e||"object"!=typeof e)return e;let t=[e];for(;t.length>0;){let e=t.shift();for(let i in Object.freeze(e),e)if(o.call(e,i)){let r=e[i];"object"==typeof r&&!Object.isFrozen(r)&&!(0,n.fU)(r)&&t.push(r)}}return e}let o=Object.prototype.hasOwnProperty;function s(e,t){return function e(t,i,r){if((0,n.Jp)(t))return t;let s=i(t);if(void 0!==s)return s;if((0,n.kJ)(t)){let n=[];for(let o of t)n.push(e(o,i,r));return n}if((0,n.Kn)(t)){if(r.has(t))throw Error("Cannot clone recursive data-structure");r.add(t);let n={};for(let s in t)o.call(t,s)&&(n[s]=e(t[s],i,r));return r.delete(t),n}return t}(e,t,new Set)}},55410:function(e,t,i){"use strict";i.d(t,{DB:function(){return f},DZ:function(){return b},EZ:function(){return v},Fv:function(){return g},Gf:function(){return p},KR:function(){return h},Ku:function(){return u},XX:function(){return m},ir:function(){return C}});var n=i("68766");class r extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let r=-1!==e.indexOf(".")?"property":"argument",o=`The "${e}" ${r} ${n} of type ${t}`;super(o+=`. Received type ${typeof i}`),this.code="ERR_INVALID_ARG_TYPE"}}function o(e,t){if("string"!=typeof e)throw new r(t,"string",e)}function s(e){return 47===e||92===e}function a(e){return 47===e}function l(e){return e>=65&&e<=90||e>=97&&e<=122}function c(e,t,i,n){let r="",o=0,s=-1,a=0,l=0;for(let c=0;c<=e.length;++c){if(c<e.length)l=e.charCodeAt(c);else if(n(l))break;else l=47;if(n(l)){if(s===c-1||1===a);else if(2===a){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){let e=r.lastIndexOf(i);-1===e?(r="",o=0):o=(r=r.slice(0,e)).length-1-r.lastIndexOf(i),s=c,a=0;continue}if(0!==r.length){r="",o=0,s=c,a=0;continue}}t&&(r+=r.length>0?`${i}..`:"..",o=2)}else r.length>0?r+=`${i}${e.slice(s+1,c)}`:r=e.slice(s+1,c),o=c-s-1;s=c,a=0}else 46===l&&-1!==a?++a:a=-1}return r}function d(e,t){if(null===t||"object"!=typeof t)throw new r("pathObject","Object",t);let i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}let u={resolve(...e){let t="",i="",r=!1;for(let a=e.length-1;a>=-1;a--){let c;if(a>=0){if(o(c=e[a],"path"),0===c.length)continue}else 0===t.length?c=n.Vj():(void 0===(c=n.OB[`=${t}`]||n.Vj())||c.slice(0,2).toLowerCase()!==t.toLowerCase()&&92===c.charCodeAt(2))&&(c=`${t}\\`);let d=c.length,u=0,h="",g=!1,f=c.charCodeAt(0);if(1===d)s(f)&&(u=1,g=!0);else if(s(f)){if(g=!0,s(c.charCodeAt(1))){let e=2,t=2;for(;e<d&&!s(c.charCodeAt(e));)e++;if(e<d&&e!==t){let i=c.slice(t,e);for(t=e;e<d&&s(c.charCodeAt(e));)e++;if(e<d&&e!==t){for(t=e;e<d&&!s(c.charCodeAt(e));)e++;(e===d||e!==t)&&(h=`\\\\${i}\\${c.slice(t,e)}`,u=e)}}}else u=1}else l(f)&&58===c.charCodeAt(1)&&(h=c.slice(0,2),u=2,d>2&&s(c.charCodeAt(2))&&(g=!0,u=3));if(h.length>0){if(t.length>0){if(h.toLowerCase()!==t.toLowerCase())continue}else t=h}if(r){if(t.length>0)break}else if(i=`${c.slice(u)}\\${i}`,r=g,g&&t.length>0)break}return i=c(i,!r,"\\",s),r?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){let t;o(e,"path");let i=e.length;if(0===i)return".";let n=0,r=!1,d=e.charCodeAt(0);if(1===i)return a(d)?"\\":e;if(s(d)){if(r=!0,s(e.charCodeAt(1))){let r=2,o=2;for(;r<i&&!s(e.charCodeAt(r));)r++;if(r<i&&r!==o){let a=e.slice(o,r);for(o=r;r<i&&s(e.charCodeAt(r));)r++;if(r<i&&r!==o){for(o=r;r<i&&!s(e.charCodeAt(r));)r++;if(r===i)return`\\\\${a}\\${e.slice(o)}\\`;r!==o&&(t=`\\\\${a}\\${e.slice(o,r)}`,n=r)}}}else n=1}else l(d)&&58===e.charCodeAt(1)&&(t=e.slice(0,2),n=2,i>2&&s(e.charCodeAt(2))&&(r=!0,n=3));let u=n<i?c(e.slice(n),!r,"\\",s):"";return(0===u.length&&!r&&(u="."),u.length>0&&s(e.charCodeAt(i-1))&&(u+="\\"),void 0===t)?r?`\\${u}`:u:r?`${t}\\${u}`:`${t}${u}`},isAbsolute(e){o(e,"path");let t=e.length;if(0===t)return!1;let i=e.charCodeAt(0);return s(i)||t>2&&l(i)&&58===e.charCodeAt(1)&&s(e.charCodeAt(2))},join(...e){let t,i;if(0===e.length)return".";for(let n=0;n<e.length;++n){let r=e[n];o(r,"path"),r.length>0&&(void 0===t?t=i=r:t+=`\\${r}`)}if(void 0===t)return".";let n=!0,r=0;if("string"==typeof i&&s(i.charCodeAt(0))){++r;let e=i.length;e>1&&s(i.charCodeAt(1))&&(++r,e>2&&(s(i.charCodeAt(2))?++r:n=!1))}if(n){for(;r<t.length&&s(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return u.normalize(t)},relative(e,t){if(o(e,"from"),o(t,"to"),e===t)return"";let i=u.resolve(e),n=u.resolve(t);if(i===n)return"";if(e=i.toLowerCase(),t=n.toLowerCase(),e===t)return"";let r=0;for(;r<e.length&&92===e.charCodeAt(r);)r++;let s=e.length;for(;s-1>r&&92===e.charCodeAt(s-1);)s--;let a=s-r,l=0;for(;l<t.length&&92===t.charCodeAt(l);)l++;let c=t.length;for(;c-1>l&&92===t.charCodeAt(c-1);)c--;let d=c-l,h=a<d?a:d,g=-1,f=0;for(;f<h;f++){let i=e.charCodeAt(r+f);if(i!==t.charCodeAt(l+f))break;92===i&&(g=f)}if(f!==h){if(-1===g)return n}else{if(d>h){if(92===t.charCodeAt(l+f))return n.slice(l+f+1);if(2===f)return n.slice(l+f)}a>h&&(92===e.charCodeAt(r+f)?g=f:2===f&&(g=3)),-1===g&&(g=0)}let p="";for(f=r+g+1;f<=s;++f)(f===s||92===e.charCodeAt(f))&&(p+=0===p.length?"..":"\\..");return(l+=g,p.length>0)?`${p}${n.slice(l,c)}`:(92===n.charCodeAt(l)&&++l,n.slice(l,c))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";let t=u.resolve(e);if(t.length<=2)return e;if(92===t.charCodeAt(0)){if(92===t.charCodeAt(1)){let e=t.charCodeAt(2);if(63!==e&&46!==e)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(l(t.charCodeAt(0))&&58===t.charCodeAt(1)&&92===t.charCodeAt(2))return`\\\\?\\${t}`;return e},dirname(e){o(e,"path");let t=e.length;if(0===t)return".";let i=-1,n=0,r=e.charCodeAt(0);if(1===t)return s(r)?e:".";if(s(r)){if(i=n=1,s(e.charCodeAt(1))){let r=2,o=2;for(;r<t&&!s(e.charCodeAt(r));)r++;if(r<t&&r!==o){for(o=r;r<t&&s(e.charCodeAt(r));)r++;if(r<t&&r!==o){for(o=r;r<t&&!s(e.charCodeAt(r));)r++;if(r===t)return e;r!==o&&(i=n=r+1)}}}}else l(r)&&58===e.charCodeAt(1)&&(n=i=t>2&&s(e.charCodeAt(2))?3:2);let a=-1,c=!0;for(let i=t-1;i>=n;--i)if(s(e.charCodeAt(i))){if(!c){a=i;break}}else c=!1;if(-1===a){if(-1===i)return".";a=i}return e.slice(0,a)},basename(e,t){let i;void 0!==t&&o(t,"ext"),o(e,"path");let n=0,r=-1,a=!0;if(e.length>=2&&l(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,l=-1;for(i=e.length-1;i>=n;--i){let c=e.charCodeAt(i);if(s(c)){if(!a){n=i+1;break}}else -1===l&&(a=!1,l=i+1),o>=0&&(c===t.charCodeAt(o)?-1==--o&&(r=i):(o=-1,r=l))}return n===r?r=l:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(s(e.charCodeAt(i))){if(!a){n=i+1;break}}else -1===r&&(a=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){o(e,"path");let t=0,i=-1,n=0,r=-1,a=!0,c=0;e.length>=2&&58===e.charCodeAt(1)&&l(e.charCodeAt(0))&&(t=n=2);for(let o=e.length-1;o>=t;--o){let t=e.charCodeAt(o);if(s(t)){if(!a){n=o+1;break}continue}-1===r&&(a=!1,r=o+1),46===t?-1===i?i=o:1!==c&&(c=1):-1!==i&&(c=-1)}return -1===i||-1===r||0===c||1===c&&i===r-1&&i===n+1?"":e.slice(i,r)},format:d.bind(null,"\\"),parse(e){o(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let i=e.length,n=0,r=e.charCodeAt(0);if(1===i)return s(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(s(r)){if(n=1,s(e.charCodeAt(1))){let t=2,r=2;for(;t<i&&!s(e.charCodeAt(t));)t++;if(t<i&&t!==r){for(r=t;t<i&&s(e.charCodeAt(t));)t++;if(t<i&&t!==r){for(r=t;t<i&&!s(e.charCodeAt(t));)t++;t===i?n=t:t!==r&&(n=t+1)}}}}else if(l(r)&&58===e.charCodeAt(1)){if(i<=2)return t.root=t.dir=e,t;if(n=2,s(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;n=3}}n>0&&(t.root=e.slice(0,n));let a=-1,c=n,d=-1,u=!0,h=e.length-1,g=0;for(;h>=n;--h){if(s(r=e.charCodeAt(h))){if(!u){c=h+1;break}continue}-1===d&&(u=!1,d=h+1),46===r?-1===a?a=h:1!==g&&(g=1):-1!==a&&(g=-1)}return -1!==d&&(-1===a||0===g||1===g&&a===d-1&&a===c+1?t.base=t.name=e.slice(c,d):(t.name=e.slice(c,a),t.base=e.slice(c,d),t.ext=e.slice(a,d))),c>0&&c!==n?t.dir=e.slice(0,c-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},h={resolve(...e){let t="",i=!1;for(let r=e.length-1;r>=-1&&!i;r--){let s=r>=0?e[r]:n.Vj();o(s,"path"),0!==s.length&&(t=`${s}/${t}`,i=47===s.charCodeAt(0))}return(t=c(t,!i,"/",a),i)?`/${t}`:t.length>0?t:"."},normalize(e){if(o(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);if(0===(e=c(e,!t,"/",a)).length)return t?"/":i?"./":".";return i&&(e+="/"),t?`/${e}`:e},isAbsolute:e=>(o(e,"path"),e.length>0&&47===e.charCodeAt(0)),join(...e){let t;if(0===e.length)return".";for(let i=0;i<e.length;++i){let n=e[i];o(n,"path"),n.length>0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":h.normalize(t)},relative(e,t){if(o(e,"from"),o(t,"to"),e===t)return"";if(e=h.resolve(e),t=h.resolve(t),e===t)return"";let i=e.length,n=i-1,r=t.length-1,s=n<r?n:r,a=-1,l=0;for(;l<s;l++){let i=e.charCodeAt(1+l);if(i!==t.charCodeAt(1+l))break;47===i&&(a=l)}if(l===s){if(r>s){if(47===t.charCodeAt(1+l))return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else n>s&&(47===e.charCodeAt(1+l)?a=l:0===l&&(a=0))}let c="";for(l=1+a+1;l<=i;++l)(l===i||47===e.charCodeAt(l))&&(c+=0===c.length?"..":"/..");return`${c}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(o(e,"path"),0===e.length)return".";let t=47===e.charCodeAt(0),i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(47===e.charCodeAt(t)){if(!n){i=t;break}}else n=!1;return -1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){let i;void 0!==t&&o(t,"ext"),o(e,"path");let n=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){let l=e.charCodeAt(i);if(47===l){if(!s){n=i+1;break}}else -1===a&&(s=!1,a=i+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(r=i):(o=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!s){n=i+1;break}}else -1===r&&(s=!1,r=i+1);return -1===r?"":e.slice(n,r)},extname(e){o(e,"path");let t=-1,i=0,n=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){let a=e.charCodeAt(o);if(47===a){if(!r){i=o+1;break}continue}-1===n&&(r=!1,n=o+1),46===a?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1)}return -1===t||-1===n||0===s||1===s&&t===n-1&&t===i+1?"":e.slice(t,n)},format:d.bind(null,"/"),parse(e){let t;o(e,"path");let i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;let n=47===e.charCodeAt(0);n?(i.root="/",t=1):t=0;let r=-1,s=0,a=-1,l=!0,c=e.length-1,d=0;for(;c>=t;--c){let t=e.charCodeAt(c);if(47===t){if(!l){s=c+1;break}continue}-1===a&&(l=!1,a=c+1),46===t?-1===r?r=c:1!==d&&(d=1):-1!==r&&(d=-1)}if(-1!==a){let t=0===s&&n?1:s;-1===r||0===d||1===d&&r===a-1&&r===s+1?i.base=i.name=e.slice(t,a):(i.name=e.slice(t,r),i.base=e.slice(t,a),i.ext=e.slice(r,a))}return s>0?i.dir=e.slice(0,s-1):n&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};h.win32=u.win32=u,h.posix=u.posix=h;let g="win32"===n.Jv?u.normalize:h.normalize,f="win32"===n.Jv?u.resolve:h.resolve,p="win32"===n.Jv?u.relative:h.relative,m="win32"===n.Jv?u.dirname:h.dirname,v="win32"===n.Jv?u.basename:h.basename,b="win32"===n.Jv?u.extname:h.extname,C="win32"===n.Jv?u.sep:h.sep},44138:function(e,t,i){"use strict";function n(e){return Array.isArray(e)}function r(e){return"string"==typeof e}function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){let t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function a(e){return"number"==typeof e&&!isNaN(e)}function l(e){return!!e&&"function"==typeof e[Symbol.iterator]}function c(e){return!0===e||!1===e}function d(e){return void 0===e}function u(e){return!h(e)}function h(e){return d(e)||null===e}function g(e,t){if(!e)throw Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function f(e){if(h(e))throw Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"==typeof e}function m(e,t){let i=Math.min(e.length,t.length);for(let n=0;n<i;n++)(function(e,t){if(r(t)){if(typeof e!==t)throw Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(e instanceof t)return}catch(e){}if(!h(e)&&e.constructor===t||1===t.length&&!0===t.call(void 0,e))return;throw Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}})(e[n],t[n])}i.d(t,{$E:function(){return v},$K:function(){return u},D8:function(){return m},HD:function(){return r},IU:function(){return b},Jp:function(){return h},Kn:function(){return o},TW:function(){return l},cW:function(){return f},f6:function(){return C},fU:function(){return s},hj:function(){return a},jn:function(){return c},kJ:function(){return n},mf:function(){return p},o8:function(){return d},p_:function(){return g},vE:function(){return k}});function v(e){let t=[];for(let i of function(e){let t=[],i=Object.getPrototypeOf(e);for(;Object.prototype!==i;)t=t.concat(Object.getOwnPropertyNames(i)),i=Object.getPrototypeOf(i);return t}(e))"function"==typeof e[i]&&t.push(i);return t}function b(e,t){let i=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(let t of e)n[t]=i(t);return n}function C(e){return null===e?void 0:e}function k(e,t="Unreachable"){throw Error(t)}},5693:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return r}});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:RegExp("^\\s*#region\\b"),end:RegExp("^\\s*#endregion\\b")}}},r={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=><!~?&%|+\-*\/\^\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@[a-zA-Z_]\w*/,"variable.predefined"],[/[a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/###/,"comment","@comment"],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\()(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\=)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\[)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\!)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\&)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\|)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\?)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\{)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\;)(\s*)(@regEx)/,["","","regexp"]],[/}/,{cases:{"$S2==interpolatedstring":{token:"string",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/###/,"comment","@pop"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}},28814:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return r}});var n={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},r={defaultToken:"",tokenPostfix:".css",ws:"[ \n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}},24283:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return r}});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},r={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","--\x3e","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}}},10452:function(e,t,i){"use strict";(0,i("54606").H)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"4458"))})},26542:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return r}});var n={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},r={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},74013:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return r}});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},r={defaultToken:"",tokenPostfix:".objective-c",keywords:["#import","#include","#define","#else","#endif","#if","#ifdef","#ifndef","#ident","#undef","@class","@defs","@dynamic","@encode","@end","@implementation","@interface","@package","@private","@protected","@property","@protocol","@public","@selector","@synthesize","__declspec","assign","auto","BOOL","break","bycopy","byref","case","char","Class","const","copy","continue","default","do","double","else","enum","extern","FALSE","false","float","for","goto","if","in","int","id","inout","IMP","long","nil","nonatomic","NULL","oneway","out","private","public","protected","readwrite","readonly","register","return","SEL","self","short","signed","sizeof","static","struct","super","switch","typedef","TRUE","true","union","unsigned","volatile","void","while"],decpart:/\d(_?\d)*/,decimal:/0|@decpart/,tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()<>]/,"@brackets"],[/[a-zA-Z@#]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/,"number.hex"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,{cases:{"(\\d)*":"number",$0:"number.float"}}]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}}},86903:function(e,t,i){"use strict";(0,i("54606").H)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"14673"))})},37150:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return r}});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],folding:{markers:{start:RegExp("^\\s*(#|//)region\\b"),end:RegExp("^\\s*(#|//)endregion\\b")}}},r={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],doctype:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}},12232:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return r}});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:RegExp("^\\s*#region\\b"),end:RegExp("^\\s*#endregion\\b")}}},r={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=><!~?&%|+\-*\/\^;\.,]+/,escapes:/`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_][\w-]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/^:\w*/,"metatag"],[/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,"variable"],[/<#/,"comment","@comment"],[/#.*$/,"comment"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/\@"/,"string",'@herestring."'],[/\@'/,"string","@herestring.'"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\$`]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/`./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/\$[\w]+$/,{cases:{'$S2=="':{token:"variable",next:"@popall"},"@default":{token:"string",next:"@popall"}}}],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}}}]],herestring:[[/^\s*(["'])@/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^\$`]+/,"string"],[/@escapes/,"string.escape"],[/`./,"string.escape.invalid"],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}]],comment:[[/[^#\.]+/,"comment"],[/#>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}},70322:function(e,t,i){"use strict";(0,i("54606").H)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"38579"))})},74575:function(e,t,i){"use strict";(0,i("54606").H)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"57429"))})},70972:function(e,t,i){"use strict";(0,i("54606").H)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"41868"))})},5138:function(e,t,i){"use strict";(0,i("54606").H)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"86151"))})},95253:function(e,t,i){"use strict";i.d(t,{Ox:function(){return a},wk:function(){return l}});var n,r,o,s,a,l,c=i("8339"),d=i("59527"),u=i("44138"),h=i("94555"),g=i("59923"),f=i("83368"),p=i("9108"),m=i("7910"),v=i("52862"),b=i("4309"),C=i("12952"),k=i("57938"),_=i("61045"),w=i("76617"),y=i("49436"),S=i("87528");class x extends g._l{runEditorCommand(e,t,i){let n=t._getViewModel();n&&this.runCoreEditorCommand(n,i||{})}}(n=o||(o={})).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:`Property-value pairs that can be passed through this argument:
|
|
@@ -28,4 +28,4 @@
|
|
|
28
28
|
.monaco-editor .contentWidgets ${c.lA.lightbulbAutofix.cssSelector} {
|
|
29
29
|
color: ${o};
|
|
30
30
|
background-color: ${n};
|
|
31
|
-
}`)})},86549:function(e,t,i){"use strict";i.d(t,{b:function(){return h},f:function(){return g}});var n=i("862"),r=i("61111"),o=i("19527"),s=i("44138"),a=i("38505"),l=i("57233"),c=i("21095"),d=i("78540"),u=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};class h{constructor(){this.lenses=[],this._disposables=new o.SL}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){for(let i of(this._disposables.add(e),e.lenses))this.lenses.push({symbol:i,provider:t})}}function g(e,t,i){return u(this,void 0,void 0,function*(){let n=e.ordered(t),o=new Map,s=new h,a=n.map((e,n)=>u(this,void 0,void 0,function*(){o.set(e,n);try{let n=yield Promise.resolve(e.provideCodeLenses(t,i));n&&s.add(n,e)}catch(e){(0,r.Cp)(e)}}));return yield Promise.all(a),s.lenses=s.lenses.sort((e,t)=>{if(e.symbol.range.startLineNumber<t.symbol.range.startLineNumber)return -1;if(e.symbol.range.startLineNumber>t.symbol.range.startLineNumber)return 1;if(o.get(e.provider)<o.get(t.provider))return -1;else if(o.get(e.provider)>o.get(t.provider))return 1;else if(e.symbol.range.startColumn<t.symbol.range.startColumn)return -1;else if(e.symbol.range.startColumn>t.symbol.range.startColumn)return 1;else return 0}),s})}c.P0.registerCommand("_executeCodeLensProvider",function(e,...t){let[i,c]=t;(0,s.p_)(a.o.isUri(i)),(0,s.p_)("number"==typeof c||!c);let{codeLensProvider:u}=e.get(d.p),h=e.get(l.q).getModel(i);if(!h)throw(0,r.b1)();let f=[],p=new o.SL;return g(u,h,n.T.None).then(e=>{p.add(e);let t=[];for(let i of e.lenses)null==c||i.symbol.command?f.push(i.symbol):c-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(h,i.symbol,n.T.None)).then(e=>f.push(e||i.symbol)));return Promise.all(t)}).then(()=>f).finally(()=>{setTimeout(()=>p.dispose(),100)})})},53915:function(e,t,i){"use strict";var n=i("19527"),r=i("59923"),o=i("61045"),s=i("68487"),a=i("84315"),l=i("62003"),c=i("88936");class d extends n.JT{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(e=>this.onMouseDown(e)))}dispose(){super.dispose()}onMouseDown(e){let t=e.target;if(6!==t.type||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==s.A||!t.range)return;let i=this._editor.getContribution(l.E.ID);if(i&&!i.isColorPickerVisible()){let e=new o.e(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(e,1,!1)}}}d.ID="editor.contrib.colorContribution",(0,r._K)(d.ID,d),c.Ae.register(a.n)},61861:function(e,t,i){"use strict";i.d(t,{u:function(){return o}});var n=i("61045"),r=i("61065");class o{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){let i=e.getValueInRange(this.selection);if(!this.copy&&t.addEditOperation(this.selection,null),t.addEditOperation(new n.e(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new r.Y(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new r.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new r.Y(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new r.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new r.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn)}computeCursorState(e,t){return this.targetSelection}}},99742:function(e,t,i){"use strict";i.d(t,{CP:function(){return C},Dt:function(){return b},LM:function(){return k},M9:function(){return _},P$:function(){return v},Xu:function(){return x},a_:function(){return p},kR:function(){return y},mt:function(){return w},nD:function(){return S},qm:function(){return m}});var n=i("3868"),r=i("67518"),o=i("19527"),s=i("38846"),a=i("57938"),l=i("61045"),c=i("61065"),d=i("83968"),u=i("6014"),h=i("96757"),g=i("82298"),f=i("49436");let p=new f.uy("findWidgetVisible",!1);p.toNegated();let m=new f.uy("findInputFocussed",!1),v=new f.uy("replaceInputFocussed",!1),b={primary:545,mac:{primary:2593}},C={primary:565,mac:{primary:2613}},k={primary:560,mac:{primary:2608}},_={primary:554,mac:{primary:2602}},w={primary:558,mac:{primary:2606}},y={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",StartFindWithArgs:"editor.actions.findWithArgs",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},S=19999;class x{constructor(e,t){this._toDispose=new o.SL,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new r._F,this._decorations=new u.t(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new r.pY(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(e=>{(3===e.reason||5===e.reason||6===e.reason)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(e=>{!this._ignoreModelContentChanged&&(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,o.B9)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed)this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t?t:e.getFullModelRange()}research(e,t){let i=null;void 0!==t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map(e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new l.e(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e}));let r=this._findMatches(i,!1,S);this._decorations.set(r,i);let o=this._editor.getSelection(),s=this._decorations.getCurrentMatchesPosition(o);if(0===s&&r.length>0){let e=(0,n.lG)(r.map(e=>e.range),e=>l.e.compareRangesUsingStarts(e,o)>=0);s=e>0?e-1+1:s}this._state.changeMatchInfo(s,this._decorations.getCount(),void 0),e&&this._editor.getOption(37).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:i,column:n}=e,r=this._editor.getModel();return t||1===n?(1===i?i=r.getLineCount():i--,n=r.getLineMaxColumn(i)):n--,new a.L(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){let t=this._decorations.matchAfterPosition(e);t&&this._setCurrentFindMatch(t);return}if(this._decorations.getCount()<S){let t=this._decorations.matchBeforePosition(e);t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),t&&this._setCurrentFindMatch(t);return}if(this._cannotFind())return;let i=this._decorations.getFindScope(),n=x._getSearchRange(this._editor.getModel(),i);n.getEndPosition().isBefore(e)&&(e=n.getEndPosition()),e.isBefore(n.getStartPosition())&&(e=n.getEndPosition());let{lineNumber:r,column:o}=e,s=this._editor.getModel(),l=new a.L(r,o),c=s.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,!1);if(c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),c=s.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,!1)),c){if(!t&&!n.containsRange(c.range))return this._moveToPrevMatch(c.range.getStartPosition(),!0);this._setCurrentFindMatch(c.range)}}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:i,column:n}=e,r=this._editor.getModel();return t||n===r.getLineMaxColumn(i)?(i===r.getLineCount()?i=1:i++,n=1):n++,new a.L(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){let t=this._decorations.matchBeforePosition(e);t&&this._setCurrentFindMatch(t);return}if(this._decorations.getCount()<S){let t=this._decorations.matchAfterPosition(e);t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),t&&this._setCurrentFindMatch(t);return}let t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i,n=!1){if(this._cannotFind())return null;let r=this._decorations.getFindScope(),o=x._getSearchRange(this._editor.getModel(),r);o.getEndPosition().isBefore(e)&&(e=o.getStartPosition()),e.isBefore(o.getStartPosition())&&(e=o.getStartPosition());let{lineNumber:s,column:l}=e,c=this._editor.getModel(),d=new a.L(s,l),u=c.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t);return(i&&u&&u.range.isEmpty()&&u.range.getStartPosition().equals(d)&&(d=this._nextSearchPosition(d),u=c.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t)),u)?n||o.containsRange(u.range)?u:this._getNextMatch(u.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_getReplacePattern(){return this._state.isRegex?(0,g.e$)(this._state.replaceString):g.UG.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;let e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i){if(t.equalsRange(i.range)){let n=e.buildReplaceString(i.matches,this._state.preserveCase),r=new s.T4(t,n);this._executeEditorCommand("replace",r),this._decorations.setStartPosition(new a.L(t.startLineNumber,t.startColumn+n.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}}_findMatches(e,t,i){let n=(e||[null]).map(e=>x._getSearchRange(this._editor.getModel(),e));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t,i)}replaceAll(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=S?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){let e;let t=new d.bc(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null).parseSearchRequest();if(!t)return;let i=t.regex;if(!i.multiline){let e="mu";i.ignoreCase&&(e+="i"),i.global&&(e+="g"),i=new RegExp(i.source,e)}let n=this._editor.getModel(),r=n.getValue(1),o=n.getFullModelRange(),a=this._getReplacePattern(),l=this._state.preserveCase;e=a.hasReplacementPatterns||l?r.replace(i,function(){return a.buildReplaceString(arguments,l)}):r.replace(i,a.buildReplaceString(null,l));let c=new s.hP(o,e,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}_regularReplaceAll(e){let t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let e=0,r=i.length;e<r;e++)n[e]=t.buildReplaceString(i[e].matches,this._state.preserveCase);let r=new h.D(this._editor.getSelection(),i.map(e=>e.range),n);this._executeEditorCommand("replaceAll",r)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),t=this._findMatches(e,!1,1073741824).map(e=>new c.Y(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)),i=this._editor.getSelection();for(let e=0,n=t.length;e<n;e++)if(t[e].equalsRange(i)){t=[i].concat(t.slice(0,e)).concat(t.slice(e+1));break}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}},96757:function(e,t,i){"use strict";i.d(t,{D:function(){return r}});var n=i("61045");class r{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort((e,t)=>n.e.compareRangesUsingStarts(e.range,t.range));let i=[],r=e[0];for(let t=1;t<e.length;t++)r.range.endLineNumber===e[t].range.startLineNumber&&r.range.endColumn===e[t].range.startColumn?(r.range=r.range.plusRange(e[t].range),r.text=r.text+e[t].text):(i.push(r),r=e[t]);for(let e of(i.push(r),i))t.addEditOperation(e.range,e.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}},64944:function(e,t,i){"use strict";i.d(t,{hj:function(){return b}});var n=i("3868"),r=i("16904"),o=i("19527"),s=i("62300"),a=i("66763"),l=i("38505"),c=i("61045"),d=i("72243"),u=i("6301"),h=i("33193"),g=i("53861"),f=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},p=function(e,t){return function(i,n){t(i,n,e)}};class m{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let v=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new r.Q5,this.onDidChange=this._onDidChange.event,this._dispoables=new o.SL,this._markers=[],this._nextIdx=-1,l.o.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);let n=this._configService.getValue("problems.sortOrder"),s=(e,t)=>{let i=(0,a.qu)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===n?c.e.compareRangesUsingStarts(e,t)||h.ZL.compare(e.severity,t.severity):h.ZL.compare(e.severity,t.severity)||c.e.compareRangesUsingStarts(e,t)),i},d=()=>{this._markers=this._markerService.read({resource:l.o.isUri(e)?e:void 0,severities:h.ZL.Error|h.ZL.Warning|h.ZL.Info}),"function"==typeof e&&(this._markers=this._markers.filter(e=>this._resourceFilter(e.resource))),this._markers.sort(s)};d(),this._dispoables.add(t.onMarkerChanged(e=>{(!this._resourceFilter||e.some(e=>this._resourceFilter(e)))&&(d(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!!this._resourceFilter&&!!e&&this._resourceFilter(e)}get selected(){let e=this._markers[this._nextIdx];return e&&new m(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let r=!1,o=this._markers.findIndex(t=>t.resource.toString()===e.uri.toString());o<0&&(o=(0,n.ry)(this._markers,{resource:e.uri},(e,t)=>(0,a.qu)(e.resource.toString(),t.resource.toString())))<0&&(o=~o);for(let i=o;i<this._markers.length;i++){let n=c.e.lift(this._markers[i]);if(n.isEmpty()){let t=e.getWordAtPosition(n.getStartPosition());t&&(n=new c.e(n.startLineNumber,t.startColumn,n.startLineNumber,t.endColumn))}if(t&&(n.containsPosition(t)||t.isBeforeOrEqual(n.getStartPosition()))){this._nextIdx=i,r=!0;break}if(this._markers[i].resource.toString()!==e.uri.toString())break}!r&&(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;let n=this._nextIdx;return -1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:!e&&(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),n!==this._nextIdx||!1}find(e,t){let i=this._markers.findIndex(t=>t.resource.toString()===e.toString());if(!(i<0)){for(;i<this._markers.length;i++)if(c.e.containsPosition(this._markers[i],t))return new m(this._markers[i],i+1,this._markers.length)}}};v=f([p(1,h.lT),p(2,g.Ui)],v);let b=(0,u.yh)("IMarkerNavigationService"),C=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new s.S}getMarkerList(e){for(let t of this._provider){let i=t.getMarkerList(e);if(i)return i}return new v(e,this._markerService,this._configService)}};C=f([p(0,h.lT),p(1,g.Ui)],C),(0,d.z)(b,C,!0)},84783:function(e,t,i){"use strict";var n,r,o=i("19527"),s=i("59923"),a=i("76617"),l=i("74854"),c=i("71942"),d=i("8339"),u=i("49436"),h=i("6301"),g=i("65874");let f=class e extends o.JT{constructor(e,t){super(),this.editor=e,this.widget=this._register(t.createInstance(g.j,this.editor))}static get(t){return t.getContribution(e.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(e){this.widget.trigger(e)}};f.ID="editor.controller.parameterHints",f=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([(n=1,r=h.TG,function(e,t){r(e,t,1)})],f);class p extends s.R6{constructor(){super({id:"editor.action.triggerParameterHints",label:d.NC("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:a.u.hasSignatureHelpProvider,kbOpts:{kbExpr:a.u.editorTextFocus,primary:3082,weight:100}})}run(e,t){let i=f.get(t);i&&i.trigger({triggerKind:l.WW.Invoke})}}(0,s._K)(f.ID,f),(0,s.Qr)(p);let m=s._l.bindToContribution(f.get);(0,s.fK)(new m({id:"closeParameterHints",precondition:c._.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:a.u.focus,primary:9,secondary:[1033]}})),(0,s.fK)(new m({id:"showPrevParameterHint",precondition:u.Ao.and(c._.Visible,c._.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:a.u.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,s.fK)(new m({id:"showNextParameterHint",precondition:u.Ao.and(c._.Visible,c._.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:a.u.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},69556:function(e,t,i){"use strict";i.d(t,{Q:function(){return h}});var n,r,o=i("67518"),s=i("61111"),a=i("16904"),l=i("19527"),c=i("53049"),d=i("74854"),u=i("71942");(n=r||(r={})).Default={type:0},n.Pending=class e{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}},n.Active=class e{constructor(e){this.hints=e,this.type=1}};class h extends l.JT{constructor(e,t,i=h.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new a.Q5),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=r.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new l.XK),this.triggerChars=new c.q,this.retriggerChars=new c.q,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new o.vp(i),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(e=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(e=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(e=>this.onCursorChange(e))),this._register(this.editor.onDidChangeModelContent(e=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(e=>this.onDidType(e))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=r.Default,this.throttledDelayer.cancel(),!e&&this._onChangedHints.fire(void 0)}trigger(e,t){let i=this.editor.getModel();if(!i||!this.providers.has(i))return;let n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(n),t).catch(s.dL)}next(){if(1!==this.state.type)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e==e-1,n=this.editor.getOption(78).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?0:t+1)}previous(){if(1!==this.state.type)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,n=this.editor.getOption(78).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?e-1:t-1)}updateActiveSignature(e){1===this.state.type&&(this.state=new r.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){var t,i,n,a;return t=this,i=void 0,n=void 0,a=function*(){let t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;let n=this._pendingTriggers.reduce(g);this._pendingTriggers=[];let a={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;let l=this.editor.getModel(),c=this.editor.getPosition();this.state=new r.Pending((0,o.PG)(e=>(0,u.L)(this.providers,l,c,a,e)),i);try{let t=yield this.state.request;if(e!==this.triggerId)return null==t||t.dispose(),!1;if(!t||!t.value.signatures||0===t.value.signatures.length)return null==t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1;return this.state=new r.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0}catch(t){return e===this.triggerId&&(this.state=r.Default),(0,s.dL)(t),!1}},new(n||(n=Promise))(function(e,r){function o(e){try{l(a.next(e))}catch(e){r(e)}}function s(e){try{l(a.throw(e))}catch(e){r(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof n?i:new n(function(e){e(i)})).then(o,s)}l((a=a.apply(t,i||[])).next())})}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new c.q,this.retriggerChars=new c.q;let e=this.editor.getModel();if(e)for(let t of this.providers.ordered(e)){for(let e of t.signatureHelpTriggerCharacters||[])this.triggerChars.add(e.charCodeAt(0)),this.retriggerChars.add(e.charCodeAt(0));for(let e of t.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:d.WW.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:d.WW.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:d.WW.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(78).enabled,!this.triggerOnType&&this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function g(e,t){switch(t.triggerKind){case d.WW.Invoke:return t;case d.WW.ContentChange:return e;case d.WW.TriggerCharacter:default:return t}}h.DEFAULT_DELAY=120},71942:function(e,t,i){"use strict";i.d(t,{L:function(){return p},_:function(){return f}});var n=i("862"),r=i("61111"),o=i("44138"),s=i("38505"),a=i("57938"),l=i("74854"),c=i("78540"),d=i("78936"),u=i("21095"),h=i("49436"),g=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let f={Visible:new h.uy("parameterHintsVisible",!1),MultipleSignatures:new h.uy("parameterHintsMultipleSignatures",!1)};function p(e,t,i,n,o){return g(this,void 0,void 0,function*(){for(let s of e.ordered(t))try{let e=yield s.provideSignatureHelp(t,i,o,n);if(e)return e}catch(e){(0,r.Cp)(e)}})}u.P0.registerCommand("_executeSignatureHelpProvider",(e,...t)=>g(void 0,void 0,void 0,function*(){let[i,r,u]=t;(0,o.p_)(s.o.isUri(i)),(0,o.p_)(a.L.isIPosition(r)),(0,o.p_)("string"==typeof u||!u);let h=e.get(c.p),g=yield e.get(d.S).createModelReference(i);try{let e=yield p(h.signatureHelpProvider,g.object.textEditorModel,a.L.lift(r),{triggerKind:l.WW.Invoke,isRetrigger:!1,triggerCharacter:u},n.T.None);if(!e)return;return setTimeout(()=>e.dispose(),0),e.value}finally{g.dispose()}}))},64664:function(e,t,i){"use strict";i.d(t,{f:function(){return o}});var n=i("66763"),r=i("61045");class o{provideSelectionRanges(e,t){let i=[];for(let n of t){let t=[];i.push(t),this._addInWordRanges(t,e,n),this._addWordRanges(t,e,n),this._addWhitespaceLine(t,e,n),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){let o=t.getWordAtPosition(i);if(!o)return;let{word:s,startColumn:a}=o,l=i.column-a,c=l,d=l,u=0;for(;c>=0;c--){let e=s.charCodeAt(c);if(c!==l&&(95===e||45===e))break;if((0,n.mK)(e)&&(0,n.df)(u))break;u=e}for(c+=1;d<s.length;d++){let e=s.charCodeAt(d);if((0,n.df)(e)&&(0,n.mK)(u))break;if(95===e||45===e)break;u=e}c<d&&e.push({range:new r.e(i.lineNumber,a+c,i.lineNumber,a+d)})}_addWordRanges(e,t,i){let n=t.getWordAtPosition(i);n&&e.push({range:new r.e(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new r.e(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}},95357:function(e,t,i){"use strict";let n;i.d(t,{A9:function(){return x},GI:function(){return y},ZJ:function(){return E},_y:function(){return w},i5:function(){return T},kL:function(){return I},tG:function(){return P},wg:function(){return A}});var r=i("862"),o=i("61111"),s=i("75024"),a=i("19527"),l=i("30039"),c=i("44138"),d=i("38505"),u=i("57938"),h=i("61045"),g=i("78936"),f=i("59842"),p=i("8339"),m=i("51553"),v=i("21095"),b=i("49436"),C=i("78540"),k=i("96709"),_=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let w={Visible:k.iX,HasFocusedSuggestion:new b.uy("suggestWidgetHasFocusedSuggestion",!1,(0,p.NC)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new b.uy("suggestWidgetDetailsVisible",!1,(0,p.NC)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new b.uy("suggestWidgetMultipleSuggestions",!1,(0,p.NC)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new b.uy("suggestionMakesTextEdit",!0,(0,p.NC)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new b.uy("acceptSuggestionOnEnter",!0,(0,p.NC)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new b.uy("suggestionHasInsertAndReplaceRange",!1,(0,p.NC)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new b.uy("suggestionInsertMode",void 0,{type:"string",description:(0,p.NC)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new b.uy("suggestionCanResolve",!1,(0,p.NC)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},y=new m.eH("suggestWidgetStatusBar");class S{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=s.CL.Default,this.distance=0,this.textLabel="string"==typeof t.label?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,h.e.isIRange(t.range)?(this.editStart=new u.L(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new u.L(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new u.L(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||h.e.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new u.L(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new u.L(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new u.L(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||h.e.spansMultipleLines(t.range.insert)||h.e.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!=typeof n.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return _(this,void 0,void 0,function*(){if(!this._resolveCache){let t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(e=>{Object.assign(this.completion,e),this._isResolved=!0,t.dispose()},e=>{(0,o.n2)(e)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class x{constructor(e=2,t=new Set,i=new Set,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.showDeprecated=n}}function E(){return n}x.default=new x;class L{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function I(e,t,i,s=x.default,c={triggerKind:0},d=r.T.None){return _(this,void 0,void 0,function*(){let r=new l.G(!0);i=i.clone();let u=t.getWordAtPosition(i),g=u?new h.e(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):h.e.fromPositions(i),p={replace:g,insert:g.setEndPosition(i.lineNumber,i.column)},m=[],v=new a.SL,b=[],C=!1,k=(e,t,n)=>{var r,o,l;let c=!1;if(!t)return c;for(let n of t.suggestions)if(!s.kindFilter.has(n.kind)){if(!s.showDeprecated&&(null===(r=null==n?void 0:n.tags)||void 0===r?void 0:r.includes(1)))continue;!n.range&&(n.range=p),!n.sortText&&(n.sortText="string"==typeof n.label?n.label:n.label.label),!C&&n.insertTextRules&&4&n.insertTextRules&&(C=f.Yj.guessNeedsClipboard(n.insertText)),m.push(new S(i,n,t,e)),c=!0}return(0,a.Wf)(t)&&v.add(t),b.push({providerName:null!==(o=e._debugDisplayName)&&void 0!==o?o:"unknown_provider",elapsedProvider:null!==(l=t.duration)&&void 0!==l?l:-1,elapsedOverall:n.elapsed()}),c},w=_(this,void 0,void 0,function*(){if(!n||s.kindFilter.has(27)||s.providerFilter.size>0&&!s.providerFilter.has(n))return;let e=new l.G(!0),r=yield n.provideCompletionItems(t,i,c,d);k(n,r,e)});for(let n of e.orderedGroups(t)){let e=!1;if(yield Promise.all(n.map(n=>_(this,void 0,void 0,function*(){if(!(s.providerFilter.size>0)||s.providerFilter.has(n))try{let r=new l.G(!0),o=yield n.provideCompletionItems(t,i,c,d);e=k(n,o,r)||e}catch(e){(0,o.Cp)(e)}}))),e||d.isCancellationRequested)break}return(yield w,d.isCancellationRequested)?(v.dispose(),Promise.reject(new o.FU)):new L(m.sort(A(s.snippetSortOrder)),C,{entries:b,elapsed:r.elapsed()},v)})}function N(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return -1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}let D=new Map;function A(e){return D.get(e)}function T(e,t){var i;null===(i=e.getContribution("editor.contrib.suggestController"))||void 0===i||i.triggerSuggest(new Set().add(t),void 0,!0)}D.set(0,function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return -1;if(27===t.completion.kind)return 1}return N(e,t)}),D.set(2,function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return -1}return N(e,t)}),D.set(1,N),v.P0.registerCommand("_executeCompletionItemProvider",(e,...t)=>_(void 0,void 0,void 0,function*(){let[i,n,o,s]=t;(0,c.p_)(d.o.isUri(i)),(0,c.p_)(u.L.isIPosition(n)),(0,c.p_)("string"==typeof o||!o),(0,c.p_)("number"==typeof s||!s);let{completionProvider:a}=e.get(C.p),l=yield e.get(g.S).createModelReference(i);try{let e={incomplete:!1,suggestions:[]},t=[],i=yield I(a,l.object.textEditorModel,u.L.lift(n),void 0,{triggerCharacter:o,triggerKind:o?1:0});for(let n of i.items)t.length<(null!=s?s:0)&&t.push(n.resolve(r.T.None)),e.incomplete=e.incomplete||n.container.incomplete,e.suggestions.push(n.completion);try{return yield Promise.all(t),e}finally{setTimeout(()=>i.disposable.dispose(),100)}}finally{l.dispose()}}));class P{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},58156:function(e,t,i){"use strict";i.d(t,{n:function(){return H}});var n=i("94555"),r=i("3868"),o=i("67518"),s=i("862"),a=i("61111"),l=i("16904"),c=i("10109"),d=i("19527"),u=i("7875"),h=i("30039"),g=i("44138"),f=i("60550"),p=i("59923"),m=i("88398"),v=i("57938"),b=i("61045"),C=i("76617"),k=i("8626"),_=i("59842"),w=i("61999"),y=i("70630"),S=i("8339"),x=i("21095"),E=i("49436"),L=i("6301"),I=i("53881"),N=i("95357"),D=i("46639"),A=i("14122"),T=i("17893"),P=i("958"),F=i("90560"),O=i("14800"),R=i("37454"),M=i("45731"),B=function(e,t){return function(i,n){t(i,n,e)}};class W{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){let i=e.getOffsetAt(t),n=e.getPositionAt(i+1);this._marker=e.deltaDecorations([],[{range:b.e.fromPositions(t,n),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(!this._marker)return this._model.getLineMaxColumn(e.lineNumber)-e.column;{let t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}}}let H=class e{constructor(e,t,i,n,r,s,a){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=r,this._logService=s,this._telemetryService=a,this._lineSuffix=new d.XK,this._toDispose=new d.SL,this._selectors=new K(e=>e.priority),this._telemetryGate=0,this.editor=e,this.model=r.createInstance(T.U,this.editor);let l=N._y.InsertMode.bindTo(n);l.set(e.getOption(108).insertMode),this.model.onDidTrigger(()=>l.set(e.getOption(108).insertMode)),this.widget=this._toDispose.add(new o.Ue(()=>{let e=this._instantiationService.createInstance(F.XZ,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect(e=>this._insertSuggestion(e,0),this));let t=new A.F(this.editor,e,e=>this._insertSuggestion(e,2));this._toDispose.add(t),this._toDispose.add(this.model.onDidSuggest(e=>{0===e.completionModel.items.length&&t.reset()}));let i=N._y.MakesTextEdit.bindTo(this._contextKeyService),n=N._y.HasInsertAndReplaceRange.bindTo(this._contextKeyService),r=N._y.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,d.OF)(()=>{i.reset(),n.reset(),r.reset()})),this._toDispose.add(e.onDidFocus(({item:e})=>{let t=this.editor.getPosition(),o=e.editStart.column,s=t.column,a=!0;"smart"===this.editor.getOption(1)&&2===this.model.state&&!e.completion.additionalTextEdits&&!(4&e.completion.insertTextRules)&&s-o===e.completion.insertText.length&&(a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:o,endLineNumber:t.lineNumber,endColumn:s})!==e.completion.insertText),i.set(a),n.set(!v.L.equals(e.editInsertEnd,e.editReplaceEnd)),r.set(!!e.provider.resolveCompletionItem||!!e.completion.documentation||e.completion.detail!==e.completion.label)})),this._toDispose.add(e.onDetailsKeyDown(e=>{if(e.toKeybinding().equals(new c.QC(!0,!1,!1,!1,33))||u.dz&&e.toKeybinding().equals(new c.QC(!1,!1,!1,!0,33))){e.stopPropagation();return}!e.toKeybinding().isModifierKey()&&this.editor.focus()})),e})),this._overtypingCapturer=this._toDispose.add(new o.Ue(()=>this._toDispose.add(new P.K(this.editor,this.model)))),this._alternatives=this._toDispose.add(new o.Ue(()=>this._toDispose.add(new D.V(this.editor,this._contextKeyService)))),this._toDispose.add(r.createInstance(y.p,e)),this._toDispose.add(this.model.onDidTrigger(e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new W(this.editor.getModel(),e.position)})),this._toDispose.add(this.model.onDidSuggest(e=>{if(e.shy)return;let t=-1;if(!e.noSelect){for(let i of this._selectors.itemsOrderedByPriorityDesc)if(-1!==(t=i.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items)))break;-1===t&&(t=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items))}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.auto)})),this._toDispose.add(this.model.onDidCancel(e=>{!e.retrigger&&this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));let h=N._y.AcceptSuggestionsOnEnter.bindTo(n),g=()=>{let e=this.editor.getOption(1);h.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>g())),g()}static get(t){return t.getContribution(e.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;let i=k.f.get(this.editor);if(!i)return;let n=this.editor.getModel(),r=n.getAlternativeVersionId(),{item:o}=e,l=[],c=new s.A;!(1&t)&&this.editor.pushUndoStop();let d=this.getOverwriteInfo(o,!!(8&t));if(this._memoryService.memorize(n,this.editor.getPosition(),o),Array.isArray(o.completion.additionalTextEdits)){let e=f.Z.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",o.completion.additionalTextEdits.map(e=>m.h.replaceMove(b.e.lift(e.range),e.text))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!o.isResolved){let e;let i=new h.G(!0),r=n.onDidChangeContent(t=>{if(t.isFlush){c.cancel(),r.dispose();return}for(let i of t.changes){let t=b.e.getEndPosition(i.range);(!e||v.L.isBefore(t,e))&&(e=t)}}),s=t;t|=2;let a=!1,d=this.editor.onWillType(()=>{d.dispose(),a=!0,!(2&s)&&this.editor.pushUndoStop()});l.push(o.resolve(c.token).then(()=>{if(!o.completion.additionalTextEdits||c.token.isCancellationRequested||e&&o.completion.additionalTextEdits.some(t=>v.L.isBefore(e,b.e.getStartPosition(t.range))))return!1;a&&this.editor.pushUndoStop();let t=f.Z.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",o.completion.additionalTextEdits.map(e=>m.h.replaceMove(b.e.lift(e.range),e.text))),t.restoreRelativeVerticalPositionOfCursor(this.editor),(a||!(2&s))&&this.editor.pushUndoStop(),!0}).then(e=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",i.elapsed(),e),r.dispose(),d.dispose()}))}let{insertText:u}=o.completion;!(4&o.completion.insertTextRules)&&(u=_.Yj.escape(u)),i.insert(u,{overwriteBefore:d.overwriteBefore,overwriteAfter:d.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&o.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),!(2&t)&&this.editor.pushUndoStop(),o.completion.command?o.completion.command.id===V.id?this.model.trigger({auto:!0,shy:!1,noSelect:!1},!0):(l.push(this._commandService.executeCommand(o.completion.command.id,...o.completion.command.arguments?[...o.completion.command.arguments]:[]).catch(a.dL)),this.model.cancel()):this.model.cancel(),4&t&&this._alternatives.value.set(e,e=>{for(c.cancel();n.canUndo();){r!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}}),this._alertCompletionItem(o),Promise.all(l).finally(()=>{this._reportSuggestionAcceptedTelemetry(o,n,e),this.model.clear(),c.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,i){var n;if(this._telemetryGate++%100!=0)return;let r=e.extensionId?e.extensionId.value:(null!==(n=i.item.provider._debugDisplayName)&&void 0!==n?n:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:r,kind:e.completion.kind,basenameHash:(0,M.vp)((0,R.EZ)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,R.DZ)(t.uri)})}getOverwriteInfo(e,t){(0,g.p_)(this.editor.hasModel());let i="replace"===this.editor.getOption(108).insertMode;t&&(i=!i);let n=e.position.column-e.editStart.column,r=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,o=this.editor.getPosition().column-e.position.column;return{overwriteBefore:n+o,overwriteAfter:r+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,r.Of)(e.completion.additionalTextEdits)){let t=S.NC("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,n.Z9)(t)}}triggerSuggest(e,t,i,n){this.editor.hasModel()&&(this.model.trigger({auto:null!=t&&t,shy:!1,noSelect:null!=n&&n},!1,e,void 0,i),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;let t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;let t=this.editor.getPosition(),i=e.editStart.column,n=t.column;return n-i!==e.completion.insertText.length||this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:n})!==e.completion.insertText};l.ju.once(this.model.onDidTrigger)(e=>{let t=[];l.ju.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{(0,d.B9)(t),i()},void 0,t),this.model.onDidSuggest(({completionModel:e})=>{if((0,d.B9)(t),0===e.items.length){i();return}let r=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),o=e.items[r];if(!n(o)){i();return}this.editor.pushUndoStop(),this._insertSuggestion({index:r,item:o,model:e},7)},void 0,t)}),this.model.trigger({auto:!1,shy:!0,noSelect:!1}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){let i=this.widget.value.getFocusedItem(),n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};H.ID="editor.contrib.suggestController",H=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([B(1,w.Fh),B(2,x.Hy),B(3,E.i6),B(4,L.TG),B(5,I.VZ),B(6,O.b)],H);class K{constructor(e){this.prioritySelector=e,this._items=[]}register(e){if(-1!==this._items.indexOf(e))throw Error("Value is already registered");return this._items.push(e),this._items.sort((e,t)=>this.prioritySelector(t)-this.prioritySelector(e)),{dispose:()=>{let t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class V extends p.R6{constructor(){super({id:V.id,label:S.NC("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:E.Ao.and(C.u.writable,C.u.hasCompletionItemProvider),kbOpts:{kbExpr:C.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){let n,r;let o=H.get(t);o&&(i&&"object"==typeof i&&(!0===i.auto&&(n=!0),!0===i.noSelection&&(r=!0)),o.triggerSuggest(void 0,n,void 0,r))}}V.id="editor.action.triggerSuggest",(0,p._K)(H.ID,H),(0,p.Qr)(V);let j=p._l.bindToContribution(H.get);(0,p.fK)(new j({id:"acceptSelectedSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:E.Ao.and(N._y.Visible,C.u.textInputFocus),weight:190},{primary:3,kbExpr:E.Ao.and(N._y.Visible,C.u.textInputFocus,N._y.AcceptSuggestionsOnEnter,N._y.MakesTextEdit),weight:190}],menuOpts:[{menuId:N.GI,title:S.NC("accept.insert","Insert"),group:"left",order:1,when:N._y.HasInsertAndReplaceRange.toNegated()},{menuId:N.GI,title:S.NC("accept.insert","Insert"),group:"left",order:1,when:E.Ao.and(N._y.HasInsertAndReplaceRange,N._y.InsertMode.isEqualTo("insert"))},{menuId:N.GI,title:S.NC("accept.replace","Replace"),group:"left",order:1,when:E.Ao.and(N._y.HasInsertAndReplaceRange,N._y.InsertMode.isEqualTo("replace"))}]})),(0,p.fK)(new j({id:"acceptAlternativeSelectedSuggestion",precondition:E.Ao.and(N._y.Visible,C.u.textInputFocus,N._y.HasFocusedSuggestion),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:N.GI,group:"left",order:2,when:E.Ao.and(N._y.HasInsertAndReplaceRange,N._y.InsertMode.isEqualTo("insert")),title:S.NC("accept.replace","Replace")},{menuId:N.GI,group:"left",order:2,when:E.Ao.and(N._y.HasInsertAndReplaceRange,N._y.InsertMode.isEqualTo("replace")),title:S.NC("accept.insert","Insert")}]})),x.P0.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,p.fK)(new j({id:"hideSuggestWidget",precondition:N._y.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:9,secondary:[1033]}})),(0,p.fK)(new j({id:"selectNextSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,p.fK)(new j({id:"selectNextPageSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:12,secondary:[2060]}})),(0,p.fK)(new j({id:"selectLastSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectLastSuggestion()})),(0,p.fK)(new j({id:"selectPrevSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,p.fK)(new j({id:"selectPrevPageSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:11,secondary:[2059]}})),(0,p.fK)(new j({id:"selectFirstSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectFirstSuggestion()})),(0,p.fK)(new j({id:"toggleSuggestionDetails",precondition:N._y.Visible,handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:N.GI,group:"right",order:1,when:E.Ao.and(N._y.DetailsVisible,N._y.CanResolve),title:S.NC("detail.more","show less")},{menuId:N.GI,group:"right",order:1,when:E.Ao.and(N._y.DetailsVisible.toNegated(),N._y.CanResolve),title:S.NC("detail.less","show more")}]})),(0,p.fK)(new j({id:"toggleExplainMode",precondition:N._y.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),(0,p.fK)(new j({id:"toggleSuggestionFocus",precondition:N._y.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:2570,mac:{primary:778}}})),(0,p.fK)(new j({id:"insertBestCompletion",precondition:E.Ao.and(C.u.textInputFocus,E.Ao.equals("config.editor.tabCompletion","on"),y.p.AtEnd,N._y.Visible.toNegated(),D.V.OtherSuggestions.toNegated(),k.f.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Kn)(t)?Object.assign({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:190,primary:2}})),(0,p.fK)(new j({id:"insertNextSuggestion",precondition:E.Ao.and(C.u.textInputFocus,E.Ao.equals("config.editor.tabCompletion","on"),D.V.OtherSuggestions,N._y.Visible.toNegated(),k.f.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:2}})),(0,p.fK)(new j({id:"insertPrevSuggestion",precondition:E.Ao.and(C.u.textInputFocus,E.Ao.equals("config.editor.tabCompletion","on"),D.V.OtherSuggestions,N._y.Visible.toNegated(),k.f.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:1026}})),(0,p.Qr)(class extends p.R6{constructor(){super({id:"editor.action.resetSuggestSize",label:S.NC("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){var i;null===(i=H.get(t))||void 0===i||i.resetWidgetSize()}})},77972:function(e,t,i){"use strict";i.d(t,{K:function(){return s}});var n=i("3868"),r=i("61045"),o=i("67057");class s{static create(e,t){var i,a,l,c;return i=this,a=void 0,l=void 0,c=function*(){if(!t.getOption(108).localityBonus||!t.hasModel())return s.None;let i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return s.None;let[l]=yield new o.x().provideSelectionRanges(i,[a]);if(0===l.length)return s.None;let c=yield e.computeWordRanges(i.uri,l[0].range);if(!c)return s.None;let d=i.getWordUntilPosition(a);return delete c[d.word],new class extends s{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2097152;let o=c["string"==typeof i.label?i.label:i.label.label];if((0,n.XY)(o))return 2097152;let s=(0,n.ry)(o,r.e.fromPositions(e),r.e.compareRangesUsingStarts),d=s>=0?o[s]:o[Math.max(0,~s-1)],u=l.length;for(let e of l){if(!r.e.containsRange(e.range,d))break;u-=1}return u}}},new(l||(l=Promise))(function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function r(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var i;t.done?e(t.value):((i=t.value)instanceof l?i:new l(function(e){e(i)})).then(n,r)}o((c=c.apply(i,a||[])).next())})}}s.None=new class extends s{distance(){return 0}}},61486:function(e,t,i){"use strict";var n=i("18475"),r=i("7194"),o=i("82272"),s=i("26149");n.B.as(r.IP.Quickaccess).registerQuickAccessProvider({ctor:s.p,prefix:"",helpEntries:[{description:o.ld.helpQuickAccessActionLabel}]})},96437:function(e,t,i){"use strict";i.d(t,{B:function(){return u}});var n=i("9737"),r=i("24342"),o=i("78594"),s=i("83368"),a=i("49436"),l=i("72243"),c=i("39703"),d=function(e,t){return function(i,n){t(i,n,e)}};let u=class extends o.i{constructor(e,t){super(t),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this.registerCodeEditorOpenHandler((e,t,i)=>{var n,r,o,s;return n=this,r=void 0,o=void 0,s=function*(){return t?this.doOpenEditor(t,e):null},new(o||(o=Promise))(function(e,t){function i(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(e){e(n)})).then(i,a)}l((s=s.apply(n,r||[])).next())})})}_checkContextKey(){let e=!1;for(let t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){let i=t.resource.scheme;if(i===r.lg.http||i===r.lg.https)return(0,n.V3)(t.resource.toString()),e}return null}let i=t.options?t.options.selection:null;if(i){if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{let t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}}return e}findModel(e,t){let i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};u=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([d(0,a.i6),d(1,c.XE)],u),(0,l.z)(s.$,u)},75010:function(e,t,i){"use strict";i.d(t,{M:function(){return c}});var n=i("98367");function r(e,t){return"boolean"==typeof e?e:t}function o(e,t){return"string"==typeof e?e:t}function s(e,t=!1){t&&(e=e.map(function(e){return e.toLowerCase()}));let i=function(e){let t={};for(let i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function a(e,t){let i;t=t.replace(/@@/g,`\x01`);let r=0;do i=!1,t=t.replace(/@(\w+)/g,function(r,o){i=!0;let s="";if("string"==typeof e[o])s=e[o];else if(e[o]&&e[o]instanceof RegExp)s=e[o].source;else{if(void 0===e[o])throw n.Tr(e,"language definition does not contain attribute '"+o+"', used at: "+t);throw n.Tr(e,"attribute reference '"+o+"' must be a string, used at: "+t)}return n.cS(s)?"":"(?:"+s+")"}),r++;while(i&&r<5);t=t.replace(/\x01/g,"@");let o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,o)}class l{constructor(e){this.regex=RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let i;if("string"==typeof t)i=t;else if(t instanceof RegExp)i=t.source;else throw n.Tr(e,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=a(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=function e(t,i,r){if(!r)return{token:""};if("string"==typeof r)return r;if(r.token||""===r.token){if("string"!=typeof r.token)throw n.Tr(t,"a 'token' attribute must be of type string, in rule: "+i);{let e={token:r.token};if(r.token.indexOf("$")>=0&&(e.tokenSubst=!0),"string"==typeof r.bracket){if("@open"===r.bracket)e.bracket=1;else if("@close"===r.bracket)e.bracket=-1;else throw n.Tr(t,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+i)}if(r.next){if("string"!=typeof r.next)throw n.Tr(t,"the next state must be a string value in rule: "+i);{let o=r.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),0>o.indexOf("$")&&!n.Qy(t,n.kF(t,o,"",[],""))))throw n.Tr(t,"the next state '"+r.next+"' is not defined in rule: "+i);e.next=o}}return"number"==typeof r.goBack&&(e.goBack=r.goBack),"string"==typeof r.switchTo&&(e.switchTo=r.switchTo),"string"==typeof r.log&&(e.log=r.log),"string"==typeof r.nextEmbedded&&(e.nextEmbedded=r.nextEmbedded,t.usesEmbedded=!0),e}}else if(Array.isArray(r)){let n=[];for(let o=0,s=r.length;o<s;o++)n[o]=e(t,i,r[o]);return{group:n}}else if(r.cases){let o=[];for(let l in r.cases)if(r.cases.hasOwnProperty(l)){let c=e(t,i,r.cases[l]);"@default"===l||"@"===l||""===l?o.push({test:void 0,value:c,name:l}):"@eos"===l?o.push({test:function(e,t,i,n){return n},value:c,name:l}):o.push(function(e,t,i,r){let o,l=-1,c=i,d=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);d&&(d[3]&&(l=parseInt(d[3]),d[2]&&(l+=100)),c=d[4]);let u="~",h=c;if(c&&0!==c.length?/^\w*$/.test(h)?u="==":(d=c.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(u=d[1],h=d[2]):(u="!=",h=""),("~"===u||"!~"===u)&&/^(\w|\|)*$/.test(h)){let t=s(h.split("|"),e.ignoreCase);o=function(e){return"~"===u?t(e):!t(e)}}else if("@"===u||"!@"===u){let i=e[h];if(!i)throw n.Tr(e,"the @ match target '"+h+"' is not defined, in rule: "+t);if(!function(e,t){if(!t||!Array.isArray(t))return!1;for(let i of t)if(!e(i))return!1;return!0}(function(e){return"string"==typeof e},i))throw n.Tr(e,"the @ match target '"+h+"' must be an array of strings, in rule: "+t);let r=s(i,e.ignoreCase);o=function(e){return"@"===u?r(e):!r(e)}}else if("~"===u||"!~"===u){if(0>h.indexOf("$")){let t=a(e,"^"+h+"$");o=function(e){return"~"===u?t.test(e):!t.test(e)}}else o=function(t,i,r,o){return a(e,"^"+n.kF(e,h,i,r,o)+"$").test(t)}}else if(0>h.indexOf("$")){let t=n.ve(e,h);o=function(e){return"=="===u?e===t:e!==t}}else{let t=n.ve(e,h);o=function(i,r,o,s,a){let l=n.kF(e,t,r,o,s);return"=="===u?i===l:i!==l}}return -1===l?{name:i,value:r,test:function(e,t,i,n){return o(e,e,t,i,n)}}:{name:i,value:r,test:function(e,t,i,n){let r=function(e,t,i,n){if(n<0)return e;if(n<t.length)return t[n];if(n>=100){n-=100;let e=i.split(".");if(e.unshift(i),n<e.length)return e[n]}return null}(e,t,i,l);return o(r||"",e,t,i,n)}}}(t,i,l,c))}let l=t.defaultToken;return{test:function(e,t,i,n){for(let r of o)if(!r.test||r.test(e,t,i,n))return r.value;return l}}}else throw n.Tr(t,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+i)}(e,this.name,t)}}function c(e,t){if(!t||"object"!=typeof t)throw Error("Monarch: expecting a language definition object");let i={};i.languageId=e,i.includeLF=r(t.includeLF,!1),i.noThrow=!1,i.maxStack=100,i.start="string"==typeof t.start?t.start:null,i.ignoreCase=r(t.ignoreCase,!1),i.unicode=r(t.unicode,!1),i.tokenPostfix=o(t.tokenPostfix,"."+i.languageId),i.defaultToken=o(t.defaultToken,"source"),i.usesEmbedded=!1;t.languageId=e,t.includeLF=i.includeLF,t.ignoreCase=i.ignoreCase,t.unicode=i.unicode,t.noThrow=i.noThrow,t.usesEmbedded=i.usesEmbedded,t.stateNames=t.tokenizer,t.defaultToken=i.defaultToken;if(!t.tokenizer||"object"!=typeof t.tokenizer)throw n.Tr(i,"a language definition must define the 'tokenizer' attribute as an object");for(let e in i.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(e)){!i.start&&(i.start=e);let o=t.tokenizer[e];i.tokenizer[e]=[],!function e(o,s,a){for(let c of a){let a=c.include;if(a){if("string"!=typeof a)throw n.Tr(i,"an 'include' attribute must be a string at: "+o);if("@"===a[0]&&(a=a.substr(1)),!t.tokenizer[a])throw n.Tr(i,"include target '"+a+"' is not defined at: "+o);e(o+"."+a,s,t.tokenizer[a])}else{let e=new l(o);if(Array.isArray(c)&&c.length>=1&&c.length<=3){if(e.setRegex(t,c[0]),c.length>=3){if("string"==typeof c[1])e.setAction(t,{token:c[1],next:c[2]});else if("object"==typeof c[1]){let i=c[1];i.next=c[2],e.setAction(t,i)}else throw n.Tr(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+o)}else e.setAction(t,c[1])}else{if(!c.regex)throw n.Tr(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+o);c.name&&"string"==typeof c.name&&(e.name=c.name),c.matchOnlyAtStart&&(e.matchOnlyAtLineStart=r(c.matchOnlyAtLineStart,!1)),e.setRegex(t,c.regex),e.setAction(t,c.action)}s.push(e)}}}("tokenizer."+e,i.tokenizer[e],o)}if(i.usesEmbedded=t.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw n.Tr(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let s=[];for(let e of t.brackets){let t=e;if(t&&Array.isArray(t)&&3===t.length&&(t={token:t[2],open:t[0],close:t[1]}),t.open===t.close)throw n.Tr(i,"open and close brackets in a 'brackets' attribute must be different: "+t.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"==typeof t.open&&"string"==typeof t.token&&"string"==typeof t.close)s.push({token:t.token+i.tokenPostfix,open:n.ve(i,t.open),close:n.ve(i,t.close)});else throw n.Tr(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return i.brackets=s,i.noThrow=!0,i}},69253:function(e,t,i){"use strict";let n,r;i.r(t),i.d(t,{CompletionAdapter:function(){return tr},DefinitionAdapter:function(){return th},DiagnosticsAdapter:function(){return tn},DocumentColorAdapter:function(){return t_},DocumentFormattingEditProvider:function(){return tb},DocumentHighlightAdapter:function(){return tu},DocumentLinkAdapter:function(){return tv},DocumentRangeFormattingEditProvider:function(){return tC},DocumentSymbolAdapter:function(){return tm},FoldingRangeAdapter:function(){return tw},HoverAdapter:function(){return tc},ReferenceAdapter:function(){return tf},RenameAdapter:function(){return tp},SelectionRangeAdapter:function(){return ty},WorkerManager:function(){return e9},fromPosition:function(){return to},fromRange:function(){return ts},setupMode:function(){return tE},setupMode1:function(){return tx},toRange:function(){return ta},toTextEdit:function(){return tl}});var o,s,a,l,c,d,u,h,g,f,p,m,v,b,C,k,_,w,y,S,x,E,L,I,N,D,A,T,P,F,O,R,M,B,W,H,K,V,j,$,U,z,q,G,Q,Y,Z,X,J,ee,et,ei,en,er,eo,es,ea,el,ec,ed,eu,eh,eg,ef,ep,em,ev,eb,eC,ek,e_,ew,ey,eS,ex,eE,eL,eI,eN,eD,eA,eT,eP,eF,eO,eR,eM,eB,eW,eH,eK,eV,ej,e$,eU,ez,eq,eG,eQ,eY,eZ,eX,eJ,e0,e1,e2=i("99334"),e3=Object.defineProperty,e5=Object.getOwnPropertyDescriptor,e4=Object.getOwnPropertyNames,e6=Object.prototype.hasOwnProperty,e7=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of e4(t))!e6.call(e,r)&&r!==i&&e3(e,r,{get:()=>t[r],enumerable:!(n=e5(t,r))||n.enumerable});return e},e8={};e7(e8,n=e2,"default"),r&&e7(r,n,"default");var e9=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!!this._worker)Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),!this._client&&(this._worker=e8.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};(o=X||(X={})).MIN_VALUE=-2147483648,o.MAX_VALUE=2147483647,(s=J||(J={})).MIN_VALUE=0,s.MAX_VALUE=2147483647,(a=ee||(ee={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=J.MAX_VALUE),t===Number.MAX_VALUE&&(t=J.MAX_VALUE),{line:e,character:t}},a.is=function(e){return e1.objectLiteral(e)&&e1.uinteger(e.line)&&e1.uinteger(e.character)},(l=et||(et={})).create=function(e,t,i,n){if(e1.uinteger(e)&&e1.uinteger(t)&&e1.uinteger(i)&&e1.uinteger(n))return{start:ee.create(e,t),end:ee.create(i,n)};if(ee.is(e)&&ee.is(t))return{start:e,end:t};throw Error("Range#create called with invalid arguments["+e+", "+t+", "+i+", "+n+"]")},l.is=function(e){return e1.objectLiteral(e)&&ee.is(e.start)&&ee.is(e.end)},(c=ei||(ei={})).create=function(e,t){return{uri:e,range:t}},c.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.string(e.uri)||e1.undefined(e.uri))},(d=en||(en={})).create=function(e,t,i,n){return{targetUri:e,targetRange:t,targetSelectionRange:i,originSelectionRange:n}},d.is=function(e){return e1.defined(e)&&et.is(e.targetRange)&&e1.string(e.targetUri)&&(et.is(e.targetSelectionRange)||e1.undefined(e.targetSelectionRange))&&(et.is(e.originSelectionRange)||e1.undefined(e.originSelectionRange))},(u=er||(er={})).create=function(e,t,i,n){return{red:e,green:t,blue:i,alpha:n}},u.is=function(e){return e1.numberRange(e.red,0,1)&&e1.numberRange(e.green,0,1)&&e1.numberRange(e.blue,0,1)&&e1.numberRange(e.alpha,0,1)},(h=eo||(eo={})).create=function(e,t){return{range:e,color:t}},h.is=function(e){return et.is(e.range)&&er.is(e.color)},(g=es||(es={})).create=function(e,t,i){return{label:e,textEdit:t,additionalTextEdits:i}},g.is=function(e){return e1.string(e.label)&&(e1.undefined(e.textEdit)||ep.is(e))&&(e1.undefined(e.additionalTextEdits)||e1.typedArray(e.additionalTextEdits,ep.is))},(f=ea||(ea={})).Comment="comment",f.Imports="imports",f.Region="region",(p=el||(el={})).create=function(e,t,i,n,r){var o={startLine:e,endLine:t};return e1.defined(i)&&(o.startCharacter=i),e1.defined(n)&&(o.endCharacter=n),e1.defined(r)&&(o.kind=r),o},p.is=function(e){return e1.uinteger(e.startLine)&&e1.uinteger(e.startLine)&&(e1.undefined(e.startCharacter)||e1.uinteger(e.startCharacter))&&(e1.undefined(e.endCharacter)||e1.uinteger(e.endCharacter))&&(e1.undefined(e.kind)||e1.string(e.kind))},(m=ec||(ec={})).create=function(e,t){return{location:e,message:t}},m.is=function(e){return e1.defined(e)&&ei.is(e.location)&&e1.string(e.message)},(v=ed||(ed={})).Error=1,v.Warning=2,v.Information=3,v.Hint=4,(b=eu||(eu={})).Unnecessary=1,b.Deprecated=2,(eh||(eh={})).is=function(e){return null!=e&&e1.string(e.href)},(C=eg||(eg={})).create=function(e,t,i,n,r,o){var s={range:e,message:t};return e1.defined(i)&&(s.severity=i),e1.defined(n)&&(s.code=n),e1.defined(r)&&(s.source=r),e1.defined(o)&&(s.relatedInformation=o),s},C.is=function(e){var t;return e1.defined(e)&&et.is(e.range)&&e1.string(e.message)&&(e1.number(e.severity)||e1.undefined(e.severity))&&(e1.integer(e.code)||e1.string(e.code)||e1.undefined(e.code))&&(e1.undefined(e.codeDescription)||e1.string(null===(t=e.codeDescription)||void 0===t?void 0:t.href))&&(e1.string(e.source)||e1.undefined(e.source))&&(e1.undefined(e.relatedInformation)||e1.typedArray(e.relatedInformation,ec.is))},(k=ef||(ef={})).create=function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r={title:e,command:t};return e1.defined(i)&&i.length>0&&(r.arguments=i),r},k.is=function(e){return e1.defined(e)&&e1.string(e.title)&&e1.string(e.command)},(_=ep||(ep={})).replace=function(e,t){return{range:e,newText:t}},_.insert=function(e,t){return{range:{start:e,end:e},newText:t}},_.del=function(e){return{range:e,newText:""}},_.is=function(e){return e1.objectLiteral(e)&&e1.string(e.newText)&&et.is(e.range)},(w=em||(em={})).create=function(e,t,i){var n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==i&&(n.description=i),n},w.is=function(e){return void 0!==e&&e1.objectLiteral(e)&&e1.string(e.label)&&(e1.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(e1.string(e.description)||void 0===e.description)},(ev||(ev={})).is=function(e){return"string"==typeof e},(y=eb||(eb={})).replace=function(e,t,i){return{range:e,newText:t,annotationId:i}},y.insert=function(e,t,i){return{range:{start:e,end:e},newText:t,annotationId:i}},y.del=function(e,t){return{range:e,newText:"",annotationId:t}},y.is=function(e){return ep.is(e)&&(em.is(e.annotationId)||ev.is(e.annotationId))},(S=eC||(eC={})).create=function(e,t){return{textDocument:e,edits:t}},S.is=function(e){return e1.defined(e)&&eE.is(e.textDocument)&&Array.isArray(e.edits)},(x=ek||(ek={})).create=function(e,t,i){var n={kind:"create",uri:e};return void 0!==t&&(void 0!==t.overwrite||void 0!==t.ignoreIfExists)&&(n.options=t),void 0!==i&&(n.annotationId=i),n},x.is=function(e){return e&&"create"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(E=e_||(e_={})).create=function(e,t,i,n){var r={kind:"rename",oldUri:e,newUri:t};return void 0!==i&&(void 0!==i.overwrite||void 0!==i.ignoreIfExists)&&(r.options=i),void 0!==n&&(r.annotationId=n),r},E.is=function(e){return e&&"rename"===e.kind&&e1.string(e.oldUri)&&e1.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(L=ew||(ew={})).create=function(e,t,i){var n={kind:"delete",uri:e};return void 0!==t&&(void 0!==t.recursive||void 0!==t.ignoreIfNotExists)&&(n.options=t),void 0!==i&&(n.annotationId=i),n},L.is=function(e){return e&&"delete"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||e1.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||e1.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(ey||(ey={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every(function(e){return e1.string(e.kind)?ek.is(e)||e_.is(e)||ew.is(e):eC.is(e)}))};var te=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,i){var n,r;if(void 0===i?n=ep.insert(e,t):ev.is(i)?(r=i,n=eb.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(i),n=eb.insert(e,t,r)),this.edits.push(n),void 0!==r)return r},e.prototype.replace=function(e,t,i){var n,r;if(void 0===i?n=ep.replace(e,t):ev.is(i)?(r=i,n=eb.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(i),n=eb.replace(e,t,r)),this.edits.push(n),void 0!==r)return r},e.prototype.delete=function(e,t){var i,n;if(void 0===t?i=ep.del(e):ev.is(t)?(n=t,i=eb.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),i=eb.del(e,n)),this.edits.push(i),void 0!==n)return n},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw Error("Text edit change is not configured to manage change annotations.")},e}(),tt=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var i;if(ev.is(e)?i=e:(i=this.nextId(),t=e),void 0!==this._annotations[i])throw Error("Id "+i+" is already in use.");if(void 0===t)throw Error("No annotation provided for id "+i);return this._annotations[i]=t,this._size++,i},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new tt(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(e){if(eC.is(e)){var i=new te(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(i){var n=new te(e.changes[i]);t._textEditChanges[i]=n})):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(eE.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},i=this._textEditChanges[t.uri];if(!i){var n=[],r={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(r),i=new te(n,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[e];if(!i){var n=[];this._workspaceEdit.changes[e]=n,i=new te(n),this._textEditChanges[e]=i}return i},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new tt,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,i){var n,r,o;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(t)||ev.is(t)?n=t:i=t,void 0===n?r=ek.create(e,i):(o=ev.is(n)?n:this._changeAnnotations.manage(n),r=ek.create(e,i,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o},e.prototype.renameFile=function(e,t,i,n){var r,o,s;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(i)||ev.is(i)?r=i:n=i,void 0===r?o=e_.create(e,t,n):(s=ev.is(r)?r:this._changeAnnotations.manage(r),o=e_.create(e,t,n,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,i){var n,r,o;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(t)||ev.is(t)?n=t:i=t,void 0===n?r=ew.create(e,i):(o=ev.is(n)?n:this._changeAnnotations.manage(n),r=ew.create(e,i,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o}}(),(I=eS||(eS={})).create=function(e){return{uri:e}},I.is=function(e){return e1.defined(e)&&e1.string(e.uri)},(N=ex||(ex={})).create=function(e,t){return{uri:e,version:t}},N.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.integer(e.version)},(D=eE||(eE={})).create=function(e,t){return{uri:e,version:t}},D.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&(null===e.version||e1.integer(e.version))},(A=eL||(eL={})).create=function(e,t,i,n){return{uri:e,languageId:t,version:i,text:n}},A.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.string(e.languageId)&&e1.integer(e.version)&&e1.string(e.text)},(T=eI||(eI={})).PlainText="plaintext",T.Markdown="markdown",(P=eI||(eI={})).is=function(e){return e===P.PlainText||e===P.Markdown},(eN||(eN={})).is=function(e){return e1.objectLiteral(e)&&eI.is(e.kind)&&e1.string(e.value)},(F=eD||(eD={})).Text=1,F.Method=2,F.Function=3,F.Constructor=4,F.Field=5,F.Variable=6,F.Class=7,F.Interface=8,F.Module=9,F.Property=10,F.Unit=11,F.Value=12,F.Enum=13,F.Keyword=14,F.Snippet=15,F.Color=16,F.File=17,F.Reference=18,F.Folder=19,F.EnumMember=20,F.Constant=21,F.Struct=22,F.Event=23,F.Operator=24,F.TypeParameter=25,(O=eA||(eA={})).PlainText=1,O.Snippet=2,(eT||(eT={})).Deprecated=1,(R=eP||(eP={})).create=function(e,t,i){return{newText:e,insert:t,replace:i}},R.is=function(e){return e&&e1.string(e.newText)&&et.is(e.insert)&&et.is(e.replace)},(M=eF||(eF={})).asIs=1,M.adjustIndentation=2,(eO||(eO={})).create=function(e){return{label:e}},(eR||(eR={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(B=eM||(eM={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},B.is=function(e){return e1.string(e)||e1.objectLiteral(e)&&e1.string(e.language)&&e1.string(e.value)},(eB||(eB={})).is=function(e){return!!e&&e1.objectLiteral(e)&&(eN.is(e.contents)||eM.is(e.contents)||e1.typedArray(e.contents,eM.is))&&(void 0===e.range||et.is(e.range))},(eW||(eW={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(eH||(eH={})).create=function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r={label:e};return e1.defined(t)&&(r.documentation=t),e1.defined(i)?r.parameters=i:r.parameters=[],r},(W=eK||(eK={})).Text=1,W.Read=2,W.Write=3,(eV||(eV={})).create=function(e,t){var i={range:e};return e1.number(t)&&(i.kind=t),i},(H=ej||(ej={})).File=1,H.Module=2,H.Namespace=3,H.Package=4,H.Class=5,H.Method=6,H.Property=7,H.Field=8,H.Constructor=9,H.Enum=10,H.Interface=11,H.Function=12,H.Variable=13,H.Constant=14,H.String=15,H.Number=16,H.Boolean=17,H.Array=18,H.Object=19,H.Key=20,H.Null=21,H.EnumMember=22,H.Struct=23,H.Event=24,H.Operator=25,H.TypeParameter=26,(e$||(e$={})).Deprecated=1,(eU||(eU={})).create=function(e,t,i,n,r){var o={name:e,kind:t,location:{uri:n,range:i}};return r&&(o.containerName=r),o},(K=ez||(ez={})).create=function(e,t,i,n,r,o){var s={name:e,detail:t,kind:i,range:n,selectionRange:r};return void 0!==o&&(s.children=o),s},K.is=function(e){return e&&e1.string(e.name)&&e1.number(e.kind)&&et.is(e.range)&&et.is(e.selectionRange)&&(void 0===e.detail||e1.string(e.detail))&&(void 0===e.deprecated||e1.boolean(e.deprecated))&&(void 0===e.children||Array.isArray(e.children))&&(void 0===e.tags||Array.isArray(e.tags))},(V=eq||(eq={})).Empty="",V.QuickFix="quickfix",V.Refactor="refactor",V.RefactorExtract="refactor.extract",V.RefactorInline="refactor.inline",V.RefactorRewrite="refactor.rewrite",V.Source="source",V.SourceOrganizeImports="source.organizeImports",V.SourceFixAll="source.fixAll",(j=eG||(eG={})).create=function(e,t){var i={diagnostics:e};return null!=t&&(i.only=t),i},j.is=function(e){return e1.defined(e)&&e1.typedArray(e.diagnostics,eg.is)&&(void 0===e.only||e1.typedArray(e.only,e1.string))},($=eQ||(eQ={})).create=function(e,t,i){var n={title:e},r=!0;return"string"==typeof t?(r=!1,n.kind=t):ef.is(t)?n.command=t:n.edit=t,r&&void 0!==i&&(n.kind=i),n},$.is=function(e){return e&&e1.string(e.title)&&(void 0===e.diagnostics||e1.typedArray(e.diagnostics,eg.is))&&(void 0===e.kind||e1.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||ef.is(e.command))&&(void 0===e.isPreferred||e1.boolean(e.isPreferred))&&(void 0===e.edit||ey.is(e.edit))},(U=eY||(eY={})).create=function(e,t){var i={range:e};return e1.defined(t)&&(i.data=t),i},U.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.command)||ef.is(e.command))},(z=eZ||(eZ={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},z.is=function(e){return e1.defined(e)&&e1.uinteger(e.tabSize)&&e1.boolean(e.insertSpaces)},(q=eX||(eX={})).create=function(e,t,i){return{range:e,target:t,data:i}},q.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.target)||e1.string(e.target))},(G=eJ||(eJ={})).create=function(e,t){return{range:e,parent:t}},G.is=function(e){return void 0!==e&&et.is(e.range)&&(void 0===e.parent||G.is(e.parent))},(Q=e0||(e0={})).create=function(e,t,i,n){return new ti(e,t,i,n)},Q.is=function(e){return!!(e1.defined(e)&&e1.string(e.uri)&&(e1.undefined(e.languageId)||e1.string(e.languageId))&&e1.uinteger(e.lineCount)&&e1.func(e.getText)&&e1.func(e.positionAt)&&e1.func(e.offsetAt))},Q.applyEdits=function(e,t){for(var i=e.getText(),n=function e(t,i){if(t.length<=1)return t;var n=t.length/2|0,r=t.slice(0,n),o=t.slice(n);e(r,i),e(o,i);for(var s=0,a=0,l=0;s<r.length&&a<o.length;)0>=i(r[s],o[a])?t[l++]=r[s++]:t[l++]=o[a++];for(;s<r.length;)t[l++]=r[s++];for(;a<o.length;)t[l++]=o[a++];return t}(t,function(e,t){var i=e.range.start.line-t.range.start.line;return 0===i?e.range.start.character-t.range.start.character:i}),r=i.length,o=n.length-1;o>=0;o--){var s=n[o],a=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(l<=r)i=i.substring(0,a)+s.newText+i.substring(l,i.length);else throw Error("Overlapping edit");r=a}return i};var ti=function(){function e(e,t,i,n){this._uri=e,this._languageId=t,this._version=i,this._content=n,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,i=!0,n=0;n<t.length;n++){i&&(e.push(n),i=!1);var r=t.charAt(n);i="\r"===r||"\n"===r,"\r"===r&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}i&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,n=t.length;if(0===n)return ee.create(0,e);for(;i<n;){var r=Math.floor((i+n)/2);t[r]>e?n=r:i=r+1}var o=i-1;return ee.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,n),i)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();Y=e1||(e1={}),Z=Object.prototype.toString,Y.defined=function(e){return void 0!==e},Y.undefined=function(e){return void 0===e},Y.boolean=function(e){return!0===e||!1===e},Y.string=function(e){return"[object String]"===Z.call(e)},Y.number=function(e){return"[object Number]"===Z.call(e)},Y.numberRange=function(e,t,i){return"[object Number]"===Z.call(e)&&t<=e&&e<=i},Y.integer=function(e){return"[object Number]"===Z.call(e)&&-2147483648<=e&&e<=2147483647},Y.uinteger=function(e){return"[object Number]"===Z.call(e)&&0<=e&&e<=2147483647},Y.func=function(e){return"[object Function]"===Z.call(e)},Y.objectLiteral=function(e){return null!==e&&"object"==typeof e},Y.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)};var tn=class{constructor(e,t,i){this._languageId=e,this._worker=t;let n=e=>{let t,i=e.getLanguageId();i===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent(()=>{window.clearTimeout(t),t=window.setTimeout(()=>this._doValidate(e.uri,i),500)}),this._doValidate(e.uri,i))},r=e=>{e8.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),i=this._listener[t];i&&(i.dispose(),delete this._listener[t])};this._disposables.push(e8.editor.onDidCreateModel(n)),this._disposables.push(e8.editor.onWillDisposeModel(r)),this._disposables.push(e8.editor.onDidChangeModelLanguage(e=>{r(e.model),n(e.model)})),this._disposables.push(i(e=>{e8.editor.getModels().forEach(e=>{e.getLanguageId()===this._languageId&&(r(e),n(e))})})),this._disposables.push({dispose:()=>{for(let e in e8.editor.getModels().forEach(r),this._listener)this._listener[e].dispose()}}),e8.editor.getModels().forEach(n)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,t){this._worker(e).then(t=>t.doValidation(e.toString())).then(i=>{let n=i.map(t=>(function(e,t){let i="number"==typeof t.code?String(t.code):t.code;return{severity:function(e){switch(e){case ed.Error:return e8.MarkerSeverity.Error;case ed.Warning:return e8.MarkerSeverity.Warning;case ed.Information:return e8.MarkerSeverity.Info;case ed.Hint:return e8.MarkerSeverity.Hint;default:return e8.MarkerSeverity.Info}}(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:i,source:t.source}})(e,t)),r=e8.editor.getModel(e);r&&r.getLanguageId()===t&&e8.editor.setModelMarkers(r,t,n)}).then(void 0,e=>{console.error(e)})}},tr=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.doComplete(r.toString(),to(t))).then(i=>{if(!i)return;let n=e.getWordUntilPosition(t),r=new e8.Range(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn),o=i.items.map(e=>{let t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:function(e){return e&&"editor.action.triggerSuggest"===e.command?{id:e.command,title:e.title,arguments:e.arguments}:void 0}(e.command),range:r,kind:function(e){let t=e8.languages.CompletionItemKind;switch(e){case eD.Text:return t.Text;case eD.Method:return t.Method;case eD.Function:return t.Function;case eD.Constructor:return t.Constructor;case eD.Field:return t.Field;case eD.Variable:return t.Variable;case eD.Class:return t.Class;case eD.Interface:return t.Interface;case eD.Module:return t.Module;case eD.Property:break;case eD.Unit:return t.Unit;case eD.Value:return t.Value;case eD.Enum:return t.Enum;case eD.Keyword:return t.Keyword;case eD.Snippet:return t.Snippet;case eD.Color:return t.Color;case eD.File:return t.File;case eD.Reference:return t.Reference}return t.Property}(e.kind)};return e.textEdit&&(function(e){return void 0!==e.insert&&void 0!==e.replace}(e.textEdit)?t.range={insert:ta(e.textEdit.insert),replace:ta(e.textEdit.replace)}:t.range=ta(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tl)),e.insertTextFormat===eA.Snippet&&(t.insertTextRules=e8.languages.CompletionItemInsertTextRule.InsertAsSnippet),t});return{isIncomplete:i.isIncomplete,suggestions:o}})}};function to(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ts(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ta(e){if(e)return new e8.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function tl(e){if(e)return{range:ta(e.range),text:e.newText}}var tc=class{constructor(e){this._worker=e}provideHover(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.doHover(n.toString(),to(t))).then(e=>{if(e)return{range:ta(e.range),contents:function(e){if(e)return Array.isArray(e)?e.map(td):[td(e)]}(e.contents)}})}};function td(e){var t;if("string"==typeof e)return{value:e};if((t=e)&&"object"==typeof t&&"string"==typeof t.kind)return"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value};return{value:"```"+e.language+"\n"+e.value+"\n```\n"}}var tu=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.findDocumentHighlights(n.toString(),to(t))).then(e=>{if(e)return e.map(e=>({range:ta(e.range),kind:function(e){switch(e){case eK.Read:return e8.languages.DocumentHighlightKind.Read;case eK.Write:return e8.languages.DocumentHighlightKind.Write;case eK.Text:}return e8.languages.DocumentHighlightKind.Text}(e.kind)}))})}},th=class{constructor(e){this._worker=e}provideDefinition(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.findDefinition(n.toString(),to(t))).then(e=>{if(e)return[tg(e)]})}};function tg(e){return{uri:e8.Uri.parse(e.uri),range:ta(e.range)}}var tf=class{constructor(e){this._worker=e}provideReferences(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.findReferences(r.toString(),to(t))).then(e=>{if(e)return e.map(tg)})}},tp=class{constructor(e){this._worker=e}provideRenameEdits(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.doRename(r.toString(),to(t),i)).then(e=>(function(e){if(!e||!e.changes)return;let t=[];for(let i in e.changes){let n=e8.Uri.parse(i);for(let r of e.changes[i])t.push({resource:n,versionId:void 0,textEdit:{range:ta(r.range),text:r.newText}})}return{edits:t}})(e))}},tm=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentSymbols(i.toString())).then(e=>{if(e)return e.map(e=>({name:e.name,detail:"",containerName:e.containerName,kind:function(e){let t=e8.languages.SymbolKind;switch(e){case ej.File:return t.Array;case ej.Module:return t.Module;case ej.Namespace:return t.Namespace;case ej.Package:return t.Package;case ej.Class:return t.Class;case ej.Method:return t.Method;case ej.Property:return t.Property;case ej.Field:return t.Field;case ej.Constructor:return t.Constructor;case ej.Enum:return t.Enum;case ej.Interface:return t.Interface;case ej.Function:break;case ej.Variable:return t.Variable;case ej.Constant:return t.Constant;case ej.String:return t.String;case ej.Number:return t.Number;case ej.Boolean:return t.Boolean;case ej.Array:return t.Array}return t.Function}(e.kind),range:ta(e.location.range),selectionRange:ta(e.location.range),tags:[]}))})}},tv=class{constructor(e){this._worker=e}provideLinks(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentLinks(i.toString())).then(e=>{if(e)return{links:e.map(e=>({range:ta(e.range),url:e.target}))}})}},tb=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.format(n.toString(),null,tk(t)).then(e=>{if(e&&0!==e.length)return e.map(tl)}))}},tC=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.format(r.toString(),ts(t),tk(i)).then(e=>{if(e&&0!==e.length)return e.map(tl)}))}};function tk(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var t_=class{constructor(e){this._worker=e}provideDocumentColors(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentColors(i.toString())).then(e=>{if(e)return e.map(e=>({color:e.color,range:ta(e.range)}))})}provideColorPresentations(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getColorPresentations(n.toString(),t.color,ts(t.range))).then(e=>{if(e)return e.map(e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=tl(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tl)),t})})}},tw=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getFoldingRanges(n.toString(),t)).then(e=>{if(e)return e.map(e=>{let t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case ea.Comment:return e8.languages.FoldingRangeKind.Comment;case ea.Imports:return e8.languages.FoldingRangeKind.Imports;case ea.Region:return e8.languages.FoldingRangeKind.Region}}(e.kind)),t})})}},ty=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getSelectionRanges(n.toString(),t.map(to))).then(e=>{if(e)return e.map(e=>{let t=[];for(;e;)t.push({range:ta(e.range)}),e=e.parent;return t})})}},tS=class extends tr{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function tx(e){let t=new e9(e),i=(...e)=>t.getLanguageServiceWorker(...e),n=e.languageId;e8.languages.registerCompletionItemProvider(n,new tS(i)),e8.languages.registerHoverProvider(n,new tc(i)),e8.languages.registerDocumentHighlightProvider(n,new tu(i)),e8.languages.registerLinkProvider(n,new tv(i)),e8.languages.registerFoldingRangeProvider(n,new tw(i)),e8.languages.registerDocumentSymbolProvider(n,new tm(i)),e8.languages.registerSelectionRangeProvider(n,new ty(i)),e8.languages.registerRenameProvider(n,new tp(i)),"html"===n&&(e8.languages.registerDocumentFormattingEditProvider(n,new tb(i)),e8.languages.registerDocumentRangeFormattingEditProvider(n,new tC(i)))}function tE(e){let t=[],i=[],n=new e9(e);t.push(n);let r=(...e)=>n.getLanguageServiceWorker(...e);return!function(){let{languageId:t,modeConfiguration:n}=e;tI(i),n.completionItems&&i.push(e8.languages.registerCompletionItemProvider(t,new tS(r))),n.hovers&&i.push(e8.languages.registerHoverProvider(t,new tc(r))),n.documentHighlights&&i.push(e8.languages.registerDocumentHighlightProvider(t,new tu(r))),n.links&&i.push(e8.languages.registerLinkProvider(t,new tv(r))),n.documentSymbols&&i.push(e8.languages.registerDocumentSymbolProvider(t,new tm(r))),n.rename&&i.push(e8.languages.registerRenameProvider(t,new tp(r))),n.foldingRanges&&i.push(e8.languages.registerFoldingRangeProvider(t,new tw(r))),n.selectionRanges&&i.push(e8.languages.registerSelectionRangeProvider(t,new ty(r))),n.documentFormattingEdits&&i.push(e8.languages.registerDocumentFormattingEditProvider(t,new tb(r))),n.documentRangeFormattingEdits&&i.push(e8.languages.registerDocumentRangeFormattingEditProvider(t,new tC(r)))}(),t.push(tL(i)),tL(t)}function tL(e){return{dispose:()=>tI(e)}}function tI(e){for(;e.length;)e.pop().dispose()}},42410:function(e,t,i){"use strict";let n,r;i.r(t),i.d(t,{CompletionAdapter:function(){return to},DefinitionAdapter:function(){return tg},DiagnosticsAdapter:function(){return tr},DocumentColorAdapter:function(){return tw},DocumentFormattingEditProvider:function(){return tC},DocumentHighlightAdapter:function(){return th},DocumentLinkAdapter:function(){return tb},DocumentRangeFormattingEditProvider:function(){return tk},DocumentSymbolAdapter:function(){return tv},FoldingRangeAdapter:function(){return ty},HoverAdapter:function(){return td},ReferenceAdapter:function(){return tp},RenameAdapter:function(){return tm},SelectionRangeAdapter:function(){return tS},WorkerManager:function(){return te},fromPosition:function(){return ts},fromRange:function(){return ta},setupMode:function(){return tF},toRange:function(){return tl},toTextEdit:function(){return tc}});var o,s,a,l,c,d,u,h,g,f,p,m,v,b,C,k,_,w,y,S,x,E,L,I,N,D,A,T,P,F,O,R,M,B,W,H,K,V,j,$,U,z,q,G,Q,Y,Z,X,J,ee,et,ei,en,er,eo,es,ea,el,ec,ed,eu,eh,eg,ef,ep,em,ev,eb,eC,ek,e_,ew,ey,eS,ex,eE,eL,eI,eN,eD,eA,eT,eP,eF,eO,eR,eM,eB,eW,eH,eK,eV,ej,e$,eU,ez,eq,eG,eQ,eY,eZ,eX,eJ,e0,e1,e2,e3=i("99334"),e5=Object.defineProperty,e4=Object.getOwnPropertyDescriptor,e6=Object.getOwnPropertyNames,e7=Object.prototype.hasOwnProperty,e8=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of e6(t))!e7.call(e,r)&&r!==i&&e5(e,r,{get:()=>t[r],enumerable:!(n=e4(t,r))||n.enumerable});return e},e9={};e8(e9,n=e3,"default"),r&&e8(r,n,"default");var te=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!!this._worker)Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),!this._client&&(this._worker=e9.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};(o=X||(X={})).MIN_VALUE=-2147483648,o.MAX_VALUE=2147483647,(s=J||(J={})).MIN_VALUE=0,s.MAX_VALUE=2147483647,(a=ee||(ee={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=J.MAX_VALUE),t===Number.MAX_VALUE&&(t=J.MAX_VALUE),{line:e,character:t}},a.is=function(e){return e1.objectLiteral(e)&&e1.uinteger(e.line)&&e1.uinteger(e.character)},(l=et||(et={})).create=function(e,t,i,n){if(e1.uinteger(e)&&e1.uinteger(t)&&e1.uinteger(i)&&e1.uinteger(n))return{start:ee.create(e,t),end:ee.create(i,n)};if(ee.is(e)&&ee.is(t))return{start:e,end:t};throw Error("Range#create called with invalid arguments["+e+", "+t+", "+i+", "+n+"]")},l.is=function(e){return e1.objectLiteral(e)&&ee.is(e.start)&&ee.is(e.end)},(c=ei||(ei={})).create=function(e,t){return{uri:e,range:t}},c.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.string(e.uri)||e1.undefined(e.uri))},(d=en||(en={})).create=function(e,t,i,n){return{targetUri:e,targetRange:t,targetSelectionRange:i,originSelectionRange:n}},d.is=function(e){return e1.defined(e)&&et.is(e.targetRange)&&e1.string(e.targetUri)&&(et.is(e.targetSelectionRange)||e1.undefined(e.targetSelectionRange))&&(et.is(e.originSelectionRange)||e1.undefined(e.originSelectionRange))},(u=er||(er={})).create=function(e,t,i,n){return{red:e,green:t,blue:i,alpha:n}},u.is=function(e){return e1.numberRange(e.red,0,1)&&e1.numberRange(e.green,0,1)&&e1.numberRange(e.blue,0,1)&&e1.numberRange(e.alpha,0,1)},(h=eo||(eo={})).create=function(e,t){return{range:e,color:t}},h.is=function(e){return et.is(e.range)&&er.is(e.color)},(g=es||(es={})).create=function(e,t,i){return{label:e,textEdit:t,additionalTextEdits:i}},g.is=function(e){return e1.string(e.label)&&(e1.undefined(e.textEdit)||ep.is(e))&&(e1.undefined(e.additionalTextEdits)||e1.typedArray(e.additionalTextEdits,ep.is))},(f=ea||(ea={})).Comment="comment",f.Imports="imports",f.Region="region",(p=el||(el={})).create=function(e,t,i,n,r){var o={startLine:e,endLine:t};return e1.defined(i)&&(o.startCharacter=i),e1.defined(n)&&(o.endCharacter=n),e1.defined(r)&&(o.kind=r),o},p.is=function(e){return e1.uinteger(e.startLine)&&e1.uinteger(e.startLine)&&(e1.undefined(e.startCharacter)||e1.uinteger(e.startCharacter))&&(e1.undefined(e.endCharacter)||e1.uinteger(e.endCharacter))&&(e1.undefined(e.kind)||e1.string(e.kind))},(m=ec||(ec={})).create=function(e,t){return{location:e,message:t}},m.is=function(e){return e1.defined(e)&&ei.is(e.location)&&e1.string(e.message)},(v=ed||(ed={})).Error=1,v.Warning=2,v.Information=3,v.Hint=4,(b=eu||(eu={})).Unnecessary=1,b.Deprecated=2,(eh||(eh={})).is=function(e){return null!=e&&e1.string(e.href)},(C=eg||(eg={})).create=function(e,t,i,n,r,o){var s={range:e,message:t};return e1.defined(i)&&(s.severity=i),e1.defined(n)&&(s.code=n),e1.defined(r)&&(s.source=r),e1.defined(o)&&(s.relatedInformation=o),s},C.is=function(e){var t;return e1.defined(e)&&et.is(e.range)&&e1.string(e.message)&&(e1.number(e.severity)||e1.undefined(e.severity))&&(e1.integer(e.code)||e1.string(e.code)||e1.undefined(e.code))&&(e1.undefined(e.codeDescription)||e1.string(null===(t=e.codeDescription)||void 0===t?void 0:t.href))&&(e1.string(e.source)||e1.undefined(e.source))&&(e1.undefined(e.relatedInformation)||e1.typedArray(e.relatedInformation,ec.is))},(k=ef||(ef={})).create=function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r={title:e,command:t};return e1.defined(i)&&i.length>0&&(r.arguments=i),r},k.is=function(e){return e1.defined(e)&&e1.string(e.title)&&e1.string(e.command)},(_=ep||(ep={})).replace=function(e,t){return{range:e,newText:t}},_.insert=function(e,t){return{range:{start:e,end:e},newText:t}},_.del=function(e){return{range:e,newText:""}},_.is=function(e){return e1.objectLiteral(e)&&e1.string(e.newText)&&et.is(e.range)},(w=em||(em={})).create=function(e,t,i){var n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==i&&(n.description=i),n},w.is=function(e){return void 0!==e&&e1.objectLiteral(e)&&e1.string(e.label)&&(e1.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(e1.string(e.description)||void 0===e.description)},(ev||(ev={})).is=function(e){return"string"==typeof e},(y=eb||(eb={})).replace=function(e,t,i){return{range:e,newText:t,annotationId:i}},y.insert=function(e,t,i){return{range:{start:e,end:e},newText:t,annotationId:i}},y.del=function(e,t){return{range:e,newText:"",annotationId:t}},y.is=function(e){return ep.is(e)&&(em.is(e.annotationId)||ev.is(e.annotationId))},(S=eC||(eC={})).create=function(e,t){return{textDocument:e,edits:t}},S.is=function(e){return e1.defined(e)&&eE.is(e.textDocument)&&Array.isArray(e.edits)},(x=ek||(ek={})).create=function(e,t,i){var n={kind:"create",uri:e};return void 0!==t&&(void 0!==t.overwrite||void 0!==t.ignoreIfExists)&&(n.options=t),void 0!==i&&(n.annotationId=i),n},x.is=function(e){return e&&"create"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(E=e_||(e_={})).create=function(e,t,i,n){var r={kind:"rename",oldUri:e,newUri:t};return void 0!==i&&(void 0!==i.overwrite||void 0!==i.ignoreIfExists)&&(r.options=i),void 0!==n&&(r.annotationId=n),r},E.is=function(e){return e&&"rename"===e.kind&&e1.string(e.oldUri)&&e1.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(L=ew||(ew={})).create=function(e,t,i){var n={kind:"delete",uri:e};return void 0!==t&&(void 0!==t.recursive||void 0!==t.ignoreIfNotExists)&&(n.options=t),void 0!==i&&(n.annotationId=i),n},L.is=function(e){return e&&"delete"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||e1.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||e1.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(ey||(ey={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every(function(e){return e1.string(e.kind)?ek.is(e)||e_.is(e)||ew.is(e):eC.is(e)}))};var tt=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,i){var n,r;if(void 0===i?n=ep.insert(e,t):ev.is(i)?(r=i,n=eb.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(i),n=eb.insert(e,t,r)),this.edits.push(n),void 0!==r)return r},e.prototype.replace=function(e,t,i){var n,r;if(void 0===i?n=ep.replace(e,t):ev.is(i)?(r=i,n=eb.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(i),n=eb.replace(e,t,r)),this.edits.push(n),void 0!==r)return r},e.prototype.delete=function(e,t){var i,n;if(void 0===t?i=ep.del(e):ev.is(t)?(n=t,i=eb.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),i=eb.del(e,n)),this.edits.push(i),void 0!==n)return n},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw Error("Text edit change is not configured to manage change annotations.")},e}(),ti=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var i;if(ev.is(e)?i=e:(i=this.nextId(),t=e),void 0!==this._annotations[i])throw Error("Id "+i+" is already in use.");if(void 0===t)throw Error("No annotation provided for id "+i);return this._annotations[i]=t,this._size++,i},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ti(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(e){if(eC.is(e)){var i=new tt(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(i){var n=new tt(e.changes[i]);t._textEditChanges[i]=n})):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(eE.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},i=this._textEditChanges[t.uri];if(!i){var n=[],r={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(r),i=new tt(n,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[e];if(!i){var n=[];this._workspaceEdit.changes[e]=n,i=new tt(n),this._textEditChanges[e]=i}return i},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ti,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,i){var n,r,o;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(t)||ev.is(t)?n=t:i=t,void 0===n?r=ek.create(e,i):(o=ev.is(n)?n:this._changeAnnotations.manage(n),r=ek.create(e,i,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o},e.prototype.renameFile=function(e,t,i,n){var r,o,s;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(i)||ev.is(i)?r=i:n=i,void 0===r?o=e_.create(e,t,n):(s=ev.is(r)?r:this._changeAnnotations.manage(r),o=e_.create(e,t,n,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,i){var n,r,o;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(t)||ev.is(t)?n=t:i=t,void 0===n?r=ew.create(e,i):(o=ev.is(n)?n:this._changeAnnotations.manage(n),r=ew.create(e,i,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o}}(),(I=eS||(eS={})).create=function(e){return{uri:e}},I.is=function(e){return e1.defined(e)&&e1.string(e.uri)},(N=ex||(ex={})).create=function(e,t){return{uri:e,version:t}},N.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.integer(e.version)},(D=eE||(eE={})).create=function(e,t){return{uri:e,version:t}},D.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&(null===e.version||e1.integer(e.version))},(A=eL||(eL={})).create=function(e,t,i,n){return{uri:e,languageId:t,version:i,text:n}},A.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.string(e.languageId)&&e1.integer(e.version)&&e1.string(e.text)},(T=eI||(eI={})).PlainText="plaintext",T.Markdown="markdown",(P=eI||(eI={})).is=function(e){return e===P.PlainText||e===P.Markdown},(eN||(eN={})).is=function(e){return e1.objectLiteral(e)&&eI.is(e.kind)&&e1.string(e.value)},(F=eD||(eD={})).Text=1,F.Method=2,F.Function=3,F.Constructor=4,F.Field=5,F.Variable=6,F.Class=7,F.Interface=8,F.Module=9,F.Property=10,F.Unit=11,F.Value=12,F.Enum=13,F.Keyword=14,F.Snippet=15,F.Color=16,F.File=17,F.Reference=18,F.Folder=19,F.EnumMember=20,F.Constant=21,F.Struct=22,F.Event=23,F.Operator=24,F.TypeParameter=25,(O=eA||(eA={})).PlainText=1,O.Snippet=2,(eT||(eT={})).Deprecated=1,(R=eP||(eP={})).create=function(e,t,i){return{newText:e,insert:t,replace:i}},R.is=function(e){return e&&e1.string(e.newText)&&et.is(e.insert)&&et.is(e.replace)},(M=eF||(eF={})).asIs=1,M.adjustIndentation=2,(eO||(eO={})).create=function(e){return{label:e}},(eR||(eR={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(B=eM||(eM={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},B.is=function(e){return e1.string(e)||e1.objectLiteral(e)&&e1.string(e.language)&&e1.string(e.value)},(eB||(eB={})).is=function(e){return!!e&&e1.objectLiteral(e)&&(eN.is(e.contents)||eM.is(e.contents)||e1.typedArray(e.contents,eM.is))&&(void 0===e.range||et.is(e.range))},(eW||(eW={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(eH||(eH={})).create=function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r={label:e};return e1.defined(t)&&(r.documentation=t),e1.defined(i)?r.parameters=i:r.parameters=[],r},(W=eK||(eK={})).Text=1,W.Read=2,W.Write=3,(eV||(eV={})).create=function(e,t){var i={range:e};return e1.number(t)&&(i.kind=t),i},(H=ej||(ej={})).File=1,H.Module=2,H.Namespace=3,H.Package=4,H.Class=5,H.Method=6,H.Property=7,H.Field=8,H.Constructor=9,H.Enum=10,H.Interface=11,H.Function=12,H.Variable=13,H.Constant=14,H.String=15,H.Number=16,H.Boolean=17,H.Array=18,H.Object=19,H.Key=20,H.Null=21,H.EnumMember=22,H.Struct=23,H.Event=24,H.Operator=25,H.TypeParameter=26,(e$||(e$={})).Deprecated=1,(eU||(eU={})).create=function(e,t,i,n,r){var o={name:e,kind:t,location:{uri:n,range:i}};return r&&(o.containerName=r),o},(K=ez||(ez={})).create=function(e,t,i,n,r,o){var s={name:e,detail:t,kind:i,range:n,selectionRange:r};return void 0!==o&&(s.children=o),s},K.is=function(e){return e&&e1.string(e.name)&&e1.number(e.kind)&&et.is(e.range)&&et.is(e.selectionRange)&&(void 0===e.detail||e1.string(e.detail))&&(void 0===e.deprecated||e1.boolean(e.deprecated))&&(void 0===e.children||Array.isArray(e.children))&&(void 0===e.tags||Array.isArray(e.tags))},(V=eq||(eq={})).Empty="",V.QuickFix="quickfix",V.Refactor="refactor",V.RefactorExtract="refactor.extract",V.RefactorInline="refactor.inline",V.RefactorRewrite="refactor.rewrite",V.Source="source",V.SourceOrganizeImports="source.organizeImports",V.SourceFixAll="source.fixAll",(j=eG||(eG={})).create=function(e,t){var i={diagnostics:e};return null!=t&&(i.only=t),i},j.is=function(e){return e1.defined(e)&&e1.typedArray(e.diagnostics,eg.is)&&(void 0===e.only||e1.typedArray(e.only,e1.string))},($=eQ||(eQ={})).create=function(e,t,i){var n={title:e},r=!0;return"string"==typeof t?(r=!1,n.kind=t):ef.is(t)?n.command=t:n.edit=t,r&&void 0!==i&&(n.kind=i),n},$.is=function(e){return e&&e1.string(e.title)&&(void 0===e.diagnostics||e1.typedArray(e.diagnostics,eg.is))&&(void 0===e.kind||e1.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||ef.is(e.command))&&(void 0===e.isPreferred||e1.boolean(e.isPreferred))&&(void 0===e.edit||ey.is(e.edit))},(U=eY||(eY={})).create=function(e,t){var i={range:e};return e1.defined(t)&&(i.data=t),i},U.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.command)||ef.is(e.command))},(z=eZ||(eZ={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},z.is=function(e){return e1.defined(e)&&e1.uinteger(e.tabSize)&&e1.boolean(e.insertSpaces)},(q=eX||(eX={})).create=function(e,t,i){return{range:e,target:t,data:i}},q.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.target)||e1.string(e.target))},(G=eJ||(eJ={})).create=function(e,t){return{range:e,parent:t}},G.is=function(e){return void 0!==e&&et.is(e.range)&&(void 0===e.parent||G.is(e.parent))},(Q=e0||(e0={})).create=function(e,t,i,n){return new tn(e,t,i,n)},Q.is=function(e){return!!(e1.defined(e)&&e1.string(e.uri)&&(e1.undefined(e.languageId)||e1.string(e.languageId))&&e1.uinteger(e.lineCount)&&e1.func(e.getText)&&e1.func(e.positionAt)&&e1.func(e.offsetAt))},Q.applyEdits=function(e,t){for(var i=e.getText(),n=function e(t,i){if(t.length<=1)return t;var n=t.length/2|0,r=t.slice(0,n),o=t.slice(n);e(r,i),e(o,i);for(var s=0,a=0,l=0;s<r.length&&a<o.length;)0>=i(r[s],o[a])?t[l++]=r[s++]:t[l++]=o[a++];for(;s<r.length;)t[l++]=r[s++];for(;a<o.length;)t[l++]=o[a++];return t}(t,function(e,t){var i=e.range.start.line-t.range.start.line;return 0===i?e.range.start.character-t.range.start.character:i}),r=i.length,o=n.length-1;o>=0;o--){var s=n[o],a=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(l<=r)i=i.substring(0,a)+s.newText+i.substring(l,i.length);else throw Error("Overlapping edit");r=a}return i};var tn=function(){function e(e,t,i,n){this._uri=e,this._languageId=t,this._version=i,this._content=n,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,i=!0,n=0;n<t.length;n++){i&&(e.push(n),i=!1);var r=t.charAt(n);i="\r"===r||"\n"===r,"\r"===r&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}i&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,n=t.length;if(0===n)return ee.create(0,e);for(;i<n;){var r=Math.floor((i+n)/2);t[r]>e?n=r:i=r+1}var o=i-1;return ee.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,n),i)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();Y=e1||(e1={}),Z=Object.prototype.toString,Y.defined=function(e){return void 0!==e},Y.undefined=function(e){return void 0===e},Y.boolean=function(e){return!0===e||!1===e},Y.string=function(e){return"[object String]"===Z.call(e)},Y.number=function(e){return"[object Number]"===Z.call(e)},Y.numberRange=function(e,t,i){return"[object Number]"===Z.call(e)&&t<=e&&e<=i},Y.integer=function(e){return"[object Number]"===Z.call(e)&&-2147483648<=e&&e<=2147483647},Y.uinteger=function(e){return"[object Number]"===Z.call(e)&&0<=e&&e<=2147483647},Y.func=function(e){return"[object Function]"===Z.call(e)},Y.objectLiteral=function(e){return null!==e&&"object"==typeof e},Y.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)};var tr=class{constructor(e,t,i){this._languageId=e,this._worker=t;let n=e=>{let t,i=e.getLanguageId();i===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent(()=>{window.clearTimeout(t),t=window.setTimeout(()=>this._doValidate(e.uri,i),500)}),this._doValidate(e.uri,i))},r=e=>{e9.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),i=this._listener[t];i&&(i.dispose(),delete this._listener[t])};this._disposables.push(e9.editor.onDidCreateModel(n)),this._disposables.push(e9.editor.onWillDisposeModel(r)),this._disposables.push(e9.editor.onDidChangeModelLanguage(e=>{r(e.model),n(e.model)})),this._disposables.push(i(e=>{e9.editor.getModels().forEach(e=>{e.getLanguageId()===this._languageId&&(r(e),n(e))})})),this._disposables.push({dispose:()=>{for(let e in e9.editor.getModels().forEach(r),this._listener)this._listener[e].dispose()}}),e9.editor.getModels().forEach(n)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,t){this._worker(e).then(t=>t.doValidation(e.toString())).then(i=>{let n=i.map(t=>(function(e,t){let i="number"==typeof t.code?String(t.code):t.code;return{severity:function(e){switch(e){case ed.Error:return e9.MarkerSeverity.Error;case ed.Warning:return e9.MarkerSeverity.Warning;case ed.Information:return e9.MarkerSeverity.Info;case ed.Hint:return e9.MarkerSeverity.Hint;default:return e9.MarkerSeverity.Info}}(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:i,source:t.source}})(e,t)),r=e9.editor.getModel(e);r&&r.getLanguageId()===t&&e9.editor.setModelMarkers(r,t,n)}).then(void 0,e=>{console.error(e)})}},to=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.doComplete(r.toString(),ts(t))).then(i=>{if(!i)return;let n=e.getWordUntilPosition(t),r=new e9.Range(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn),o=i.items.map(e=>{let t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:function(e){return e&&"editor.action.triggerSuggest"===e.command?{id:e.command,title:e.title,arguments:e.arguments}:void 0}(e.command),range:r,kind:function(e){let t=e9.languages.CompletionItemKind;switch(e){case eD.Text:return t.Text;case eD.Method:return t.Method;case eD.Function:return t.Function;case eD.Constructor:return t.Constructor;case eD.Field:return t.Field;case eD.Variable:return t.Variable;case eD.Class:return t.Class;case eD.Interface:return t.Interface;case eD.Module:return t.Module;case eD.Property:break;case eD.Unit:return t.Unit;case eD.Value:return t.Value;case eD.Enum:return t.Enum;case eD.Keyword:return t.Keyword;case eD.Snippet:return t.Snippet;case eD.Color:return t.Color;case eD.File:return t.File;case eD.Reference:return t.Reference}return t.Property}(e.kind)};return e.textEdit&&(function(e){return void 0!==e.insert&&void 0!==e.replace}(e.textEdit)?t.range={insert:tl(e.textEdit.insert),replace:tl(e.textEdit.replace)}:t.range=tl(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tc)),e.insertTextFormat===eA.Snippet&&(t.insertTextRules=e9.languages.CompletionItemInsertTextRule.InsertAsSnippet),t});return{isIncomplete:i.isIncomplete,suggestions:o}})}};function ts(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ta(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function tl(e){if(e)return new e9.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function tc(e){if(e)return{range:tl(e.range),text:e.newText}}var td=class{constructor(e){this._worker=e}provideHover(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.doHover(n.toString(),ts(t))).then(e=>{if(e)return{range:tl(e.range),contents:function(e){if(e)return Array.isArray(e)?e.map(tu):[tu(e)]}(e.contents)}})}};function tu(e){var t;if("string"==typeof e)return{value:e};if((t=e)&&"object"==typeof t&&"string"==typeof t.kind)return"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value};return{value:"```"+e.language+"\n"+e.value+"\n```\n"}}var th=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.findDocumentHighlights(n.toString(),ts(t))).then(e=>{if(e)return e.map(e=>({range:tl(e.range),kind:function(e){switch(e){case eK.Read:return e9.languages.DocumentHighlightKind.Read;case eK.Write:return e9.languages.DocumentHighlightKind.Write;case eK.Text:}return e9.languages.DocumentHighlightKind.Text}(e.kind)}))})}},tg=class{constructor(e){this._worker=e}provideDefinition(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.findDefinition(n.toString(),ts(t))).then(e=>{if(e)return[tf(e)]})}};function tf(e){return{uri:e9.Uri.parse(e.uri),range:tl(e.range)}}var tp=class{constructor(e){this._worker=e}provideReferences(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.findReferences(r.toString(),ts(t))).then(e=>{if(e)return e.map(tf)})}},tm=class{constructor(e){this._worker=e}provideRenameEdits(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.doRename(r.toString(),ts(t),i)).then(e=>(function(e){if(!e||!e.changes)return;let t=[];for(let i in e.changes){let n=e9.Uri.parse(i);for(let r of e.changes[i])t.push({resource:n,versionId:void 0,textEdit:{range:tl(r.range),text:r.newText}})}return{edits:t}})(e))}},tv=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentSymbols(i.toString())).then(e=>{if(e)return e.map(e=>({name:e.name,detail:"",containerName:e.containerName,kind:function(e){let t=e9.languages.SymbolKind;switch(e){case ej.File:return t.Array;case ej.Module:return t.Module;case ej.Namespace:return t.Namespace;case ej.Package:return t.Package;case ej.Class:return t.Class;case ej.Method:return t.Method;case ej.Property:return t.Property;case ej.Field:return t.Field;case ej.Constructor:return t.Constructor;case ej.Enum:return t.Enum;case ej.Interface:return t.Interface;case ej.Function:break;case ej.Variable:return t.Variable;case ej.Constant:return t.Constant;case ej.String:return t.String;case ej.Number:return t.Number;case ej.Boolean:return t.Boolean;case ej.Array:return t.Array}return t.Function}(e.kind),range:tl(e.location.range),selectionRange:tl(e.location.range),tags:[]}))})}},tb=class{constructor(e){this._worker=e}provideLinks(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentLinks(i.toString())).then(e=>{if(e)return{links:e.map(e=>({range:tl(e.range),url:e.target}))}})}},tC=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.format(n.toString(),null,t_(t)).then(e=>{if(e&&0!==e.length)return e.map(tc)}))}},tk=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.format(r.toString(),ta(t),t_(i)).then(e=>{if(e&&0!==e.length)return e.map(tc)}))}};function t_(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var tw=class{constructor(e){this._worker=e}provideDocumentColors(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentColors(i.toString())).then(e=>{if(e)return e.map(e=>({color:e.color,range:tl(e.range)}))})}provideColorPresentations(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getColorPresentations(n.toString(),t.color,ta(t.range))).then(e=>{if(e)return e.map(e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=tc(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tc)),t})})}},ty=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getFoldingRanges(n.toString(),t)).then(e=>{if(e)return e.map(e=>{let t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case ea.Comment:return e9.languages.FoldingRangeKind.Comment;case ea.Imports:return e9.languages.FoldingRangeKind.Imports;case ea.Region:return e9.languages.FoldingRangeKind.Region}}(e.kind)),t})})}},tS=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getSelectionRanges(n.toString(),t.map(ts))).then(e=>{if(e)return e.map(e=>{let t=[];for(;e;)t.push({range:tl(e.range)}),e=e.parent;return t})})}};function tx(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function tE(e){return 10===e||13===e||8232===e||8233===e}function tL(e){return e>=48&&e<=57}(e2||(e2={})).DEFAULT={allowTrailingComma:!1};var tI=function(e,t){void 0===t&&(t=!1);var i=e.length,n=0,r="",o=0,s=16,a=0,l=0,c=0,d=0,u=0;function h(){if(r="",u=0,o=n,l=a,d=c,n>=i)return o=i,s=17;var t=e.charCodeAt(n);if(tx(t)){do n++,r+=String.fromCharCode(t),t=e.charCodeAt(n);while(tx(t));return s=15}if(tE(t))return n++,r+=String.fromCharCode(t),13===t&&10===e.charCodeAt(n)&&(n++,r+="\n"),a++,c=n,s=14;switch(t){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,r=function(){for(var t="",r=n;;){if(n>=i){t+=e.substring(r,n),u=2;break}var o=e.charCodeAt(n);if(34===o){t+=e.substring(r,n),n++;break}if(92===o){if(t+=e.substring(r,n),++n>=i){u=2;break}switch(e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+=" ";break;case 117:var s=function(t,i){for(var r=0,o=0;r<4||!i;){var s=e.charCodeAt(n);if(s>=48&&s<=57)o=16*o+s-48;else if(s>=65&&s<=70)o=16*o+s-65+10;else if(s>=97&&s<=102)o=16*o+s-97+10;else break;n++,r++}return r<t&&(o=-1),o}(4,!0);s>=0?t+=String.fromCharCode(s):u=4;break;default:u=5}r=n;continue}if(o>=0&&o<=31){if(tE(o)){t+=e.substring(r,n),u=2;break}u=6}n++}return t}(),s=10;case 47:var h=n-1;if(47===e.charCodeAt(n+1)){for(n+=2;n<i&&!tE(e.charCodeAt(n));){;n++}return r=e.substring(h,n),s=12}if(42===e.charCodeAt(n+1)){n+=2;for(var g=i-1,f=!1;n<g;){var p=e.charCodeAt(n);if(42===p&&47===e.charCodeAt(n+1)){n+=2,f=!0;break}n++,tE(p)&&(13===p&&10===e.charCodeAt(n)&&n++,a++,c=n)}return!f&&(n++,u=1),r=e.substring(h,n),s=13}return r+=String.fromCharCode(t),n++,s=16;case 45:if(r+=String.fromCharCode(t),++n===i||!tL(e.charCodeAt(n)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r+=function(){var t=n;if(48===e.charCodeAt(n))n++;else for(n++;n<e.length&&tL(e.charCodeAt(n));)n++;if(n<e.length&&46===e.charCodeAt(n)){if(!(++n<e.length&&tL(e.charCodeAt(n))))return u=3,e.substring(t,n);for(n++;n<e.length&&tL(e.charCodeAt(n));)n++}var i=n;if(n<e.length&&(69===e.charCodeAt(n)||101===e.charCodeAt(n))){if((++n<e.length&&43===e.charCodeAt(n)||45===e.charCodeAt(n))&&n++,n<e.length&&tL(e.charCodeAt(n))){for(n++;n<e.length&&tL(e.charCodeAt(n));)n++;i=n}else u=3}return e.substring(t,i)}(),s=11;default:for(;n<i&&function(e){if(tx(e)||tE(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}(t);)n++,t=e.charCodeAt(n);if(o!==n){switch(r=e.substring(o,n)){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return r+=String.fromCharCode(t),n++,s=16}}return{setPosition:function(e){n=e,r="",o=0,s=16,u=0},getPosition:function(){return n},scan:t?function(){var e;do e=h();while(e>=12&&e<=15);return e}:h,getToken:function(){return s},getTokenValue:function(){return r},getTokenOffset:function(){return o},getTokenLength:function(){return n-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return u}}},tN="delimiter.bracket.json",tD="delimiter.array.json",tA=class{constructor(e,t){this.parent=e,this.type=t}static pop(e){return e?e.parent:null}static push(e,t){return new tA(e,t)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t&&e!==t;){;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0}},tT=class{_state;scanError;lastWasColon;parents;constructor(e,t,i,n){this._state=e,this.scanError=t,this.lastWasColon=i,this.parents=n}clone(){return new tT(this._state,this.scanError,this.lastWasColon,this.parents)}equals(e){return e===this||!!e&&e instanceof tT&&this.scanError===e.scanError&&this.lastWasColon===e.lastWasColon&&tA.equals(this.parents,e.parents)}getStateData(){return this._state}setStateData(e){this._state=e}},tP=class extends tr{constructor(e,t,i){super(e,t,i.onDidChange),this._disposables.push(e9.editor.onWillDisposeModel(e=>{this._resetSchema(e.uri)})),this._disposables.push(e9.editor.onDidChangeModelLanguage(e=>{this._resetSchema(e.model.uri)}))}_resetSchema(e){this._worker().then(t=>{t.resetSchema(e.toString())})}};function tF(e){let t=[],i=[],n=new te(e);t.push(n);let r=(...e)=>n.getLanguageServiceWorker(...e);function o(){let{languageId:t,modeConfiguration:n}=e;if(tR(i),n.documentFormattingEdits&&i.push(e9.languages.registerDocumentFormattingEditProvider(t,new tC(r))),n.documentRangeFormattingEdits&&i.push(e9.languages.registerDocumentRangeFormattingEditProvider(t,new tk(r))),n.completionItems&&i.push(e9.languages.registerCompletionItemProvider(t,new to(r,[" ",":",'"']))),n.hovers&&i.push(e9.languages.registerHoverProvider(t,new td(r))),n.documentSymbols&&i.push(e9.languages.registerDocumentSymbolProvider(t,new tv(r))),n.tokens){var o;i.push(e9.languages.setTokensProvider(t,(o=!0,{getInitialState:()=>new tT(null,null,!1,null),tokenize:(e,t)=>(function(e,t,i,n=0){let r=0,o=!1;switch(i.scanError){case 2:t='"'+t,r=1;break;case 1:t="/*"+t,r=2}let s=tI(t),a=i.lastWasColon,l=i.parents,c={tokens:[],endState:i.clone()};for(;;){let d=n+s.getPosition(),u="",h=s.scan();if(17===h)break;if(d===n+s.getPosition())throw Error("Scanner did not advance, next 3 characters are: "+t.substr(s.getPosition(),3));switch(o&&(d-=r),o=r>0,h){case 1:l=tA.push(l,0),u=tN,a=!1;break;case 2:l=tA.pop(l),u=tN,a=!1;break;case 3:l=tA.push(l,1),u=tD,a=!1;break;case 4:l=tA.pop(l),u=tD,a=!1;break;case 6:u="delimiter.colon.json",a=!0;break;case 5:u="delimiter.comma.json",a=!1;break;case 8:case 9:case 7:u="keyword.json",a=!1;break;case 10:let g=1===(l?l.type:0);u=a||g?"string.value.json":"string.key.json",a=!1;break;case 11:u="number.json",a=!1}if(e)switch(h){case 12:u="comment.line.json";break;case 13:u="comment.block.json"}c.endState=new tT(i.getStateData(),s.getTokenError(),a,l),c.tokens.push({startIndex:d,scopes:u})}return c})(o,e,t)})))}n.colors&&i.push(e9.languages.registerColorProvider(t,new tw(r))),n.foldingRanges&&i.push(e9.languages.registerFoldingRangeProvider(t,new ty(r))),n.diagnostics&&i.push(new tP(t,r,e)),n.selectionRanges&&i.push(e9.languages.registerSelectionRangeProvider(t,new tS(r)))}o(),t.push(e9.languages.setLanguageConfiguration(e.languageId,tM));let s=e.modeConfiguration;return e.onDidChange(e=>{e.modeConfiguration!==s&&(s=e.modeConfiguration,o())}),t.push(tO(i)),tO(t)}function tO(e){return{dispose:()=>tR(e)}}function tR(e){for(;e.length;)e.pop().dispose()}var tM={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}},5914:function(e,t,i){"use strict";let n,r;i.d(t,{TG:function(){return y}});var o,s,a,l,c,d=i("99334"),u=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,p=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of g(t))!f.call(e,r)&&r!==i&&u(e,r,{get:()=>t[r],enumerable:!(n=h(t,r))||n.enumerable});return e},m={};p(m,n=d,"default"),r&&p(r,n,"default");var v=((o=v||{})[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o);var b=((s=b||{})[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev",s);var C=((a=C||{})[a.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",a[a.LineFeed=1]="LineFeed",a);var k=((l=k||{})[l.ES3=0]="ES3",l[l.ES5=1]="ES5",l[l.ES2015=2]="ES2015",l[l.ES2016=3]="ES2016",l[l.ES2017=4]="ES2017",l[l.ES2018=5]="ES2018",l[l.ES2019=6]="ES2019",l[l.ES2020=7]="ES2020",l[l.ESNext=99]="ESNext",l[l.JSON=100]="JSON",l[l.Latest=99]="Latest",l);var _=((c=_||{})[c.Classic=1]="Classic",c[c.NodeJs=2]="NodeJs",c),w=class{_onDidChange=new m.Emitter;_onDidExtraLibsChange=new m.Emitter;_extraLibs;_removedExtraLibs;_eagerModelSync;_compilerOptions;_diagnosticsOptions;_workerOptions;_onDidExtraLibsChangeTimeout;_inlayHintsOptions;constructor(e,t,i,n){this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i=void 0===t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];if(!!e)e.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content,n=1;this._removedExtraLibs[e]&&(n=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}},y=new w({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),S=new w({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{});function x(){return Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"60199"))}m.languages.typescript={ModuleKind:v,JsxEmit:b,NewLineKind:C,ScriptTarget:k,ModuleResolutionKind:_,typescriptVersion:"4.5.5",typescriptDefaults:y,javascriptDefaults:S,getTypeScriptWorker:()=>x().then(e=>e.getTypeScriptWorker()),getJavaScriptWorker:()=>x().then(e=>e.getJavaScriptWorker())},m.languages.onLanguage("typescript",()=>x().then(e=>e.setupTypeScript(y))),m.languages.onLanguage("javascript",()=>x().then(e=>e.setupJavaScript(S)))},8339:function(e,t,i){"use strict";i.d(t,{NC:function(){return r},aj:function(){return o}});let n="undefined"!=typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function r(e,t,...i){var o,s;let a;return o=t,a=0===(s=i).length?o:o.replace(/\{(\d+)\}/g,(e,t)=>{let i=s[t[0]],n=e;return"string"==typeof i?n=i:("number"==typeof i||"boolean"==typeof i||null==i)&&(n=String(i)),n}),n&&(a="\uFF3B"+a.replace(/[aouei]/g,"$&$&")+"\uFF3D"),a}function o(e){}},38204:function(e,t,i){"use strict";i.d(t,{F:function(){return r},U:function(){return o}});var n=i("49436");let r=(0,i("6301").yh)("accessibilityService"),o=new n.uy("accessibilityModeEnabled",!1)},20398:function(e,t,i){"use strict";i.d(t,{l:function(){return a}});var n=i("53861"),r=i("33786"),o=i("91125"),s=i("18475");class a extends r.VV{constructor(e={}){let t=s.B.as(o.IP.Configuration).getConfigurationProperties(),i=Object.keys(t),r=Object.create(null),a=[];for(let i in t){let o=e[i],s=void 0!==o?o:t[i].default;(0,n.KV)(r,i,s,e=>console.error(`Conflict in default settings: ${e}`))}for(let e of Object.keys(r))o.eU.test(e)&&a.push({identifiers:(0,o.ny)(e),keys:Object.keys(r[e]),contents:(0,n.Od)(r[e],e=>console.error(`Conflict in default settings file: ${e}`))});super(r,i,a)}}},64494:function(e,t,i){"use strict";i.d(t,{L:function(){return g}});var n=i("9737"),r=i("16904"),o=i("19527"),s=i("34752"),a=i("97669"),l=i("14800"),c=i("39703"),d=i("92512"),u=i("58935"),h=function(e,t){return function(i,n){t(i,n,e)}};let g=class extends o.JT{constructor(e,t,i,n,o){super(),this._onDidShowContextMenu=new r.Q5,this._onDidHideContextMenu=new r.Q5,this.contextMenuHandler=new d.J(i,e,t,n,o)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:t=>{var i;null===(i=e.onHide)||void 0===i||i.call(e,t),this._onDidHideContextMenu.fire()}})),n._q.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};g=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([h(0,l.b),h(1,a.lT),h(2,u.u),h(3,s.d),h(4,c.XE)],g)},76807:function(e,t,i){"use strict";var n,r;i.d(t,{v:function(){return n}}),(r=n||(n={}))[r.API=0]="API",r[r.USER=1]="USER"},94124:function(e,t,i){"use strict";i.d(t,{F:function(){return l}});var n=i("67518"),r=i("16904"),o=i("19527"),s=i("8339");let a=/^(cursor|delete)/;class l extends o.JT{constructor(e,t,i,o,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=o,this._logService=s,this._onDidUpdateKeybindings=this._register(new r.Q5),this._currentChord=null,this._currentChordChecker=new n.zh,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=c.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new n._F,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:r.ju.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){let i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");let i=this.resolveKeyboardEvent(e);if(i.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;let[n]=i.getDispatchParts();if(null===n)return this._log("\\ Keyboard event cannot be dispatched"),null;let r=this._contextKeyService.getContext(t),o=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(r,o,n)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(s.NC("first.chord","({0}) was pressed. Waiting for second key of chord...",t));let i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){let i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchParts();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=c.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=c.EMPTY,null===this._currentSingleModifier)?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1);let[r]=i.getParts();return this._ignoreSingleModifiers=new c(r),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let n=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let r=null,o=null;if(i){let[t]=e.getSingleModifierDispatchParts();r=t,o=t}else[r]=e.getDispatchParts(),o=this._currentChord?this._currentChord.keypress:null;if(null===r)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),n;let l=this._contextKeyService.getContext(t),c=e.getLabel(),d=this._getResolver().resolve(l,o,r);return(this._logService.trace("KeybindingService#dispatch",c,null==d?void 0:d.commandId),d&&d.enterChord)?(n=!0,this._enterChordMode(r,c),this._log("+ Entering chord mode..."),n):(this._currentChord&&(!d||!d.commandId)&&(this._log(`+ Leaving chord mode: Nothing bound to "${this._currentChord.label} ${c}".`),this._notificationService.status(s.NC("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,c),{hideAfter:1e4}),n=!0),this._leaveChordMode(),d&&d.commandId&&(!d.bubble&&(n=!0),this._log(`+ Invoking command ${d.commandId}.`),void 0===d.commandArgs?this._commandService.executeCommand(d.commandId).then(void 0,e=>this._notificationService.warn(e)):this._commandService.executeCommand(d.commandId,d.commandArgs).then(void 0,e=>this._notificationService.warn(e)),!a.test(d.commandId)&&this._telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"keybinding"})),n)}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(!!(e.keyCode>=31)&&!!(e.keyCode<=56)||!!(e.keyCode>=21)&&!!(e.keyCode<=30)||!1)}}class c{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}c.EMPTY=new c(null)},34752:function(e,t,i){"use strict";i.d(t,{d:function(){return n}});let n=(0,i("6301").yh)("keybindingService")},85649:function(e,t,i){"use strict";i.d(t,{$:function(){return d}});var n,r,o=i("67518"),s=i("862"),a=i("19527"),l=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};function c(e){return Array.isArray(e.items)}(n=r||(r={}))[n.NO_ACTION=0]="NO_ACTION",n[n.CLOSE_PICKER=1]="CLOSE_PICKER",n[n.REFRESH_PICKER=2]="REFRESH_PICKER",n[n.REMOVE_ITEM=3]="REMOVE_ITEM";class d extends a.JT{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var i;let n;let u=new a.SL;e.canAcceptInBackground=!!(null===(i=this.options)||void 0===i?void 0:i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let h=u.add(new a.XK),g=()=>l(this,void 0,void 0,function*(){let i=h.value=new a.SL;null==n||n.dispose(!0),e.busy=!1;let r=(n=new s.A(t)).token,u=e.value.substr(this.prefix.length).trim(),g=this._getPicks(u,i,r),f=(t,i)=>{var n;let r,o;if(c(t)?(r=t.items,o=t.active):r=t,0===r.length){if(i)return!1;u.length>0&&(null===(n=this.options)||void 0===n?void 0:n.noResultsPick)&&(r=[this.options.noResultsPick])}return e.items=r,o&&(e.activeItems=[o]),!0};if(null===g);else{var p;if((p=g).picks&&p.additionalPicks instanceof Promise){let t=!1,i=!1;yield Promise.all([l(this,void 0,void 0,function*(){yield(0,o.Vs)(d.FAST_PICKS_RACE_DELAY),r.isCancellationRequested||i||(t=f(g.picks,!0))}),l(this,void 0,void 0,function*(){e.busy=!0;try{let i,n,o,s;let a=yield g.additionalPicks;if(r.isCancellationRequested)return;c(g.picks)?(i=g.picks.items,o=g.picks.active):i=g.picks;if(c(a)?(n=a.items,s=a.active):n=a,n.length>0||!t){let t;if(!o&&!s){let n=e.activeItems[0];n&&-1!==i.indexOf(n)&&(t=n)}f({items:[...i,...n],active:o||s||t})}}finally{r.isCancellationRequested||(e.busy=!1),i=!0}})])}else if(g instanceof Promise){e.busy=!0;try{let e=yield g;if(r.isCancellationRequested)return;f(e)}finally{!r.isCancellationRequested&&(e.busy=!1)}}else f(g)}});return u.add(e.onDidChangeValue(()=>g())),g(),u.add(e.onDidAccept(t=>{let[i]=e.selectedItems;"function"==typeof(null==i?void 0:i.accept)&&(!t.inBackground&&e.hide(),i.accept(e.keyMods,t))})),u.add(e.onDidTriggerItemButton(({button:i,item:n})=>l(this,void 0,void 0,function*(){var o,s;if("function"==typeof n.trigger){let a=null!==(s=null===(o=n.buttons)||void 0===o?void 0:o.indexOf(i))&&void 0!==s?s:-1;if(a>=0){let i=n.trigger(a,e.keyMods),o="number"==typeof i?i:yield i;if(t.isCancellationRequested)return;switch(o){case r.NO_ACTION:break;case r.CLOSE_PICKER:e.hide();break;case r.REFRESH_PICKER:g();break;case r.REMOVE_ITEM:{let t=e.items.indexOf(n);if(-1!==t){let i=e.items.slice(),n=i.splice(t,1),r=e.activeItems.filter(e=>e!==n[0]),o=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,r&&(e.activeItems=r),e.keepScrollPosition=o}}}}}}))),u}}d.FAST_PICKS_RACE_DELAY=200},43692:function(e,t,i){"use strict";i.d(t,{Uy:function(){return u},fk:function(){return r},vm:function(){return g}});var n,r,o=i("16904"),s=i("19527"),a=i("44138"),l=i("35761"),c=i("6301");let d="__$__targetStorageMarker",u=(0,c.yh)("storageService");(n=r||(r={}))[n.NONE=0]="NONE",n[n.SHUTDOWN=1]="SHUTDOWN";class h extends s.JT{constructor(e={flushInterval:h.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new o.K3),this.onDidChangeValue=this._onDidChangeValue.event,this._onDidChangeTarget=this._register(new o.K3),this._onWillSaveState=this._register(new o.Q5),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}emitDidChangeValue(e,t){if(t===d){switch(e){case -1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getNumber(e,i)}store(e,t,i,n){if((0,a.Jp)(t)){this.remove(e,i);return}this.withPausedEmitters(()=>{var r;this.updateKeyTarget(e,i,n),null===(r=this.getStorage(i))||void 0===r||r.set(e,t)})}remove(e,t){this.withPausedEmitters(()=>{var i;this.updateKeyTarget(e,t,void 0),null===(i=this.getStorage(t))||void 0===i||i.delete(e)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){var n,r;let o=this.getKeyTargets(t);"number"==typeof i?o[e]!==i&&(o[e]=i,null===(n=this.getStorage(t))||void 0===n||n.set(d,JSON.stringify(o))):"number"==typeof o[e]&&(delete o[e],null===(r=this.getStorage(t))||void 0===r||r.set(d,JSON.stringify(o)))}get workspaceKeyTargets(){return!this._workspaceKeyTargets&&(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return!this._profileKeyTargets&&(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return!this._applicationKeyTargets&&(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case -1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){let t=this.get(d,e);if(t)try{return JSON.parse(t)}catch(e){}return Object.create(null)}}h.DEFAULT_FLUSH_INTERVAL=6e4;class g extends h{constructor(){super(),this.applicationStorage=this._register(new l.Ke(new l.Wm)),this.profileStorage=this._register(new l.Ke(new l.Wm)),this.workspaceStorage=this._register(new l.Ke(new l.Wm)),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.profileStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e))),this._register(this.applicationStorage.onDidChangeStorage(e=>this.emitDidChangeValue(-1,e)))}getStorage(e){switch(e){case -1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},91563:function(e,t,i){"use strict";i.d(t,{J:function(){return a},p:function(){return l}});var n=i("9737"),r=i("16904"),o=i("38842"),s=i("39703");function a(e){let t=new r.Q5,i=(0,o.Ks)();return i.onDidChange(()=>t.fire()),null==e||e.onDidProductIconThemeChange(()=>t.fire()),{onDidChange:t.event,getCSS(){let t=e?e.getProductIconTheme():new l,r={},o=e=>{let i=t.getIcon(e);if(!i)return;let o=i.font;return o?(r[o.id]=o.definition,`.codicon-${e.id}:before { content: '${i.fontCharacter}'; font-family: ${(0,n._h)(o.id)}; }`):`.codicon-${e.id}:before { content: '${i.fontCharacter}'; }`},s=[];for(let e of i.getIcons()){let t=o(e);t&&s.push(t)}for(let e in r){let t=r[e],i=t.weight?`font-weight: ${t.weight};`:"",o=t.style?`font-style: ${t.style};`:"",a=t.src.map(e=>`${(0,n.wY)(e.location)} format('${e.format}')`).join(", ");s.push(`@font-face { src: ${a}; font-family: ${(0,n._h)(e)};${i}${o} font-display: block; }`)}return s.join("\n")}}}class l{getIcon(e){let t=(0,o.Ks)(),i=e.defaults;for(;s.kS.isThemeIcon(i);){let e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}},97085:function(e,t,i){"use strict";i.d(t,{$DX:function(){return tT},$d5:function(){return tg},ABB:function(){return Y},AS1:function(){return tf},AWI:function(){return ey},BOY:function(){return t2},Bqu:function(){return tn},C3g:function(){return O},CA6:function(){return tX},CNo:function(){return eW},Cdg:function(){return tI},CzK:function(){return eY},D0T:function(){return eh},D1_:function(){return ef},DEr:function(){return tN},Dut:function(){return el},E3h:function(){return tP},EPQ:function(){return T},EQn:function(){return ty},ES4:function(){return eL},EiJ:function(){return eF},F3d:function(){return tu},F9q:function(){return e4},Fm_:function(){return tj},Fu1:function(){return eG},GO4:function(){return $},Gj_:function(){return tG},Gwp:function(){return tp},HCL:function(){return ez},Hfx:function(){return eg},Hz8:function(){return tD},IPX:function(){return u},IYc:function(){return tz},Ido:function(){return p},Itd:function(){return tZ},Ivo:function(){return tQ},JpG:function(){return t1},K19:function(){return eS},LLc:function(){return e8},L_H:function(){return J},L_t:function(){return e9},LoV:function(){return eH},M6C:function(){return to},MUv:function(){return eA},NOs:function(){return eu},NPS:function(){return tx},Ng6:function(){return ep},OLZ:function(){return t3},OZR:function(){return B},Oop:function(){return ti},P4M:function(){return eJ},P6G:function(){return g},P6Y:function(){return e5},PRb:function(){return L},PX0:function(){return tm},PpC:function(){return ej},Pvw:function(){return N},QO2:function(){return d},R80:function(){return v},RV_:function(){return P},Rzx:function(){return eI},SPM:function(){return t$},SUG:function(){return F},SUY:function(){return tU},Saq:function(){return tC},Sbf:function(){return eB},Snq:function(){return t9},SwI:function(){return w},T83:function(){return ea},Tnx:function(){return ts},UnT:function(){return t_},VVv:function(){return eV},Vqd:function(){return tL},XEs:function(){return I},XL$:function(){return e6},XZx:function(){return m},Xy4:function(){return tJ},YI3:function(){return A},ZGJ:function(){return tF},ZnX:function(){return t6},_2n:function(){return tt},_Yy:function(){return eK},_bK:function(){return te},_lC:function(){return D},_t9:function(){return M},_wn:function(){return G},b6y:function(){return et},b7$:function(){return j},bKB:function(){return eU},brw:function(){return t0},c63:function(){return es},cbQ:function(){return tE},cvW:function(){return ed},dCr:function(){return tr},dRz:function(){return f},dt_:function(){return E},etL:function(){return Q},fEB:function(){return ec},few:function(){return eo},g8u:function(){return z},g_n:function(){return eN},gkn:function(){return eO},gpD:function(){return ei},hEj:function(){return ex},hX8:function(){return e$},hzo:function(){return e0},j51:function(){return e2},j5u:function(){return V},jUe:function(){return eT},jbW:function(){return tA},kJk:function(){return eC},kVY:function(){return tY},keg:function(){return eZ},kvU:function(){return tc},kwl:function(){return t7},lRK:function(){return b},lUq:function(){return tO},lWp:function(){return ew},lXJ:function(){return ee},loF:function(){return eb},mHy:function(){return e7},mV1:function(){return th},nyM:function(){return eD},oQ$:function(){return e_},oSI:function(){return tb},opG:function(){return ek},ov3:function(){return tq},pW3:function(){return er},paE:function(){return R},phM:function(){return eq},pnM:function(){return eP},ptc:function(){return eR},qeD:function(){return q},rg2:function(){return ta},rh:function(){return y},s$:function(){return td},sEe:function(){return S},sKV:function(){return eQ},sgC:function(){return _},tZ6:function(){return ev},uoC:function(){return en},url:function(){return k},uxu:function(){return tw},vGG:function(){return tv},xL1:function(){return C},xi6:function(){return e1},y65:function(){return tk},yJx:function(){return eM},yb5:function(){return eE},ynu:function(){return Z},ypS:function(){return eX},ytC:function(){return tl},zJb:function(){return x},zKr:function(){return em},zOm:function(){return e3},zRJ:function(){return X}});var n=i("67518"),r=i("35271"),o=i("16904"),s=i("44138"),a=i("8339"),l=i("29711"),c=i("18475");function d(e){return`--vscode-${e.replace(/\./g,"-")}`}let u={ColorContribution:"base.contributions.colors"},h=new class e{constructor(){this._onDidChangeSchema=new o.Q5,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,r){this.colorsById[e]={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:r};let o={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(o.deprecationMessage=r),this.colorSchema.properties[e]=o,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,t){let i=this.colorsById[e];if(i&&i.defaults)return t9(i.defaults[t.type],t)}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort((e,t)=>{let i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!==n?i-n:e.localeCompare(t)}).map(e=>`- \`${e}\`: ${this.colorsById[e].description}`).join("\n")}};c.B.add(u.ColorContribution,h);function g(e,t,i,n,r){var o;return h.registerColor(e,null===(o=t)?o:(void 0===o.hcLight&&(null===o.hcDark||"string"==typeof o.hcDark?o.hcLight=o.hcDark:o.hcLight=o.light),o),i,n,r)}let f=g("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},a.NC("foreground","Overall foreground color. This color is only used if not overridden by a component."));g("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},a.NC("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component."));let p=g("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},a.NC("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."));g("descriptionForeground",{light:"#717171",dark:t6(f,.7),hcDark:t6(f,.7),hcLight:t6(f,.7)},a.NC("descriptionForeground","Foreground color for description text providing additional information, for example for a label."));let m=g("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},a.NC("iconForeground","The default color for icons in the workbench.")),v=g("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#0F4A85"},a.NC("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),b=g("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},a.NC("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),C=g("contrastActiveBorder",{light:null,dark:null,hcDark:v,hcLight:v},a.NC("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));g("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},a.NC("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),g("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:r.Il.black,hcLight:"#292929"},a.NC("textSeparatorForeground","Color for text separators."));let k=g("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.NC("textLinkForeground","Foreground color for links in text.")),_=g("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.NC("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover."));g("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#D7BA7D",hcLight:"#292929"},a.NC("textPreformatForeground","Foreground color for preformatted text segments.")),g("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hcDark:null,hcLight:"#F2F2F2"},a.NC("textBlockQuoteBackground","Background color for block quotes in text.")),g("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:r.Il.white,hcLight:"#292929"},a.NC("textBlockQuoteBorder","Border color for block quotes in text."));let w=g("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:r.Il.black,hcLight:"#F2F2F2"},a.NC("textCodeBlockBackground","Background color for code blocks in text.")),y=g("widget.shadow",{dark:t6(r.Il.black,.36),light:t6(r.Il.black,.16),hcDark:null,hcLight:null},a.NC("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),S=g("input.background",{dark:"#3C3C3C",light:r.Il.white,hcDark:r.Il.black,hcLight:r.Il.white},a.NC("inputBoxBackground","Input box background.")),x=g("input.foreground",{dark:f,light:f,hcDark:f,hcLight:f},a.NC("inputBoxForeground","Input box foreground.")),E=g("input.border",{dark:null,light:null,hcDark:b,hcLight:b},a.NC("inputBoxBorder","Input box border.")),L=g("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hcDark:b,hcLight:b},a.NC("inputBoxActiveOptionBorder","Border color of activated options in input fields."));g("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},a.NC("inputOption.hoverBackground","Background color of activated options in input fields."));let I=g("inputOption.activeBackground",{dark:t6(v,.4),light:t6(v,.2),hcDark:r.Il.transparent,hcLight:r.Il.transparent},a.NC("inputOption.activeBackground","Background hover color of options in input fields.")),N=g("inputOption.activeForeground",{dark:r.Il.white,light:r.Il.black,hcDark:null,hcLight:f},a.NC("inputOption.activeForeground","Foreground color of activated options in input fields."));g("input.placeholderForeground",{light:t6(f,.5),dark:t6(f,.5),hcDark:t6(f,.7),hcLight:t6(f,.7)},a.NC("inputPlaceholderForeground","Input box foreground color for placeholder text."));let D=g("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:r.Il.black,hcLight:r.Il.white},a.NC("inputValidationInfoBackground","Input validation background color for information severity.")),A=g("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:f},a.NC("inputValidationInfoForeground","Input validation foreground color for information severity.")),T=g("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:b,hcLight:b},a.NC("inputValidationInfoBorder","Input validation border color for information severity.")),P=g("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:r.Il.black,hcLight:r.Il.white},a.NC("inputValidationWarningBackground","Input validation background color for warning severity.")),F=g("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:f},a.NC("inputValidationWarningForeground","Input validation foreground color for warning severity.")),O=g("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:b,hcLight:b},a.NC("inputValidationWarningBorder","Input validation border color for warning severity.")),R=g("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:r.Il.black,hcLight:r.Il.white},a.NC("inputValidationErrorBackground","Input validation background color for error severity.")),M=g("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:f},a.NC("inputValidationErrorForeground","Input validation foreground color for error severity.")),B=g("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:b,hcLight:b},a.NC("inputValidationErrorBorder","Input validation border color for error severity.")),W=g("dropdown.background",{dark:"#3C3C3C",light:r.Il.white,hcDark:r.Il.black,hcLight:r.Il.white},a.NC("dropdownBackground","Dropdown background."));g("dropdown.listBackground",{dark:null,light:null,hcDark:r.Il.black,hcLight:r.Il.white},a.NC("dropdownListBackground","Dropdown list background."));let H=g("dropdown.foreground",{dark:"#F0F0F0",light:null,hcDark:r.Il.white,hcLight:f},a.NC("dropdownForeground","Dropdown foreground.")),K=g("dropdown.border",{dark:W,light:"#CECECE",hcDark:b,hcLight:b},a.NC("dropdownBorder","Dropdown border."));g("checkbox.background",{dark:W,light:W,hcDark:W,hcLight:W},a.NC("checkbox.background","Background color of checkbox widget.")),g("checkbox.foreground",{dark:H,light:H,hcDark:H,hcLight:H},a.NC("checkbox.foreground","Foreground color of checkbox widget.")),g("checkbox.border",{dark:K,light:K,hcDark:K,hcLight:K},a.NC("checkbox.border","Border color of checkbox widget."));let V=g("button.foreground",{dark:r.Il.white,light:r.Il.white,hcDark:r.Il.white,hcLight:r.Il.white},a.NC("buttonForeground","Button foreground color."));g("button.separator",{dark:t6(V,.4),light:t6(V,.4),hcDark:t6(V,.4),hcLight:t6(V,.4)},a.NC("buttonSeparator","Button separator color."));let j=g("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},a.NC("buttonBackground","Button background color.")),$=g("button.hoverBackground",{dark:t4(j,.2),light:t5(j,.2),hcDark:null,hcLight:null},a.NC("buttonHoverBackground","Button background color when hovering."));g("button.border",{dark:b,light:b,hcDark:b,hcLight:b},a.NC("buttonBorder","Button border color.")),g("button.secondaryForeground",{dark:r.Il.white,light:r.Il.white,hcDark:r.Il.white,hcLight:f},a.NC("buttonSecondaryForeground","Secondary button foreground color."));let U=g("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:r.Il.white},a.NC("buttonSecondaryBackground","Secondary button background color."));g("button.secondaryHoverBackground",{dark:t4(U,.2),light:t5(U,.2),hcDark:null,hcLight:null},a.NC("buttonSecondaryHoverBackground","Secondary button background color when hovering."));let z=g("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:r.Il.black,hcLight:"#0F4A85"},a.NC("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),q=g("badge.foreground",{dark:r.Il.white,light:"#333",hcDark:r.Il.white,hcLight:r.Il.white},a.NC("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),G=g("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},a.NC("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),Q=g("scrollbarSlider.background",{dark:r.Il.fromHex("#797979").transparent(.4),light:r.Il.fromHex("#646464").transparent(.4),hcDark:t6(b,.6),hcLight:t6(b,.4)},a.NC("scrollbarSliderBackground","Scrollbar slider background color.")),Y=g("scrollbarSlider.hoverBackground",{dark:r.Il.fromHex("#646464").transparent(.7),light:r.Il.fromHex("#646464").transparent(.7),hcDark:t6(b,.8),hcLight:t6(b,.8)},a.NC("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Z=g("scrollbarSlider.activeBackground",{dark:r.Il.fromHex("#BFBFBF").transparent(.4),light:r.Il.fromHex("#000000").transparent(.6),hcDark:b,hcLight:b},a.NC("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),X=g("progressBar.background",{dark:r.Il.fromHex("#0E70C0"),light:r.Il.fromHex("#0E70C0"),hcDark:b,hcLight:b},a.NC("progressBarBackground","Background color of the progress bar that can show for long running operations.")),J=g("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),ee=g("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},a.NC("editorError.foreground","Foreground color of error squigglies in the editor.")),et=g("editorError.border",{dark:null,light:null,hcDark:r.Il.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},a.NC("errorBorder","Border color of error boxes in the editor.")),ei=g("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),en=g("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD37",hcLight:"#895503"},a.NC("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),er=g("editorWarning.border",{dark:null,light:null,hcDark:r.Il.fromHex("#FFCC00").transparent(.8),hcLight:"#"},a.NC("warningBorder","Border color of warning boxes in the editor.")),eo=g("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),es=g("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},a.NC("editorInfo.foreground","Foreground color of info squigglies in the editor.")),ea=g("editorInfo.border",{dark:null,light:null,hcDark:r.Il.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},a.NC("infoBorder","Border color of info boxes in the editor.")),el=g("editorHint.foreground",{dark:r.Il.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},a.NC("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ec=g("editorHint.border",{dark:null,light:null,hcDark:r.Il.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},a.NC("hintBorder","Border color of hint boxes in the editor."));g("sash.hoverBorder",{dark:v,light:v,hcDark:v,hcLight:v},a.NC("sashActiveBorder","Border color of active sashes."));let ed=g("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:r.Il.black,hcLight:r.Il.white},a.NC("editorBackground","Editor background color.")),eu=g("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:r.Il.white,hcLight:f},a.NC("editorForeground","Editor default foreground color."));g("editorStickyScroll.background",{light:ed,dark:ed,hcDark:ed,hcLight:ed},a.NC("editorStickyScrollBackground","Sticky scroll background color for the editor")),g("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:r.Il.fromHex("#0F4A85").transparent(.1)},a.NC("editorStickyScrollHoverBackground","Sticky scroll on hover background color for the editor"));let eh=g("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:r.Il.white},a.NC("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),eg=g("editorWidget.foreground",{dark:f,light:f,hcDark:f,hcLight:f},a.NC("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),ef=g("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:b,hcLight:b},a.NC("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),ep=g("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},a.NC("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),em=g("quickInput.background",{dark:eh,light:eh,hcDark:eh,hcLight:eh},a.NC("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ev=g("quickInput.foreground",{dark:eg,light:eg,hcDark:eg,hcLight:eg},a.NC("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),eb=g("quickInputTitle.background",{dark:new r.Il(new r.VS(255,255,255,.105)),light:new r.Il(new r.VS(0,0,0,.06)),hcDark:"#000000",hcLight:r.Il.white},a.NC("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),eC=g("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:r.Il.white,hcLight:"#0F4A85"},a.NC("pickerGroupForeground","Quick picker color for grouping labels.")),ek=g("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:r.Il.white,hcLight:"#0F4A85"},a.NC("pickerGroupBorder","Quick picker color for grouping borders.")),e_=g("keybindingLabel.background",{dark:new r.Il(new r.VS(128,128,128,.17)),light:new r.Il(new r.VS(221,221,221,.4)),hcDark:r.Il.transparent,hcLight:r.Il.transparent},a.NC("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),ew=g("keybindingLabel.foreground",{dark:r.Il.fromHex("#CCCCCC"),light:r.Il.fromHex("#555555"),hcDark:r.Il.white,hcLight:f},a.NC("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),ey=g("keybindingLabel.border",{dark:new r.Il(new r.VS(51,51,51,.6)),light:new r.Il(new r.VS(204,204,204,.4)),hcDark:new r.Il(new r.VS(111,195,223)),hcLight:b},a.NC("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),eS=g("keybindingLabel.bottomBorder",{dark:new r.Il(new r.VS(68,68,68,.6)),light:new r.Il(new r.VS(187,187,187,.4)),hcDark:new r.Il(new r.VS(111,195,223)),hcLight:f},a.NC("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),ex=g("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},a.NC("editorSelectionBackground","Color of the editor selection.")),eE=g("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:r.Il.white},a.NC("editorSelectionForeground","Color of the selected text for high contrast.")),eL=g("editor.inactiveSelectionBackground",{light:t6(ex,.5),dark:t6(ex,.5),hcDark:t6(ex,.7),hcLight:t6(ex,.5)},a.NC("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),eI=g("editor.selectionHighlightBackground",{light:t8(ex,ed,.3,.6),dark:t8(ex,ed,.3,.6),hcDark:null,hcLight:null},a.NC("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),eN=g("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),eD=g("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},a.NC("editorFindMatch","Color of the current search match.")),eA=g("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},a.NC("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),eT=g("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},a.NC("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),eP=g("editor.findMatchBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("editorFindMatchBorder","Border color of the current search match.")),eF=g("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("findMatchHighlightBorder","Border color of the other search matches.")),eO=g("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:t6(C,.4),hcLight:t6(C,.4)},a.NC("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);g("searchEditor.findMatchBackground",{light:t6(eA,.66),dark:t6(eA,.66),hcDark:eA,hcLight:eA},a.NC("searchEditor.queryMatch","Color of the Search Editor query matches.")),g("searchEditor.findMatchBorder",{light:t6(eF,.66),dark:t6(eF,.66),hcDark:eF,hcLight:eF},a.NC("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."));let eR=g("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},a.NC("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),eM=g("editorHoverWidget.background",{light:eh,dark:eh,hcDark:eh,hcLight:eh},a.NC("hoverBackground","Background color of the editor hover.")),eB=g("editorHoverWidget.foreground",{light:eg,dark:eg,hcDark:eg,hcLight:eg},a.NC("hoverForeground","Foreground color of the editor hover.")),eW=g("editorHoverWidget.border",{light:ef,dark:ef,hcDark:ef,hcLight:ef},a.NC("hoverBorder","Border color of the editor hover.")),eH=g("editorHoverWidget.statusBarBackground",{dark:t4(eM,.2),light:t5(eM,.05),hcDark:eh,hcLight:eh},a.NC("statusBarBackground","Background color of the editor hover status bar.")),eK=g("editorLink.activeForeground",{dark:"#4E94CE",light:r.Il.blue,hcDark:r.Il.cyan,hcLight:"#292929"},a.NC("activeLinkForeground","Color of active links.")),eV=g("editorInlayHint.foreground",{dark:t6(q,.8),light:t6(q,.8),hcDark:q,hcLight:q},a.NC("editorInlayHintForeground","Foreground color of inline hints")),ej=g("editorInlayHint.background",{dark:t6(z,.6),light:t6(z,.3),hcDark:z,hcLight:z},a.NC("editorInlayHintBackground","Background color of inline hints")),e$=g("editorInlayHint.typeForeground",{dark:eV,light:eV,hcDark:eV,hcLight:eV},a.NC("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),eU=g("editorInlayHint.typeBackground",{dark:ej,light:ej,hcDark:ej,hcLight:ej},a.NC("editorInlayHintBackgroundTypes","Background color of inline hints for types")),ez=g("editorInlayHint.parameterForeground",{dark:eV,light:eV,hcDark:eV,hcLight:eV},a.NC("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),eq=g("editorInlayHint.parameterBackground",{dark:ej,light:ej,hcDark:ej,hcLight:ej},a.NC("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),eG=g("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},a.NC("editorLightBulbForeground","The color used for the lightbulb actions icon.")),eQ=g("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},a.NC("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),eY=new r.Il(new r.VS(155,185,85,.2)),eZ=new r.Il(new r.VS(255,0,0,.2)),eX=g("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c66",hcDark:null,hcLight:null},a.NC("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),eJ=g("diffEditor.removedTextBackground",{dark:"#ff000066",light:"#ff00004d",hcDark:null,hcLight:null},a.NC("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),e0=g("diffEditor.insertedLineBackground",{dark:eY,light:eY,hcDark:null,hcLight:null},a.NC("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),e1=g("diffEditor.removedLineBackground",{dark:eZ,light:eZ,hcDark:null,hcLight:null},a.NC("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),e2=g("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),e3=g("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),e5=g("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),e4=g("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),e6=g("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},a.NC("diffEditorInsertedOutline","Outline color for the text that got inserted.")),e7=g("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},a.NC("diffEditorRemovedOutline","Outline color for text that got removed.")),e8=g("diffEditor.border",{dark:null,light:null,hcDark:b,hcLight:b},a.NC("diffEditorBorder","Border color between the two text editors.")),e9=g("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},a.NC("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),te=g("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tt=g("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ti=g("list.focusOutline",{dark:v,light:v,hcDark:C,hcLight:C},a.NC("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tn=g("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),tr=g("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:r.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),to=g("list.activeSelectionForeground",{dark:r.Il.white,light:r.Il.white,hcDark:null,hcLight:null},a.NC("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ts=g("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ta=g("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:r.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),tl=g("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),tc=g("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),td=g("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),tu=g("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),th=g("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:r.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listHoverBackground","List/Tree background when hovering over items using the mouse.")),tg=g("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),tf=g("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},a.NC("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),tp=g("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:v,hcLight:v},a.NC("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),tm=g("list.focusHighlightForeground",{dark:tp,light:function(e,t,i){return{op:5,if:e,then:t,else:i}}(tr,tp,"#BBE7FF"),hcDark:tp,hcLight:tp},a.NC("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));g("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},a.NC("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),g("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},a.NC("listErrorForeground","Foreground color of list items containing errors.")),g("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},a.NC("listWarningForeground","Foreground color of list items containing warnings."));let tv=g("listFilterWidget.background",{light:t5(eh,0),dark:t4(eh,0),hcDark:eh,hcLight:eh},a.NC("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),tb=g("listFilterWidget.outline",{dark:r.Il.transparent,light:r.Il.transparent,hcDark:"#f38518",hcLight:"#007ACC"},a.NC("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),tC=g("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:b,hcLight:b},a.NC("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),tk=g("listFilterWidget.shadow",{dark:y,light:y,hcDark:y,hcLight:y},a.NC("listFilterWidgetShadow","Shadown color of the type filter widget in lists and trees."));g("list.filterMatchBackground",{dark:eA,light:eA,hcDark:null,hcLight:null},a.NC("listFilterMatchHighlight","Background color of the filtered match.")),g("list.filterMatchBorder",{dark:eF,light:eF,hcDark:b,hcLight:C},a.NC("listFilterMatchHighlightBorder","Border color of the filtered match."));let t_=g("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},a.NC("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),tw=g("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},a.NC("tableColumnsBorder","Table border color between columns.")),ty=g("tree.tableOddRowsBackground",{dark:t6(f,.04),light:t6(f,.04),hcDark:null,hcLight:null},a.NC("tableOddRowsBackgroundColor","Background color for odd table rows."));g("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},a.NC("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized. "));let tS=g("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,a.NC("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),tx=g("quickInputList.focusForeground",{dark:to,light:to,hcDark:to,hcLight:to},a.NC("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),tE=g("quickInputList.focusIconForeground",{dark:ts,light:ts,hcDark:ts,hcLight:ts},a.NC("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),tL=g("quickInputList.focusBackground",{dark:t7(tS,tr),light:t7(tS,tr),hcDark:null,hcLight:null},a.NC("quickInput.listFocusBackground","Quick picker background color for the focused item.")),tI=g("menu.border",{dark:null,light:null,hcDark:b,hcLight:b},a.NC("menuBorder","Border color of menus.")),tN=g("menu.foreground",{dark:H,light:f,hcDark:H,hcLight:H},a.NC("menuForeground","Foreground color of menu items.")),tD=g("menu.background",{dark:W,light:W,hcDark:W,hcLight:W},a.NC("menuBackground","Background color of menu items.")),tA=g("menu.selectionForeground",{dark:to,light:to,hcDark:to,hcLight:to},a.NC("menuSelectionForeground","Foreground color of the selected menu item in menus.")),tT=g("menu.selectionBackground",{dark:tr,light:tr,hcDark:tr,hcLight:tr},a.NC("menuSelectionBackground","Background color of the selected menu item in menus.")),tP=g("menu.selectionBorder",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("menuSelectionBorder","Border color of the selected menu item in menus.")),tF=g("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:b,hcLight:b},a.NC("menuSeparatorBackground","Color of a separator menu item in menus.")),tO=g("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},a.NC("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"));g("toolbar.hoverOutline",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),g("toolbar.activeBackground",{dark:t4(tO,.1),light:t5(tO,.1),hcDark:null,hcLight:null},a.NC("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),g("editor.snippetTabstopHighlightBackground",{dark:new r.Il(new r.VS(124,124,124,.3)),light:new r.Il(new r.VS(10,50,100,.2)),hcDark:new r.Il(new r.VS(124,124,124,.3)),hcLight:new r.Il(new r.VS(10,50,100,.2))},a.NC("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),g("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),g("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),g("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new r.Il(new r.VS(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},a.NC("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),g("breadcrumb.foreground",{light:t6(f,.8),dark:t6(f,.8),hcDark:t6(f,.8),hcLight:t6(f,.8)},a.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),g("breadcrumb.background",{light:ed,dark:ed,hcDark:ed,hcLight:ed},a.NC("breadcrumbsBackground","Background color of breadcrumb items.")),g("breadcrumb.focusForeground",{light:t5(f,.2),dark:t4(f,.1),hcDark:t4(f,.1),hcLight:t4(f,.1)},a.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),g("breadcrumb.activeSelectionForeground",{light:t5(f,.2),dark:t4(f,.1),hcDark:t4(f,.1),hcLight:t4(f,.1)},a.NC("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),g("breadcrumbPicker.background",{light:eh,dark:eh,hcDark:eh,hcLight:eh},a.NC("breadcrumbsSelectedBackground","Background color of breadcrumb item picker."));let tR=r.Il.fromHex("#40C8AE").transparent(.5),tM=r.Il.fromHex("#40A6FF").transparent(.5),tB=r.Il.fromHex("#606060").transparent(.4),tW=g("merge.currentHeaderBackground",{dark:tR,light:tR,hcDark:null,hcLight:null},a.NC("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);g("merge.currentContentBackground",{dark:t6(tW,.4),light:t6(tW,.4),hcDark:t6(tW,.4),hcLight:t6(tW,.4)},a.NC("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let tH=g("merge.incomingHeaderBackground",{dark:tM,light:tM,hcDark:null,hcLight:null},a.NC("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);g("merge.incomingContentBackground",{dark:t6(tH,.4),light:t6(tH,.4),hcDark:t6(tH,.4),hcLight:t6(tH,.4)},a.NC("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let tK=g("merge.commonHeaderBackground",{dark:tB,light:tB,hcDark:null,hcLight:null},a.NC("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);g("merge.commonContentBackground",{dark:t6(tK,.4),light:t6(tK,.4),hcDark:t6(tK,.4),hcLight:t6(tK,.4)},a.NC("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let tV=g("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},a.NC("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."));g("editorOverviewRuler.currentContentForeground",{dark:t6(tW,1),light:t6(tW,1),hcDark:tV,hcLight:tV},a.NC("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),g("editorOverviewRuler.incomingContentForeground",{dark:t6(tH,1),light:t6(tH,1),hcDark:tV,hcLight:tV},a.NC("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),g("editorOverviewRuler.commonContentForeground",{dark:t6(tK,1),light:t6(tK,1),hcDark:tV,hcLight:tV},a.NC("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts."));let tj=g("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},a.NC("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),t$=g("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},a.NC("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),tU=g("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},a.NC("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),tz=g("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},a.NC("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),tq=g("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},a.NC("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),tG=g("minimap.errorHighlight",{dark:new r.Il(new r.VS(255,18,18,.7)),light:new r.Il(new r.VS(255,18,18,.7)),hcDark:new r.Il(new r.VS(255,50,50,1)),hcLight:"#B5200D"},a.NC("minimapError","Minimap marker color for errors.")),tQ=g("minimap.warningHighlight",{dark:en,light:en,hcDark:er,hcLight:er},a.NC("overviewRuleWarning","Minimap marker color for warnings.")),tY=g("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("minimapBackground","Minimap background color.")),tZ=g("minimap.foregroundOpacity",{dark:r.Il.fromHex("#000f"),light:r.Il.fromHex("#000f"),hcDark:r.Il.fromHex("#000f"),hcLight:r.Il.fromHex("#000f")},a.NC("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),tX=g("minimapSlider.background",{light:t6(Q,.5),dark:t6(Q,.5),hcDark:t6(Q,.5),hcLight:t6(Q,.5)},a.NC("minimapSliderBackground","Minimap slider background color.")),tJ=g("minimapSlider.hoverBackground",{light:t6(Y,.5),dark:t6(Y,.5),hcDark:t6(Y,.5),hcLight:t6(Y,.5)},a.NC("minimapSliderHoverBackground","Minimap slider background color when hovering.")),t0=g("minimapSlider.activeBackground",{light:t6(Z,.5),dark:t6(Z,.5),hcDark:t6(Z,.5),hcLight:t6(Z,.5)},a.NC("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),t1=g("problemsErrorIcon.foreground",{dark:ee,light:ee,hcDark:ee,hcLight:ee},a.NC("problemsErrorIconForeground","The color used for the problems error icon.")),t2=g("problemsWarningIcon.foreground",{dark:en,light:en,hcDark:en,hcLight:en},a.NC("problemsWarningIconForeground","The color used for the problems warning icon.")),t3=g("problemsInfoIcon.foreground",{dark:es,light:es,hcDark:es,hcLight:es},a.NC("problemsInfoIconForeground","The color used for the problems info icon."));g("charts.foreground",{dark:f,light:f,hcDark:f,hcLight:f},a.NC("chartsForeground","The foreground color used in charts.")),g("charts.lines",{dark:t6(f,.5),light:t6(f,.5),hcDark:t6(f,.5),hcLight:t6(f,.5)},a.NC("chartsLines","The color used for horizontal lines in charts.")),g("charts.red",{dark:ee,light:ee,hcDark:ee,hcLight:ee},a.NC("chartsRed","The red color used in chart visualizations.")),g("charts.blue",{dark:es,light:es,hcDark:es,hcLight:es},a.NC("chartsBlue","The blue color used in chart visualizations.")),g("charts.yellow",{dark:en,light:en,hcDark:en,hcLight:en},a.NC("chartsYellow","The yellow color used in chart visualizations.")),g("charts.orange",{dark:tU,light:tU,hcDark:tU,hcLight:tU},a.NC("chartsOrange","The orange color used in chart visualizations.")),g("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},a.NC("chartsGreen","The green color used in chart visualizations.")),g("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},a.NC("chartsPurple","The purple color used in chart visualizations."));function t5(e,t){return{op:0,value:e,factor:t}}function t4(e,t){return{op:1,value:e,factor:t}}function t6(e,t){return{op:2,value:e,factor:t}}function t7(...e){return{op:3,values:e}}function t8(e,t,i,n){return{op:4,value:e,background:t,factor:i,transparency:n}}function t9(e,t){if(null===e);else if("string"==typeof e)return"#"===e[0]?r.Il.fromHex(e):t.getColor(e);else if(e instanceof r.Il)return e;else if("object"==typeof e)return function(e,t){var i,n,o;switch(e.op){case 0:return null===(i=t9(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(n=t9(e.value,t))||void 0===n?void 0:n.lighten(e.factor);case 2:return null===(o=t9(e.value,t))||void 0===o?void 0:o.transparent(e.factor);case 3:for(let i of e.values){let e=t9(i,t);if(e)return e}return;case 5:return t9(t.defines(e.if)?e.then:e.else,t);case 4:{let i=t9(e.value,t);if(!i)return;let n=t9(e.background,t);if(!n)return i.transparent(e.factor*e.transparency);return i.isDarkerThan(n)?r.Il.getLighterColor(i,n,e.factor).transparent(e.transparency):r.Il.getDarkerColor(i,n,e.factor).transparent(e.transparency)}default:throw(0,s.vE)(e)}}(e,t)}let ie="vscode://schemas/workbench-colors",it=c.B.as(l.I.JSONContribution);it.registerSchema(ie,h.getColorSchema());let ii=new n.pY(()=>it.notifySchemaChanged(ie),200);h.onDidChangeSchema(()=>{!ii.isScheduled()&&ii.schedule()})}}]);
|
|
31
|
+
}`)})},86549:function(e,t,i){"use strict";i.d(t,{b:function(){return h},f:function(){return g}});var n=i("862"),r=i("61111"),o=i("19527"),s=i("44138"),a=i("38505"),l=i("57233"),c=i("21095"),d=i("78540"),u=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};class h{constructor(){this.lenses=[],this._disposables=new o.SL}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){for(let i of(this._disposables.add(e),e.lenses))this.lenses.push({symbol:i,provider:t})}}function g(e,t,i){return u(this,void 0,void 0,function*(){let n=e.ordered(t),o=new Map,s=new h,a=n.map((e,n)=>u(this,void 0,void 0,function*(){o.set(e,n);try{let n=yield Promise.resolve(e.provideCodeLenses(t,i));n&&s.add(n,e)}catch(e){(0,r.Cp)(e)}}));return yield Promise.all(a),s.lenses=s.lenses.sort((e,t)=>{if(e.symbol.range.startLineNumber<t.symbol.range.startLineNumber)return -1;if(e.symbol.range.startLineNumber>t.symbol.range.startLineNumber)return 1;if(o.get(e.provider)<o.get(t.provider))return -1;else if(o.get(e.provider)>o.get(t.provider))return 1;else if(e.symbol.range.startColumn<t.symbol.range.startColumn)return -1;else if(e.symbol.range.startColumn>t.symbol.range.startColumn)return 1;else return 0}),s})}c.P0.registerCommand("_executeCodeLensProvider",function(e,...t){let[i,c]=t;(0,s.p_)(a.o.isUri(i)),(0,s.p_)("number"==typeof c||!c);let{codeLensProvider:u}=e.get(d.p),h=e.get(l.q).getModel(i);if(!h)throw(0,r.b1)();let f=[],p=new o.SL;return g(u,h,n.T.None).then(e=>{p.add(e);let t=[];for(let i of e.lenses)null==c||i.symbol.command?f.push(i.symbol):c-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(h,i.symbol,n.T.None)).then(e=>f.push(e||i.symbol)));return Promise.all(t)}).then(()=>f).finally(()=>{setTimeout(()=>p.dispose(),100)})})},53915:function(e,t,i){"use strict";var n=i("19527"),r=i("59923"),o=i("61045"),s=i("68487"),a=i("84315"),l=i("62003"),c=i("88936");class d extends n.JT{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(e=>this.onMouseDown(e)))}dispose(){super.dispose()}onMouseDown(e){let t=e.target;if(6!==t.type||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==s.A||!t.range)return;let i=this._editor.getContribution(l.E.ID);if(i&&!i.isColorPickerVisible()){let e=new o.e(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(e,1,!1)}}}d.ID="editor.contrib.colorContribution",(0,r._K)(d.ID,d),c.Ae.register(a.n)},61861:function(e,t,i){"use strict";i.d(t,{u:function(){return o}});var n=i("61045"),r=i("61065");class o{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){let i=e.getValueInRange(this.selection);if(!this.copy&&t.addEditOperation(this.selection,null),t.addEditOperation(new n.e(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new r.Y(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new r.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new r.Y(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new r.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new r.Y(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn)}computeCursorState(e,t){return this.targetSelection}}},99742:function(e,t,i){"use strict";i.d(t,{CP:function(){return C},Dt:function(){return b},LM:function(){return k},M9:function(){return _},P$:function(){return v},Xu:function(){return x},a_:function(){return p},kR:function(){return y},mt:function(){return w},nD:function(){return S},qm:function(){return m}});var n=i("3868"),r=i("67518"),o=i("19527"),s=i("38846"),a=i("57938"),l=i("61045"),c=i("61065"),d=i("83968"),u=i("6014"),h=i("96757"),g=i("82298"),f=i("49436");let p=new f.uy("findWidgetVisible",!1);p.toNegated();let m=new f.uy("findInputFocussed",!1),v=new f.uy("replaceInputFocussed",!1),b={primary:545,mac:{primary:2593}},C={primary:565,mac:{primary:2613}},k={primary:560,mac:{primary:2608}},_={primary:554,mac:{primary:2602}},w={primary:558,mac:{primary:2606}},y={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",StartFindWithArgs:"editor.actions.findWithArgs",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},S=19999;class x{constructor(e,t){this._toDispose=new o.SL,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new r._F,this._decorations=new u.t(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new r.pY(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(e=>{(3===e.reason||5===e.reason||6===e.reason)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(e=>{!this._ignoreModelContentChanged&&(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,o.B9)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed)this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t?t:e.getFullModelRange()}research(e,t){let i=null;void 0!==t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map(e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new l.e(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e}));let r=this._findMatches(i,!1,S);this._decorations.set(r,i);let o=this._editor.getSelection(),s=this._decorations.getCurrentMatchesPosition(o);if(0===s&&r.length>0){let e=(0,n.lG)(r.map(e=>e.range),e=>l.e.compareRangesUsingStarts(e,o)>=0);s=e>0?e-1+1:s}this._state.changeMatchInfo(s,this._decorations.getCount(),void 0),e&&this._editor.getOption(37).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:i,column:n}=e,r=this._editor.getModel();return t||1===n?(1===i?i=r.getLineCount():i--,n=r.getLineMaxColumn(i)):n--,new a.L(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){let t=this._decorations.matchAfterPosition(e);t&&this._setCurrentFindMatch(t);return}if(this._decorations.getCount()<S){let t=this._decorations.matchBeforePosition(e);t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),t&&this._setCurrentFindMatch(t);return}if(this._cannotFind())return;let i=this._decorations.getFindScope(),n=x._getSearchRange(this._editor.getModel(),i);n.getEndPosition().isBefore(e)&&(e=n.getEndPosition()),e.isBefore(n.getStartPosition())&&(e=n.getEndPosition());let{lineNumber:r,column:o}=e,s=this._editor.getModel(),l=new a.L(r,o),c=s.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,!1);if(c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),c=s.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,!1)),c){if(!t&&!n.containsRange(c.range))return this._moveToPrevMatch(c.range.getStartPosition(),!0);this._setCurrentFindMatch(c.range)}}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:i,column:n}=e,r=this._editor.getModel();return t||n===r.getLineMaxColumn(i)?(i===r.getLineCount()?i=1:i++,n=1):n++,new a.L(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){let t=this._decorations.matchBeforePosition(e);t&&this._setCurrentFindMatch(t);return}if(this._decorations.getCount()<S){let t=this._decorations.matchAfterPosition(e);t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),t&&this._setCurrentFindMatch(t);return}let t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i,n=!1){if(this._cannotFind())return null;let r=this._decorations.getFindScope(),o=x._getSearchRange(this._editor.getModel(),r);o.getEndPosition().isBefore(e)&&(e=o.getStartPosition()),e.isBefore(o.getStartPosition())&&(e=o.getStartPosition());let{lineNumber:s,column:l}=e,c=this._editor.getModel(),d=new a.L(s,l),u=c.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t);return(i&&u&&u.range.isEmpty()&&u.range.getStartPosition().equals(d)&&(d=this._nextSearchPosition(d),u=c.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t)),u)?n||o.containsRange(u.range)?u:this._getNextMatch(u.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_getReplacePattern(){return this._state.isRegex?(0,g.e$)(this._state.replaceString):g.UG.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;let e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i){if(t.equalsRange(i.range)){let n=e.buildReplaceString(i.matches,this._state.preserveCase),r=new s.T4(t,n);this._executeEditorCommand("replace",r),this._decorations.setStartPosition(new a.L(t.startLineNumber,t.startColumn+n.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}}_findMatches(e,t,i){let n=(e||[null]).map(e=>x._getSearchRange(this._editor.getModel(),e));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t,i)}replaceAll(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=S?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){let e;let t=new d.bc(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null).parseSearchRequest();if(!t)return;let i=t.regex;if(!i.multiline){let e="mu";i.ignoreCase&&(e+="i"),i.global&&(e+="g"),i=new RegExp(i.source,e)}let n=this._editor.getModel(),r=n.getValue(1),o=n.getFullModelRange(),a=this._getReplacePattern(),l=this._state.preserveCase;e=a.hasReplacementPatterns||l?r.replace(i,function(){return a.buildReplaceString(arguments,l)}):r.replace(i,a.buildReplaceString(null,l));let c=new s.hP(o,e,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}_regularReplaceAll(e){let t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let e=0,r=i.length;e<r;e++)n[e]=t.buildReplaceString(i[e].matches,this._state.preserveCase);let r=new h.D(this._editor.getSelection(),i.map(e=>e.range),n);this._executeEditorCommand("replaceAll",r)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),t=this._findMatches(e,!1,1073741824).map(e=>new c.Y(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)),i=this._editor.getSelection();for(let e=0,n=t.length;e<n;e++)if(t[e].equalsRange(i)){t=[i].concat(t.slice(0,e)).concat(t.slice(e+1));break}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}},96757:function(e,t,i){"use strict";i.d(t,{D:function(){return r}});var n=i("61045");class r{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort((e,t)=>n.e.compareRangesUsingStarts(e.range,t.range));let i=[],r=e[0];for(let t=1;t<e.length;t++)r.range.endLineNumber===e[t].range.startLineNumber&&r.range.endColumn===e[t].range.startColumn?(r.range=r.range.plusRange(e[t].range),r.text=r.text+e[t].text):(i.push(r),r=e[t]);for(let e of(i.push(r),i))t.addEditOperation(e.range,e.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}},64944:function(e,t,i){"use strict";i.d(t,{hj:function(){return b}});var n=i("3868"),r=i("16904"),o=i("19527"),s=i("62300"),a=i("66763"),l=i("38505"),c=i("61045"),d=i("72243"),u=i("6301"),h=i("33193"),g=i("53861"),f=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},p=function(e,t){return function(i,n){t(i,n,e)}};class m{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let v=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new r.Q5,this.onDidChange=this._onDidChange.event,this._dispoables=new o.SL,this._markers=[],this._nextIdx=-1,l.o.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);let n=this._configService.getValue("problems.sortOrder"),s=(e,t)=>{let i=(0,a.qu)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===n?c.e.compareRangesUsingStarts(e,t)||h.ZL.compare(e.severity,t.severity):h.ZL.compare(e.severity,t.severity)||c.e.compareRangesUsingStarts(e,t)),i},d=()=>{this._markers=this._markerService.read({resource:l.o.isUri(e)?e:void 0,severities:h.ZL.Error|h.ZL.Warning|h.ZL.Info}),"function"==typeof e&&(this._markers=this._markers.filter(e=>this._resourceFilter(e.resource))),this._markers.sort(s)};d(),this._dispoables.add(t.onMarkerChanged(e=>{(!this._resourceFilter||e.some(e=>this._resourceFilter(e)))&&(d(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!!this._resourceFilter&&!!e&&this._resourceFilter(e)}get selected(){let e=this._markers[this._nextIdx];return e&&new m(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let r=!1,o=this._markers.findIndex(t=>t.resource.toString()===e.uri.toString());o<0&&(o=(0,n.ry)(this._markers,{resource:e.uri},(e,t)=>(0,a.qu)(e.resource.toString(),t.resource.toString())))<0&&(o=~o);for(let i=o;i<this._markers.length;i++){let n=c.e.lift(this._markers[i]);if(n.isEmpty()){let t=e.getWordAtPosition(n.getStartPosition());t&&(n=new c.e(n.startLineNumber,t.startColumn,n.startLineNumber,t.endColumn))}if(t&&(n.containsPosition(t)||t.isBeforeOrEqual(n.getStartPosition()))){this._nextIdx=i,r=!0;break}if(this._markers[i].resource.toString()!==e.uri.toString())break}!r&&(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;let n=this._nextIdx;return -1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:!e&&(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),n!==this._nextIdx||!1}find(e,t){let i=this._markers.findIndex(t=>t.resource.toString()===e.toString());if(!(i<0)){for(;i<this._markers.length;i++)if(c.e.containsPosition(this._markers[i],t))return new m(this._markers[i],i+1,this._markers.length)}}};v=f([p(1,h.lT),p(2,g.Ui)],v);let b=(0,u.yh)("IMarkerNavigationService"),C=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new s.S}getMarkerList(e){for(let t of this._provider){let i=t.getMarkerList(e);if(i)return i}return new v(e,this._markerService,this._configService)}};C=f([p(0,h.lT),p(1,g.Ui)],C),(0,d.z)(b,C,!0)},84783:function(e,t,i){"use strict";var n,r,o=i("19527"),s=i("59923"),a=i("76617"),l=i("74854"),c=i("71942"),d=i("8339"),u=i("49436"),h=i("6301"),g=i("65874");let f=class e extends o.JT{constructor(e,t){super(),this.editor=e,this.widget=this._register(t.createInstance(g.j,this.editor))}static get(t){return t.getContribution(e.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(e){this.widget.trigger(e)}};f.ID="editor.controller.parameterHints",f=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([(n=1,r=h.TG,function(e,t){r(e,t,1)})],f);class p extends s.R6{constructor(){super({id:"editor.action.triggerParameterHints",label:d.NC("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:a.u.hasSignatureHelpProvider,kbOpts:{kbExpr:a.u.editorTextFocus,primary:3082,weight:100}})}run(e,t){let i=f.get(t);i&&i.trigger({triggerKind:l.WW.Invoke})}}(0,s._K)(f.ID,f),(0,s.Qr)(p);let m=s._l.bindToContribution(f.get);(0,s.fK)(new m({id:"closeParameterHints",precondition:c._.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:a.u.focus,primary:9,secondary:[1033]}})),(0,s.fK)(new m({id:"showPrevParameterHint",precondition:u.Ao.and(c._.Visible,c._.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:a.u.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,s.fK)(new m({id:"showNextParameterHint",precondition:u.Ao.and(c._.Visible,c._.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:a.u.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},69556:function(e,t,i){"use strict";i.d(t,{Q:function(){return h}});var n,r,o=i("67518"),s=i("61111"),a=i("16904"),l=i("19527"),c=i("53049"),d=i("74854"),u=i("71942");(n=r||(r={})).Default={type:0},n.Pending=class e{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}},n.Active=class e{constructor(e){this.hints=e,this.type=1}};class h extends l.JT{constructor(e,t,i=h.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new a.Q5),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=r.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new l.XK),this.triggerChars=new c.q,this.retriggerChars=new c.q,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new o.vp(i),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(e=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(e=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(e=>this.onCursorChange(e))),this._register(this.editor.onDidChangeModelContent(e=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(e=>this.onDidType(e))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=r.Default,this.throttledDelayer.cancel(),!e&&this._onChangedHints.fire(void 0)}trigger(e,t){let i=this.editor.getModel();if(!i||!this.providers.has(i))return;let n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(n),t).catch(s.dL)}next(){if(1!==this.state.type)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e==e-1,n=this.editor.getOption(78).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?0:t+1)}previous(){if(1!==this.state.type)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,n=this.editor.getOption(78).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?e-1:t-1)}updateActiveSignature(e){1===this.state.type&&(this.state=new r.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){var t,i,n,a;return t=this,i=void 0,n=void 0,a=function*(){let t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;let n=this._pendingTriggers.reduce(g);this._pendingTriggers=[];let a={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;let l=this.editor.getModel(),c=this.editor.getPosition();this.state=new r.Pending((0,o.PG)(e=>(0,u.L)(this.providers,l,c,a,e)),i);try{let t=yield this.state.request;if(e!==this.triggerId)return null==t||t.dispose(),!1;if(!t||!t.value.signatures||0===t.value.signatures.length)return null==t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1;return this.state=new r.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0}catch(t){return e===this.triggerId&&(this.state=r.Default),(0,s.dL)(t),!1}},new(n||(n=Promise))(function(e,r){function o(e){try{l(a.next(e))}catch(e){r(e)}}function s(e){try{l(a.throw(e))}catch(e){r(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof n?i:new n(function(e){e(i)})).then(o,s)}l((a=a.apply(t,i||[])).next())})}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new c.q,this.retriggerChars=new c.q;let e=this.editor.getModel();if(e)for(let t of this.providers.ordered(e)){for(let e of t.signatureHelpTriggerCharacters||[])this.triggerChars.add(e.charCodeAt(0)),this.retriggerChars.add(e.charCodeAt(0));for(let e of t.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:d.WW.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:d.WW.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:d.WW.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(78).enabled,!this.triggerOnType&&this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function g(e,t){switch(t.triggerKind){case d.WW.Invoke:return t;case d.WW.ContentChange:return e;case d.WW.TriggerCharacter:default:return t}}h.DEFAULT_DELAY=120},71942:function(e,t,i){"use strict";i.d(t,{L:function(){return p},_:function(){return f}});var n=i("862"),r=i("61111"),o=i("44138"),s=i("38505"),a=i("57938"),l=i("74854"),c=i("78540"),d=i("78936"),u=i("21095"),h=i("49436"),g=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let f={Visible:new h.uy("parameterHintsVisible",!1),MultipleSignatures:new h.uy("parameterHintsMultipleSignatures",!1)};function p(e,t,i,n,o){return g(this,void 0,void 0,function*(){for(let s of e.ordered(t))try{let e=yield s.provideSignatureHelp(t,i,o,n);if(e)return e}catch(e){(0,r.Cp)(e)}})}u.P0.registerCommand("_executeSignatureHelpProvider",(e,...t)=>g(void 0,void 0,void 0,function*(){let[i,r,u]=t;(0,o.p_)(s.o.isUri(i)),(0,o.p_)(a.L.isIPosition(r)),(0,o.p_)("string"==typeof u||!u);let h=e.get(c.p),g=yield e.get(d.S).createModelReference(i);try{let e=yield p(h.signatureHelpProvider,g.object.textEditorModel,a.L.lift(r),{triggerKind:l.WW.Invoke,isRetrigger:!1,triggerCharacter:u},n.T.None);if(!e)return;return setTimeout(()=>e.dispose(),0),e.value}finally{g.dispose()}}))},64664:function(e,t,i){"use strict";i.d(t,{f:function(){return o}});var n=i("66763"),r=i("61045");class o{provideSelectionRanges(e,t){let i=[];for(let n of t){let t=[];i.push(t),this._addInWordRanges(t,e,n),this._addWordRanges(t,e,n),this._addWhitespaceLine(t,e,n),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){let o=t.getWordAtPosition(i);if(!o)return;let{word:s,startColumn:a}=o,l=i.column-a,c=l,d=l,u=0;for(;c>=0;c--){let e=s.charCodeAt(c);if(c!==l&&(95===e||45===e))break;if((0,n.mK)(e)&&(0,n.df)(u))break;u=e}for(c+=1;d<s.length;d++){let e=s.charCodeAt(d);if((0,n.df)(e)&&(0,n.mK)(u))break;if(95===e||45===e)break;u=e}c<d&&e.push({range:new r.e(i.lineNumber,a+c,i.lineNumber,a+d)})}_addWordRanges(e,t,i){let n=t.getWordAtPosition(i);n&&e.push({range:new r.e(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new r.e(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}},95357:function(e,t,i){"use strict";let n;i.d(t,{A9:function(){return x},GI:function(){return y},ZJ:function(){return E},_y:function(){return w},i5:function(){return T},kL:function(){return I},tG:function(){return P},wg:function(){return A}});var r=i("862"),o=i("61111"),s=i("75024"),a=i("19527"),l=i("30039"),c=i("44138"),d=i("38505"),u=i("57938"),h=i("61045"),g=i("78936"),f=i("59842"),p=i("8339"),m=i("51553"),v=i("21095"),b=i("49436"),C=i("78540"),k=i("96709"),_=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let w={Visible:k.iX,HasFocusedSuggestion:new b.uy("suggestWidgetHasFocusedSuggestion",!1,(0,p.NC)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new b.uy("suggestWidgetDetailsVisible",!1,(0,p.NC)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new b.uy("suggestWidgetMultipleSuggestions",!1,(0,p.NC)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new b.uy("suggestionMakesTextEdit",!0,(0,p.NC)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new b.uy("acceptSuggestionOnEnter",!0,(0,p.NC)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new b.uy("suggestionHasInsertAndReplaceRange",!1,(0,p.NC)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new b.uy("suggestionInsertMode",void 0,{type:"string",description:(0,p.NC)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new b.uy("suggestionCanResolve",!1,(0,p.NC)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},y=new m.eH("suggestWidgetStatusBar");class S{constructor(e,t,i,n){this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=s.CL.Default,this.distance=0,this.textLabel="string"==typeof t.label?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,h.e.isIRange(t.range)?(this.editStart=new u.L(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new u.L(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new u.L(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||h.e.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new u.L(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new u.L(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new u.L(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||h.e.spansMultipleLines(t.range.insert)||h.e.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!=typeof n.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return _(this,void 0,void 0,function*(){if(!this._resolveCache){let t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(e=>{Object.assign(this.completion,e),this._isResolved=!0,t.dispose()},e=>{(0,o.n2)(e)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class x{constructor(e=2,t=new Set,i=new Set,n=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.showDeprecated=n}}function E(){return n}x.default=new x;class L{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}function I(e,t,i,s=x.default,c={triggerKind:0},d=r.T.None){return _(this,void 0,void 0,function*(){let r=new l.G(!0);i=i.clone();let u=t.getWordAtPosition(i),g=u?new h.e(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):h.e.fromPositions(i),p={replace:g,insert:g.setEndPosition(i.lineNumber,i.column)},m=[],v=new a.SL,b=[],C=!1,k=(e,t,n)=>{var r,o,l;let c=!1;if(!t)return c;for(let n of t.suggestions)if(!s.kindFilter.has(n.kind)){if(!s.showDeprecated&&(null===(r=null==n?void 0:n.tags)||void 0===r?void 0:r.includes(1)))continue;!n.range&&(n.range=p),!n.sortText&&(n.sortText="string"==typeof n.label?n.label:n.label.label),!C&&n.insertTextRules&&4&n.insertTextRules&&(C=f.Yj.guessNeedsClipboard(n.insertText)),m.push(new S(i,n,t,e)),c=!0}return(0,a.Wf)(t)&&v.add(t),b.push({providerName:null!==(o=e._debugDisplayName)&&void 0!==o?o:"unknown_provider",elapsedProvider:null!==(l=t.duration)&&void 0!==l?l:-1,elapsedOverall:n.elapsed()}),c},w=_(this,void 0,void 0,function*(){if(!n||s.kindFilter.has(27)||s.providerFilter.size>0&&!s.providerFilter.has(n))return;let e=new l.G(!0),r=yield n.provideCompletionItems(t,i,c,d);k(n,r,e)});for(let n of e.orderedGroups(t)){let e=!1;if(yield Promise.all(n.map(n=>_(this,void 0,void 0,function*(){if(!(s.providerFilter.size>0)||s.providerFilter.has(n))try{let r=new l.G(!0),o=yield n.provideCompletionItems(t,i,c,d);e=k(n,o,r)||e}catch(e){(0,o.Cp)(e)}}))),e||d.isCancellationRequested)break}return(yield w,d.isCancellationRequested)?(v.dispose(),Promise.reject(new o.FU)):new L(m.sort(A(s.snippetSortOrder)),C,{entries:b,elapsed:r.elapsed()},v)})}function N(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return -1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}let D=new Map;function A(e){return D.get(e)}function T(e,t){var i;null===(i=e.getContribution("editor.contrib.suggestController"))||void 0===i||i.triggerSuggest(new Set().add(t),void 0,!0)}D.set(0,function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return -1;if(27===t.completion.kind)return 1}return N(e,t)}),D.set(2,function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return -1}return N(e,t)}),D.set(1,N),v.P0.registerCommand("_executeCompletionItemProvider",(e,...t)=>_(void 0,void 0,void 0,function*(){let[i,n,o,s]=t;(0,c.p_)(d.o.isUri(i)),(0,c.p_)(u.L.isIPosition(n)),(0,c.p_)("string"==typeof o||!o),(0,c.p_)("number"==typeof s||!s);let{completionProvider:a}=e.get(C.p),l=yield e.get(g.S).createModelReference(i);try{let e={incomplete:!1,suggestions:[]},t=[],i=yield I(a,l.object.textEditorModel,u.L.lift(n),void 0,{triggerCharacter:o,triggerKind:o?1:0});for(let n of i.items)t.length<(null!=s?s:0)&&t.push(n.resolve(r.T.None)),e.incomplete=e.incomplete||n.container.incomplete,e.suggestions.push(n.completion);try{return yield Promise.all(t),e}finally{setTimeout(()=>i.disposable.dispose(),100)}}finally{l.dispose()}}));class P{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},58156:function(e,t,i){"use strict";i.d(t,{n:function(){return H}});var n=i("94555"),r=i("3868"),o=i("67518"),s=i("862"),a=i("61111"),l=i("16904"),c=i("10109"),d=i("19527"),u=i("7875"),h=i("30039"),g=i("44138"),f=i("60550"),p=i("59923"),m=i("88398"),v=i("57938"),b=i("61045"),C=i("76617"),k=i("8626"),_=i("59842"),w=i("61999"),y=i("70630"),S=i("8339"),x=i("21095"),E=i("49436"),L=i("6301"),I=i("53881"),N=i("95357"),D=i("46639"),A=i("14122"),T=i("17893"),P=i("958"),F=i("90560"),O=i("14800"),R=i("37454"),M=i("45731"),B=function(e,t){return function(i,n){t(i,n,e)}};class W{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){let i=e.getOffsetAt(t),n=e.getPositionAt(i+1);this._marker=e.deltaDecorations([],[{range:b.e.fromPositions(t,n),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(!this._marker)return this._model.getLineMaxColumn(e.lineNumber)-e.column;{let t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}}}let H=class e{constructor(e,t,i,n,r,s,a){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=r,this._logService=s,this._telemetryService=a,this._lineSuffix=new d.XK,this._toDispose=new d.SL,this._selectors=new K(e=>e.priority),this._telemetryGate=0,this.editor=e,this.model=r.createInstance(T.U,this.editor);let l=N._y.InsertMode.bindTo(n);l.set(e.getOption(108).insertMode),this.model.onDidTrigger(()=>l.set(e.getOption(108).insertMode)),this.widget=this._toDispose.add(new o.Ue(()=>{let e=this._instantiationService.createInstance(F.XZ,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect(e=>this._insertSuggestion(e,0),this));let t=new A.F(this.editor,e,e=>this._insertSuggestion(e,2));this._toDispose.add(t),this._toDispose.add(this.model.onDidSuggest(e=>{0===e.completionModel.items.length&&t.reset()}));let i=N._y.MakesTextEdit.bindTo(this._contextKeyService),n=N._y.HasInsertAndReplaceRange.bindTo(this._contextKeyService),r=N._y.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,d.OF)(()=>{i.reset(),n.reset(),r.reset()})),this._toDispose.add(e.onDidFocus(({item:e})=>{let t=this.editor.getPosition(),o=e.editStart.column,s=t.column,a=!0;"smart"===this.editor.getOption(1)&&2===this.model.state&&!e.completion.additionalTextEdits&&!(4&e.completion.insertTextRules)&&s-o===e.completion.insertText.length&&(a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:o,endLineNumber:t.lineNumber,endColumn:s})!==e.completion.insertText),i.set(a),n.set(!v.L.equals(e.editInsertEnd,e.editReplaceEnd)),r.set(!!e.provider.resolveCompletionItem||!!e.completion.documentation||e.completion.detail!==e.completion.label)})),this._toDispose.add(e.onDetailsKeyDown(e=>{if(e.toKeybinding().equals(new c.QC(!0,!1,!1,!1,33))||u.dz&&e.toKeybinding().equals(new c.QC(!1,!1,!1,!0,33))){e.stopPropagation();return}!e.toKeybinding().isModifierKey()&&this.editor.focus()})),e})),this._overtypingCapturer=this._toDispose.add(new o.Ue(()=>this._toDispose.add(new P.K(this.editor,this.model)))),this._alternatives=this._toDispose.add(new o.Ue(()=>this._toDispose.add(new D.V(this.editor,this._contextKeyService)))),this._toDispose.add(r.createInstance(y.p,e)),this._toDispose.add(this.model.onDidTrigger(e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new W(this.editor.getModel(),e.position)})),this._toDispose.add(this.model.onDidSuggest(e=>{if(e.shy)return;let t=-1;if(!e.noSelect){for(let i of this._selectors.itemsOrderedByPriorityDesc)if(-1!==(t=i.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items)))break;-1===t&&(t=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items))}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.auto)})),this._toDispose.add(this.model.onDidCancel(e=>{!e.retrigger&&this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));let h=N._y.AcceptSuggestionsOnEnter.bindTo(n),g=()=>{let e=this.editor.getOption(1);h.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>g())),g()}static get(t){return t.getContribution(e.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;let i=k.f.get(this.editor);if(!i)return;let n=this.editor.getModel(),r=n.getAlternativeVersionId(),{item:o}=e,l=[],c=new s.A;!(1&t)&&this.editor.pushUndoStop();let d=this.getOverwriteInfo(o,!!(8&t));if(this._memoryService.memorize(n,this.editor.getPosition(),o),Array.isArray(o.completion.additionalTextEdits)){let e=f.Z.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",o.completion.additionalTextEdits.map(e=>m.h.replaceMove(b.e.lift(e.range),e.text))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!o.isResolved){let e;let i=new h.G(!0),r=n.onDidChangeContent(t=>{if(t.isFlush){c.cancel(),r.dispose();return}for(let i of t.changes){let t=b.e.getEndPosition(i.range);(!e||v.L.isBefore(t,e))&&(e=t)}}),s=t;t|=2;let a=!1,d=this.editor.onWillType(()=>{d.dispose(),a=!0,!(2&s)&&this.editor.pushUndoStop()});l.push(o.resolve(c.token).then(()=>{if(!o.completion.additionalTextEdits||c.token.isCancellationRequested||e&&o.completion.additionalTextEdits.some(t=>v.L.isBefore(e,b.e.getStartPosition(t.range))))return!1;a&&this.editor.pushUndoStop();let t=f.Z.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",o.completion.additionalTextEdits.map(e=>m.h.replaceMove(b.e.lift(e.range),e.text))),t.restoreRelativeVerticalPositionOfCursor(this.editor),(a||!(2&s))&&this.editor.pushUndoStop(),!0}).then(e=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",i.elapsed(),e),r.dispose(),d.dispose()}))}let{insertText:u}=o.completion;!(4&o.completion.insertTextRules)&&(u=_.Yj.escape(u)),i.insert(u,{overwriteBefore:d.overwriteBefore,overwriteAfter:d.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&o.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),!(2&t)&&this.editor.pushUndoStop(),o.completion.command?o.completion.command.id===V.id?this.model.trigger({auto:!0,shy:!1,noSelect:!1},!0):(l.push(this._commandService.executeCommand(o.completion.command.id,...o.completion.command.arguments?[...o.completion.command.arguments]:[]).catch(a.dL)),this.model.cancel()):this.model.cancel(),4&t&&this._alternatives.value.set(e,e=>{for(c.cancel();n.canUndo();){r!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}}),this._alertCompletionItem(o),Promise.all(l).finally(()=>{this._reportSuggestionAcceptedTelemetry(o,n,e),this.model.clear(),c.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,i){var n;if(this._telemetryGate++%100!=0)return;let r=e.extensionId?e.extensionId.value:(null!==(n=i.item.provider._debugDisplayName)&&void 0!==n?n:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:r,kind:e.completion.kind,basenameHash:(0,M.vp)((0,R.EZ)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,R.DZ)(t.uri)})}getOverwriteInfo(e,t){(0,g.p_)(this.editor.hasModel());let i="replace"===this.editor.getOption(108).insertMode;t&&(i=!i);let n=e.position.column-e.editStart.column,r=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,o=this.editor.getPosition().column-e.position.column;return{overwriteBefore:n+o,overwriteAfter:r+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,r.Of)(e.completion.additionalTextEdits)){let t=S.NC("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,n.Z9)(t)}}triggerSuggest(e,t,i,n){this.editor.hasModel()&&(this.model.trigger({auto:null!=t&&t,shy:!1,noSelect:null!=n&&n},!1,e,void 0,i),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;let t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;let t=this.editor.getPosition(),i=e.editStart.column,n=t.column;return n-i!==e.completion.insertText.length||this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:n})!==e.completion.insertText};l.ju.once(this.model.onDidTrigger)(e=>{let t=[];l.ju.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{(0,d.B9)(t),i()},void 0,t),this.model.onDidSuggest(({completionModel:e})=>{if((0,d.B9)(t),0===e.items.length){i();return}let r=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),o=e.items[r];if(!n(o)){i();return}this.editor.pushUndoStop(),this._insertSuggestion({index:r,item:o,model:e},7)},void 0,t)}),this.model.trigger({auto:!1,shy:!0,noSelect:!1}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){let i=this.widget.value.getFocusedItem(),n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};H.ID="editor.contrib.suggestController",H=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([B(1,w.Fh),B(2,x.Hy),B(3,E.i6),B(4,L.TG),B(5,I.VZ),B(6,O.b)],H);class K{constructor(e){this.prioritySelector=e,this._items=[]}register(e){if(-1!==this._items.indexOf(e))throw Error("Value is already registered");return this._items.push(e),this._items.sort((e,t)=>this.prioritySelector(t)-this.prioritySelector(e)),{dispose:()=>{let t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class V extends p.R6{constructor(){super({id:V.id,label:S.NC("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:E.Ao.and(C.u.writable,C.u.hasCompletionItemProvider),kbOpts:{kbExpr:C.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){let n,r;let o=H.get(t);o&&(i&&"object"==typeof i&&(!0===i.auto&&(n=!0),!0===i.noSelection&&(r=!0)),o.triggerSuggest(void 0,n,void 0,r))}}V.id="editor.action.triggerSuggest",(0,p._K)(H.ID,H),(0,p.Qr)(V);let j=p._l.bindToContribution(H.get);(0,p.fK)(new j({id:"acceptSelectedSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:E.Ao.and(N._y.Visible,C.u.textInputFocus),weight:190},{primary:3,kbExpr:E.Ao.and(N._y.Visible,C.u.textInputFocus,N._y.AcceptSuggestionsOnEnter,N._y.MakesTextEdit),weight:190}],menuOpts:[{menuId:N.GI,title:S.NC("accept.insert","Insert"),group:"left",order:1,when:N._y.HasInsertAndReplaceRange.toNegated()},{menuId:N.GI,title:S.NC("accept.insert","Insert"),group:"left",order:1,when:E.Ao.and(N._y.HasInsertAndReplaceRange,N._y.InsertMode.isEqualTo("insert"))},{menuId:N.GI,title:S.NC("accept.replace","Replace"),group:"left",order:1,when:E.Ao.and(N._y.HasInsertAndReplaceRange,N._y.InsertMode.isEqualTo("replace"))}]})),(0,p.fK)(new j({id:"acceptAlternativeSelectedSuggestion",precondition:E.Ao.and(N._y.Visible,C.u.textInputFocus,N._y.HasFocusedSuggestion),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:N.GI,group:"left",order:2,when:E.Ao.and(N._y.HasInsertAndReplaceRange,N._y.InsertMode.isEqualTo("insert")),title:S.NC("accept.replace","Replace")},{menuId:N.GI,group:"left",order:2,when:E.Ao.and(N._y.HasInsertAndReplaceRange,N._y.InsertMode.isEqualTo("replace")),title:S.NC("accept.insert","Insert")}]})),x.P0.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,p.fK)(new j({id:"hideSuggestWidget",precondition:N._y.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:9,secondary:[1033]}})),(0,p.fK)(new j({id:"selectNextSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,p.fK)(new j({id:"selectNextPageSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:12,secondary:[2060]}})),(0,p.fK)(new j({id:"selectLastSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectLastSuggestion()})),(0,p.fK)(new j({id:"selectPrevSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,p.fK)(new j({id:"selectPrevPageSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:11,secondary:[2059]}})),(0,p.fK)(new j({id:"selectFirstSuggestion",precondition:E.Ao.and(N._y.Visible,N._y.MultipleSuggestions),handler:e=>e.selectFirstSuggestion()})),(0,p.fK)(new j({id:"toggleSuggestionDetails",precondition:N._y.Visible,handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:N.GI,group:"right",order:1,when:E.Ao.and(N._y.DetailsVisible,N._y.CanResolve),title:S.NC("detail.more","show less")},{menuId:N.GI,group:"right",order:1,when:E.Ao.and(N._y.DetailsVisible.toNegated(),N._y.CanResolve),title:S.NC("detail.less","show more")}]})),(0,p.fK)(new j({id:"toggleExplainMode",precondition:N._y.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),(0,p.fK)(new j({id:"toggleSuggestionFocus",precondition:N._y.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:2570,mac:{primary:778}}})),(0,p.fK)(new j({id:"insertBestCompletion",precondition:E.Ao.and(C.u.textInputFocus,E.Ao.equals("config.editor.tabCompletion","on"),y.p.AtEnd,N._y.Visible.toNegated(),D.V.OtherSuggestions.toNegated(),k.f.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Kn)(t)?Object.assign({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:190,primary:2}})),(0,p.fK)(new j({id:"insertNextSuggestion",precondition:E.Ao.and(C.u.textInputFocus,E.Ao.equals("config.editor.tabCompletion","on"),D.V.OtherSuggestions,N._y.Visible.toNegated(),k.f.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:2}})),(0,p.fK)(new j({id:"insertPrevSuggestion",precondition:E.Ao.and(C.u.textInputFocus,E.Ao.equals("config.editor.tabCompletion","on"),D.V.OtherSuggestions,N._y.Visible.toNegated(),k.f.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:190,kbExpr:C.u.textInputFocus,primary:1026}})),(0,p.Qr)(class extends p.R6{constructor(){super({id:"editor.action.resetSuggestSize",label:S.NC("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){var i;null===(i=H.get(t))||void 0===i||i.resetWidgetSize()}})},77972:function(e,t,i){"use strict";i.d(t,{K:function(){return s}});var n=i("3868"),r=i("61045"),o=i("67057");class s{static create(e,t){var i,a,l,c;return i=this,a=void 0,l=void 0,c=function*(){if(!t.getOption(108).localityBonus||!t.hasModel())return s.None;let i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return s.None;let[l]=yield new o.x().provideSelectionRanges(i,[a]);if(0===l.length)return s.None;let c=yield e.computeWordRanges(i.uri,l[0].range);if(!c)return s.None;let d=i.getWordUntilPosition(a);return delete c[d.word],new class extends s{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2097152;let o=c["string"==typeof i.label?i.label:i.label.label];if((0,n.XY)(o))return 2097152;let s=(0,n.ry)(o,r.e.fromPositions(e),r.e.compareRangesUsingStarts),d=s>=0?o[s]:o[Math.max(0,~s-1)],u=l.length;for(let e of l){if(!r.e.containsRange(e.range,d))break;u-=1}return u}}},new(l||(l=Promise))(function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function r(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var i;t.done?e(t.value):((i=t.value)instanceof l?i:new l(function(e){e(i)})).then(n,r)}o((c=c.apply(i,a||[])).next())})}}s.None=new class extends s{distance(){return 0}}},61486:function(e,t,i){"use strict";var n=i("18475"),r=i("7194"),o=i("82272"),s=i("26149");n.B.as(r.IP.Quickaccess).registerQuickAccessProvider({ctor:s.p,prefix:"",helpEntries:[{description:o.ld.helpQuickAccessActionLabel}]})},96437:function(e,t,i){"use strict";i.d(t,{B:function(){return u}});var n=i("9737"),r=i("24342"),o=i("78594"),s=i("83368"),a=i("49436"),l=i("72243"),c=i("39703"),d=function(e,t){return function(i,n){t(i,n,e)}};let u=class extends o.i{constructor(e,t){super(t),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this.registerCodeEditorOpenHandler((e,t,i)=>{var n,r,o,s;return n=this,r=void 0,o=void 0,s=function*(){return t?this.doOpenEditor(t,e):null},new(o||(o=Promise))(function(e,t){function i(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(e){e(n)})).then(i,a)}l((s=s.apply(n,r||[])).next())})})}_checkContextKey(){let e=!1;for(let t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){let i=t.resource.scheme;if(i===r.lg.http||i===r.lg.https)return(0,n.V3)(t.resource.toString()),e}return null}let i=t.options?t.options.selection:null;if(i){if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{let t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}}return e}findModel(e,t){let i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};u=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([d(0,a.i6),d(1,c.XE)],u),(0,l.z)(s.$,u)},75010:function(e,t,i){"use strict";i.d(t,{M:function(){return c}});var n=i("98367");function r(e,t){return"boolean"==typeof e?e:t}function o(e,t){return"string"==typeof e?e:t}function s(e,t=!1){t&&(e=e.map(function(e){return e.toLowerCase()}));let i=function(e){let t={};for(let i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function a(e,t){let i;t=t.replace(/@@/g,`\x01`);let r=0;do i=!1,t=t.replace(/@(\w+)/g,function(r,o){i=!0;let s="";if("string"==typeof e[o])s=e[o];else if(e[o]&&e[o]instanceof RegExp)s=e[o].source;else{if(void 0===e[o])throw n.Tr(e,"language definition does not contain attribute '"+o+"', used at: "+t);throw n.Tr(e,"attribute reference '"+o+"' must be a string, used at: "+t)}return n.cS(s)?"":"(?:"+s+")"}),r++;while(i&&r<5);t=t.replace(/\x01/g,"@");let o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,o)}class l{constructor(e){this.regex=RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let i;if("string"==typeof t)i=t;else if(t instanceof RegExp)i=t.source;else throw n.Tr(e,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=a(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=function e(t,i,r){if(!r)return{token:""};if("string"==typeof r)return r;if(r.token||""===r.token){if("string"!=typeof r.token)throw n.Tr(t,"a 'token' attribute must be of type string, in rule: "+i);{let e={token:r.token};if(r.token.indexOf("$")>=0&&(e.tokenSubst=!0),"string"==typeof r.bracket){if("@open"===r.bracket)e.bracket=1;else if("@close"===r.bracket)e.bracket=-1;else throw n.Tr(t,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+i)}if(r.next){if("string"!=typeof r.next)throw n.Tr(t,"the next state must be a string value in rule: "+i);{let o=r.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),0>o.indexOf("$")&&!n.Qy(t,n.kF(t,o,"",[],""))))throw n.Tr(t,"the next state '"+r.next+"' is not defined in rule: "+i);e.next=o}}return"number"==typeof r.goBack&&(e.goBack=r.goBack),"string"==typeof r.switchTo&&(e.switchTo=r.switchTo),"string"==typeof r.log&&(e.log=r.log),"string"==typeof r.nextEmbedded&&(e.nextEmbedded=r.nextEmbedded,t.usesEmbedded=!0),e}}else if(Array.isArray(r)){let n=[];for(let o=0,s=r.length;o<s;o++)n[o]=e(t,i,r[o]);return{group:n}}else if(r.cases){let o=[];for(let l in r.cases)if(r.cases.hasOwnProperty(l)){let c=e(t,i,r.cases[l]);"@default"===l||"@"===l||""===l?o.push({test:void 0,value:c,name:l}):"@eos"===l?o.push({test:function(e,t,i,n){return n},value:c,name:l}):o.push(function(e,t,i,r){let o,l=-1,c=i,d=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);d&&(d[3]&&(l=parseInt(d[3]),d[2]&&(l+=100)),c=d[4]);let u="~",h=c;if(c&&0!==c.length?/^\w*$/.test(h)?u="==":(d=c.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(u=d[1],h=d[2]):(u="!=",h=""),("~"===u||"!~"===u)&&/^(\w|\|)*$/.test(h)){let t=s(h.split("|"),e.ignoreCase);o=function(e){return"~"===u?t(e):!t(e)}}else if("@"===u||"!@"===u){let i=e[h];if(!i)throw n.Tr(e,"the @ match target '"+h+"' is not defined, in rule: "+t);if(!function(e,t){if(!t||!Array.isArray(t))return!1;for(let i of t)if(!e(i))return!1;return!0}(function(e){return"string"==typeof e},i))throw n.Tr(e,"the @ match target '"+h+"' must be an array of strings, in rule: "+t);let r=s(i,e.ignoreCase);o=function(e){return"@"===u?r(e):!r(e)}}else if("~"===u||"!~"===u){if(0>h.indexOf("$")){let t=a(e,"^"+h+"$");o=function(e){return"~"===u?t.test(e):!t.test(e)}}else o=function(t,i,r,o){return a(e,"^"+n.kF(e,h,i,r,o)+"$").test(t)}}else if(0>h.indexOf("$")){let t=n.ve(e,h);o=function(e){return"=="===u?e===t:e!==t}}else{let t=n.ve(e,h);o=function(i,r,o,s,a){let l=n.kF(e,t,r,o,s);return"=="===u?i===l:i!==l}}return -1===l?{name:i,value:r,test:function(e,t,i,n){return o(e,e,t,i,n)}}:{name:i,value:r,test:function(e,t,i,n){let r=function(e,t,i,n){if(n<0)return e;if(n<t.length)return t[n];if(n>=100){n-=100;let e=i.split(".");if(e.unshift(i),n<e.length)return e[n]}return null}(e,t,i,l);return o(r||"",e,t,i,n)}}}(t,i,l,c))}let l=t.defaultToken;return{test:function(e,t,i,n){for(let r of o)if(!r.test||r.test(e,t,i,n))return r.value;return l}}}else throw n.Tr(t,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+i)}(e,this.name,t)}}function c(e,t){if(!t||"object"!=typeof t)throw Error("Monarch: expecting a language definition object");let i={};i.languageId=e,i.includeLF=r(t.includeLF,!1),i.noThrow=!1,i.maxStack=100,i.start="string"==typeof t.start?t.start:null,i.ignoreCase=r(t.ignoreCase,!1),i.unicode=r(t.unicode,!1),i.tokenPostfix=o(t.tokenPostfix,"."+i.languageId),i.defaultToken=o(t.defaultToken,"source"),i.usesEmbedded=!1;t.languageId=e,t.includeLF=i.includeLF,t.ignoreCase=i.ignoreCase,t.unicode=i.unicode,t.noThrow=i.noThrow,t.usesEmbedded=i.usesEmbedded,t.stateNames=t.tokenizer,t.defaultToken=i.defaultToken;if(!t.tokenizer||"object"!=typeof t.tokenizer)throw n.Tr(i,"a language definition must define the 'tokenizer' attribute as an object");for(let e in i.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(e)){!i.start&&(i.start=e);let o=t.tokenizer[e];i.tokenizer[e]=[],!function e(o,s,a){for(let c of a){let a=c.include;if(a){if("string"!=typeof a)throw n.Tr(i,"an 'include' attribute must be a string at: "+o);if("@"===a[0]&&(a=a.substr(1)),!t.tokenizer[a])throw n.Tr(i,"include target '"+a+"' is not defined at: "+o);e(o+"."+a,s,t.tokenizer[a])}else{let e=new l(o);if(Array.isArray(c)&&c.length>=1&&c.length<=3){if(e.setRegex(t,c[0]),c.length>=3){if("string"==typeof c[1])e.setAction(t,{token:c[1],next:c[2]});else if("object"==typeof c[1]){let i=c[1];i.next=c[2],e.setAction(t,i)}else throw n.Tr(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+o)}else e.setAction(t,c[1])}else{if(!c.regex)throw n.Tr(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+o);c.name&&"string"==typeof c.name&&(e.name=c.name),c.matchOnlyAtStart&&(e.matchOnlyAtLineStart=r(c.matchOnlyAtLineStart,!1)),e.setRegex(t,c.regex),e.setAction(t,c.action)}s.push(e)}}}("tokenizer."+e,i.tokenizer[e],o)}if(i.usesEmbedded=t.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw n.Tr(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let s=[];for(let e of t.brackets){let t=e;if(t&&Array.isArray(t)&&3===t.length&&(t={token:t[2],open:t[0],close:t[1]}),t.open===t.close)throw n.Tr(i,"open and close brackets in a 'brackets' attribute must be different: "+t.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"==typeof t.open&&"string"==typeof t.token&&"string"==typeof t.close)s.push({token:t.token+i.tokenPostfix,open:n.ve(i,t.open),close:n.ve(i,t.close)});else throw n.Tr(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return i.brackets=s,i.noThrow=!0,i}},69253:function(e,t,i){"use strict";let n,r;i.r(t),i.d(t,{CompletionAdapter:function(){return tr},DefinitionAdapter:function(){return th},DiagnosticsAdapter:function(){return tn},DocumentColorAdapter:function(){return t_},DocumentFormattingEditProvider:function(){return tb},DocumentHighlightAdapter:function(){return tu},DocumentLinkAdapter:function(){return tv},DocumentRangeFormattingEditProvider:function(){return tC},DocumentSymbolAdapter:function(){return tm},FoldingRangeAdapter:function(){return tw},HoverAdapter:function(){return tc},ReferenceAdapter:function(){return tf},RenameAdapter:function(){return tp},SelectionRangeAdapter:function(){return ty},WorkerManager:function(){return e9},fromPosition:function(){return to},fromRange:function(){return ts},setupMode:function(){return tE},setupMode1:function(){return tx},toRange:function(){return ta},toTextEdit:function(){return tl}});var o,s,a,l,c,d,u,h,g,f,p,m,v,b,C,k,_,w,y,S,x,E,L,I,N,D,A,T,P,F,O,R,M,B,W,H,K,V,j,$,U,z,q,G,Q,Y,Z,X,J,ee,et,ei,en,er,eo,es,ea,el,ec,ed,eu,eh,eg,ef,ep,em,ev,eb,eC,ek,e_,ew,ey,eS,ex,eE,eL,eI,eN,eD,eA,eT,eP,eF,eO,eR,eM,eB,eW,eH,eK,eV,ej,e$,eU,ez,eq,eG,eQ,eY,eZ,eX,eJ,e0,e1,e2=i("99334"),e3=Object.defineProperty,e5=Object.getOwnPropertyDescriptor,e4=Object.getOwnPropertyNames,e6=Object.prototype.hasOwnProperty,e8=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of e4(t))!e6.call(e,r)&&r!==i&&e3(e,r,{get:()=>t[r],enumerable:!(n=e5(t,r))||n.enumerable});return e},e7={};e8(e7,n=e2,"default"),r&&e8(r,n,"default");var e9=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!!this._worker)Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),!this._client&&(this._worker=e7.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};(o=X||(X={})).MIN_VALUE=-2147483648,o.MAX_VALUE=2147483647,(s=J||(J={})).MIN_VALUE=0,s.MAX_VALUE=2147483647,(a=ee||(ee={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=J.MAX_VALUE),t===Number.MAX_VALUE&&(t=J.MAX_VALUE),{line:e,character:t}},a.is=function(e){return e1.objectLiteral(e)&&e1.uinteger(e.line)&&e1.uinteger(e.character)},(l=et||(et={})).create=function(e,t,i,n){if(e1.uinteger(e)&&e1.uinteger(t)&&e1.uinteger(i)&&e1.uinteger(n))return{start:ee.create(e,t),end:ee.create(i,n)};if(ee.is(e)&&ee.is(t))return{start:e,end:t};throw Error("Range#create called with invalid arguments["+e+", "+t+", "+i+", "+n+"]")},l.is=function(e){return e1.objectLiteral(e)&&ee.is(e.start)&&ee.is(e.end)},(c=ei||(ei={})).create=function(e,t){return{uri:e,range:t}},c.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.string(e.uri)||e1.undefined(e.uri))},(d=en||(en={})).create=function(e,t,i,n){return{targetUri:e,targetRange:t,targetSelectionRange:i,originSelectionRange:n}},d.is=function(e){return e1.defined(e)&&et.is(e.targetRange)&&e1.string(e.targetUri)&&(et.is(e.targetSelectionRange)||e1.undefined(e.targetSelectionRange))&&(et.is(e.originSelectionRange)||e1.undefined(e.originSelectionRange))},(u=er||(er={})).create=function(e,t,i,n){return{red:e,green:t,blue:i,alpha:n}},u.is=function(e){return e1.numberRange(e.red,0,1)&&e1.numberRange(e.green,0,1)&&e1.numberRange(e.blue,0,1)&&e1.numberRange(e.alpha,0,1)},(h=eo||(eo={})).create=function(e,t){return{range:e,color:t}},h.is=function(e){return et.is(e.range)&&er.is(e.color)},(g=es||(es={})).create=function(e,t,i){return{label:e,textEdit:t,additionalTextEdits:i}},g.is=function(e){return e1.string(e.label)&&(e1.undefined(e.textEdit)||ep.is(e))&&(e1.undefined(e.additionalTextEdits)||e1.typedArray(e.additionalTextEdits,ep.is))},(f=ea||(ea={})).Comment="comment",f.Imports="imports",f.Region="region",(p=el||(el={})).create=function(e,t,i,n,r){var o={startLine:e,endLine:t};return e1.defined(i)&&(o.startCharacter=i),e1.defined(n)&&(o.endCharacter=n),e1.defined(r)&&(o.kind=r),o},p.is=function(e){return e1.uinteger(e.startLine)&&e1.uinteger(e.startLine)&&(e1.undefined(e.startCharacter)||e1.uinteger(e.startCharacter))&&(e1.undefined(e.endCharacter)||e1.uinteger(e.endCharacter))&&(e1.undefined(e.kind)||e1.string(e.kind))},(m=ec||(ec={})).create=function(e,t){return{location:e,message:t}},m.is=function(e){return e1.defined(e)&&ei.is(e.location)&&e1.string(e.message)},(v=ed||(ed={})).Error=1,v.Warning=2,v.Information=3,v.Hint=4,(b=eu||(eu={})).Unnecessary=1,b.Deprecated=2,(eh||(eh={})).is=function(e){return null!=e&&e1.string(e.href)},(C=eg||(eg={})).create=function(e,t,i,n,r,o){var s={range:e,message:t};return e1.defined(i)&&(s.severity=i),e1.defined(n)&&(s.code=n),e1.defined(r)&&(s.source=r),e1.defined(o)&&(s.relatedInformation=o),s},C.is=function(e){var t;return e1.defined(e)&&et.is(e.range)&&e1.string(e.message)&&(e1.number(e.severity)||e1.undefined(e.severity))&&(e1.integer(e.code)||e1.string(e.code)||e1.undefined(e.code))&&(e1.undefined(e.codeDescription)||e1.string(null===(t=e.codeDescription)||void 0===t?void 0:t.href))&&(e1.string(e.source)||e1.undefined(e.source))&&(e1.undefined(e.relatedInformation)||e1.typedArray(e.relatedInformation,ec.is))},(k=ef||(ef={})).create=function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r={title:e,command:t};return e1.defined(i)&&i.length>0&&(r.arguments=i),r},k.is=function(e){return e1.defined(e)&&e1.string(e.title)&&e1.string(e.command)},(_=ep||(ep={})).replace=function(e,t){return{range:e,newText:t}},_.insert=function(e,t){return{range:{start:e,end:e},newText:t}},_.del=function(e){return{range:e,newText:""}},_.is=function(e){return e1.objectLiteral(e)&&e1.string(e.newText)&&et.is(e.range)},(w=em||(em={})).create=function(e,t,i){var n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==i&&(n.description=i),n},w.is=function(e){return void 0!==e&&e1.objectLiteral(e)&&e1.string(e.label)&&(e1.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(e1.string(e.description)||void 0===e.description)},(ev||(ev={})).is=function(e){return"string"==typeof e},(y=eb||(eb={})).replace=function(e,t,i){return{range:e,newText:t,annotationId:i}},y.insert=function(e,t,i){return{range:{start:e,end:e},newText:t,annotationId:i}},y.del=function(e,t){return{range:e,newText:"",annotationId:t}},y.is=function(e){return ep.is(e)&&(em.is(e.annotationId)||ev.is(e.annotationId))},(S=eC||(eC={})).create=function(e,t){return{textDocument:e,edits:t}},S.is=function(e){return e1.defined(e)&&eE.is(e.textDocument)&&Array.isArray(e.edits)},(x=ek||(ek={})).create=function(e,t,i){var n={kind:"create",uri:e};return void 0!==t&&(void 0!==t.overwrite||void 0!==t.ignoreIfExists)&&(n.options=t),void 0!==i&&(n.annotationId=i),n},x.is=function(e){return e&&"create"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(E=e_||(e_={})).create=function(e,t,i,n){var r={kind:"rename",oldUri:e,newUri:t};return void 0!==i&&(void 0!==i.overwrite||void 0!==i.ignoreIfExists)&&(r.options=i),void 0!==n&&(r.annotationId=n),r},E.is=function(e){return e&&"rename"===e.kind&&e1.string(e.oldUri)&&e1.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(L=ew||(ew={})).create=function(e,t,i){var n={kind:"delete",uri:e};return void 0!==t&&(void 0!==t.recursive||void 0!==t.ignoreIfNotExists)&&(n.options=t),void 0!==i&&(n.annotationId=i),n},L.is=function(e){return e&&"delete"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||e1.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||e1.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(ey||(ey={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every(function(e){return e1.string(e.kind)?ek.is(e)||e_.is(e)||ew.is(e):eC.is(e)}))};var te=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,i){var n,r;if(void 0===i?n=ep.insert(e,t):ev.is(i)?(r=i,n=eb.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(i),n=eb.insert(e,t,r)),this.edits.push(n),void 0!==r)return r},e.prototype.replace=function(e,t,i){var n,r;if(void 0===i?n=ep.replace(e,t):ev.is(i)?(r=i,n=eb.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(i),n=eb.replace(e,t,r)),this.edits.push(n),void 0!==r)return r},e.prototype.delete=function(e,t){var i,n;if(void 0===t?i=ep.del(e):ev.is(t)?(n=t,i=eb.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),i=eb.del(e,n)),this.edits.push(i),void 0!==n)return n},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw Error("Text edit change is not configured to manage change annotations.")},e}(),tt=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var i;if(ev.is(e)?i=e:(i=this.nextId(),t=e),void 0!==this._annotations[i])throw Error("Id "+i+" is already in use.");if(void 0===t)throw Error("No annotation provided for id "+i);return this._annotations[i]=t,this._size++,i},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new tt(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(e){if(eC.is(e)){var i=new te(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(i){var n=new te(e.changes[i]);t._textEditChanges[i]=n})):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(eE.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},i=this._textEditChanges[t.uri];if(!i){var n=[],r={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(r),i=new te(n,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[e];if(!i){var n=[];this._workspaceEdit.changes[e]=n,i=new te(n),this._textEditChanges[e]=i}return i},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new tt,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,i){var n,r,o;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(t)||ev.is(t)?n=t:i=t,void 0===n?r=ek.create(e,i):(o=ev.is(n)?n:this._changeAnnotations.manage(n),r=ek.create(e,i,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o},e.prototype.renameFile=function(e,t,i,n){var r,o,s;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(i)||ev.is(i)?r=i:n=i,void 0===r?o=e_.create(e,t,n):(s=ev.is(r)?r:this._changeAnnotations.manage(r),o=e_.create(e,t,n,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,i){var n,r,o;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(t)||ev.is(t)?n=t:i=t,void 0===n?r=ew.create(e,i):(o=ev.is(n)?n:this._changeAnnotations.manage(n),r=ew.create(e,i,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o}}(),(I=eS||(eS={})).create=function(e){return{uri:e}},I.is=function(e){return e1.defined(e)&&e1.string(e.uri)},(N=ex||(ex={})).create=function(e,t){return{uri:e,version:t}},N.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.integer(e.version)},(D=eE||(eE={})).create=function(e,t){return{uri:e,version:t}},D.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&(null===e.version||e1.integer(e.version))},(A=eL||(eL={})).create=function(e,t,i,n){return{uri:e,languageId:t,version:i,text:n}},A.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.string(e.languageId)&&e1.integer(e.version)&&e1.string(e.text)},(T=eI||(eI={})).PlainText="plaintext",T.Markdown="markdown",(P=eI||(eI={})).is=function(e){return e===P.PlainText||e===P.Markdown},(eN||(eN={})).is=function(e){return e1.objectLiteral(e)&&eI.is(e.kind)&&e1.string(e.value)},(F=eD||(eD={})).Text=1,F.Method=2,F.Function=3,F.Constructor=4,F.Field=5,F.Variable=6,F.Class=7,F.Interface=8,F.Module=9,F.Property=10,F.Unit=11,F.Value=12,F.Enum=13,F.Keyword=14,F.Snippet=15,F.Color=16,F.File=17,F.Reference=18,F.Folder=19,F.EnumMember=20,F.Constant=21,F.Struct=22,F.Event=23,F.Operator=24,F.TypeParameter=25,(O=eA||(eA={})).PlainText=1,O.Snippet=2,(eT||(eT={})).Deprecated=1,(R=eP||(eP={})).create=function(e,t,i){return{newText:e,insert:t,replace:i}},R.is=function(e){return e&&e1.string(e.newText)&&et.is(e.insert)&&et.is(e.replace)},(M=eF||(eF={})).asIs=1,M.adjustIndentation=2,(eO||(eO={})).create=function(e){return{label:e}},(eR||(eR={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(B=eM||(eM={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},B.is=function(e){return e1.string(e)||e1.objectLiteral(e)&&e1.string(e.language)&&e1.string(e.value)},(eB||(eB={})).is=function(e){return!!e&&e1.objectLiteral(e)&&(eN.is(e.contents)||eM.is(e.contents)||e1.typedArray(e.contents,eM.is))&&(void 0===e.range||et.is(e.range))},(eW||(eW={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(eH||(eH={})).create=function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r={label:e};return e1.defined(t)&&(r.documentation=t),e1.defined(i)?r.parameters=i:r.parameters=[],r},(W=eK||(eK={})).Text=1,W.Read=2,W.Write=3,(eV||(eV={})).create=function(e,t){var i={range:e};return e1.number(t)&&(i.kind=t),i},(H=ej||(ej={})).File=1,H.Module=2,H.Namespace=3,H.Package=4,H.Class=5,H.Method=6,H.Property=7,H.Field=8,H.Constructor=9,H.Enum=10,H.Interface=11,H.Function=12,H.Variable=13,H.Constant=14,H.String=15,H.Number=16,H.Boolean=17,H.Array=18,H.Object=19,H.Key=20,H.Null=21,H.EnumMember=22,H.Struct=23,H.Event=24,H.Operator=25,H.TypeParameter=26,(e$||(e$={})).Deprecated=1,(eU||(eU={})).create=function(e,t,i,n,r){var o={name:e,kind:t,location:{uri:n,range:i}};return r&&(o.containerName=r),o},(K=ez||(ez={})).create=function(e,t,i,n,r,o){var s={name:e,detail:t,kind:i,range:n,selectionRange:r};return void 0!==o&&(s.children=o),s},K.is=function(e){return e&&e1.string(e.name)&&e1.number(e.kind)&&et.is(e.range)&&et.is(e.selectionRange)&&(void 0===e.detail||e1.string(e.detail))&&(void 0===e.deprecated||e1.boolean(e.deprecated))&&(void 0===e.children||Array.isArray(e.children))&&(void 0===e.tags||Array.isArray(e.tags))},(V=eq||(eq={})).Empty="",V.QuickFix="quickfix",V.Refactor="refactor",V.RefactorExtract="refactor.extract",V.RefactorInline="refactor.inline",V.RefactorRewrite="refactor.rewrite",V.Source="source",V.SourceOrganizeImports="source.organizeImports",V.SourceFixAll="source.fixAll",(j=eG||(eG={})).create=function(e,t){var i={diagnostics:e};return null!=t&&(i.only=t),i},j.is=function(e){return e1.defined(e)&&e1.typedArray(e.diagnostics,eg.is)&&(void 0===e.only||e1.typedArray(e.only,e1.string))},($=eQ||(eQ={})).create=function(e,t,i){var n={title:e},r=!0;return"string"==typeof t?(r=!1,n.kind=t):ef.is(t)?n.command=t:n.edit=t,r&&void 0!==i&&(n.kind=i),n},$.is=function(e){return e&&e1.string(e.title)&&(void 0===e.diagnostics||e1.typedArray(e.diagnostics,eg.is))&&(void 0===e.kind||e1.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||ef.is(e.command))&&(void 0===e.isPreferred||e1.boolean(e.isPreferred))&&(void 0===e.edit||ey.is(e.edit))},(U=eY||(eY={})).create=function(e,t){var i={range:e};return e1.defined(t)&&(i.data=t),i},U.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.command)||ef.is(e.command))},(z=eZ||(eZ={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},z.is=function(e){return e1.defined(e)&&e1.uinteger(e.tabSize)&&e1.boolean(e.insertSpaces)},(q=eX||(eX={})).create=function(e,t,i){return{range:e,target:t,data:i}},q.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.target)||e1.string(e.target))},(G=eJ||(eJ={})).create=function(e,t){return{range:e,parent:t}},G.is=function(e){return void 0!==e&&et.is(e.range)&&(void 0===e.parent||G.is(e.parent))},(Q=e0||(e0={})).create=function(e,t,i,n){return new ti(e,t,i,n)},Q.is=function(e){return!!(e1.defined(e)&&e1.string(e.uri)&&(e1.undefined(e.languageId)||e1.string(e.languageId))&&e1.uinteger(e.lineCount)&&e1.func(e.getText)&&e1.func(e.positionAt)&&e1.func(e.offsetAt))},Q.applyEdits=function(e,t){for(var i=e.getText(),n=function e(t,i){if(t.length<=1)return t;var n=t.length/2|0,r=t.slice(0,n),o=t.slice(n);e(r,i),e(o,i);for(var s=0,a=0,l=0;s<r.length&&a<o.length;)0>=i(r[s],o[a])?t[l++]=r[s++]:t[l++]=o[a++];for(;s<r.length;)t[l++]=r[s++];for(;a<o.length;)t[l++]=o[a++];return t}(t,function(e,t){var i=e.range.start.line-t.range.start.line;return 0===i?e.range.start.character-t.range.start.character:i}),r=i.length,o=n.length-1;o>=0;o--){var s=n[o],a=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(l<=r)i=i.substring(0,a)+s.newText+i.substring(l,i.length);else throw Error("Overlapping edit");r=a}return i};var ti=function(){function e(e,t,i,n){this._uri=e,this._languageId=t,this._version=i,this._content=n,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,i=!0,n=0;n<t.length;n++){i&&(e.push(n),i=!1);var r=t.charAt(n);i="\r"===r||"\n"===r,"\r"===r&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}i&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,n=t.length;if(0===n)return ee.create(0,e);for(;i<n;){var r=Math.floor((i+n)/2);t[r]>e?n=r:i=r+1}var o=i-1;return ee.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,n),i)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();Y=e1||(e1={}),Z=Object.prototype.toString,Y.defined=function(e){return void 0!==e},Y.undefined=function(e){return void 0===e},Y.boolean=function(e){return!0===e||!1===e},Y.string=function(e){return"[object String]"===Z.call(e)},Y.number=function(e){return"[object Number]"===Z.call(e)},Y.numberRange=function(e,t,i){return"[object Number]"===Z.call(e)&&t<=e&&e<=i},Y.integer=function(e){return"[object Number]"===Z.call(e)&&-2147483648<=e&&e<=2147483647},Y.uinteger=function(e){return"[object Number]"===Z.call(e)&&0<=e&&e<=2147483647},Y.func=function(e){return"[object Function]"===Z.call(e)},Y.objectLiteral=function(e){return null!==e&&"object"==typeof e},Y.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)};var tn=class{constructor(e,t,i){this._languageId=e,this._worker=t;let n=e=>{let t,i=e.getLanguageId();i===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent(()=>{window.clearTimeout(t),t=window.setTimeout(()=>this._doValidate(e.uri,i),500)}),this._doValidate(e.uri,i))},r=e=>{e7.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),i=this._listener[t];i&&(i.dispose(),delete this._listener[t])};this._disposables.push(e7.editor.onDidCreateModel(n)),this._disposables.push(e7.editor.onWillDisposeModel(r)),this._disposables.push(e7.editor.onDidChangeModelLanguage(e=>{r(e.model),n(e.model)})),this._disposables.push(i(e=>{e7.editor.getModels().forEach(e=>{e.getLanguageId()===this._languageId&&(r(e),n(e))})})),this._disposables.push({dispose:()=>{for(let e in e7.editor.getModels().forEach(r),this._listener)this._listener[e].dispose()}}),e7.editor.getModels().forEach(n)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,t){this._worker(e).then(t=>t.doValidation(e.toString())).then(i=>{let n=i.map(t=>(function(e,t){let i="number"==typeof t.code?String(t.code):t.code;return{severity:function(e){switch(e){case ed.Error:return e7.MarkerSeverity.Error;case ed.Warning:return e7.MarkerSeverity.Warning;case ed.Information:return e7.MarkerSeverity.Info;case ed.Hint:return e7.MarkerSeverity.Hint;default:return e7.MarkerSeverity.Info}}(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:i,source:t.source}})(e,t)),r=e7.editor.getModel(e);r&&r.getLanguageId()===t&&e7.editor.setModelMarkers(r,t,n)}).then(void 0,e=>{console.error(e)})}},tr=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.doComplete(r.toString(),to(t))).then(i=>{if(!i)return;let n=e.getWordUntilPosition(t),r=new e7.Range(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn),o=i.items.map(e=>{let t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:function(e){return e&&"editor.action.triggerSuggest"===e.command?{id:e.command,title:e.title,arguments:e.arguments}:void 0}(e.command),range:r,kind:function(e){let t=e7.languages.CompletionItemKind;switch(e){case eD.Text:return t.Text;case eD.Method:return t.Method;case eD.Function:return t.Function;case eD.Constructor:return t.Constructor;case eD.Field:return t.Field;case eD.Variable:return t.Variable;case eD.Class:return t.Class;case eD.Interface:return t.Interface;case eD.Module:return t.Module;case eD.Property:break;case eD.Unit:return t.Unit;case eD.Value:return t.Value;case eD.Enum:return t.Enum;case eD.Keyword:return t.Keyword;case eD.Snippet:return t.Snippet;case eD.Color:return t.Color;case eD.File:return t.File;case eD.Reference:return t.Reference}return t.Property}(e.kind)};return e.textEdit&&(function(e){return void 0!==e.insert&&void 0!==e.replace}(e.textEdit)?t.range={insert:ta(e.textEdit.insert),replace:ta(e.textEdit.replace)}:t.range=ta(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tl)),e.insertTextFormat===eA.Snippet&&(t.insertTextRules=e7.languages.CompletionItemInsertTextRule.InsertAsSnippet),t});return{isIncomplete:i.isIncomplete,suggestions:o}})}};function to(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ts(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ta(e){if(e)return new e7.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function tl(e){if(e)return{range:ta(e.range),text:e.newText}}var tc=class{constructor(e){this._worker=e}provideHover(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.doHover(n.toString(),to(t))).then(e=>{if(e)return{range:ta(e.range),contents:function(e){if(e)return Array.isArray(e)?e.map(td):[td(e)]}(e.contents)}})}};function td(e){var t;if("string"==typeof e)return{value:e};if((t=e)&&"object"==typeof t&&"string"==typeof t.kind)return"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value};return{value:"```"+e.language+"\n"+e.value+"\n```\n"}}var tu=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.findDocumentHighlights(n.toString(),to(t))).then(e=>{if(e)return e.map(e=>({range:ta(e.range),kind:function(e){switch(e){case eK.Read:return e7.languages.DocumentHighlightKind.Read;case eK.Write:return e7.languages.DocumentHighlightKind.Write;case eK.Text:}return e7.languages.DocumentHighlightKind.Text}(e.kind)}))})}},th=class{constructor(e){this._worker=e}provideDefinition(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.findDefinition(n.toString(),to(t))).then(e=>{if(e)return[tg(e)]})}};function tg(e){return{uri:e7.Uri.parse(e.uri),range:ta(e.range)}}var tf=class{constructor(e){this._worker=e}provideReferences(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.findReferences(r.toString(),to(t))).then(e=>{if(e)return e.map(tg)})}},tp=class{constructor(e){this._worker=e}provideRenameEdits(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.doRename(r.toString(),to(t),i)).then(e=>(function(e){if(!e||!e.changes)return;let t=[];for(let i in e.changes){let n=e7.Uri.parse(i);for(let r of e.changes[i])t.push({resource:n,versionId:void 0,textEdit:{range:ta(r.range),text:r.newText}})}return{edits:t}})(e))}},tm=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentSymbols(i.toString())).then(e=>{if(e)return e.map(e=>({name:e.name,detail:"",containerName:e.containerName,kind:function(e){let t=e7.languages.SymbolKind;switch(e){case ej.File:return t.Array;case ej.Module:return t.Module;case ej.Namespace:return t.Namespace;case ej.Package:return t.Package;case ej.Class:return t.Class;case ej.Method:return t.Method;case ej.Property:return t.Property;case ej.Field:return t.Field;case ej.Constructor:return t.Constructor;case ej.Enum:return t.Enum;case ej.Interface:return t.Interface;case ej.Function:break;case ej.Variable:return t.Variable;case ej.Constant:return t.Constant;case ej.String:return t.String;case ej.Number:return t.Number;case ej.Boolean:return t.Boolean;case ej.Array:return t.Array}return t.Function}(e.kind),range:ta(e.location.range),selectionRange:ta(e.location.range),tags:[]}))})}},tv=class{constructor(e){this._worker=e}provideLinks(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentLinks(i.toString())).then(e=>{if(e)return{links:e.map(e=>({range:ta(e.range),url:e.target}))}})}},tb=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.format(n.toString(),null,tk(t)).then(e=>{if(e&&0!==e.length)return e.map(tl)}))}},tC=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.format(r.toString(),ts(t),tk(i)).then(e=>{if(e&&0!==e.length)return e.map(tl)}))}};function tk(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var t_=class{constructor(e){this._worker=e}provideDocumentColors(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentColors(i.toString())).then(e=>{if(e)return e.map(e=>({color:e.color,range:ta(e.range)}))})}provideColorPresentations(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getColorPresentations(n.toString(),t.color,ts(t.range))).then(e=>{if(e)return e.map(e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=tl(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tl)),t})})}},tw=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getFoldingRanges(n.toString(),t)).then(e=>{if(e)return e.map(e=>{let t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case ea.Comment:return e7.languages.FoldingRangeKind.Comment;case ea.Imports:return e7.languages.FoldingRangeKind.Imports;case ea.Region:return e7.languages.FoldingRangeKind.Region}}(e.kind)),t})})}},ty=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getSelectionRanges(n.toString(),t.map(to))).then(e=>{if(e)return e.map(e=>{let t=[];for(;e;)t.push({range:ta(e.range)}),e=e.parent;return t})})}},tS=class extends tr{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function tx(e){let t=new e9(e),i=(...e)=>t.getLanguageServiceWorker(...e),n=e.languageId;e7.languages.registerCompletionItemProvider(n,new tS(i)),e7.languages.registerHoverProvider(n,new tc(i)),e7.languages.registerDocumentHighlightProvider(n,new tu(i)),e7.languages.registerLinkProvider(n,new tv(i)),e7.languages.registerFoldingRangeProvider(n,new tw(i)),e7.languages.registerDocumentSymbolProvider(n,new tm(i)),e7.languages.registerSelectionRangeProvider(n,new ty(i)),e7.languages.registerRenameProvider(n,new tp(i)),"html"===n&&(e7.languages.registerDocumentFormattingEditProvider(n,new tb(i)),e7.languages.registerDocumentRangeFormattingEditProvider(n,new tC(i)))}function tE(e){let t=[],i=[],n=new e9(e);t.push(n);let r=(...e)=>n.getLanguageServiceWorker(...e);return!function(){let{languageId:t,modeConfiguration:n}=e;tI(i),n.completionItems&&i.push(e7.languages.registerCompletionItemProvider(t,new tS(r))),n.hovers&&i.push(e7.languages.registerHoverProvider(t,new tc(r))),n.documentHighlights&&i.push(e7.languages.registerDocumentHighlightProvider(t,new tu(r))),n.links&&i.push(e7.languages.registerLinkProvider(t,new tv(r))),n.documentSymbols&&i.push(e7.languages.registerDocumentSymbolProvider(t,new tm(r))),n.rename&&i.push(e7.languages.registerRenameProvider(t,new tp(r))),n.foldingRanges&&i.push(e7.languages.registerFoldingRangeProvider(t,new tw(r))),n.selectionRanges&&i.push(e7.languages.registerSelectionRangeProvider(t,new ty(r))),n.documentFormattingEdits&&i.push(e7.languages.registerDocumentFormattingEditProvider(t,new tb(r))),n.documentRangeFormattingEdits&&i.push(e7.languages.registerDocumentRangeFormattingEditProvider(t,new tC(r)))}(),t.push(tL(i)),tL(t)}function tL(e){return{dispose:()=>tI(e)}}function tI(e){for(;e.length;)e.pop().dispose()}},42410:function(e,t,i){"use strict";let n,r;i.r(t),i.d(t,{CompletionAdapter:function(){return to},DefinitionAdapter:function(){return tg},DiagnosticsAdapter:function(){return tr},DocumentColorAdapter:function(){return tw},DocumentFormattingEditProvider:function(){return tC},DocumentHighlightAdapter:function(){return th},DocumentLinkAdapter:function(){return tb},DocumentRangeFormattingEditProvider:function(){return tk},DocumentSymbolAdapter:function(){return tv},FoldingRangeAdapter:function(){return ty},HoverAdapter:function(){return td},ReferenceAdapter:function(){return tp},RenameAdapter:function(){return tm},SelectionRangeAdapter:function(){return tS},WorkerManager:function(){return te},fromPosition:function(){return ts},fromRange:function(){return ta},setupMode:function(){return tF},toRange:function(){return tl},toTextEdit:function(){return tc}});var o,s,a,l,c,d,u,h,g,f,p,m,v,b,C,k,_,w,y,S,x,E,L,I,N,D,A,T,P,F,O,R,M,B,W,H,K,V,j,$,U,z,q,G,Q,Y,Z,X,J,ee,et,ei,en,er,eo,es,ea,el,ec,ed,eu,eh,eg,ef,ep,em,ev,eb,eC,ek,e_,ew,ey,eS,ex,eE,eL,eI,eN,eD,eA,eT,eP,eF,eO,eR,eM,eB,eW,eH,eK,eV,ej,e$,eU,ez,eq,eG,eQ,eY,eZ,eX,eJ,e0,e1,e2,e3=i("99334"),e5=Object.defineProperty,e4=Object.getOwnPropertyDescriptor,e6=Object.getOwnPropertyNames,e8=Object.prototype.hasOwnProperty,e7=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of e6(t))!e8.call(e,r)&&r!==i&&e5(e,r,{get:()=>t[r],enumerable:!(n=e4(t,r))||n.enumerable});return e},e9={};e7(e9,n=e3,"default"),r&&e7(r,n,"default");var te=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!!this._worker)Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),!this._client&&(this._worker=e9.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};(o=X||(X={})).MIN_VALUE=-2147483648,o.MAX_VALUE=2147483647,(s=J||(J={})).MIN_VALUE=0,s.MAX_VALUE=2147483647,(a=ee||(ee={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=J.MAX_VALUE),t===Number.MAX_VALUE&&(t=J.MAX_VALUE),{line:e,character:t}},a.is=function(e){return e1.objectLiteral(e)&&e1.uinteger(e.line)&&e1.uinteger(e.character)},(l=et||(et={})).create=function(e,t,i,n){if(e1.uinteger(e)&&e1.uinteger(t)&&e1.uinteger(i)&&e1.uinteger(n))return{start:ee.create(e,t),end:ee.create(i,n)};if(ee.is(e)&&ee.is(t))return{start:e,end:t};throw Error("Range#create called with invalid arguments["+e+", "+t+", "+i+", "+n+"]")},l.is=function(e){return e1.objectLiteral(e)&&ee.is(e.start)&&ee.is(e.end)},(c=ei||(ei={})).create=function(e,t){return{uri:e,range:t}},c.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.string(e.uri)||e1.undefined(e.uri))},(d=en||(en={})).create=function(e,t,i,n){return{targetUri:e,targetRange:t,targetSelectionRange:i,originSelectionRange:n}},d.is=function(e){return e1.defined(e)&&et.is(e.targetRange)&&e1.string(e.targetUri)&&(et.is(e.targetSelectionRange)||e1.undefined(e.targetSelectionRange))&&(et.is(e.originSelectionRange)||e1.undefined(e.originSelectionRange))},(u=er||(er={})).create=function(e,t,i,n){return{red:e,green:t,blue:i,alpha:n}},u.is=function(e){return e1.numberRange(e.red,0,1)&&e1.numberRange(e.green,0,1)&&e1.numberRange(e.blue,0,1)&&e1.numberRange(e.alpha,0,1)},(h=eo||(eo={})).create=function(e,t){return{range:e,color:t}},h.is=function(e){return et.is(e.range)&&er.is(e.color)},(g=es||(es={})).create=function(e,t,i){return{label:e,textEdit:t,additionalTextEdits:i}},g.is=function(e){return e1.string(e.label)&&(e1.undefined(e.textEdit)||ep.is(e))&&(e1.undefined(e.additionalTextEdits)||e1.typedArray(e.additionalTextEdits,ep.is))},(f=ea||(ea={})).Comment="comment",f.Imports="imports",f.Region="region",(p=el||(el={})).create=function(e,t,i,n,r){var o={startLine:e,endLine:t};return e1.defined(i)&&(o.startCharacter=i),e1.defined(n)&&(o.endCharacter=n),e1.defined(r)&&(o.kind=r),o},p.is=function(e){return e1.uinteger(e.startLine)&&e1.uinteger(e.startLine)&&(e1.undefined(e.startCharacter)||e1.uinteger(e.startCharacter))&&(e1.undefined(e.endCharacter)||e1.uinteger(e.endCharacter))&&(e1.undefined(e.kind)||e1.string(e.kind))},(m=ec||(ec={})).create=function(e,t){return{location:e,message:t}},m.is=function(e){return e1.defined(e)&&ei.is(e.location)&&e1.string(e.message)},(v=ed||(ed={})).Error=1,v.Warning=2,v.Information=3,v.Hint=4,(b=eu||(eu={})).Unnecessary=1,b.Deprecated=2,(eh||(eh={})).is=function(e){return null!=e&&e1.string(e.href)},(C=eg||(eg={})).create=function(e,t,i,n,r,o){var s={range:e,message:t};return e1.defined(i)&&(s.severity=i),e1.defined(n)&&(s.code=n),e1.defined(r)&&(s.source=r),e1.defined(o)&&(s.relatedInformation=o),s},C.is=function(e){var t;return e1.defined(e)&&et.is(e.range)&&e1.string(e.message)&&(e1.number(e.severity)||e1.undefined(e.severity))&&(e1.integer(e.code)||e1.string(e.code)||e1.undefined(e.code))&&(e1.undefined(e.codeDescription)||e1.string(null===(t=e.codeDescription)||void 0===t?void 0:t.href))&&(e1.string(e.source)||e1.undefined(e.source))&&(e1.undefined(e.relatedInformation)||e1.typedArray(e.relatedInformation,ec.is))},(k=ef||(ef={})).create=function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r={title:e,command:t};return e1.defined(i)&&i.length>0&&(r.arguments=i),r},k.is=function(e){return e1.defined(e)&&e1.string(e.title)&&e1.string(e.command)},(_=ep||(ep={})).replace=function(e,t){return{range:e,newText:t}},_.insert=function(e,t){return{range:{start:e,end:e},newText:t}},_.del=function(e){return{range:e,newText:""}},_.is=function(e){return e1.objectLiteral(e)&&e1.string(e.newText)&&et.is(e.range)},(w=em||(em={})).create=function(e,t,i){var n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==i&&(n.description=i),n},w.is=function(e){return void 0!==e&&e1.objectLiteral(e)&&e1.string(e.label)&&(e1.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(e1.string(e.description)||void 0===e.description)},(ev||(ev={})).is=function(e){return"string"==typeof e},(y=eb||(eb={})).replace=function(e,t,i){return{range:e,newText:t,annotationId:i}},y.insert=function(e,t,i){return{range:{start:e,end:e},newText:t,annotationId:i}},y.del=function(e,t){return{range:e,newText:"",annotationId:t}},y.is=function(e){return ep.is(e)&&(em.is(e.annotationId)||ev.is(e.annotationId))},(S=eC||(eC={})).create=function(e,t){return{textDocument:e,edits:t}},S.is=function(e){return e1.defined(e)&&eE.is(e.textDocument)&&Array.isArray(e.edits)},(x=ek||(ek={})).create=function(e,t,i){var n={kind:"create",uri:e};return void 0!==t&&(void 0!==t.overwrite||void 0!==t.ignoreIfExists)&&(n.options=t),void 0!==i&&(n.annotationId=i),n},x.is=function(e){return e&&"create"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(E=e_||(e_={})).create=function(e,t,i,n){var r={kind:"rename",oldUri:e,newUri:t};return void 0!==i&&(void 0!==i.overwrite||void 0!==i.ignoreIfExists)&&(r.options=i),void 0!==n&&(r.annotationId=n),r},E.is=function(e){return e&&"rename"===e.kind&&e1.string(e.oldUri)&&e1.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(L=ew||(ew={})).create=function(e,t,i){var n={kind:"delete",uri:e};return void 0!==t&&(void 0!==t.recursive||void 0!==t.ignoreIfNotExists)&&(n.options=t),void 0!==i&&(n.annotationId=i),n},L.is=function(e){return e&&"delete"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||e1.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||e1.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||ev.is(e.annotationId))},(ey||(ey={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every(function(e){return e1.string(e.kind)?ek.is(e)||e_.is(e)||ew.is(e):eC.is(e)}))};var tt=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,i){var n,r;if(void 0===i?n=ep.insert(e,t):ev.is(i)?(r=i,n=eb.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(i),n=eb.insert(e,t,r)),this.edits.push(n),void 0!==r)return r},e.prototype.replace=function(e,t,i){var n,r;if(void 0===i?n=ep.replace(e,t):ev.is(i)?(r=i,n=eb.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(i),n=eb.replace(e,t,r)),this.edits.push(n),void 0!==r)return r},e.prototype.delete=function(e,t){var i,n;if(void 0===t?i=ep.del(e):ev.is(t)?(n=t,i=eb.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),i=eb.del(e,n)),this.edits.push(i),void 0!==n)return n},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw Error("Text edit change is not configured to manage change annotations.")},e}(),ti=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var i;if(ev.is(e)?i=e:(i=this.nextId(),t=e),void 0!==this._annotations[i])throw Error("Id "+i+" is already in use.");if(void 0===t)throw Error("No annotation provided for id "+i);return this._annotations[i]=t,this._size++,i},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ti(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(e){if(eC.is(e)){var i=new tt(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(i){var n=new tt(e.changes[i]);t._textEditChanges[i]=n})):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(eE.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},i=this._textEditChanges[t.uri];if(!i){var n=[],r={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(r),i=new tt(n,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[e];if(!i){var n=[];this._workspaceEdit.changes[e]=n,i=new tt(n),this._textEditChanges[e]=i}return i},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ti,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,i){var n,r,o;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(t)||ev.is(t)?n=t:i=t,void 0===n?r=ek.create(e,i):(o=ev.is(n)?n:this._changeAnnotations.manage(n),r=ek.create(e,i,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o},e.prototype.renameFile=function(e,t,i,n){var r,o,s;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(i)||ev.is(i)?r=i:n=i,void 0===r?o=e_.create(e,t,n):(s=ev.is(r)?r:this._changeAnnotations.manage(r),o=e_.create(e,t,n,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,i){var n,r,o;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(em.is(t)||ev.is(t)?n=t:i=t,void 0===n?r=ew.create(e,i):(o=ev.is(n)?n:this._changeAnnotations.manage(n),r=ew.create(e,i,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o}}(),(I=eS||(eS={})).create=function(e){return{uri:e}},I.is=function(e){return e1.defined(e)&&e1.string(e.uri)},(N=ex||(ex={})).create=function(e,t){return{uri:e,version:t}},N.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.integer(e.version)},(D=eE||(eE={})).create=function(e,t){return{uri:e,version:t}},D.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&(null===e.version||e1.integer(e.version))},(A=eL||(eL={})).create=function(e,t,i,n){return{uri:e,languageId:t,version:i,text:n}},A.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.string(e.languageId)&&e1.integer(e.version)&&e1.string(e.text)},(T=eI||(eI={})).PlainText="plaintext",T.Markdown="markdown",(P=eI||(eI={})).is=function(e){return e===P.PlainText||e===P.Markdown},(eN||(eN={})).is=function(e){return e1.objectLiteral(e)&&eI.is(e.kind)&&e1.string(e.value)},(F=eD||(eD={})).Text=1,F.Method=2,F.Function=3,F.Constructor=4,F.Field=5,F.Variable=6,F.Class=7,F.Interface=8,F.Module=9,F.Property=10,F.Unit=11,F.Value=12,F.Enum=13,F.Keyword=14,F.Snippet=15,F.Color=16,F.File=17,F.Reference=18,F.Folder=19,F.EnumMember=20,F.Constant=21,F.Struct=22,F.Event=23,F.Operator=24,F.TypeParameter=25,(O=eA||(eA={})).PlainText=1,O.Snippet=2,(eT||(eT={})).Deprecated=1,(R=eP||(eP={})).create=function(e,t,i){return{newText:e,insert:t,replace:i}},R.is=function(e){return e&&e1.string(e.newText)&&et.is(e.insert)&&et.is(e.replace)},(M=eF||(eF={})).asIs=1,M.adjustIndentation=2,(eO||(eO={})).create=function(e){return{label:e}},(eR||(eR={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(B=eM||(eM={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},B.is=function(e){return e1.string(e)||e1.objectLiteral(e)&&e1.string(e.language)&&e1.string(e.value)},(eB||(eB={})).is=function(e){return!!e&&e1.objectLiteral(e)&&(eN.is(e.contents)||eM.is(e.contents)||e1.typedArray(e.contents,eM.is))&&(void 0===e.range||et.is(e.range))},(eW||(eW={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(eH||(eH={})).create=function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var r={label:e};return e1.defined(t)&&(r.documentation=t),e1.defined(i)?r.parameters=i:r.parameters=[],r},(W=eK||(eK={})).Text=1,W.Read=2,W.Write=3,(eV||(eV={})).create=function(e,t){var i={range:e};return e1.number(t)&&(i.kind=t),i},(H=ej||(ej={})).File=1,H.Module=2,H.Namespace=3,H.Package=4,H.Class=5,H.Method=6,H.Property=7,H.Field=8,H.Constructor=9,H.Enum=10,H.Interface=11,H.Function=12,H.Variable=13,H.Constant=14,H.String=15,H.Number=16,H.Boolean=17,H.Array=18,H.Object=19,H.Key=20,H.Null=21,H.EnumMember=22,H.Struct=23,H.Event=24,H.Operator=25,H.TypeParameter=26,(e$||(e$={})).Deprecated=1,(eU||(eU={})).create=function(e,t,i,n,r){var o={name:e,kind:t,location:{uri:n,range:i}};return r&&(o.containerName=r),o},(K=ez||(ez={})).create=function(e,t,i,n,r,o){var s={name:e,detail:t,kind:i,range:n,selectionRange:r};return void 0!==o&&(s.children=o),s},K.is=function(e){return e&&e1.string(e.name)&&e1.number(e.kind)&&et.is(e.range)&&et.is(e.selectionRange)&&(void 0===e.detail||e1.string(e.detail))&&(void 0===e.deprecated||e1.boolean(e.deprecated))&&(void 0===e.children||Array.isArray(e.children))&&(void 0===e.tags||Array.isArray(e.tags))},(V=eq||(eq={})).Empty="",V.QuickFix="quickfix",V.Refactor="refactor",V.RefactorExtract="refactor.extract",V.RefactorInline="refactor.inline",V.RefactorRewrite="refactor.rewrite",V.Source="source",V.SourceOrganizeImports="source.organizeImports",V.SourceFixAll="source.fixAll",(j=eG||(eG={})).create=function(e,t){var i={diagnostics:e};return null!=t&&(i.only=t),i},j.is=function(e){return e1.defined(e)&&e1.typedArray(e.diagnostics,eg.is)&&(void 0===e.only||e1.typedArray(e.only,e1.string))},($=eQ||(eQ={})).create=function(e,t,i){var n={title:e},r=!0;return"string"==typeof t?(r=!1,n.kind=t):ef.is(t)?n.command=t:n.edit=t,r&&void 0!==i&&(n.kind=i),n},$.is=function(e){return e&&e1.string(e.title)&&(void 0===e.diagnostics||e1.typedArray(e.diagnostics,eg.is))&&(void 0===e.kind||e1.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||ef.is(e.command))&&(void 0===e.isPreferred||e1.boolean(e.isPreferred))&&(void 0===e.edit||ey.is(e.edit))},(U=eY||(eY={})).create=function(e,t){var i={range:e};return e1.defined(t)&&(i.data=t),i},U.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.command)||ef.is(e.command))},(z=eZ||(eZ={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},z.is=function(e){return e1.defined(e)&&e1.uinteger(e.tabSize)&&e1.boolean(e.insertSpaces)},(q=eX||(eX={})).create=function(e,t,i){return{range:e,target:t,data:i}},q.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.target)||e1.string(e.target))},(G=eJ||(eJ={})).create=function(e,t){return{range:e,parent:t}},G.is=function(e){return void 0!==e&&et.is(e.range)&&(void 0===e.parent||G.is(e.parent))},(Q=e0||(e0={})).create=function(e,t,i,n){return new tn(e,t,i,n)},Q.is=function(e){return!!(e1.defined(e)&&e1.string(e.uri)&&(e1.undefined(e.languageId)||e1.string(e.languageId))&&e1.uinteger(e.lineCount)&&e1.func(e.getText)&&e1.func(e.positionAt)&&e1.func(e.offsetAt))},Q.applyEdits=function(e,t){for(var i=e.getText(),n=function e(t,i){if(t.length<=1)return t;var n=t.length/2|0,r=t.slice(0,n),o=t.slice(n);e(r,i),e(o,i);for(var s=0,a=0,l=0;s<r.length&&a<o.length;)0>=i(r[s],o[a])?t[l++]=r[s++]:t[l++]=o[a++];for(;s<r.length;)t[l++]=r[s++];for(;a<o.length;)t[l++]=o[a++];return t}(t,function(e,t){var i=e.range.start.line-t.range.start.line;return 0===i?e.range.start.character-t.range.start.character:i}),r=i.length,o=n.length-1;o>=0;o--){var s=n[o],a=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(l<=r)i=i.substring(0,a)+s.newText+i.substring(l,i.length);else throw Error("Overlapping edit");r=a}return i};var tn=function(){function e(e,t,i,n){this._uri=e,this._languageId=t,this._version=i,this._content=n,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,i=!0,n=0;n<t.length;n++){i&&(e.push(n),i=!1);var r=t.charAt(n);i="\r"===r||"\n"===r,"\r"===r&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}i&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,n=t.length;if(0===n)return ee.create(0,e);for(;i<n;){var r=Math.floor((i+n)/2);t[r]>e?n=r:i=r+1}var o=i-1;return ee.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,n),i)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();Y=e1||(e1={}),Z=Object.prototype.toString,Y.defined=function(e){return void 0!==e},Y.undefined=function(e){return void 0===e},Y.boolean=function(e){return!0===e||!1===e},Y.string=function(e){return"[object String]"===Z.call(e)},Y.number=function(e){return"[object Number]"===Z.call(e)},Y.numberRange=function(e,t,i){return"[object Number]"===Z.call(e)&&t<=e&&e<=i},Y.integer=function(e){return"[object Number]"===Z.call(e)&&-2147483648<=e&&e<=2147483647},Y.uinteger=function(e){return"[object Number]"===Z.call(e)&&0<=e&&e<=2147483647},Y.func=function(e){return"[object Function]"===Z.call(e)},Y.objectLiteral=function(e){return null!==e&&"object"==typeof e},Y.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)};var tr=class{constructor(e,t,i){this._languageId=e,this._worker=t;let n=e=>{let t,i=e.getLanguageId();i===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent(()=>{window.clearTimeout(t),t=window.setTimeout(()=>this._doValidate(e.uri,i),500)}),this._doValidate(e.uri,i))},r=e=>{e9.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),i=this._listener[t];i&&(i.dispose(),delete this._listener[t])};this._disposables.push(e9.editor.onDidCreateModel(n)),this._disposables.push(e9.editor.onWillDisposeModel(r)),this._disposables.push(e9.editor.onDidChangeModelLanguage(e=>{r(e.model),n(e.model)})),this._disposables.push(i(e=>{e9.editor.getModels().forEach(e=>{e.getLanguageId()===this._languageId&&(r(e),n(e))})})),this._disposables.push({dispose:()=>{for(let e in e9.editor.getModels().forEach(r),this._listener)this._listener[e].dispose()}}),e9.editor.getModels().forEach(n)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,t){this._worker(e).then(t=>t.doValidation(e.toString())).then(i=>{let n=i.map(t=>(function(e,t){let i="number"==typeof t.code?String(t.code):t.code;return{severity:function(e){switch(e){case ed.Error:return e9.MarkerSeverity.Error;case ed.Warning:return e9.MarkerSeverity.Warning;case ed.Information:return e9.MarkerSeverity.Info;case ed.Hint:return e9.MarkerSeverity.Hint;default:return e9.MarkerSeverity.Info}}(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:i,source:t.source}})(e,t)),r=e9.editor.getModel(e);r&&r.getLanguageId()===t&&e9.editor.setModelMarkers(r,t,n)}).then(void 0,e=>{console.error(e)})}},to=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.doComplete(r.toString(),ts(t))).then(i=>{if(!i)return;let n=e.getWordUntilPosition(t),r=new e9.Range(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn),o=i.items.map(e=>{let t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:function(e){return e&&"editor.action.triggerSuggest"===e.command?{id:e.command,title:e.title,arguments:e.arguments}:void 0}(e.command),range:r,kind:function(e){let t=e9.languages.CompletionItemKind;switch(e){case eD.Text:return t.Text;case eD.Method:return t.Method;case eD.Function:return t.Function;case eD.Constructor:return t.Constructor;case eD.Field:return t.Field;case eD.Variable:return t.Variable;case eD.Class:return t.Class;case eD.Interface:return t.Interface;case eD.Module:return t.Module;case eD.Property:break;case eD.Unit:return t.Unit;case eD.Value:return t.Value;case eD.Enum:return t.Enum;case eD.Keyword:return t.Keyword;case eD.Snippet:return t.Snippet;case eD.Color:return t.Color;case eD.File:return t.File;case eD.Reference:return t.Reference}return t.Property}(e.kind)};return e.textEdit&&(function(e){return void 0!==e.insert&&void 0!==e.replace}(e.textEdit)?t.range={insert:tl(e.textEdit.insert),replace:tl(e.textEdit.replace)}:t.range=tl(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tc)),e.insertTextFormat===eA.Snippet&&(t.insertTextRules=e9.languages.CompletionItemInsertTextRule.InsertAsSnippet),t});return{isIncomplete:i.isIncomplete,suggestions:o}})}};function ts(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ta(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function tl(e){if(e)return new e9.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function tc(e){if(e)return{range:tl(e.range),text:e.newText}}var td=class{constructor(e){this._worker=e}provideHover(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.doHover(n.toString(),ts(t))).then(e=>{if(e)return{range:tl(e.range),contents:function(e){if(e)return Array.isArray(e)?e.map(tu):[tu(e)]}(e.contents)}})}};function tu(e){var t;if("string"==typeof e)return{value:e};if((t=e)&&"object"==typeof t&&"string"==typeof t.kind)return"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value};return{value:"```"+e.language+"\n"+e.value+"\n```\n"}}var th=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.findDocumentHighlights(n.toString(),ts(t))).then(e=>{if(e)return e.map(e=>({range:tl(e.range),kind:function(e){switch(e){case eK.Read:return e9.languages.DocumentHighlightKind.Read;case eK.Write:return e9.languages.DocumentHighlightKind.Write;case eK.Text:}return e9.languages.DocumentHighlightKind.Text}(e.kind)}))})}},tg=class{constructor(e){this._worker=e}provideDefinition(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.findDefinition(n.toString(),ts(t))).then(e=>{if(e)return[tf(e)]})}};function tf(e){return{uri:e9.Uri.parse(e.uri),range:tl(e.range)}}var tp=class{constructor(e){this._worker=e}provideReferences(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.findReferences(r.toString(),ts(t))).then(e=>{if(e)return e.map(tf)})}},tm=class{constructor(e){this._worker=e}provideRenameEdits(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.doRename(r.toString(),ts(t),i)).then(e=>(function(e){if(!e||!e.changes)return;let t=[];for(let i in e.changes){let n=e9.Uri.parse(i);for(let r of e.changes[i])t.push({resource:n,versionId:void 0,textEdit:{range:tl(r.range),text:r.newText}})}return{edits:t}})(e))}},tv=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentSymbols(i.toString())).then(e=>{if(e)return e.map(e=>({name:e.name,detail:"",containerName:e.containerName,kind:function(e){let t=e9.languages.SymbolKind;switch(e){case ej.File:return t.Array;case ej.Module:return t.Module;case ej.Namespace:return t.Namespace;case ej.Package:return t.Package;case ej.Class:return t.Class;case ej.Method:return t.Method;case ej.Property:return t.Property;case ej.Field:return t.Field;case ej.Constructor:return t.Constructor;case ej.Enum:return t.Enum;case ej.Interface:return t.Interface;case ej.Function:break;case ej.Variable:return t.Variable;case ej.Constant:return t.Constant;case ej.String:return t.String;case ej.Number:return t.Number;case ej.Boolean:return t.Boolean;case ej.Array:return t.Array}return t.Function}(e.kind),range:tl(e.location.range),selectionRange:tl(e.location.range),tags:[]}))})}},tb=class{constructor(e){this._worker=e}provideLinks(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentLinks(i.toString())).then(e=>{if(e)return{links:e.map(e=>({range:tl(e.range),url:e.target}))}})}},tC=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.format(n.toString(),null,t_(t)).then(e=>{if(e&&0!==e.length)return e.map(tc)}))}},tk=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,t,i,n){let r=e.uri;return this._worker(r).then(e=>e.format(r.toString(),ta(t),t_(i)).then(e=>{if(e&&0!==e.length)return e.map(tc)}))}};function t_(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var tw=class{constructor(e){this._worker=e}provideDocumentColors(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentColors(i.toString())).then(e=>{if(e)return e.map(e=>({color:e.color,range:tl(e.range)}))})}provideColorPresentations(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getColorPresentations(n.toString(),t.color,ta(t.range))).then(e=>{if(e)return e.map(e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=tc(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tc)),t})})}},ty=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getFoldingRanges(n.toString(),t)).then(e=>{if(e)return e.map(e=>{let t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case ea.Comment:return e9.languages.FoldingRangeKind.Comment;case ea.Imports:return e9.languages.FoldingRangeKind.Imports;case ea.Region:return e9.languages.FoldingRangeKind.Region}}(e.kind)),t})})}},tS=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getSelectionRanges(n.toString(),t.map(ts))).then(e=>{if(e)return e.map(e=>{let t=[];for(;e;)t.push({range:tl(e.range)}),e=e.parent;return t})})}};function tx(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function tE(e){return 10===e||13===e||8232===e||8233===e}function tL(e){return e>=48&&e<=57}(e2||(e2={})).DEFAULT={allowTrailingComma:!1};var tI=function(e,t){void 0===t&&(t=!1);var i=e.length,n=0,r="",o=0,s=16,a=0,l=0,c=0,d=0,u=0;function h(){if(r="",u=0,o=n,l=a,d=c,n>=i)return o=i,s=17;var t=e.charCodeAt(n);if(tx(t)){do n++,r+=String.fromCharCode(t),t=e.charCodeAt(n);while(tx(t));return s=15}if(tE(t))return n++,r+=String.fromCharCode(t),13===t&&10===e.charCodeAt(n)&&(n++,r+="\n"),a++,c=n,s=14;switch(t){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,r=function(){for(var t="",r=n;;){if(n>=i){t+=e.substring(r,n),u=2;break}var o=e.charCodeAt(n);if(34===o){t+=e.substring(r,n),n++;break}if(92===o){if(t+=e.substring(r,n),++n>=i){u=2;break}switch(e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+=" ";break;case 117:var s=function(t,i){for(var r=0,o=0;r<4||!i;){var s=e.charCodeAt(n);if(s>=48&&s<=57)o=16*o+s-48;else if(s>=65&&s<=70)o=16*o+s-65+10;else if(s>=97&&s<=102)o=16*o+s-97+10;else break;n++,r++}return r<t&&(o=-1),o}(4,!0);s>=0?t+=String.fromCharCode(s):u=4;break;default:u=5}r=n;continue}if(o>=0&&o<=31){if(tE(o)){t+=e.substring(r,n),u=2;break}u=6}n++}return t}(),s=10;case 47:var h=n-1;if(47===e.charCodeAt(n+1)){for(n+=2;n<i&&!tE(e.charCodeAt(n));){;n++}return r=e.substring(h,n),s=12}if(42===e.charCodeAt(n+1)){n+=2;for(var g=i-1,f=!1;n<g;){var p=e.charCodeAt(n);if(42===p&&47===e.charCodeAt(n+1)){n+=2,f=!0;break}n++,tE(p)&&(13===p&&10===e.charCodeAt(n)&&n++,a++,c=n)}return!f&&(n++,u=1),r=e.substring(h,n),s=13}return r+=String.fromCharCode(t),n++,s=16;case 45:if(r+=String.fromCharCode(t),++n===i||!tL(e.charCodeAt(n)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r+=function(){var t=n;if(48===e.charCodeAt(n))n++;else for(n++;n<e.length&&tL(e.charCodeAt(n));)n++;if(n<e.length&&46===e.charCodeAt(n)){if(!(++n<e.length&&tL(e.charCodeAt(n))))return u=3,e.substring(t,n);for(n++;n<e.length&&tL(e.charCodeAt(n));)n++}var i=n;if(n<e.length&&(69===e.charCodeAt(n)||101===e.charCodeAt(n))){if((++n<e.length&&43===e.charCodeAt(n)||45===e.charCodeAt(n))&&n++,n<e.length&&tL(e.charCodeAt(n))){for(n++;n<e.length&&tL(e.charCodeAt(n));)n++;i=n}else u=3}return e.substring(t,i)}(),s=11;default:for(;n<i&&function(e){if(tx(e)||tE(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}(t);)n++,t=e.charCodeAt(n);if(o!==n){switch(r=e.substring(o,n)){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return r+=String.fromCharCode(t),n++,s=16}}return{setPosition:function(e){n=e,r="",o=0,s=16,u=0},getPosition:function(){return n},scan:t?function(){var e;do e=h();while(e>=12&&e<=15);return e}:h,getToken:function(){return s},getTokenValue:function(){return r},getTokenOffset:function(){return o},getTokenLength:function(){return n-o},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return u}}},tN="delimiter.bracket.json",tD="delimiter.array.json",tA=class{constructor(e,t){this.parent=e,this.type=t}static pop(e){return e?e.parent:null}static push(e,t){return new tA(e,t)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t&&e!==t;){;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0}},tT=class{_state;scanError;lastWasColon;parents;constructor(e,t,i,n){this._state=e,this.scanError=t,this.lastWasColon=i,this.parents=n}clone(){return new tT(this._state,this.scanError,this.lastWasColon,this.parents)}equals(e){return e===this||!!e&&e instanceof tT&&this.scanError===e.scanError&&this.lastWasColon===e.lastWasColon&&tA.equals(this.parents,e.parents)}getStateData(){return this._state}setStateData(e){this._state=e}},tP=class extends tr{constructor(e,t,i){super(e,t,i.onDidChange),this._disposables.push(e9.editor.onWillDisposeModel(e=>{this._resetSchema(e.uri)})),this._disposables.push(e9.editor.onDidChangeModelLanguage(e=>{this._resetSchema(e.model.uri)}))}_resetSchema(e){this._worker().then(t=>{t.resetSchema(e.toString())})}};function tF(e){let t=[],i=[],n=new te(e);t.push(n);let r=(...e)=>n.getLanguageServiceWorker(...e);function o(){let{languageId:t,modeConfiguration:n}=e;if(tR(i),n.documentFormattingEdits&&i.push(e9.languages.registerDocumentFormattingEditProvider(t,new tC(r))),n.documentRangeFormattingEdits&&i.push(e9.languages.registerDocumentRangeFormattingEditProvider(t,new tk(r))),n.completionItems&&i.push(e9.languages.registerCompletionItemProvider(t,new to(r,[" ",":",'"']))),n.hovers&&i.push(e9.languages.registerHoverProvider(t,new td(r))),n.documentSymbols&&i.push(e9.languages.registerDocumentSymbolProvider(t,new tv(r))),n.tokens){var o;i.push(e9.languages.setTokensProvider(t,(o=!0,{getInitialState:()=>new tT(null,null,!1,null),tokenize:(e,t)=>(function(e,t,i,n=0){let r=0,o=!1;switch(i.scanError){case 2:t='"'+t,r=1;break;case 1:t="/*"+t,r=2}let s=tI(t),a=i.lastWasColon,l=i.parents,c={tokens:[],endState:i.clone()};for(;;){let d=n+s.getPosition(),u="",h=s.scan();if(17===h)break;if(d===n+s.getPosition())throw Error("Scanner did not advance, next 3 characters are: "+t.substr(s.getPosition(),3));switch(o&&(d-=r),o=r>0,h){case 1:l=tA.push(l,0),u=tN,a=!1;break;case 2:l=tA.pop(l),u=tN,a=!1;break;case 3:l=tA.push(l,1),u=tD,a=!1;break;case 4:l=tA.pop(l),u=tD,a=!1;break;case 6:u="delimiter.colon.json",a=!0;break;case 5:u="delimiter.comma.json",a=!1;break;case 8:case 9:case 7:u="keyword.json",a=!1;break;case 10:let g=1===(l?l.type:0);u=a||g?"string.value.json":"string.key.json",a=!1;break;case 11:u="number.json",a=!1}if(e)switch(h){case 12:u="comment.line.json";break;case 13:u="comment.block.json"}c.endState=new tT(i.getStateData(),s.getTokenError(),a,l),c.tokens.push({startIndex:d,scopes:u})}return c})(o,e,t)})))}n.colors&&i.push(e9.languages.registerColorProvider(t,new tw(r))),n.foldingRanges&&i.push(e9.languages.registerFoldingRangeProvider(t,new ty(r))),n.diagnostics&&i.push(new tP(t,r,e)),n.selectionRanges&&i.push(e9.languages.registerSelectionRangeProvider(t,new tS(r)))}o(),t.push(e9.languages.setLanguageConfiguration(e.languageId,tM));let s=e.modeConfiguration;return e.onDidChange(e=>{e.modeConfiguration!==s&&(s=e.modeConfiguration,o())}),t.push(tO(i)),tO(t)}function tO(e){return{dispose:()=>tR(e)}}function tR(e){for(;e.length;)e.pop().dispose()}var tM={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}},5914:function(e,t,i){"use strict";let n,r;i.d(t,{TG:function(){return y}});var o,s,a,l,c,d=i("99334"),u=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,p=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of g(t))!f.call(e,r)&&r!==i&&u(e,r,{get:()=>t[r],enumerable:!(n=h(t,r))||n.enumerable});return e},m={};p(m,n=d,"default"),r&&p(r,n,"default");var v=((o=v||{})[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o);var b=((s=b||{})[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev",s);var C=((a=C||{})[a.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",a[a.LineFeed=1]="LineFeed",a);var k=((l=k||{})[l.ES3=0]="ES3",l[l.ES5=1]="ES5",l[l.ES2015=2]="ES2015",l[l.ES2016=3]="ES2016",l[l.ES2017=4]="ES2017",l[l.ES2018=5]="ES2018",l[l.ES2019=6]="ES2019",l[l.ES2020=7]="ES2020",l[l.ESNext=99]="ESNext",l[l.JSON=100]="JSON",l[l.Latest=99]="Latest",l);var _=((c=_||{})[c.Classic=1]="Classic",c[c.NodeJs=2]="NodeJs",c),w=class{_onDidChange=new m.Emitter;_onDidExtraLibsChange=new m.Emitter;_extraLibs;_removedExtraLibs;_eagerModelSync;_compilerOptions;_diagnosticsOptions;_workerOptions;_onDidExtraLibsChangeTimeout;_inlayHintsOptions;constructor(e,t,i,n){this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i=void 0===t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];if(!!e)e.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content,n=1;this._removedExtraLibs[e]&&(n=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}},y=new w({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),S=new w({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{});function x(){return Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"60199"))}m.languages.typescript={ModuleKind:v,JsxEmit:b,NewLineKind:C,ScriptTarget:k,ModuleResolutionKind:_,typescriptVersion:"4.5.5",typescriptDefaults:y,javascriptDefaults:S,getTypeScriptWorker:()=>x().then(e=>e.getTypeScriptWorker()),getJavaScriptWorker:()=>x().then(e=>e.getJavaScriptWorker())},m.languages.onLanguage("typescript",()=>x().then(e=>e.setupTypeScript(y))),m.languages.onLanguage("javascript",()=>x().then(e=>e.setupJavaScript(S)))},8339:function(e,t,i){"use strict";i.d(t,{NC:function(){return r},aj:function(){return o}});let n="undefined"!=typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function r(e,t,...i){var o,s;let a;return o=t,a=0===(s=i).length?o:o.replace(/\{(\d+)\}/g,(e,t)=>{let i=s[t[0]],n=e;return"string"==typeof i?n=i:("number"==typeof i||"boolean"==typeof i||null==i)&&(n=String(i)),n}),n&&(a="\uFF3B"+a.replace(/[aouei]/g,"$&$&")+"\uFF3D"),a}function o(e){}},38204:function(e,t,i){"use strict";i.d(t,{F:function(){return r},U:function(){return o}});var n=i("49436");let r=(0,i("6301").yh)("accessibilityService"),o=new n.uy("accessibilityModeEnabled",!1)},20398:function(e,t,i){"use strict";i.d(t,{l:function(){return a}});var n=i("53861"),r=i("33786"),o=i("91125"),s=i("18475");class a extends r.VV{constructor(e={}){let t=s.B.as(o.IP.Configuration).getConfigurationProperties(),i=Object.keys(t),r=Object.create(null),a=[];for(let i in t){let o=e[i],s=void 0!==o?o:t[i].default;(0,n.KV)(r,i,s,e=>console.error(`Conflict in default settings: ${e}`))}for(let e of Object.keys(r))o.eU.test(e)&&a.push({identifiers:(0,o.ny)(e),keys:Object.keys(r[e]),contents:(0,n.Od)(r[e],e=>console.error(`Conflict in default settings file: ${e}`))});super(r,i,a)}}},64494:function(e,t,i){"use strict";i.d(t,{L:function(){return g}});var n=i("9737"),r=i("16904"),o=i("19527"),s=i("34752"),a=i("97669"),l=i("14800"),c=i("39703"),d=i("92512"),u=i("58935"),h=function(e,t){return function(i,n){t(i,n,e)}};let g=class extends o.JT{constructor(e,t,i,n,o){super(),this._onDidShowContextMenu=new r.Q5,this._onDidHideContextMenu=new r.Q5,this.contextMenuHandler=new d.J(i,e,t,n,o)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:t=>{var i;null===(i=e.onHide)||void 0===i||i.call(e,t),this._onDidHideContextMenu.fire()}})),n._q.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};g=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([h(0,l.b),h(1,a.lT),h(2,u.u),h(3,s.d),h(4,c.XE)],g)},76807:function(e,t,i){"use strict";var n,r;i.d(t,{v:function(){return n}}),(r=n||(n={}))[r.API=0]="API",r[r.USER=1]="USER"},94124:function(e,t,i){"use strict";i.d(t,{F:function(){return l}});var n=i("67518"),r=i("16904"),o=i("19527"),s=i("8339");let a=/^(cursor|delete)/;class l extends o.JT{constructor(e,t,i,o,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=o,this._logService=s,this._onDidUpdateKeybindings=this._register(new r.Q5),this._currentChord=null,this._currentChordChecker=new n.zh,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=c.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new n._F,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:r.ju.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){let i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");let i=this.resolveKeyboardEvent(e);if(i.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;let[n]=i.getDispatchParts();if(null===n)return this._log("\\ Keyboard event cannot be dispatched"),null;let r=this._contextKeyService.getContext(t),o=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(r,o,n)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(s.NC("first.chord","({0}) was pressed. Waiting for second key of chord...",t));let i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){let i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchParts();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=c.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=c.EMPTY,null===this._currentSingleModifier)?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1);let[r]=i.getParts();return this._ignoreSingleModifiers=new c(r),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let n=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let r=null,o=null;if(i){let[t]=e.getSingleModifierDispatchParts();r=t,o=t}else[r]=e.getDispatchParts(),o=this._currentChord?this._currentChord.keypress:null;if(null===r)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),n;let l=this._contextKeyService.getContext(t),c=e.getLabel(),d=this._getResolver().resolve(l,o,r);return(this._logService.trace("KeybindingService#dispatch",c,null==d?void 0:d.commandId),d&&d.enterChord)?(n=!0,this._enterChordMode(r,c),this._log("+ Entering chord mode..."),n):(this._currentChord&&(!d||!d.commandId)&&(this._log(`+ Leaving chord mode: Nothing bound to "${this._currentChord.label} ${c}".`),this._notificationService.status(s.NC("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,c),{hideAfter:1e4}),n=!0),this._leaveChordMode(),d&&d.commandId&&(!d.bubble&&(n=!0),this._log(`+ Invoking command ${d.commandId}.`),void 0===d.commandArgs?this._commandService.executeCommand(d.commandId).then(void 0,e=>this._notificationService.warn(e)):this._commandService.executeCommand(d.commandId,d.commandArgs).then(void 0,e=>this._notificationService.warn(e)),!a.test(d.commandId)&&this._telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"keybinding"})),n)}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(!!(e.keyCode>=31)&&!!(e.keyCode<=56)||!!(e.keyCode>=21)&&!!(e.keyCode<=30)||!1)}}class c{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}c.EMPTY=new c(null)},34752:function(e,t,i){"use strict";i.d(t,{d:function(){return n}});let n=(0,i("6301").yh)("keybindingService")},85649:function(e,t,i){"use strict";i.d(t,{$:function(){return d}});var n,r,o=i("67518"),s=i("862"),a=i("19527"),l=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};function c(e){return Array.isArray(e.items)}(n=r||(r={}))[n.NO_ACTION=0]="NO_ACTION",n[n.CLOSE_PICKER=1]="CLOSE_PICKER",n[n.REFRESH_PICKER=2]="REFRESH_PICKER",n[n.REMOVE_ITEM=3]="REMOVE_ITEM";class d extends a.JT{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var i;let n;let u=new a.SL;e.canAcceptInBackground=!!(null===(i=this.options)||void 0===i?void 0:i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let h=u.add(new a.XK),g=()=>l(this,void 0,void 0,function*(){let i=h.value=new a.SL;null==n||n.dispose(!0),e.busy=!1;let r=(n=new s.A(t)).token,u=e.value.substr(this.prefix.length).trim(),g=this._getPicks(u,i,r),f=(t,i)=>{var n;let r,o;if(c(t)?(r=t.items,o=t.active):r=t,0===r.length){if(i)return!1;u.length>0&&(null===(n=this.options)||void 0===n?void 0:n.noResultsPick)&&(r=[this.options.noResultsPick])}return e.items=r,o&&(e.activeItems=[o]),!0};if(null===g);else{var p;if((p=g).picks&&p.additionalPicks instanceof Promise){let t=!1,i=!1;yield Promise.all([l(this,void 0,void 0,function*(){yield(0,o.Vs)(d.FAST_PICKS_RACE_DELAY),r.isCancellationRequested||i||(t=f(g.picks,!0))}),l(this,void 0,void 0,function*(){e.busy=!0;try{let i,n,o,s;let a=yield g.additionalPicks;if(r.isCancellationRequested)return;c(g.picks)?(i=g.picks.items,o=g.picks.active):i=g.picks;if(c(a)?(n=a.items,s=a.active):n=a,n.length>0||!t){let t;if(!o&&!s){let n=e.activeItems[0];n&&-1!==i.indexOf(n)&&(t=n)}f({items:[...i,...n],active:o||s||t})}}finally{r.isCancellationRequested||(e.busy=!1),i=!0}})])}else if(g instanceof Promise){e.busy=!0;try{let e=yield g;if(r.isCancellationRequested)return;f(e)}finally{!r.isCancellationRequested&&(e.busy=!1)}}else f(g)}});return u.add(e.onDidChangeValue(()=>g())),g(),u.add(e.onDidAccept(t=>{let[i]=e.selectedItems;"function"==typeof(null==i?void 0:i.accept)&&(!t.inBackground&&e.hide(),i.accept(e.keyMods,t))})),u.add(e.onDidTriggerItemButton(({button:i,item:n})=>l(this,void 0,void 0,function*(){var o,s;if("function"==typeof n.trigger){let a=null!==(s=null===(o=n.buttons)||void 0===o?void 0:o.indexOf(i))&&void 0!==s?s:-1;if(a>=0){let i=n.trigger(a,e.keyMods),o="number"==typeof i?i:yield i;if(t.isCancellationRequested)return;switch(o){case r.NO_ACTION:break;case r.CLOSE_PICKER:e.hide();break;case r.REFRESH_PICKER:g();break;case r.REMOVE_ITEM:{let t=e.items.indexOf(n);if(-1!==t){let i=e.items.slice(),n=i.splice(t,1),r=e.activeItems.filter(e=>e!==n[0]),o=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,r&&(e.activeItems=r),e.keepScrollPosition=o}}}}}}))),u}}d.FAST_PICKS_RACE_DELAY=200},43692:function(e,t,i){"use strict";i.d(t,{Uy:function(){return u},fk:function(){return r},vm:function(){return g}});var n,r,o=i("16904"),s=i("19527"),a=i("44138"),l=i("35761"),c=i("6301");let d="__$__targetStorageMarker",u=(0,c.yh)("storageService");(n=r||(r={}))[n.NONE=0]="NONE",n[n.SHUTDOWN=1]="SHUTDOWN";class h extends s.JT{constructor(e={flushInterval:h.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new o.K3),this.onDidChangeValue=this._onDidChangeValue.event,this._onDidChangeTarget=this._register(new o.K3),this._onWillSaveState=this._register(new o.Q5),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}emitDidChangeValue(e,t){if(t===d){switch(e){case -1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getNumber(e,i)}store(e,t,i,n){if((0,a.Jp)(t)){this.remove(e,i);return}this.withPausedEmitters(()=>{var r;this.updateKeyTarget(e,i,n),null===(r=this.getStorage(i))||void 0===r||r.set(e,t)})}remove(e,t){this.withPausedEmitters(()=>{var i;this.updateKeyTarget(e,t,void 0),null===(i=this.getStorage(t))||void 0===i||i.delete(e)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){var n,r;let o=this.getKeyTargets(t);"number"==typeof i?o[e]!==i&&(o[e]=i,null===(n=this.getStorage(t))||void 0===n||n.set(d,JSON.stringify(o))):"number"==typeof o[e]&&(delete o[e],null===(r=this.getStorage(t))||void 0===r||r.set(d,JSON.stringify(o)))}get workspaceKeyTargets(){return!this._workspaceKeyTargets&&(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return!this._profileKeyTargets&&(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return!this._applicationKeyTargets&&(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case -1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){let t=this.get(d,e);if(t)try{return JSON.parse(t)}catch(e){}return Object.create(null)}}h.DEFAULT_FLUSH_INTERVAL=6e4;class g extends h{constructor(){super(),this.applicationStorage=this._register(new l.Ke(new l.Wm)),this.profileStorage=this._register(new l.Ke(new l.Wm)),this.workspaceStorage=this._register(new l.Ke(new l.Wm)),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.profileStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e))),this._register(this.applicationStorage.onDidChangeStorage(e=>this.emitDidChangeValue(-1,e)))}getStorage(e){switch(e){case -1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},91563:function(e,t,i){"use strict";i.d(t,{J:function(){return a},p:function(){return l}});var n=i("9737"),r=i("16904"),o=i("38842"),s=i("39703");function a(e){let t=new r.Q5,i=(0,o.Ks)();return i.onDidChange(()=>t.fire()),null==e||e.onDidProductIconThemeChange(()=>t.fire()),{onDidChange:t.event,getCSS(){let t=e?e.getProductIconTheme():new l,r={},o=e=>{let i=t.getIcon(e);if(!i)return;let o=i.font;return o?(r[o.id]=o.definition,`.codicon-${e.id}:before { content: '${i.fontCharacter}'; font-family: ${(0,n._h)(o.id)}; }`):`.codicon-${e.id}:before { content: '${i.fontCharacter}'; }`},s=[];for(let e of i.getIcons()){let t=o(e);t&&s.push(t)}for(let e in r){let t=r[e],i=t.weight?`font-weight: ${t.weight};`:"",o=t.style?`font-style: ${t.style};`:"",a=t.src.map(e=>`${(0,n.wY)(e.location)} format('${e.format}')`).join(", ");s.push(`@font-face { src: ${a}; font-family: ${(0,n._h)(e)};${i}${o} font-display: block; }`)}return s.join("\n")}}}class l{getIcon(e){let t=(0,o.Ks)(),i=e.defaults;for(;s.kS.isThemeIcon(i);){let e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}},97085:function(e,t,i){"use strict";i.d(t,{$DX:function(){return tT},$d5:function(){return tg},ABB:function(){return Y},AS1:function(){return tf},AWI:function(){return ey},BOY:function(){return t2},Bqu:function(){return tn},C3g:function(){return O},CA6:function(){return tX},CNo:function(){return eW},Cdg:function(){return tI},CzK:function(){return eY},D0T:function(){return eh},D1_:function(){return ef},DEr:function(){return tN},Dut:function(){return el},E3h:function(){return tP},EPQ:function(){return T},EQn:function(){return ty},ES4:function(){return eL},EiJ:function(){return eF},F3d:function(){return tu},F9q:function(){return e4},Fm_:function(){return tj},Fu1:function(){return eG},GO4:function(){return $},Gj_:function(){return tG},Gwp:function(){return tp},HCL:function(){return ez},Hfx:function(){return eg},Hz8:function(){return tD},IPX:function(){return u},IYc:function(){return tz},Ido:function(){return p},Itd:function(){return tZ},Ivo:function(){return tQ},JpG:function(){return t1},K19:function(){return eS},LLc:function(){return e7},L_H:function(){return J},L_t:function(){return e9},LoV:function(){return eH},M6C:function(){return to},MUv:function(){return eA},NOs:function(){return eu},NPS:function(){return tx},Ng6:function(){return ep},OLZ:function(){return t3},OZR:function(){return B},Oop:function(){return ti},P4M:function(){return eJ},P6G:function(){return g},P6Y:function(){return e5},PRb:function(){return L},PX0:function(){return tm},PpC:function(){return ej},Pvw:function(){return N},QO2:function(){return d},R80:function(){return v},RV_:function(){return P},Rzx:function(){return eI},SPM:function(){return t$},SUG:function(){return F},SUY:function(){return tU},Saq:function(){return tC},Sbf:function(){return eB},Snq:function(){return t9},SwI:function(){return w},T83:function(){return ea},Tnx:function(){return ts},UnT:function(){return t_},VVv:function(){return eV},Vqd:function(){return tL},XEs:function(){return I},XL$:function(){return e6},XZx:function(){return m},Xy4:function(){return tJ},YI3:function(){return A},ZGJ:function(){return tF},ZnX:function(){return t6},_2n:function(){return tt},_Yy:function(){return eK},_bK:function(){return te},_lC:function(){return D},_t9:function(){return M},_wn:function(){return G},b6y:function(){return et},b7$:function(){return j},bKB:function(){return eU},brw:function(){return t0},c63:function(){return es},cbQ:function(){return tE},cvW:function(){return ed},dCr:function(){return tr},dRz:function(){return f},dt_:function(){return E},etL:function(){return Q},fEB:function(){return ec},few:function(){return eo},g8u:function(){return z},g_n:function(){return eN},gkn:function(){return eO},gpD:function(){return ei},hEj:function(){return ex},hX8:function(){return e$},hzo:function(){return e0},j51:function(){return e2},j5u:function(){return V},jUe:function(){return eT},jbW:function(){return tA},kJk:function(){return eC},kVY:function(){return tY},keg:function(){return eZ},kvU:function(){return tc},kwl:function(){return t8},lRK:function(){return b},lUq:function(){return tO},lWp:function(){return ew},lXJ:function(){return ee},loF:function(){return eb},mHy:function(){return e8},mV1:function(){return th},nyM:function(){return eD},oQ$:function(){return e_},oSI:function(){return tb},opG:function(){return ek},ov3:function(){return tq},pW3:function(){return er},paE:function(){return R},phM:function(){return eq},pnM:function(){return eP},ptc:function(){return eR},qeD:function(){return q},rg2:function(){return ta},rh:function(){return y},s$:function(){return td},sEe:function(){return S},sKV:function(){return eQ},sgC:function(){return _},tZ6:function(){return ev},uoC:function(){return en},url:function(){return k},uxu:function(){return tw},vGG:function(){return tv},xL1:function(){return C},xi6:function(){return e1},y65:function(){return tk},yJx:function(){return eM},yb5:function(){return eE},ynu:function(){return Z},ypS:function(){return eX},ytC:function(){return tl},zJb:function(){return x},zKr:function(){return em},zOm:function(){return e3},zRJ:function(){return X}});var n=i("67518"),r=i("35271"),o=i("16904"),s=i("44138"),a=i("8339"),l=i("29711"),c=i("18475");function d(e){return`--vscode-${e.replace(/\./g,"-")}`}let u={ColorContribution:"base.contributions.colors"},h=new class e{constructor(){this._onDidChangeSchema=new o.Q5,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,r){this.colorsById[e]={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:r};let o={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(o.deprecationMessage=r),this.colorSchema.properties[e]=o,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,t){let i=this.colorsById[e];if(i&&i.defaults)return t9(i.defaults[t.type],t)}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort((e,t)=>{let i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!==n?i-n:e.localeCompare(t)}).map(e=>`- \`${e}\`: ${this.colorsById[e].description}`).join("\n")}};c.B.add(u.ColorContribution,h);function g(e,t,i,n,r){var o;return h.registerColor(e,null===(o=t)?o:(void 0===o.hcLight&&(null===o.hcDark||"string"==typeof o.hcDark?o.hcLight=o.hcDark:o.hcLight=o.light),o),i,n,r)}let f=g("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},a.NC("foreground","Overall foreground color. This color is only used if not overridden by a component."));g("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},a.NC("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component."));let p=g("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},a.NC("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."));g("descriptionForeground",{light:"#717171",dark:t6(f,.7),hcDark:t6(f,.7),hcLight:t6(f,.7)},a.NC("descriptionForeground","Foreground color for description text providing additional information, for example for a label."));let m=g("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},a.NC("iconForeground","The default color for icons in the workbench.")),v=g("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#0F4A85"},a.NC("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),b=g("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},a.NC("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),C=g("contrastActiveBorder",{light:null,dark:null,hcDark:v,hcLight:v},a.NC("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));g("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},a.NC("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),g("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:r.Il.black,hcLight:"#292929"},a.NC("textSeparatorForeground","Color for text separators."));let k=g("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.NC("textLinkForeground","Foreground color for links in text.")),_=g("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.NC("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover."));g("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#D7BA7D",hcLight:"#292929"},a.NC("textPreformatForeground","Foreground color for preformatted text segments.")),g("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hcDark:null,hcLight:"#F2F2F2"},a.NC("textBlockQuoteBackground","Background color for block quotes in text.")),g("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:r.Il.white,hcLight:"#292929"},a.NC("textBlockQuoteBorder","Border color for block quotes in text."));let w=g("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:r.Il.black,hcLight:"#F2F2F2"},a.NC("textCodeBlockBackground","Background color for code blocks in text.")),y=g("widget.shadow",{dark:t6(r.Il.black,.36),light:t6(r.Il.black,.16),hcDark:null,hcLight:null},a.NC("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),S=g("input.background",{dark:"#3C3C3C",light:r.Il.white,hcDark:r.Il.black,hcLight:r.Il.white},a.NC("inputBoxBackground","Input box background.")),x=g("input.foreground",{dark:f,light:f,hcDark:f,hcLight:f},a.NC("inputBoxForeground","Input box foreground.")),E=g("input.border",{dark:null,light:null,hcDark:b,hcLight:b},a.NC("inputBoxBorder","Input box border.")),L=g("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hcDark:b,hcLight:b},a.NC("inputBoxActiveOptionBorder","Border color of activated options in input fields."));g("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},a.NC("inputOption.hoverBackground","Background color of activated options in input fields."));let I=g("inputOption.activeBackground",{dark:t6(v,.4),light:t6(v,.2),hcDark:r.Il.transparent,hcLight:r.Il.transparent},a.NC("inputOption.activeBackground","Background hover color of options in input fields.")),N=g("inputOption.activeForeground",{dark:r.Il.white,light:r.Il.black,hcDark:null,hcLight:f},a.NC("inputOption.activeForeground","Foreground color of activated options in input fields."));g("input.placeholderForeground",{light:t6(f,.5),dark:t6(f,.5),hcDark:t6(f,.7),hcLight:t6(f,.7)},a.NC("inputPlaceholderForeground","Input box foreground color for placeholder text."));let D=g("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:r.Il.black,hcLight:r.Il.white},a.NC("inputValidationInfoBackground","Input validation background color for information severity.")),A=g("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:f},a.NC("inputValidationInfoForeground","Input validation foreground color for information severity.")),T=g("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:b,hcLight:b},a.NC("inputValidationInfoBorder","Input validation border color for information severity.")),P=g("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:r.Il.black,hcLight:r.Il.white},a.NC("inputValidationWarningBackground","Input validation background color for warning severity.")),F=g("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:f},a.NC("inputValidationWarningForeground","Input validation foreground color for warning severity.")),O=g("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:b,hcLight:b},a.NC("inputValidationWarningBorder","Input validation border color for warning severity.")),R=g("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:r.Il.black,hcLight:r.Il.white},a.NC("inputValidationErrorBackground","Input validation background color for error severity.")),M=g("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:f},a.NC("inputValidationErrorForeground","Input validation foreground color for error severity.")),B=g("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:b,hcLight:b},a.NC("inputValidationErrorBorder","Input validation border color for error severity.")),W=g("dropdown.background",{dark:"#3C3C3C",light:r.Il.white,hcDark:r.Il.black,hcLight:r.Il.white},a.NC("dropdownBackground","Dropdown background."));g("dropdown.listBackground",{dark:null,light:null,hcDark:r.Il.black,hcLight:r.Il.white},a.NC("dropdownListBackground","Dropdown list background."));let H=g("dropdown.foreground",{dark:"#F0F0F0",light:null,hcDark:r.Il.white,hcLight:f},a.NC("dropdownForeground","Dropdown foreground.")),K=g("dropdown.border",{dark:W,light:"#CECECE",hcDark:b,hcLight:b},a.NC("dropdownBorder","Dropdown border."));g("checkbox.background",{dark:W,light:W,hcDark:W,hcLight:W},a.NC("checkbox.background","Background color of checkbox widget.")),g("checkbox.foreground",{dark:H,light:H,hcDark:H,hcLight:H},a.NC("checkbox.foreground","Foreground color of checkbox widget.")),g("checkbox.border",{dark:K,light:K,hcDark:K,hcLight:K},a.NC("checkbox.border","Border color of checkbox widget."));let V=g("button.foreground",{dark:r.Il.white,light:r.Il.white,hcDark:r.Il.white,hcLight:r.Il.white},a.NC("buttonForeground","Button foreground color."));g("button.separator",{dark:t6(V,.4),light:t6(V,.4),hcDark:t6(V,.4),hcLight:t6(V,.4)},a.NC("buttonSeparator","Button separator color."));let j=g("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},a.NC("buttonBackground","Button background color.")),$=g("button.hoverBackground",{dark:t4(j,.2),light:t5(j,.2),hcDark:null,hcLight:null},a.NC("buttonHoverBackground","Button background color when hovering."));g("button.border",{dark:b,light:b,hcDark:b,hcLight:b},a.NC("buttonBorder","Button border color.")),g("button.secondaryForeground",{dark:r.Il.white,light:r.Il.white,hcDark:r.Il.white,hcLight:f},a.NC("buttonSecondaryForeground","Secondary button foreground color."));let U=g("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:r.Il.white},a.NC("buttonSecondaryBackground","Secondary button background color."));g("button.secondaryHoverBackground",{dark:t4(U,.2),light:t5(U,.2),hcDark:null,hcLight:null},a.NC("buttonSecondaryHoverBackground","Secondary button background color when hovering."));let z=g("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:r.Il.black,hcLight:"#0F4A85"},a.NC("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),q=g("badge.foreground",{dark:r.Il.white,light:"#333",hcDark:r.Il.white,hcLight:r.Il.white},a.NC("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),G=g("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},a.NC("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),Q=g("scrollbarSlider.background",{dark:r.Il.fromHex("#797979").transparent(.4),light:r.Il.fromHex("#646464").transparent(.4),hcDark:t6(b,.6),hcLight:t6(b,.4)},a.NC("scrollbarSliderBackground","Scrollbar slider background color.")),Y=g("scrollbarSlider.hoverBackground",{dark:r.Il.fromHex("#646464").transparent(.7),light:r.Il.fromHex("#646464").transparent(.7),hcDark:t6(b,.8),hcLight:t6(b,.8)},a.NC("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Z=g("scrollbarSlider.activeBackground",{dark:r.Il.fromHex("#BFBFBF").transparent(.4),light:r.Il.fromHex("#000000").transparent(.6),hcDark:b,hcLight:b},a.NC("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),X=g("progressBar.background",{dark:r.Il.fromHex("#0E70C0"),light:r.Il.fromHex("#0E70C0"),hcDark:b,hcLight:b},a.NC("progressBarBackground","Background color of the progress bar that can show for long running operations.")),J=g("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),ee=g("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},a.NC("editorError.foreground","Foreground color of error squigglies in the editor.")),et=g("editorError.border",{dark:null,light:null,hcDark:r.Il.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},a.NC("errorBorder","Border color of error boxes in the editor.")),ei=g("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),en=g("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD37",hcLight:"#895503"},a.NC("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),er=g("editorWarning.border",{dark:null,light:null,hcDark:r.Il.fromHex("#FFCC00").transparent(.8),hcLight:"#"},a.NC("warningBorder","Border color of warning boxes in the editor.")),eo=g("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),es=g("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},a.NC("editorInfo.foreground","Foreground color of info squigglies in the editor.")),ea=g("editorInfo.border",{dark:null,light:null,hcDark:r.Il.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},a.NC("infoBorder","Border color of info boxes in the editor.")),el=g("editorHint.foreground",{dark:r.Il.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},a.NC("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ec=g("editorHint.border",{dark:null,light:null,hcDark:r.Il.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},a.NC("hintBorder","Border color of hint boxes in the editor."));g("sash.hoverBorder",{dark:v,light:v,hcDark:v,hcLight:v},a.NC("sashActiveBorder","Border color of active sashes."));let ed=g("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:r.Il.black,hcLight:r.Il.white},a.NC("editorBackground","Editor background color.")),eu=g("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:r.Il.white,hcLight:f},a.NC("editorForeground","Editor default foreground color."));g("editorStickyScroll.background",{light:ed,dark:ed,hcDark:ed,hcLight:ed},a.NC("editorStickyScrollBackground","Sticky scroll background color for the editor")),g("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:r.Il.fromHex("#0F4A85").transparent(.1)},a.NC("editorStickyScrollHoverBackground","Sticky scroll on hover background color for the editor"));let eh=g("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:r.Il.white},a.NC("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),eg=g("editorWidget.foreground",{dark:f,light:f,hcDark:f,hcLight:f},a.NC("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),ef=g("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:b,hcLight:b},a.NC("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),ep=g("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},a.NC("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),em=g("quickInput.background",{dark:eh,light:eh,hcDark:eh,hcLight:eh},a.NC("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ev=g("quickInput.foreground",{dark:eg,light:eg,hcDark:eg,hcLight:eg},a.NC("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),eb=g("quickInputTitle.background",{dark:new r.Il(new r.VS(255,255,255,.105)),light:new r.Il(new r.VS(0,0,0,.06)),hcDark:"#000000",hcLight:r.Il.white},a.NC("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),eC=g("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:r.Il.white,hcLight:"#0F4A85"},a.NC("pickerGroupForeground","Quick picker color for grouping labels.")),ek=g("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:r.Il.white,hcLight:"#0F4A85"},a.NC("pickerGroupBorder","Quick picker color for grouping borders.")),e_=g("keybindingLabel.background",{dark:new r.Il(new r.VS(128,128,128,.17)),light:new r.Il(new r.VS(221,221,221,.4)),hcDark:r.Il.transparent,hcLight:r.Il.transparent},a.NC("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),ew=g("keybindingLabel.foreground",{dark:r.Il.fromHex("#CCCCCC"),light:r.Il.fromHex("#555555"),hcDark:r.Il.white,hcLight:f},a.NC("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),ey=g("keybindingLabel.border",{dark:new r.Il(new r.VS(51,51,51,.6)),light:new r.Il(new r.VS(204,204,204,.4)),hcDark:new r.Il(new r.VS(111,195,223)),hcLight:b},a.NC("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),eS=g("keybindingLabel.bottomBorder",{dark:new r.Il(new r.VS(68,68,68,.6)),light:new r.Il(new r.VS(187,187,187,.4)),hcDark:new r.Il(new r.VS(111,195,223)),hcLight:f},a.NC("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),ex=g("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},a.NC("editorSelectionBackground","Color of the editor selection.")),eE=g("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:r.Il.white},a.NC("editorSelectionForeground","Color of the selected text for high contrast.")),eL=g("editor.inactiveSelectionBackground",{light:t6(ex,.5),dark:t6(ex,.5),hcDark:t6(ex,.7),hcLight:t6(ex,.5)},a.NC("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),eI=g("editor.selectionHighlightBackground",{light:t7(ex,ed,.3,.6),dark:t7(ex,ed,.3,.6),hcDark:null,hcLight:null},a.NC("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),eN=g("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),eD=g("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},a.NC("editorFindMatch","Color of the current search match.")),eA=g("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},a.NC("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),eT=g("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},a.NC("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),eP=g("editor.findMatchBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("editorFindMatchBorder","Border color of the current search match.")),eF=g("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.NC("findMatchHighlightBorder","Border color of the other search matches.")),eO=g("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:t6(C,.4),hcLight:t6(C,.4)},a.NC("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);g("searchEditor.findMatchBackground",{light:t6(eA,.66),dark:t6(eA,.66),hcDark:eA,hcLight:eA},a.NC("searchEditor.queryMatch","Color of the Search Editor query matches.")),g("searchEditor.findMatchBorder",{light:t6(eF,.66),dark:t6(eF,.66),hcDark:eF,hcLight:eF},a.NC("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."));let eR=g("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},a.NC("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),eM=g("editorHoverWidget.background",{light:eh,dark:eh,hcDark:eh,hcLight:eh},a.NC("hoverBackground","Background color of the editor hover.")),eB=g("editorHoverWidget.foreground",{light:eg,dark:eg,hcDark:eg,hcLight:eg},a.NC("hoverForeground","Foreground color of the editor hover.")),eW=g("editorHoverWidget.border",{light:ef,dark:ef,hcDark:ef,hcLight:ef},a.NC("hoverBorder","Border color of the editor hover.")),eH=g("editorHoverWidget.statusBarBackground",{dark:t4(eM,.2),light:t5(eM,.05),hcDark:eh,hcLight:eh},a.NC("statusBarBackground","Background color of the editor hover status bar.")),eK=g("editorLink.activeForeground",{dark:"#4E94CE",light:r.Il.blue,hcDark:r.Il.cyan,hcLight:"#292929"},a.NC("activeLinkForeground","Color of active links.")),eV=g("editorInlayHint.foreground",{dark:t6(q,.8),light:t6(q,.8),hcDark:q,hcLight:q},a.NC("editorInlayHintForeground","Foreground color of inline hints")),ej=g("editorInlayHint.background",{dark:t6(z,.6),light:t6(z,.3),hcDark:z,hcLight:z},a.NC("editorInlayHintBackground","Background color of inline hints")),e$=g("editorInlayHint.typeForeground",{dark:eV,light:eV,hcDark:eV,hcLight:eV},a.NC("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),eU=g("editorInlayHint.typeBackground",{dark:ej,light:ej,hcDark:ej,hcLight:ej},a.NC("editorInlayHintBackgroundTypes","Background color of inline hints for types")),ez=g("editorInlayHint.parameterForeground",{dark:eV,light:eV,hcDark:eV,hcLight:eV},a.NC("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),eq=g("editorInlayHint.parameterBackground",{dark:ej,light:ej,hcDark:ej,hcLight:ej},a.NC("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),eG=g("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},a.NC("editorLightBulbForeground","The color used for the lightbulb actions icon.")),eQ=g("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},a.NC("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),eY=new r.Il(new r.VS(155,185,85,.2)),eZ=new r.Il(new r.VS(255,0,0,.2)),eX=g("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c66",hcDark:null,hcLight:null},a.NC("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),eJ=g("diffEditor.removedTextBackground",{dark:"#ff000066",light:"#ff00004d",hcDark:null,hcLight:null},a.NC("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),e0=g("diffEditor.insertedLineBackground",{dark:eY,light:eY,hcDark:null,hcLight:null},a.NC("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),e1=g("diffEditor.removedLineBackground",{dark:eZ,light:eZ,hcDark:null,hcLight:null},a.NC("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),e2=g("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),e3=g("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),e5=g("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),e4=g("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),e6=g("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},a.NC("diffEditorInsertedOutline","Outline color for the text that got inserted.")),e8=g("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},a.NC("diffEditorRemovedOutline","Outline color for text that got removed.")),e7=g("diffEditor.border",{dark:null,light:null,hcDark:b,hcLight:b},a.NC("diffEditorBorder","Border color between the two text editors.")),e9=g("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},a.NC("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),te=g("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tt=g("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ti=g("list.focusOutline",{dark:v,light:v,hcDark:C,hcLight:C},a.NC("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tn=g("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),tr=g("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:r.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),to=g("list.activeSelectionForeground",{dark:r.Il.white,light:r.Il.white,hcDark:null,hcLight:null},a.NC("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ts=g("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ta=g("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:r.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),tl=g("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),tc=g("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),td=g("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),tu=g("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),th=g("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:r.Il.fromHex("#0F4A85").transparent(.1)},a.NC("listHoverBackground","List/Tree background when hovering over items using the mouse.")),tg=g("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),tf=g("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},a.NC("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),tp=g("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:v,hcLight:v},a.NC("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),tm=g("list.focusHighlightForeground",{dark:tp,light:function(e,t,i){return{op:5,if:e,then:t,else:i}}(tr,tp,"#BBE7FF"),hcDark:tp,hcLight:tp},a.NC("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));g("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},a.NC("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),g("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},a.NC("listErrorForeground","Foreground color of list items containing errors.")),g("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},a.NC("listWarningForeground","Foreground color of list items containing warnings."));let tv=g("listFilterWidget.background",{light:t5(eh,0),dark:t4(eh,0),hcDark:eh,hcLight:eh},a.NC("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),tb=g("listFilterWidget.outline",{dark:r.Il.transparent,light:r.Il.transparent,hcDark:"#f38518",hcLight:"#007ACC"},a.NC("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),tC=g("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:b,hcLight:b},a.NC("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),tk=g("listFilterWidget.shadow",{dark:y,light:y,hcDark:y,hcLight:y},a.NC("listFilterWidgetShadow","Shadown color of the type filter widget in lists and trees."));g("list.filterMatchBackground",{dark:eA,light:eA,hcDark:null,hcLight:null},a.NC("listFilterMatchHighlight","Background color of the filtered match.")),g("list.filterMatchBorder",{dark:eF,light:eF,hcDark:b,hcLight:C},a.NC("listFilterMatchHighlightBorder","Border color of the filtered match."));let t_=g("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},a.NC("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),tw=g("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},a.NC("tableColumnsBorder","Table border color between columns.")),ty=g("tree.tableOddRowsBackground",{dark:t6(f,.04),light:t6(f,.04),hcDark:null,hcLight:null},a.NC("tableOddRowsBackgroundColor","Background color for odd table rows."));g("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},a.NC("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized. "));let tS=g("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,a.NC("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),tx=g("quickInputList.focusForeground",{dark:to,light:to,hcDark:to,hcLight:to},a.NC("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),tE=g("quickInputList.focusIconForeground",{dark:ts,light:ts,hcDark:ts,hcLight:ts},a.NC("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),tL=g("quickInputList.focusBackground",{dark:t8(tS,tr),light:t8(tS,tr),hcDark:null,hcLight:null},a.NC("quickInput.listFocusBackground","Quick picker background color for the focused item.")),tI=g("menu.border",{dark:null,light:null,hcDark:b,hcLight:b},a.NC("menuBorder","Border color of menus.")),tN=g("menu.foreground",{dark:H,light:f,hcDark:H,hcLight:H},a.NC("menuForeground","Foreground color of menu items.")),tD=g("menu.background",{dark:W,light:W,hcDark:W,hcLight:W},a.NC("menuBackground","Background color of menu items.")),tA=g("menu.selectionForeground",{dark:to,light:to,hcDark:to,hcLight:to},a.NC("menuSelectionForeground","Foreground color of the selected menu item in menus.")),tT=g("menu.selectionBackground",{dark:tr,light:tr,hcDark:tr,hcLight:tr},a.NC("menuSelectionBackground","Background color of the selected menu item in menus.")),tP=g("menu.selectionBorder",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("menuSelectionBorder","Border color of the selected menu item in menus.")),tF=g("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:b,hcLight:b},a.NC("menuSeparatorBackground","Color of a separator menu item in menus.")),tO=g("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},a.NC("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"));g("toolbar.hoverOutline",{dark:null,light:null,hcDark:C,hcLight:C},a.NC("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),g("toolbar.activeBackground",{dark:t4(tO,.1),light:t5(tO,.1),hcDark:null,hcLight:null},a.NC("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),g("editor.snippetTabstopHighlightBackground",{dark:new r.Il(new r.VS(124,124,124,.3)),light:new r.Il(new r.VS(10,50,100,.2)),hcDark:new r.Il(new r.VS(124,124,124,.3)),hcLight:new r.Il(new r.VS(10,50,100,.2))},a.NC("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),g("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),g("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),g("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new r.Il(new r.VS(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},a.NC("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),g("breadcrumb.foreground",{light:t6(f,.8),dark:t6(f,.8),hcDark:t6(f,.8),hcLight:t6(f,.8)},a.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),g("breadcrumb.background",{light:ed,dark:ed,hcDark:ed,hcLight:ed},a.NC("breadcrumbsBackground","Background color of breadcrumb items.")),g("breadcrumb.focusForeground",{light:t5(f,.2),dark:t4(f,.1),hcDark:t4(f,.1),hcLight:t4(f,.1)},a.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),g("breadcrumb.activeSelectionForeground",{light:t5(f,.2),dark:t4(f,.1),hcDark:t4(f,.1),hcLight:t4(f,.1)},a.NC("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),g("breadcrumbPicker.background",{light:eh,dark:eh,hcDark:eh,hcLight:eh},a.NC("breadcrumbsSelectedBackground","Background color of breadcrumb item picker."));let tR=r.Il.fromHex("#40C8AE").transparent(.5),tM=r.Il.fromHex("#40A6FF").transparent(.5),tB=r.Il.fromHex("#606060").transparent(.4),tW=g("merge.currentHeaderBackground",{dark:tR,light:tR,hcDark:null,hcLight:null},a.NC("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);g("merge.currentContentBackground",{dark:t6(tW,.4),light:t6(tW,.4),hcDark:t6(tW,.4),hcLight:t6(tW,.4)},a.NC("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let tH=g("merge.incomingHeaderBackground",{dark:tM,light:tM,hcDark:null,hcLight:null},a.NC("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);g("merge.incomingContentBackground",{dark:t6(tH,.4),light:t6(tH,.4),hcDark:t6(tH,.4),hcLight:t6(tH,.4)},a.NC("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let tK=g("merge.commonHeaderBackground",{dark:tB,light:tB,hcDark:null,hcLight:null},a.NC("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);g("merge.commonContentBackground",{dark:t6(tK,.4),light:t6(tK,.4),hcDark:t6(tK,.4),hcLight:t6(tK,.4)},a.NC("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let tV=g("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},a.NC("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."));g("editorOverviewRuler.currentContentForeground",{dark:t6(tW,1),light:t6(tW,1),hcDark:tV,hcLight:tV},a.NC("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),g("editorOverviewRuler.incomingContentForeground",{dark:t6(tH,1),light:t6(tH,1),hcDark:tV,hcLight:tV},a.NC("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),g("editorOverviewRuler.commonContentForeground",{dark:t6(tK,1),light:t6(tK,1),hcDark:tV,hcLight:tV},a.NC("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts."));let tj=g("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},a.NC("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),t$=g("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},a.NC("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),tU=g("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},a.NC("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),tz=g("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},a.NC("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),tq=g("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},a.NC("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),tG=g("minimap.errorHighlight",{dark:new r.Il(new r.VS(255,18,18,.7)),light:new r.Il(new r.VS(255,18,18,.7)),hcDark:new r.Il(new r.VS(255,50,50,1)),hcLight:"#B5200D"},a.NC("minimapError","Minimap marker color for errors.")),tQ=g("minimap.warningHighlight",{dark:en,light:en,hcDark:er,hcLight:er},a.NC("overviewRuleWarning","Minimap marker color for warnings.")),tY=g("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},a.NC("minimapBackground","Minimap background color.")),tZ=g("minimap.foregroundOpacity",{dark:r.Il.fromHex("#000f"),light:r.Il.fromHex("#000f"),hcDark:r.Il.fromHex("#000f"),hcLight:r.Il.fromHex("#000f")},a.NC("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),tX=g("minimapSlider.background",{light:t6(Q,.5),dark:t6(Q,.5),hcDark:t6(Q,.5),hcLight:t6(Q,.5)},a.NC("minimapSliderBackground","Minimap slider background color.")),tJ=g("minimapSlider.hoverBackground",{light:t6(Y,.5),dark:t6(Y,.5),hcDark:t6(Y,.5),hcLight:t6(Y,.5)},a.NC("minimapSliderHoverBackground","Minimap slider background color when hovering.")),t0=g("minimapSlider.activeBackground",{light:t6(Z,.5),dark:t6(Z,.5),hcDark:t6(Z,.5),hcLight:t6(Z,.5)},a.NC("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),t1=g("problemsErrorIcon.foreground",{dark:ee,light:ee,hcDark:ee,hcLight:ee},a.NC("problemsErrorIconForeground","The color used for the problems error icon.")),t2=g("problemsWarningIcon.foreground",{dark:en,light:en,hcDark:en,hcLight:en},a.NC("problemsWarningIconForeground","The color used for the problems warning icon.")),t3=g("problemsInfoIcon.foreground",{dark:es,light:es,hcDark:es,hcLight:es},a.NC("problemsInfoIconForeground","The color used for the problems info icon."));g("charts.foreground",{dark:f,light:f,hcDark:f,hcLight:f},a.NC("chartsForeground","The foreground color used in charts.")),g("charts.lines",{dark:t6(f,.5),light:t6(f,.5),hcDark:t6(f,.5),hcLight:t6(f,.5)},a.NC("chartsLines","The color used for horizontal lines in charts.")),g("charts.red",{dark:ee,light:ee,hcDark:ee,hcLight:ee},a.NC("chartsRed","The red color used in chart visualizations.")),g("charts.blue",{dark:es,light:es,hcDark:es,hcLight:es},a.NC("chartsBlue","The blue color used in chart visualizations.")),g("charts.yellow",{dark:en,light:en,hcDark:en,hcLight:en},a.NC("chartsYellow","The yellow color used in chart visualizations.")),g("charts.orange",{dark:tU,light:tU,hcDark:tU,hcLight:tU},a.NC("chartsOrange","The orange color used in chart visualizations.")),g("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},a.NC("chartsGreen","The green color used in chart visualizations.")),g("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},a.NC("chartsPurple","The purple color used in chart visualizations."));function t5(e,t){return{op:0,value:e,factor:t}}function t4(e,t){return{op:1,value:e,factor:t}}function t6(e,t){return{op:2,value:e,factor:t}}function t8(...e){return{op:3,values:e}}function t7(e,t,i,n){return{op:4,value:e,background:t,factor:i,transparency:n}}function t9(e,t){if(null===e);else if("string"==typeof e)return"#"===e[0]?r.Il.fromHex(e):t.getColor(e);else if(e instanceof r.Il)return e;else if("object"==typeof e)return function(e,t){var i,n,o;switch(e.op){case 0:return null===(i=t9(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(n=t9(e.value,t))||void 0===n?void 0:n.lighten(e.factor);case 2:return null===(o=t9(e.value,t))||void 0===o?void 0:o.transparent(e.factor);case 3:for(let i of e.values){let e=t9(i,t);if(e)return e}return;case 5:return t9(t.defines(e.if)?e.then:e.else,t);case 4:{let i=t9(e.value,t);if(!i)return;let n=t9(e.background,t);if(!n)return i.transparent(e.factor*e.transparency);return i.isDarkerThan(n)?r.Il.getLighterColor(i,n,e.factor).transparent(e.transparency):r.Il.getDarkerColor(i,n,e.factor).transparent(e.transparency)}default:throw(0,s.vE)(e)}}(e,t)}let ie="vscode://schemas/workbench-colors",it=c.B.as(l.I.JSONContribution);it.registerSchema(ie,h.getColorSchema());let ii=new n.pY(()=>it.notifySchemaChanged(ie),200);h.onDidChangeSchema(()=>{!ii.isScheduled()&&ii.schedule()})}}]);
|