@rsdoctor/client 0.3.2 → 0.3.3
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.f0279c55.js +156 -0
- package/dist/resource/js/monaco-0.92c812de.js +20 -0
- package/dist/resource/js/monaco-1.6a7defc9.js +1 -0
- package/dist/resource/js/monaco-10.cdc45bb5.js +3 -0
- package/dist/resource/js/monaco-11.40a1fcb1.js +4 -0
- package/dist/resource/js/monaco-12.0c116aa2.js +43 -0
- package/dist/resource/js/monaco-13.dcefcf80.js +366 -0
- package/dist/resource/js/monaco-14.afa84c5f.js +42 -0
- package/dist/resource/js/monaco-15.26757ead.js +8 -0
- package/dist/resource/js/monaco-16.77a3677c.js +4 -0
- package/dist/resource/js/monaco-17.b0290dba.js +1 -0
- package/dist/resource/js/monaco-2.133a02f6.js +18 -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.b2a6d9b1.js +8 -0
- package/dist/resource/js/monaco-6.042b95c8.js +3 -0
- package/dist/resource/js/monaco-7.0c2b350f.js +1 -0
- package/dist/resource/js/monaco-8.389906ed.js +1 -0
- package/dist/resource/js/monaco-9.9a685176.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
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["670"],{64146:function(e,t,i){"use strict";i.d(t,{C:function(){return r}});var n=i("9737"),o=i("19527");class r{constructor(){this._hooks=new o.SL,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;let i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,r,s){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=r,this._onStopCallback=s;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,o.OF)(()=>{e.releasePointerCapture(t)}))}catch(e){a=window}this._hooks.add(n.nm(a,n.tw.POINTER_MOVE,e=>{if(e.buttons!==i){this.stopMonitoring(!0);return}e.preventDefault(),this._pointerMoveCallback(e)})),this._hooks.add(n.nm(a,n.tw.POINTER_UP,e=>this.stopMonitoring(!0)))}}},66569:function(e,t,i){"use strict";i.d(t,{o:function(){return d},t:function(){return o}});var n,o,r=i("9737"),s=i("3868"),a=i("49714"),l=i("19527");(n=o||(o={})).Tap="-monaco-gesturetap",n.Change="-monaco-gesturechange",n.Start="-monaco-gesturestart",n.End="-monaco-gesturesend",n.Contextmenu="-monaco-gesturecontextmenu";class d extends l.JT{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(r.nm(document,"touchstart",e=>this.onTouchStart(e),{passive:!1})),this._register(r.nm(document,"touchend",e=>this.onTouchEnd(e))),this._register(r.nm(document,"touchmove",e=>this.onTouchMove(e),{passive:!1}))}static addTarget(e){return d.isTouchDevice()?(!d.INSTANCE&&(d.INSTANCE=new d),d.INSTANCE.targets.push(e),{dispose:()=>{d.INSTANCE.targets=d.INSTANCE.targets.filter(t=>t!==e)}}):l.JT.None}static ignoreTarget(e){return d.isTouchDevice()?(!d.INSTANCE&&(d.INSTANCE=new d),d.INSTANCE.ignoreTargets.push(e),{dispose:()=>{d.INSTANCE.ignoreTargets=d.INSTANCE.ignoreTargets.filter(t=>t!==e)}}):l.JT.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,n=e.targetTouches.length;i<n;i++){let n=e.targetTouches.item(i);this.activeTouches[n.identifier]={id:n.identifier,initialTarget:n.target,initialTimeStamp:t,initialPageX:n.pageX,initialPageY:n.pageY,rollingTimestamps:[t],rollingPageX:[n.pageX],rollingPageY:[n.pageY]};let r=this.newGestureEvent(o.Start,n.target);r.pageX=n.pageX,r.pageY=n.pageY,this.dispatchEvent(r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e){let t=Date.now(),i=Object.keys(this.activeTouches).length;for(let n=0,r=e.changedTouches.length;n<r;n++){let r=e.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(r.identifier))){console.warn("move of an UNKNOWN touch",r);continue}let a=this.activeTouches[r.identifier],l=Date.now()-a.initialTimeStamp;if(l<d.HOLD_DELAY&&30>Math.abs(a.initialPageX-s.Gb(a.rollingPageX))&&30>Math.abs(a.initialPageY-s.Gb(a.rollingPageY))){let e=this.newGestureEvent(o.Tap,a.initialTarget);e.pageX=s.Gb(a.rollingPageX),e.pageY=s.Gb(a.rollingPageY),this.dispatchEvent(e)}else if(l>=d.HOLD_DELAY&&30>Math.abs(a.initialPageX-s.Gb(a.rollingPageX))&&30>Math.abs(a.initialPageY-s.Gb(a.rollingPageY))){let e=this.newGestureEvent(o.Contextmenu,a.initialTarget);e.pageX=s.Gb(a.rollingPageX),e.pageY=s.Gb(a.rollingPageY),this.dispatchEvent(e)}else if(1===i){let e=s.Gb(a.rollingPageX),i=s.Gb(a.rollingPageY),n=s.Gb(a.rollingTimestamps)-a.rollingTimestamps[0],o=e-a.rollingPageX[0],r=i-a.rollingPageY[0],l=this.targets.filter(e=>a.initialTarget instanceof Node&&e.contains(a.initialTarget));this.inertia(l,t,Math.abs(o)/n,o>0?1:-1,e,Math.abs(r)/n,r>0?1:-1,i)}this.dispatchEvent(this.newGestureEvent(o.End,a.initialTarget)),delete this.activeTouches[r.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){let i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===o.Tap){let t=new Date().getTime(),i=0;i=t-this._lastSetTapCountTime>d.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else(e.type===o.Change||e.type===o.Contextmenu)&&(this._lastSetTapCountTime=0);for(let t=0;t<this.ignoreTargets.length;t++)if(e.initialTarget instanceof Node&&this.ignoreTargets[t].contains(e.initialTarget))return;this.targets.forEach(t=>{e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)})}inertia(e,t,i,n,s,a,l,c){this.handle=r.jL(()=>{let r=Date.now(),u=r-t,h=0,g=0,p=!0;i+=d.SCROLL_FRICTION*u,a+=d.SCROLL_FRICTION*u,i>0&&(p=!1,h=n*i*u),a>0&&(p=!1,g=l*a*u);let m=this.newGestureEvent(o.Change);m.translationX=h,m.translationY=g,e.forEach(e=>e.dispatchEvent(m)),!p&&this.inertia(e,r,i,n,s+h,a,l,c+g)})}onTouchMove(e){let t=Date.now();for(let i=0,n=e.changedTouches.length;i<n;i++){let n=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(n.identifier))){console.warn("end of an UNKNOWN touch",n);continue}let r=this.activeTouches[n.identifier],a=this.newGestureEvent(o.Change,r.initialTarget);a.translationX=n.pageX-s.Gb(r.rollingPageX),a.translationY=n.pageY-s.Gb(r.rollingPageY),a.pageX=n.pageX,a.pageY=n.pageY,this.dispatchEvent(a),r.rollingPageX.length>3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(n.pageX),r.rollingPageY.push(n.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}d.SCROLL_FRICTION=-.005,d.HOLD_DELAY=700,d.CLEAR_TAP_COUNT_TIME=400,!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([a.H],d,"isTouchDevice",null)},98200:function(e,t,i){"use strict";i.d(t,{C:function(){return a}});var n=i("9737"),o=i("68587"),r=i("15209"),s=i("16904");i("29414");class a extends o.Y{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new s.Q5),this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;let t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{this.element=(0,n.R3)(e,(0,n.$)("a.action-label"));let t=[];return"string"==typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter(e=>!!e):this.options.classNames&&(t=this.options.classNames),!t.find(e=>"icon"===e)&&t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new r.h(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility(e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){let e=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return e.options.anchorAlignmentProvider()}})}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.getAction().tooltip?e=this.getAction().tooltip:this.getAction().label&&(e=this.getAction().label),null!=e?e:void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}updateEnabled(){var e,t;let i=!this.getAction().enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",i),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",i)}}},99437:function(e,t,i){"use strict";i.d(t,{O:function(){return h},g:function(){return p}});var n=i("9737"),o=i("67518"),r=i("862"),s=i("70691"),a=i("47578"),l=i("19527"),d=i("44138"),c=i("8339"),u=function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};function h(e,t){(0,d.HD)(t)?e.title=(0,a.x$)(t):(null==t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}class g{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t,i){var n;return u(this,void 0,void 0,function*(){let o;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),!this.isDisposed){if(void 0===e||(0,d.HD)(e)||e instanceof HTMLElement)o=e;else if((0,d.mf)(e.markdown)){!this._hoverWidget&&this.show((0,c.NC)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new r.A;let i=this._cancellationTokenSource.token;if(void 0===(o=yield e.markdown(i))&&(o=e.markdownNotSupportedFallback),this.isDisposed||i.isCancellationRequested)return}else o=null!==(n=e.markdown)&&void 0!==n?n:e.markdownNotSupportedFallback;this.show(o,t,i)}})}show(e,t,i){let n=this._hoverWidget;if(this.hasContent(e)){let o=Object.assign({content:e,target:this.target,showPointer:"element"===this.hoverDelegate.placement,hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!n},i);this._hoverWidget=this.hoverDelegate.showHover(o,t)}null==n||n.dispose()}hasContent(e){return!!e&&(!(0,s.Fr)(e)||!!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}function p(e,t,i,r){let s,a;let d=(t,i)=>{var n;t&&(null==a||a.dispose(),a=void 0),i&&(null==s||s.dispose(),s=void 0),null===(n=e.onDidHideHover)||void 0===n||n.call(e)},c=(n,s,l)=>new o._F(()=>u(this,void 0,void 0,function*(){(!a||a.isDisposed)&&(a=new g(e,l||t,n>0),yield a.update(i,s,r))}),n),h=n.nm(t,n.tw.MOUSE_OVER,()=>{if(s)return;let i=new l.SL;i.add(n.nm(t,n.tw.MOUSE_LEAVE,e=>d(!1,e.fromElement===t),!0));i.add(n.nm(t,n.tw.MOUSE_DOWN,()=>d(!0,!0),!0));let o={targetElements:[t],dispose:()=>{}};(void 0===e.placement||"mouse"===e.placement)&&i.add(n.nm(t,n.tw.MOUSE_MOVE,e=>{o.x=e.x+10,e.target instanceof HTMLElement&&e.target.classList.contains("action-label")&&d(!0,!0)},!0)),i.add(c(e.delay,!1,o)),s=i},!0);return{show:e=>{d(!1,!0),c(0,e)},hide:()=>{d(!0,!0)},update:(e,t)=>u(this,void 0,void 0,function*(){i=e,yield null==a?void 0:a.update(i,void 0,t)}),dispose:()=>{h.dispose(),d(!0,!0)}}}},44711:function(e,t,i){"use strict";i.d(t,{Xl:function(){return s},uY:function(){return r}});var n=i("64618");function o(e,t){let i=[];for(let o of t){if(e.start>=o.range.end)continue;if(e.end<o.range.start)break;let t=n.e.intersect(e,o.range);!n.e.isEmpty(t)&&i.push({range:t,size:o.size})}return i}function r({start:e,end:t},i){return{start:e+i,end:t+i}}class s{constructor(){this.groups=[],this._size=0}splice(e,t,i=[]){let n=i.length-t,s=o({start:0,end:e},this.groups),a=o({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(e=>({range:r(e.range,n),size:e.size})),l=i.map((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size}));this.groups=function(...e){return function(e){let t=[],i=null;for(let n of e){let e=n.range.start,o=n.range.end,r=n.size;if(i&&r===i.size){i.range.end=o;continue}i={range:{start:e,end:o},size:r},t.push(i)}return t}(e.reduce((e,t)=>e.concat(t),[]))}(s,l,a),this._size=this.groups.reduce((e,t)=>e+t.size*(t.range.end-t.range.start),0)}get count(){let e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return -1;let t=0,i=0;for(let n of this.groups){let o=n.range.end-n.range.start,r=i+o*n.size;if(e<r)return t+Math.floor((e-i)/n.size);t+=o,i=r}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return -1;let t=0,i=0;for(let n of this.groups){let o=n.range.end-n.range.start,r=i+o;if(e<r)return t+(e-i)*n.size;t+=o*n.size,i=r}return -1}}},1578:function(e,t,i){"use strict";i.d(t,{T:function(){return c}});var n=i("9737"),o=i("70758"),r=i("64146"),s=i("40472"),a=i("52877"),l=i("95832"),d=i("7875");class c extends l.${constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new a.Y(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new r.C),this._shouldRender=!0,this.domNode=(0,o.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(n.nm(this.domNode.domNode,n.tw.POINTER_DOWN,e=>this._domNodePointerDown(e)))}_createArrow(e){let t=this._register(new s.$(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,r){this.slider=(0,o.X)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof i&&this.slider.setWidth(i),"number"==typeof r&&this.slider.setHeight(r),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(n.nm(this.slider.domNode,n.tw.POINTER_DOWN,e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))})),this.onclick(this.slider.domNode,e=>{e.leftButton&&e.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,!this._lazyRender&&this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,!this._lazyRender&&this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,!this._lazyRender&&this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){let t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderPointerPosition(e);i<=o&&o<=n?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"==typeof e.offsetX&&"number"==typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{let o=n.i(this.domNode.domNode);t=e.pageX-o.left,i=e.pageY-o.top}let o=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(o):this._scrollbarState.getDesiredScrollPositionFromOffset(o)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,e=>{let o=this._sliderOrthogonalPointerPosition(e);if(d.ED&&Math.abs(o-i)>140){this._setDesiredScrollPositionNow(n.getScrollPosition());return}let r=this._sliderPointerPosition(e);this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(r-t))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,!this._lazyRender&&this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}},75024:function(e,t,i){"use strict";i.d(t,{CL:function(){return o},EW:function(){return B},Ji:function(){return l},KZ:function(){return y},Oh:function(){return M},Sy:function(){return u},ir:function(){return c},jB:function(){return L},l7:function(){return j},mB:function(){return I},mX:function(){return H},or:function(){return a}});var n,o,r=i("34289"),s=i("66763");function a(...e){return function(t,i){for(let n=0,o=e.length;n<o;n++){let o=e[n](t,i);if(o)return o}return null}}d.bind(void 0,!1);let l=d.bind(void 0,!0);function d(e,t,i){let n;return i&&!(i.length<t.length)&&(n=e?s.ok(i,t):0===i.indexOf(t))?t.length>0?[{start:0,end:t.length}]:[]:null}function c(e,t){let i=t.toLowerCase().indexOf(e.toLowerCase());return -1===i?null:[{start:i,end:i+e.length}]}function u(e,t){return function e(t,i,n,o){if(n===t.length)return[];if(o===i.length)return null;if(t[n]===i[o]){let r=null;return(r=e(t,i,n+1,o+1))?b({start:o,end:o+1},r):null}return e(t,i,n,o+1)}(e.toLowerCase(),t.toLowerCase(),0,0)}function h(e){return 97<=e&&e<=122}function g(e){return 65<=e&&e<=90}function p(e){return 48<=e&&e<=57}function m(e){return 32===e||9===e||10===e||13===e}let f=new Set;function w(e){return m(e)||f.has(e)}"()[]{}<>`'\"-/;:,.?!".split("").forEach(e=>f.add(e.charCodeAt(0)));function C(e){return h(e)||g(e)||p(e)}function b(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function v(e,t){for(let i=t;i<e.length;i++){let t=e.charCodeAt(i);if(g(t)||p(t)||i>0&&!C(e.charCodeAt(i-1)))return i}return e.length}function _(e,t){if(!t||0===(t=t.trim()).length||!function(e){let t=0,i=0,n=0,o=0;for(let r=0;r<e.length;r++)g(n=e.charCodeAt(r))&&t++,h(n)&&i++,m(n)&&o++;return(0===t||0===i)&&0===o?e.length<=30:t<=5}(e)||t.length>60)return null;let i=function(e){let t=0,i=0,n=0,o=0,r=0;for(let s=0;s<e.length;s++)g(r=e.charCodeAt(s))&&t++,h(r)&&i++,C(r)&&n++,p(r)&&o++;let s=t/e.length,a=i/e.length,l=n/e.length;return{upperPercent:s,lowerPercent:a,alphaPercent:l,numericPercent:o/e.length}}(t);if(!function(e){let{upperPercent:t,lowerPercent:i,alphaPercent:n,numericPercent:o}=e;return i>.2&&t<.8&&n>.6&&o<.2}(i)){if(!function(e){let{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,o=0;for(e=e.toLowerCase();o<t.length&&null===(n=function e(t,i,n,o){if(n===t.length)return[];{if(o===i.length||t[n]!==i[o].toLowerCase())return null;let r=null,s=o+1;for(r=e(t,i,n+1,o+1);!r&&(s=v(i,s))<i.length;)r=e(t,i,n+1,s),s++;return null===r?null:b({start:o,end:o+1},r)}}(e,t,0,o));)o=v(t,o+1);return n}function y(e,t,i=!1){if(!t||0===t.length)return null;let n=null,o=0;for(e=e.toLowerCase(),t=t.toLowerCase();o<t.length&&null===(n=function e(t,i,n,o,r){if(n===t.length)return[];{var s,a;if(o===i.length)return null;if(s=t.charCodeAt(n),!(s===(a=i.charCodeAt(o))||w(s)&&w(a)))return null;let l=null,d=o+1;if(l=e(t,i,n+1,o+1,r),!r)for(;!l&&(d=S(i,d))<i.length;)l=e(t,i,n+1,d,r),d++;return null===l?null:b({start:o,end:o+1},l)}}(e,t,0,o,i));)o=S(t,o+1);return n}function S(e,t){for(let i=t;i<e.length;i++)if(w(e.charCodeAt(i))||i>0&&w(e.charCodeAt(i-1)))return i;return e.length}let N=a(l,_,c),k=a(l,_,u),x=new r.z6(1e4);function M(e,t,i=!1){if("string"!=typeof e||"string"!=typeof t)return null;let n=x.get(e);!n&&(n=RegExp(s.un(e),"i"),x.set(e,n));let o=n.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:i?k(e,t):N(e,t)}function L(e,t,i,n,o,r){let s=Math.min(13,e.length);for(;i<s;i++){let s=B(e,t,i,n,o,r,{firstMatchCanBeWeak:!1,boostFullMatch:!0});if(s)return s}return[0,r]}function I(e){if(void 0===e)return[];let t=[],i=e[1];for(let n=e.length-1;n>1;n--){let o=e[n]+i,r=t[t.length-1];r&&r.end===o?r.end=o+1:t.push({start:o,end:o+1})}return t}function T(){let e=[],t=[];for(let e=0;e<=128;e++)t[e]=0;for(let i=0;i<=128;i++)e.push(t.slice(0));return e}function D(e){let t=[];for(let i=0;i<=e;i++)t[i]=0;return t}let P=D(256),R=D(256),O=T(),E=T(),A=T();function F(e,t,i,n,o){function r(e,t,i=" "){for(;e.length<t;)e=i+e;return e}let s=` | |${n.split("").map(e=>r(e,3)).join("|")}
|
|
2
|
-
`;for(let n=0;n<=i;n++)0===n?s+=" |":s+=`${t[n-1]}|`,s+=e[n].slice(0,o+1).map(e=>r(e.toString(),3)).join("|")+"\n";return s}function W(e,t){if(t<0||t>=e.length)return!1;let i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:if(s.C8(i))return!0;return!1}}function V(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function z(e,t,i){return t[e]!==i[e]}(n=o||(o={})).Default=[-100,0],n.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]};class H{constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function B(e,t,i,n,o,r,s=H.default){var a,l,d,c,u,h,g;let p=e.length>128?128:e.length,m=n.length>128?128:n.length;if(i>=p||r>=m||p-i>m-r||!function(e,t,i,n,o,r,s=!1){for(;t<i&&o<r;)e[t]===n[o]&&(s&&(P[t]=o),t+=1),o+=1;return t===i}(t,i,p,o,r,m,!0))return;(function(e,t,i,n,o,r){let s=e-1,a=t-1;for(;s>=i&&a>=n;)o[s]===r[a]&&(R[s]=a,s--),a--})(p,m,i,r,t,o);let f=1,w=1,C=i,b=r,v=[!1];for(f=1,C=i;C<p;f++,C++){let s=P[C],a=R[C],l=C+1<p?R[C+1]:m;for(w=s-r+1,b=s;b<l;w++,b++){let l=Number.MIN_SAFE_INTEGER,d=!1;b<=a&&(l=function(e,t,i,n,o,r,s,a,l,d,c){var u,h,g,p,m,f,w,C,b;if(t[i]!==r[s])return Number.MIN_SAFE_INTEGER;let v=1,_=!1;if(s===i-n)v=e[i]===o[s]?7:5;else{;if(u=s,h=o,g=r,h[u]===g[u]||0!==s&&(p=s-1,m=o,f=r,m[p]!==f[p]))W(r,s)&&(0===s||!W(r,s-1))?v=5:(W(r,s-1)||V(r,s-1))&&(v=5,_=!0);else v=e[i]===o[s]?7:5,_=!0}if(v>1&&i===n&&(c[0]=!0),!_){;_=(w=s,C=o,b=r,C[w]!==b[w]||W(r,s-1)||V(r,s-1))}return i===n?s>l&&(v-=_?3:5):d?v+=_?2:0:v+=_?0:1,s+1===a&&(v-=_?3:5),v}(e,t,C,i,n,o,b,m,r,0===O[f-1][w-1],v));let c=0;l!==Number.MAX_SAFE_INTEGER&&(d=!0,c=l+E[f-1][w-1]);let u=b>s,h=u?E[f][w-1]+(O[f][w-1]>0?-5:0):0,g=b>s+1&&O[f][w-1]>0,p=g?E[f][w-2]+(O[f][w-2]>0?-5:0):0;if(g&&(!u||p>=h)&&(!d||p>=c))E[f][w]=p,A[f][w]=3,O[f][w]=0;else if(u&&(!d||h>=c))E[f][w]=h,A[f][w]=2,O[f][w]=0;else if(d)E[f][w]=c,A[f][w]=1,O[f][w]=O[f-1][w-1]+1;else throw Error("not possible")}}if(!v[0]&&!s.firstMatchCanBeWeak)return;f--,w--;let _=[E[f][w],r],y=0,S=0;for(;f>=1;){;let e=w;do{let t=A[f][e];if(3===t)e-=2;else if(2===t)e-=1;else break}while(e>=1);if(y>1&&t[i+f-1]===o[r+w-1]&&(u=e+r-1,h=n,g=o,h[u]===g[u])&&y+1>O[f][e])e=w;e===w?y++:y=1,!S&&(S=e),f--,w=e-1,_.push(w)}m===p&&s.boostFullMatch&&(_[0]+=2);let N=S-p;return _[0]-=N,_}H.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};function j(e,t,i,n,o,r,s){return function(e,t,i,n,o,r,s,a){let l=B(e,t,i,n,o,r,a);if(l&&!s)return l;if(e.length>=3){let t=Math.min(7,e.length-1);for(let s=i+1;s<t;s++){let t=function(e,t){if(t+1>=e.length)return;let i=e[t],n=e[t+1];if(i!==n)return e.slice(0,t)+n+i+e.slice(t+2)}(e,s);if(t){let e=B(t,t.toLowerCase(),i,n,o,r,a);e&&(e[0]-=3,(!l||e[0]>l[0])&&(l=e))}}}return l}(e,t,i,n,o,r,!0,s)}},64774:function(e,t,i){"use strict";i.d(t,{v:function(){return n}});let n=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},57135:function(e,t,i){"use strict";(0,i("54606").H)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"99629"))})},71038:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}},37391: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:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".ecl",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],pounds:"append|break|declare|demangle|end|for|getdatatype|if|inmodule|loop|mangle|onwarning|option|set|stored|uniquename",keywords:["__compressed__","after","all","and","any","as","atmost","before","beginc","best","between","case","cluster","compressed","compression","const","counter","csv","default","descend","embed","encoding","encrypt","end","endc","endembed","endmacro","enum","escape","except","exclusive","expire","export","extend","fail","few","fileposition","first","flat","forward","from","full","function","functionmacro","group","grouped","heading","hole","ifblock","import","in","inner","interface","internal","joined","keep","keyed","last","left","limit","linkcounted","literal","little_endian","load","local","locale","lookup","lzw","macro","many","maxcount","maxlength","min skew","module","mofn","multiple","named","namespace","nocase","noroot","noscan","nosort","not","noxpath","of","onfail","only","opt","or","outer","overwrite","packed","partition","penalty","physicallength","pipe","prefetch","quote","record","repeat","retry","return","right","right1","right2","rows","rowset","scan","scope","self","separator","service","shared","skew","skip","smart","soapaction","sql","stable","store","terminator","thor","threshold","timelimit","timeout","token","transform","trim","type","unicodeorder","unordered","unsorted","unstable","update","use","validate","virtual","whole","width","wild","within","wnotrim","xml","xpath"],functions:["abs","acos","aggregate","allnodes","apply","ascii","asin","assert","asstring","atan","atan2","ave","build","buildindex","case","catch","choose","choosen","choosesets","clustersize","combine","correlation","cos","cosh","count","covariance","cron","dataset","dedup","define","denormalize","dictionary","distribute","distributed","distribution","ebcdic","enth","error","evaluate","event","eventextra","eventname","exists","exp","fail","failcode","failmessage","fetch","fromunicode","fromxml","getenv","getisvalid","global","graph","group","hash","hash32","hash64","hashcrc","hashmd5","having","httpcall","httpheader","if","iff","index","intformat","isvalid","iterate","join","keydiff","keypatch","keyunicode","length","library","limit","ln","loadxml","local","log","loop","map","matched","matchlength","matchposition","matchtext","matchunicode","max","merge","mergejoin","min","nofold","nolocal","nonempty","normalize","nothor","notify","output","parallel","parse","pipe","power","preload","process","project","pull","random","range","rank","ranked","realformat","recordof","regexfind","regexreplace","regroup","rejected","rollup","round","roundup","row","rowdiff","sample","sequential","set","sin","sinh","sizeof","soapcall","sort","sorted","sqrt","stepped","stored","sum","table","tan","tanh","thisnode","topn","tounicode","toxml","transfer","transform","trim","truncate","typeof","ungroup","unicodeorder","variance","wait","which","workunit","xmldecode","xmlencode","xmltext","xmlunicode"],typesint:"integer|unsigned",typesnum:["data","qstring","string","unicode","utf8","varstring","varunicode"],typesone:"ascii|big_endian|boolean|data|decimal|ebcdic|grouped|integer|linkcounted|pattern|qstring|real|record|rule|set of|streamed|string|token|udecimal|unicode|unsigned|utf8|varstring|varunicode",operators:["+","-","/",":=","<","<>","=",">","\\","and","in","not","or"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/@typesint[4|8]/,"type"],[/#(@pounds)/,"type"],[/@typesone/,"type"],[/[a-zA-Z_$][\w-$]*/,{cases:{"@functions":"keyword.function","@keywords":"keyword","@operators":"operator"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}},10288: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:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}},92602:function(e,t,i){"use strict";(0,i("54606").H)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"19561"))})},89218:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return o},language:function(){return r}});var n=i("5690"),o=n.conf,r={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:n.language.operators,symbols:n.language.symbols,escapes:n.language.escapes,digits:n.language.digits,octaldigits:n.language.octaldigits,binarydigits:n.language.binarydigits,hexdigits:n.language.hexdigits,regexpctl:n.language.regexpctl,regexpesc:n.language.regexpesc,tokenizer:n.language.tokenizer}},20043:function(e,t,i){"use strict";(0,i("54606").H)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"2998"))})},32028:function(e,t,i){"use strict";(0,i("54606").H)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"12232"))})},612:function(e,t,i){"use strict";(0,i("54606").H)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"59049"))})},81099:function(e,t,i){"use strict";i.d(t,{Q8:function(){return M},eu:function(){return _}});var n=i("67518"),o=i("19527"),r=i("25460"),s=i("43305"),a=i("61045"),l=i("62785"),d=i("68530"),c=i("57233"),u=i("27541"),h=i("66763"),g=i("3868"),p=i("53881"),m=i("30039"),f=i("61111"),w=i("78540"),C=function(e,t){return function(i,n){t(i,n,e)}},b=function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};function v(e,t){let i=e.getModel(t);return!(!i||i.isTooLargeForSyncing())&&!0}let _=class extends o.JT{constructor(e,t,i,n,o){super(),this._modelService=e,this._workerManager=this._register(new S(this._modelService,n)),this._logService=i,this._register(o.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>v(this._modelService,e.uri)?this._workerManager.withWorker().then(t=>t.computeLinks(e.uri)).then(e=>e&&{links:e}):Promise.resolve({links:[]})})),this._register(o.completionProvider.register("*",new y(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return v(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then(n=>n.computedUnicodeHighlights(e,t,i))}computeDiff(e,t,i,n){return this._workerManager.withWorker().then(o=>o.computeDiff(e,t,i,n))}computeMoreMinimalEdits(e,t){if(!(0,g.Of)(t))return Promise.resolve(void 0);{if(!v(this._modelService,e))return Promise.resolve(t);let i=m.G.create(!0),o=this._workerManager.withWorker().then(i=>i.computeMoreMinimalEdits(e,t));return o.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())),Promise.race([o,(0,n.Vs)(1e3).then(()=>t)])}}canNavigateValueSet(e){return v(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then(n=>n.navigateValueSet(e,t,i))}canComputeWordRanges(e){return v(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(i=>i.computeWordRanges(e,t))}};_=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(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}([C(0,c.q),C(1,u.V),C(2,p.VZ),C(3,l.c_),C(4,w.p)],_);class y{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return b(this,void 0,void 0,function*(){let i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;let n=[];if("currentDocument"===i.wordBasedSuggestionsMode)v(this._modelService,e.uri)&&n.push(e.uri);else for(let t of this._modelService.getModels())v(this._modelService,t.uri)&&(t===e?n.unshift(t.uri):("allDocuments"===i.wordBasedSuggestionsMode||t.getLanguageId()===e.getLanguageId())&&n.push(t.uri));if(0===n.length)return;let o=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),s=r?new a.e(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):a.e.fromPositions(t),l=s.setEndPosition(t.lineNumber,t.column),d=yield this._workerManager.withWorker(),c=yield d.textualSuggest(n,null==r?void 0:r.word,o);if(c)return{duration:c.duration,suggestions:c.words.map(e=>({kind:18,label:e,insertText:e,range:{insert:l,replace:s}}))}})}}class S extends o.JT{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new n.zh).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(15e4)),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!!this._editorWorkerClient)0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!!this._editorWorkerClient)new Date().getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),!this._editorWorkerClient&&(this._editorWorkerClient=new M(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class N extends o.JT{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){let e=new n.zh;e.cancelAndSet(()=>this._checkStopModelSync(),Math.round(3e4)),this._register(e)}}dispose(){for(let e in this._syncedModels)(0,o.B9)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(let i of e){let e=i.toString();!this._syncedModels[e]&&this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=new Date().getTime())}}_checkStopModelSync(){let e=new Date().getTime(),t=[];for(let i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>6e4&&t.push(i);for(let e of t)this._stopModelSync(e)}_beginModelSync(e,t){let i=this._modelService.getModel(e);if(!i||!t&&i.isTooLargeForSyncing())return;let n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});let r=new o.SL;r.add(i.onDidChangeContent(e=>{this._proxy.acceptModelChanged(n.toString(),e)})),r.add(i.onWillDispose(()=>{this._stopModelSync(n)})),r.add((0,o.OF)(()=>{this._proxy.acceptRemovedModel(n)})),this._syncedModels[n]=r}_stopModelSync(e){let t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,o.B9)(t)}}class k{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class x{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class M extends o.JT{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new s.H(i),this._worker=null,this._modelManager=null}fhr(e,t){throw Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new r.PB(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new x(this)))}catch(e){(0,r.HZ)(e),this._worker=new k(new d.ky(new x(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>((0,r.HZ)(e),this._worker=new k(new d.ky(new x(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return!this._modelManager&&(this._modelManager=this._register(new N(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return b(this,void 0,void 0,function*(){return this._disposed?Promise.reject((0,f.F0)()):this._getProxy().then(i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i))})}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then(n=>n.computeUnicodeHighlights(e.toString(),t,i))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then(o=>o.computeDiff(e.toString(),t.toString(),i,n))}computeMoreMinimalEdits(e,t){return this._withSyncedResources([e]).then(i=>i.computeMoreMinimalEdits(e.toString(),t))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}textualSuggest(e,t,i){return b(this,void 0,void 0,function*(){let n=yield this._withSyncedResources(e),o=i.source,r=(0,h.mr)(i);return n.textualSuggest(e.map(e=>e.toString()),t,o,r)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{let n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);let o=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),r=o.source,s=(0,h.mr)(o);return i.computeWordRanges(e.toString(),t,r,s)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(n=>{let o=this._modelService.getModel(e);if(!o)return null;let r=this.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),s=r.source,a=(0,h.mr)(r);return n.navigateValueSet(e.toString(),t,i,s,a)})}dispose(){super.dispose(),this._disposed=!0}}},31882:function(e,t,i){"use strict";i.d(t,{C:function(){return c}});var n,o=i("34630"),r=i("66763"),s=i("53120"),a=i("86043"),l=i("5601");let d=null===(n=window.trustedTypes)||void 0===n?void 0:n.createPolicy("domLineBreaksComputer",{createHTML:e=>e});class c{static create(){return new c}constructor(){}createLineBreaksComputer(e,t,i,n){let c=[],h=[];return{addRequest:(e,t,i)=>{c.push(e),h.push(t)},finalize:()=>(function(e,t,i,n,c,h){var g;function p(t){let i=h[t];if(!i)return null;{let n=a.gk.applyInjectedText(e[t],i),o=i.map(e=>e.options),r=i.map(e=>e.column-1);return new l.gD(r,o,[n.length],[],0)}}if(-1===n){let t=[];for(let i=0,n=e.length;i<n;i++)t[i]=p(i);return t}let m=Math.round(n*t.typicalHalfwidthCharacterWidth),f=Math.round(i*(3===c?2:2===c?1:0)),w=Math.ceil(t.spaceWidth*f),C=document.createElement("div");(0,s.N)(C,t);let b=(0,o.l$)(1e4),v=[],_=[],y=[],S=[],N=[];for(let n=0;n<e.length;n++){let o=a.gk.applyInjectedText(e[n],h[n]),s=0,l=0,d=m;if(0!==c){if(-1===(s=r.LC(o)))s=0;else{for(let e=0;e<s;e++){let t=9===o.charCodeAt(e)?i-l%i:1;l+=t}let e=Math.ceil(t.spaceWidth*l);e+t.typicalFullwidthCharacterWidth>m?(s=0,l=0):d=m-e}}let u=o.substr(s),g=function(e,t,i,n,o,s){if(0!==s){let e=String(s);o.appendASCIIString('<div style="text-indent: -'),o.appendASCIIString(e),o.appendASCIIString("px; padding-left: "),o.appendASCIIString(e),o.appendASCIIString("px; box-sizing: border-box; width:")}else o.appendASCIIString('<div style="width:');o.appendASCIIString(String(n)),o.appendASCIIString('px;">');let a=e.length,l=t,d=0,c=[],u=[],h=0<a?e.charCodeAt(0):0;o.appendASCIIString("<span>");for(let t=0;t<a;t++){0!==t&&t%16384==0&&o.appendASCIIString("</span><span>"),c[t]=d,u[t]=l;let n=h;h=t+1<a?e.charCodeAt(t+1):0;let s=1,g=1;switch(n){case 9:g=s=i-l%i;for(let e=1;e<=s;e++)e<s?o.write1(160):o.appendASCII(32);break;case 32:32===h?o.write1(160):o.appendASCII(32);break;case 60:o.appendASCIIString("<");break;case 62:o.appendASCIIString(">");break;case 38:o.appendASCIIString("&");break;case 0:o.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:o.write1(65533);break;default:r.K7(n)&&g++,n<32?o.write1(9216+n):o.write1(n)}d+=s,l+=g}return o.appendASCIIString("</span>"),c[e.length]=d,u[e.length]=l,o.appendASCIIString("</div>"),[c,u]}(u,l,i,d,b,w);v[n]=s,_[n]=l,y[n]=u,S[n]=g[0],N[n]=g[1]}let k=b.build(),x=null!==(g=null==d?void 0:d.createHTML(k))&&void 0!==g?g:k;C.innerHTML=x,C.style.position="absolute",C.style.top="10000",C.style.wordWrap="break-word",document.body.appendChild(C);let M=document.createRange(),L=Array.prototype.slice.call(C.children,0),I=[];for(let t=0;t<e.length;t++){let e,i;let n=function(e,t,i,n){if(i.length<=1)return null;let o=Array.prototype.slice.call(t.children,0),r=[];try{(function e(t,i,n,o,r,s,a,l){if(o===s)return;if(r=r||u(t,i,n[o],n[o+1]),a=a||u(t,i,n[s],n[s+1]),.1>=Math.abs(r[0].top-a[0].top))return;if(o+1===s){l.push(s);return}let d=o+(s-o)/2|0,c=u(t,i,n[d],n[d+1]);e(t,i,n,o,r,d,c,l),e(t,i,n,d,c,s,a,l)})(e,o,n,0,null,i.length-1,null,r)}catch(e){return console.log(e),null}return 0===r.length?null:(r.push(i.length),r)}(M,L[t],y[t],S[t]);if(null===n){I[t]=p(t);continue}let o=v[t],r=_[t]+f,s=N[t],a=[];for(let e=0,t=n.length;e<t;e++)a[e]=s[n[e]];if(0!==o)for(let e=0,t=n.length;e<t;e++)n[e]+=o;let d=h[t];d?(e=d.map(e=>e.options),i=d.map(e=>e.column-1)):(e=null,i=null),I[t]=new l.gD(i,e,n,a,r)}return document.body.removeChild(C),I})(c,e,t,i,n,h)}}}function u(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}},16637:function(e,t,i){"use strict";i.d(t,{$J:function(){return D},Av:function(){return R},BH:function(){return V},Bb:function(){return h},Bc:function(){return F},LJ:function(){return g},NY:function(){return k},O7:function(){return b},Zc:function(){return _},d2:function(){return o},gk:function(){return T},hL:function(){return A},n0:function(){return L},qt:function(){return O},rk:function(){return m},y0:function(){return u}});var n,o,r=i("8339"),s=i("7875"),a=i("80553"),l=i("3868"),d=i("777"),c=i("55062");let u=8;class h{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class g{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class p{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return f(e,t)}compute(e,t,i){return i}}class m{constructor(e,t){this.newValue=e,this.didChange=t}}function f(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return new m(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){let i=Array.isArray(e)&&Array.isArray(t)&&l.fS(e,t);return new m(t,!i)}let i=!1;for(let n in t)if(t.hasOwnProperty(n)){let o=f(e[n],t[n]);o.didChange&&(e[n]=o.newValue,i=!0)}return new m(e,i)}class w{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return f(e,t)}validate(e){return this.defaultValue}}class C{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return f(e,t)}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,i){return i}}function b(e,t){return void 0===e?t:"false"!==e&&!!e}class v extends C{constructor(e,t,i,n){void 0!==n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return b(e,this.defaultValue)}}function _(e,t,i,n){if(void 0===e)return t;let o=parseInt(e,10);return isNaN(o)?t:0|(o=Math.min(n,o=Math.max(i,o)))}class y extends C{constructor(e,t,i,n,o,r){void 0!==r&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return _(e,t,i,n)}validate(e){return y.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class S extends C{constructor(e,t,i,n,o){void 0!==o&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if("number"==typeof e)return e;if(void 0===e)return t;let i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(S.float(e,this.defaultValue))}}class N extends C{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,i,n){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return N.string(e,this.defaultValue)}}function k(e,t,i){return"string"!=typeof e||-1===i.indexOf(e)?t:e}class x extends C{constructor(e,t,i,n,o){void 0!==o&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return k(e,this.defaultValue,this._allowedValues)}}class M extends p{constructor(e,t,i,n,o,r,s){void 0!==s&&(s.type="string",s.enum=o,s.default=n),super(e,t,i,s),this._allowedValues=o,this._convert=r}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}(n=o||(o={}))[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin";class L extends p{constructor(){super(47,"fontLigatures",L.OFF,{anyOf:[{type:"boolean",description:r.NC("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:r.NC("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:r.NC("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){if(void 0===e)return this.defaultValue;if("string"==typeof e)return"false"===e?L.OFF:"true"===e?L.ON:e;return e?L.ON:L.OFF}}L.OFF='"liga" off, "calt" off',L.ON='"liga" on, "calt" on';class I extends p{constructor(){super(49,"fontWeight",A.fontWeight,{anyOf:[{type:"number",minimum:I.MINIMUM_VALUE,maximum:I.MAXIMUM_VALUE,errorMessage:r.NC("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:I.SUGGESTION_VALUES}],default:A.fontWeight,description:r.NC("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(y.clampedInt(e,A.fontWeight,I.MINIMUM_VALUE,I.MAXIMUM_VALUE))}}I.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],I.MINIMUM_VALUE=1,I.MAXIMUM_VALUE=1e3;class T extends w{constructor(){super(133)}compute(e,t,i){return T.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){let t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){let i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};let r=t.stableMinimapLayoutInput,s=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,c=e.minimap.renderCharacters,h=o>=2?Math.round(2*e.minimap.scale):e.minimap.scale,g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,w=e.viewLineCount,C=e.remainingWidth,b=e.isViewportWrapping,v=c?2:3,_=Math.floor(o*n),y=_/o,S=!1,N=!1,k=v*h,x=h/o,M=1;if("fill"===p||"fit"===p){let{typicalViewportLineCount:i,extraLinesBeyondLastLine:r,desiredRatio:l,minimapLineCount:c}=T.computeContainedMinimapLineCount({viewLineCount:w,scrollBeyondLastLine:d,height:n,lineHeight:a,pixelRatio:o});if(w/c>1)S=!0,N=!0,k=1,x=(h=1)/o;else{let n=!1,d=h+1;if("fit"===p){let e=Math.ceil((w+r)*k);b&&s&&C<=t.stableFitRemainingWidth?(n=!0,d=t.stableFitMaxMinimapScale):n=e>_}if("fill"===p||n){S=!0;let n=h;k=Math.min(a*o,Math.max(1,Math.floor(1/l))),b&&s&&C<=t.stableFitRemainingWidth&&(d=t.stableFitMaxMinimapScale),(h=Math.min(d,Math.max(1,Math.floor(k/v))))>n&&(M=Math.min(2,h/n)),x=h/o/M,_=Math.ceil(Math.max(i,w+r)*k),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}let L=Math.min(Math.floor(g*x),Math.max(0,Math.floor((C-f-2)*x/(l+x)))+u),I=Math.floor(o*L),D=I/o;return I=Math.floor(I*M),{renderMinimap:c?1:2,minimapLeft:"left"===m?0:i-L-f,minimapWidth:L,minimapHeightIsEditorHeight:S,minimapIsSampling:N,minimapScale:h,minimapLineHeight:k,minimapCanvasInnerWidth:I,minimapCanvasInnerHeight:_,minimapCanvasOuterWidth:D,minimapCanvasOuterHeight:y}}static computeLayout(e,t){let i;let n=0|t.outerWidth,o=0|t.outerHeight,r=0|t.lineHeight,s=0|t.lineNumbersDigitCount,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,c=t.viewLineCount,u=e.get(125),h="inherit"===u?e.get(124):u,p="inherit"===h?e.get(120):h,m=e.get(123),f=e.get(2),w=t.isDominatedByLongLines,C=e.get(52),b=0!==e.get(62).renderType,v=e.get(63),_=e.get(96),S=e.get(67),N=e.get(94),k=N.verticalScrollbarSize,x=N.verticalHasArrows,M=N.arrowSize,L=N.horizontalScrollbarSize,I=e.get(60),D=e.get(39),P="never"!==e.get(101);if("string"==typeof I&&/^\d+(\.\d+)?ch$/.test(I)){let e=parseFloat(I.substr(0,I.length-2));i=y.clampedInt(e*a,0,0,1e3)}else i=y.clampedInt(I,0,0,1e3);D&&P&&(i+=16);let R=0;b&&(R=Math.round(Math.max(s,v)*l));let O=0;C&&(O=r);let E=0,A=0+O,F=A+R,W=F+i,V=n-O-R-i,z=!1,H=!1,B=-1;2!==f&&("inherit"===h&&w?(z=!0,H=!0):"on"===p||"bounded"===p?H=!0:"wordWrapColumn"===p&&(B=m));let j=T._computeMinimapLayout({outerWidth:n,outerHeight:o,lineHeight:r,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:_,minimap:S,verticalScrollbarWidth:k,viewLineCount:c,remainingWidth:V,isViewportWrapping:H},t.memory||new g);0!==j.renderMinimap&&0===j.minimapLeft&&(E+=j.minimapWidth,A+=j.minimapWidth,F+=j.minimapWidth,W+=j.minimapWidth);let U=V-j.minimapWidth,G=Math.max(1,Math.floor((U-k-2)/a)),q=x?M:0;return H&&(B=Math.max(1,G),"bounded"===p&&(B=Math.min(B,m))),{width:n,height:o,glyphMarginLeft:E,glyphMarginWidth:O,lineNumbersLeft:A,lineNumbersWidth:R,decorationsLeft:F,decorationsWidth:i,contentLeft:W,contentWidth:U,minimap:j,viewportColumn:G,isWordWrapMinified:z,isViewportWrapping:H,wrappingColumn:B,verticalScrollbarWidth:k,horizontalScrollbarHeight:L,overviewRuler:{top:q,width:k,height:o-2*q,right:0}}}}function D(e){let t=e.get(89);return"editable"===t?e.get(83):"on"!==t}function P(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}let R="inUntrustedWorkspace",O={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function E(e,t,i){let n=i.indexOf(e);return -1===n?t:i[n]}let A={fontFamily:s.dz?"Menlo, Monaco, 'Courier New', monospace":s.IJ?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:s.dz?12:14,lineHeight:0,letterSpacing:0},F=[];function W(e){return F[e.id]=e,e}let V={acceptSuggestionOnCommitCharacter:W(new v(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:r.NC("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`; `) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:W(new x(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",r.NC("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:r.NC("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:W(new class e extends p{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[r.NC("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),r.NC("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),r.NC("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:r.NC("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:W(new y(3,"accessibilityPageSize",10,1,1073741824,{description:r.NC("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:W(new N(4,"ariaLabel",r.NC("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:W(new x(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",r.NC("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),r.NC("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:r.NC("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:W(new x(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",r.NC("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:r.NC("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:W(new x(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",r.NC("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:r.NC("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:W(new x(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",r.NC("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),r.NC("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:r.NC("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:W(new M(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}},{enumDescriptions:[r.NC("editor.autoIndent.none","The editor will not insert indentation automatically."),r.NC("editor.autoIndent.keep","The editor will keep the current line's indentation."),r.NC("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),r.NC("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),r.NC("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:r.NC("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:W(new v(10,"automaticLayout",!1)),autoSurround:W(new x(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[r.NC("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),r.NC("editor.autoSurround.quotes","Surround with quotes but not brackets."),r.NC("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:r.NC("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:W(new class e extends p{constructor(){let e={enabled:c.D.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:c.D.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:r.NC("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:r.NC("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){return e&&"object"==typeof e?{enabled:b(e.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:b(e.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}:this.defaultValue}}),bracketPairGuides:W(new class e extends p{constructor(){let e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[r.NC("editor.guides.bracketPairs.true","Enables bracket pair guides."),r.NC("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),r.NC("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:r.NC("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[r.NC("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),r.NC("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),r.NC("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:r.NC("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:r.NC("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:r.NC("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[r.NC("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),r.NC("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),r.NC("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:r.NC("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){return e&&"object"==typeof e?{bracketPairs:E(e.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:E(e.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:b(e.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:b(e.indentation,this.defaultValue.indentation),highlightActiveIndentation:E(e.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}:this.defaultValue}}),stickyTabStops:W(new v(106,"stickyTabStops",!1,{description:r.NC("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:W(new v(14,"codeLens",!0,{description:r.NC("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:W(new N(15,"codeLensFontFamily","",{description:r.NC("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:W(new y(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:r.NC("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, 90% of `#editor.fontSize#` is used.")})),colorDecorators:W(new v(17,"colorDecorators",!0,{description:r.NC("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:W(new v(18,"columnSelection",!1,{description:r.NC("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:W(new class e extends p{constructor(){let e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:r.NC("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:r.NC("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){return e&&"object"==typeof e?{insertSpace:b(e.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:b(e.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}:this.defaultValue}}),contextmenu:W(new v(20,"contextmenu",!0)),copyWithSyntaxHighlighting:W(new v(21,"copyWithSyntaxHighlighting",!0,{description:r.NC("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:W(new M(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}},{description:r.NC("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:W(new v(23,"cursorSmoothCaretAnimation",!1,{description:r.NC("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:W(new M(24,"cursorStyle",o.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],function(e){switch(e){case"line":return o.Line;case"block":return o.Block;case"underline":return o.Underline;case"line-thin":return o.LineThin;case"block-outline":return o.BlockOutline;case"underline-thin":return o.UnderlineThin}},{description:r.NC("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:W(new y(25,"cursorSurroundingLines",0,0,1073741824,{description:r.NC("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:W(new x(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[r.NC("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),r.NC("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:r.NC("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:W(new y(27,"cursorWidth",0,0,1073741824,{markdownDescription:r.NC("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:W(new v(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:W(new v(29,"disableMonospaceOptimizations",!1)),domReadOnly:W(new v(30,"domReadOnly",!1)),dragAndDrop:W(new v(31,"dragAndDrop",!0,{description:r.NC("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:W(new class e extends v{constructor(){super(33,"emptySelectionClipboard",!0,{description:r.NC("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:W(new class e extends p{constructor(){let e={enabled:!0};super(32,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:r.NC("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return e&&"object"==typeof e?{enabled:b(e.enabled,this.defaultValue.enabled)}:this.defaultValue}}),experimental:W(new class e extends p{constructor(){let e={stickyScroll:{enabled:!1}};super(34,"experimental",e,{"editor.experimental.stickyScroll.enabled":{type:"boolean",default:e.stickyScroll.enabled,description:r.NC("editor.experimental.stickyScroll","Shows the nested current scopes during the scroll at the top of the editor.")}})}validate(e){var t;return e&&"object"==typeof e?{stickyScroll:{enabled:b(null===(t=e.stickyScroll)||void 0===t?void 0:t.enabled,this.defaultValue.stickyScroll.enabled)}}:this.defaultValue}}),extraEditorClassName:W(new N(35,"extraEditorClassName","")),fastScrollSensitivity:W(new S(36,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:r.NC("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:W(new class e extends p{constructor(){let e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(37,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:r.NC("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[r.NC("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),r.NC("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),r.NC("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:r.NC("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[r.NC("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),r.NC("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),r.NC("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:r.NC("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:r.NC("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:s.dz},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:r.NC("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:r.NC("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){return e&&"object"==typeof e?{cursorMoveOnType:b(e.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":k(e.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":k(e.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:b(e.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:b(e.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:b(e.loop,this.defaultValue.loop)}:this.defaultValue}}),fixedOverflowWidgets:W(new v(38,"fixedOverflowWidgets",!1)),folding:W(new v(39,"folding",!0,{description:r.NC("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:W(new x(40,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[r.NC("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),r.NC("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:r.NC("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:W(new v(41,"foldingHighlight",!0,{description:r.NC("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:W(new v(42,"foldingImportsByDefault",!1,{description:r.NC("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:W(new y(43,"foldingMaximumRegions",5e3,10,65e3,{description:r.NC("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:W(new v(44,"unfoldOnClickAfterEndOfLine",!1,{description:r.NC("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:W(new N(45,"fontFamily",A.fontFamily,{description:r.NC("fontFamily","Controls the font family.")})),fontInfo:W(new class e extends w{constructor(){super(46)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:W(new L),fontSize:W(new class e extends C{constructor(){super(48,"fontSize",A.fontSize,{type:"number",minimum:6,maximum:100,default:A.fontSize,description:r.NC("fontSize","Controls the font size in pixels.")})}validate(e){let t=S.float(e,this.defaultValue);return 0===t?A.fontSize:S.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:W(new I),formatOnPaste:W(new v(50,"formatOnPaste",!1,{description:r.NC("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:W(new v(51,"formatOnType",!1,{description:r.NC("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:W(new v(52,"glyphMargin",!0,{description:r.NC("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:W(new class e extends p{constructor(){let e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[r.NC("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),r.NC("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),r.NC("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(53,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:r.NC("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:r.NC("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:r.NC("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:r.NC("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:r.NC("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:r.NC("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:r.NC("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:r.NC("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:r.NC("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:r.NC("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:r.NC("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;return e&&"object"==typeof e?{multiple:k(e.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=e.multipleDefinitions)&&void 0!==t?t:k(e.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=e.multipleTypeDefinitions)&&void 0!==i?i:k(e.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=e.multipleDeclarations)&&void 0!==n?n:k(e.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=e.multipleImplementations)&&void 0!==o?o:k(e.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(r=e.multipleReferences)&&void 0!==r?r:k(e.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:N.string(e.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:N.string(e.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:N.string(e.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:N.string(e.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:N.string(e.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}:this.defaultValue}}),hideCursorInOverviewRuler:W(new v(54,"hideCursorInOverviewRuler",!1,{description:r.NC("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:W(new class e extends p{constructor(){let e={enabled:!0,delay:300,sticky:!0,above:!0};super(55,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:r.NC("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:r.NC("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:r.NC("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:r.NC("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){return e&&"object"==typeof e?{enabled:b(e.enabled,this.defaultValue.enabled),delay:y.clampedInt(e.delay,this.defaultValue.delay,0,1e4),sticky:b(e.sticky,this.defaultValue.sticky),above:b(e.above,this.defaultValue.above)}:this.defaultValue}}),inDiffEditor:W(new v(56,"inDiffEditor",!1)),letterSpacing:W(new S(58,"letterSpacing",A.letterSpacing,e=>S.clamp(e,-5,20),{description:r.NC("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:W(new class e extends p{constructor(){let e={enabled:!0};super(59,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:r.NC("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return e&&"object"==typeof e?{enabled:b(e.enabled,this.defaultValue.enabled)}:this.defaultValue}}),lineDecorationsWidth:W(new C(60,"lineDecorationsWidth",10)),lineHeight:W(new class e extends S{constructor(){super(61,"lineHeight",A.lineHeight,e=>S.clamp(e,0,150),{markdownDescription:r.NC("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:W(new class e extends p{constructor(){super(62,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[r.NC("lineNumbers.off","Line numbers are not rendered."),r.NC("lineNumbers.on","Line numbers are rendered as absolute number."),r.NC("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),r.NC("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:r.NC("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:W(new y(63,"lineNumbersMinChars",5,1,300)),linkedEditing:W(new v(64,"linkedEditing",!1,{description:r.NC("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:W(new v(65,"links",!0,{description:r.NC("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:W(new x(66,"matchBrackets","always",["always","near","never"],{description:r.NC("matchBrackets","Highlight matching brackets.")})),minimap:W(new class e extends p{constructor(){let e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(67,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:r.NC("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:r.NC("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[r.NC("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),r.NC("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),r.NC("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:r.NC("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:r.NC("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:r.NC("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:r.NC("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:r.NC("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:r.NC("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){return e&&"object"==typeof e?{enabled:b(e.enabled,this.defaultValue.enabled),autohide:b(e.autohide,this.defaultValue.autohide),size:k(e.size,this.defaultValue.size,["proportional","fill","fit"]),side:k(e.side,this.defaultValue.side,["right","left"]),showSlider:k(e.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:b(e.renderCharacters,this.defaultValue.renderCharacters),scale:y.clampedInt(e.scale,1,1,3),maxColumn:y.clampedInt(e.maxColumn,this.defaultValue.maxColumn,1,1e4)}:this.defaultValue}}),mouseStyle:W(new x(68,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:W(new S(69,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:r.NC("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:W(new v(70,"mouseWheelZoom",!1,{markdownDescription:r.NC("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:W(new v(71,"multiCursorMergeOverlapping",!0,{description:r.NC("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:W(new M(72,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],function(e){return"ctrlCmd"===e?s.dz?"metaKey":"ctrlKey":"altKey"},{markdownEnumDescriptions:[r.NC("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),r.NC("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:r.NC({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:W(new x(73,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[r.NC("multiCursorPaste.spread","Each cursor pastes a single line of the text."),r.NC("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:r.NC("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:W(new v(74,"occurrencesHighlight",!0,{description:r.NC("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:W(new v(75,"overviewRulerBorder",!0,{description:r.NC("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:W(new y(76,"overviewRulerLanes",3,0,3)),padding:W(new class e extends p{constructor(){super(77,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:r.NC("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:r.NC("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){return e&&"object"==typeof e?{top:y.clampedInt(e.top,0,0,1e3),bottom:y.clampedInt(e.bottom,0,0,1e3)}:this.defaultValue}}),parameterHints:W(new class e extends p{constructor(){let e={enabled:!0,cycle:!1};super(78,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:r.NC("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:r.NC("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){return e&&"object"==typeof e?{enabled:b(e.enabled,this.defaultValue.enabled),cycle:b(e.cycle,this.defaultValue.cycle)}:this.defaultValue}}),peekWidgetDefaultFocus:W(new x(79,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[r.NC("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),r.NC("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:r.NC("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:W(new v(80,"definitionLinkOpensInPeek",!1,{description:r.NC("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:W(new class e extends p{constructor(){let e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[r.NC("on","Quick suggestions show inside the suggest widget"),r.NC("inline","Quick suggestions show as ghost text"),r.NC("off","Quick suggestions are disabled")]}];super(81,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:r.NC("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:r.NC("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:r.NC("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:r.NC("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){let t,i,n;if("boolean"==typeof e){let t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!=typeof e)return this.defaultValue;let{other:o,comments:r,strings:s}=e,a=["on","inline","off"];return t="boolean"==typeof o?o?"on":"off":k(o,this.defaultValue.other,a),i="boolean"==typeof r?r?"on":"off":k(r,this.defaultValue.comments,a),{other:t,comments:i,strings:n="boolean"==typeof s?s?"on":"off":k(s,this.defaultValue.strings,a)}}}),quickSuggestionsDelay:W(new y(82,"quickSuggestionsDelay",10,0,1073741824,{description:r.NC("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:W(new v(83,"readOnly",!1)),renameOnType:W(new v(84,"renameOnType",!1,{description:r.NC("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:r.NC("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:W(new v(85,"renderControlCharacters",!0,{description:r.NC("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:W(new v(86,"renderFinalNewline",!0,{description:r.NC("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:W(new x(87,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",r.NC("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:r.NC("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:W(new v(88,"renderLineHighlightOnlyWhenFocus",!1,{description:r.NC("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:W(new x(89,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:W(new x(90,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",r.NC("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),r.NC("renderWhitespace.selection","Render whitespace characters only on selected text."),r.NC("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:r.NC("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:W(new y(91,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:W(new v(92,"roundedSelection",!0,{description:r.NC("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:W(new class e extends p{constructor(){let e=[],t={type:"number",description:r.NC("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(93,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:r.NC("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:r.NC("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){let t=[];for(let i of e)"number"==typeof i?t.push({column:y.clampedInt(i,0,0,1e4),color:null}):i&&"object"==typeof i&&t.push({column:y.clampedInt(i.column,0,0,1e4),color:i.color});return t.sort((e,t)=>e.column-t.column),t}return this.defaultValue}}),scrollbar:W(new class e extends p{constructor(){let e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(94,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[r.NC("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),r.NC("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),r.NC("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:r.NC("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[r.NC("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),r.NC("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),r.NC("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:r.NC("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:r.NC("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:r.NC("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:r.NC("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;let t=y.clampedInt(e.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=y.clampedInt(e.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:y.clampedInt(e.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:P(e.vertical,this.defaultValue.vertical),horizontal:P(e.horizontal,this.defaultValue.horizontal),useShadows:b(e.useShadows,this.defaultValue.useShadows),verticalHasArrows:b(e.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:b(e.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:b(e.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:b(e.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:t,horizontalSliderSize:y.clampedInt(e.horizontalSliderSize,t,0,1e3),verticalScrollbarSize:i,verticalSliderSize:y.clampedInt(e.verticalSliderSize,i,0,1e3),scrollByPage:b(e.scrollByPage,this.defaultValue.scrollByPage)}}}),scrollBeyondLastColumn:W(new y(95,"scrollBeyondLastColumn",4,0,1073741824,{description:r.NC("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:W(new v(96,"scrollBeyondLastLine",!0,{description:r.NC("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:W(new v(97,"scrollPredominantAxis",!0,{description:r.NC("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:W(new v(98,"selectionClipboard",!0,{description:r.NC("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:s.IJ})),selectionHighlight:W(new v(99,"selectionHighlight",!0,{description:r.NC("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:W(new v(100,"selectOnLineNumbers",!0)),showFoldingControls:W(new x(101,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[r.NC("showFoldingControls.always","Always show the folding controls."),r.NC("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),r.NC("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:r.NC("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:W(new v(102,"showUnused",!0,{description:r.NC("showUnused","Controls fading out of unused code.")})),showDeprecated:W(new v(128,"showDeprecated",!0,{description:r.NC("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:W(new class e extends p{constructor(){let e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(129,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:r.NC("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[r.NC("editor.inlayHints.on","Inlay hints are enabled"),r.NC("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding `Ctrl+Alt`"),r.NC("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding `Ctrl+Alt`"),r.NC("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:r.NC("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:r.NC("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:r.NC("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){return e&&"object"==typeof e?("boolean"==typeof e.enabled&&(e.enabled=e.enabled?"on":"off"),{enabled:k(e.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:y.clampedInt(e.fontSize,this.defaultValue.fontSize,0,100),fontFamily:N.string(e.fontFamily,this.defaultValue.fontFamily),padding:b(e.padding,this.defaultValue.padding)}):this.defaultValue}}),snippetSuggestions:W(new x(103,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[r.NC("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),r.NC("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),r.NC("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),r.NC("snippetSuggestions.none","Do not show snippet suggestions.")],description:r.NC("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:W(new class e extends p{constructor(){super(104,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:r.NC("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:b(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}:this.defaultValue}}),smoothScrolling:W(new v(105,"smoothScrolling",!1,{description:r.NC("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:W(new y(107,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:W(new class e extends p{constructor(){let e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(108,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[r.NC("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),r.NC("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:r.NC("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:r.NC("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:r.NC("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:r.NC("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:r.NC("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:r.NC("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:r.NC("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:r.NC("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:r.NC("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:r.NC("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:r.NC("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:r.NC("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){return e&&"object"==typeof e?{insertMode:k(e.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:b(e.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:b(e.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:b(e.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:b(e.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:b(e.showIcons,this.defaultValue.showIcons),showStatusBar:b(e.showStatusBar,this.defaultValue.showStatusBar),preview:b(e.preview,this.defaultValue.preview),previewMode:k(e.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:b(e.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:b(e.showMethods,this.defaultValue.showMethods),showFunctions:b(e.showFunctions,this.defaultValue.showFunctions),showConstructors:b(e.showConstructors,this.defaultValue.showConstructors),showDeprecated:b(e.showDeprecated,this.defaultValue.showDeprecated),showFields:b(e.showFields,this.defaultValue.showFields),showVariables:b(e.showVariables,this.defaultValue.showVariables),showClasses:b(e.showClasses,this.defaultValue.showClasses),showStructs:b(e.showStructs,this.defaultValue.showStructs),showInterfaces:b(e.showInterfaces,this.defaultValue.showInterfaces),showModules:b(e.showModules,this.defaultValue.showModules),showProperties:b(e.showProperties,this.defaultValue.showProperties),showEvents:b(e.showEvents,this.defaultValue.showEvents),showOperators:b(e.showOperators,this.defaultValue.showOperators),showUnits:b(e.showUnits,this.defaultValue.showUnits),showValues:b(e.showValues,this.defaultValue.showValues),showConstants:b(e.showConstants,this.defaultValue.showConstants),showEnums:b(e.showEnums,this.defaultValue.showEnums),showEnumMembers:b(e.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:b(e.showKeywords,this.defaultValue.showKeywords),showWords:b(e.showWords,this.defaultValue.showWords),showColors:b(e.showColors,this.defaultValue.showColors),showFiles:b(e.showFiles,this.defaultValue.showFiles),showReferences:b(e.showReferences,this.defaultValue.showReferences),showFolders:b(e.showFolders,this.defaultValue.showFolders),showTypeParameters:b(e.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:b(e.showSnippets,this.defaultValue.showSnippets),showUsers:b(e.showUsers,this.defaultValue.showUsers),showIssues:b(e.showIssues,this.defaultValue.showIssues)}:this.defaultValue}}),inlineSuggest:W(new class e extends p{constructor(){let e={enabled:!0,mode:"subwordSmart"};super(57,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:r.NC("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){return e&&"object"==typeof e?{enabled:b(e.enabled,this.defaultValue.enabled),mode:k(e.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}:this.defaultValue}}),suggestFontSize:W(new y(109,"suggestFontSize",0,0,1e3,{markdownDescription:r.NC("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:W(new y(110,"suggestLineHeight",0,0,1e3,{markdownDescription:r.NC("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:W(new v(111,"suggestOnTriggerCharacters",!0,{description:r.NC("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:W(new x(112,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[r.NC("suggestSelection.first","Always select the first suggestion."),r.NC("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),r.NC("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:r.NC("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:W(new x(113,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[r.NC("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),r.NC("tabCompletion.off","Disable tab completions."),r.NC("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:r.NC("tabCompletion","Enables tab completions.")})),tabIndex:W(new y(114,"tabIndex",0,-1,1073741824)),unicodeHighlight:W(new class e extends p{constructor(){let e={nonBasicASCII:R,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:R,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(115,"unicodeHighlight",e,{[O.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,R],default:e.nonBasicASCII,description:r.NC("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[O.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:r.NC("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[O.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:r.NC("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[O.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,R],default:e.includeComments,description:r.NC("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to unicode highlighting.")},[O.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,R],default:e.includeStrings,description:r.NC("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to unicode highlighting.")},[O.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:r.NC("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[O.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:r.NC("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&!d.fS(e.allowedCharacters,t.allowedCharacters)&&(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0),t.allowedLocales&&e&&!d.fS(e.allowedLocales,t.allowedLocales)&&(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0);let n=super.applyUpdate(e,t);return i?new m(n.newValue,!0):n}validate(e){return e&&"object"==typeof e?{nonBasicASCII:E(e.nonBasicASCII,R,[!0,!1,R]),invisibleCharacters:b(e.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:b(e.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:E(e.includeComments,R,[!0,!1,R]),includeStrings:E(e.includeStrings,R,[!0,!1,R]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}:this.defaultValue}validateBooleanMap(e,t){if("object"!=typeof e||!e)return t;let i={};for(let[t,n]of Object.entries(e))!0===n&&(i[t]=!0);return i}}),unusualLineTerminators:W(new x(116,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[r.NC("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),r.NC("unusualLineTerminators.off","Unusual line terminators are ignored."),r.NC("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:r.NC("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:W(new v(117,"useShadowDOM",!0)),useTabStops:W(new v(118,"useTabStops",!0,{description:r.NC("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:W(new N(119,"wordSeparators",a.vu,{description:r.NC("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:W(new x(120,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[r.NC("wordWrap.off","Lines will never wrap."),r.NC("wordWrap.on","Lines will wrap at the viewport width."),r.NC({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),r.NC({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:r.NC({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:W(new N(121,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:W(new N(122,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xa3\xa5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:W(new y(123,"wordWrapColumn",80,1,1073741824,{markdownDescription:r.NC({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:W(new x(124,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:W(new x(125,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:W(new M(126,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}},{enumDescriptions:[r.NC("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),r.NC("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),r.NC("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),r.NC("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:r.NC("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:W(new x(127,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[r.NC("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),r.NC("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:r.NC("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:W(new class e extends w{constructor(){super(130)}compute(e,t,i){let n=["monaco-editor"];return t.get(35)&&n.push(t.get(35)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(68)?n.push("mouse-default"):"copy"===t.get(68)&&n.push("mouse-copy"),t.get(102)&&n.push("showUnused"),t.get(128)&&n.push("showDeprecated"),n.join(" ")}}),pixelRatio:W(new class e extends w{constructor(){super(131)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:W(new class e extends w{constructor(){super(132)}compute(e,t,i){return!!t.get(83)||e.tabFocusMode}}),layoutInfo:W(new T),wrappingInfo:W(new class e extends w{constructor(){super(134)}compute(e,t,i){let n=t.get(133);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}})}},59938:function(e,t,i){"use strict";i.d(t,{si:function(){return a},yr:function(){return u}});var n=i("35271");class o{constructor(e,t,i,n,o){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}}let r=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class s{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;let t=e.match(r);if(!t)throw Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i?i:(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=n.Il.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class a{constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];let t=[],i=0;for(let n=0,r=e.length;n<r;n++){let r=e[n],s=-1;if("string"==typeof r.fontStyle){s=0;let e=r.fontStyle.split(" ");for(let t=0,i=e.length;t<i;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let a=null;"string"==typeof r.foreground&&(a=r.foreground);let l=null;"string"==typeof r.background&&(l=r.background),t[i++]=new o(r.token||"",n,s,a,l)}return t}(e),t)}static createFromParsedTokenTheme(e,t){return function(e,t){e.sort((e,t)=>{let i=function(e,t){return e<t?-1:e>t?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index});let i=0,n="000000",o="ffffff";for(;e.length>=1&&""===e[0].token;){let t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(o=t.background)}let r=new s;for(let e of t)r.getId(e);let l=r.getId(n),u=new c(new d(i,l,r.getId(o)));for(let t=0,i=e.length;t<i;t++){let i=e[t];u.insert(i.token,i.fontStyle,r.getId(i.foreground),r.getId(i.background))}return new a(r,u)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let i=this._cache.get(t);if(void 0===i){let e=this._match(t),n=function(e){let t=e.match(l);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 3}throw Error("Unexpected match for standard token type!")}(t);i=(e.metadata|n<<8)>>>0,this._cache.set(t,i)}return(i|e<<0)>>>0}}let l=/\b(comment|string|regex|regexp)\b/;class d{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new d(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class c{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){let t,i;if(""===e)return this._mainRule;let n=e.indexOf(".");-1===n?(t=e,i=""):(t=e.substring(0,n),i=e.substring(n+1));let o=this._children.get(t);return void 0!==o?o.match(i):this._mainRule}insert(e,t,i,n){let o,r;if(""===e){this._mainRule.acceptOverwrite(t,i,n);return}let s=e.indexOf(".");-1===s?(o=e,r=""):(o=e.substring(0,s),r=e.substring(s+1));let a=this._children.get(o);void 0===a&&(a=new c(this._mainRule.clone()),this._children.set(o,a)),a.insert(r,t,i,n)}}function u(e){let t=[];for(let i=1,n=e.length;i<n;i++){let n=e[i];t[i]=`.mtk${i} { color: ${n}; }`}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.push(".mtks { text-decoration: line-through; }"),t.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),t.join("\n")}},27541:function(e,t,i){"use strict";i.d(t,{V:function(){return o},y:function(){return r}});var n=i("6301");let o=(0,n.yh)("textResourceConfigurationService"),r=(0,n.yh)("textResourcePropertiesService")},49487:function(e,t,i){"use strict";i.d(t,{A:function(){return o}});var n=i("33317");class o{constructor(e,t,i){this.configuration=e,this.theme=new n.b(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}},27879:function(e,t,i){"use strict";var n=i("53891"),o=i("8339"),r=i("91125");i("18475").B.as(r.IP.Configuration).registerConfiguration(Object.assign(Object.assign({},n.wk),{properties:{"editor.experimental.useCustomCodeActionMenu":{type:"boolean",tags:["experimental"],scope:5,description:o.NC("codeActionWidget","Enabling this adjusts how the code action menu is rendered."),default:!1}}}))},91929:function(e,t,i){"use strict";i.d(t,{DW:function(){return g},HX:function(){return c},Ln:function(){return u},MW:function(){return p},PV:function(){return m},R$:function(){return l},YT:function(){return h},av:function(){return s},d8:function(){return a},gU:function(){return d},hE:function(){return w},sK:function(){return f}});var n=i("16904"),o=i("65761"),r=i("45731");class s{constructor(e,t){this._updateEventEmitter=new n.Q5,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new o.MN(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}get regions(){return this._regions}get textModel(){return this._textModel}toggleCollapseState(e){if(!e.length)return;e=e.sort((e,t)=>e.regionIndex-t.regionIndex);let t={};this._decorationProvider.changeDecorations(i=>{let n=0,o=-1,r=-1,s=e=>{for(;n<e;){let e=this._regions.getEndLineNumber(n),t=this._regions.isCollapsed(n);if(e<=o){let o=0!==this.regions.getSource(n);i.changeDecorationOptions(this._editorDecorationIds[n],this._decorationProvider.getDecorationOption(t,e<=r,o))}t&&e>r&&(r=e),n++}};for(let i of e){let e=i.regionIndex,n=this._editorDecorationIds[e];if(n&&!t[n]){t[n]=!0,s(e);let i=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,i),o=Math.max(o,this._regions.getEndLineNumber(e))}}s(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){let t=[],i=t=>{for(let i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let e=0;e<this._regions.length;e++){let n=this._regions.toFoldRange(e);(0===n.source||!i(n))&&t.push(n)}this.updatePost(o.MN.fromFoldRanges(t))}update(e,t=[]){let i=this._currentFoldedOrManualRanges(t),n=o.MN.sanitizeAndMerge(e,i,this._textModel.getLineCount());this.updatePost(o.MN.fromFoldRanges(n))}updatePost(e){let t=[],i=-1;for(let n=0,o=e.length;n<o;n++){let o=e.getStartLineNumber(n),r=e.getEndLineNumber(n),s=e.isCollapsed(n),a=0!==e.getSource(n),l={startLineNumber:o,startColumn:this._textModel.getLineMaxColumn(o),endLineNumber:r,endColumn:this._textModel.getLineMaxColumn(r)+1};t.push({range:l,options:this._decorationProvider.getDecorationOption(s,r<=i,a)}),s&&r>i&&(i=r)}this._decorationProvider.changeDecorations(e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t)),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e=[]){let t=(t,i)=>{for(let n of e)if(t<n&&n<=i)return!0;return!1},i=[];for(let e=0,n=this._regions.length;e<n;e++){let n=this.regions.isCollapsed(e),o=this.regions.getSource(e);if(n||0!==o){let r=this._regions.toFoldRange(e),s=this._textModel.getDecorationRange(this._editorDecorationIds[e]);s&&(n&&(t(s.startLineNumber,s.endLineNumber)||s.endLineNumber-s.startLineNumber!=r.endLineNumber-r.startLineNumber)&&(n=!1),i.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,type:r.type,isCollapsed:n,source:o}))}}return i}getMemento(){let e=this._currentFoldedOrManualRanges(),t=[];for(let i=0,n=e.length;i<n;i++){let n=e[i],o=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,isCollapsed:n.isCollapsed,source:n.source,checksum:o})}return t.length>0?t:void 0}applyMemento(e){var t,i;if(!Array.isArray(e))return;let n=[],r=this._textModel.getLineCount();for(let o of e){if(o.startLineNumber>=o.endLineNumber||o.startLineNumber<1||o.endLineNumber>r)continue;let e=this._getLinesChecksum(o.startLineNumber+1,o.endLineNumber);(!o.checksum||e===o.checksum)&&n.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,type:void 0,isCollapsed:null===(t=o.isCollapsed)||void 0===t||t,source:null!==(i=o.source)&&void 0!==i?i:0})}let s=o.MN.sanitizeAndMerge(this._regions,n,r);this.updatePost(o.MN.fromFoldRanges(s))}_getLinesChecksum(e,t){return(0,r.vp)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){let i=[];if(this._regions){let n=this._regions.findRange(e),o=1;for(;n>=0;){let e=this._regions.toRegion(n);(!t||t(e,o))&&i.push(e),o++,n=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){let t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){let i=[],n=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){let e=[];for(let r=n,s=this._regions.length;r<s;r++){let n=this._regions.toRegion(r);if(this._regions.getStartLineNumber(r)<o){for(;e.length>0&&!n.containedBy(e[e.length-1]);)e.pop();e.push(n),t(n,e.length)&&i.push(n)}else break}}else for(let e=n,r=this._regions.length;e<r;e++){let n=this._regions.toRegion(e);if(this._regions.getStartLineNumber(e)<o)(!t||t(n))&&i.push(n);else break}return i}}function a(e,t,i){let n=[];for(let o of i){let i=e.getRegionAtLine(o);if(i){let o=!i.isCollapsed;if(n.push(i),t>1){let r=e.getRegionsInside(i,(e,i)=>e.isCollapsed!==o&&i<t);n.push(...r)}}}e.toggleCollapseState(n)}function l(e,t,i=Number.MAX_VALUE,n){let o=[];if(n&&n.length>0)for(let r of n){let n=e.getRegionAtLine(r);if(n&&(n.isCollapsed!==t&&o.push(n),i>1)){let r=e.getRegionsInside(n,(e,n)=>e.isCollapsed!==t&&n<i);o.push(...r)}}else{let n=e.getRegionsInside(null,(e,n)=>e.isCollapsed!==t&&n<i);o.push(...n)}e.toggleCollapseState(o)}function d(e,t,i,n){let o=[];for(let r of n){let n=e.getAllRegionsAtLine(r,(e,n)=>e.isCollapsed!==t&&n<=i);o.push(...n)}e.toggleCollapseState(o)}function c(e,t,i){let n=[];for(let o of i){let i=e.getAllRegionsAtLine(o,e=>e.isCollapsed!==t);i.length>0&&n.push(i[0])}e.toggleCollapseState(n)}function u(e,t,i,n){let o=e.getRegionsInside(null,(e,o)=>o===t&&e.isCollapsed!==i&&!n.some(t=>e.containsLine(t)));e.toggleCollapseState(o)}function h(e,t,i){let n=[];for(let t of i){let i=e.getAllRegionsAtLine(t,void 0);i.length>0&&n.push(i[0])}let o=e.getRegionsInside(null,e=>n.every(t=>!t.containedBy(e)&&!e.containedBy(t))&&e.isCollapsed!==t);e.toggleCollapseState(o)}function g(e,t,i){let n=e.textModel,o=e.regions,r=[];for(let e=o.length-1;e>=0;e--)if(i!==o.isCollapsed(e)){let i=o.getStartLineNumber(e);t.test(n.getLineContent(i))&&r.push(o.toRegion(e))}e.toggleCollapseState(r)}function p(e,t,i){let n=e.regions,o=[];for(let e=n.length-1;e>=0;e--)i!==n.isCollapsed(e)&&t===n.getType(e)&&o.push(n.toRegion(e));e.toggleCollapseState(o)}function m(e,t){let i=null,n=t.getRegionAtLine(e);if(null!==n&&e===(i=n.startLineNumber)){let e=n.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}function f(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{let e=i.parentIndex,n=0;for(-1!==e&&(n=t.regions.getStartLineNumber(i.parentIndex));null!==i;)if(i.regionIndex>0){if((i=t.regions.toRegion(i.regionIndex-1)).startLineNumber<=n)break;if(i.parentIndex===e)return i.startLineNumber}else break}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber<e)return i.startLineNumber;i=i.regionIndex>0?t.regions.toRegion(i.regionIndex-1):null}return null}function w(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){let e=i.parentIndex,n=0;if(-1!==e)n=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;n=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;)if(i.regionIndex<t.regions.length){if((i=t.regions.toRegion(i.regionIndex+1)).startLineNumber>=n)break;if(i.parentIndex===e)return i.startLineNumber}else break}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex<t.regions.length?t.regions.toRegion(i.regionIndex+1):null}return null}},22557:function(e,t,i){"use strict";i.d(t,{Qq:function(){return T},Qs:function(){return P},Zg:function(){return k},x$:function(){return L},xC:function(){return M}});var n=i("94555"),o=i("3868"),r=i("862"),s=i("61111"),a=i("80189"),l=i("62300"),d=i("44138"),c=i("38505"),u=i("20084"),h=i("92568"),g=i("57938"),p=i("61045"),m=i("61065"),f=i("73835"),w=i("78936"),C=i("67720"),b=i("8339"),v=i("21095"),_=i("12357"),y=i("6301"),S=i("78540"),N=function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};function k(e){if(!(e=e.filter(e=>e.range)).length)return;let{range:t}=e[0];for(let i=1;i<e.length;i++)t=p.e.plusRange(t,e[i].range);let{startLineNumber:i,endLineNumber:o}=t;i===o?1===e.length?(0,n.Z9)(b.NC("hint11","Made 1 formatting edit on line {0}",i)):(0,n.Z9)(b.NC("hintn1","Made {0} formatting edits on line {1}",e.length,i)):1===e.length?(0,n.Z9)(b.NC("hint1n","Made 1 formatting edit between lines {0} and {1}",i,o)):(0,n.Z9)(b.NC("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,i,o))}function x(e,t,i){let n=[],o=new Set;for(let t of e.ordered(i))n.push(t),t.extensionId&&o.add(_.k.toKey(t.extensionId));for(let e of t.ordered(i)){if(e.extensionId){if(o.has(_.k.toKey(e.extensionId)))continue;o.add(_.k.toKey(e.extensionId))}n.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:(t,i,n)=>e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),i,n)})}return n}class M{static setFormatterSelector(e){return{dispose:M._selectors.unshift(e)}}static select(e,t,i){return N(this,void 0,void 0,function*(){if(0===e.length)return;let n=a.$.first(M._selectors);if(n)return yield n(e,t,i)})}}function L(e,t,i,n,o,r){return N(this,void 0,void 0,function*(){let s=e.get(y.TG),{documentRangeFormattingEditProvider:a}=e.get(S.p),l=(0,h.CL)(t)?t.getModel():t,d=a.ordered(l),c=yield M.select(d,l,n);c&&(o.report(c),yield s.invokeFunction(I,c,t,i,r))})}function I(e,t,i,n,r){return N(this,void 0,void 0,function*(){let s,a;let l=e.get(f.p);(0,h.CL)(i)?(s=i.getModel(),a=new u.Dl(i,5,void 0,r)):(s=i,a=new u.YQ(i,r));let d=[],c=0;for(let e of(0,o._2)(n).sort(p.e.compareRangesUsingStarts))c>0&&p.e.areIntersectingOrTouching(d[c-1],e)?d[c-1]=p.e.fromPositions(d[c-1].getStartPosition(),e.getEndPosition()):c=d.push(e);let g=e=>N(this,void 0,void 0,function*(){return(yield t.provideDocumentRangeFormattingEdits(s,e,s.getFormattingOptions(),a.token))||[]}),w=(e,t)=>{if(!e.length||!t.length)return!1;let i=e.reduce((e,t)=>p.e.plusRange(e,t.range),e[0].range);if(!t.some(e=>p.e.intersectRanges(i,e.range)))return!1;for(let i of e)for(let e of t)if(p.e.intersectRanges(i.range,e.range))return!0;return!1},b=[],v=[];try{for(let e of d){if(a.token.isCancellationRequested)return!0;v.push((yield g(e)))}for(let e=0;e<d.length;++e)for(let t=e+1;t<d.length;++t){if(a.token.isCancellationRequested)return!0;if(w(v[e],v[t])){let i=p.e.plusRange(d[e],d[t]),n=yield g(i);d.splice(t,1),d.splice(e,1),d.push(i),v.splice(t,1),v.splice(e,1),v.push(n),e=0,t=0}}for(let e of v){if(a.token.isCancellationRequested)return!0;let t=yield l.computeMoreMinimalEdits(s.uri,e);t&&b.push(...t)}}finally{a.dispose()}if(0===b.length)return!1;if((0,h.CL)(i))C.V.execute(i,b,!0),k(b),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{let[{range:e}]=b,t=new m.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);s.pushEditOperations([t],b.map(e=>({text:e.text,range:p.e.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:i}of e)if(p.e.areIntersectingOrTouching(i,t))return[new m.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return!0})}function T(e,t,i,n,o){return N(this,void 0,void 0,function*(){let r=e.get(y.TG),s=e.get(S.p),a=(0,h.CL)(t)?t.getModel():t,l=x(s.documentFormattingEditProvider,s.documentRangeFormattingEditProvider,a),d=yield M.select(l,a,i);d&&(n.report(d),yield r.invokeFunction(D,d,t,i,o))})}function D(e,t,i,n,o){return N(this,void 0,void 0,function*(){let r,s,a;let l=e.get(f.p);(0,h.CL)(i)?(r=i.getModel(),s=new u.Dl(i,5,void 0,o)):(r=i,s=new u.YQ(i,o));try{let e=yield t.provideDocumentFormattingEdits(r,r.getFormattingOptions(),s.token);if(a=yield l.computeMoreMinimalEdits(r.uri,e),s.token.isCancellationRequested)return!0}finally{s.dispose()}if(!a||0===a.length)return!1;if((0,h.CL)(i))C.V.execute(i,a,2!==n),2!==n&&(k(a),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1));else{let[{range:e}]=a,t=new m.Y(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);r.pushEditOperations([t],a.map(e=>({text:e.text,range:p.e.lift(e.range),forceMoveMarkers:!0})),e=>{for(let{range:i}of e)if(p.e.areIntersectingOrTouching(i,t))return[new m.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null})}return!0})}M._selectors=new l.S;function P(e,t,i,n,o,r,a){let l=t.onTypeFormattingEditProvider.ordered(i);return 0===l.length||0>l[0].autoFormatTriggerCharacters.indexOf(o)?Promise.resolve(void 0):Promise.resolve(l[0].provideOnTypeFormattingEdits(i,n,o,r,a)).catch(s.Cp).then(t=>e.computeMoreMinimalEdits(i.uri,t))}v.P0.registerCommand("_executeFormatRangeProvider",function(e,...t){return N(this,void 0,void 0,function*(){let[i,n,a]=t;(0,d.p_)(c.o.isUri(i)),(0,d.p_)(p.e.isIRange(n));let l=e.get(w.S),u=e.get(f.p),h=e.get(S.p),g=yield l.createModelReference(i);try{return function(e,t,i,n,r,a){return N(this,void 0,void 0,function*(){for(let l of t.documentRangeFormattingEditProvider.ordered(i)){let t=yield Promise.resolve(l.provideDocumentRangeFormattingEdits(i,n,r,a)).catch(s.Cp);if((0,o.Of)(t))return yield e.computeMoreMinimalEdits(i.uri,t)}})}(u,h,g.object.textEditorModel,p.e.lift(n),a,r.T.None)}finally{g.dispose()}})}),v.P0.registerCommand("_executeFormatDocumentProvider",function(e,...t){return N(this,void 0,void 0,function*(){let[i,n]=t;(0,d.p_)(c.o.isUri(i));let a=e.get(w.S),l=e.get(f.p),u=e.get(S.p),h=yield a.createModelReference(i);try{return function(e,t,i,n,r){return N(this,void 0,void 0,function*(){for(let a of x(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i)){let t=yield Promise.resolve(a.provideDocumentFormattingEdits(i,n,r)).catch(s.Cp);if((0,o.Of)(t))return yield e.computeMoreMinimalEdits(i.uri,t)}})}(l,u,h.object.textEditorModel,n,r.T.None)}finally{h.dispose()}})}),v.P0.registerCommand("_executeFormatOnTypeProvider",function(e,...t){return N(this,void 0,void 0,function*(){let[i,n,o,s]=t;(0,d.p_)(c.o.isUri(i)),(0,d.p_)(g.L.isIPosition(n)),(0,d.p_)("string"==typeof o);let a=e.get(w.S),l=e.get(f.p),u=e.get(S.p),h=yield a.createModelReference(i);try{return P(l,u,h.object.textEditorModel,g.L.lift(n),o,s,r.T.None)}finally{h.dispose()}})})},67720:function(e,t,i){"use strict";i.d(t,{V:function(){return r}});var n=i("88398"),o=i("61045");class r{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 s=r._handleEolEdits(e,t);1===s.length&&r._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(e=>n.h.replace(o.e.lift(e.range),e.text))):e.executeEdits("formatEditsCommand",s.map(e=>n.h.replaceMove(o.e.lift(e.range),e.text))),i&&e.pushUndoStop()}}},25457:function(e,t,i){"use strict";i.d(t,{J:function(){return T},d:function(){return P}});var n=i("9737"),o=i("52897"),r=i("35271"),s=i("16904"),a=i("19527"),l=i("24342"),d=i("37454");i("64299");var c=i("22577"),u=i("61045"),h=i("99599"),g=i("62785"),p=i("95394"),m=i("10870"),f=i("78936"),w=i("41708"),C=i("52607"),b=i("8339"),v=i("6301"),_=i("34752"),y=i("68031"),S=i("82997"),N=i("39703"),k=i("52365"),x=i("93603"),M=function(e,t){return function(i,n){t(i,n,e)}},L=function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};class I{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new a.SL,this._callOnModelChange=new a.SL,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();let e=this._editor.getModel();if(e){for(let t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));let t=[],i=[];for(let n=0,o=e.children.length;n<o;n++){let o=e.children[n];if(!this._decorationIgnoreSet.has(o.id))o.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:o.range,options:I.DecorationOptions}),i.push(n))}this._editor.changeDecorations(n=>{let o=n.deltaDecorations([],t);for(let t=0;t<o.length;t++)this._decorations.set(o[t],e.children[i[t]])})}_onDecorationChanged(){let e=[],t=this._editor.getModel();if(t){for(let[i,n]of this._decorations){let o=t.getDecorationRange(i);if(!o)continue;let r=!1;if(!u.e.equalsRange(o,n.range)){if(u.e.spansMultipleLines(o))r=!0;else{let e=n.range.endColumn-n.range.startColumn;e!==o.endColumn-o.startColumn&&(r=!0)}r?(this._decorationIgnoreSet.add(n.id),e.push(i)):n.range=o}}for(let t=0,i=e.length;t<i;t++)this._decorations.delete(e[t]);this._editor.removeDecorations(e)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}I.DecorationOptions=h.qx.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class T{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{let n=JSON.parse(e);t=n.ratio,i=n.heightInLines}catch(e){}return{ratio:t||.7,heightInLines:i||18}}}class D extends S.ls{}let P=class extends C.vk{constructor(e,t,i,o,r,l,d,c,u,h,g,p){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},l),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=r,this._instantiationService=l,this._peekViewService=d,this._uriLabel=c,this._undoRedoService=u,this._keybindingService=h,this._languageService=g,this._languageConfigurationService=p,this._disposeOnNewModel=new a.SL,this._callOnDispose=new a.SL,this._onDidSelectReference=new s.Q5,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new n.Ro(0,0),this._applyTheme(o.getColorTheme()),this._callOnDispose.add(o.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,a.B9)(this._preview),(0,a.B9)(this._previewNotAvailableMessage),(0,a.B9)(this._tree),(0,a.B9)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){let t=e.getColor(C.SC)||r.Il.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(C.KY)||r.Il.transparent,primaryHeadingColor:e.getColor(C.IH),secondaryHeadingColor:e.getColor(C.R7)})}show(e){super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=n.R3(e,n.$("div.messages")),n.Cp(this._messageContainer),this._splitView=new o.z(e,{orientation:1}),this._previewContainer=n.R3(e,n.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(c.H,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},this.editor),n.Cp(this._previewContainer),this._previewNotAvailableMessage=new h.yO(b.NC("missingPreviewMessage","no preview available"),p.bd,h.yO.DEFAULT_CREATION_OPTIONS,null,this._undoRedoService,this._languageService,this._languageConfigurationService),this._treeContainer=n.R3(e,n.$("div.ref-tree.inline"));let t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new w.QC,keyboardNavigationLabelProvider:this._instantiationService.createInstance(w.vn),identityProvider:new w.EZ,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:C.M8}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(n.mu(this._treeContainer,"keydown",e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(D,"ReferencesWidget",this._treeContainer,new w.bu,[this._instantiationService.createInstance(w.U$),this._instantiationService.createInstance(w.vr)],this._instantiationService.createInstance(w.o2),t),this._splitView.addView({onDidChange:s.ju.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},o.M.Distribute),this._splitView.addView({onDidChange:s.ju.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},o.M.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let i=(e,t)=>{e instanceof x.WX&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._tree.onDidOpen(e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")}),n.Cp(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new n.Ro(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return(this._disposeOnNewModel.clear(),this._model=e,this._model)?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=b.NC("noResults","No results"),n.$Z(this._messageContainer),Promise.resolve(void 0)):(n.Cp(this._messageContainer),this._decorationsManager=new I(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{let{event:t,target:i}=e;if(2!==t.detail)return;let n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),n.$Z(this._treeContainer),n.$Z(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){let[e]=this._tree.getFocus();return e instanceof x.WX?e:e instanceof x.F2&&e.children.length>0?e.children[0]:void 0}revealReference(e){return L(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return L(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==l.lg.inMemory?this.setTitle((0,d.Hx)(e.uri),this._uriLabel.getUriLabel((0,d.XX)(e.uri))):this.setTitle(b.NC("peekView.alternateTitle","References"));let i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent)),this._tree.reveal(e);let n=yield i;if(!this._model){n.dispose();return}(0,a.B9)(this._previewModelReference);let o=n.object;if(o){let t=this._preview.getModel()===o.textEditorModel?0:1,i=u.e.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(o.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};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 a=e.length-1;a>=0;a--)(o=e[a])&&(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(3,N.XE),M(4,f.S),M(5,v.TG),M(6,C.Fw),M(7,y.e),M(8,k.tJ),M(9,_.d),M(10,m.O),M(11,g.c_)],P)},22871:function(e,t,i){"use strict";i.d(t,{Cy:function(){return o},He:function(){return l},Jj:function(){return r}});var n=i("61045");function o(e,t){return{object:e,dispose:()=>null==t?void 0:t.dispose()}}function r(e,t){let i=new s(e),o=t.map(e=>{let t=n.e.lift(e.range);return{startOffset:i.getOffset(t.getStartPosition()),endOffset:i.getOffset(t.getEndPosition()),text:e.text}});for(let t of(o.sort((e,t)=>t.startOffset-e.startOffset),o))e=e.substring(0,t.startOffset)+t.text+e.substring(t.endOffset);return e}class s{constructor(e){this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t<e.length;t++)"\n"===e.charAt(t)&&this.lineStartOffsetByLineIdx.push(t+1)}getOffset(e){return this.lineStartOffsetByLineIdx[e.lineNumber-1]+e.column-1}}let a=[];function l(){return a}},39443:function(e,t,i){"use strict";var n=i("59923"),o=i("4309"),r=i("76617"),s=i("8339");class a extends n.R6{constructor(){super({id:"expandLineSelection",label:s.NC("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:r.u.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;let n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,o.P.expandLineSelection(n,n.getCursorStates())),n.revealPrimaryCursor(i.source,!0)}}(0,n.Qr)(a)},9411:function(e,t,i){"use strict";i.d(t,{i:function(){return r}});var n=i("88398"),o=i("61045");class r{constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}static getCollator(){return!r._COLLATOR&&(r._COLLATOR=new Intl.Collator),r._COLLATOR}getEditOperations(e,t){let i=function(e,t,i){let r=s(e,t,i);return r?n.h.replace(new o.e(r.startLineNumber,1,r.endLineNumber,e.getLineMaxColumn(r.endLineNumber)),r.after.join("\n")):null}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;let n=s(e,t,i);if(!n)return!1;for(let e=0,t=n.before.length;e<t;e++)if(n.before[e]!==n.after[e])return!0;return!1}}function s(e,t,i){let n=t.startLineNumber,o=t.endLineNumber;if(1===t.endColumn&&o--,n>=o)return null;let s=[];for(let t=n;t<=o;t++)s.push(e.getLineContent(t));let a=s.slice(0);return a.sort(r.getCollator().compare),!0===i&&(a=a.reverse()),{startLineNumber:n,endLineNumber:o,before:s,after:a}}r._COLLATOR=null},76269:function(e,t,i){"use strict";var n,o,r=i("94555"),s=i("67518"),a=i("88980"),l=i("19527"),d=i("59923"),c=i("4309"),u=i("61045"),h=i("61065"),g=i("76617"),p=i("63681"),m=i("99599"),f=i("90867"),w=i("8339"),C=i("51553"),b=i("49436"),v=i("97085"),_=i("39703"),y=i("78540");function S(e,t){let i=t.filter(t=>!e.find(e=>e.equals(t)));if(i.length>=1){let e=i.map(e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`).join(", "),t=1===i.length?w.NC("cursorAdded","Cursor added: {0}",e):w.NC("cursorsAdded","Cursors added: {0}",e);(0,r.i7)(t)}}class N extends d.R6{constructor(){super({id:"editor.action.insertCursorAbove",label:w.NC("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:g.u.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:C.eH.MenubarSelectionMenu,group:"3_multi",title:w.NC({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let r=o.getCursorStates();o.setCursorStates(i.source,3,c.P.addCursorUp(o,r,n)),o.revealTopMostCursor(i.source),S(r,o.getCursorStates())}}class k extends d.R6{constructor(){super({id:"editor.action.insertCursorBelow",label:w.NC("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:g.u.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:C.eH.MenubarSelectionMenu,group:"3_multi",title:w.NC({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let r=o.getCursorStates();o.setCursorStates(i.source,3,c.P.addCursorDown(o,r,n)),o.revealBottomMostCursor(i.source),S(r,o.getCursorStates())}}class x extends d.R6{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:w.NC("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:g.u.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:C.eH.MenubarSelectionMenu,group:"3_multi",title:w.NC({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let n=e.startLineNumber;n<e.endLineNumber;n++){let e=t.getLineMaxColumn(n);i.push(new h.Y(n,e,n,e))}e.endColumn>1&&i.push(new h.Y(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=t.getSelections(),o=t._getViewModel(),r=o.getCursorStates(),s=[];n.forEach(e=>this.getCursorsForSelection(e,i,s)),s.length>0&&t.setSelections(s),S(r,o.getCursorStates())}}class M extends d.R6{constructor(){super({id:"editor.action.addCursorsToBottom",label:w.NC("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;let i=t.getSelections(),n=t.getModel().getLineCount(),o=[];for(let e=i[0].startLineNumber;e<=n;e++)o.push(new h.Y(e,i[0].startColumn,e,i[0].endColumn));let r=t._getViewModel(),s=r.getCursorStates();o.length>0&&t.setSelections(o),S(s,r.getCursorStates())}}class L extends d.R6{constructor(){super({id:"editor.action.addCursorsToTop",label:w.NC("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;let i=t.getSelections(),n=[];for(let e=i[0].startLineNumber;e>=1;e--)n.push(new h.Y(e,i[0].startColumn,e,i[0].endColumn));let o=t._getViewModel(),r=o.getCursorStates();n.length>0&&t.setSelections(n),S(r,o.getCursorStates())}}class I{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class T{constructor(e,t,i,n,o,r,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=o,this.matchCase=r,this.currentMatch=s}static create(e,t){let i,n,o;if(!e.hasModel())return null;let r=t.getState();if(!e.hasTextFocus()&&r.isRevealed&&r.searchString.length>0)return new T(e,t,!1,r.searchString,r.wholeWord,r.matchCase,null);let s=!1,a=e.getSelections();1===a.length&&a[0].isEmpty()?(s=!0,i=!0,n=!0):(i=r.wholeWord,n=r.matchCase);let l=e.getSelection(),d=null;if(l.isEmpty()){let t=e.getConfiguredWordAtPosition(l.getStartPosition());if(!t)return null;o=t.word,d=new h.Y(l.startLineNumber,t.startColumn,l.startLineNumber,t.endColumn)}else o=e.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new T(e,t,s,o,i,n,d)}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();return e?new I(this._editor.getSelections().concat(e),e,0):null}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new I(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1);return i?new h.Y(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();return e?new I(this._editor.getSelections().concat(e),e,0):null}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new I(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1);return i?new h.Y(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();let t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(119):null,!1,1073741824)}}class D extends l.JT{constructor(e){super(),this._sessionDispose=this._register(new l.SL),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}static get(e){return e.getContribution(D.ID)}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=T.create(this._editor,e);if(!t)return;this._session=t;let i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(e=>{!this._ignoreSelectionChange&&this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(e=>{(e.matchCase||e.wholeWord)&&this._endSession()}))}}_endSession(){this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController&&this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1),this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;let i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new h.Y(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){let t=this._editor.getSelections();if(t.length>1){let i=e.getState().matchCase;if(!E(this._editor.getModel(),t,i)){let e=this._editor.getModel(),i=[];for(let n=0,o=t.length;n<o;n++)i[n]=this._expandEmptyToWord(e,t[n]);this._editor.setSelections(i);return}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null,i=e.getState();if(i.isRevealed&&i.searchString.length>0&&i.isRegex){let e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(119):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(119):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){let e=this._editor.getSelection();for(let i=0,n=t.length;i<n;i++){let n=t[i];if(n.range.intersectRanges(e)){t[i]=t[0],t[0]=n;break}}this._setSelections(t.map(e=>new h.Y(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)))}}}D.ID="editor.contrib.multiCursorController";class P extends d.R6{run(e,t){let i=D.get(t);if(!i)return;let n=f.pR.get(t);if(!n)return;let o=t._getViewModel();if(o){let e=o.getCursorStates();this._run(i,n),S(e,o.getCursorStates())}}}class R{constructor(e,t,i,n,o){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,o&&this._model===o._model&&this._searchText===o._searchText&&this._matchCase===o._matchCase&&this._wordSeparators===o._wordSeparators&&this._modelVersionId===o._modelVersionId&&(this._cachedFindMatches=o._cachedFindMatches)}findMatches(){return null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(e=>e.range),this._cachedFindMatches.sort(u.e.compareRangesUsingStarts)),this._cachedFindMatches}}let O=class e extends l.JT{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(99),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new s.pY(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(t=>{this._isEnabled=e.getOption(99)})),this._register(e.onDidChangeCursorSelection(e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(e=>{this._setState(null)})),this._register(e.onDidChangeModelContent(e=>{this._isEnabled&&this.updateSoon.schedule()}));let i=f.pR.get(e);i&&this._register(i.getState().onFindReplaceStateChange(e=>{this._update()}))}_update(){this._setState(e._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t||!i.hasModel())return null;let n=i.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;let o=D.get(i);if(!o)return null;let r=f.pR.get(i);if(!r)return null;let s=o.getSession(r);if(!s){let e=i.getSelections();if(e.length>1){let t=r.getState().matchCase;if(!E(i.getModel(),e,t))return null}s=T.create(i,r)}if(!s||s.currentMatch||/^[ \t]+$/.test(s.searchText)||s.searchText.length>200)return null;let a=r.getState(),l=a.matchCase;if(a.isRevealed){let e=a.searchString;!l&&(e=e.toLowerCase());let t=s.searchText;if(!l&&(t=t.toLowerCase()),e===t&&s.matchCase===a.matchCase&&s.wholeWord===a.wholeWord&&!a.isRegex)return null}return new R(i.getModel(),s.searchText,s.matchCase,s.wholeWord?i.getOption(119):null,e)}_setState(t){if(this.state=t,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;let i=this.editor.getModel();if(i.isTooLargeForTokenization())return;let n=this.state.findMatches(),o=this.editor.getSelections();o.sort(u.e.compareRangesUsingStarts);let r=[];for(let e=0,t=0,i=n.length,s=o.length;e<i;){let i=n[e];if(t>=s)r.push(i),e++;else{let n=u.e.compareRangesUsingStarts(i,o[t]);n<0?((o[t].isEmpty()||!u.e.areIntersecting(i,o[t]))&&r.push(i),e++):(n>0||e++,t++)}}let s=this._languageFeaturesService.documentHighlightProvider.has(i)&&this.editor.getOption(74),a=r.map(t=>({range:t,options:s?e._SELECTION_HIGHLIGHT:e._SELECTION_HIGHLIGHT_OVERVIEW}));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function E(e,t,i){let n=A(e,t[0],!i);for(let o=1,r=t.length;o<r;o++){let r=t[o];if(r.isEmpty()||n!==A(e,r,!i))return!1}return!0}function A(e,t,i){let n=e.getValueInRange(t);return i?n.toLowerCase():n}O.ID="editor.contrib.selectionHighlighter",O._SELECTION_HIGHLIGHT_OVERVIEW=m.qx.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",minimap:{color:(0,_.EN)(v.IYc),position:p.F5.Inline},overviewRuler:{color:(0,_.EN)(v.SPM),position:p.sh.Center}}),O._SELECTION_HIGHLIGHT=m.qx.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),O=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(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}([(n=1,o=y.p,function(e,t){o(e,t,1)})],O);class F extends d.R6{constructor(){super({id:"editor.action.focusNextCursor",label:w.NC("mutlicursor.focusNextCursor","Focus Next Cursor"),description:{description:w.NC("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let o=Array.from(n.getCursorStates()),r=o.shift();r&&(o.push(r),n.setCursorStates(i.source,3,o),n.revealPrimaryCursor(i.source,!0),S(o,n.getCursorStates()))}}class W extends d.R6{constructor(){super({id:"editor.action.focusPreviousCursor",label:w.NC("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),description:{description:w.NC("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let o=Array.from(n.getCursorStates()),r=o.pop();r&&(o.unshift(r),n.setCursorStates(i.source,3,o),n.revealPrimaryCursor(i.source,!0),S(o,n.getCursorStates()))}}(0,d._K)(D.ID,D),(0,d._K)(O.ID,O),(0,d.Qr)(N),(0,d.Qr)(k),(0,d.Qr)(x),(0,d.Qr)(class e extends P{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:w.NC("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:g.u.focus,primary:2082,weight:100},menuOpts:{menuId:C.eH.MenubarSelectionMenu,group:"3_multi",title:w.NC({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),(0,d.Qr)(class e extends P{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:w.NC("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:C.eH.MenubarSelectionMenu,group:"3_multi",title:w.NC({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),(0,d.Qr)(class e extends P{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:w.NC("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:g.u.focus,primary:(0,a.gx)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),(0,d.Qr)(class e extends P{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:w.NC("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}),(0,d.Qr)(class e extends P{constructor(){super({id:"editor.action.selectHighlights",label:w.NC("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:g.u.focus,primary:3114,weight:100},menuOpts:{menuId:C.eH.MenubarSelectionMenu,group:"3_multi",title:w.NC({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),(0,d.Qr)(class e extends P{constructor(){super({id:"editor.action.changeAll",label:w.NC("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:b.Ao.and(g.u.writable,g.u.editorTextFocus),kbOpts:{kbExpr:g.u.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),(0,d.Qr)(M),(0,d.Qr)(L),(0,d.Qr)(F),(0,d.Qr)(W)},19297:function(e,t,i){"use strict";i.d(t,{S:function(){return C}});var n=i("67518"),o=i("862"),r=i("71628"),s=i("16471"),a=i("19527"),l=i("66763"),d=i("61045"),c=i("74854"),u=i("32633"),h=i("51308"),g=i("8339"),p=i("78540"),m=i("3868"),f=function(e,t){return function(i,n){t(i,n,e)}},w=function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};let C=class e extends h.X{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,g.NC)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),a.JT.None}provideWithTextEditor(e,t,i){let n=e.editor,o=this.getModel(n);return o?this._languageFeaturesService.documentSymbolProvider.has(o)?this.doProvideWithEditorSymbols(e,o,t,i):this.doProvideWithoutEditorSymbols(e,o,t,i):a.JT.None}doProvideWithoutEditorSymbols(e,t,i,n){let o=new a.SL;return this.provideLabelPick(i,(0,g.NC)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),w(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,o))||n.isCancellationRequested||o.add(this.doProvideWithEditorSymbols(e,t,i,n))}),o}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return w(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let i=new n.CR,o=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(o.dispose(),i.complete(!0))}));return t.add((0,a.OF)(()=>i.complete(!1))),i.p})}doProvideWithEditorSymbols(t,i,n,r){var l;let c;let u=t.editor,h=new a.SL;h.add(n.onDidAccept(e=>{let[i]=n.selectedItems;i&&i.range&&(this.gotoLocation(t,{range:i.range.selection,keyMods:n.keyMods,preserveFocus:e.inBackground}),!e.inBackground&&n.hide())})),h.add(n.onDidTriggerItemButton(({item:e})=>{e&&e.range&&(this.gotoLocation(t,{range:e.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())}));let p=this.getDocumentSymbols(i,r);let f=t=>w(this,void 0,void 0,function*(){null==c||c.dispose(!0),n.busy=!1,c=new o.A(r),n.busy=!0;try{let i=(0,s.AO)(n.value.substr(e.PREFIX.length).trim()),o=yield this.doGetSymbolPicks(p,i,void 0,c.token);if(r.isCancellationRequested)return;if(o.length>0){if(n.items=o,t&&0===i.original.length){let e=(0,m.dF)(o,e=>!!("separator"!==e.type&&e.range&&d.e.containsPosition(e.range.decoration,t)));e&&(n.activeItems=[e])}}else i.original.length>0?this.provideLabelPick(n,(0,g.NC)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(n,(0,g.NC)("noSymbolResults","No editor symbols"))}finally{!r.isCancellationRequested&&(n.busy=!1)}});h.add(n.onDidChangeValue(()=>f(void 0))),f(null===(l=u.getSelection())||void 0===l?void 0:l.getPosition());let C=2;return h.add(n.onDidChangeActive(()=>{let[e]=n.activeItems;if(e&&e.range){if(C-- >0)return;u.revealRangeInCenter(e.range.selection,0),this.addDecorations(u,e.range.decoration)}})),h}doGetSymbolPicks(t,i,n,o){return w(this,void 0,void 0,function*(){let a,u;let h=yield t;if(o.isCancellationRequested)return[];let p=0===i.original.indexOf(e.SCOPE_PREFIX),m=p?1:0;i.values&&i.values.length>1?(a=(0,s.Ic)(i.values[0]),u=(0,s.Ic)(i.values.slice(1))):a=i;let f=[];for(let e=0;e<h.length;e++){let t,o,p,w,C=h[e],b=(0,l.fy)(C.name),v=`$(${c.uZ.toIcon(C.kind).id}) ${b}`,_=v.length-b.length,y=C.containerName;(null==n?void 0:n.extraContainerLabel)&&(y=y?`${n.extraContainerLabel} \u{2022} ${y}`:n.extraContainerLabel);if(i.original.length>m){let e=!1;if(a!==i&&([t,o]=(0,s.mt)(v,Object.assign(Object.assign({},i),{values:void 0}),m,_),"number"==typeof t&&(e=!0)),"number"!=typeof t&&([t,o]=(0,s.mt)(v,a,m,_),"number"!=typeof t))continue;if(!e&&u){if(y&&u.original.length>0&&([p,w]=(0,s.mt)(y,u)),"number"!=typeof p)continue;"number"==typeof t&&(t+=p)}}let S=C.tags&&C.tags.indexOf(1)>=0;f.push({index:e,kind:C.kind,score:t,label:v,ariaLabel:b,description:y,highlights:S?void 0:{label:o,description:w},range:{selection:d.e.collapseToStart(C.selectionRange),decoration:C.range},strikethrough:S,buttons:(()=>{var e,t;let i=(null===(e=this.options)||void 0===e?void 0:e.openSideBySideDirection)?null===(t=this.options)||void 0===t?void 0:t.openSideBySideDirection():void 0;if(i)return[{iconClass:"right"===i?r.lA.splitHorizontal.classNames:r.lA.splitVertical.classNames,tooltip:"right"===i?(0,g.NC)("openToSide","Open to the Side"):(0,g.NC)("openToBottom","Open to the Bottom")}]})()})}let w=f.sort((e,t)=>p?this.compareByKindAndScore(e,t):this.compareByScore(e,t)),C=[];if(p){let e,t;let i=0;function _(){t&&"number"==typeof e&&i>0&&(t.label=(0,l.WU)(v[e]||b,i))}for(let n of w)e!==n.kind?(_(),e=n.kind,i=1,t={type:"separator"},C.push(t)):i++,C.push(n);_()}else w.length>0&&(C=[{label:(0,g.NC)("symbols","symbols ({0})",f.length),type:"separator"},...w]);return C})}compareByScore(e,t){if("number"!=typeof e.score&&"number"==typeof t.score)return 1;if("number"==typeof e.score&&"number"!=typeof t.score)return -1;if("number"==typeof e.score&&"number"==typeof t.score){if(e.score>t.score)return -1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){let i=v[e.kind]||b,n=v[t.kind]||b,o=i.localeCompare(n);return 0===o?this.compareByScore(e,t):o}getDocumentSymbols(e,t){return w(this,void 0,void 0,function*(){let i=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()})}};C.PREFIX="@",C.SCOPE_PREFIX=":",C.PREFIX_BY_CATEGORY=`${C.PREFIX}${C.SCOPE_PREFIX}`,C=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(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}([f(0,p.p),f(1,u.Je)],C);let b=(0,g.NC)("property","properties ({0})"),v={5:(0,g.NC)("method","methods ({0})"),11:(0,g.NC)("function","functions ({0})"),8:(0,g.NC)("_constructor","constructors ({0})"),12:(0,g.NC)("variable","variables ({0})"),4:(0,g.NC)("class","classes ({0})"),22:(0,g.NC)("struct","structs ({0})"),23:(0,g.NC)("event","events ({0})"),24:(0,g.NC)("operator","operators ({0})"),10:(0,g.NC)("interface","interfaces ({0})"),2:(0,g.NC)("namespace","namespaces ({0})"),3:(0,g.NC)("package","packages ({0})"),25:(0,g.NC)("typeParameter","type parameters ({0})"),1:(0,g.NC)("modules","modules ({0})"),6:(0,g.NC)("property","properties ({0})"),9:(0,g.NC)("enum","enumerations ({0})"),21:(0,g.NC)("enumMember","enumeration members ({0})"),14:(0,g.NC)("string","strings ({0})"),0:(0,g.NC)("file","files ({0})"),17:(0,g.NC)("array","arrays ({0})"),15:(0,g.NC)("number","numbers ({0})"),16:(0,g.NC)("boolean","booleans ({0})"),18:(0,g.NC)("object","objects ({0})"),19:(0,g.NC)("key","keys ({0})"),7:(0,g.NC)("field","fields ({0})"),13:(0,g.NC)("constant","constants ({0})")}},32943:function(e,t,i){"use strict";var n=i("94555"),o=i("67518"),r=i("862"),s=i("61111"),a=i("19527"),l=i("44138"),d=i("38505"),c=i("20084"),u=i("59923"),h=i("5478"),g=i("83368"),p=i("57938"),m=i("61045"),f=i("76617"),w=i("27541"),C=i("2304"),b=i("8339"),v=i("91125"),_=i("49436"),y=i("6301"),S=i("53881"),N=i("97669"),k=i("54967"),x=i("18475"),M=i("17182"),L=i("78540"),I=function(e,t){return function(i,n){t(i,n,e)}},T=function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};class D{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return T(this,void 0,void 0,function*(){let t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){let i=this._providers[this._providerRenameIdx];if(!i.resolveRenameLocation)break;let n=yield i.resolveRenameLocation(this.model,this.position,e);if(n){if(n.rejectReason){t.push(n.rejectReason);continue}return n}}let i=this.model.getWordAtPosition(this.position);return i?{range:new m.e(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m.e.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}})}provideRenameEdits(e,t){return T(this,void 0,void 0,function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)})}_provideRenameEdits(e,t,i,n){return T(this,void 0,void 0,function*(){let o=this._providers[t];if(!o)return{edits:[],rejectReason:i.join("\n")};let r=yield o.provideRenameEdits(this.model,this.position,e,n);return r?r.rejectReason?this._provideRenameEdits(e,t+1,i.concat(r.rejectReason),n):r:this._provideRenameEdits(e,t+1,i.concat(b.NC("no result","No result.")),n)})}}let P=class e{constructor(e,t,i,n,s,l,d,c){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=s,this._logService=l,this._configService=d,this._languageFeaturesService=c,this._disposableStore=new a.SL,this._cts=new r.A,this._renameInputField=this._disposableStore.add(new o.Ue(()=>this._disposableStore.add(this._instaService.createInstance(M.T,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(t){return t.getContribution(e.ID)}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return T(this,void 0,void 0,function*(){let i;if(this._cts.dispose(!0),!this.editor.hasModel())return;let r=this.editor.getPosition(),s=new D(this.editor.getModel(),r,this._languageFeaturesService.renameProvider);if(!s.hasProvider())return;this._cts=new c.Dl(this.editor,5);try{let e=s.resolveRenameLocation(this._cts.token);this._progressService.showWhile(e,250),i=yield e}catch(t){null===(e=C.O.get(this.editor))||void 0===e||e.showMessage(t||b.NC("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),r);return}if(!i)return;if(i.rejectReason){null===(t=C.O.get(this.editor))||void 0===t||t.showMessage(i.rejectReason,r);return}if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new c.Dl(this.editor,5,i.range);let a=this.editor.getSelection(),l=0,d=i.text.length;!m.e.isEmpty(a)&&!m.e.spansMultipleLines(a)&&m.e.containsRange(i.range,a)&&(l=Math.max(0,a.startColumn-i.range.startColumn),d=Math.min(i.range.endColumn,a.endColumn)-i.range.startColumn);let u=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),g=yield this._renameInputField.value.getInput(i.range,i.text,l,d,u,this._cts.token);if("boolean"==typeof g){g&&this.editor.focus();return}this.editor.focus();let p=(0,o.eP)(s.provideRenameEdits(g.newName,this._cts.token),this._cts.token).then(e=>T(this,void 0,void 0,function*(){if(e&&this.editor.hasModel()){if(e.rejectReason){this._notificationService.info(e.rejectReason);return}this.editor.setSelection(m.e.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(h.fo.convert(e),{editor:this.editor,showPreview:g.wantsPreview,label:b.NC("label","Renaming '{0}' to '{1}'",null==i?void 0:i.text,g.newName),code:"undoredo.rename",quotableLabel:b.NC("quotableLabel","Renaming {0} to {1}",null==i?void 0:i.text,g.newName),respectAutoSaveConfig:!0}).then(e=>{e.ariaSummary&&(0,n.Z9)(b.NC("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",i.text,g.newName,e.ariaSummary))}).catch(e=>{this._notificationService.error(b.NC("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)})}}),e=>{this._notificationService.error(b.NC("rename.failed","Rename failed to compute edits")),this._logService.error(e)});return this._progressService.showWhile(p,250),p})}acceptRenameInput(e){this._renameInputField.value.acceptInput(e)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};P.ID="editor.contrib.renameController",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 a=e.length-1;a>=0;a--)(o=e[a])&&(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}([I(1,y.TG),I(2,N.lT),I(3,h.vu),I(4,k.ek),I(5,S.VZ),I(6,w.V),I(7,L.p)],P);class R extends u.R6{constructor(){super({id:"editor.action.rename",label:b.NC("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:_.Ao.and(f.u.writable,f.u.hasRenameProvider),kbOpts:{kbExpr:f.u.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){let i=e.get(g.$),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return d.o.isUri(n)&&p.L.isIPosition(o)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(o),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},s.dL):super.runCommand(e,t)}run(e,t){let i=P.get(t);return i?i.run():Promise.resolve()}}(0,u._K)(P.ID,P),(0,u.Qr)(R);let O=u._l.bindToContribution(P.get);(0,u.fK)(new O({id:"acceptRenameInput",precondition:M.C,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:f.u.focus,primary:3}})),(0,u.fK)(new O({id:"acceptRenameInputWithPreview",precondition:_.Ao.and(M.C,_.Ao.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:f.u.focus,primary:1027}})),(0,u.fK)(new O({id:"cancelRenameInput",precondition:M.C,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.u.focus,primary:9,secondary:[1033]}})),(0,u.sb)("_executeDocumentRenameProvider",function(e,t,i,...n){let[o]=n;(0,l.p_)("string"==typeof o);let{renameProvider:s}=e.get(L.p);return function(e,t,i,n){return T(this,void 0,void 0,function*(){let o=new D(t,i,e),s=yield o.resolveRenameLocation(r.T.None);return(null==s?void 0:s.rejectReason)?{edits:[],rejectReason:s.rejectReason}:o.provideRenameEdits(n,r.T.None)})}(s,t,i,o)}),(0,u.sb)("_executePrepareRename",function(e,t,i){return T(this,void 0,void 0,function*(){let{renameProvider:n}=e.get(L.p),o=new D(t,i,n),s=yield o.resolveRenameLocation(r.T.None);if(null==s?void 0:s.rejectReason)throw Error(s.rejectReason);return s})}),x.B.as(v.IP.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:b.NC("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},59842:function(e,t,i){"use strict";i.d(t,{Lv:function(){return l},Vm:function(){return a},Yj:function(){return p},xv:function(){return r},y1:function(){return g}});class n{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){let e;if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let t=this.pos,i=0,o=this.value.charCodeAt(t);if("number"==typeof(e=n._table[o]))return this.pos+=1,{type:e,pos:t,len:1};if(n.isDigitCharacter(o)){e=8;do i+=1,o=this.value.charCodeAt(t+i);while(n.isDigitCharacter(o));return this.pos+=i,{type:e,pos:t,len:i}}if(n.isVariableCharacter(o)){e=9;do o=this.value.charCodeAt(t+ ++i);while(n.isVariableCharacter(o)||n.isDigitCharacter(o));return this.pos+=i,{type:e,pos:t,len:i}}e=10;do i+=1,o=this.value.charCodeAt(t+i);while(!isNaN(o)&&void 0===n._table[o]&&!n.isDigitCharacter(o)&&!n.isVariableCharacter(o));return this.pos+=i,{type:e,pos:t,len:i}}}n._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class o{constructor(){this._children=[]}appendChild(e){return e instanceof r&&this._children[this._children.length-1]instanceof r?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){let{parent:i}=e,n=i.children.indexOf(e),o=i.children.slice(0);o.splice(n,1,...t),i._children=o,!function e(t,i){for(let n of t)n.parent=i,e(n.children,n)}(t,i)}get children(){return this._children}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class r extends o{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new r(this.value)}}class s extends o{}class a extends s{constructor(e){super(),this.index=e}static compareByIndex(e,t){if(e.index===t.index)return 0;if(e.isFinalTabstop)return 1;if(t.isFinalTabstop)return -1;else if(e.index<t.index)return -1;else if(e.index>t.index)return 1;else return 0}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0}clone(){let e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}class l extends o{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof r&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let e=new l;return this.options.forEach(e.appendChild,e),e}}class d extends o{constructor(){super(...arguments),this.regexp=RegExp("")}resolve(e){let t=this,i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(e=>e instanceof c&&!!e.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(let i of this._children)if(i instanceof c){let n=e[i.index]||"";t+=n=i.resolve(n)}else t+=i.toString();return t}toString(){return""}clone(){let e=new d;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(e=>e.clone()),e}}class c extends o{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){if("upcase"===this.shorthandName)return e?e.toLocaleUpperCase():"";if("downcase"===this.shorthandName)return e?e.toLocaleLowerCase():"";if("capitalize"===this.shorthandName)return e?e[0].toLocaleUpperCase()+e.substr(1):"";else if("pascalcase"===this.shorthandName)return e?this._toPascalCase(e):"";else if("camelcase"===this.shorthandName)return e?this._toCamelCase(e):"";else if(e&&"string"==typeof this.ifValue)return this.ifValue;else if(!e&&"string"==typeof this.elseValue)return this.elseValue;else return e||""}_toPascalCase(e){let t=e.match(/[a-z0-9]+/gi);return t?t.map(e=>e.charAt(0).toUpperCase()+e.substr(1)).join(""):e}_toCamelCase(e){let t=e.match(/[a-z0-9]+/gi);return t?t.map((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1)).join(""):e}clone(){return new c(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class u extends s{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new r(t)],!0)}clone(){let e=new u(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}function h(e,t){let i=[...e];for(;i.length>0;){let e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends o{get placeholderInfo(){if(!this._placeholders){let e;let t=[];this.walk(function(i){return i instanceof a&&(t.push(i),e=!e||e.index<i.index?i:e),!0}),this._placeholders={all:t,last:e}}return this._placeholders}get placeholders(){let{all:e}=this.placeholderInfo;return e}offset(e){let t=0,i=!1;return(this.walk(n=>n===e?(i=!0,!1):(t+=n.len(),!0)),i)?t:-1}fullLen(e){let t=0;return h([e],e=>(t+=e.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:i}=e;for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof u&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){let e=new g;return this._children=this.children.map(e=>e.clone()),e}walk(e){h(this.children,e)}}class p{constructor(){this._scanner=new n,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){let n=new g;return this.parseFragment(e,n),this.ensureFinalTabstop(n,null!=i&&i,null!=t&&t),n}parseFragment(e,t){let i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););let n=new Map,o=[];for(let e of(t.walk(e=>(e instanceof a&&(e.isFinalTabstop?n.set(0,void 0):!n.has(e.index)&&e.children.length>0?n.set(e.index,e.children):o.push(e)),!0)),o)){let i=n.get(e.index);if(i){let n=new a(e.index);for(let t of(n.transform=e.transform,i))n.appendChild(t.clone());t.replace(e,[n])}}return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&!e.placeholders.find(e=>0===e.index)&&e.appendChild(new a(0))}_accept(e,t){if(void 0===e||this._token.type===e){let e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){let t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){let e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}let i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new r(t)),!0)}_parseTabstopOrVariableName(e){let t;let i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new u(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;let i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);let n=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new r("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else if(n.index>0&&this._accept(7)){let t=new l;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(t),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}else if(this._accept(6))return this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1);else if(this._accept(4))return e.appendChild(n),!0;else return this._backTo(i)}_parseChoiceElement(e){let t=this._token,i=[];for(;;){let e;if(2===this._token.type||7===this._token.type)break;if(!(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0)))return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new r(i.join(""))),!0)}_parseComplexVariable(e){let t;let i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);let n=new u(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new r("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else if(this._accept(6))return this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1);else if(this._accept(4))return e.appendChild(n),!0;else return this._backTo(i)}_parseTransform(e){let t=new d,i="",n="";for(;;){let e;if(this._accept(6))break;if(e=this._accept(5,!0)){i+=e=this._accept(6,!0)||e;continue}if(14!==this._token.type){i+=this._accept(void 0,!0);continue}return!1}for(;;){let e;if(this._accept(6))break;if(e=this._accept(5,!0)){e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new r(e));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){;if(14!==this._token.type){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch(e){return!1}return e.transform=t,!0}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);let n=this._accept(8,!0);if(!n)return this._backTo(t),!1;if(!i)return e.appendChild(new c(Number(n))),!0;if(this._accept(4))return e.appendChild(new c(Number(n))),!0;else if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){let i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new c(Number(n),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){let t=this._until(4);if(t)return e.appendChild(new c(Number(n),void 0,t,void 0)),!0}else if(this._accept(12)){let t=this._until(4);if(t)return e.appendChild(new c(Number(n),void 0,void 0,t)),!0}else if(this._accept(13)){let t=this._until(1);if(t){let i=this._until(4);if(i)return e.appendChild(new c(Number(n),void 0,t,i)),!0}}else{let t=this._until(4);if(t)return e.appendChild(new c(Number(n),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new r(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},17893:function(e,t,i){"use strict";i.d(t,{U:function(){return S}});var n=i("67518"),o=i("862"),r=i("61111"),s=i("16904"),a=i("19527"),l=i("66763"),d=i("61065"),c=i("73835"),u=i("8626"),h=i("77972"),g=i("4264"),p=i("53861"),m=i("49436"),f=i("53881"),w=i("14800"),C=i("42614"),b=i("95357"),v=i("78540"),_=function(e,t){return function(i,n){t(i,n,e)}};class y{constructor(e,t,i,n,o){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=i,this.shy=n,this.noSelect=o}static shouldAutoTrigger(e){if(!e.hasModel())return!1;let t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);let n=t.getWordAtPosition(i);return!!(n&&n.endColumn===i.column&&isNaN(Number(n.word)))||!1}}let S=class e{constructor(e,t,i,o,r,l,c,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=o,this._logService=r,this._contextKeyService=l,this._configurationService=c,this._languageFeaturesService=u,this._toDispose=new a.SL,this._triggerCharacterListener=new a.SL,this._triggerQuickSuggest=new n._F,this._state=0,this._completionDisposables=new a.SL,this._onDidCancel=new s.Q5,this._onDidTrigger=new s.Q5,this._onDidSuggest=new s.Q5,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new d.Y(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters()})),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()}));let h=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{h=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{h=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(e=>{!h&&this._onCursorChange(e)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{!h&&this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){(0,a.B9)(this._triggerCharacterListener),(0,a.B9)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(83)||!this._editor.hasModel()||!this._editor.getOption(111))return;let e=new Map;for(let t of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(let i of t.triggerCharacters||[]){let n=e.get(i);!n&&((n=new Set).add((0,b.ZJ)()),e.set(i,n)),n.add(t)}let t=t=>{if(!function(e,t,i){if(!t.getContextKeyValue("inlineSuggestionVisible"))return!0;let n=i.getValue("editor.inlineSuggest.allowSuggestOnTriggerCharacters");return void 0!==n&&!!n}(this._editor,this._contextKeyService,this._configurationService)||y.shouldAutoTrigger(this._editor))return;if(!t){let e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let i="";(0,l.YK)(t.charCodeAt(t.length-1))?(0,l.ZG)(t.charCodeAt(t.length-2))&&(i=t.substr(t.length-2)):i=t.charAt(t.length-1);let n=e.get(i);if(n){let e=this._completionModel?{items:this._completionModel.adopt(n),clipboardText:this._completionModel.clipboardText}:void 0;this.trigger({auto:!0,shy:!1,noSelect:!1,triggerCharacter:i},!!this._completionModel,n,e)}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(()=>t()))}get state(){return this._state}cancel(e=!1){var t;0!==this._state&&(this._triggerQuickSuggest.cancel(),null===(t=this._requestToken)||void 0===t||t.cancel(),this._requestToken=void 0,this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){0!==this._state&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1,noSelect:!1},!0):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;let t=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source){this.cancel();return}0===this._state&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():0!==this._state&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){0===this._state?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;if(!b.tG.isAllOff(this._editor.getOption(81)))!(this._editor.getOption(108).snippetsPreventQuickSuggestions&&(null===(e=u.f.get(this._editor))||void 0===e?void 0:e.isInSnippet()))&&(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(0!==this._state||!y.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;let e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(81);if(b.tG.isAllOff(i))return;if(!b.tG.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);let n=e.tokenization.getLineTokens(t.lineNumber),o=n.getStandardTokenType(n.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==b.tG.valueFor(i,o))return}if(!!function(e,t,i){if(!t.getContextKeyValue("inlineSuggestionVisible"))return!0;let n=i.getValue("editor.inlineSuggest.allowQuickSuggestions");return void 0!==n&&!!n}(this._editor,this._contextKeyService,this._configurationService))this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0,shy:!1,noSelect:!1})},this._editor.getOption(82)))}_refilterCompletionItems(){Promise.resolve().then(()=>{if(0===this._state||!this._editor.hasModel())return;let e=this._editor.getModel(),t=new y(e,this._editor.getPosition(),2===this._state,!1,!1);this._onNewContext(t)})}trigger(t,i=!1,n,s,a){var l;if(!this._editor.hasModel())return;let d=this._editor.getModel(),c=t.auto,u=new y(d,this._editor.getPosition(),c,t.shy,t.noSelect);this.cancel(i),this._state=c?2:1,this._onDidTrigger.fire({auto:c,shy:t.shy,position:this._editor.getPosition()}),this._context=u;let g={triggerKind:null!==(l=t.triggerKind)&&void 0!==l?l:0};t.triggerCharacter&&(g={triggerKind:1,triggerCharacter:t.triggerCharacter}),this._requestToken=new o.A;let p=this._editor.getOption(103),m=1;switch(p){case"top":m=0;break;case"bottom":m=2}let{itemKind:f,showDeprecated:w}=e._createSuggestFilter(this._editor),v=new b.A9(m,a?new Set:f,n,w),_=h.K.create(this._editorWorkerService,this._editor);Promise.all([(0,b.kL)(this._languageFeaturesService.completionProvider,d,this._editor.getPosition(),v,g,this._requestToken.token),_]).then(([e,i])=>{var n,o,r,a;return n=this,o=void 0,r=void 0,a=function*(){var n;if(null===(n=this._requestToken)||void 0===n||n.dispose(),!this._editor.hasModel())return;let o=null==s?void 0:s.clipboardText;if(!o&&e.needsClipboard&&(o=yield this._clipboardService.readText()),0===this._state)return;let r=this._editor.getModel(),a=e.items;if(s){let e=(0,b.wg)(m);a=a.concat(s.items).sort(e)}let l=new y(r,this._editor.getPosition(),c,t.shy,t.noSelect);this._completionModel=new C._(a,this._context.column,{leadingLineContent:l.leadingLineContent,characterCountDelta:l.column-this._context.column},i,this._editor.getOption(108),this._editor.getOption(103),void 0,o),this._completionDisposables.add(e.disposable),this._onNewContext(l),this._reportDurationsTelemetry(e.durations)},new(r||(r=Promise))(function(e,t){function i(e){try{l(a.next(e))}catch(e){t(e)}}function s(e){try{l(a.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(i,s)}l((a=a.apply(n,o||[])).next())})}).catch(r.dL)}_reportDurationsTelemetry(e){this._telemetryGate++%230==0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)})}static _createSuggestFilter(e){let t=new Set;"none"===e.getOption(103)&&t.add(27);let i=e.getOption(108);return!i.showMethods&&t.add(0),!i.showFunctions&&t.add(1),!i.showConstructors&&t.add(2),!i.showFields&&t.add(3),!i.showVariables&&t.add(4),!i.showClasses&&t.add(5),!i.showStructs&&t.add(6),!i.showInterfaces&&t.add(7),!i.showModules&&t.add(8),!i.showProperties&&t.add(9),!i.showEvents&&t.add(10),!i.showOperators&&t.add(11),!i.showUnits&&t.add(12),!i.showValues&&t.add(13),!i.showConstants&&t.add(14),!i.showEnums&&t.add(15),!i.showEnumMembers&&t.add(16),!i.showKeywords&&t.add(17),!i.showWords&&t.add(18),!i.showColors&&t.add(19),!i.showFiles&&t.add(20),!i.showReferences&&t.add(21),!i.showColors&&t.add(22),!i.showFolders&&t.add(23),!i.showTypeParameters&&t.add(24),!i.showSnippets&&t.add(27),!i.showUsers&&t.add(25),!i.showIssues&&t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(!!this._context){if(e.lineNumber!==this._context.lineNumber||(0,l.V8)(e.leadingLineContent)!==(0,l.V8)(this._context.leadingLineContent)){this.cancel();return}if(e.column<this._context.column){e.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0):this.cancel();return}if(this._completionModel){if(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){let e=new Set(this._languageFeaturesService.completionProvider.all(this._editor.getModel()));for(let t of this._completionModel.allProvider)e.delete(t);let t=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0,e,{items:t,clipboardText:this._completionModel.clipboardText});return}if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&0!==e.leadingWord.word.length){let{incomplete:e}=this._completionModel,t=this._completionModel.adopt(e);this.trigger({auto:2===this._state,shy:!1,noSelect:!1,triggerKind:2},!0,e,{items:t,clipboardText:this._completionModel.clipboardText})}else{let t=this._completionModel.lineContext,i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(y.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn){this.trigger({auto:this._context.auto,shy:!1,noSelect:!1},!0);return}if(this._context.auto){this.cancel();return}if(this._completionModel.lineContext=t,(i=this._completionModel.items.length>0)&&0===e.leadingWord.word.length){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,noSelect:this._context.noSelect,isFrozen:i})}}}}};S=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(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}([_(1,c.p),_(2,g.p),_(3,w.b),_(4,f.VZ),_(5,m.i6),_(6,p.Ui),_(7,v.p)],S)},67367:function(e,t,i){"use strict";i.d(t,{e6:function(){return n.e6},j6:function(){return n.j6}}),i("30567"),i("33969"),i("80066"),i("36588"),i("5914");var n=i("57186")},33969:function(e,t,i){"use strict";let n,o;var r=i("99334"),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,c=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of l(t))!d.call(e,o)&&o!==i&&s(e,o,{get:()=>t[o],enumerable:!(n=a(t,o))||n.enumerable});return e},u={};c(u,n=r,"default"),o&&c(o,n,"default");var h=class{_onDidChange=new u.Emitter;_options;_modeConfiguration;_languageId;constructor(e,t,i){this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},p={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},m=new h("css",g,p),f=new h("scss",g,p),w=new h("less",g,p);function C(){return Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"31122"))}u.languages.css={cssDefaults:m,lessDefaults:w,scssDefaults:f},u.languages.onLanguage("less",()=>{C().then(e=>e.setupMode(w))}),u.languages.onLanguage("scss",()=>{C().then(e=>e.setupMode(f))}),u.languages.onLanguage("css",()=>{C().then(e=>e.setupMode(m))})},33328:function(e,t,i){"use strict";i.d(t,{g:function(){return l}});var n,o,r=i("98153"),s=i("19527"),a=i("80655");let l=class extends s.JT{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=s.JT.None,this.container=e.hasContainer?e.container:null,this.contextView=this._register(new r.Ry(this.container,1)),this.layout(),this._register(e.onDidLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,i){t?(t!==this.container||this.shadowRoot!==i)&&(this.container=t,this.setContainer(t,i?3:2)):this.layoutService.hasContainer&&this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.shadowRoot=i,this.contextView.show(e);let n=(0,s.OF)(()=>{this.currentViewDisposable===n&&this.hideContextView()});return this.currentViewDisposable=n,n}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(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}([(n=0,o=a.F,function(e,t){o(e,t,0)})],l)},60708:function(e,t,i){"use strict";i.d(t,{r:function(){return p}});var n,o,r=i("9737"),s=i("53376"),a=i("85763"),l=i("66569"),d=i("16904"),c=i("19527"),u=i("80204"),h=i("97085"),g=i("39703");let p=class extends c.JT{constructor(e,t,i={},n){var o;super(),this._link=t,this._enabled=!0,this.el=(0,r.R3)(e,(0,r.$)("a.monaco-link",{tabIndex:null!==(o=t.tabIndex)&&void 0!==o?o:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");let c=this._register(new s.Y(this.el,"click")),u=this._register(new s.Y(this.el,"keypress")),h=d.ju.chain(u.event).map(e=>new a.y(e)).filter(e=>3===e.keyCode).event,g=this._register(new s.Y(this.el,l.t.Tap)).event;this._register(l.o.addTarget(this.el));let p=d.ju.any(c.event,h,g);this._register(p(e=>{this.enabled&&(r.zB.stop(e,!0),(null==i?void 0:i.opener)?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=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 a=e.length-1;a>=0;a--)(o=e[a])&&(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}([(n=3,o=u.v4,function(e,t){o(e,t,3)})],p),(0,g.Ic)((e,t)=>{let i=e.getColor(h.url);i&&t.addRule(`.monaco-link { color: ${i}; }`);let n=e.getColor(h.sgC);n&&t.addRule(`.monaco-link:hover { color: ${n}; }`)})},79895:function(e,t,i){"use strict";i.d(t,{eJ:function(){return r},jG:function(){return o.jG}});var n=i("6301"),o=i("43130");let r=(0,n.yh)("quickInputService")}}]);
|