@rsdoctor/client 0.3.2 → 0.3.4
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.
- package/dist/index.html +1 -1
- package/dist/resource/css/826.2794f707.css +4 -0
- package/dist/resource/font/{codicon.7fe16dbd.ttf → codicon.44bc17fa.ttf} +0 -0
- package/dist/resource/js/{505.b0671115.js → 826.5dba3977.js} +5 -5
- package/dist/resource/js/async/{811.1fbe2090.js → 811.aeb19dcb.js} +1 -1
- package/dist/resource/js/index.fdcaa546.js +156 -0
- package/dist/resource/js/monaco-0.92c812de.js +20 -0
- package/dist/resource/js/monaco-1.e42b60cc.js +18 -0
- package/dist/resource/js/monaco-10.4b1f76d7.js +1 -0
- package/dist/resource/js/monaco-11.3626543b.js +3 -0
- package/dist/resource/js/monaco-12.9d08b924.js +4 -0
- package/dist/resource/js/monaco-13.3d40eb04.js +1 -0
- package/dist/resource/js/monaco-14.371c9801.js +43 -0
- package/dist/resource/js/monaco-15.d73381b5.js +366 -0
- package/dist/resource/js/monaco-16.e11e3d10.js +42 -0
- package/dist/resource/js/monaco-17.f5db5e54.js +8 -0
- package/dist/resource/js/monaco-2.79f0bbbe.js +1 -0
- package/dist/resource/js/monaco-3.6eef79c7.js +14 -0
- package/dist/resource/js/monaco-4.b9b35171.js +301 -0
- package/dist/resource/js/monaco-5.0a6c00b3.js +9 -0
- package/dist/resource/js/monaco-6.042b95c8.js +3 -0
- package/dist/resource/js/monaco-7.69f7178e.js +3 -0
- package/dist/resource/js/monaco-8.480cca31.js +1 -0
- package/dist/resource/js/monaco-9.d55eba30.js +1 -0
- package/package.json +3 -3
- package/dist/resource/css/505.b09c71b1.css +0 -1
- package/dist/resource/js/index.fc9559d0.js +0 -156
- package/dist/resource/js/monaco-0.c3af1bd3.js +0 -2
- package/dist/resource/js/monaco-1.7ad7764f.js +0 -369
- package/dist/resource/js/monaco-10.4db28e1a.js +0 -4
- package/dist/resource/js/monaco-11.18edf242.js +0 -25
- package/dist/resource/js/monaco-12.f2868e03.js +0 -5
- package/dist/resource/js/monaco-13.88108488.js +0 -1
- package/dist/resource/js/monaco-14.9ed23e83.js +0 -70
- package/dist/resource/js/monaco-2.6895e134.js +0 -17
- package/dist/resource/js/monaco-3.51c02ad7.js +0 -31
- package/dist/resource/js/monaco-4.2525ec7c.js +0 -31
- package/dist/resource/js/monaco-5.5bc856bc.js +0 -1
- package/dist/resource/js/monaco-6.6e712e08.js +0 -1
- package/dist/resource/js/monaco-7.1fa8c3af.js +0 -1
- package/dist/resource/js/monaco-8.dcf3e8dc.js +0 -38
- package/dist/resource/js/monaco-9.7c59b09b.js +0 -7
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["670"],{40817:function(e,t,i){"use strict";i.d(t,{Lc:function(){return b},YH:function(){return p},gU:function(){return f}});var n=i("5623"),o=i("73115"),r=i("55952"),s=i("19711"),l=i("94260"),a=i("43777"),d=i("16234"),h=i("37764"),c=i("97147"),u=i("67414");i("9567");var g=i("94479"),m=i("58036");class p extends h.JT{get action(){return this._action}constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof d.aU&&this._register(t.onDidChange(e=>{this.element&&this.handleActionChangeEvent(e)}))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return!this._actionRunner&&(this._actionRunner=this._register(new d.Wi)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){let t=this.element=e;this._register(s.o.addTarget(e));let i=this.options&&this.options.draggable;i&&(e.draggable=!0,n.vU&&this._register((0,r.nm)(e,r.tw.DRAG_START,e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(o.g.TEXT,this._action.label)}))),this._register((0,r.nm)(t,s.t.Tap,e=>this.onClick(e,!0))),this._register((0,r.nm)(t,r.tw.MOUSE_DOWN,e=>{!i&&r.zB.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")})),c.dz&&this._register((0,r.nm)(t,r.tw.CONTEXT_MENU,e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)})),this._register((0,r.nm)(t,r.tw.CLICK,e=>{r.zB.stop(e,!0),!(this.options&&this.options.isMenu)&&this.onClick(e)})),this._register((0,r.nm)(t,r.tw.DBLCLICK,e=>{r.zB.stop(e,!0)})),[r.tw.MOUSE_UP,r.tw.MOUSE_OUT].forEach(e=>{this._register((0,r.nm)(t,e,e=>{r.zB.stop(e),t.classList.remove("active")}))})}onClick(e,t=!1){var i;r.zB.stop(e,!0);let n=u.Jp(this._context)?(null===(i=this.options)||void 0===i?void 0:i.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){var e,t,i;if(!this.element)return;let n=null!==(e=this.getTooltip())&&void 0!==e?e:"";if(this.updateAriaLabel(),null===(t=this.options.hoverDelegate)||void 0===t?void 0:t.showNativeHover)this.element.title=n;else if(this.customHover||""===n)this.customHover&&this.customHover.update(n);else{let e=null!==(i=this.options.hoverDelegate)&&void 0!==i?i:(0,l.tM)("element");this.customHover=this._store.add((0,m.B)().setupUpdatableHover(e,this.element,n))}}updateAriaLabel(){var e;if(this.element){let t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.element.setAttribute("aria-label",t)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class f extends p{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),u.p_(this.element);let t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){let e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===d.Z0.ID?"presentation":this.options.isMenu?"menuitem":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=g.NC({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),null!=e?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):null===(e=this.label)||void 0===e||e.classList.remove("codicon")}updateEnabled(){var e,t;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),null===(e=this.element)||void 0===e||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),null===(t=this.element)||void 0===t||t.classList.add("disabled"))}updateAriaLabel(){var e;if(this.label){let t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.label.setAttribute("aria-label",t)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox")):(this.label.classList.remove("checked"),this.label.removeAttribute("aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class b extends p{constructor(e,t,i,n,o,r,s){super(e,t),this.selectBox=new a.j(i,n,o,r,s),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect(e=>this.runAction(e.selected,e.index)))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){var e;null===(e=this.selectBox)||void 0===e||e.focus()}blur(){var e;null===(e=this.selectBox)||void 0===e||e.blur()}render(e){this.selectBox.render(e)}}},16046:function(e,t,i){"use strict";i("76815"),i("1175")},56045:function(e,t,i){"use strict";i.d(t,{g4:function(){return b},pG:function(){return _}});var n=i("55952"),o=i("44608"),r=i("66897"),s=i("8614"),l=i("74471"),a=i("58036"),d=i("94260"),h=i("99557"),c=i("73866"),u=i("98212"),g=i("35571"),m=i("79221");i("35435");var p=i("94479");let f=n.$,b={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class v extends c.${constructor(e,t,i){var r;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new u.Q5),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new u.Q5),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(r=this.options.tooltip)&&void 0!==r?r:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.R3(e,f(".monaco-inputbox.idle"));let l=this.options.flexibleHeight?"textarea":"input",a=n.R3(this.element,f(".ibwrapper"));if(this.input=n.R3(a,f(l+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.R3(a,f("div.mirror")),this.mirror.innerText="\xa0",this.scrollableElement=new h.NB(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.R3(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(e=>this.input.scrollTop=e.scrollTop));let t=this._register(new o.Y(e.ownerDocument,"selectionchange")),i=u.ju.filter(t.event,()=>{let t=e.ownerDocument.getSelection();return(null==t?void 0:t.anchorNode)===a});this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this._register(this.ignoreGesture(this.input)),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new s.o(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.hover?this.hover.update(e):this.hover=this._register((0,a.B)().setupUpdatableHover((0,d.tM)("mouse"),this.input,e))}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:n.wn(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return n.H9(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){var e;let t=this.input.selectionStart;if(null===t)return null;let i=null!==(e=this.input.selectionEnd)&&void 0!==e?e:t;return{start:t,end:i}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!=typeof this.cachedContentHeight||"number"!=typeof this.cachedHeight||!this.scrollableElement)return;let e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&(0,m.fS)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));let i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${n.XT(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null==e?void 0:e.type}stylesForType(e){let t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){let e,t;if(!this.contextViewProvider||!this.message)return;let i=()=>e.style.width=n.w(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:t=>{var o,s;if(!this.message)return null;e=n.R3(t,f(".monaco-inputbox-container")),i();let l={inline:!0,className:"monaco-inputbox-message"},a=this.message.formatContent?(0,r.BO)(this.message.content,l):(0,r.IY)(this.message.content,l);a.classList.add(this.classForType(this.message.type));let d=this.stylesForType(this.message.type);return a.style.backgroundColor=null!==(o=d.background)&&void 0!==o?o:"",a.style.color=null!==(s=d.foreground)&&void 0!==s?s:"",a.style.border=d.border?`1px solid ${d.border}`:"",n.R3(e,a),null},onHide:()=>{this.state="closed"},layout:i}),t=3===this.message.type?p.NC("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?p.NC("alertWarningMessage","Warning: {0}",this.message.content):p.NC("alertInfoMessage","Info: {0}",this.message.content),l.Z9(t),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;let e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText="\xa0",this.layout()}applyStyles(){var e,t,i;let o=this.options.inputBoxStyles,r=null!==(e=o.inputBackground)&&void 0!==e?e:"",s=null!==(t=o.inputForeground)&&void 0!==t?t:"",l=null!==(i=o.inputBorder)&&void 0!==i?i:"";this.element.style.backgroundColor=r,this.element.style.color=s,this.input.style.backgroundColor="inherit",this.input.style.color=s,this.element.style.border=`1px solid ${n.XT(l,"transparent")}`}layout(){if(!this.mirror)return;let e=this.cachedContentHeight;this.cachedContentHeight=n.wn(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){let t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;null!==i&&null!==n&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){var e;this._hideMessage(),this.message=null,null===(e=this.actionbar)||void 0===e||e.dispose(),super.dispose()}}class _ extends v{constructor(e,t,i){let o=p.NC({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is \u21C5 to represent the up and down arrow keys.']}," or {0} for history",`\u21C5`),r=p.NC({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is \u21C5 to represent the up and down arrow keys.']}," ({0} for history)",`\u21C5`);super(e,t,i),this._onDidFocus=this._register(new u.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new u.Q5),this.onDidBlur=this._onDidBlur.event,this.history=new g.L(i.history,100);let s=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(o)&&!this.placeholder.endsWith(r)&&this.history.getHistory().length){let e=this.placeholder.endsWith(")")?o:r,t=this.placeholder+e;i.showPlaceholderOnFocus&&!n.H9(this.input)?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver((e,t)=>{e.forEach(e=>{!e.target.textContent&&s()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>s()),this.onblur(this.input,()=>{let e=e=>{if(!this.placeholder.endsWith(e))return!1;{let t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}};!e(r)&&e(o)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){!this.history.has(this.value)&&this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=null!=e?e:"",l.i7(this.value?this.value:p.NC("clearedInput","Cleared Input"))}showPreviousValue(){!this.history.has(this.value)&&this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,l.i7(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return!e&&(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},32488:function(e,t,i){"use strict";i.d(t,{M:function(){return n}});class n{constructor(e,t,i,n,o,r){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=o,this._scrollPosition=r,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new 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,o){let r=Math.max(0,i-e),s=Math.max(0,r-2*t),l=n>0&&n>i;if(!l)return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};let a=Math.round(Math.max(20,Math.floor(i*s/n))),d=(s-a)/(n-i);return{computedAvailableSize:Math.round(r),computedIsNeeded:l,computedSliderSize:Math.round(a),computedSliderRatio:d,computedSliderPosition:Math.round(o*d)}}_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}}},73644:function(e,t,i){"use strict";i.d(t,{X4:function(){return s},jC:function(){return l},r6:function(){return a},xo:function(){return r}});var n=i("94479");class o{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;let n=[];for(let o=0,r=t.length;o<r;o++){let r=t[o],s=i(r);if(null===s)return null;n[o]=function(e,t,i){if(null===t)return"";let n=[];return e.ctrlKey&&n.push(i.ctrlKey),e.shiftKey&&n.push(i.shiftKey),e.altKey&&n.push(i.altKey),e.metaKey&&n.push(i.metaKey),""!==t&&n.push(t),n.join(i.separator)}(r,s,this.modifierLabels[e])}return n.join(" ")}}let r=new o({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:n.NC({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:n.NC({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:n.NC({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:n.NC({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),s=new o({ctrlKey:n.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"optKey.long",comment:["This is the long form for the Alt/Option key on the keyboard"]},"Option"),metaKey:n.NC({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:n.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:n.NC({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:n.NC({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:n.NC({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:n.NC({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"}),l=new o({ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Cmd",separator:"+"},{ctrlKey:"Ctrl",shiftKey:"Shift",altKey:"Alt",metaKey:"Super",separator:"+"}),a=new o({ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"cmd",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"win",separator:"+"},{ctrlKey:"ctrl",shiftKey:"shift",altKey:"alt",metaKey:"meta",separator:"+"})},56136:function(e,t,i){"use strict";i.d(t,{Be:function(){return o.Be},DN:function(){return n.DN},Dz:function(){return s.Dz},EH:function(){return r.EH},F_:function(){return l.F},GN:function(){return s.GN},PS:function(){return n.PS},UV:function(){return r.UV},aK:function(){return o.aK},aq:function(){return s.aq},bk:function(){return o.bk},c8:function(){return n.c8},gp:function(){return r.gp},jx:function(){return s.DN},nJ:function(){return r.nJ},nK:function(){return o.nK},rD:function(){return s.rD},uh:function(){return n.uh}});var n=i("10361"),o=i("89888"),r=i("4984"),s=i("60987"),l=i("21333"),a=i("30908")},80928:function(e,t,i){"use strict";i.d(t,{Rm:function(){return s}});var n=i("98212"),o=i("37764");class r{constructor(e,t,i,n,o,r,s){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,n|=0,o|=0,r|=0,s|=0),this.rawScrollLeft=n,this.rawScrollTop=s,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),o<0&&(o=0),s+o>r&&(s=r-o),s<0&&(s=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=o,this.scrollHeight=r,this.scrollTop=s}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new r(this._forceIntegerValues,void 0!==e.width?e.width:this.width,void 0!==e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,void 0!==e.height?e.height:this.height,void 0!==e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new r(this._forceIntegerValues,this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){let i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,s=this.scrollHeight!==e.scrollHeight,l=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:r,scrollHeightChanged:s,scrollTopChanged:l}}}class s extends o.JT{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.Q5),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new r(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;let n=this._state.withScrollDimensions(e,t);this._setState(n,!!this._smoothScrolling),null===(i=this._smoothScrolling)||void 0===i||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){let t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){let i;e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};let n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;i=t?new d(this._smoothScrolling.from,n,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=i}else{let t=this._state.withScrollPosition(e);this._smoothScrolling=d.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;let e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);if(this._setState(t,!0),this._smoothScrolling){if(e.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(e,t){let i=this._state;!i.equals(e)&&(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class l{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function a(e,t){let i=t-e;return function(t){return e+i*function(e){return 1-Math.pow(1-e,3)}(t)}}class d{constructor(e,t,i,n){this.from=e,this.to=t,this.duration=n,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){var n,o,r;let s,l;return e<t?(s=e+.75*i,l=t-.75*i):(s=e-.75*i,l=t+.75*i),n=a(e,s),o=a(l,t),r=.33,function(e){return e<.33?n(e/r):o((e-r)/(1-r))}}return a(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){let t=(e-this.startTime)/this.duration;if(t<1){let e=this.scrollLeft(t);return new l(e,this.scrollTop(t),!1)}return new l(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,i){return d.start(e,t,i)}static start(e,t,i){return i+=10,new d(e,t,Date.now()-10,i)}}},74907:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return s}});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,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:"'"},{open:"<",close:">"}],folding:{markers:{start:RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},o=e=>e.charAt(0).toUpperCase()+e.substr(1),r=[];["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"].forEach(e=>{r.push(e),r.push(e.toUpperCase()),r.push(o(e))});var s={defaultToken:"",tokenPostfix:".apex",keywords:r,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},6298:function(e,t,i){"use strict";let n;i.r(t),i.d(t,{conf:function(){return s},language:function(){return l}});var o=(n="[_a-zA-Z][_a-zA-Z0-9]*",`\\b${n}\\b`),r=`[ \\t\\r\\n]`,s={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:":.,=}])' \n ",indentationRules:{increaseIndentPattern:RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},l={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:["targetScope","resource","module","param","var","output","for","in","if","existing"],namedLiterals:["true","false","null"],escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:"(|'|'')[^']",action:{token:"string"}},{regex:"'''",action:{token:"string.quote",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"[^\\\\'$]+",action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:"'",action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:r},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:"'''",action:{token:"string.quote",next:"@stringVerbatim"}},{regex:"'",action:{token:"string.quote",next:"@stringLiteral"}},{regex:"[0-9]+",action:{token:"number"}},{regex:o,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}}]}}},63258:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"#"},brackets:[["[","]"],["<",">"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}],surroundingPairs:[{open:"[",close:"]"},{open:"<",close:">"},{open:"(",close:")"}]},o={defaultToken:"",tokenPostfix:".pla",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"<",close:">",token:"delimiter.angle"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:[".i",".o",".mv",".ilb",".ob",".label",".type",".phase",".pair",".symbolic",".symbolic-output",".kiss",".p",".e",".end"],comment:/#.*$/,identifier:/[a-zA-Z]+[a-zA-Z0-9_\-]*/,plaContent:/[01\-~\|]+/,tokenizer:{root:[{include:"@whitespace"},[/@comment/,"comment"],[/\.([a-zA-Z_\-]+)/,{cases:{"@eos":{token:"keyword.$1"},"@keywords":{cases:{".type":{token:"keyword.$1",next:"@type"},"@default":{token:"keyword.$1",next:"@keywordArg"}}},"@default":{token:"keyword.$1"}}}],[/@identifier/,"identifier"],[/@plaContent/,"string"]],whitespace:[[/[ \t\r\n]+/,""]],type:[{include:"@whitespace"},[/\w+/,{token:"type",next:"@pop"}]],keywordArg:[[/[ \t\r\n]+/,{cases:{"@eos":{token:"",next:"@pop"},"@default":""}}],[/@comment/,"comment","@pop"],[/[<>()\[\]]/,{cases:{"@eos":{token:"@brackets",next:"@pop"},"@default":"@brackets"}}],[/\-?\d+/,{cases:{"@eos":{token:"number",next:"@pop"},"@default":"number"}}],[/@identifier/,{cases:{"@eos":{token:"identifier",next:"@pop"},"@default":"identifier"}}],[/[;=]/,{cases:{"@eos":{token:"delimiter",next:"@pop"},"@default":"delimiter"}}]]}}},17562:function(e,t,i){"use strict";(0,i("88814").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"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"95959"))})},85255:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"#",blockComment:["=begin","=end"]},brackets:[["(",")"],["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],indentationRules:{increaseIndentPattern:RegExp("^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\\b)|([^#]*=\\s*(case|if|unless)))\\\b([^#\\{;]|(\"|'|/).*\\4)*(#.*)?$"),decreaseIndentPattern:RegExp("^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)")}},o={tokenPostfix:".ruby",keywords:["__LINE__","__ENCODING__","__FILE__","BEGIN","END","alias","and","begin","break","case","class","def","defined?","do","else","elsif","end","ensure","for","false","if","in","module","next","nil","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield"],keywordops:["::","..","...","?",":","=>"],builtins:["require","public","private","include","extend","attr_reader","protected","private_class_method","protected_class_method","new"],declarations:["module","class","def","case","do","begin","for","if","while","until","unless"],linedecls:["def","case","do","begin","for","if","while","until","unless"],operators:["^","&","|","<=>","==","===","!~","=~",">",">=","<","<=","<<",">>","+","-","*","/","%","**","~","+@","-@","[]","[]=","`","+=","-=","*=","**=","/=","^=","%=","<<=",">>=","&=","&&=","||=","|="],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],symbols:/[=><!~?:&|+\-*\/\^%\.]+/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,decpart:/\d(_?\d)*/,decimal:/0|@decpart/,delim:/[^a-zA-Z0-9\s\n\r]/,heredelim:/(?:\w+|'[^']*'|"[^"]*"|`[^`]*`)/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[AzZbBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})?/,tokenizer:{root:[[/^(\s*)([a-z_]\w*[!?=]?)/,["white",{cases:{"for|until|while":{token:"keyword.$2",next:"@dodecl.$2"},"@declarations":{token:"keyword.$2",next:"@root.$2"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}]],[/[a-z_]\w*[!?=]?/,{cases:{"if|unless|while|until":{token:"keyword.$0x",next:"@modifier.$0x"},for:{token:"keyword.$2",next:"@dodecl.$2"},"@linedecls":{token:"keyword.$0",next:"@root.$0"},end:{token:"keyword.$S2",next:"@pop"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],[/[A-Z][\w]*[!?=]?/,"constructor.identifier"],[/\$[\w]*/,"global.constant"],[/@[\w]*/,"namespace.instance.identifier"],[/@@@[\w]*/,"namespace.class.identifier"],[/<<[-~](@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/[ \t\r\n]+<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],[/^<<(@heredelim).*/,{token:"string.heredoc.delimiter",next:"@heredoc.$1"}],{include:"@whitespace"},[/"/,{token:"string.d.delim",next:'@dstring.d."'}],[/'/,{token:"string.sq.delim",next:"@sstring.sq"}],[/%([rsqxwW]|Q?)/,{token:"@rematch",next:"pstring"}],[/`/,{token:"string.x.delim",next:"@dstring.x.`"}],[/:(\w|[$@])\w*[!?=]?/,"string.s"],[/:"/,{token:"string.s.delim",next:'@dstring.s."'}],[/:'/,{token:"string.s.delim",next:"@sstring.s"}],[/\/(?=(\\\/|[^\/\n])+\/)/,{token:"regexp.delim",next:"@regexp"}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@keywordops":"keyword","@operators":"operator","@default":""}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/0[dD]@decpart/,"number"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)/,{cases:{$1:"number.float","@default":"number"}}]],dodecl:[[/^/,{token:"",switchTo:"@root.$S2"}],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},do:{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],modifier:[[/^/,"","@pop"],[/[a-z_]\w*[!?=]?/,{cases:{end:{token:"keyword.$S2",next:"@pop"},"then|else|elsif|do":{token:"keyword",switchTo:"@root.$S2"},"@linedecls":{token:"@rematch",switchTo:"@root.$S2"},"@keywords":"keyword","@builtins":"predefined","@default":"identifier"}}],{include:"@root"}],sstring:[[/[^\\']+/,"string.$S2"],[/\\\\|\\'|\\$/,"string.$S2.escape"],[/\\./,"string.$S2.invalid"],[/'/,{token:"string.$S2.delim",next:"@pop"}]],dstring:[[/[^\\`"#]+/,"string.$S2"],[/#/,"string.$S2.escape","@interpolated"],[/\\$/,"string.$S2.escape"],[/@escapes/,"string.$S2.escape"],[/\\./,"string.$S2.escape.invalid"],[/[`"]/,{cases:{"$#==$S3":{token:"string.$S2.delim",next:"@pop"},"@default":"string.$S2"}}]],heredoc:[[/^(\s*)(@heredelim)$/,{cases:{"$2==$S2":["string.heredoc",{token:"string.heredoc.delimiter",next:"@pop"}],"@default":["string.heredoc","string.heredoc"]}}],[/.*/,"string.heredoc"]],interpolated:[[/\$\w*/,"global.constant","@pop"],[/@\w*/,"namespace.class.identifier","@pop"],[/@@@\w*/,"namespace.instance.identifier","@pop"],[/[{]/,{token:"string.escape.curly",switchTo:"@interpolated_compound"}],["","","@pop"]],interpolated_compound:[[/[}]/,{token:"string.escape.curly",next:"@pop"}],{include:"@root"}],pregexp:[{include:"@whitespace"},[/[^\(\{\[\\]/,{cases:{"$#==$S3":{token:"regexp.delim",next:"@pop"},"$#==$S2":{token:"regexp.delim",next:"@push"},"~[)}\\]]":"@brackets.regexp.escape.control","~@regexpctl":"regexp.escape.control","@default":"regexp"}}],{include:"@regexcontrol"}],regexp:[{include:"@regexcontrol"},[/[^\\\/]/,"regexp"],["/[ixmp]*",{token:"regexp.delim"},"@pop"]],regexcontrol:[[/(\{)(\d+(?:,\d*)?)(\})/,["@brackets.regexp.escape.control","regexp.escape.control","@brackets.regexp.escape.control"]],[/(\[)(\^?)/,["@brackets.regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?[:=!])/,["@brackets.regexp.escape.control","regexp.escape.control"]],[/\(\?#/,{token:"regexp.escape.control",next:"@regexpcomment"}],[/[()]/,"@brackets.regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/#/,"regexp.escape","@interpolated"]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/\\$/,"regexp.escape"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,"@brackets.regexp.escape.control","@pop"]],regexpcomment:[[/[^)]+/,"comment"],[/\)/,{token:"regexp.escape.control",next:"@pop"}]],pstring:[[/%([qws])\(/,{token:"string.$1.delim",switchTo:"@qstring.$1.(.)"}],[/%([qws])\[/,{token:"string.$1.delim",switchTo:"@qstring.$1.[.]"}],[/%([qws])\{/,{token:"string.$1.delim",switchTo:"@qstring.$1.{.}"}],[/%([qws])</,{token:"string.$1.delim",switchTo:"@qstring.$1.<.>"}],[/%([qws])(@delim)/,{token:"string.$1.delim",switchTo:"@qstring.$1.$2.$2"}],[/%r\(/,{token:"regexp.delim",switchTo:"@pregexp.(.)"}],[/%r\[/,{token:"regexp.delim",switchTo:"@pregexp.[.]"}],[/%r\{/,{token:"regexp.delim",switchTo:"@pregexp.{.}"}],[/%r</,{token:"regexp.delim",switchTo:"@pregexp.<.>"}],[/%r(@delim)/,{token:"regexp.delim",switchTo:"@pregexp.$1.$1"}],[/%(x|W|Q?)\(/,{token:"string.$1.delim",switchTo:"@qqstring.$1.(.)"}],[/%(x|W|Q?)\[/,{token:"string.$1.delim",switchTo:"@qqstring.$1.[.]"}],[/%(x|W|Q?)\{/,{token:"string.$1.delim",switchTo:"@qqstring.$1.{.}"}],[/%(x|W|Q?)</,{token:"string.$1.delim",switchTo:"@qqstring.$1.<.>"}],[/%(x|W|Q?)(@delim)/,{token:"string.$1.delim",switchTo:"@qqstring.$1.$2.$2"}],[/%([rqwsxW]|Q?)./,{token:"invalid",next:"@pop"}],[/./,{token:"invalid",next:"@pop"}]],qstring:[[/\\$/,"string.$S2.escape"],[/\\./,"string.$S2.escape"],[/./,{cases:{"$#==$S4":{token:"string.$S2.delim",next:"@pop"},"$#==$S3":{token:"string.$S2.delim",next:"@push"},"@default":"string.$S2"}}]],qqstring:[[/#/,"string.$S2.escape","@interpolated"],{include:"@qstring"}],whitespace:[[/[ \t\r\n]+/,""],[/^\s*=begin\b/,"comment","@comment"],[/#.*$/,"comment"]],comment:[[/[^=]+/,"comment"],[/^\s*=begin\b/,"comment.invalid"],[/^\s*=end\b.*/,"comment","@pop"],[/[=]/,"comment"]]}}},13473:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"'",close:"'",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},o={defaultToken:"",tokenPostfix:".rq",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["add","as","asc","ask","base","by","clear","construct","copy","create","data","delete","desc","describe","distinct","drop","false","filter","from","graph","group","having","in","insert","limit","load","minus","move","named","not","offset","optional","order","prefix","reduced","select","service","silent","to","true","undef","union","using","values","where","with"],builtinFunctions:["a","abs","avg","bind","bnode","bound","ceil","coalesce","concat","contains","count","datatype","day","encode_for_uri","exists","floor","group_concat","hours","if","iri","isblank","isiri","isliteral","isnumeric","isuri","lang","langmatches","lcase","max","md5","min","minutes","month","now","rand","regex","replace","round","sameterm","sample","seconds","sha1","sha256","sha384","sha512","str","strafter","strbefore","strdt","strends","strlang","strlen","strstarts","struuid","substr","sum","timezone","tz","ucase","uri","uuid","year"],ignoreCase:!0,tokenizer:{root:[[/<[^\s\u00a0>]*>?/,"tag"],{include:"@strings"},[/#.*/,"comment"],[/[{}()\[\]]/,"@brackets"],[/[;,.]/,"delimiter"],[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,"tag"],[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/,"tag"],[/[$?]?[_\w\d]+/,{cases:{"@keywords":{token:"keyword"},"@builtinFunctions":{token:"predefined.sql"},"@default":"identifier"}}],[/\^\^/,"operator.sql"],[/\^[*+\-<>=&|^\/!?]*/,"operator.sql"],[/[*+\-<>=&|\/!?]/,"operator.sql"],[/@[a-z\d\-]*/,"metatag.html"],[/\s+/,"white"]],strings:[[/'([^'\\]|\\.)*$/,"string.invalid"],[/'$/,"string.sql","@pop"],[/'/,"string.sql","@stringBody"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"$/,"string.sql","@pop"],[/"/,"string.sql","@dblStringBody"]],stringBody:[[/[^\\']+/,"string.sql"],[/\\./,"string.escape"],[/'/,"string.sql","@pop"]],dblStringBody:[[/[^\\"]+/,"string.sql"],[/\\./,"string.escape"],[/"/,"string.sql","@pop"]]}}},31759:function(e,t,i){"use strict";i.d(t,{i:function(){return o}});var n=i("83117");class o extends n.O{}},42048:function(e,t,i){"use strict";i.d(t,{Ib:function(){return h},Ip:function(){return d}});var n=i("40013"),o=i("7374"),r=i("89640"),s=i("55497");class l extends s.E{constructor(e){super(e),this._visibleLines=new r.G(this),this.domNode=this._visibleLines.domNode;let t=this._context.configuration.options.get(50);(0,o.N)(this.domNode,t),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++)if(this._dynamicOverlays[e].shouldRender())return!0;return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++)this._dynamicOverlays[e].dispose();this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new a(this._dynamicOverlays)}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);let t=this._context.configuration.options.get(50);return(0,o.N)(this.domNode,t),!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){let t=this._dynamicOverlays.filter(e=>e.shouldRender());for(let i=0,n=t.length;i<n;i++){let n=t[i];n.prepareRender(e),n.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class a{constructor(e){this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=(0,n.X)(e)}onContentChanged(){}onTokensChanged(){}renderLine(e,t,i,n,o){let r="";for(let t=0,i=this._dynamicOverlays.length;t<i;t++)r+=this._dynamicOverlays[t].render(n.startLineNumber,e);return this._renderedContent!==r&&(this._renderedContent=r,o.appendString('<div style="top:'),o.appendString(String(t)),o.appendString("px;height:"),o.appendString(String(i)),o.appendString('px;">'),o.appendString(r),o.appendString("</div>"),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class d extends l{constructor(e){super(e);let t=this._context.configuration.options.get(145);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){let t=this._context.configuration.options.get(145);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class h extends l{constructor(e){super(e);let t=this._context.configuration.options,i=t.get(145);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,o.N)(this.domNode,t.get(50))}onConfigurationChanged(e){let t=this._context.configuration.options;(0,o.N)(this.domNode,t.get(50));let i=t.get(145);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);let t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}},11454:function(e,t,i){"use strict";i.d(t,{z:function(){return r}});var n=i("40013");i("74644");var o=i("55497");class r extends o.E{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=(0,n.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1,t=this._context.configuration.options.get(145),i=t.contentWidth-t.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);let n=t.contentLeft;return this.contentLeft!==n&&(this.contentLeft=n,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){var t;let i=0;for(let o of e.getDecorationsInViewport()){let r,s;if(!o.options.blockClassName)continue;let l=this.blocks[i];!l&&(l=this.blocks[i]=(0,n.X)(document.createElement("div")),this.domNode.appendChild(l)),o.options.blockIsAfterEnd?(r=e.getVerticalOffsetAfterLineNumber(o.range.endLineNumber,!1),s=e.getVerticalOffsetAfterLineNumber(o.range.endLineNumber,!0)):(r=e.getVerticalOffsetForLineNumber(o.range.startLineNumber,!0),s=o.range.isEmpty()&&!o.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(o.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(o.range.endLineNumber,!0));let[a,d,h,c]=null!==(t=o.options.blockPadding)&&void 0!==t?t:[0,0,0,0];l.setClassName("blockDecorations-block "+o.options.blockClassName),l.setLeft(this.contentLeft-c),l.setWidth(this.contentWidth+c+d),l.setTop(r-e.scrollTop-a),l.setHeight(s-r+a+h),i++}for(let e=i;e<this.blocks.length;e++)this.blocks[e].domNode.remove();this.blocks.length=i}}},3449:function(e,t,i){"use strict";i.d(t,{X:function(){return K},y:function(){return B}});var n,o,r=i("55952"),s=i("53753"),l=i("8614"),a=i("99557"),d=i("16234"),h=i("47983"),c=i("76115"),u=i("37764"),g=i("56136"),m=i("34308"),p=i("7374"),f=i("68919"),b=i("97295"),v=i("8773"),_=i("17202"),k=i("70668"),y=i("83112"),C=i("33852"),w=i("51405"),S=i("89821"),L=i("35087"),x=i("3907"),N=i("94479"),D=i("65488"),T=i("95449"),I=i("16445");i("94134");var E=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},P=function(e,t){return function(i,n){t(i,n,e)}};let F=(0,I.q5)("diff-review-insert",c.l.add,(0,N.NC)("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),R=(0,I.q5)("diff-review-remove",c.l.remove,(0,N.NC)("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),M=(0,I.q5)("diff-review-close",c.l.close,(0,N.NC)("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer.")),B=class extends u.JT{constructor(e,t,i,n,o,r,s,l,a){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=n,this._width=o,this._height=r,this._diffs=s,this._models=l,this._instantiationService=a,this._state=(0,g.Be)(this,(e,t)=>{let i=this._visible.read(e);if(this._parentNode.style.visibility=i?"visible":"hidden",!i)return null;let n=t.add(this._instantiationService.createInstance(O,this._diffs,this._models,this._setVisible,this._canClose)),o=t.add(this._instantiationService.createInstance($,this._parentNode,n,this._width,this._height,this._models));return{model:n,view:o}}).recomputeInitiallyAndOnChange(this._store)}next(){(0,g.PS)(e=>{let t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)})}prev(){(0,g.PS)(e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)})}close(){(0,g.PS)(e=>{this._setVisible(!1,e)})}};B._ttPolicy=(0,s.Z)("diffReview",{createHTML:e=>e}),B=E([P(8,T.TG)],B);let O=class extends u.JT{constructor(e,t,i,n,r){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=n,this._accessibilitySignalService=r,this._groups=(0,g.uh)(this,[]),this._currentGroupIdx=(0,g.uh)(this,0),this._currentElementIdx=(0,g.uh)(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map((e,t)=>this._groups.read(t)[e]),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map((e,t)=>{var i;return null===(i=this.currentGroup.read(t))||void 0===i?void 0:i.lines[e]}),this._register((0,g.EH)(e=>{let t=this._diffs.read(e);if(!t){this._groups.set([],void 0);return}let i=function(e,t,i){let n=[];for(let o of(0,h.mw)(e,(e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<6)){let e=[];e.push(new A);let r=new v.z(Math.max(1,o[0].original.startLineNumber-3),Math.min(o[o.length-1].original.endLineNumberExclusive+3,t+1)),s=new v.z(Math.max(1,o[0].modified.startLineNumber-3),Math.min(o[o.length-1].modified.endLineNumberExclusive+3,i+1));(0,h.zy)(o,(t,i)=>{let n=new v.z(t?t.original.endLineNumberExclusive:r.startLineNumber,i?i.original.startLineNumber:r.endLineNumberExclusive),o=new v.z(t?t.modified.endLineNumberExclusive:s.startLineNumber,i?i.modified.startLineNumber:s.endLineNumberExclusive);n.forEach(t=>{e.push(new W(t,o.startLineNumber+(t-n.startLineNumber)))}),i&&(i.original.forEach(t=>{e.push(new V(i,t))}),i.modified.forEach(t=>{e.push(new z(i,t))}))});let l=o[0].modified.join(o[o.length-1].modified),a=o[0].original.join(o[o.length-1].original);n.push(new H(new C.f0(l,a),e))}return n}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,g.PS)(e=>{let t=this._models.getModifiedPosition();if(t){let n=i.findIndex(e=>(null==t?void 0:t.lineNumber)<e.range.modified.endLineNumberExclusive);-1!==n&&this._currentGroupIdx.set(n,e)}this._groups.set(i,e)})})),this._register((0,g.EH)(e=>{let t=this.currentElement.read(e);(null==t?void 0:t.type)===o.Deleted?this._accessibilitySignalService.playSignal(D.iP.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):(null==t?void 0:t.type)===o.Added&&this._accessibilitySignalService.playSignal(D.iP.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})})),this._register((0,g.EH)(e=>{var t;let i=this.currentElement.read(e);if(i&&i.type!==o.Header){let e=null!==(t=i.modifiedLineNumber)&&void 0!==t?t:i.diff.modified.startLineNumber;this._models.modifiedSetSelection(y.e.fromPositions(new k.L(e,1)))}}))}_goToGroupDelta(e,t){let i=this.groups.get();i&&!(i.length<=1)&&(0,g.c8)(t,t=>{this._currentGroupIdx.set(_.q.ofLength(i.length).clipCyclic(this._currentGroupIdx.get()+e),t),this._currentElementIdx.set(0,t)})}nextGroup(e){this._goToGroupDelta(1,e)}previousGroup(e){this._goToGroupDelta(-1,e)}_goToLineDelta(e){let t=this.currentGroup.get();t&&!(t.lines.length<=1)&&(0,g.PS)(i=>{this._currentElementIdx.set(_.q.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)})}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){let t=this.currentGroup.get();if(!t)return;let i=t.lines.indexOf(e);-1!==i&&(0,g.PS)(e=>{this._currentElementIdx.set(i,e)})}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);let e=this.currentElement.get();e&&(e.type===o.Deleted?this._models.originalReveal(y.e.fromPositions(new k.L(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==o.Header?y.e.fromPositions(new k.L(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};O=E([P(4,D.IV)],O);(n=o||(o={}))[n.Header=0]="Header",n[n.Unchanged=1]="Unchanged",n[n.Deleted=2]="Deleted",n[n.Added=3]="Added";class H{constructor(e,t){this.range=e,this.lines=t}}class A{constructor(){this.type=o.Header}}class V{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=o.Deleted,this.modifiedLineNumber=void 0}}class z{constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=o.Added,this.originalLineNumber=void 0}}class W{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=o.Unchanged}}let $=class extends u.JT{constructor(e,t,i,n,o,s){super(),this._element=e,this._model=t,this._width=i,this._height=n,this._models=o,this._languageService=s,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";let h=document.createElement("div");h.className="diff-review-actions",this._actionBar=this._register(new l.o(h)),this._register((0,g.EH)(e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(new d.aU("diffreview.close",(0,N.NC)("label.close","Close"),"close-diff-review "+m.k.asClassName(M),!0,async()=>t.close()),{label:!1,icon:!0})})),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new a.s$(this._content,{})),(0,r.mc)(this.domNode,this._scrollbar.getDomNode(),h),this._register((0,g.EH)(e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode()})),this._register((0,u.OF)(()=>{(0,r.mc)(this.domNode)})),this._register((0,f.bg)(this.domNode,{width:this._width,height:this._height})),this._register((0,f.bg)(this._content,{width:this._width,height:this._height})),this._register((0,g.gp)((e,t)=>{this._model.currentGroup.read(e),this._render(t)})),this._register((0,r.mu)(this.domNode,"keydown",e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._model.goToNextLine()),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._model.goToPreviousLine()),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this._model.close()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this._model.revealCurrentElementInEditor())}))}_render(e){let t=this._models.getOriginalOptions(),i=this._models.getModifiedOptions(),n=document.createElement("div");n.className="diff-review-table",n.setAttribute("role","list"),n.setAttribute("aria-label",(0,N.NC)("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),(0,p.N)(n,i.get(50)),(0,r.mc)(this._content,n);let s=this._models.getOriginalModel(),l=this._models.getModifiedModel();if(!s||!l)return;let a=s.getOptions(),d=l.getOptions(),h=i.get(67),c=this._model.currentGroup.get();for(let u of(null==c?void 0:c.lines)||[]){let m;if(!c)break;if(u.type===o.Header){let e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");let t=c.range,i=this._model.currentGroupIndex.get(),n=this._model.groups.get().length,o=e=>0===e?(0,N.NC)("no_lines_changed","no lines changed"):1===e?(0,N.NC)("one_line_changed","1 line changed"):(0,N.NC)("more_lines_changed","{0} lines changed",e),r=o(t.original.length),s=o(t.modified.length);e.setAttribute("aria-label",(0,N.NC)({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,n,t.original.startLineNumber,r,t.modified.startLineNumber,s));let l=document.createElement("div");l.className="diff-review-cell diff-review-summary",l.appendChild(document.createTextNode(`${i+1}/${n}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(l),m=e}else m=this._createRow(u,h,this._width.get(),t,s,a,i,l,d);n.appendChild(m);let p=(0,g.nK)(e=>this._model.currentElement.read(e)===u);e.add((0,g.EH)(e=>{let t=p.read(e);m.tabIndex=t?0:-1,t&&m.focus()})),e.add((0,r.nm)(m,"focus",()=>{this._model.goToLine(u)}))}this._scrollbar.scanDomNode()}_createRow(e,t,i,n,r,s,l,a,d){let h;let c=n.get(145),u=c.glyphMarginWidth+c.lineNumbersWidth,g=l.get(145),p=10+g.glyphMarginWidth+g.lineNumbersWidth,f="diff-review-row",b="",v=null;switch(e.type){case o.Added:f="diff-review-row line-insert",b=" char-insert",v=F;break;case o.Deleted:f="diff-review-row line-delete",b=" char-delete",v=R}let _=document.createElement("div");_.style.minWidth=i+"px",_.className=f,_.setAttribute("role","listitem"),_.ariaLevel="";let k=document.createElement("div");k.className="diff-review-cell",k.style.height=`${t}px`,_.appendChild(k);let y=document.createElement("span");y.style.width=u+"px",y.style.minWidth=u+"px",y.className="diff-review-line-number"+b,void 0!==e.originalLineNumber?y.appendChild(document.createTextNode(String(e.originalLineNumber))):y.innerText="\xa0",k.appendChild(y);let C=document.createElement("span");C.style.width=p+"px",C.style.minWidth=p+"px",C.style.paddingRight="10px",C.className="diff-review-line-number"+b,void 0!==e.modifiedLineNumber?C.appendChild(document.createTextNode(String(e.modifiedLineNumber))):C.innerText="\xa0",k.appendChild(C);let w=document.createElement("span");if(w.className="diff-review-spacer",v){let e=document.createElement("span");e.className=m.k.asClassName(v),e.innerText="\xa0\xa0",w.appendChild(e)}else w.innerText="\xa0\xa0";if(k.appendChild(w),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,l,d.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);B._ttPolicy&&(t=B._ttPolicy.createHTML(t)),k.insertAdjacentHTML("beforeend",t),h=a.getLineContent(e.modifiedLineNumber)}else{let t=this._getLineHtml(r,n,s.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);B._ttPolicy&&(t=B._ttPolicy.createHTML(t)),k.insertAdjacentHTML("beforeend",t),h=r.getLineContent(e.originalLineNumber)}0===h.length&&(h=(0,N.NC)("blankLine","blank"));let S="";switch(e.type){case o.Unchanged:S=e.originalLineNumber===e.modifiedLineNumber?(0,N.NC)({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",h,e.originalLineNumber):(0,N.NC)("equalLine","{0} original line {1} modified line {2}",h,e.originalLineNumber,e.modifiedLineNumber);break;case o.Added:S=(0,N.NC)("insertLine","+ {0} modified line {1}",h,e.modifiedLineNumber);break;case o.Deleted:S=(0,N.NC)("deleteLine","- {0} original line {1}",h,e.originalLineNumber)}return _.setAttribute("aria-label",S),_}_getLineHtml(e,t,i,n,o){let r=e.getLineContent(n),s=t.get(50),l=S.A.createEmpty(r,o),a=x.wA.isBasicASCII(r,e.mightContainNonBasicASCII()),d=x.wA.containsRTL(r,a,e.mightContainRTL());return(0,L.tF)(new L.IJ(s.isMonospace&&!t.get(33),s.canUseHalfwidthRightwardsArrow,r,!1,a,d,0,l,[],i,0,s.spaceWidth,s.middotWidth,s.wsmiddotWidth,t.get(117),t.get(99),t.get(94),t.get(51)!==b.n0.OFF,null)).html}};$=E([P(5,w.O)],$);class K{constructor(e){this.editors=e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus()}modifiedSetSelection(e){this.editors.modified.setSelection(e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){var e;return null!==(e=this.editors.modified.getPosition())&&void 0!==e?e:void 0}}},42197:function(e,t,i){"use strict";i.d(t,{c:function(){return m}});var n=i("98212"),o=i("37764"),r=i("56136"),s=i("57928"),l=i("87142"),a=i("97295"),d=i("70668"),h=i("94479"),c=i("95449"),u=i("81171"),g=function(e,t){return function(i,n){t(i,n,e)}};let m=class extends o.JT{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,o,l,a,h){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=o,this._createInnerEditor=l,this._instantiationService=a,this._keybindingService=h,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new n.Q5),this.modifiedScrollTop=(0,r.rD)(this.modified.onDidScrollChange,()=>this.modified.getScrollTop()),this.modifiedScrollHeight=(0,r.rD)(this.modified.onDidScrollChange,()=>this.modified.getScrollHeight()),this.modifiedModel=(0,s.b)(this.modified).model,this.modifiedSelections=(0,r.rD)(this.modified.onDidChangeCursorSelection,()=>{var e;return null!==(e=this.modified.getSelections())&&void 0!==e?e:[]}),this.modifiedCursor=(0,r.bk)({owner:this,equalsFn:d.L.equals},e=>{var t,i;return null!==(i=null===(t=this.modifiedSelections.read(e)[0])||void 0===t?void 0:t.getPosition())&&void 0!==i?i:new d.L(1,1)}),this.originalCursor=(0,r.rD)(this.original.onDidChangeCursorPosition,()=>{var e;return null!==(e=this.original.getPosition())&&void 0!==e?e:new d.L(1,1)}),this._argCodeEditorWidgetOptions=null,this._register((0,r.nJ)({createEmptyChangeSummary:()=>({}),handleChange:(e,t)=>(e.didChange(i.editorOptions)&&Object.assign(t,e.change.changedOptions),!0)},(e,t)=>{i.editorOptions.read(e),this._options.renderSideBySide.read(e),this.modified.updateOptions(this._adjustOptionsForRightHandSide(e,t)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(e,t))}))}_createLeftHandSideEditor(e,t){let i=this._adjustOptionsForLeftHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return n.setContextValue("isInDiffLeftEditor",!0),n}_createRightHandSideEditor(e,t){let i=this._adjustOptionsForRightHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return n.setContextValue("isInDiffRightEditor",!0),n}_constructInnerEditor(e,t,i,n){let o=this._createInnerEditor(e,t,i,n);return this._register(o.onDidContentSizeChange(e=>{let t=this.original.getContentWidth()+this.modified.getContentWidth()+l.U.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})})),o}_adjustOptionsForLeftHandSide(e,t){let i=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(i.ariaLabel=t.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(e,t){let i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=a.BH.revealHorizontalRightPadding.defaultValue+l.U.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){let t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){var t;!e&&(e="");let i=(0,h.NC)("diff-aria-navigation-tip"," use {0} to open the accessibility help.",null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp"))||void 0===t?void 0:t.getAriaLabel());return this._options.accessibilityVerbose.get()?e+i:e?e.replaceAll(i,""):""}};m=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([g(5,c.TG),g(6,u.d)],m)},42299:function(e,t,i){"use strict";i.d(t,{C:function(){return o}});var n=i("98212");let o=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new n.Q5,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},22970:function(e,t,i){"use strict";i.d(t,{s:function(){return h}});var n=i("47983"),o=i("65910"),r=i("6950"),s=i("26062"),l=i("70668"),a=i("83112"),d=i("98681");class h{constructor(e){this.context=e,this.cursors=[new s.C(e)],this.lastAddedCursorIndex=0}dispose(){for(let e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(let e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(let e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(let e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(e=>e.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(e=>e.asCursorState())}getViewPositions(){return this.cursors.map(e=>e.viewState.position)}getTopMostViewPosition(){return(0,o.vm)(this.cursors,(0,n.tT)(e=>e.viewState.position,l.L.compare)).viewState.position}getBottomMostViewPosition(){return(0,o.BS)(this.cursors,(0,n.tT)(e=>e.viewState.position,l.L.compare)).viewState.position}getSelections(){return this.cursors.map(e=>e.modelState.selection)}getViewSelections(){return this.cursors.map(e=>e.viewState.selection)}setSelections(e){this.setStates(r.Vi.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){let t=this.cursors.length-1,i=e.length;if(t<i){let e=i-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>i){let e=t-i;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.cursors.length-2)}for(let t=0;t<i;t++)this.cursors[t+1].setState(this.context,e[t].modelState,e[t].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.cursors.push(new s.C(this.context)),this.lastAddedCursorIndex=this.cursors.length-1}getLastAddedCursorIndex(){return 1===this.cursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;let e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;i<n;i++)t.push({index:i,selection:e[i].modelState.selection});t.sort((0,n.tT)(e=>e.selection,a.e.compareRangesUsingStarts));for(let i=0;i<t.length-1;i++){let n;let o=t[i],s=t[i+1],l=o.selection,a=s.selection;if(this.context.cursorConfig.multiCursorMergeOverlapping&&(n=a.isEmpty()||l.isEmpty()?a.getStartPosition().isBeforeOrEqual(l.getEndPosition()):a.getStartPosition().isBefore(l.getEndPosition()))){let n=o.index<s.index?i:i+1,l=o.index<s.index?i+1:i,a=t[l].index,h=t[n].index,c=t[l].selection,u=t[n].selection;if(!c.equalsSelection(u)){let i,o;let s=c.plusRange(u),l=c.selectionStartLineNumber===c.startLineNumber&&c.selectionStartColumn===c.startColumn,g=u.selectionStartLineNumber===u.startLineNumber&&u.selectionStartColumn===u.startColumn;a===this.lastAddedCursorIndex?(i=l,this.lastAddedCursorIndex=h):i=g,o=i?new d.Y(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn):new d.Y(s.endLineNumber,s.endColumn,s.startLineNumber,s.startColumn),t[n].selection=o;let m=r.Vi.fromModelSelection(o);e[h].setState(this.context,m.modelState,m.viewState)}for(let e of t)e.index>a&&e.index--;e.splice(a,1),t.splice(l,1),this._removeSecondaryCursor(a-1),i--}}}}},79977:function(e,t,i){"use strict";i.d(t,{N:function(){return o},P:function(){return c}});var n,o,r=i("67414"),s=i("6950"),l=i("35176"),a=i("73322"),d=i("70668"),h=i("83112");class c{static addCursorDown(e,t,i){let n=[],o=0;for(let r=0,a=t.length;r<a;r++){let a=t[r];n[o++]=new s.Vi(a.modelState,a.viewState),i?n[o++]=s.Vi.fromModelState(l.o.translateDown(e.cursorConfig,e.model,a.modelState)):n[o++]=s.Vi.fromViewState(l.o.translateDown(e.cursorConfig,e,a.viewState))}return n}static addCursorUp(e,t,i){let n=[],o=0;for(let r=0,a=t.length;r<a;r++){let a=t[r];n[o++]=new s.Vi(a.modelState,a.viewState),i?n[o++]=s.Vi.fromModelState(l.o.translateUp(e.cursorConfig,e.model,a.modelState)):n[o++]=s.Vi.fromViewState(l.o.translateUp(e.cursorConfig,e,a.viewState))}return n}static moveToBeginningOfLine(e,t,i){let n=[];for(let o=0,r=t.length;o<r;o++){let r=t[o];n[o]=this._moveToLineStart(e,r,i)}return n}static _moveToLineStart(e,t,i){let n=t.viewState.position.column,o=t.modelState.position.column,r=t.viewState.position.lineNumber,s=e.getLineFirstNonWhitespaceColumn(r);return n!==o&&n!==s?this._moveToLineStartByView(e,t,i):this._moveToLineStartByModel(e,t,i)}static _moveToLineStartByView(e,t,i){return s.Vi.fromViewState(l.o.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,i))}static _moveToLineStartByModel(e,t,i){return s.Vi.fromModelState(l.o.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,i))}static moveToEndOfLine(e,t,i,n){let o=[];for(let r=0,s=t.length;r<s;r++){let s=t[r];o[r]=this._moveToLineEnd(e,s,i,n)}return o}static _moveToLineEnd(e,t,i,n){let o=t.viewState.position,r=e.getLineMaxColumn(o.lineNumber),s=o.column===r,l=t.modelState.position,a=e.model.getLineMaxColumn(l.lineNumber),d=r-o.column==a-l.column;return s||d?this._moveToLineEndByModel(e,t,i,n):this._moveToLineEndByView(e,t,i,n)}static _moveToLineEndByView(e,t,i,n){return s.Vi.fromViewState(l.o.moveToEndOfLine(e.cursorConfig,e,t.viewState,i,n))}static _moveToLineEndByModel(e,t,i,n){return s.Vi.fromModelState(l.o.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,i,n))}static expandLineSelection(e,t){let i=[];for(let n=0,o=t.length;n<o;n++){let o;let r=t[n],l=r.modelState.selection.startLineNumber,a=e.model.getLineCount(),c=r.modelState.selection.endLineNumber;c===a?o=e.model.getLineMaxColumn(a):(c++,o=1),i[n]=s.Vi.fromModelState(new s.rS(new h.e(l,1,l,1),0,0,new d.L(c,o),0))}return i}static moveToBeginningOfBuffer(e,t,i){let n=[];for(let o=0,r=t.length;o<r;o++){let r=t[o];n[o]=s.Vi.fromModelState(l.o.moveToBeginningOfBuffer(e.cursorConfig,e.model,r.modelState,i))}return n}static moveToEndOfBuffer(e,t,i){let n=[];for(let o=0,r=t.length;o<r;o++){let r=t[o];n[o]=s.Vi.fromModelState(l.o.moveToEndOfBuffer(e.cursorConfig,e.model,r.modelState,i))}return n}static selectAll(e,t){let i=e.model.getLineCount(),n=e.model.getLineMaxColumn(i);return s.Vi.fromModelState(new s.rS(new h.e(1,1,1,1),0,0,new d.L(i,n),0))}static line(e,t,i,n,o){let r=e.model.validatePosition(n),l=o?e.coordinatesConverter.validateViewPosition(new d.L(o.lineNumber,o.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);if(!i){let t=e.model.getLineCount(),i=r.lineNumber+1,n=1;return i>t&&(i=t,n=e.model.getLineMaxColumn(i)),s.Vi.fromModelState(new s.rS(new h.e(r.lineNumber,1,i,n),2,0,new d.L(i,n),0))}let a=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumber<a)return s.Vi.fromViewState(t.viewState.move(!0,l.lineNumber,1,0));if(r.lineNumber>a){let i=e.getLineCount(),n=l.lineNumber+1,o=1;return n>i&&(n=i,o=e.getLineMaxColumn(n)),s.Vi.fromViewState(t.viewState.move(!0,n,o,0))}{let e=t.modelState.selectionStart.getEndPosition();return s.Vi.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,n){let o=e.model.validatePosition(n);return s.Vi.fromModelState(a.w.word(e.cursorConfig,e.model,t.modelState,i,o))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new s.Vi(t.modelState,t.viewState);let i=t.viewState.position.lineNumber,n=t.viewState.position.column;return s.Vi.fromViewState(new s.rS(new h.e(i,n,i,n),0,0,new d.L(i,n),0))}static moveTo(e,t,i,n,o){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,n);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,n,o)}let r=e.model.validatePosition(n),l=o?e.coordinatesConverter.validateViewPosition(new d.L(o.lineNumber,o.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return s.Vi.fromViewState(t.viewState.move(i,l.lineNumber,l.column,0))}static simpleMove(e,t,i,n,o,r){switch(i){case 0:if(4===r)return this._moveHalfLineLeft(e,t,n);return this._moveLeft(e,t,n,o);case 1:if(4===r)return this._moveHalfLineRight(e,t,n);return this._moveRight(e,t,n,o);case 2:if(2===r)return this._moveUpByViewLines(e,t,n,o);return this._moveUpByModelLines(e,t,n,o);case 3:if(2===r)return this._moveDownByViewLines(e,t,n,o);return this._moveDownByModelLines(e,t,n,o);case 4:if(2===r)return t.map(t=>s.Vi.fromViewState(l.o.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n)));return t.map(t=>s.Vi.fromModelState(l.o.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n)));case 5:if(2===r)return t.map(t=>s.Vi.fromViewState(l.o.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n)));return t.map(t=>s.Vi.fromModelState(l.o.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n)));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,o){let r=e.getCompletelyVisibleViewRange(),s=e.coordinatesConverter.convertViewRangeToModelRange(r);switch(i){case 11:{let i=this._firstLineNumberInRange(e.model,s,o),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,r)]}case 13:{let i=this._lastLineNumberInRange(e.model,s,o),r=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,r)]}case 12:{let i=Math.round((s.startLineNumber+s.endLineNumber)/2),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 14:{let i=[];for(let o=0,s=t.length;o<s;o++){let s=t[o];i[o]=this.findPositionInViewportIfOutside(e,s,r,n)}return i}default:return null}}static findPositionInViewportIfOutside(e,t,i,n){let o=t.viewState.position.lineNumber;if(i.startLineNumber<=o&&o<=i.endLineNumber-1)return new s.Vi(t.modelState,t.viewState);{let r;r=o>i.endLineNumber-1?i.endLineNumber-1:o<i.startLineNumber?i.startLineNumber:o;let a=l.o.vertical(e.cursorConfig,e,o,t.viewState.position.column,t.viewState.leftoverVisibleColumns,r,!1);return s.Vi.fromViewState(t.viewState.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns))}}static _firstLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.min(t.endLineNumber,n+i-1)}static _lastLineNumberInRange(e,t,i){let n=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(n)&&n++,Math.max(n,t.endLineNumber-i+1)}static _moveLeft(e,t,i,n){return t.map(t=>s.Vi.fromViewState(l.o.moveLeft(e.cursorConfig,e,t.viewState,i,n)))}static _moveHalfLineLeft(e,t,i){let n=[];for(let o=0,r=t.length;o<r;o++){let r=t[o],a=r.viewState.position.lineNumber,d=Math.round(e.getLineLength(a)/2);n[o]=s.Vi.fromViewState(l.o.moveLeft(e.cursorConfig,e,r.viewState,i,d))}return n}static _moveRight(e,t,i,n){return t.map(t=>s.Vi.fromViewState(l.o.moveRight(e.cursorConfig,e,t.viewState,i,n)))}static _moveHalfLineRight(e,t,i){let n=[];for(let o=0,r=t.length;o<r;o++){let r=t[o],a=r.viewState.position.lineNumber,d=Math.round(e.getLineLength(a)/2);n[o]=s.Vi.fromViewState(l.o.moveRight(e.cursorConfig,e,r.viewState,i,d))}return n}static _moveDownByViewLines(e,t,i,n){let o=[];for(let r=0,a=t.length;r<a;r++){let a=t[r];o[r]=s.Vi.fromViewState(l.o.moveDown(e.cursorConfig,e,a.viewState,i,n))}return o}static _moveDownByModelLines(e,t,i,n){let o=[];for(let r=0,a=t.length;r<a;r++){let a=t[r];o[r]=s.Vi.fromModelState(l.o.moveDown(e.cursorConfig,e.model,a.modelState,i,n))}return o}static _moveUpByViewLines(e,t,i,n){let o=[];for(let r=0,a=t.length;r<a;r++){let a=t[r];o[r]=s.Vi.fromViewState(l.o.moveUp(e.cursorConfig,e,a.viewState,i,n))}return o}static _moveUpByModelLines(e,t,i,n){let o=[];for(let r=0,a=t.length;r<a;r++){let a=t[r];o[r]=s.Vi.fromModelState(l.o.moveUp(e.cursorConfig,e.model,a.modelState,i,n))}return o}static _moveToViewPosition(e,t,i,n,o){return s.Vi.fromViewState(t.viewState.move(i,n,o,0))}static _moveToModelPosition(e,t,i,n,o){return s.Vi.fromModelState(t.modelState.move(i,n,o,0))}static _moveToViewMinColumn(e,t,i){let n=[];for(let o=0,r=t.length;o<r;o++){let r=t[o],s=r.viewState.position.lineNumber,l=e.getLineMinColumn(s);n[o]=this._moveToViewPosition(e,r,i,s,l)}return n}static _moveToViewFirstNonWhitespaceColumn(e,t,i){let n=[];for(let o=0,r=t.length;o<r;o++){let r=t[o],s=r.viewState.position.lineNumber,l=e.getLineFirstNonWhitespaceColumn(s);n[o]=this._moveToViewPosition(e,r,i,s,l)}return n}static _moveToViewCenterColumn(e,t,i){let n=[];for(let o=0,r=t.length;o<r;o++){let r=t[o],s=r.viewState.position.lineNumber,l=Math.round((e.getLineMaxColumn(s)+e.getLineMinColumn(s))/2);n[o]=this._moveToViewPosition(e,r,i,s,l)}return n}static _moveToViewMaxColumn(e,t,i){let n=[];for(let o=0,r=t.length;o<r;o++){let r=t[o],s=r.viewState.position.lineNumber,l=e.getLineMaxColumn(s);n[o]=this._moveToViewPosition(e,r,i,s,l)}return n}static _moveToViewLastNonWhitespaceColumn(e,t,i){let n=[];for(let o=0,r=t.length;o<r;o++){let r=t[o],s=r.viewState.position.lineNumber,l=e.getLineLastNonWhitespaceColumn(s);n[o]=this._moveToViewPosition(e,r,i,s,l)}return n}}(n=o||(o={})).metadata={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:`Property-value pairs that can be passed through this argument:
|
|
2
|
+
* 'to': A mandatory logical position value providing where to move the cursor.
|
|
3
|
+
\`\`\`
|
|
4
|
+
'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',
|
|
5
|
+
'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'
|
|
6
|
+
'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'
|
|
7
|
+
'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'
|
|
8
|
+
\`\`\`
|
|
9
|
+
* 'by': Unit to move. Default is computed based on 'to' value.
|
|
10
|
+
\`\`\`
|
|
11
|
+
'line', 'wrappedLine', 'character', 'halfLine'
|
|
12
|
+
\`\`\`
|
|
13
|
+
* 'value': Number of units to move. Default is '1'.
|
|
14
|
+
* 'select': If 'true' makes the selection. Default is 'false'.
|
|
15
|
+
`,constraint:function(e){return!!r.Kn(e)&&(!!(r.HD(e.to)&&(r.o8(e.select)||r.jn(e.select))&&(r.o8(e.by)||r.HD(e.by))&&(r.o8(e.value)||r.hj(e.value)))||!1)},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},n.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},n.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},n.parse=function(e){let t;if(!e.to)return null;switch(e.to){case n.RawDirection.Left:t=0;break;case n.RawDirection.Right:t=1;break;case n.RawDirection.Up:t=2;break;case n.RawDirection.Down:t=3;break;case n.RawDirection.PrevBlankLine:t=4;break;case n.RawDirection.NextBlankLine:t=5;break;case n.RawDirection.WrappedLineStart:t=6;break;case n.RawDirection.WrappedLineFirstNonWhitespaceCharacter:t=7;break;case n.RawDirection.WrappedLineColumnCenter:t=8;break;case n.RawDirection.WrappedLineEnd:t=9;break;case n.RawDirection.WrappedLineLastNonWhitespaceCharacter:t=10;break;case n.RawDirection.ViewPortTop:t=11;break;case n.RawDirection.ViewPortBottom:t=13;break;case n.RawDirection.ViewPortCenter:t=12;break;case n.RawDirection.ViewPortIfOutside:t=14;break;default:return null}let i=0;switch(e.by){case n.RawUnit.Line:i=1;break;case n.RawUnit.WrappedLine:i=2;break;case n.RawUnit.Character:i=3;break;case n.RawUnit.HalfLine:i=4}return{direction:t,unit:i,select:!!e.select,value:e.value||1}}},55892:function(e,t,i){"use strict";function n(e,t){let i=e.getCount(),n=e.findTokenIndexAtOffset(t),r=e.getLanguageId(n),s=n;for(;s+1<i&&e.getLanguageId(s+1)===r;)s++;let l=n;for(;l>0&&e.getLanguageId(l-1)===r;)l--;return new o(e,r,l,s+1,e.getStartOffset(l),e.getEndOffset(s))}i.d(t,{Bu:function(){return r},wH:function(){return n}});class o{constructor(e,t,i,n,o,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=o,this._lastCharOffset=r}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function r(e){return(3&e)!=0}},89751:function(e,t,i){"use strict";i.d(t,{W:function(){return u},l:function(){return c}});var n=i("65910"),o=i("71482"),r=i("39372"),s=i("83112"),l=i("68774"),a=i("4469"),d=i("5705"),h=i("45802");class c extends l.U{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,a.q)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();let n=this.textModel.getLineCount();if(e<1||e>n)throw new h.he("Illegal value for lineNumber");let o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=!!(o&&o.offSide),s=-2,l=-1,a=-2,d=-1,c=e=>{if(-1!==s&&(-2===s||s>e-1)){s=-1,l=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){s=t,l=e;break}}}if(-2===a){a=-1,d=-1;for(let t=e;t<n;t++){let e=this._computeIndentLevel(t);if(e>=0){a=t,d=e;break}}}},u=-2,g=-1,m=-2,p=-1,f=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==m&&(-2===m||m<e-1)){m=-1,p=-1;for(let t=e;t<n;t++){let e=this._computeIndentLevel(t);if(e>=0){m=t,p=e;break}}}},b=0,v=!0,_=0,k=!0,y=0,C=0;for(let o=0;v||k;o++){let s=e-o,h=e+o;o>1&&(s<1||s<t)&&(v=!1),o>1&&(h>n||h>i)&&(k=!1),o>5e4&&(v=!1,k=!1);let m=-1;if(v&&s>=1){let e=this._computeIndentLevel(s-1);e>=0?(a=s-1,d=e,m=Math.ceil(e/this.textModel.getOptions().indentSize)):(c(s),m=this._getIndentLevelForWhitespaceLine(r,l,d))}let w=-1;if(k&&h<=n){let e=this._computeIndentLevel(h-1);e>=0?(u=h-1,g=e,w=Math.ceil(e/this.textModel.getOptions().indentSize)):(f(h),w=this._getIndentLevelForWhitespaceLine(r,g,p))}if(0===o){C=m;continue}if(1===o){if(h<=n&&w>=0&&C+1===w){v=!1,b=h,_=h,y=w;continue}if(s>=1&&m>=0&&m-1===C){k=!1,b=s,_=s,y=m;continue}if(b=e,_=e,0===(y=C))break}v&&(m>=y?b=s:v=!1),k&&(w>=y?_=h:k=!1)}return{startLineNumber:b,endLineNumber:_,indent:y}}getLinesBracketGuides(e,t,i,r){var l;let a;let h=[];for(let i=e;i<=t;i++)h.push([]);let c=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new s.e(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();if(i&&c.length>0){let o=(e<=i.lineNumber&&i.lineNumber<=t?c:this.textModel.bracketPairs.getBracketPairsInRange(s.e.fromPositions(i)).toArray()).filter(e=>s.e.strictContainsPosition(e.range,i));a=null===(l=(0,n.dF)(o,e=>!0))||void 0===l?void 0:l.range}let g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,m=new u;for(let i of c){if(!i.closingBracketRange)continue;let n=a&&i.range.equalsRange(a);if(!n&&!r.includeInactive)continue;let s=m.getInlineClassName(i.nestingLevel,i.nestingLevelOfEqualBracketType,g)+(r.highlightActive&&n?" "+m.activeClassName:""),l=i.openingBracketRange.getStartPosition(),c=i.closingBracketRange.getStartPosition(),u=r.horizontalGuides===d.s6.Enabled||r.horizontalGuides===d.s6.EnabledForActive&&n;if(i.range.startLineNumber===i.range.endLineNumber){u&&h[i.range.startLineNumber-e].push(new d.UO(-1,i.openingBracketRange.getEndPosition().column,s,new d.vW(!1,c.column),-1,-1));continue}let p=this.getVisibleColumnFromPosition(c),f=this.getVisibleColumnFromPosition(i.openingBracketRange.getStartPosition()),b=Math.min(f,p,i.minVisibleColumnIndentation+1),v=!1;o.LC(this.textModel.getLineContent(i.closingBracketRange.startLineNumber))<i.closingBracketRange.startColumn-1&&(v=!0);let _=Math.max(l.lineNumber,e),k=Math.min(c.lineNumber,t),y=v?1:0;for(let t=_;t<k+y;t++)h[t-e].push(new d.UO(b,-1,s,null,t===l.lineNumber?l.column:-1,t===c.lineNumber?c.column:-1));u&&(l.lineNumber>=e&&f>b&&h[l.lineNumber-e].push(new d.UO(b,-1,s,new d.vW(!1,l.column),-1,-1)),c.lineNumber<=t&&p>b&&h[c.lineNumber-e].push(new d.UO(b,-1,s,new d.vW(!v,c.column),-1,-1)))}for(let e of h)e.sort((e,t)=>e.visibleColumn-t.visibleColumn);return h}getVisibleColumnFromPosition(e){return r.i.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();let i=this.textModel.getLineCount();if(e<1||e>i)throw Error("Illegal value for startLineNumber");if(t<1||t>i)throw Error("Illegal value for endLineNumber");let n=this.textModel.getOptions(),o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,r=!!(o&&o.offSide),s=Array(t-e+1),l=-2,a=-1,d=-2,h=-1;for(let o=e;o<=t;o++){let t=o-e,c=this._computeIndentLevel(o-1);if(c>=0){l=o-1,a=c,s[t]=Math.ceil(c/n.indentSize);continue}if(-2===l){l=-1,a=-1;for(let e=o-2;e>=0;e--){let t=this._computeIndentLevel(e);if(t>=0){l=e,a=t;break}}}if(-1!==d&&(-2===d||d<o-1)){d=-1,h=-1;for(let e=o;e<i;e++){let t=this._computeIndentLevel(e);if(t>=0){d=e,h=t;break}}}s[t]=this._getIndentLevelForWhitespaceLine(r,a,h)}return s}_getIndentLevelForWhitespaceLine(e,t,i){let n=this.textModel.getOptions();return -1===t||-1===i?0:t<i?1+Math.floor(t/n.indentSize):t===i?Math.ceil(i/n.indentSize):e?Math.ceil(i/n.indentSize):1+Math.floor(i/n.indentSize)}}class u{constructor(){this.activeClassName="indent-active"}getInlineClassName(e,t,i){return this.getInlineClassNameOfLevel(i?t:e)}getInlineClassNameOfLevel(e){return`bracket-indent-guide lvl-${e%30}`}}},2723:function(e,t,i){"use strict";i.d(t,{N:function(){return o}});var n=i("96227");class o{constructor(){this._tokens=[]}add(e,t){if(this._tokens.length>0){let i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e){i.appendLineTokens(t);return}}this._tokens.push(new n.s(e,[t]))}finalize(){return this._tokens}}},87496:function(e,t,i){"use strict";i.d(t,{Ay:function(){return f},CL:function(){return a},H9:function(){return v},Hf:function(){return b},IN:function(){return o},Ic:function(){return k},JP:function(){return n},K9:function(){return m},Qb:function(){return p},SJ:function(){return d},_0:function(){return h},d8:function(){return c},e$:function(){return s},il:function(){return u},uc:function(){return _},vA:function(){return l},vk:function(){return g},x4:function(){return r}});class n{constructor(){this.type=0}}class o{constructor(){this.type=1}}class r{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class s{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class l{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class a{constructor(){this.type=5}}class d{constructor(e){this.type=6,this.isFocused=e}}class h{constructor(){this.type=7}}class c{constructor(){this.type=8}}class u{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class g{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class m{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class p{constructor(e,t,i,n,o,r,s){this.source=e,this.minimalReveal=t,this.range=i,this.selections=n,this.verticalType=o,this.revealHorizontal=r,this.scrollType=s,this.type=12}}class f{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class b{constructor(e){this.theme=e,this.type=14}}class v{constructor(e){this.type=15,this.ranges=e}}class _{constructor(){this.type=16}}class k{constructor(){this.type=17}}},72141:function(e,t,i){"use strict";var n=i("36809"),o=i("8109"),r=i("51423"),s=i("94479");class l extends n.R6{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[];for(let e of t.getSelections())i.push(new r.T(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,n.Qr)(class e extends l{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:s.NC("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:o.u.writable})}}),(0,n.Qr)(class e extends l{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:s.NC("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:o.u.writable})}})},56307:function(e,t,i){"use strict";i.d(t,{u:function(){return r}});var n=i("83112"),o=i("98681");class r{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 o.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 o.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 o.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 o.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 o.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}}},12301:function(e,t,i){"use strict";i.d(t,{$:function(){return u}});var n=i("36809"),o=i("77667"),r=i("66735"),s=i("71362"),l=i("95449"),a=i("91114"),d=i("94479");let h=(0,l.yh)("IEditorCancelService"),c=new o.uy("cancellableOperation",!1,(0,d.NC)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,a.z)(h,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,n=this._tokens.get(e);return!n&&(n=e.invokeWithinContext(e=>{let t=c.bindTo(e.get(o.i6));return{key:t,tokens:new s.S}}),this._tokens.set(e,n)),n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(e){let t=this._tokens.get(e);if(!t)return;let i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class u extends r.AU{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(t=>t.get(h).add(e,this))}dispose(){this._unregister(),super.dispose()}}(0,n.fK)(new class extends n._l{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:c})}runEditorCommand(e,t){e.get(h).cancel(t)}})},4459:function(e,t,i){"use strict";i.d(t,{C:function(){return l}});var n=i("65910"),o=i("98212"),r=i("83112"),s=i("37013");class l{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new o.Q5,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange(e=>this.updateHiddenRanges()),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some(e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,s.Q)(e.text)[0]))}updateHiddenRanges(){let e=!1,t=[],i=0,n=0,o=Number.MAX_VALUE,s=-1,l=this._foldingModel.regions;for(;i<l.length;i++){if(!l.isCollapsed(i))continue;let a=l.getStartLineNumber(i)+1,d=l.getEndLineNumber(i);(!(o<=a)||!(d<=s))&&(!e&&n<this._hiddenRanges.length&&this._hiddenRanges[n].startLineNumber===a&&this._hiddenRanges[n].endLineNumber===d?(t.push(this._hiddenRanges[n]),n++):(e=!0,t.push(new r.e(a,1,d,1))),o=a,s=d)}(this._hasLineChanges||e||n<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyHiddenRanges(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==a(this._hiddenRanges,e)}adjustSelections(e){let t=!1,i=this._foldingModel.textModel,n=null,o=e=>((!n||!function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,n))&&(n=a(this._hiddenRanges,e)),n)?n.startLineNumber-1:null;for(let n=0,r=e.length;n<r;n++){let r=e[n],s=o(r.startLineNumber);s&&(r=r.setStartPosition(s,i.getLineMaxColumn(s)),t=!0);let l=o(r.endLineNumber);l&&(r=r.setEndPosition(l,i.getLineMaxColumn(l)),t=!0),e[n]=r}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function a(e,t){let i=(0,n.J_)(e,e=>t<e.startLineNumber)-1;return i>=0&&e[i].endLineNumber>=t?e[i]:null}},44118:function(e,t,i){"use strict";i.d(t,{V:function(){return s}});var n=i("89172"),o=i("83112"),r=i("46785");class s{static _handleEolEdits(e,t){let i;let n=[];for(let e of t)"number"==typeof e.eol&&(i=e.eol),e.range&&"string"==typeof e.text&&n.push(e);return"number"==typeof i&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;let i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();let l=r.Z.capture(e),a=s._handleEolEdits(e,t);1===a.length&&s._isFullModelReplaceEdit(e,a[0])?e.executeEdits("formatEditsCommand",a.map(e=>n.h.replace(o.e.lift(e.range),e.text))):e.executeEdits("formatEditsCommand",a.map(e=>n.h.replaceMove(o.e.lift(e.range),e.text))),i&&e.pushUndoStop(),l.restoreRelativeVerticalPositionOfCursor(e)}}},32678:function(e,t,i){"use strict";i.d(t,{yN:function(){return c}});var n=i("98212"),o=i("37764"),r=i("97147");function s(e,t){return!!e[t]}class l{constructor(e,t){var i,n;this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=(i=e.event,!!i[t.triggerModifier]),this.hasSideBySideModifier=(n=e.event,!!n[t.triggerSideBySideModifier]),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class a{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=!!e[t.triggerModifier]}}class d{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function h(e){if("altKey"===e)return r.dz?new d(57,"metaKey",6,"altKey"):new d(5,"ctrlKey",6,"altKey");return r.dz?new d(6,"altKey",57,"metaKey"):new d(6,"altKey",5,"ctrlKey")}class c extends o.JT{constructor(e,t){var i;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new n.Q5),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new n.Q5),this.onExecute=this._onExecute.event,this._onCancel=this._register(new n.Q5),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=null!==(i=null==t?void 0:t.extractLineNumberFromMouseEvent)&&void 0!==i?i:e=>e.target.position?e.target.position.lineNumber:0,this._opts=h(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(e=>{if(e.hasChanged(78)){let e=h(this._editor.getOption(78));!this._opts.equals(e)&&(this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire())}})),this._register(this._editor.onMouseMove(e=>this._onEditorMouseMove(new l(e,this._opts)))),this._register(this._editor.onMouseDown(e=>this._onEditorMouseDown(new l(e,this._opts)))),this._register(this._editor.onMouseUp(e=>this._onEditorMouseUp(new l(e,this._opts)))),this._register(this._editor.onKeyDown(e=>this._onEditorKeyDown(new a(e,this._opts)))),this._register(this._editor.onKeyUp(e=>this._onEditorKeyUp(new a(e,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(e=>this._onDidChangeCursorSelection(e))),this._register(this._editor.onDidChangeModel(e=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){let t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},28756:function(e,t,i){"use strict";i.d(t,{D5:function(){return P},c:function(){return R},hU:function(){return I}});var n=i("55952"),o=i("47983"),r=i("66735"),s=i("4157"),l=i("37764"),a=i("34570"),d=i("37438"),h=i("83112"),c=i("51405"),u=i("94479"),g=i("756"),m=i("19309"),p=i("76891"),f=i("64141"),b=i("16445"),v=i("76115"),_=i("34308"),k=i("45802"),y=i("81171"),C=i("60714"),w=i("59955"),S=i("1966"),L=i("52415"),x=function(e,t){return function(i,n){t(i,n,e)}};let N=n.$,D=(0,b.q5)("hover-increase-verbosity",v.l.add,u.NC("increaseHoverVerbosity","Icon for increaseing hover verbosity.")),T=(0,b.q5)("hover-decrease-verbosity",v.l.remove,u.NC("decreaseHoverVerbosity","Icon for decreasing hover verbosity."));class I{constructor(e,t,i,n,o,r){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=o,this.source=r}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}class E{constructor(e,t,i){this.hover=e,this.hoverProvider=t,this.hoverPosition=i}supportsVerbosityAction(e){var t,i;switch(e){case f.bq.Increase:return null!==(t=this.hover.canIncreaseVerbosity)&&void 0!==t&&t;case f.bq.Decrease:return null!==(i=this.hover.canDecreaseVerbosity)&&void 0!==i&&i}}}let P=class{constructor(e,t,i,n,o,r,s){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=o,this._keybindingService=r,this._hoverService=s,this.hoverOrdinal=3}createLoadingMessage(e){return new I(this,e.range,[new s.W5().appendText(u.NC("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];let i=this._editor.getModel(),n=e.range.startLineNumber,r=i.getLineMaxColumn(n),l=[],a=1e3,d=i.getLineLength(n),c=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),g=this._editor.getOption(117),m=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c}),p=!1;g>=0&&d>g&&e.range.startColumn>=g&&(p=!0,l.push(new I(this,e.range,[{value:u.NC("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!p&&"number"==typeof m&&d>=m&&l.push(new I(this,e.range,[{value:u.NC("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let f=!1;for(let i of t){let t=i.range.startLineNumber===n?i.range.startColumn:1,d=i.range.endLineNumber===n?i.range.endColumn:r,c=i.options.hoverMessage;if(!c||(0,s.CP)(c))continue;i.options.beforeContentClassName&&(f=!0);let u=new h.e(e.range.startLineNumber,t,e.range.startLineNumber,d);l.push(new I(this,u,(0,o._2)(c),f,a++))}return l}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return S.Aq.EMPTY;let n=this._editor.getModel(),o=this._languageFeaturesService.hoverProvider;return o.has(n)?this._getMarkdownHovers(o,n,e,i):S.Aq.EMPTY}_getMarkdownHovers(e,t,i,n){let o=i.range.getStartPosition();return(0,L.OP)(e,t,o,n).filter(e=>!(0,s.CP)(e.hover.contents)).map(e=>{let t=e.hover.range?h.e.lift(e.hover.range):i.range,n=new E(e.hover,e.provider,o);return new I(this,t,e.hover.contents,!1,e.ordinal,n)})}renderHoverParts(e,t){return this._renderedHoverParts=new F(t,e.fragment,this._editor,this._languageService,this._openerService,this._keybindingService,this._hoverService,this._configurationService,e.onContentsChanged),this._renderedHoverParts}updateFocusedMarkdownHoverPartVerbosityLevel(e){var t;null===(t=this._renderedHoverParts)||void 0===t||t.updateFocusedHoverPartVerbosityLevel(e)}};P=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([x(1,c.O),x(2,m.v),x(3,g.Ui),x(4,p.p),x(5,y.d),x(6,w.Bs)],P);class F extends l.JT{constructor(e,t,i,n,o,r,s,a,d){super(),this._editor=i,this._languageService=n,this._openerService=o,this._keybindingService=r,this._hoverService=s,this._configurationService=a,this._onFinishedRendering=d,this._hoverFocusInfo={hoverPartIndex:-1,focusRemains:!1},this._renderedHoverParts=this._renderHoverParts(e,t,this._onFinishedRendering),this._register((0,l.OF)(()=>{this._renderedHoverParts.forEach(e=>{e.disposables.dispose()})}))}_renderHoverParts(e,t,i){return e.sort((0,o.tT)(e=>e.ordinal,o.fv)),e.map((e,n)=>{let o=this._renderHoverPart(n,e.contents,e.source,i);return t.appendChild(o.renderedMarkdown),o})}_renderHoverPart(e,t,i,o){let{renderedMarkdown:r,disposables:s}=this._renderMarkdownContent(t,o);if(!i)return{renderedMarkdown:r,disposables:s};let l=i.supportsVerbosityAction(f.bq.Increase),a=i.supportsVerbosityAction(f.bq.Decrease);if(!l&&!a)return{renderedMarkdown:r,disposables:s,hoverSource:i};let d=N("div.verbosity-actions");r.prepend(d),s.add(this._renderHoverExpansionAction(d,f.bq.Increase,l)),s.add(this._renderHoverExpansionAction(d,f.bq.Decrease,a));let h=s.add(n.go(r));return s.add(h.onDidFocus(()=>{this._hoverFocusInfo={hoverPartIndex:e,focusRemains:!0}})),s.add(h.onDidBlur(()=>{var e;if(null===(e=this._hoverFocusInfo)||void 0===e?void 0:e.focusRemains){this._hoverFocusInfo.focusRemains=!1;return}})),{renderedMarkdown:r,disposables:s,hoverSource:i}}_renderMarkdownContent(e,t){let i=N("div.hover-row");i.tabIndex=0;let n=N("div.hover-row-contents");i.appendChild(n);let o=new l.SL;return o.add(M(this._editor,n,e,this._languageService,this._openerService,t)),{renderedMarkdown:i,disposables:o}}_renderHoverExpansionAction(e,t,i){let o=new l.SL,r=t===f.bq.Increase,s=n.R3(e,N(_.k.asCSSSelector(r?D:T)));s.tabIndex=0;let a=new w.mQ("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(r){let e=this._keybindingService.lookupKeybinding(d.Gd);o.add(this._hoverService.setupUpdatableHover(a,s,e?u.NC("increaseVerbosityWithKb","Increase Verbosity ({0})",e.getLabel()):u.NC("increaseVerbosity","Increase Verbosity")))}else{let e=this._keybindingService.lookupKeybinding(d.m);o.add(this._hoverService.setupUpdatableHover(a,s,e?u.NC("decreaseVerbosityWithKb","Decrease Verbosity ({0})",e.getLabel()):u.NC("decreaseVerbosity","Decrease Verbosity")))}if(!i)return s.classList.add("disabled"),o;s.classList.add("enabled");let h=()=>this.updateFocusedHoverPartVerbosityLevel(t);return o.add(new C.R0(s,h)),o.add(new C.rb(s,h,[3,10])),o}async updateFocusedHoverPartVerbosityLevel(e){var t;let i;let n=this._editor.getModel();if(!n)return;let o=this._hoverFocusInfo.hoverPartIndex,s=this._getRenderedHoverPartAtIndex(o);if(!s||!(null===(t=s.hoverSource)||void 0===t?void 0:t.supportsVerbosityAction(e)))return;let l=s.hoverSource.hoverPosition,a=s.hoverSource.hoverProvider,d=s.hoverSource.hover;try{i=await Promise.resolve(a.provideHover(n,l,r.Ts.None,{verbosityRequest:{action:e,previousHover:d}}))}catch(e){(0,k.Cp)(e)}if(!i)return;let h=new E(i,a,l),c=this._renderHoverPart(o,i.contents,h,this._onFinishedRendering);this._replaceRenderedHoverPartAtIndex(o,c),this._focusOnHoverPartWithIndex(o),this._onFinishedRendering()}_replaceRenderedHoverPartAtIndex(e,t){if(e>=this._renderHoverParts.length||e<0)return;let i=this._renderedHoverParts[e];i.renderedMarkdown.replaceWith(t.renderedMarkdown),i.disposables.dispose(),this._renderedHoverParts[e]=t}_focusOnHoverPartWithIndex(e){this._renderedHoverParts[e].renderedMarkdown.focus(),this._hoverFocusInfo.focusRemains=!0}_getRenderedHoverPartAtIndex(e){return this._renderedHoverParts[e]}}function R(e,t,i,n,r){t.sort((0,o.tT)(e=>e.ordinal,o.fv));let s=new l.SL;for(let o of t)s.add(M(i,e.fragment,o.contents,n,r,e.onContentsChanged));return s}function M(e,t,i,o,r,d){let h=new l.SL;for(let l of i){if((0,s.CP)(l))continue;let i=N("div.markdown-hover"),c=n.R3(i,N("div.hover-contents")),u=h.add(new a.$({editor:e},o,r));h.add(u.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",d()}));let g=h.add(u.render(l));c.appendChild(g.element),t.appendChild(i)}return h}},74282:function(e,t,i){"use strict";i.d(t,{D:function(){return F}});var n,o=i("55952"),r=i("74471"),s=i("1966"),l=i("66735"),a=i("57341"),d=i("37764"),h=i("56136"),c=i("10361"),u=i("60987"),g=i("67414"),m=i("9876"),p=i("70668"),f=i("93804"),b=i("76891"),v=i("28998"),_=i("65716"),k=i("33473"),y=i("50568"),C=i("23366"),w=i("3184"),S=i("94479"),L=i("44279"),x=i("65488"),N=i("249"),D=i("756"),T=i("77667"),I=i("95449"),E=i("81171"),P=function(e,t){return function(i,n){t(i,n,e)}};let F=n=class extends d.JT{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,r,f,b,S,L,N){let D;super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=n,this._commandService=r,this._debounceService=f,this._languageFeaturesService=b,this._accessibilitySignalService=S,this._keybindingService=L,this._accessibilityService=N,this.model=this._register((0,h.DN)("inlineCompletionModel",void 0)),this._textModelVersionId=(0,h.uh)(this,-1),this._positions=(0,c.Ku)({owner:this,equalsFn:(0,a.ZC)((0,a.$h)())},[new p.L(1,1)]),this._suggestWidgetAdaptor=this._register(new w.s(this.editor,()=>{var e,t;return null===(t=null===(e=this.model.get())||void 0===e?void 0:e.selectedInlineCompletion.get())||void 0===t?void 0:t.toSingleTextEdit(void 0)},e=>this.updateObservables(e,C.hK.Other),e=>{(0,h.PS)(t=>{var i;this.updateObservables(t,C.hK.Other),null===(i=this.model.get())||void 0===i||i.handleSuggestAccepted(e)})})),this._enabledInConfig=(0,h.rD)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).enabled),this._isScreenReaderEnabled=(0,h.rD)(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this._editorDictationInProgress=(0,h.rD)(this._contextKeyService.onDidChangeContext,()=>!0===this._contextKeyService.getContext(this.editor.getDomNode()).getValue("editorDictation.inProgress")),this._enabled=(0,h.nK)(this,e=>this._enabledInConfig.read(e)&&(!this._isScreenReaderEnabled.read(e)||!this._editorDictationInProgress.read(e))),this._fontFamily=(0,h.rD)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).fontFamily),this._ghostTexts=(0,h.nK)(this,e=>{var t;let i=this.model.read(e);return null!==(t=null==i?void 0:i.ghostTexts.read(e))&&void 0!==t?t:[]}),this._stablizedGhostTexts=function(e,t){let i=(0,h.uh)("result",[]),n=[];return t.add((0,h.EH)(t=>{let o=e.read(t);(0,h.PS)(e=>{if(o.length!==n.length){n.length=o.length;for(let e=0;e<n.length;e++)!n[e]&&(n[e]=(0,h.uh)("item",o[e]));i.set([...n],e)}n.forEach((t,i)=>t.set(o[i],e))})})),i}(this._ghostTexts,this._store),this._ghostTextWidgets=(0,u.Zg)(this,this._stablizedGhostTexts,(e,t)=>t.add(this._instantiationService.createInstance(_.Wd,this.editor,{ghostText:e,minReservedLineCount:(0,h.Dz)(0),targetTextModel:this.model.map(e=>null==e?void 0:e.textModel)}))).recomputeInitiallyAndOnChange(this._store),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._playAccessibilitySignal=(0,h.GN)(this),this._isReadonly=(0,h.rD)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(91)),this._textModel=(0,h.rD)(this.editor.onDidChangeModel,()=>this.editor.getModel()),this._textModelIfWritable=(0,h.nK)(e=>this._isReadonly.read(e)?void 0:this._textModel.read(e)),this._register(new k.f(this._contextKeyService,this.model)),this._register((0,h.EH)(i=>{let n=this._textModelIfWritable.read(i);(0,h.PS)(i=>{if(this.model.set(void 0,i),this.updateObservables(i,C.hK.Other),n){let o=t.createInstance(C.k,n,this._suggestWidgetAdaptor.selectedItem,this._textModelVersionId,this._positions,this._debounceValue,(0,h.rD)(e.onDidChangeConfiguration,()=>e.getOption(118).preview),(0,h.rD)(e.onDidChangeConfiguration,()=>e.getOption(118).previewMode),(0,h.rD)(e.onDidChangeConfiguration,()=>e.getOption(62).mode),this._enabled);this.model.set(o,i)}})}));let T=this._register((0,o.aU)());this._register((0,h.EH)(e=>{let t=this._fontFamily.read(e);T.setStyle(""===t||"default"===t?"":`
|
|
16
|
+
.monaco-editor .ghost-text-decoration,
|
|
17
|
+
.monaco-editor .ghost-text-decoration-preview,
|
|
18
|
+
.monaco-editor .ghost-text {
|
|
19
|
+
font-family: ${t};
|
|
20
|
+
}`)}));let I=e=>{var t;return e.isUndoing?C.hK.Undo:e.isRedoing?C.hK.Redo:(null===(t=this.model.get())||void 0===t?void 0:t.isAcceptingPartially)?C.hK.AcceptWord:C.hK.Other};this._register(e.onDidChangeModelContent(e=>(0,h.PS)(t=>this.updateObservables(t,I(e))))),this._register(e.onDidChangeCursorPosition(e=>(0,h.PS)(t=>{var i;this.updateObservables(t,C.hK.Other),(3===e.reason||"api"===e.source)&&(null===(i=this.model.get())||void 0===i||i.stop(t))}))),this._register(e.onDidType(()=>(0,h.PS)(e=>{var t;this.updateObservables(e,C.hK.Other),this._enabled.get()&&(null===(t=this.model.get())||void 0===t||t.trigger(e))}))),this._register(this._commandService.onDidExecuteCommand(t=>{new Set([m.wk.Tab.id,m.wk.DeleteLeft.id,m.wk.DeleteRight.id,v.Ou,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this._enabled.get()&&(0,h.PS)(e=>{var t;null===(t=this.model.get())||void 0===t||t.trigger(e)})})),this._register(this.editor.onDidBlurEditorWidget(()=>{if(!(this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur"))&&!e.getOption(62).keepOnBlur)!y.QG.dropDownVisible&&(0,h.PS)(e=>{var t;null===(t=this.model.get())||void 0===t||t.stop(e)})})),this._register((0,h.EH)(e=>{var t;let i=null===(t=this.model.read(e))||void 0===t?void 0:t.state.read(e);(null==i?void 0:i.suggestItem)?i.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()})),this._register((0,d.OF)(()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()}));let E=this._register(new d.SL);this._register((0,h.nJ)({handleChange:(e,t)=>(e.didChange(this._playAccessibilitySignal)&&(D=void 0),!0)},async(e,t)=>{this._playAccessibilitySignal.read(e);let i=this.model.read(e),n=null==i?void 0:i.state.read(e);if(!i||!n||!n.inlineCompletion){D=void 0;return}if(n.inlineCompletion.semanticId!==D){E.clear(),D=n.inlineCompletion.semanticId;let e=i.textModel.getLineContent(n.primaryGhostText.lineNumber);await (0,s.Vs)(50,(0,l.bP)(E)),await (0,h.F_)(this._suggestWidgetAdaptor.selectedItem,g.o8,()=>!1,(0,l.bP)(E)),await this._accessibilitySignalService.playSignal(x.iP.inlineSuggestion),this.editor.getOption(8)&&this.provideScreenReaderUpdate(n.primaryGhostText.renderForScreenReader(e))}})),this._register(new y.oU(this.editor,this.model,this._instantiationService)),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})})),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}provideScreenReaderUpdate(e){let t;let i=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),n=this._keybindingService.lookupKeybinding("editor.action.accessibleView");!i&&n&&this.editor.getOption(149)&&(t=(0,S.NC)("showAccessibleViewHint","Inspect this in the accessible view ({0})",n.getAriaLabel())),t?(0,r.Z9)(e+", "+t):(0,r.Z9)(e)}updateObservables(e,t){var i,n,o;let r=this.editor.getModel();this._textModelVersionId.set(null!==(i=null==r?void 0:r.getVersionId())&&void 0!==i?i:-1,e,t),this._positions.set(null!==(o=null===(n=this.editor.getSelections())||void 0===n?void 0:n.map(e=>e.getPosition()))&&void 0!==o?o:[new p.L(1,1)],e)}shouldShowHoverAt(e){var t;let i=null===(t=this.model.get())||void 0===t?void 0:t.primaryGhostText.get();return!!i&&i.parts.some(t=>e.containsPosition(new p.L(i.lineNumber,t.column)))}shouldShowHoverAtViewZone(e){var t,i;return null!==(i=null===(t=this._ghostTextWidgets.get()[0])||void 0===t?void 0:t.ownsViewZone(e))&&void 0!==i&&i}};F.ID="editor.contrib.inlineCompletionsController",F=n=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([P(1,I.TG),P(2,T.i6),P(3,D.Ui),P(4,N.H),P(5,f.A),P(6,b.p),P(7,x.IV),P(8,E.d),P(9,L.F)],F)},3184:function(e,t,i){"use strict";i.d(t,{s:function(){return f}});var n=i("98212"),o=i("37764"),r=i("70668"),s=i("83112"),l=i("64141"),a=i("22216"),d=i("45484"),h=i("50602"),c=i("56136"),u=i("36498"),g=i("47983"),m=i("65910"),p=i("32072");class f extends o.JT{get selectedItem(){return this._selectedItem}constructor(e,t,i,o){super(),this.editor=e,this.suggestControllerPreselector=t,this.checkModelVersion=i,this.onWillAccept=o,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=(0,c.uh)(this,void 0),this._register(e.onKeyDown(e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));let s=h.n.get(this.editor);if(s){this._register(s.registerSelector({priority:100,select:(e,t,i)=>{(0,c.PS)(e=>this.checkModelVersion(e));let n=this.editor.getModel();if(!n)return -1;let o=this.suggestControllerPreselector(),l=o?(0,p.J5)(o,n):void 0;if(!l)return -1;let a=r.L.lift(t),d=i.map((e,t)=>{let i=b.fromSuggestion(s,n,a,e,this.isShiftKeyPressed),o=(0,p.J5)(i.toSingleTextEdit(),n);return{index:t,valid:(0,p.qt)(l,o),prefixLength:o.text.length,suggestItem:e}}).filter(e=>e&&e.valid&&e.prefixLength>0),h=(0,m.hV)(d,(0,g.tT)(e=>e.prefixLength,g.fv));return h?h.index:-1}}));let e=!1,t=()=>{!e&&(e=!0,this._register(s.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(s.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.update(!1)})),this._register(s.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(n.ju.once(s.model.onDidTrigger)(e=>{t()})),this._register(s.onWillInsertSuggestItem(e=>{let t=this.editor.getPosition(),i=this.editor.getModel();if(!t||!i)return;let n=b.fromSuggestion(s,i,t,e.item,this.isShiftKeyPressed);this.onWillAccept(n)}))}this.update(this._isActive)}update(e){let t=this.getSuggestItemInfo();(this._isActive!==e||!function(e,t){return e===t||!!e&&!!t&&e.equals(t)}(this._currentSuggestItemInfo,t))&&(this._isActive=e,this._currentSuggestItemInfo=t,(0,c.PS)(e=>{this.checkModelVersion(e),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,e)}))}getSuggestItemInfo(){let e=h.n.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;let t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),n=this.editor.getModel();if(t&&i&&n)return b.fromSuggestion(e,n,i,t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){let e=h.n.get(this.editor);null==e||e.stopForceRenderingAbove()}forceRenderingAbove(){let e=h.n.get(this.editor);null==e||e.forceRenderingAbove()}}class b{static fromSuggestion(e,t,i,n,o){let{insertText:r}=n.completion,l=!1;if(4&n.completion.insertTextRules){let e=new a.Yj().parse(r);e.children.length<100&&d.l.adjustWhitespace(t,i,!0,e),r=e.toString(),l=!0}let h=e.getOverwriteInfo(n,o);return new b(s.e.fromPositions(i.delta(0,-h.overwriteBefore),i.delta(0,Math.max(h.overwriteAfter,0))),r,n.completion.kind,l)}constructor(e,t,i,n){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=n}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new l.ln(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new u.At(this.range,this.insertText)}}},14178:function(e,t,i){"use strict";var n=i("37764"),o=i("36809");class r extends n.JT{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(e=>{let t=this._editor.getOption(117);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})}))}}r.ID="editor.contrib.longLinesHelper",(0,o._K)(r.ID,r,2)},14432:function(e,t,i){"use strict";i.d(t,{q:function(){return l}});var n=i("37764"),o=i("64909"),r=i("1327"),s=i("94479");class l extends r.X{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){let t=(0,s.NC)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,n.JT.None}provideWithTextEditor(e,t,i){let r=e.editor,s=new n.SL;s.add(t.onDidAccept(i=>{let[n]=t.selectedItems;if(n){if(!this.isValidLineNumber(r,n.lineNumber))return;this.gotoLocation(e,{range:this.toRange(n.lineNumber,n.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),!i.inBackground&&t.hide()}}));let a=()=>{let e=this.parsePosition(r,t.value.trim().substr(l.PREFIX.length)),i=this.getPickLabel(r,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(r,e.lineNumber)){this.clearDecorations(r);return}let n=this.toRange(e.lineNumber,e.column);r.revealRangeInCenter(n,0),this.addDecorations(r,n)};a(),s.add(t.onDidChangeValue(()=>a()));let d=(0,o.Pi)(r);return d&&2===d.getOptions().get(68).renderType&&(d.updateOptions({lineNumbers:"on"}),s.add((0,n.OF)(()=>d.updateOptions({lineNumbers:"relative"})))),s}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let i=t.split(/,|:|#/).map(e=>parseInt(e,10)).filter(e=>!isNaN(e)),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?(0,s.NC)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):(0,s.NC)("gotoLineLabel","Go to line {0}.",t);let n=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?(0,s.NC)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,o):(0,s.NC)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!!t&&"number"==typeof t&&t>0&&t<=this.lineCount(e)}isValidColumn(e,t,i){if(!i||"number"!=typeof i)return!1;let n=this.getModel(e);if(!n)return!1;let o={lineNumber:t,column:i};return n.validatePosition(o).equals(o)}lineCount(e){var t,i;return null!==(i=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==i?i:0}}l.PREFIX=":"},59542:function(e,t,i){"use strict";let n;i.d(t,{A9:function(){return w},GI:function(){return y},ZJ:function(){return S},_y:function(){return k},i5:function(){return T},kL:function(){return x},tG:function(){return I}});var o=i("66735"),r=i("45802"),s=i("27236"),l=i("37764"),a=i("25907"),d=i("67414"),h=i("98084"),c=i("70668"),u=i("83112"),g=i("51413"),m=i("22216"),p=i("94479"),f=i("95316"),b=i("249"),v=i("77667"),_=i("76891");let k={Visible:i("57048").iX,HasFocusedSuggestion:new v.uy("suggestWidgetHasFocusedSuggestion",!1,(0,p.NC)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new v.uy("suggestWidgetDetailsVisible",!1,(0,p.NC)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new v.uy("suggestWidgetMultipleSuggestions",!1,(0,p.NC)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new v.uy("suggestionMakesTextEdit",!0,(0,p.NC)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new v.uy("acceptSuggestionOnEnter",!0,(0,p.NC)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new v.uy("suggestionHasInsertAndReplaceRange",!1,(0,p.NC)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new v.uy("suggestionInsertMode",void 0,{type:"string",description:(0,p.NC)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new v.uy("suggestionCanResolve",!1,(0,p.NC)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},y=new f.eH("suggestWidgetStatusBar");class C{constructor(e,t,i,n){var o;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:null===(o=t.label)||void 0===o?void 0:o.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,u.e.isIRange(t.range)?(this.editStart=new c.L(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new c.L(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new c.L(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||u.e.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new c.L(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new c.L(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new c.L(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||u.e.spansMultipleLines(t.range.insert)||u.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._resolveDuration=0)}get isResolved(){return void 0!==this._resolveDuration}get resolveDuration(){return void 0!==this._resolveDuration?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){let t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._resolveDuration=void 0}),i=new a.G(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(e=>{Object.assign(this.completion,e),this._resolveDuration=i.elapsed()},e=>{(0,r.n2)(e)&&(this._resolveCache=void 0,this._resolveDuration=void 0)}).finally(()=>{t.dispose()})}return this._resolveCache}}class w{constructor(e=2,t=new Set,i=new Set,n=new Map,o=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=o}}function S(){return n}w.default=new w;class L{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}async function x(e,t,i,s=w.default,d={triggerKind:0},h=o.Ts.None){let c=new a.G;i=i.clone();let g=t.getWordAtPosition(i),p=g?new u.e(i.lineNumber,g.startColumn,i.lineNumber,g.endColumn):u.e.fromPositions(i),f={replace:p,insert:p.setEndPosition(i.lineNumber,i.column)},b=[],v=new l.SL,_=[],k=!1,y=(e,t,n)=>{var o,r,a;let d=!1;if(!t)return d;for(let n of t.suggestions)if(!s.kindFilter.has(n.kind)){if(!s.showDeprecated&&(null===(o=null==n?void 0:n.tags)||void 0===o?void 0:o.includes(1)))continue;!n.range&&(n.range=f),!n.sortText&&(n.sortText="string"==typeof n.label?n.label:n.label.label),!k&&n.insertTextRules&&4&n.insertTextRules&&(k=m.Yj.guessNeedsClipboard(n.insertText)),b.push(new C(i,n,t,e)),d=!0}return(0,l.Wf)(t)&&v.add(t),_.push({providerName:null!==(r=e._debugDisplayName)&&void 0!==r?r:"unknown_provider",elapsedProvider:null!==(a=t.duration)&&void 0!==a?a:-1,elapsedOverall:n.elapsed()}),d},S=(async()=>{if(!n||s.kindFilter.has(27))return;let e=s.providerItemsToReuse.get(n);if(e){e.forEach(e=>b.push(e));return}if(s.providerFilter.size>0&&!s.providerFilter.has(n))return;let o=new a.G,r=await n.provideCompletionItems(t,i,d,h);y(n,r,o)})();for(let n of e.orderedGroups(t)){let e=!1;if(await Promise.all(n.map(async n=>{if(s.providerItemsToReuse.has(n)){let t=s.providerItemsToReuse.get(n);t.forEach(e=>b.push(e)),e=e||t.length>0;return}if(!(s.providerFilter.size>0)||s.providerFilter.has(n))try{let o=new a.G,r=await n.provideCompletionItems(t,i,d,h);e=y(n,r,o)||e}catch(e){(0,r.Cp)(e)}})),e||h.isCancellationRequested)break}return(await S,h.isCancellationRequested)?(v.dispose(),Promise.reject(new r.FU)):new L(b.sort(function(e){return D.get(e)}(s.snippetSortOrder)),k,{entries:_,elapsed:c.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;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);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)}b.P.registerCommand("_executeCompletionItemProvider",async(e,...t)=>{let[i,n,r,s]=t;(0,d.p_)(h.o.isUri(i)),(0,d.p_)(c.L.isIPosition(n)),(0,d.p_)("string"==typeof r||!r),(0,d.p_)("number"==typeof s||!s);let{completionProvider:l}=e.get(_.p),a=await e.get(g.S).createModelReference(i);try{let e={incomplete:!1,suggestions:[]},t=[],i=a.object.textEditorModel.validatePosition(n),d=await x(l,a.object.textEditorModel,i,void 0,{triggerCharacter:null!=r?r:void 0,triggerKind:r?1:0});for(let i of d.items)t.length<(null!=s?s:0)&&t.push(i.resolve(o.Ts.None)),e.incomplete=e.incomplete||i.container.incomplete,e.suggestions.push(i.completion);try{return await Promise.all(t),e}finally{setTimeout(()=>d.disposable.dispose(),100)}}finally{a.dispose()}});class I{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}}}},95482:function(e,t,i){"use strict";i("93633");var n=i("94479"),o=i("94590");(0,o.P6G)("symbolIcon.arrayForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.booleanForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.colorForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.constantForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.NC)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.fileForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.folderForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.keyForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.keywordForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.NC)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.moduleForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.namespaceForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.nullForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.numberForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.objectForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.operatorForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.packageForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.propertyForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.referenceForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.snippetForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.stringForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.structForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.textForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.typeParameterForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.unitForeground",{dark:o.dRz,light:o.dRz,hcDark:o.dRz,hcLight:o.dRz},(0,n.NC)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,o.P6G)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.NC)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},95176:function(e,t,i){"use strict";i("85654");var n,o=i("55952"),r=i("52640"),s=i("37764"),l=i("36809"),a=i("64141"),d=i("54532"),h=i("9114"),c=i("51405"),u=i("49756"),g=i("30410"),m=function(e,t){return function(i,n){t(i,n,e)}};let p=n=class extends s.JT{static get(e){return e.getContribution(n.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel(e=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(e=>this.stop())),this._register(a.RW.onDidChange(e=>this.stop())),this._register(this._editor.onKeyUp(e=>9===e.keyCode&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){if(!this._widget)this._editor.hasModel()&&(this._widget=new b(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};p.ID="editor.contrib.inspectTokens",p=n=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([m(1,u.Z),m(2,c.O)],p);class f extends l.R6{constructor(){super({id:"editor.action.inspectTokens",label:g.ug.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){let i=p.get(t);null==i||i.launch()}}class b extends s.JT{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=function(e,t){let i=a.RW.get(t);if(i)return i;let n=e.encodeLanguageId(t);return{getInitialState:()=>h.TJ,tokenize:(e,i,n)=>(0,h.Ri)(t,n),tokenizeEncoded:(e,t,i)=>(0,h.Dy)(n,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(e=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return b._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),i=0;for(let n=t.tokens1.length-1;n>=0;n--){let o=t.tokens1[n];if(e.column-1>=o.offset){i=n;break}}let n=0;for(let i=t.tokens2.length>>>1;i>=0;i--)if(e.column-1>=t.tokens2[i<<1]){n=i;break}let s=this._model.getLineContent(e.lineNumber),l="";if(i<t.tokens1.length){let e=t.tokens1[i].offset,n=i+1<t.tokens1.length?t.tokens1[i+1].offset:s.length;l=s.substring(e,n)}(0,o.mc)(this._domNode,(0,o.$)("h2.tm-token",void 0,function(e){let t="";for(let i=0,n=e.length;i<n;i++){let n=e.charCodeAt(i);switch(n){case 9:t+="\u2192";break;case 32:t+="\xb7";break;default:t+=String.fromCharCode(n)}}return t}(l),(0,o.$)("span.tm-token-length",void 0,`${l.length} ${1===l.length?"char":"chars"}`))),(0,o.R3)(this._domNode,(0,o.$)("hr.tokens-inspect-separator",{style:"clear:both"}));let a=(n<<1)+1<t.tokens2.length?this._decodeMetadata(t.tokens2[(n<<1)+1]):null;(0,o.R3)(this._domNode,(0,o.$)("table.tm-metadata-table",void 0,(0,o.$)("tbody",void 0,(0,o.$)("tr",void 0,(0,o.$)("td.tm-metadata-key",void 0,"language"),(0,o.$)("td.tm-metadata-value",void 0,`${a?a.languageId:"-?-"}`)),(0,o.$)("tr",void 0,(0,o.$)("td.tm-metadata-key",void 0,"token type"),(0,o.$)("td.tm-metadata-value",void 0,`${a?this._tokenTypeToString(a.tokenType):"-?-"}`)),(0,o.$)("tr",void 0,(0,o.$)("td.tm-metadata-key",void 0,"font style"),(0,o.$)("td.tm-metadata-value",void 0,`${a?this._fontStyleToString(a.fontStyle):"-?-"}`)),(0,o.$)("tr",void 0,(0,o.$)("td.tm-metadata-key",void 0,"foreground"),(0,o.$)("td.tm-metadata-value",void 0,`${a?r.Il.Format.CSS.formatHex(a.foreground):"-?-"}`)),(0,o.$)("tr",void 0,(0,o.$)("td.tm-metadata-key",void 0,"background"),(0,o.$)("td.tm-metadata-value",void 0,`${a?r.Il.Format.CSS.formatHex(a.background):"-?-"}`))))),(0,o.R3)(this._domNode,(0,o.$)("hr.tokens-inspect-separator")),i<t.tokens1.length&&(0,o.R3)(this._domNode,(0,o.$)("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){let t=a.RW.getColorMap(),i=d.N.getLanguageId(e),n=d.N.getTokenType(e),o=d.N.getFontStyle(e),r=d.N.getForeground(e),s=d.N.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(i),tokenType:n,fontStyle:o,foreground:t[r],background:t[s]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),8&e&&(t+="strikethrough "),0===t.length&&(t="---"),t}_getTokensAtLine(e){let t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),n=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:i.tokens,tokens2:n.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let i=1;i<e;i++)t=this._tokenizationSupport.tokenize(this._model.getLineContent(i),!0,t).endState;return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}b._ID="editor.contrib.inspectTokensWidget",(0,l._K)(p.ID,p,4),(0,l.Qr)(f)},81398:function(e,t,i){"use strict";i.d(t,{yU:function(){return eg}});var n=i("91867"),o=i("37764"),r=i("71482"),s=i("98084");i("88245");var l=i("59893"),a=i("36809"),d=i("87294"),h=i("55408"),c=i("97295"),u=i("42299"),g=i("44843"),m=i("68201"),p=i("64141"),f=i("51405"),b=i("38386"),v=i("85829"),_=i("9114"),k=i("42733"),y=i("96468"),C=i("89187"),w=i("46852"),S=i("82976"),L=i("1680"),x=i("49756"),N=i("95316"),D=i("249"),T=i("77667"),I=i("81171"),E=i("88799"),P=i("19309"),F=i("23510");function R(e,t,i){return L.IO.initialize(i||{}).createInstance(S.Dq,e,t)}function M(e){return L.IO.get(d.$).onCodeEditorAdd(t=>{e(t)})}function B(e){return L.IO.get(d.$).onDiffEditorAdd(t=>{e(t)})}function O(){return L.IO.get(d.$).listCodeEditors()}function H(){return L.IO.get(d.$).listDiffEditors()}function A(e,t,i){return L.IO.initialize(i||{}).createInstance(S.AF,e,t)}function V(e,t){let i=L.IO.initialize(t||{});return new F.C(e,{},i)}function z(e){if("string"!=typeof e.id||"function"!=typeof e.run)throw Error("Invalid command descriptor, `id` and `run` are required properties!");return D.P.registerCommand(e.id,e.run)}function W(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");let t=T.Ao.deserialize(e.precondition),i=new o.SL;if(i.add(D.P.registerCommand(e.id,(i,...n)=>a._l.runEditorCommand(i,n,t,(t,i,n)=>Promise.resolve(e.run(i,...n))))),e.contextMenuGroupId){let n={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(N.BH.appendMenuItem(N.eH.EditorContext,n))}if(Array.isArray(e.keybindings)){let n=L.IO.get(I.d);if(n instanceof L.zC){let o=T.Ao.and(t,T.Ao.deserialize(e.keybindingContext));i.add(n.addDynamicKeybindings(e.keybindings.map(t=>({keybinding:t,command:e.id,when:o}))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i}function $(e){return K([e])}function K(e){let t=L.IO.get(I.d);return t instanceof L.zC?t.addDynamicKeybindings(e.map(e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:T.Ao.deserialize(e.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),o.JT.None)}function q(e,t,i){let n=L.IO.get(f.O),o=n.getLanguageIdByMimeType(t)||t;return(0,S.eR)(L.IO.get(y.q),n,e,o,i)}function G(e,t){let i=L.IO.get(f.O),n=i.getLanguageIdByMimeType(t)||t||v.bd;e.setLanguage(i.createById(n))}function U(e,t,i){e&&L.IO.get(E.lT).changeOne(t,e.uri,i)}function j(e){L.IO.get(E.lT).changeAll(e,[])}function Z(e){return L.IO.get(E.lT).read(e)}function Q(e){return L.IO.get(E.lT).onMarkerChanged(e)}function J(e){return L.IO.get(y.q).getModel(e)}function X(){return L.IO.get(y.q).getModels()}function Y(e){return L.IO.get(y.q).onModelAdded(e)}function ee(e){return L.IO.get(y.q).onModelRemoved(e)}function et(e){return L.IO.get(y.q).onModelLanguageChanged(t=>{e({model:t.model,oldLanguage:t.oldLanguageId})})}function ei(e){return(0,h.j)(L.IO.get(y.q),L.IO.get(b.c_),e)}function en(e,t){let i=L.IO.get(f.O),n=L.IO.get(x.Z);return w.V.colorizeElement(n,i,e,t).then(()=>{n.registerEditorContainer(e)})}function eo(e,t,i){let o=L.IO.get(f.O);return L.IO.get(x.Z).registerEditorContainer(n.E.document.body),w.V.colorize(o,e,t,i)}function er(e,t,i=4){return L.IO.get(x.Z).registerEditorContainer(n.E.document.body),w.V.colorizeModelLine(e,t,i)}function es(e,t){p.RW.getOrCreate(t);let i=function(e){let t=p.RW.get(e);return t?t:{getInitialState:()=>_.TJ,tokenize:(t,i,n)=>(0,_.Ri)(e,n)}}(t),n=(0,r.uq)(e),o=[],s=i.getInitialState();for(let e=0,t=n.length;e<t;e++){let t=n[e],r=i.tokenize(t,!0,s);o[e]=r.tokens,s=r.endState}return o}function el(e,t){L.IO.get(x.Z).defineTheme(e,t)}function ea(e){L.IO.get(x.Z).setTheme(e)}function ed(){l.g.clearAllFontInfos()}function eh(e,t){return D.P.registerCommand({id:e,handler:t})}function ec(e){return L.IO.get(P.v).registerOpener({open:async t=>("string"==typeof t&&(t=s.o.parse(t)),e.open(t))})}function eu(e){return L.IO.get(d.$).registerCodeEditorOpenHandler(async(t,i,n)=>{var o;let r;if(!i)return null;let s=null===(o=t.options)||void 0===o?void 0:o.selection;return(s&&"number"==typeof s.endLineNumber&&"number"==typeof s.endColumn?r=s:s&&(r={lineNumber:s.startLineNumber,column:s.startColumn}),await e.openCodeEditor(i,t.resource,r))?i:null})}function eg(){return{create:R,getEditors:O,getDiffEditors:H,onDidCreateEditor:M,onDidCreateDiffEditor:B,createDiffEditor:A,addCommand:z,addEditorAction:W,addKeybindingRule:$,addKeybindingRules:K,createModel:q,setModelLanguage:G,setModelMarkers:U,getModelMarkers:Z,removeAllMarkers:j,onDidChangeMarkers:Q,getModels:X,getModel:J,onDidCreateModel:Y,onWillDisposeModel:ee,onDidChangeModelLanguage:et,createWebWorker:ei,colorizeElement:en,colorize:eo,colorizeModelLine:er,tokenize:es,defineTheme:el,setTheme:ea,remeasureFonts:ed,registerCommand:eh,registerLinkOpener:ec,registerEditorOpener:eu,AccessibilitySupport:C.ao,ContentWidgetPositionPreference:C.r3,CursorChangeReason:C.Vi,DefaultEndOfLine:C._x,EditorAutoIndentStrategy:C.rf,EditorOption:C.wT,EndOfLinePreference:C.gm,EndOfLineSequence:C.jl,MinimapPosition:C.F5,MinimapSectionHeaderStyle:C.WG,MouseTargetType:C.MG,OverlayWidgetPositionPreference:C.E$,OverviewRulerLane:C.sh,GlyphMarginLane:C.U,RenderLineNumbersType:C.Lu,RenderMinimap:C.vQ,ScrollbarVisibility:C.g_,ScrollType:C.g4,TextEditorCursorBlinkingStyle:C.In,TextEditorCursorStyle:C.d2,TrackedRangeStickiness:C.OI,WrappingIndent:C.up,InjectedTextCursorStops:C.RM,PositionAffinity:C.py,ShowLightbulbIconMode:C.$r,ConfigurationChangedEvent:c.Bb,BareFontInfo:g.E4,FontInfo:g.pR,TextModelResolvedOptions:k.dJ,FindMatch:k.tk,ApplyUpdateResult:c.rk,EditorZoom:u.C,createMultiFileDiffEditor:V,EditorType:m.g,EditorOptions:c.BH}}},63640:function(e,t,i){"use strict";i.d(t,{S0:function(){return L},fT:function(){return v},k0:function(){return _}});var n=i("55952"),o=i("66832"),r=i("70432"),s=i("66735"),l=i("76115"),a=i("37764"),d=i("97147"),h=i("34308");i("97312");var c=i("94479"),u=i("81844"),g=i("81171"),m=i("1163"),p=i("94590"),f=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},b=function(e,t){return function(i,n){t(i,n,e)}};let v="acceptSelectedCodeAction",_="previewSelectedCodeAction";class k{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");let t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,o;i.text.textContent=null!==(o=null===(n=e.group)||void 0===n?void 0:n.title)&&void 0!==o?o:""}disposeTemplate(e){}}let y=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);let t=document.createElement("div");t.className="icon",e.append(t);let i=document.createElement("span");i.className="title",e.append(i);let n=new o.e(e,d.OS);return{container:e,icon:t,text:i,keybinding:n}}renderElement(e,t,i){var o,r,s;if((null===(o=e.group)||void 0===o?void 0:o.icon)?(i.icon.className=h.k.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=(0,p.n_1)(e.group.icon.color.id))):(i.icon.className=h.k.asClassName(l.l.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=x(e.label),i.keybinding.set(e.keybinding),n.iJ(!!e.keybinding,i.keybinding.element);let a=null===(r=this._keybindingService.lookupKeybinding(v))||void 0===r?void 0:r.getLabel(),d=null===(s=this._keybindingService.lookupKeybinding(_))||void 0===s?void 0:s.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&d?this._supportsPreview&&e.canPreview?i.container.title=(0,c.NC)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",a,d):i.container.title=(0,c.NC)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",a):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};y=f([b(1,g.d)],y);class C extends UIEvent{constructor(){super("acceptSelectedAction")}}class w extends UIEvent{constructor(){super("previewSelectedAction")}}function S(e){if("action"===e.kind)return e.label}let L=class extends a.JT{constructor(e,t,i,n,o,l){super(),this._delegate=n,this._contextViewService=o,this._keybindingService=l,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new s.AU),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");this._list=this._register(new r.aV(e,this.domNode,{getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind},[new y(t,this._keybindingService),new k],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:S},accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?x(null==e?void 0:e.label):"";return e.disabled&&(t=(0,c.NC)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,c.NC)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(m.O2),this._register(this._list.onMouseClick(e=>this.onListClick(e))),this._register(this._list.onMouseOver(e=>this.onListHover(e))),this._register(this._list.onDidChangeFocus(()=>this.onFocus())),this._register(this._list.onDidChangeSelection(e=>this.onListSelection(e))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){let t=this._allMenuItems.filter(e=>"header"===e.kind).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);let n=e;n=this._allMenuItems.length>=50?380:Math.max(...this._allMenuItems.map((e,t)=>{let i=this.domNode.ownerDocument.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";let e=i.getBoundingClientRect().width;return i.style.width="",e}return 0}),e);let o=Math.min(i,.7*this.domNode.ownerDocument.body.clientHeight);return this._list.layout(o,n),this.domNode.style.height=`${o}px`,this._list.domFocus(),n}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){let t=this._list.getFocus();if(0===t.length)return;let i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;let o=e?new w:new C;this._list.setSelection([i],o)}onListSelection(e){if(!e.elements.length)return;let t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof w):this._list.setSelection([])}onFocus(){var e,t;let i=this._list.getFocus();if(0===i.length)return;let n=i[0],o=this._list.element(n);null===(t=(e=this._delegate).onFocus)||void 0===t||t.call(e,o.item)}async onListHover(e){let t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&"action"===t.kind){let e=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=e?e.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus("number"==typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function x(e){return e.replace(/\r\n|\r|\n/g," ")}L=f([b(4,u.u),b(5,g.d)],L)},82376:function(e,t,i){"use strict";i.d(t,{e:function(){return n}});let n=(0,i("95449").yh)("labelService")},55111:function(e,t,i){"use strict";i.d(t,{F:function(){return n}});let n=(0,i("95449").yh)("layoutService")},87108:function(e,t,i){"use strict";i.d(t,{g:function(){return W},o:function(){return s}});var n,o,r,s,l,a=i("55952"),d=i("98212"),h=i("94479"),c=i("95449"),u=i("71542"),g=i("29149"),m=i("37764"),p=i("12084"),f=i("97147"),b=i("59287"),v=i("13848"),_=i("66832"),k=i("8614"),y=i("91989"),C=i("98084"),w=i("16179"),S=i("71461"),L=i("67296"),x=i("81930"),N=i("71482"),D=i("74394"),T=i("1966"),I=i("45802"),E=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},P=function(e,t){return function(i,n){t(i,n,e)}};let F=a.$;(n=s||(s={}))[n.First=1]="First",n[n.Second=2]="Second",n[n.Last=3]="Last",n[n.Next=4]="Next",n[n.Previous=5]="Previous",n[n.NextPage=6]="NextPage",n[n.PreviousPage=7]="PreviousPage",n[n.NextSeparator=8]="NextSeparator",n[n.PreviousSeparator=9]="PreviousSeparator";class R{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new S.o(()=>{var e;let t=null!==(e=i.label)&&void 0!==e?e:"",n=(0,L.Ho)(t).text.trim(),o=i.ariaLabel||[t,this.saneDescription,this.saneDetail].map(e=>(0,L.JL)(e)).filter(e=>!!e).join(", ");return{saneLabel:t,saneSortLabel:n,saneAriaLabel:o}}),this._saneDescription=i.description,this._saneTooltip=i.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}}class M extends R{constructor(e,t,i,n,o,r){var s,l,a;super(e,t,o),this.fireButtonTriggered=i,this._onChecked=n,this.item=o,this._separator=r,this._checked=!1,this.onChecked=t?d.ju.map(d.ju.filter(this._onChecked.event,e=>e.element===this),e=>e.checked):d.ju.None,this._saneDetail=o.detail,this._labelHighlights=null===(s=o.highlights)||void 0===s?void 0:s.label,this._descriptionHighlights=null===(l=o.highlights)||void 0===l?void 0:l.description,this._detailHighlights=null===(a=o.highlights)||void 0===a?void 0:a.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}}(o=l||(l={}))[o.NONE=0]="NONE",o[o.MOUSE_HOVER=1]="MOUSE_HOVER",o[o.ACTIVE_ITEM=2]="ACTIVE_ITEM";class B extends R{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=[],this.focusInsideSeparator=l.NONE}}class O{getHeight(e){return e instanceof B?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof M?V.ID:z.ID}}class H{getWidgetAriaLabel(){return(0,h.NC)("quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox&&e instanceof M)return{get value(){return e.checked},onDidChange:t=>e.onChecked(()=>t())}}}class A{constructor(e){this.hoverDelegate=e}renderTemplate(e){let t=Object.create(null);t.toDisposeElement=new m.SL,t.toDisposeTemplate=new m.SL,t.entry=a.R3(e,F(".quick-input-list-entry"));let i=a.R3(t.entry,F("label.quick-input-list-label"));t.toDisposeTemplate.add(a.mu(i,a.tw.CLICK,e=>{!t.checkbox.offsetParent&&e.preventDefault()})),t.checkbox=a.R3(i,F("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";let n=a.R3(i,F(".quick-input-list-rows")),o=a.R3(n,F(".quick-input-list-row")),r=a.R3(n,F(".quick-input-list-row"));t.label=new v.g(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=a.Ce(t.label.element,F(".quick-input-list-icon"));let s=a.R3(o,F(".quick-input-list-entry-keybinding"));t.keybinding=new _.e(s,f.OS),t.toDisposeTemplate.add(t.keybinding);let l=a.R3(r,F(".quick-input-list-label-meta"));return t.detail=new v.g(l,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=a.R3(t.entry,F(".quick-input-list-separator")),t.actionBar=new k.o(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let V=r=class extends A{constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return r.ID}renderTemplate(e){let t=super.renderTemplate(e);return t.toDisposeTemplate.add(a.mu(t.checkbox,a.tw.CHANGE,e=>{t.element.checked=t.checkbox.checked})),t}renderElement(e,t,i){var n,o,r;let s;let l=e.element;i.element=l,l.element=null!==(n=i.entry)&&void 0!==n?n:void 0;let d=l.item;i.checkbox.checked=l.checked,i.toDisposeElement.add(l.onChecked(e=>i.checkbox.checked=e)),i.checkbox.disabled=l.checkboxDisabled;let{labelHighlights:h,descriptionHighlights:c,detailHighlights:u}=l;if(d.iconPath){let e=(0,y._T)(this.themeService.getColorTheme().type)?d.iconPath.dark:null!==(o=d.iconPath.light)&&void 0!==o?o:d.iconPath.dark,t=C.o.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=a.wY(t)}else i.icon.style.backgroundImage="",i.icon.className=d.iconClass?`quick-input-list-icon ${d.iconClass}`:"";!l.saneTooltip&&l.saneDescription&&(s={markdown:{value:l.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:l.saneDescription});let g={matches:h||[],descriptionTitle:s,descriptionMatches:c||[],labelEscapeNewLines:!0};if(g.extraClasses=d.iconClasses,g.italic=d.italic,g.strikethrough=d.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(l.saneLabel,l.saneDescription,g),i.keybinding.set(d.keybinding),l.saneDetail){let e;!l.saneTooltip&&(e={markdown:{value:l.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:l.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(l.saneDetail,void 0,{matches:u,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";(null===(r=l.separator)||void 0===r?void 0:r.label)?(i.separator.textContent=l.separator.label,i.separator.style.display="",this.addItemWithSeparator(l)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!l.separator);let m=d.buttons;m&&m.length?(i.actionBar.push(m.map((e,t)=>(0,w.Q)(e,`id-${t}`,()=>l.fireButtonTriggered({button:e,item:l.item}))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){let t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};V.ID="quickpickitem",V=r=E([P(1,g.XE)],V);class z extends A{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}get templateId(){return z.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderElement(e,t,i){var n;let o;let r=e.element;i.element=r,r.element=null!==(n=i.entry)&&void 0!==n?n:void 0,r.element.classList.toggle("focus-inside",!!r.focusInsideSeparator);let s=r.separator,{labelHighlights:l,descriptionHighlights:a,detailHighlights:d}=r;i.icon.style.backgroundImage="",i.icon.className="",!r.saneTooltip&&r.saneDescription&&(o={markdown:{value:r.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDescription});let h={matches:l||[],descriptionTitle:o,descriptionMatches:a||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(r.saneLabel,r.saneDescription,h),r.saneDetail){let e;!r.saneTooltip&&(e={markdown:{value:r.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(r.saneDetail,void 0,{matches:d,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");let c=s.buttons;c&&c.length?(i.actionBar.push(c.map((e,t)=>(0,w.Q)(e,`id-${t}`,()=>r.fireSeparatorButtonTriggered({button:e,separator:r.separator}))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(r)}disposeElement(e,t,i){var n;this.removeSeparator(e.element),!this.isSeparatorVisible(e.element)&&(null===(n=e.element.element)||void 0===n||n.classList.remove("focus-inside")),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){let t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}z.ID="quickpickseparator";let W=class extends m.JT{constructor(e,t,i,n,o){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this._onKeyDown=new d.Q5,this.onKeyDown=this._onKeyDown.event,this._onLeave=new d.Q5,this.onLeave=this._onLeave.event,this._onChangedAllVisibleChecked=new d.Q5,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new d.Q5,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new d.Q5,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new d.Q5,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new d.Q5,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new d.Q5,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._onTriggerEmptySelectionOrFocus=new d.Q5,this._elementChecked=new d.Q5,this._inputElements=[],this._elementTree=[],this._itemElements=[],this._elementDisposable=this._register(new m.SL),this._shouldFireCheckedEvents=!0,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._container=a.R3(this.parent,F(".quick-input-list")),this._separatorRenderer=new z(t),this._itemRenderer=o.createInstance(V,t),this._tree=this._register(o.createInstance(u.PF,"QuickInput",this._container,new O,[this._itemRenderer,this._separatorRenderer],{accessibilityProvider:new H,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:D.E4.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,identityProvider:{getId:e=>{let t=e.item||e.separator;if(void 0===t)return"";if(void 0!==t.id)return t.id;let i=`label:${t.label}`;return i+=`$$description:${t.description}`,"separator"!==t.type&&(i+=`$$detail:${t.detail}`),i}},alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=n,this._registerListeners()}get onDidChangeFocus(){return d.ju.map(d.ju.any(this._tree.onDidChangeFocus,this._onTriggerEmptySelectionOrFocus.event),e=>e.elements.filter(e=>e instanceof M).map(e=>e.item))}get onDidChangeSelection(){return d.ju.map(d.ju.any(this._tree.onDidChangeSelection,this._onTriggerEmptySelectionOrFocus.event),e=>({items:e.elements.filter(e=>e instanceof M).map(e=>e.item),event:e.browserEvent}))}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=null!=e?e:""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown(e=>{let t=new p.y(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(f.dz?e.metaKey:e.ctrlKey)&&this._tree.setFocus(this._itemElements);break;case 16:{let e=this._tree.getFocus();1===e.length&&e[0]===this._itemElements[0]&&this._onLeave.fire();break}case 18:{let e=this._tree.getFocus();1===e.length&&e[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire()}}this._onKeyDown.fire(t)}))}_registerOnContainerClick(){this._register(a.nm(this._container,a.tw.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()}))}_registerOnMouseMiddleClick(){this._register(a.nm(this._container,a.tw.AUXCLICK,e=>{1===e.button&&this._onLeave.fire()}))}_registerOnElementChecked(){this._register(this._elementChecked.event(e=>this._fireCheckedEvents()))}_registerOnContextMenu(){this._register(this._tree.onContextMenu(e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))}))}_registerHoverListeners(){let e=this._register(new T.rH(this.hoverDelegate.delay));this._register(this._tree.onMouseOver(async t=>{var i;if(t.browserEvent.target instanceof HTMLAnchorElement){e.cancel();return}if(!(!(t.browserEvent.relatedTarget instanceof HTMLAnchorElement)&&a.jg(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element)))try{await e.trigger(async()=>{t.element instanceof M&&this.showHover(t.element)})}catch(e){if(!(0,I.n2)(e))throw e}})),this._register(this._tree.onMouseOut(t=>{var i;!a.jg(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element)&&e.cancel()}))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus(e=>{let t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(let e of this._separatorRenderer.visibleSeparators){let i=e===t;!!(e.focusInsideSeparator&l.ACTIVE_ITEM)!==i&&(i?e.focusInsideSeparator|=l.ACTIVE_ITEM:e.focusInsideSeparator&=~l.ACTIVE_ITEM,this._tree.rerender(e))}})),this._register(this._tree.onMouseOver(e=>{let t=e.element?this._tree.getParentElement(e.element):null;for(let e of this._separatorRenderer.visibleSeparators){if(e===t)!(e.focusInsideSeparator&l.MOUSE_HOVER)&&(e.focusInsideSeparator|=l.MOUSE_HOVER,this._tree.rerender(e))}})),this._register(this._tree.onMouseOut(e=>{let t=e.element?this._tree.getParentElement(e.element):null;for(let e of this._separatorRenderer.visibleSeparators){if(e===t)e.focusInsideSeparator&l.MOUSE_HOVER&&(e.focusInsideSeparator&=~l.MOUSE_HOVER,this._tree.rerender(e))}}))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection(e=>{let t=e.elements.filter(e=>e instanceof M);t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof B&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))}))}getAllVisibleChecked(){return this._allVisibleChecked(this._itemElements,!1)}getCheckedCount(){return this._itemElements.filter(e=>e.checked).length}getVisibleCount(){return this._itemElements.filter(e=>!e.hidden).length}setAllVisibleChecked(e){try{this._shouldFireCheckedEvents=!1,this._itemElements.forEach(t=>{!t.hidden&&!t.checkboxDisabled&&(t.checked=e)})}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}setElements(e){let t;this._elementDisposable.clear(),this._inputElements=e;let i=this.parent.classList.contains("show-checkboxes");this._itemElements=[],this._elementTree=e.reduce((n,o,r)=>{let s;if("separator"===o.type){if(!o.buttons)return n;s=t=new B(r,e=>this.fireSeparatorButtonTriggered(e),o)}else{let l;let a=r>0?e[r-1]:void 0;a&&"separator"===a.type&&!a.buttons&&(t=void 0,l=a);let d=new M(r,i,e=>this.fireButtonTriggered(e),this._elementChecked,o,l);if(this._itemElements.push(d),t)return t.children.push(d),n;s=d}return n.push(s),n},[]);let n=[],o=0;for(let e of this._elementTree)e instanceof B?(n.push({element:e,collapsible:!1,collapsed:!1,children:e.children.map(e=>({element:e,collapsible:!1,collapsed:!1}))}),o+=e.children.length+1):(n.push({element:e,collapsible:!1,collapsed:!1}),o++);this._tree.setChildren(null,n),this._onChangedVisibleCount.fire(o)}setFocusedElements(e){let t=e.map(e=>this._itemElements.find(t=>t.item===e)).filter(e=>!!e);if(this._tree.setFocus(t),e.length>0){let e=this._tree.getFocus()[0];e&&this._tree.reveal(e)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){let t=e.map(e=>this._itemElements.find(t=>t.item===e)).filter(e=>!!e);this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._shouldFireCheckedEvents=!1;let t=new Set;for(let i of e)t.add(i);for(let e of this._itemElements)e.checked=t.has(e.item)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}focus(e){var t;if(this._itemElements.length)switch(e===s.Second&&this._itemElements.length<2&&(e=s.First),e){case s.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,e=>e.element instanceof M);break;case s.Second:this._tree.scrollTop=0,this._tree.setFocus([this._itemElements[1]]);break;case s.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]);break;case s.Next:this._tree.focusNext(void 0,!0,void 0,e=>e.element instanceof M&&(this._tree.reveal(e.element),!0));break;case s.Previous:this._tree.focusPrevious(void 0,!0,void 0,e=>{if(!(e.element instanceof M))return!1;let t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0});break;case s.NextPage:this._tree.focusNextPage(void 0,e=>e.element instanceof M&&(this._tree.reveal(e.element),!0));break;case s.PreviousPage:this._tree.focusPreviousPage(void 0,e=>{if(!(e.element instanceof M))return!1;let t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0});break;case s.NextSeparator:{let e=!1,t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,t=>{if(e)return!0;if(t.element instanceof B)e=!0,this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element.children[0]):this._tree.reveal(t.element,0);else if(t.element instanceof M){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0}return!1}),t===this._tree.getFocus()[0]&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]));break}case s.PreviousSeparator:{let e;let i=!!(null===(t=this._tree.getFocus()[0])||void 0===t?void 0:t.separator);this._tree.focusPrevious(void 0,!0,void 0,t=>{if(t.element instanceof B)i?!e&&(this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element.children[0]):i=!0;else if(t.element instanceof M&&!e){if(t.element.separator)this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element;else if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0}return!1}),e&&this._tree.setFocus([e])}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?`${44*Math.floor(e/44)+6}px`:"",this._tree.layout()}filter(e){let t;if(!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;let i=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let t;this._elementTree.forEach(n=>{var o,r,s,l;let a;a="fuzzy"===this.matchOnLabelMode?this.matchOnLabel&&null!==(o=(0,L.Gt)(e,(0,L.Ho)(n.saneLabel)))&&void 0!==o?o:void 0:this.matchOnLabel&&null!==(r=function(e,t){let{text:i,iconOffsets:n}=t;if(!n||0===n.length)return $(e,i);let o=(0,N.j3)(i," "),r=i.length-o.length,s=$(e,o);if(s)for(let e of s){let t=n[e.start+r]+r;e.start+=t,e.end+=t}return s}(i,(0,L.Ho)(n.saneLabel)))&&void 0!==r?r:void 0;let d=this.matchOnDescription&&null!==(s=(0,L.Gt)(e,(0,L.Ho)(n.saneDescription||"")))&&void 0!==s?s:void 0,h=this.matchOnDetail&&null!==(l=(0,L.Gt)(e,(0,L.Ho)(n.saneDetail||"")))&&void 0!==l?l:void 0;if(a||d||h?(n.labelHighlights=a,n.descriptionHighlights=d,n.detailHighlights=h,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item||!n.item.alwaysShow),n.item?n.separator=void 0:n.separator&&(n.hidden=!0),!this.sortByLabel){let e=n.index&&this._inputElements[n.index-1];(t=e&&"separator"===e.type?e:t)&&!n.hidden&&(n.separator=t,t=void 0)}})}else this._itemElements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;let t=e.index&&this._inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0)});let n=this._elementTree.filter(e=>!e.hidden);if(this.sortByLabel&&e){let t=e.toLowerCase();n.sort((e,i)=>(function(e,t,i){let n=e.labelHighlights||[],o=t.labelHighlights||[];return n.length&&!o.length?-1:!n.length&&o.length?1:0===n.length&&0===o.length?0:(0,x.LE)(e.saneSortLabel,t.saneSortLabel,i)})(e,i,t))}let o=n.reduce((e,i,n)=>(i instanceof M?t?t.children.push(i):e.push(i):i instanceof B&&(i.children=[],t=i,e.push(i)),e),[]),r=[];for(let e of o)e instanceof B?r.push({element:e,collapsible:!1,collapsed:!1,children:e.children.map(e=>({element:e,collapsible:!1,collapsed:!1}))}):r.push({element:e,collapsible:!1,collapsed:!1});let s=this._tree.getFocus().length;return this._tree.setChildren(null,r),s>0&&0===r.length&&this._onTriggerEmptySelectionOrFocus.fire({elements:[]}),this._tree.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(n.length),!0}toggleCheckbox(){try{this._shouldFireCheckedEvents=!1;let e=this._tree.getFocus().filter(e=>e instanceof M),t=this._allVisibleChecked(e);for(let i of e)!i.checkboxDisabled&&(i.checked=!t)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}display(e){this._container.style.display=e?"":"none"}isDisplayed(){return"none"!==this._container.style.display}style(e){this._tree.style(e)}toggleHover(){let e=this._tree.getFocus()[0];if(!(null==e?void 0:e.saneTooltip)||!(e instanceof M))return;if(this._lastHover&&!this._lastHover.isDisposed){this._lastHover.dispose();return}this.showHover(e);let t=new m.SL;t.add(this._tree.onDidChangeFocus(e=>{e.elements[0]instanceof M&&this.showHover(e.elements[0])})),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_allVisibleChecked(e,t=!0){for(let i=0,n=e.length;i<n;i++){let n=e[i];if(!n.hidden){if(!n.checked)return!1;t=!0}}return t}_fireCheckedEvents(){this._shouldFireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}fireSeparatorButtonTriggered(e){this._onSeparatorButtonTriggered.fire(e)}showHover(e){var t,i,n;this._lastHover&&!this._lastHover.isDisposed&&(null===(i=(t=this.hoverDelegate).onDidHideHover)||void 0===i||i.call(t),null===(n=this._lastHover)||void 0===n||n.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.linkOpenerDelegate(e)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};E([b.H],W.prototype,"onDidChangeFocus",null),E([b.H],W.prototype,"onDidChangeSelection",null),W=E([P(4,c.TG)],W);function $(e,t){let i=t.toLowerCase().indexOf(e.toLowerCase());return -1!==i?[{start:i,end:i+e.length}]:null}},1163:function(e,t,i){"use strict";i.d(t,{BM:function(){return m},Hc:function(){return d},O2:function(){return u},TU:function(){return g},ZR:function(){return p},b5:function(){return l},eO:function(){return r},ku:function(){return c},pl:function(){return a},uX:function(){return h},wG:function(){return s}});var n=i("94590"),o=i("52640");let r={keybindingLabelBackground:(0,n.n_1)(n.oQ$),keybindingLabelForeground:(0,n.n_1)(n.lWp),keybindingLabelBorder:(0,n.n_1)(n.AWI),keybindingLabelBottomBorder:(0,n.n_1)(n.K19),keybindingLabelShadow:(0,n.n_1)(n.rh)},s={buttonForeground:(0,n.n_1)(n.j5u),buttonSeparator:(0,n.n_1)(n.iFQ),buttonBackground:(0,n.n_1)(n.b7$),buttonHoverBackground:(0,n.n_1)(n.GO4),buttonSecondaryForeground:(0,n.n_1)(n.qBU),buttonSecondaryBackground:(0,n.n_1)(n.ESD),buttonSecondaryHoverBackground:(0,n.n_1)(n.xEn),buttonBorder:(0,n.n_1)(n.GYc)},l={progressBarBackground:(0,n.n_1)(n.zRJ)},a={inputActiveOptionBorder:(0,n.n_1)(n.PRb),inputActiveOptionForeground:(0,n.n_1)(n.Pvw),inputActiveOptionBackground:(0,n.n_1)(n.XEs)};(0,n.n_1)(n.SUp),(0,n.n_1)(n.nd),(0,n.n_1)(n.BQ0),(0,n.n_1)(n.D0T),(0,n.n_1)(n.Hfx),(0,n.n_1)(n.rh),(0,n.n_1)(n.lRK),(0,n.n_1)(n.JpG),(0,n.n_1)(n.BOY),(0,n.n_1)(n.OLZ),(0,n.n_1)(n.url);let d={inputBackground:(0,n.n_1)(n.sEe),inputForeground:(0,n.n_1)(n.zJb),inputBorder:(0,n.n_1)(n.dt_),inputValidationInfoBorder:(0,n.n_1)(n.EPQ),inputValidationInfoBackground:(0,n.n_1)(n._lC),inputValidationInfoForeground:(0,n.n_1)(n.YI3),inputValidationWarningBorder:(0,n.n_1)(n.C3g),inputValidationWarningBackground:(0,n.n_1)(n.RV_),inputValidationWarningForeground:(0,n.n_1)(n.SUG),inputValidationErrorBorder:(0,n.n_1)(n.OZR),inputValidationErrorBackground:(0,n.n_1)(n.paE),inputValidationErrorForeground:(0,n.n_1)(n._t9)},h={listFilterWidgetBackground:(0,n.n_1)(n.vGG),listFilterWidgetOutline:(0,n.n_1)(n.oSI),listFilterWidgetNoMatchesOutline:(0,n.n_1)(n.Saq),listFilterWidgetShadow:(0,n.n_1)(n.y65),inputBoxStyles:d,toggleStyles:a},c={badgeBackground:(0,n.n_1)(n.g8u),badgeForeground:(0,n.n_1)(n.qeD),badgeBorder:(0,n.n_1)(n.lRK)};(0,n.n_1)(n.ixd),(0,n.n_1)(n.l80),(0,n.n_1)(n.H6q),(0,n.n_1)(n.H6q),(0,n.n_1)(n.fSI);let u={listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,n.n_1)(n._bK),listFocusForeground:(0,n.n_1)(n._2n),listFocusOutline:(0,n.n_1)(n.Oop),listActiveSelectionBackground:(0,n.n_1)(n.dCr),listActiveSelectionForeground:(0,n.n_1)(n.M6C),listActiveSelectionIconForeground:(0,n.n_1)(n.Tnx),listFocusAndSelectionOutline:(0,n.n_1)(n.Bqu),listFocusAndSelectionBackground:(0,n.n_1)(n.dCr),listFocusAndSelectionForeground:(0,n.n_1)(n.M6C),listInactiveSelectionBackground:(0,n.n_1)(n.rg2),listInactiveSelectionIconForeground:(0,n.n_1)(n.kvU),listInactiveSelectionForeground:(0,n.n_1)(n.ytC),listInactiveFocusBackground:(0,n.n_1)(n.s$),listInactiveFocusOutline:(0,n.n_1)(n.F3d),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listDropOverBackground:(0,n.n_1)(n.pdn),listDropBetweenBackground:(0,n.n_1)(n.XVp),listSelectionOutline:(0,n.n_1)(n.xL1),listHoverOutline:(0,n.n_1)(n.xL1),treeIndentGuidesStroke:(0,n.n_1)(n.UnT),treeInactiveIndentGuidesStroke:(0,n.n_1)(n.KjV),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0,tableColumnsBorder:(0,n.n_1)(n.uxu),tableOddRowsBackgroundColor:(0,n.n_1)(n.EQn)};function g(e){return function(e,t){let i={...t};for(let t in e){let o=e[t];i[t]=void 0!==o?(0,n.n_1)(o):void 0}return i}(e,u)}let m={selectBackground:(0,n.n_1)(n.XV0),selectListBackground:(0,n.n_1)(n.Fgs),selectForeground:(0,n.n_1)(n._g0),decoratorRightForeground:(0,n.n_1)(n.kJk),selectBorder:(0,n.n_1)(n.a9O),focusBorder:(0,n.n_1)(n.R80),listFocusBackground:(0,n.n_1)(n.Vqd),listInactiveSelectionIconForeground:(0,n.n_1)(n.cbQ),listFocusForeground:(0,n.n_1)(n.NPS),listFocusOutline:(0,n.BtC)(n.xL1,o.Il.transparent.toString()),listHoverBackground:(0,n.n_1)(n.mV1),listHoverForeground:(0,n.n_1)(n.$d5),listHoverOutline:(0,n.n_1)(n.xL1),selectListBorder:(0,n.n_1)(n.D1_),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},p={shadowColor:(0,n.n_1)(n.rh),borderColor:(0,n.n_1)(n.Cdg),foregroundColor:(0,n.n_1)(n.DEr),backgroundColor:(0,n.n_1)(n.Hz8),selectionForegroundColor:(0,n.n_1)(n.jbW),selectionBackgroundColor:(0,n.n_1)(n.$DX),selectionBorderColor:(0,n.n_1)(n.E3h),separatorColor:(0,n.n_1)(n.ZGJ),scrollbarShadow:(0,n.n_1)(n._wn),scrollbarSliderBackground:(0,n.n_1)(n.etL),scrollbarSliderHoverBackground:(0,n.n_1)(n.ABB),scrollbarSliderActiveBackground:(0,n.n_1)(n.ynu)}},19957:function(e,t,i){"use strict";i.d(t,{$n:function(){return f},Bt:function(){return c},IP:function(){return u},JV:function(){return k},NS:function(){return _},P6:function(){return m},QO:function(){return d},Zn:function(){return b},_j:function(){return p},kw:function(){return v},n_:function(){return h}});var n=i("26089"),o=i("1966"),r=i("52640"),s=i("98212"),l=i("68351"),a=i("88928");function d(e){return`--vscode-${e.replace(/\./g,"-")}`}function h(e){return`var(${d(e)})`}function c(e,t){return`var(${d(e)}, ${t})`}let u={ColorContribution:"base.contributions.colors"},g=new class e{constructor(){this._onDidChangeSchema=new s.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,o){this.colorsById[e]={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:o};let r={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(r.deprecationMessage=o),n&&(r.pattern="^#(?:(?<rgba>[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",r.patternErrorMessage="This color must be transparent or it will obscure content"),this.colorSchema.properties[e]=r,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 y(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")}};function m(e,t,i,n,o){return g.registerColor(e,t,i,n,o)}a.B.add(u.ColorContribution,g);function p(e,t){return{op:0,value:e,factor:t}}function f(e,t){return{op:1,value:e,factor:t}}function b(e,t){return{op:2,value:e,factor:t}}function v(...e){return{op:4,values:e}}function _(e,t,i){return{op:6,if:e,then:t,else:i}}function k(e,t,i,n){return{op:5,value:e,background:t,factor:i,transparency:n}}function y(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,o,s,l;switch(e.op){case 0:return null===(i=y(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(o=y(e.value,t))||void 0===o?void 0:o.lighten(e.factor);case 2:return null===(s=y(e.value,t))||void 0===s?void 0:s.transparent(e.factor);case 3:{let i=y(e.background,t);if(!i)return y(e.value,t);return null===(l=y(e.value,t))||void 0===l?void 0:l.makeOpaque(i)}case 4:for(let i of e.values){let e=y(i,t);if(e)return e}return;case 6:return y(t.defines(e.if)?e.then:e.else,t);case 5:{let i=y(e.value,t);if(!i)return;let n=y(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,n.vE)(e)}}(e,t)}let C="vscode://schemas/workbench-colors",w=a.B.as(l.I.JSONContribution);w.registerSchema(C,g.getColorSchema());let S=new o.pY(()=>w.notifySchemaChanged(C),200);g.onDidChangeSchema(()=>{!S.isScheduled()&&S.schedule()})},64640:function(e,t,i){"use strict";var n=i("94479"),o=i("19957"),r=i("45570"),s=i("55475"),l=i("60948");(0,o.P6)("charts.foreground",{dark:r.dR,light:r.dR,hcDark:r.dR,hcLight:r.dR},n.NC("chartsForeground","The foreground color used in charts.")),(0,o.P6)("charts.lines",{dark:(0,o.Zn)(r.dR,.5),light:(0,o.Zn)(r.dR,.5),hcDark:(0,o.Zn)(r.dR,.5),hcLight:(0,o.Zn)(r.dR,.5)},n.NC("chartsLines","The color used for horizontal lines in charts.")),(0,o.P6)("charts.red",{dark:s.lX,light:s.lX,hcDark:s.lX,hcLight:s.lX},n.NC("chartsRed","The red color used in chart visualizations.")),(0,o.P6)("charts.blue",{dark:s.c6,light:s.c6,hcDark:s.c6,hcLight:s.c6},n.NC("chartsBlue","The blue color used in chart visualizations.")),(0,o.P6)("charts.yellow",{dark:s.uo,light:s.uo,hcDark:s.uo,hcLight:s.uo},n.NC("chartsYellow","The yellow color used in chart visualizations.")),(0,o.P6)("charts.orange",{dark:l.SU,light:l.SU,hcDark:l.SU,hcLight:l.SU},n.NC("chartsOrange","The orange color used in chart visualizations.")),(0,o.P6)("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},n.NC("chartsGreen","The green color used in chart visualizations.")),(0,o.P6)("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},n.NC("chartsPurple","The purple color used in chart visualizations."))},55475:function(e,t,i){"use strict";i.d(t,{A4:function(){return q},BO:function(){return el},CN:function(){return I},Cz:function(){return H},D0:function(){return h},D1:function(){return u},Du:function(){return k},ES:function(){return S},Ei:function(){return N},F9:function(){return $},Fm:function(){return eo},H6:function(){return Z},HC:function(){return M},Hf:function(){return c},Jp:function(){return es},MU:function(){return x},NO:function(){return d},OL:function(){return ea},P4:function(){return z},P6:function(){return W},Pp:function(){return P},Rz:function(){return L},SP:function(){return er},T8:function(){return _},VV:function(){return E},_Y:function(){return y},b6:function(){return m},bK:function(){return R},c6:function(){return v},cv:function(){return a},fS:function(){return Q},gk:function(){return D},gp:function(){return p},hE:function(){return C},hX:function(){return F},ix:function(){return j},ke:function(){return A},l8:function(){return U},lX:function(){return g},pW:function(){return b},ph:function(){return B},rh:function(){return K},uo:function(){return f},yJ:function(){return T},yb:function(){return w},yp:function(){return V}});var n=i("94479"),o=i("52640"),r=i("19957"),s=i("45570"),l=i("39666");let a=(0,r.P6)("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:o.Il.black,hcLight:o.Il.white},n.NC("editorBackground","Editor background color.")),d=(0,r.P6)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:o.Il.white,hcLight:s.dR},n.NC("editorForeground","Editor default foreground color."));(0,r.P6)("editorStickyScroll.background",{light:a,dark:a,hcDark:a,hcLight:a},n.NC("editorStickyScrollBackground","Background color of sticky scroll in the editor")),(0,r.P6)("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:o.Il.fromHex("#0F4A85").transparent(.1)},n.NC("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),(0,r.P6)("editorStickyScroll.border",{dark:null,light:null,hcDark:s.lR,hcLight:s.lR},n.NC("editorStickyScrollBorder","Border color of sticky scroll in the editor")),(0,r.P6)("editorStickyScroll.shadow",{dark:l._w,light:l._w,hcDark:l._w,hcLight:l._w},n.NC("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor"));let h=(0,r.P6)("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:o.Il.white},n.NC("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),c=(0,r.P6)("editorWidget.foreground",{dark:s.dR,light:s.dR,hcDark:s.dR,hcLight:s.dR},n.NC("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),u=(0,r.P6)("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:s.lR,hcLight:s.lR},n.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."));(0,r.P6)("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},n.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.")),(0,r.P6)("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},n.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);let g=(0,r.P6)("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},n.NC("editorError.foreground","Foreground color of error squigglies in the editor.")),m=(0,r.P6)("editorError.border",{dark:null,light:null,hcDark:o.Il.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},n.NC("errorBorder","If set, color of double underlines for errors in the editor.")),p=(0,r.P6)("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},n.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),f=(0,r.P6)("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},n.NC("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),b=(0,r.P6)("editorWarning.border",{dark:null,light:null,hcDark:o.Il.fromHex("#FFCC00").transparent(.8),hcLight:o.Il.fromHex("#FFCC00").transparent(.8)},n.NC("warningBorder","If set, color of double underlines for warnings in the editor."));(0,r.P6)("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},n.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);let v=(0,r.P6)("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},n.NC("editorInfo.foreground","Foreground color of info squigglies in the editor.")),_=(0,r.P6)("editorInfo.border",{dark:null,light:null,hcDark:o.Il.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},n.NC("infoBorder","If set, color of double underlines for infos in the editor.")),k=(0,r.P6)("editorHint.foreground",{dark:o.Il.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},n.NC("editorHint.foreground","Foreground color of hint squigglies in the editor."));(0,r.P6)("editorHint.border",{dark:null,light:null,hcDark:o.Il.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},n.NC("hintBorder","If set, color of double underlines for hints in the editor."));let y=(0,r.P6)("editorLink.activeForeground",{dark:"#4E94CE",light:o.Il.blue,hcDark:o.Il.cyan,hcLight:"#292929"},n.NC("activeLinkForeground","Color of active links.")),C=(0,r.P6)("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},n.NC("editorSelectionBackground","Color of the editor selection.")),w=(0,r.P6)("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:o.Il.white},n.NC("editorSelectionForeground","Color of the selected text for high contrast.")),S=(0,r.P6)("editor.inactiveSelectionBackground",{light:(0,r.Zn)(C,.5),dark:(0,r.Zn)(C,.5),hcDark:(0,r.Zn)(C,.7),hcLight:(0,r.Zn)(C,.5)},n.NC("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),L=(0,r.P6)("editor.selectionHighlightBackground",{light:(0,r.JV)(C,a,.3,.6),dark:(0,r.JV)(C,a,.3,.6),hcDark:null,hcLight:null},n.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);(0,r.P6)("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:s.xL,hcLight:s.xL},n.NC("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),(0,r.P6)("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},n.NC("editorFindMatch","Color of the current search match."));let x=(0,r.P6)("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},n.NC("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.P6)("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},n.NC("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.P6)("editor.findMatchBorder",{light:null,dark:null,hcDark:s.xL,hcLight:s.xL},n.NC("editorFindMatchBorder","Border color of the current search match."));let N=(0,r.P6)("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:s.xL,hcLight:s.xL},n.NC("findMatchHighlightBorder","Border color of the other search matches.")),D=(0,r.P6)("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:(0,r.Zn)(s.xL,.4),hcLight:(0,r.Zn)(s.xL,.4)},n.NC("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.P6)("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},n.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);let T=(0,r.P6)("editorHoverWidget.background",{light:h,dark:h,hcDark:h,hcLight:h},n.NC("hoverBackground","Background color of the editor hover."));(0,r.P6)("editorHoverWidget.foreground",{light:c,dark:c,hcDark:c,hcLight:c},n.NC("hoverForeground","Foreground color of the editor hover."));let I=(0,r.P6)("editorHoverWidget.border",{light:u,dark:u,hcDark:u,hcLight:u},n.NC("hoverBorder","Border color of the editor hover."));(0,r.P6)("editorHoverWidget.statusBarBackground",{dark:(0,r.$n)(T,.2),light:(0,r._j)(T,.05),hcDark:h,hcLight:h},n.NC("statusBarBackground","Background color of the editor hover status bar."));let E=(0,r.P6)("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:o.Il.white,hcLight:o.Il.black},n.NC("editorInlayHintForeground","Foreground color of inline hints")),P=(0,r.P6)("editorInlayHint.background",{dark:(0,r.Zn)(l.g8,.1),light:(0,r.Zn)(l.g8,.1),hcDark:(0,r.Zn)(o.Il.white,.1),hcLight:(0,r.Zn)(l.g8,.1)},n.NC("editorInlayHintBackground","Background color of inline hints")),F=(0,r.P6)("editorInlayHint.typeForeground",{dark:E,light:E,hcDark:E,hcLight:E},n.NC("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),R=(0,r.P6)("editorInlayHint.typeBackground",{dark:P,light:P,hcDark:P,hcLight:P},n.NC("editorInlayHintBackgroundTypes","Background color of inline hints for types")),M=(0,r.P6)("editorInlayHint.parameterForeground",{dark:E,light:E,hcDark:E,hcLight:E},n.NC("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),B=(0,r.P6)("editorInlayHint.parameterBackground",{dark:P,light:P,hcDark:P,hcLight:P},n.NC("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),O=(0,r.P6)("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},n.NC("editorLightBulbForeground","The color used for the lightbulb actions icon."));(0,r.P6)("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},n.NC("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),(0,r.P6)("editorLightBulbAi.foreground",{dark:O,light:O,hcDark:O,hcLight:O},n.NC("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),(0,r.P6)("editor.snippetTabstopHighlightBackground",{dark:new o.Il(new o.VS(124,124,124,.3)),light:new o.Il(new o.VS(10,50,100,.2)),hcDark:new o.Il(new o.VS(124,124,124,.3)),hcLight:new o.Il(new o.VS(10,50,100,.2))},n.NC("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),(0,r.P6)("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),(0,r.P6)("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),(0,r.P6)("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new o.Il(new o.VS(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},n.NC("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet."));let H=new o.Il(new o.VS(155,185,85,.2)),A=new o.Il(new o.VS(255,0,0,.2)),V=(0,r.P6)("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},n.NC("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),z=(0,r.P6)("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},n.NC("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.P6)("diffEditor.insertedLineBackground",{dark:H,light:H,hcDark:null,hcLight:null},n.NC("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.P6)("diffEditor.removedLineBackground",{dark:A,light:A,hcDark:null,hcLight:null},n.NC("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),(0,r.P6)("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),(0,r.P6)("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("diffEditorRemovedLineGutter","Background color for the margin where lines got removed."));let W=(0,r.P6)("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),$=(0,r.P6)("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},n.NC("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content."));(0,r.P6)("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},n.NC("diffEditorInsertedOutline","Outline color for the text that got inserted.")),(0,r.P6)("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},n.NC("diffEditorRemovedOutline","Outline color for text that got removed.")),(0,r.P6)("diffEditor.border",{dark:null,light:null,hcDark:s.lR,hcLight:s.lR},n.NC("diffEditorBorder","Border color between the two text editors.")),(0,r.P6)("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},n.NC("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),(0,r.P6)("diffEditor.unchangedRegionBackground",{dark:"sideBar.background",light:"sideBar.background",hcDark:"sideBar.background",hcLight:"sideBar.background"},n.NC("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),(0,r.P6)("diffEditor.unchangedRegionForeground",{dark:"foreground",light:"foreground",hcDark:"foreground",hcLight:"foreground"},n.NC("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),(0,r.P6)("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},n.NC("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor."));let K=(0,r.P6)("widget.shadow",{dark:(0,r.Zn)(o.Il.black,.36),light:(0,r.Zn)(o.Il.black,.16),hcDark:null,hcLight:null},n.NC("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),q=(0,r.P6)("widget.border",{dark:null,light:null,hcDark:s.lR,hcLight:s.lR},n.NC("widgetBorder","Border color of widgets such as find/replace inside the editor.")),G=(0,r.P6)("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},n.NC("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"));(0,r.P6)("toolbar.hoverOutline",{dark:null,light:null,hcDark:s.xL,hcLight:s.xL},n.NC("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),(0,r.P6)("toolbar.activeBackground",{dark:(0,r.$n)(G,.1),light:(0,r._j)(G,.1),hcDark:null,hcLight:null},n.NC("toolbarActiveBackground","Toolbar background when holding the mouse over actions"));let U=(0,r.P6)("breadcrumb.foreground",{light:(0,r.Zn)(s.dR,.8),dark:(0,r.Zn)(s.dR,.8),hcDark:(0,r.Zn)(s.dR,.8),hcLight:(0,r.Zn)(s.dR,.8)},n.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),j=(0,r.P6)("breadcrumb.background",{light:a,dark:a,hcDark:a,hcLight:a},n.NC("breadcrumbsBackground","Background color of breadcrumb items.")),Z=(0,r.P6)("breadcrumb.focusForeground",{light:(0,r._j)(s.dR,.2),dark:(0,r.$n)(s.dR,.1),hcDark:(0,r.$n)(s.dR,.1),hcLight:(0,r.$n)(s.dR,.1)},n.NC("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),Q=(0,r.P6)("breadcrumb.activeSelectionForeground",{light:(0,r._j)(s.dR,.2),dark:(0,r.$n)(s.dR,.1),hcDark:(0,r.$n)(s.dR,.1),hcLight:(0,r.$n)(s.dR,.1)},n.NC("breadcrumbsSelectedForeground","Color of selected breadcrumb items."));(0,r.P6)("breadcrumbPicker.background",{light:h,dark:h,hcDark:h,hcLight:h},n.NC("breadcrumbsSelectedBackground","Background color of breadcrumb item picker."));let J=o.Il.fromHex("#40C8AE").transparent(.5),X=o.Il.fromHex("#40A6FF").transparent(.5),Y=o.Il.fromHex("#606060").transparent(.4),ee=(0,r.P6)("merge.currentHeaderBackground",{dark:J,light:J,hcDark:null,hcLight:null},n.NC("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.P6)("merge.currentContentBackground",{dark:(0,r.Zn)(ee,.4),light:(0,r.Zn)(ee,.4),hcDark:(0,r.Zn)(ee,.4),hcLight:(0,r.Zn)(ee,.4)},n.NC("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let et=(0,r.P6)("merge.incomingHeaderBackground",{dark:X,light:X,hcDark:null,hcLight:null},n.NC("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.P6)("merge.incomingContentBackground",{dark:(0,r.Zn)(et,.4),light:(0,r.Zn)(et,.4),hcDark:(0,r.Zn)(et,.4),hcLight:(0,r.Zn)(et,.4)},n.NC("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let ei=(0,r.P6)("merge.commonHeaderBackground",{dark:Y,light:Y,hcDark:null,hcLight:null},n.NC("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.P6)("merge.commonContentBackground",{dark:(0,r.Zn)(ei,.4),light:(0,r.Zn)(ei,.4),hcDark:(0,r.Zn)(ei,.4),hcLight:(0,r.Zn)(ei,.4)},n.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 en=(0,r.P6)("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},n.NC("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."));(0,r.P6)("editorOverviewRuler.currentContentForeground",{dark:(0,r.Zn)(ee,1),light:(0,r.Zn)(ee,1),hcDark:en,hcLight:en},n.NC("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),(0,r.P6)("editorOverviewRuler.incomingContentForeground",{dark:(0,r.Zn)(et,1),light:(0,r.Zn)(et,1),hcDark:en,hcLight:en},n.NC("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),(0,r.P6)("editorOverviewRuler.commonContentForeground",{dark:(0,r.Zn)(ei,1),light:(0,r.Zn)(ei,1),hcDark:en,hcLight:en},n.NC("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts."));let eo=(0,r.P6)("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},n.NC("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),er=(0,r.P6)("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},n.NC("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),es=(0,r.P6)("problemsErrorIcon.foreground",{dark:g,light:g,hcDark:g,hcLight:g},n.NC("problemsErrorIconForeground","The color used for the problems error icon.")),el=(0,r.P6)("problemsWarningIcon.foreground",{dark:f,light:f,hcDark:f,hcLight:f},n.NC("problemsWarningIconForeground","The color used for the problems warning icon.")),ea=(0,r.P6)("problemsInfoIcon.foreground",{dark:v,light:v,hcDark:v,hcLight:v},n.NC("problemsInfoIconForeground","The color used for the problems info icon."))}}]);
|