@rsdoctor/client 0.2.4 → 0.2.5

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.
Files changed (91) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/resource/css/505.b09c71b1.css +1 -0
  3. package/dist/resource/js/305.c739e0ad.js +1 -0
  4. package/dist/resource/js/505.b0671115.js +460 -0
  5. package/dist/resource/js/685.cfc0d5a4.js +1 -0
  6. package/dist/resource/js/async/239.bd71915c.js +1 -0
  7. package/dist/resource/js/async/432.627e7428.js +1 -0
  8. package/dist/resource/js/async/544.a3528983.js +1 -0
  9. package/dist/resource/js/async/811.1fbe2090.js +1 -0
  10. package/dist/resource/js/async/849.38fafa21.js +1 -0
  11. package/dist/resource/js/index.a7b9ce38.js +156 -0
  12. package/dist/resource/js/monaco-0.c3af1bd3.js +2 -0
  13. package/dist/resource/js/monaco-1.7b4f9f8c.js +17 -0
  14. package/dist/resource/js/monaco-10.3718b786.js +25 -0
  15. package/dist/resource/js/monaco-11.2ffe6be1.js +369 -0
  16. package/dist/resource/js/monaco-12.d0039040.js +1 -0
  17. package/dist/resource/js/monaco-13.c39a81c1.js +70 -0
  18. package/dist/resource/js/monaco-14.ab3cfa3a.js +31 -0
  19. package/dist/resource/js/monaco-2.deeec9f1.js +4 -0
  20. package/dist/resource/js/monaco-3.09ebbb5b.js +31 -0
  21. package/dist/resource/js/monaco-4.12cd3f32.js +1 -0
  22. package/dist/resource/js/monaco-5.59c23100.js +2 -0
  23. package/dist/resource/js/monaco-6.e7bfde98.js +1 -0
  24. package/dist/resource/js/monaco-7.020d48ca.js +38 -0
  25. package/dist/resource/js/monaco-8.fa1080e5.js +7 -0
  26. package/dist/resource/js/monaco-9.34b51cf9.js +4 -0
  27. package/package.json +7 -7
  28. package/dist/resource/css/117.75ade4fc.css +0 -1
  29. package/dist/resource/css/monaco-0.eadd16b0.css +0 -1
  30. package/dist/resource/css/monaco-1.535483b8.css +0 -1
  31. package/dist/resource/css/monaco-10.19b5ab97.css +0 -1
  32. package/dist/resource/css/monaco-11.e09f4a76.css +0 -1
  33. package/dist/resource/css/monaco-12.9ae50643.css +0 -1
  34. package/dist/resource/css/monaco-13.f69f0e8c.css +0 -1
  35. package/dist/resource/css/monaco-14.0a887a2d.css +0 -1
  36. package/dist/resource/css/monaco-2.3f0ef564.css +0 -1
  37. package/dist/resource/css/monaco-3.681f0305.css +0 -1
  38. package/dist/resource/css/monaco-4.37d5626c.css +0 -1
  39. package/dist/resource/css/monaco-5.bc87f9b2.css +0 -1
  40. package/dist/resource/css/monaco-6.3f11493c.css +0 -1
  41. package/dist/resource/css/monaco-7.25aae788.css +0 -1
  42. package/dist/resource/css/monaco-8.86c79c6e.css +0 -1
  43. package/dist/resource/css/monaco-9.b782cd98.css +0 -1
  44. package/dist/resource/js/117.510490e1.js +0 -461
  45. package/dist/resource/js/117.510490e1.js.LICENSE.txt +0 -16654
  46. package/dist/resource/js/305.d594f1d5.js +0 -1
  47. package/dist/resource/js/685.0e8f89c3.js +0 -2
  48. package/dist/resource/js/685.0e8f89c3.js.LICENSE.txt +0 -12
  49. package/dist/resource/js/async/239.737ce11d.js +0 -2
  50. package/dist/resource/js/async/239.737ce11d.js.LICENSE.txt +0 -1
  51. package/dist/resource/js/async/432.6eb18a99.js +0 -2
  52. package/dist/resource/js/async/432.6eb18a99.js.LICENSE.txt +0 -13
  53. package/dist/resource/js/async/544.873dca4e.js +0 -2
  54. package/dist/resource/js/async/544.873dca4e.js.LICENSE.txt +0 -9
  55. package/dist/resource/js/async/811.63649e86.js +0 -2
  56. package/dist/resource/js/async/811.63649e86.js.LICENSE.txt +0 -55
  57. package/dist/resource/js/async/849.1d9c8131.js +0 -1
  58. package/dist/resource/js/index.93b99658.js +0 -157
  59. package/dist/resource/js/index.93b99658.js.LICENSE.txt +0 -1995
  60. package/dist/resource/js/monaco-0.1a91b04d.js +0 -23
  61. package/dist/resource/js/monaco-0.1a91b04d.js.LICENSE.txt +0 -453
  62. package/dist/resource/js/monaco-1.28969d00.js +0 -3
  63. package/dist/resource/js/monaco-1.28969d00.js.LICENSE.txt +0 -420
  64. package/dist/resource/js/monaco-10.3d270acb.js +0 -5
  65. package/dist/resource/js/monaco-10.3d270acb.js.LICENSE.txt +0 -684
  66. package/dist/resource/js/monaco-11.e35d7677.js +0 -71
  67. package/dist/resource/js/monaco-11.e35d7677.js.LICENSE.txt +0 -800
  68. package/dist/resource/js/monaco-12.841db992.js +0 -2
  69. package/dist/resource/js/monaco-12.841db992.js.LICENSE.txt +0 -539
  70. package/dist/resource/js/monaco-13.cc63a6b1.js +0 -2
  71. package/dist/resource/js/monaco-13.cc63a6b1.js.LICENSE.txt +0 -542
  72. package/dist/resource/js/monaco-14.16179ee4.js +0 -29
  73. package/dist/resource/js/monaco-14.16179ee4.js.LICENSE.txt +0 -531
  74. package/dist/resource/js/monaco-2.c55ad17a.js +0 -368
  75. package/dist/resource/js/monaco-2.c55ad17a.js.LICENSE.txt +0 -668
  76. package/dist/resource/js/monaco-3.ee63c788.js +0 -25
  77. package/dist/resource/js/monaco-3.ee63c788.js.LICENSE.txt +0 -603
  78. package/dist/resource/js/monaco-4.73c5efca.js +0 -26
  79. package/dist/resource/js/monaco-4.73c5efca.js.LICENSE.txt +0 -668
  80. package/dist/resource/js/monaco-5.10e27961.js +0 -2
  81. package/dist/resource/js/monaco-5.10e27961.js.LICENSE.txt +0 -523
  82. package/dist/resource/js/monaco-6.54504449.js +0 -22
  83. package/dist/resource/js/monaco-6.54504449.js.LICENSE.txt +0 -533
  84. package/dist/resource/js/monaco-7.28555798.js +0 -32
  85. package/dist/resource/js/monaco-7.28555798.js.LICENSE.txt +0 -993
  86. package/dist/resource/js/monaco-8.38bbec6f.js +0 -6
  87. package/dist/resource/js/monaco-8.38bbec6f.js.LICENSE.txt +0 -649
  88. package/dist/resource/js/monaco-9.0e0e4c2a.js +0 -2
  89. package/dist/resource/js/monaco-9.0e0e4c2a.js.LICENSE.txt +0 -633
  90. /package/dist/resource/css/{index.fb881e51.css → index.be7fc0b3.css} +0 -0
  91. /package/dist/resource/font/{codicon.f866ab84.ttf → codicon.7fe16dbd.ttf} +0 -0
@@ -1,32 +0,0 @@
1
- /*! For license information please see monaco-7.28555798.js.LICENSE.txt */
2
- (self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["86"],{85763:function(e,t,i){"use strict";i.r(t),i.d(t,{StandardKeyboardEvent:function(){return c}});var r=i("259527"),n=i("788980"),o=i("210109"),s=i("207875");let a=s.isMacintosh?256:2048,l=s.isMacintosh?2048:256;class c{constructor(e){this._standardKeyboardEventBrand=!0;this.browserEvent=e,this.target=e.target,this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,this.keyCode=function(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return n.KeyCodeUtils.fromString(t)}let t=e.keyCode;if(3===t)return 7;if(r.isFirefox){if(59===t)return 80;if(107===t)return 81;else if(109===t)return 83;else if(s.isMacintosh&&224===t)return 57}else if(r.isWebKit){if(91===t)return 57;if(s.isMacintosh&&93===t)return 57;else if(!s.isMacintosh&&92===t)return 57}return n.EVENT_KEY_CODE_MAP[t]||0}(e),this.code=e.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|=e}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new o.SimpleKeybinding(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},266569:function(e,t,i){"use strict";i.r(t),i.d(t,{EventType:function(){return n},Gesture:function(){return c}});var r,n,o=i("409737"),s=i("603868"),a=i("449714"),l=i("919527");(r=n||(n={})).Tap="-monaco-gesturetap",r.Change="-monaco-gesturechange",r.Start="-monaco-gesturestart",r.End="-monaco-gesturesend",r.Contextmenu="-monaco-gesturecontextmenu";class c extends l.Disposable{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(o.addDisposableListener(document,"touchstart",e=>this.onTouchStart(e),{passive:!1})),this._register(o.addDisposableListener(document,"touchend",e=>this.onTouchEnd(e))),this._register(o.addDisposableListener(document,"touchmove",e=>this.onTouchMove(e),{passive:!1}))}static addTarget(e){return c.isTouchDevice()?(!c.INSTANCE&&(c.INSTANCE=new c),c.INSTANCE.targets.push(e),{dispose:()=>{c.INSTANCE.targets=c.INSTANCE.targets.filter(t=>t!==e)}}):l.Disposable.None}static ignoreTarget(e){return c.isTouchDevice()?(!c.INSTANCE&&(c.INSTANCE=new c),c.INSTANCE.ignoreTargets.push(e),{dispose:()=>{c.INSTANCE.ignoreTargets=c.INSTANCE.ignoreTargets.filter(t=>t!==e)}}):l.Disposable.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,r=e.targetTouches.length;i<r;i++){let r=e.targetTouches.item(i);this.activeTouches[r.identifier]={id:r.identifier,initialTarget:r.target,initialTimeStamp:t,initialPageX:r.pageX,initialPageY:r.pageY,rollingTimestamps:[t],rollingPageX:[r.pageX],rollingPageY:[r.pageY]};let o=this.newGestureEvent(n.Start,r.target);o.pageX=r.pageX,o.pageY=r.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e){let t=Date.now(),i=Object.keys(this.activeTouches).length;for(let r=0,o=e.changedTouches.length;r<o;r++){let o=e.changedTouches.item(r);if(!this.activeTouches.hasOwnProperty(String(o.identifier))){console.warn("move of an UNKNOWN touch",o);continue}let a=this.activeTouches[o.identifier],l=Date.now()-a.initialTimeStamp;if(l<c.HOLD_DELAY&&30>Math.abs(a.initialPageX-s.tail(a.rollingPageX))&&30>Math.abs(a.initialPageY-s.tail(a.rollingPageY))){let e=this.newGestureEvent(n.Tap,a.initialTarget);e.pageX=s.tail(a.rollingPageX),e.pageY=s.tail(a.rollingPageY),this.dispatchEvent(e)}else if(l>=c.HOLD_DELAY&&30>Math.abs(a.initialPageX-s.tail(a.rollingPageX))&&30>Math.abs(a.initialPageY-s.tail(a.rollingPageY))){let e=this.newGestureEvent(n.Contextmenu,a.initialTarget);e.pageX=s.tail(a.rollingPageX),e.pageY=s.tail(a.rollingPageY),this.dispatchEvent(e)}else if(1===i){let e=s.tail(a.rollingPageX),i=s.tail(a.rollingPageY),r=s.tail(a.rollingTimestamps)-a.rollingTimestamps[0],n=e-a.rollingPageX[0],o=i-a.rollingPageY[0],l=this.targets.filter(e=>a.initialTarget instanceof Node&&e.contains(a.initialTarget));this.inertia(l,t,Math.abs(n)/r,n>0?1:-1,e,Math.abs(o)/r,o>0?1:-1,i)}this.dispatchEvent(this.newGestureEvent(n.End,a.initialTarget)),delete this.activeTouches[o.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===n.Tap){let t=new Date().getTime(),i=0;i=t-this._lastSetTapCountTime>c.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else(e.type===n.Change||e.type===n.Contextmenu)&&(this._lastSetTapCountTime=0);for(let 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,r,s,a,l,d){this.handle=o.scheduleAtNextAnimationFrame(()=>{let o=Date.now(),u=o-t,h=0,g=0,p=!0;i+=c.SCROLL_FRICTION*u,a+=c.SCROLL_FRICTION*u,i>0&&(p=!1,h=r*i*u),a>0&&(p=!1,g=l*a*u);let m=this.newGestureEvent(n.Change);m.translationX=h,m.translationY=g,e.forEach(e=>e.dispatchEvent(m)),!p&&this.inertia(e,o,i,r,s+h,a,l,d+g)})}onTouchMove(e){let t=Date.now();for(let i=0,r=e.changedTouches.length;i<r;i++){let r=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(r.identifier))){console.warn("end of an UNKNOWN touch",r);continue}let o=this.activeTouches[r.identifier],a=this.newGestureEvent(n.Change,o.initialTarget);a.translationX=r.pageX-s.tail(o.rollingPageX),a.translationY=r.pageY-s.tail(o.rollingPageY),a.pageX=r.pageX,a.pageY=r.pageY,this.dispatchEvent(a),o.rollingPageX.length>3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(r.pageX),o.rollingPageY.push(r.pageY),o.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}c.SCROLL_FRICTION=-.005,c.HOLD_DELAY=700,c.CLEAR_TAP_COUNT_TIME=400,!function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);o>3&&s&&Object.defineProperty(t,i,s)}([a.memoize],c,"isTouchDevice",null)},362880:function(e,t,i){"use strict";i.r(t),i.d(t,{ActionBar:function(){return d}});var r=i("409737"),n=i("85763"),o=i("268587"),s=i("431453"),a=i("916904"),l=i("919527"),c=i("744138");i("746683");class d extends l.Disposable{constructor(e,t={}){var i,l,c,d,u,h;let g,p;switch(super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new a.Emitter),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new a.Emitter({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new a.Emitter),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new a.Emitter),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(l=this.options.orientation)&&void 0!==l?l:0,this._triggerKeys={keyDown:null!==(d=null===(c=this.options.triggerKeys)||void 0===c?void 0:c.keyDown)&&void 0!==d&&d,keys:null!==(h=null===(u=this.options.triggerKeys)||void 0===u?void 0:u.keys)&&void 0!==h?h:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new s.ActionRunner,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(e=>this._onDidRun.fire(e))),this._register(this._actionRunner.onBeforeRun(e=>this._onBeforeRun.fire(e))),this._actionIds=[],this.viewItems=[],this.viewItemDisposables=new Map,this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&this.domNode.classList.add("animated"),this._orientation){case 0:g=[15],p=[17];break;case 1:g=[16],p=[18],this.domNode.className+=" vertical"}this._register(r.addDisposableListener(this.domNode,r.EventType.KEY_DOWN,e=>{let t=new n.StandardKeyboardEvent(e),i=!0,r="number"==typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;g&&(t.equals(g[0])||t.equals(g[1]))?i=this.focusPrevious():p&&(t.equals(p[0])||t.equals(p[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&r instanceof o.BaseActionViewItem&&r.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())})),this._register(r.addDisposableListener(this.domNode,r.EventType.KEY_UP,e=>{let t=new n.StandardKeyboardEvent(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(r.trackFocus(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(r.getActiveElement()===this.domNode||!r.isAncestor(r.getActiveElement(),this.domNode))&&(this._onDidBlur.fire(),this.focusedItem=void 0,this.previouslyFocusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=2?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){let e=this.viewItems.find(e=>e instanceof o.BaseActionViewItem&&e.isEnabled());e instanceof o.BaseActionViewItem&&e.setFocusable(!0)}else this.viewItems.forEach(e=>{e instanceof o.BaseActionViewItem&&e.setFocusable(!1)})}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(i=>{t=t||e.equals(i)}),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){let t=this.actionsList.children[e];if(r.isAncestor(r.getActiveElement(),t)){this.focusedItem=e;break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach(t=>t.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){let i=Array.isArray(e)?e:[e],n=c.isNumber(t.index)?t.index:null;i.forEach(e=>{let i;let s=document.createElement("li");s.className="action-item",s.setAttribute("role","presentation"),this.options.actionViewItemProvider&&(i=this.options.actionViewItemProvider(e)),!i&&(i=new o.ActionViewItem(this.context,e,Object.assign({hoverDelegate:this.options.hoverDelegate},t))),!this.options.allowContextMenu&&this.viewItemDisposables.set(i,r.addDisposableListener(s,r.EventType.CONTEXT_MENU,e=>{r.EventHelper.stop(e,!0)})),i.actionRunner=this._actionRunner,i.setActionContext(this.context),i.render(s),this.focusable&&i instanceof o.BaseActionViewItem&&0===this.viewItems.length&&i.setFocusable(!0),null===n||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(s),this.viewItems.push(i),this._actionIds.push(e.id)):(this.actionsList.insertBefore(s,this.actionsList.children[n]),this.viewItems.splice(n,0,i),this._actionIds.splice(n,0,e.id),n++)}),"number"==typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){(0,l.dispose)(this.viewItems),this.viewItemDisposables.forEach(e=>e.dispose()),this.viewItemDisposables.clear(),this.viewItems=[],this._actionIds=[],r.clearNode(this.actionsList),this.refreshRole()}length(){return this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"==typeof e?t=e:"boolean"==typeof e&&(i=e),i&&void 0===this.focusedItem){let e=this.viewItems.findIndex(e=>e.isEnabled());this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){let t;if(void 0===this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;let i=this.focusedItem;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=i,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!t.isEnabled()||t.action.id===s.Separator.ID));return this.updateFocus(),!0}focusPrevious(e){let t;if(void 0===this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;let i=this.focusedItem;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=i,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==i&&(this.options.focusOnlyEnabledItems&&!t.isEnabled()||t.action.id===s.Separator.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var r;void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(r=this.viewItems[this.previouslyFocusedItem])||void 0===r||r.blur());let n=void 0!==this.focusedItem&&this.viewItems[this.focusedItem];if(n){let r=!0;!c.isFunction(n.focus)&&(r=!1),this.options.focusOnlyEnabledItems&&c.isFunction(n.isEnabled)&&!n.isEnabled()&&(r=!1),n.action.id===s.Separator.ID&&(r=!1),r?(i||this.previouslyFocusedItem!==this.focusedItem)&&(n.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0)}}doTrigger(e){if(void 0===this.focusedItem)return;let t=this.viewItems[this.focusedItem];if(t instanceof o.BaseActionViewItem){let i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}run(e,t){var i,r,n,o;return i=this,r=void 0,n=void 0,o=function*(){yield this._actionRunner.run(e,t)},new(n||(n=Promise))(function(e,t){function s(e){try{l(o.next(e))}catch(e){t(e)}}function a(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof n?i:new n(function(e){e(i)})).then(s,a)}l((o=o.apply(i,r||[])).next())})}dispose(){(0,l.dispose)(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}},942072:function(e,t,i){"use strict";i.r(t),i.d(t,{Button:function(){return h}});var r=i("409737"),n=i("85763"),o=i("266569"),s=i("572740"),a=i("835271"),l=i("916904"),c=i("919527"),d=i("500777");i("519876");let u={buttonBackground:a.Color.fromHex("#0E639C"),buttonHoverBackground:a.Color.fromHex("#006BB3"),buttonSeparator:a.Color.white,buttonForeground:a.Color.white};class h extends c.Disposable{constructor(e,t){super(),this._onDidClick=this._register(new l.Emitter),this.options=t||Object.create(null),(0,d.mixin)(this.options,u,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),e.appendChild(this._element),this._register(o.Gesture.addTarget(this._element)),[r.EventType.CLICK,o.EventType.Tap].forEach(e=>{this._register((0,r.addDisposableListener)(this._element,e,e=>{if(!this.enabled){r.EventHelper.stop(e);return}this._onDidClick.fire(e)}))}),this._register((0,r.addDisposableListener)(this._element,r.EventType.KEY_DOWN,e=>{let t=new n.StandardKeyboardEvent(e),i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._element.blur(),i=!0),i&&r.EventHelper.stop(t,!0)})),this._register((0,r.addDisposableListener)(this._element,r.EventType.MOUSE_OVER,e=>{!this._element.classList.contains("disabled")&&this.setHoverBackground()})),this._register((0,r.addDisposableListener)(this._element,r.EventType.MOUSE_OUT,e=>{this.applyStyles()})),this.focusTracker=this._register((0,r.trackFocus)(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.setHoverBackground()})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.applyStyles()})),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;(e=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null)&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");let i=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=i?"1px":"",this._element.style.borderStyle=i?"solid":"",this._element.style.borderColor=i}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?(0,r.reset)(this._element,...(0,s.renderLabelWithIcons)(e)):this._element.textContent=e,"string"==typeof this.options.title?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}},998200:function(e,t,i){"use strict";i.r(t),i.d(t,{DropdownMenuActionViewItem:function(){return a}});var r=i("409737"),n=i("268587"),o=i("715209"),s=i("916904");i("817846");class a extends n.BaseActionViewItem{constructor(e,t,i,r=Object.create(null)){super(null,e,r),this.actionItem=null,this._onDidChangeVisibility=this._register(new s.Emitter),this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=r,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,r.append)(e,(0,r.$)("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 o.DropdownMenu(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)}}},299437:function(e,t,i){"use strict";i.r(t),i.d(t,{setupCustomHover:function(){return p},setupNativeHover:function(){return h}});var r=i("409737"),n=i("467518"),o=i("500862"),s=i("670691"),a=i("947578"),l=i("919527"),c=i("744138"),d=i("708339"),u=function(e,t,i,r){return new(i||(i=Promise))(function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};function h(e,t){(0,c.isString)(t)?e.title=(0,a.stripIcons)(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 r;return u(this,void 0,void 0,function*(){let n;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),!this.isDisposed){if(void 0===e||(0,c.isString)(e)||e instanceof HTMLElement)n=e;else if((0,c.isFunction)(e.markdown)){!this._hoverWidget&&this.show((0,d.localize)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new o.CancellationTokenSource;let i=this._cancellationTokenSource.token;if(void 0===(n=yield e.markdown(i))&&(n=e.markdownNotSupportedFallback),this.isDisposed||i.isCancellationRequested)return}else n=null!==(r=e.markdown)&&void 0!==r?r:e.markdownNotSupportedFallback;this.show(n,t,i)}})}show(e,t,i){let r=this._hoverWidget;if(this.hasContent(e)){let n=Object.assign({content:e,target:this.target,showPointer:"element"===this.hoverDelegate.placement,hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!r},i);this._hoverWidget=this.hoverDelegate.showHover(n,t)}null==r||r.dispose()}hasContent(e){return!!e&&(!(0,s.isMarkdownString)(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,o){let s,a;let c=(t,i)=>{var r;t&&(null==a||a.dispose(),a=void 0),i&&(null==s||s.dispose(),s=void 0),null===(r=e.onDidHideHover)||void 0===r||r.call(e)},d=(r,s,l)=>new n.TimeoutTimer(()=>u(this,void 0,void 0,function*(){(!a||a.isDisposed)&&(a=new g(e,l||t,r>0),yield a.update(i,s,o))}),r),h=r.addDisposableListener(t,r.EventType.MOUSE_OVER,()=>{if(s)return;let i=new l.DisposableStore;i.add(r.addDisposableListener(t,r.EventType.MOUSE_LEAVE,e=>c(!1,e.fromElement===t),!0));i.add(r.addDisposableListener(t,r.EventType.MOUSE_DOWN,()=>c(!0,!0),!0));let n={targetElements:[t],dispose:()=>{}};(void 0===e.placement||"mouse"===e.placement)&&i.add(r.addDisposableListener(t,r.EventType.MOUSE_MOVE,e=>{n.x=e.x+10,e.target instanceof HTMLElement&&e.target.classList.contains("action-label")&&c(!0,!0)},!0)),i.add(d(e.delay,!1,n)),s=i},!0);return{show:e=>{c(!1,!0),d(0,e)},hide:()=>{c(!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(),c(!0,!0)}}}},413876:function(e,t,i){"use strict";i.r(t),i.d(t,{ProgressBar:function(){return p}});var r=i("409737"),n=i("467518"),o=i("835271"),s=i("919527"),a=i("500777");i("40798");let l="done",c="active",d="infinite",u="infinite-long-running",h="discrete",g={progressBarBackground:o.Color.fromHex("#0E70C0")};class p extends s.Disposable{constructor(e,t){super(),this.options=t||Object.create(null),(0,a.mixin)(this.options,g,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.showDelayedScheduler=this._register(new n.RunOnceScheduler(()=>(0,r.show)(this.element),0)),this.longRunningScheduler=this._register(new n.RunOnceScheduler(()=>this.infiniteLongRunning(),p.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e)}create(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(c,d,u,h),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(l),this.element.classList.contains(d)?this.bit.style.opacity="0":this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off(),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(h,l,u),this.element.classList.add(c,d),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(u)}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){let e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}p.LONG_RUNNING_INFINITE_THRESHOLD=1e4},501578:function(e,t,i){"use strict";i.r(t),i.d(t,{AbstractScrollbar:function(){return d}});var r=i("409737"),n=i("670758"),o=i("973857"),s=i("540472"),a=i("752877"),l=i("795832"),c=i("207875");class d extends l.Widget{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.ScrollbarVisibilityController(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new o.GlobalPointerMoveMonitor),this._shouldRender=!0,this.domNode=(0,n.createFastDomNode)(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(r.addDisposableListener(this.domNode.domNode,r.EventType.POINTER_DOWN,e=>this._domNodePointerDown(e)))}_createArrow(e){let t=this._register(new s.ScrollbarArrow(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,o){this.slider=(0,n.createFastDomNode)(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 o&&this.slider.setHeight(o),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(r.addDisposableListener(this.slider.domNode,r.EventType.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(),r=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),n=this._sliderPointerPosition(e);i<=n&&n<=r?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 n=r.getDomNodePagePosition(this.domNode.domNode);t=e.pageX-n.left,i=e.pageY-n.top}let n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),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),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,e=>{let n=this._sliderOrthogonalPointerPosition(e);if(c.isWindows&&Math.abs(n-i)>140){this._setDesiredScrollPositionNow(r.getScrollPosition());return}let o=this._sliderPointerPosition(e);this._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(o-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()}}},686774:function(e,t,i){"use strict";i.r(t),i.d(t,{ScrollbarState:function(){return r}});class r{constructor(e,t,i,r,n,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=r,this._scrollSize=n,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new r(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){let t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){let t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){let t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,r,n){let o=Math.max(0,i-e),s=Math.max(0,o-2*t),a=r>0&&r>i;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};let l=Math.round(Math.max(20,Math.floor(i*s/r))),c=(s-l)/(r-i);return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(n*c)}}_refreshComputedValues(){let e=r._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){return this._computedIsNeeded?Math.round((e-this._arrowSize-this._computedSliderSize/2)/this._computedSliderRatio):0}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;let t=e-this._arrowSize,i=this._scrollPosition;return t<this._computedSliderPosition?i-=this._visibleSize:i+=this._visibleSize,i}getDesiredScrollPositionFromDelta(e){return this._computedIsNeeded?Math.round((this._computedSliderPosition+e)/this._computedSliderRatio):0}}},769552:function(e,t,i){"use strict";i.r(t),i.d(t,{Table:function(){return d}});var r=i("409737"),n=i("849482"),o=i("852897"),s=i("916904"),a=i("919527");i("671651");class l{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=l.TemplateId,this.renderedTemplates=new Set;let r=new Map(t.map(e=>[e.templateId,e]));for(let t of(this.renderers=[],e)){let e=r.get(t.templateId);if(!e)throw Error(`Table cell renderer for template id ${t.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){let t=(0,r.append)(e,(0,r.$)(".monaco-table-tr")),i=[],n=[];for(let e=0;e<this.columns.length;e++){let o=this.renderers[e],s=(0,r.append)(t,(0,r.$)(".monaco-table-td",{"data-col-index":e}));s.style.width=`${this.getColumnSize(e)}px`,i.push(s),n.push(o.renderTemplate(s))}let o={container:e,cellContainers:i,cellTemplateData:n};return this.renderedTemplates.add(o),o}renderElement(e,t,i,r){for(let n=0;n<this.columns.length;n++){let o=this.columns[n].project(e);this.renderers[n].renderElement(o,t,i.cellTemplateData[n],r)}}disposeElement(e,t,i,r){for(let n=0;n<this.columns.length;n++){let o=this.renderers[n];if(o.disposeElement){let s=this.columns[n].project(e);o.disposeElement(s,t,i.cellTemplateData[n],r)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++)this.renderers[t].disposeTemplate(e.cellTemplateData[t]);(0,r.clearNode)(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(let{cellContainers:i}of this.renderedTemplates)i[e].style.width=`${t}px`}}l.TemplateId="row";class c{constructor(e,t){this.column=e,this.index=t,this._onDidLayout=new s.Emitter,this.onDidLayout=this._onDidLayout.event,this.element=(0,r.$)(".monaco-table-th",{"data-col-index":t,title:e.tooltip},e.label)}get minimumSize(){var e;return null!==(e=this.column.minimumWidth)&&void 0!==e?e:120}get maximumSize(){var e;return null!==(e=this.column.maximumWidth)&&void 0!==e?e:Number.POSITIVE_INFINITY}get onDidChange(){var e;return null!==(e=this.column.onDidChangeWidthConstraints)&&void 0!==e?e:s.Event.None}layout(e){this._onDidLayout.fire([this.index,e])}}class d{constructor(e,t,i,u,h,g){var p;this.virtualDelegate=i,this.domId=`table_id_${++d.InstanceCount}`,this.disposables=new a.DisposableStore,this.cachedWidth=0,this.cachedHeight=0,this.domNode=(0,r.append)(t,(0,r.$)(`.monaco-table.${this.domId}`));let m=u.map((e,t)=>new c(e,t)),f={size:m.reduce((e,t)=>e+t.column.weight,0),views:m.map(e=>({size:e.column.weight,view:e}))};this.splitview=this.disposables.add(new o.SplitView(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:f})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;let C=new l(u,h,e=>this.splitview.getViewSize(e));this.list=this.disposables.add(new n.List(e,this.domNode,(p=i,{getHeight:e=>p.getHeight(e),getTemplateId:()=>l.TemplateId}),[C],g)),s.Event.any(...m.map(e=>e.onDidLayout))(([e,t])=>C.layoutColumn(e,t),null,this.disposables),this.splitview.onDidSashReset(e=>{let t=u.reduce((e,t)=>e+t.weight,0),i=u[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)},null,this.disposables),this.styleElement=(0,r.createStyleSheet)(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){let t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {
3
- top: ${this.virtualDelegate.headerRowHeight+1}px;
4
- height: calc(100% - ${this.virtualDelegate.headerRowHeight}px);
5
- }`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}d.InstanceCount=0},728356:function(e,t,i){"use strict";i.r(t),i.d(t,{CompressibleObjectTreeModel:function(){return p}});var r=i("203692"),n=i("700507"),o=i("916904"),s=i("780189");function a(e){let t=[e.element];return{element:{elements:t,incompressible:e.incompressible||!1},children:s.Iterable.map(s.Iterable.from(e.children),a),collapsible:e.collapsible,collapsed:e.collapsed}}function l(e){let t,i;let r=[e.element],n=e.incompressible||!1;for(;[i,t]=s.Iterable.consume(s.Iterable.from(e.children),2),1===i.length&&!i[0].incompressible;){;e=i[0],r.push(e.element)}return{element:{elements:r,incompressible:n},children:s.Iterable.map(s.Iterable.concat(i,t),l),collapsible:e.collapsible,collapsed:e.collapsed}}function c(e){return function e(t,i=0){let r;return(r=i<t.element.elements.length-1?[e(t,i+1)]:s.Iterable.map(s.Iterable.from(t.children),t=>e(t,0)),0===i&&t.element.incompressible)?{element:t.element.elements[i],children:r,incompressible:!0,collapsible:t.collapsible,collapsed:t.collapsed}:{element:t.element.elements[i],children:r,collapsible:t.collapsible,collapsed:t.collapsed}}(e,0)}let d=e=>({getId:t=>t.elements.map(t=>e.getId(t).toString()).join("\0")});class u{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new r.ObjectTreeModel(e,t,i),this.enabled=void 0===i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=s.Iterable.empty(),i){let r=i.diffIdentityProvider&&d(i.diffIdentityProvider);if(null===e){let e=s.Iterable.map(t,this.enabled?l:a);this._setChildren(null,e,{diffIdentityProvider:r,diffDepth:1/0});return}let n=this.nodes.get(e);if(!n)throw Error("Unknown compressed tree node");let o=this.model.getNode(n),u=this.model.getParentNodeLocation(n),h=this.model.getNode(u),g=function e(t,i,r){return t.element===i?Object.assign(Object.assign({},t),{children:r}):Object.assign(Object.assign({},t),{children:s.Iterable.map(s.Iterable.from(t.children),t=>e(t,i,r))})}(c(o),e,t),p=(this.enabled?l:a)(g),m=h.children.map(e=>e===o?p:e);this._setChildren(h.element,m,{diffIdentityProvider:r,diffDepth:o.depth-h.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;let t=this.model.getNode().children,i=s.Iterable.map(t,c),r=s.Iterable.map(i,e?l:a);this._setChildren(null,r,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){let r=new Set;this.model.setChildren(e,t,Object.assign(Object.assign({},i),{onDidCreateNode:e=>{for(let t of e.element.elements)r.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(let t of e.element.elements)!r.has(t)&&this.nodes.delete(t)}}))}has(e){return this.nodes.has(e)}getListIndex(e){let t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){let t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(void 0===e)return this.model.getNode();let t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){let t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){let t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){let t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){let t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){let i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){let t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){let r=this.getCompressedNode(e);return this.model.setCollapsed(r,t,i)}expandTo(e){let t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){let t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;let t=this.nodes.get(e);if(!t)throw new n.TreeError(this.user,`Tree element not found: ${e}`);return t}}let h=e=>e[e.length-1];class g{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new g(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class p{constructor(e,t,i={}){var r,o,s,a;this.rootRef=null,this.elementMapper=i.elementMapper||h;let l=e=>this.elementMapper(e.elements);this.nodeMapper=new n.WeakMapper(e=>new g(l,e)),this.model=new u(e,(r=this.nodeMapper,o=t,{splice(e,t,i){o.splice(e,t,i.map(e=>r.map(e)))},updateElementHeight(e,t){o.updateElementHeight(e,t)}}),(s=l,Object.assign(Object.assign({},a=i),{identityProvider:a.identityProvider&&{getId:e=>a.identityProvider.getId(s(e))},sorter:a.sorter&&{compare:(e,t)=>a.sorter.compare(e.elements[0],t.elements[0])},filter:a.filter&&{filter:(e,t)=>a.filter.filter(s(e),t)}})))}get onDidSplice(){return o.Event.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(e=>this.nodeMapper.map(e)),deletedNodes:t.map(e=>this.nodeMapper.map(e))}))}get onDidChangeCollapseState(){return o.Event.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return o.Event.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=s.Iterable.empty(),i={}){this.model.setChildren(e,t,i)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){let t=this.model.getFirstElementChild(e);return null==t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}},795832:function(e,t,i){"use strict";i.r(t),i.d(t,{Widget:function(){return l}});var r=i("409737"),n=i("85763"),o=i("919219"),s=i("266569"),a=i("919527");class l extends a.Disposable{onclick(e,t){this._register(r.addDisposableListener(e,r.EventType.CLICK,e=>t(new o.StandardMouseEvent(e))))}onmousedown(e,t){this._register(r.addDisposableListener(e,r.EventType.MOUSE_DOWN,e=>t(new o.StandardMouseEvent(e))))}onmouseover(e,t){this._register(r.addDisposableListener(e,r.EventType.MOUSE_OVER,e=>t(new o.StandardMouseEvent(e))))}onmouseleave(e,t){this._register(r.addDisposableListener(e,r.EventType.MOUSE_LEAVE,e=>t(new o.StandardMouseEvent(e))))}onkeydown(e,t){this._register(r.addDisposableListener(e,r.EventType.KEY_DOWN,e=>t(new n.StandardKeyboardEvent(e))))}onkeyup(e,t){this._register(r.addDisposableListener(e,r.EventType.KEY_UP,e=>t(new n.StandardKeyboardEvent(e))))}oninput(e,t){this._register(r.addDisposableListener(e,r.EventType.INPUT,t))}onblur(e,t){this._register(r.addDisposableListener(e,r.EventType.BLUR,t))}onfocus(e,t){this._register(r.addDisposableListener(e,r.EventType.FOCUS,t))}ignoreGesture(e){s.Gesture.ignoreTarget(e)}}},603868:function(e,t,i){"use strict";var r,n;function o(e,t=0){return e[e.length-(1+t)]}function s(e){if(0===e.length)throw Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function a(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,n=e.length;r<n;r++)if(!i(e[r],t[r]))return!1;return!0}function l(e,t){let i=e.length-1;t<i&&(e[t]=e[i]),e.pop()}function c(e,t,i){return function(e,t){let i=0,r=e-1;for(;i<=r;){let e=(i+r)/2|0,n=t(e);if(n<0)i=e+1;else{if(!(n>0))return e;r=e-1}}return-(i+1)}(e.length,r=>i(e[r],t))}i.r(t),i.d(t,{ArrayQueue:function(){return M},arrayInsert:function(){return v},asArray:function(){return k},binarySearch:function(){return c},coalesce:function(){return h},compareBy:function(){return E},distinct:function(){return m},equals:function(){return a},findFirstInSorted:function(){return d},findLast:function(){return f},findLastMaxBy:function(){return I},findMaxBy:function(){return T},findMinBy:function(){return D},firstOrDefault:function(){return C},groupBy:function(){return u},isFalsyOrEmpty:function(){return g},isNonEmptyArray:function(){return p},numberComparator:function(){return L},pushMany:function(){return y},pushToEnd:function(){return S},pushToStart:function(){return _},quickSelect:function(){return function e(t,i,r){if((t|=0)>=i.length)throw TypeError("invalid index");let n=i[Math.floor(i.length*Math.random())],o=[],s=[],a=[];for(let e of i){let t=r(e,n);t<0?o.push(e):t>0?s.push(e):a.push(e)}return t<o.length?e(t,o,r):t<o.length+a.length?a[0]:e(t-(o.length+a.length),s,r)}},range:function(){return b},removeFastWithoutKeepingOrder:function(){return l},splice:function(){return w},tail:function(){return o},tail2:function(){return s}});function d(e,t){let i=0,r=e.length;if(0===r)return 0;for(;i<r;){let n=Math.floor((i+r)/2);t(e[n])?r=n:i=n+1}return i}function u(e,t){let i,r=[];for(let n of e.slice(0).sort(t))i&&0===t(i[0],n)?i.push(n):(i=[n],r.push(i));return r}function h(e){return e.filter(e=>!!e)}function g(e){return!Array.isArray(e)||0===e.length}function p(e){return Array.isArray(e)&&e.length>0}function m(e,t=e=>e){let i=new Set;return e.filter(e=>{let r=t(e);return!i.has(r)&&(i.add(r),!0)})}function f(e,t){let i=function(e,t){for(let i=e.length-1;i>=0;i--)if(t(e[i]))return i;return -1}(e,t);if(-1!==i)return e[i]}function C(e,t){return e.length>0?e[0]:t}function b(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);let r=[];if(i<=t)for(let e=i;e<t;e++)r.push(e);else for(let e=i;e>t;e--)r.push(e);return r}function v(e,t,i){let r=e.slice(0,t),n=e.slice(t);return r.concat(i,n)}function _(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function S(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function y(e,t){for(let i of t)e.push(i)}function k(e){return Array.isArray(e)?e:[e]}function w(e,t,i,r){let n=x(e,t),o=e.splice(n,i);return!function(e,t,i){let r=x(e,t),n=e.length,o=i.length;e.length=n+o;for(let t=n-1;t>=r;t--)e[t+o]=e[t];for(let t=0;t<o;t++)e[t+r]=i[t]}(e,n,r),o}function x(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}function E(e,t){return(i,r)=>t(e(i),e(r))}(n=r||(r={})).isLessThan=function(e){return e<0},n.isGreaterThan=function(e){return e>0},n.isNeitherLessOrGreaterThan=function(e){return 0===e},n.greaterThan=1,n.lessThan=-1,n.neitherLessOrGreaterThan=0;let L=(e,t)=>e-t;function T(e,t){if(0===e.length)return;let i=e[0];for(let r=1;r<e.length;r++){let n=e[r];t(n,i)>0&&(i=n)}return i}function I(e,t){if(0===e.length)return;let i=e[0];for(let r=1;r<e.length;r++){let n=e[r];t(n,i)>=0&&(i=n)}return i}function D(e,t){return T(e,(e,i)=>-t(e,i))}class M{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;let i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}},864774:function(e,t,i){"use strict";i.r(t),i.d(t,{Mimes:function(){return r}});let r=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},868308:function(e,t,i){"use strict";function r(e,t,i){return Math.min(Math.max(e,t),i)}i.r(t),i.d(t,{MovingAverage:function(){return n},SlidingWindowAverage:function(){return o},clamp:function(){return r}});class n{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class o{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=Array(e),this._values.fill(0,0,e)}update(e){let t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n<this._values.length&&(this._n+=1),this._val=this._sum/this._n,this._val}get value(){return this._val}}},500777:function(e,t,i){"use strict";i.r(t),i.d(t,{cloneAndChange:function(){return s},deepClone:function(){return function e(t){if(!t||"object"!=typeof t||t instanceof RegExp)return t;let i=Array.isArray(t)?[]:{};return Object.keys(t).forEach(r=>{t[r]&&"object"==typeof t[r]?i[r]=e(t[r]):i[r]=t[r]}),i}},deepFreeze:function(){return n},equals:function(){return function e(t,i){let r,n;if(t===i)return!0;if(null==t||null==i||typeof t!=typeof i||"object"!=typeof t||Array.isArray(t)!==Array.isArray(i))return!1;if(Array.isArray(t)){if(t.length!==i.length)return!1;for(r=0;r<t.length;r++)if(!e(t[r],i[r]))return!1}else{let o=[];for(n in t)o.push(n);o.sort();let s=[];for(n in i)s.push(n);if(s.sort(),!e(o,s))return!1;for(r=0;r<o.length;r++)if(!e(t[o[r]],i[o[r]]))return!1}return!0}},mixin:function(){return function e(t,i,n=!0){return(0,r.isObject)(t)?((0,r.isObject)(i)&&Object.keys(i).forEach(o=>{o in t?n&&((0,r.isObject)(t[o])&&(0,r.isObject)(i[o])?e(t[o],i[o],n):t[o]=i[o]):t[o]=i[o]}),t):i}}});var r=i("744138");function n(e){if(!e||"object"!=typeof e)return e;let t=[e];for(;t.length>0;){let e=t.shift();for(let i in Object.freeze(e),e)if(o.call(e,i)){let n=e[i];"object"==typeof n&&!Object.isFrozen(n)&&!(0,r.isTypedArray)(n)&&t.push(n)}}return e}let o=Object.prototype.hasOwnProperty;function s(e,t){return function e(t,i,n){if((0,r.isUndefinedOrNull)(t))return t;let s=i(t);if(void 0!==s)return s;if((0,r.isArray)(t)){let r=[];for(let o of t)r.push(e(o,i,n));return r}if((0,r.isObject)(t)){if(n.has(t))throw Error("Cannot clone recursive data-structure");n.add(t);let r={};for(let s in t)o.call(t,s)&&(r[s]=e(t[s],i,n));return n.delete(t),r}return t}(e,t,new Set)}},744138:function(e,t,i){"use strict";function r(e){return Array.isArray(e)}function n(e){return"string"==typeof e}function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){let t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function a(e){return"number"==typeof e&&!isNaN(e)}function l(e){return!!e&&"function"==typeof e[Symbol.iterator]}function c(e){return!0===e||!1===e}function d(e){return void 0===e}function u(e){return!h(e)}function h(e){return d(e)||null===e}function g(e,t){if(!e)throw Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function p(e){if(h(e))throw Error("Assertion Failed: argument is undefined or null");return e}function m(e){return"function"==typeof e}function f(e,t){let i=Math.min(e.length,t.length);for(let r=0;r<i;r++)(function(e,t){if(n(t)){if(typeof e!==t)throw Error(`argument does not match constraint: typeof ${t}`)}else if(m(t)){try{if(e instanceof t)return}catch(e){}if(!h(e)&&e.constructor===t||1===t.length&&!0===t.call(void 0,e))return;throw Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}})(e[r],t[r])}i.r(t),i.d(t,{assertIsDefined:function(){return p},assertNever:function(){return _},assertType:function(){return g},createProxyObject:function(){return b},getAllMethodNames:function(){return C},isArray:function(){return r},isBoolean:function(){return c},isDefined:function(){return u},isFunction:function(){return m},isIterable:function(){return l},isNumber:function(){return a},isObject:function(){return o},isString:function(){return n},isTypedArray:function(){return s},isUndefined:function(){return d},isUndefinedOrNull:function(){return h},validateConstraints:function(){return f},withNullAsUndefined:function(){return v}});function C(e){let t=[];for(let i of function(e){let t=[],i=Object.getPrototypeOf(e);for(;Object.prototype!==i;)t=t.concat(Object.getOwnPropertyNames(i)),i=Object.getPrototypeOf(i);return t}(e))"function"==typeof e[i]&&t.push(i);return t}function b(e,t){let i=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},r={};for(let t of e)r[t]=i(t);return r}function v(e){return null===e?void 0:e}function _(e,t="Unreachable"){throw Error(t)}},957135:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({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,"299629"))})},605693:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return r},language:function(){return n}});var r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:RegExp("^\\s*#region\\b"),end:RegExp("^\\s*#endregion\\b")}}},n={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=><!~?&%|+\-*\/\^\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@[a-zA-Z_]\w*/,"variable.predefined"],[/[a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/###/,"comment","@comment"],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\()(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\=)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\[)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\!)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\&)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\|)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\?)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\{)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\;)(\s*)(@regEx)/,["","","regexp"]],[/}/,{cases:{"$S2==interpolatedstring":{token:"string",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/###/,"comment","@pop"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}},828814:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return r},language:function(){return n}});var r={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},n={defaultToken:"",tokenPostfix:".css",ws:"[ \n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}},424283:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return r},language:function(){return n}});var r={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},n={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","-->","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}}},871038:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return r},language:function(){return n}});var r={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},n={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"]]}}},310452:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"304458"))})},526542:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return r},language:function(){return n}});var r={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},n={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}},174013:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return r},language:function(){return n}});var r={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},n={defaultToken:"",tokenPostfix:".objective-c",keywords:["#import","#include","#define","#else","#endif","#if","#ifdef","#ifndef","#ident","#undef","@class","@defs","@dynamic","@encode","@end","@implementation","@interface","@package","@private","@protected","@property","@protocol","@public","@selector","@synthesize","__declspec","assign","auto","BOOL","break","bycopy","byref","case","char","Class","const","copy","continue","default","do","double","else","enum","extern","FALSE","false","float","for","goto","if","in","int","id","inout","IMP","long","nil","nonatomic","NULL","oneway","out","private","public","protected","readwrite","readonly","register","return","SEL","self","short","signed","sizeof","static","struct","super","switch","typedef","TRUE","true","union","unsigned","volatile","void","while"],decpart:/\d(_?\d)*/,decimal:/0|@decpart/,tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()<>]/,"@brackets"],[/[a-zA-Z@#]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/,"number.hex"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,{cases:{"(\\d)*":"number",$0:"number.float"}}]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}}},286903:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"14673"))})},637150:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return r},language:function(){return n}});var r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:"(",close:")",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],folding:{markers:{start:RegExp("^\\s*(#|//)region\\b"),end:RegExp("^\\s*(#|//)endregion\\b")}}},n={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],doctype:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\?((php)|=)?/,{token:"@rematch",switchTo:"@phpInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],phpInSimpleState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3"}],{include:"phpRoot"}],phpInEmbeddedState:[[/<\?((php)|=)?/,"metatag.php"],[/\?>/,{token:"metatag.php",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"phpRoot"}],phpRoot:[[/[a-zA-Z_]\w*/,{cases:{"@phpKeywords":{token:"keyword.php"},"@phpCompileTimeConstants":{token:"constant.php"},"@default":"identifier.php"}}],[/[$a-zA-Z_]\w*/,{cases:{"@phpPreDefinedVariables":{token:"variable.predefined.php"},"@default":"variable.php"}}],[/[{}]/,"delimiter.bracket.php"],[/[\[\]]/,"delimiter.array.php"],[/[()]/,"delimiter.parenthesis.php"],[/[ \t\r\n]+/],[/(#|\/\/)$/,"comment.php"],[/(#|\/\/)/,"comment.php","@phpLineComment"],[/\/\*/,"comment.php","@phpComment"],[/"/,"string.php","@phpDoubleQuoteString"],[/'/,"string.php","@phpSingleQuoteString"],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,\@]/,"delimiter.php"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.php"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.php"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.php"],[/0[0-7']*[0-7]/,"number.octal.php"],[/0[bB][0-1']*[0-1]/,"number.binary.php"],[/\d[\d']*/,"number.php"],[/\d/,"number.php"]],phpComment:[[/\*\//,"comment.php","@pop"],[/[^*]+/,"comment.php"],[/./,"comment.php"]],phpLineComment:[[/\?>/,{token:"@rematch",next:"@pop"}],[/.$/,"comment.php","@pop"],[/[^?]+$/,"comment.php","@pop"],[/[^?]+/,"comment.php"],[/./,"comment.php"]],phpDoubleQuoteString:[[/[^\\"]+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/"/,"string.php","@pop"]],phpSingleQuoteString:[[/[^\\']+/,"string.php"],[/@escapes/,"string.escape.php"],[/\\./,"string.escape.invalid.php"],[/'/,"string.php","@pop"]]},phpKeywords:["abstract","and","array","as","break","callable","case","catch","cfunction","class","clone","const","continue","declare","default","do","else","elseif","enddeclare","endfor","endforeach","endif","endswitch","endwhile","extends","false","final","for","foreach","function","global","goto","if","implements","interface","instanceof","insteadof","namespace","new","null","object","old_function","or","private","protected","public","resource","static","switch","throw","trait","try","true","use","var","while","xor","die","echo","empty","exit","eval","include","include_once","isset","list","require","require_once","return","print","unset","yield","__construct"],phpCompileTimeConstants:["__CLASS__","__DIR__","__FILE__","__LINE__","__NAMESPACE__","__METHOD__","__FUNCTION__","__TRAIT__"],phpPreDefinedVariables:["$GLOBALS","$_SERVER","$_GET","$_POST","$_FILES","$_REQUEST","$_SESSION","$_ENV","$_COOKIE","$php_errormsg","$HTTP_RAW_POST_DATA","$http_response_header","$argc","$argv"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}},920043:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({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,"202998"))})},632028:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({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,"712232"))})},712232:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return r},language:function(){return n}});var r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:RegExp("^\\s*#region\\b"),end:RegExp("^\\s*#endregion\\b")}}},n={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=><!~?&%|+\-*\/\^;\.,]+/,escapes:/`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_][\w-]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/^:\w*/,"metatag"],[/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,"variable"],[/<#/,"comment","@comment"],[/#.*$/,"comment"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/\@"/,"string",'@herestring."'],[/\@'/,"string","@herestring.'"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\$`]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/`./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/\$[\w]+$/,{cases:{'$S2=="':{token:"variable",next:"@popall"},"@default":{token:"string",next:"@popall"}}}],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}}}]],herestring:[[/^\s*(["'])@/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^\$`]+/,"string"],[/@escapes/,"string.escape"],[/`./,"string.escape.invalid"],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}]],comment:[[/[^#\.]+/,"comment"],[/#>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}},170322:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"338579"))})},774575:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"257429"))})},270972:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"341868"))})},605138:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"386151"))})},895253:function(e,t,i){"use strict";i.r(t),i.d(t,{CoreEditingCommands:function(){return l},CoreNavigationCommands:function(){return a}});var r,n,o,s,a,l,c=i("708339"),d=i("259527"),u=i("744138"),h=i("794555"),g=i("159923"),p=i("583368"),m=i("109108"),f=i("607910"),C=i("452862"),b=i("404309"),v=i("912952"),_=i("457938"),S=i("761045"),y=i("976617"),k=i("549436"),w=i("187528");class x extends g.EditorCommand{runEditorCommand(e,t,i){let r=t._getViewModel();r&&this.runCoreEditorCommand(r,i||{})}}(r=o||(o={})).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:`Property-value pairs that can be passed through this argument:
6
- * 'to': A mandatory direction value.
7
- \`\`\`
8
- 'up', 'down'
9
- \`\`\`
10
- * 'by': Unit to move. Default is computed based on 'to' value.
11
- \`\`\`
12
- 'line', 'wrappedLine', 'page', 'halfPage', 'editor'
13
- \`\`\`
14
- * 'value': Number of units to move. Default is '1'.
15
- * 'revealCursor': If 'true' reveals the cursor if it is outside view port.
16
- `,constraint:function(e){return!!u.isObject(e)&&(!!(u.isString(e.to)&&(u.isUndefined(e.by)||u.isString(e.by))&&(u.isUndefined(e.value)||u.isNumber(e.value))&&(u.isUndefined(e.revealCursor)||u.isBoolean(e.revealCursor)))||!1)},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},r.RawDirection={Up:"up",Down:"down"},r.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor"},r.parse=function(e){let t,i;switch(e.to){case r.RawDirection.Up:t=1;break;case r.RawDirection.Down:t=2;break;default:return null}switch(e.by){case r.RawUnit.Line:i=1;break;case r.RawUnit.WrappedLine:i=2;break;case r.RawUnit.Page:i=3;break;case r.RawUnit.HalfPage:i=4;break;case r.RawUnit.Editor:i=5;break;default:i=2}let n=Math.floor(e.value||1);return{direction:t,unit:i,value:n,revealCursor:!!e.revealCursor,select:!!e.select}},(n=s||(s={})).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:`Property-value pairs that can be passed through this argument:
17
- * 'lineNumber': A mandatory line number value.
18
- * 'at': Logical position at which line has to be revealed.
19
- \`\`\`
20
- 'top', 'center', 'bottom'
21
- \`\`\`
22
- `,constraint:function(e){return!!u.isObject(e)&&(!!((u.isNumber(e.lineNumber)||u.isString(e.lineNumber))&&(u.isUndefined(e.at)||u.isString(e.at)))||!1)},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},n.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"};class E{constructor(e){e.addImplementation(1e4,"code-editor",(e,t)=>{let i=e.get(p.ICodeEditorService).getFocusedCodeEditor();return!!(i&&i.hasTextFocus())&&this._runEditorCommand(e,i,t)}),e.addImplementation(1e3,"generic-dom-input-textarea",(e,t)=>{let i=document.activeElement;return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(),!0)}),e.addImplementation(0,"generic-dom",(e,t)=>{let i=e.get(p.ICodeEditorService).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))})}_runEditorCommand(e,t,i){let r=this.runEditorCommand(e,t,i);return!r||r}}!function(e){class t extends x{constructor(e){super(e),this._minimalReveal=e.minimalReveal,this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[b.CursorMoveCommands.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&e.revealPrimaryCursor(t.source,!0,this._minimalReveal)}}e.MoveTo=(0,g.registerEditorCommand)(new t({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,g.registerEditorCommand)(new t({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));class i extends x{runCoreEditorCommand(e,t){e.model.pushStackElement();let i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,i.viewStates.map(e=>f.CursorState.fromViewState(e))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}e.ColumnSelect=(0,g.registerEditorCommand)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,r){let n=e.model.validatePosition(r.position),o=e.coordinatesConverter.validateViewPosition(new _.Position(r.viewPosition.lineNumber,r.viewPosition.column),n),s=r.doColumnSelect?i.fromViewLineNumber:o.lineNumber,a=r.doColumnSelect?i.fromViewVisualColumn:r.mouseColumn-1;return m.ColumnSelection.columnSelect(e.cursorConfig,e,s,a,o.lineNumber,r.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,g.registerEditorCommand)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,r){return m.ColumnSelection.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,g.registerEditorCommand)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,r){return m.ColumnSelection.columnSelectRight(e.cursorConfig,e,i)}});class r extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,r){return m.ColumnSelection.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,g.registerEditorCommand)(new r({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,g.registerEditorCommand)(new r({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:3595,linux:{primary:0}}}));class n extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,r){return m.ColumnSelection.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,g.registerEditorCommand)(new n({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,g.registerEditorCommand)(new n({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:3596,linux:{primary:0}}}));class a extends x{constructor(){super({id:"cursorMove",precondition:void 0,description:b.CursorMove.description})}runCoreEditorCommand(e,t){let i=b.CursorMove.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,a._move(e,e.getCursorStates(),i)),e.revealPrimaryCursor(t,!0)}static _move(e,t,i){let r=i.select,n=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return b.CursorMoveCommands.simpleMove(e,t,i.direction,r,n,i.unit);case 11:case 13:case 12:case 14:return b.CursorMoveCommands.viewportMove(e,t,i.direction,r,n);default:return null}}}e.CursorMoveImpl=a,e.CursorMove=(0,g.registerEditorCommand)(new a);class l extends x{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,b.CursorMoveCommands.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealPrimaryCursor(t.source,!0)}}e.CursorLeft=(0,g.registerEditorCommand)(new l({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,g.registerEditorCommand)(new l({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:1039}})),e.CursorRight=(0,g.registerEditorCommand)(new l({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,g.registerEditorCommand)(new l({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:1041}})),e.CursorUp=(0,g.registerEditorCommand)(new l({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,g.registerEditorCommand)(new l({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,g.registerEditorCommand)(new l({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,g.registerEditorCommand)(new l({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:1035}})),e.CursorDown=(0,g.registerEditorCommand)(new l({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,g.registerEditorCommand)(new l({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,g.registerEditorCommand)(new l({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,g.registerEditorCommand)(new l({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:1036}})),e.CreateCursor=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){let i;i=t.wholeLine?b.CursorMoveCommands.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):b.CursorMoveCommands.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);let r=e.getCursorStates();if(r.length>1){let n=i.modelState?i.modelState.position:null,o=i.viewState?i.viewState.position:null;for(let i=0,s=r.length;i<s;i++){let s=r[i];if(!n||!!s.modelState.selection.containsPosition(n)){if(!o||s.viewState.selection.containsPosition(o)){r.splice(i,1),e.model.pushStackElement(),e.setCursorStates(t.source,3,r);return}}}}r.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}}),e.LastCursorMoveToSelect=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){let i=e.getLastAddedCursorIndex(),r=e.getCursorStates(),n=r.slice(0);n[i]=b.CursorMoveCommands.moveTo(e,r[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class u extends x{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,b.CursorMoveCommands.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorHome=(0,g.registerEditorCommand)(new u({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=(0,g.registerEditorCommand)(new u({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class p extends x{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e){let t=[];for(let i=0,r=e.length;i<r;i++){let r=e[i],n=r.modelState.position.lineNumber;t[i]=f.CursorState.fromModelState(r.modelState.move(this._inSelectionMode,n,1,0))}return t}}e.CursorLineStart=(0,g.registerEditorCommand)(new p({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=(0,g.registerEditorCommand)(new p({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1311}}}));class C extends x{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,b.CursorMoveCommands.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealPrimaryCursor(t.source,!0)}}e.CursorEnd=(0,g.registerEditorCommand)(new C({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},description:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:c.localize("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=(0,g.registerEditorCommand)(new C({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},description:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:c.localize("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class v extends x{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e,t){let i=[];for(let r=0,n=t.length;r<n;r++){let n=t[r],o=n.modelState.position.lineNumber,s=e.model.getLineMaxColumn(o);i[r]=f.CursorState.fromModelState(n.modelState.move(this._inSelectionMode,o,s,0))}return i}}e.CursorLineEnd=(0,g.registerEditorCommand)(new v({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=(0,g.registerEditorCommand)(new v({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:0,mac:{primary:1315}}}));class k extends x{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,b.CursorMoveCommands.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorTop=(0,g.registerEditorCommand)(new k({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=(0,g.registerEditorCommand)(new k({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:3086,mac:{primary:3088}}}));class w extends x{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,b.CursorMoveCommands.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorBottom=(0,g.registerEditorCommand)(new w({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=(0,g.registerEditorCommand)(new w({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:3085,mac:{primary:3090}}}));class L extends x{constructor(){super({id:"editorScroll",precondition:void 0,description:o.description})}runCoreEditorCommand(e,t){let i=o.parse(t);i&&this._runEditorScroll(e,t.source,i)}_runEditorScroll(e,t,i){let r=this._computeDesiredScrollTop(e,i);if(i.revealCursor){let n=e.getCompletelyVisibleViewRangeAtScrollTop(r);e.setCursorStates(t,3,[b.CursorMoveCommands.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),n,i.select)])}e.viewLayout.setScrollPosition({scrollTop:r},0)}_computeDesiredScrollTop(e,t){let i;if(1===t.unit){let i;let r=e.getCompletelyVisibleViewRange(),n=e.coordinatesConverter.convertViewRangeToModelRange(r);i=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);let o=e.coordinatesConverter.convertModelPositionToViewPosition(new _.Position(i,1));return e.viewLayout.getVerticalOffsetForLineNumber(o.lineNumber)}if(5===t.unit){let i=0;return 2===t.direction&&(i=e.model.getLineCount()-e.cursorConfig.pageSize),e.viewLayout.getVerticalOffsetForLineNumber(i)}i=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;let r=(1===t.direction?-1:1)*i;return e.viewLayout.getCurrentScrollTop()+r*e.cursorConfig.lineHeight}}e.EditorScrollImpl=L,e.EditorScroll=(0,g.registerEditorCommand)(new L),e.ScrollLineUp=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,i){e.EditorScroll._runEditorScroll(t,i.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})}}),e.ScrollPageUp=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,i){e.EditorScroll._runEditorScroll(t,i.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})}}),e.ScrollEditorTop=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll._runEditorScroll(t,i.source,{direction:1,unit:5,value:1,revealCursor:!1,select:!1})}}),e.ScrollLineDown=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,i){e.EditorScroll._runEditorScroll(t,i.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})}}),e.ScrollPageDown=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,i){e.EditorScroll._runEditorScroll(t,i.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})}}),e.ScrollEditorBottom=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll._runEditorScroll(t,i.source,{direction:2,unit:5,value:1,revealCursor:!1,select:!1})}});class T extends x{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[b.CursorMoveCommands.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),e.revealPrimaryCursor(t.source,!0)}}e.WordSelect=(0,g.registerEditorCommand)(new T({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=(0,g.registerEditorCommand)(new T({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){let i=e.getLastAddedCursorIndex(),r=e.getCursorStates(),n=r.slice(0),o=r[i];n[i]=b.CursorMoveCommands.word(e,o,o.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class I extends x{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[b.CursorMoveCommands.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!1)}}e.LineSelect=(0,g.registerEditorCommand)(new I({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=(0,g.registerEditorCommand)(new I({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class D extends x{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){let i=e.getLastAddedCursorIndex(),r=e.getCursorStates(),n=r.slice(0);n[i]=b.CursorMoveCommands.line(e,r[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}e.LastCursorLineSelect=(0,g.registerEditorCommand)(new D({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=(0,g.registerEditorCommand)(new D({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"cancelSelection",precondition:y.EditorContextKeys.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[b.CursorMoveCommands.cancelSelection(e,e.getPrimaryCursorState())]),e.revealPrimaryCursor(t.source,!0)}}),e.RemoveSecondaryCursors=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"removeSecondaryCursors",precondition:y.EditorContextKeys.hasMultipleSelections,kbOpts:{weight:1,kbExpr:y.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealPrimaryCursor(t.source,!0),(0,h.status)(c.localize("removedCursor","Removed secondary cursors"))}}),e.RevealLine=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"revealLine",precondition:void 0,description:s.description})}runCoreEditorCommand(e,t){let i=t.lineNumber||0,r="number"==typeof i?i+1:parseInt(i)+1;r<1&&(r=1);let n=e.model.getLineCount();r>n&&(r=n);let o=new S.Range(r,1,r,e.model.getLineMaxColumn(r)),a=0;if(t.at)switch(t.at){case s.RawAtArgument.Top:a=3;break;case s.RawAtArgument.Center:a=1;break;case s.RawAtArgument.Bottom:a=4}let l=e.coordinatesConverter.convertModelRangeToViewRange(o);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends E{constructor(){super(g.SelectAllCommand)}runDOMCommand(){d.isFirefox&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(e,t,i){let r=t._getViewModel();r&&this.runCoreEditorCommand(r,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[b.CursorMoveCommands.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,g.registerEditorCommand)(new class extends x{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[f.CursorState.fromModelSelection(t.selection)])}})}(a||(a={}));let L=k.ContextKeyExpr.and(y.EditorContextKeys.textInputFocus,y.EditorContextKeys.columnSelection);function T(e,t){w.KeybindingsRegistry.registerKeybindingRule({id:e,primary:t,when:L,weight:1})}function I(e){return e.register(),e}T(a.CursorColumnSelectLeft.id,1039),T(a.CursorColumnSelectRight.id,1041),T(a.CursorColumnSelectUp.id,1040),T(a.CursorColumnSelectPageUp.id,1035),T(a.CursorColumnSelectDown.id,1042),T(a.CursorColumnSelectPageDown.id,1036),!function(e){class t extends g.EditorCommand{runEditorCommand(e,t,i){let r=t._getViewModel();r&&this.runCoreEditingCommand(t,r,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,g.registerEditorCommand)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:y.EditorContextKeys.writable,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,v.TypeOperations.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection)))}}),e.Outdent=(0,g.registerEditorCommand)(new class extends t{constructor(){super({id:"outdent",precondition:y.EditorContextKeys.writable,kbOpts:{weight:0,kbExpr:k.ContextKeyExpr.and(y.EditorContextKeys.editorTextFocus,y.EditorContextKeys.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,v.TypeOperations.outdent(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.Tab=(0,g.registerEditorCommand)(new class extends t{constructor(){super({id:"tab",precondition:y.EditorContextKeys.writable,kbOpts:{weight:0,kbExpr:k.ContextKeyExpr.and(y.EditorContextKeys.editorTextFocus,y.EditorContextKeys.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,v.TypeOperations.tab(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.DeleteLeft=(0,g.registerEditorCommand)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){let[r,n]=C.DeleteOperations.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection),t.getCursorAutoClosedCharacters());r&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,g.registerEditorCommand)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:y.EditorContextKeys.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){let[r,n]=C.DeleteOperations.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection));r&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(3)}}),e.Undo=new class extends E{constructor(){super(g.UndoCommand)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(83))return t.getModel().undo()}},e.Redo=new class extends E{constructor(){super(g.RedoCommand)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(83))return t.getModel().redo()}}}(l||(l={}));class D extends g.Command{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){let i=e.get(p.ICodeEditorService).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function M(e,t){I(new D("default:"+e,e)),I(new D(e,e,t))}M("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),M("replacePreviousChar"),M("compositionType"),M("compositionStart"),M("compositionEnd"),M("paste"),M("cut")},103377:function(e,t,i){"use strict";i.r(t),i.d(t,{UriList:function(){return h},addExternalEditorsDropData:function(){return u},toVSDataTransfer:function(){return c}});var r=i("703560"),n=i("603868"),o=i("342790"),s=i("864774"),a=i("938505"),l=i("547770");function c(e){let t=new o.VSDataTransfer;for(let i of e.items){let e=i.type;if("string"===i.kind){let r=new Promise(e=>i.getAsString(e));t.append(e,(0,o.createStringDataTransferItem)(r))}else if("file"===i.kind){let r=i.getAsFile();r&&t.append(e,function(e){let t=e.path?a.URI.parse(e.path):void 0;return(0,o.createFileDataTransferItem)(e.name,t,()=>{var t,i,r,n;return t=this,i=void 0,r=void 0,n=function*(){return new Uint8Array((yield e.arrayBuffer()))},new(r||(r=Promise))(function(e,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof r?i:new r(function(e){e(i)})).then(s,a)}l((n=n.apply(t,i||[])).next())})})}(r))}}return t}let d=Object.freeze([l.CodeDataTransfers.EDITORS,l.CodeDataTransfers.FILES,r.DataTransfers.RESOURCES]);function u(e,t,i=!1){var r;if(t.dataTransfer&&(i||!e.has(s.Mimes.uriList))){let i=(0,l.extractEditorsDropData)(t).filter(e=>e.resource).map(e=>e.resource.toString());for(let e of null===(r=t.dataTransfer)||void 0===r?void 0:r.items){let t=e.getAsFile();t&&i.push(t.path?a.URI.file(t.path).toString():t.name)}i.length&&e.replace(s.Mimes.uriList,(0,o.createStringDataTransferItem)(h.create(i)))}for(let t of d)e.delete(t)}let h=Object.freeze({create:e=>(0,n.distinct)(e.map(e=>e.toString())).join("\r\n"),parse:e=>e.split("\r\n").filter(e=>!e.startsWith("#"))})},865646:function(e,t,i){"use strict";i.r(t),i.d(t,{ClientCoordinates:function(){return d},DynamicCssRules:function(){return v},EditorMouseEvent:function(){return m},EditorMouseEventFactory:function(){return f},EditorPointerEventFactory:function(){return C},GlobalEditorPointerMoveMonitor:function(){return b},PageCoordinates:function(){return c},createCoordinatesRelativeToEditor:function(){return p},createEditorPagePosition:function(){return g}});var r=i("409737"),n=i("973857"),o=i("919219"),s=i("467518"),a=i("919527"),l=i("897085");class c{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new d(this.x-r.StandardWindow.scrollX,this.y-r.StandardWindow.scrollY)}}class d{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new c(this.clientX+r.StandardWindow.scrollX,this.clientY+r.StandardWindow.scrollY)}}class u{constructor(e,t,i,r){this.x=e,this.y=t,this.width=i,this.height=r,this._editorPagePositionBrand=void 0}}class h{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function g(e){let t=r.getDomNodePagePosition(e);return new u(t.left,t.top,t.width,t.height)}function p(e,t,i){let r=t.width/e.offsetWidth,n=t.height/e.offsetHeight,o=(i.x-t.x)/r;return new h(o,(i.y-t.y)/n)}class m extends o.StandardMouseEvent{constructor(e,t,i){super(e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new c(this.posx,this.posy),this.editorPos=g(i),this.relativePos=p(i,this.editorPos,this.pos)}}class f{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return r.addDisposableListener(e,"contextmenu",e=>{t(this._create(e))})}onMouseUp(e,t){return r.addDisposableListener(e,"mouseup",e=>{t(this._create(e))})}onMouseDown(e,t){return r.addDisposableListener(e,r.EventType.MOUSE_DOWN,e=>{t(this._create(e))})}onPointerDown(e,t){return r.addDisposableListener(e,r.EventType.POINTER_DOWN,e=>{t(this._create(e),e.pointerId)})}onMouseLeave(e,t){return r.addDisposableListener(e,r.EventType.MOUSE_LEAVE,e=>{t(this._create(e))})}onMouseMove(e,t){return r.addDisposableListener(e,"mousemove",e=>t(this._create(e)))}}class C{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return r.addDisposableListener(e,"pointerup",e=>{t(this._create(e))})}onPointerDown(e,t){return r.addDisposableListener(e,r.EventType.POINTER_DOWN,e=>{t(this._create(e),e.pointerId)})}onPointerLeave(e,t){return r.addDisposableListener(e,r.EventType.POINTER_LEAVE,e=>{t(this._create(e))})}onPointerMove(e,t){return r.addDisposableListener(e,"pointermove",e=>t(this._create(e)))}}class b extends a.Disposable{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new n.GlobalPointerMoveMonitor),this._keydownListener=null}startMonitoring(e,t,i,n,o){this._keydownListener=r.addStandardDisposableListener(document,"keydown",e=>{!e.toKeybinding().isModifierKey()&&this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)},!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,e=>{n(new m(e,!0,this._editorViewDomNode))},e=>{this._keydownListener.dispose(),o(e)})}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class v{constructor(e){this._editor=e,this._instanceId=++v._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new s.RunOnceScheduler(()=>this.garbageCollect(),1e3)}createClassNameRef(e){let t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){let t=this.computeUniqueKey(e),i=this._rules.get(t);if(!i){let n=this._counter++;i=new _(t,`dyn-rule-${this._instanceId}-${n}`,r.isInShadowDOM(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(let e of this._rules.values())!e.hasReferences()&&(this._rules.delete(e.key),e.dispose())}}v._idPool=0;class _{constructor(e,t,i,n){this.key=e,this.className=t,this.properties=n,this._referenceCount=0,this._styleElement=r.createStyleSheet(i),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(let e in t){let r;let n=t[e];r="object"==typeof n?`var(${(0,l.asCssVariableName)(n.id)})`:n;let o=function(e){return e.replace(/(^[A-Z])/,([e])=>e.toLowerCase()).replace(/([A-Z])/g,([e])=>`-${e.toLowerCase()}`)}(e);i+=`
23
- ${o}: ${r};`}return i+=`
24
- }`}dispose(){this._styleElement.remove()}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}},281099:function(e,t,i){"use strict";i.r(t),i.d(t,{EditorWorkerClient:function(){return L},EditorWorkerService:function(){return S}});var r=i("467518"),n=i("919527"),o=i("225460"),s=i("743305"),a=i("761045"),l=i("962785"),c=i("468530"),d=i("357233"),u=i("627541"),h=i("266763"),g=i("603868"),p=i("853881"),m=i("130039"),f=i("161111"),C=i("678540"),b=function(e,t){return function(i,r){t(i,r,e)}},v=function(e,t,i,r){return new(i||(i=Promise))(function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};function _(e,t){let i=e.getModel(t);return!(!i||i.isTooLargeForSyncing())&&!0}let S=class extends n.Disposable{constructor(e,t,i,r,n){super(),this._modelService=e,this._workerManager=this._register(new k(this._modelService,r)),this._logService=i,this._register(n.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>_(this._modelService,e.uri)?this._workerManager.withWorker().then(t=>t.computeLinks(e.uri)).then(e=>e&&{links:e}):Promise.resolve({links:[]})})),this._register(n.completionProvider.register("*",new y(this._workerManager,t,this._modelService,r)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return _(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then(r=>r.computedUnicodeHighlights(e,t,i))}computeDiff(e,t,i,r){return this._workerManager.withWorker().then(n=>n.computeDiff(e,t,i,r))}computeMoreMinimalEdits(e,t){if(!(0,g.isNonEmptyArray)(t))return Promise.resolve(void 0);{if(!_(this._modelService,e))return Promise.resolve(t);let i=m.StopWatch.create(!0),n=this._workerManager.withWorker().then(i=>i.computeMoreMinimalEdits(e,t));return n.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())),Promise.race([n,(0,r.timeout)(1e3).then(()=>t)])}}canNavigateValueSet(e){return _(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then(r=>r.navigateValueSet(e,t,i))}canComputeWordRanges(e){return _(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(i=>i.computeWordRanges(e,t))}};S=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([b(0,d.IModelService),b(1,u.ITextResourceConfigurationService),b(2,p.ILogService),b(3,l.ILanguageConfigurationService),b(4,C.ILanguageFeaturesService)],S);class y{constructor(e,t,i,r){this.languageConfigurationService=r,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return v(this,void 0,void 0,function*(){let i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;let r=[];if("currentDocument"===i.wordBasedSuggestionsMode)_(this._modelService,e.uri)&&r.push(e.uri);else for(let t of this._modelService.getModels())_(this._modelService,t.uri)&&(t===e?r.unshift(t.uri):("allDocuments"===i.wordBasedSuggestionsMode||t.getLanguageId()===e.getLanguageId())&&r.push(t.uri));if(0===r.length)return;let n=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),o=e.getWordAtPosition(t),s=o?new a.Range(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):a.Range.fromPositions(t),l=s.setEndPosition(t.lineNumber,t.column),c=yield this._workerManager.withWorker(),d=yield c.textualSuggest(r,null==o?void 0:o.word,n);if(d)return{duration:d.duration,suggestions:d.words.map(e=>({kind:18,label:e,insertText:e,range:{insert:l,replace:s}}))}})}}class k extends n.Disposable{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new r.IntervalTimer).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 L(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class w extends n.Disposable{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 r.IntervalTimer;e.cancelAndSet(()=>this._checkStopModelSync(),Math.round(3e4)),this._register(e)}}dispose(){for(let e in this._syncedModels)(0,n.dispose)(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 r=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});let o=new n.DisposableStore;o.add(i.onDidChangeContent(e=>{this._proxy.acceptModelChanged(r.toString(),e)})),o.add(i.onWillDispose(()=>{this._stopModelSync(r)})),o.add((0,n.toDisposable)(()=>{this._proxy.acceptRemovedModel(r)})),this._syncedModels[r]=o}_stopModelSync(e){let t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,n.dispose)(t)}}class x{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class E{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class L extends n.Disposable{constructor(e,t,i,r){super(),this.languageConfigurationService=r,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new s.DefaultWorkerFactory(i),this._worker=null,this._modelManager=null}fhr(e,t){throw Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new o.SimpleWorkerClient(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new E(this)))}catch(e){(0,o.logOnceWebWorkerWarning)(e),this._worker=new x(new c.EditorSimpleWorker(new E(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>((0,o.logOnceWebWorkerWarning)(e),this._worker=new x(new c.EditorSimpleWorker(new E(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return!this._modelManager&&(this._modelManager=this._register(new w(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return v(this,void 0,void 0,function*(){return this._disposed?Promise.reject((0,f.canceled)()):this._getProxy().then(i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i))})}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then(r=>r.computeUnicodeHighlights(e.toString(),t,i))}computeDiff(e,t,i,r){return this._withSyncedResources([e,t],!0).then(n=>n.computeDiff(e.toString(),t.toString(),i,r))}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 v(this,void 0,void 0,function*(){let r=yield this._withSyncedResources(e),n=i.source,o=(0,h.regExpFlags)(i);return r.textualSuggest(e.map(e=>e.toString()),t,n,o)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{let r=this._modelService.getModel(e);if(!r)return Promise.resolve(null);let n=this.languageConfigurationService.getLanguageConfiguration(r.getLanguageId()).getWordDefinition(),o=n.source,s=(0,h.regExpFlags)(n);return i.computeWordRanges(e.toString(),t,o,s)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(r=>{let n=this._modelService.getModel(e);if(!n)return null;let o=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),s=o.source,a=(0,h.regExpFlags)(o);return r.navigateValueSet(e.toString(),t,i,s,a)})}dispose(){super.dispose(),this._disposed=!0}}},460788:function(e,t,i){"use strict";i.r(t),i.d(t,{RangeUtil:function(){return n}});var r=i("481468");class n{static _createRange(){return!this._handyReadyRange&&(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,r,n){let o=this._createRange();try{return o.setStart(e,t),o.setEnd(i,r),o.getClientRects()}catch(e){return null}finally{this._detachRange(o,n)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(r.FloatHorizontalRange.compare);let t=[],i=0,n=e[0];for(let r=1,o=e.length;r<o;r++){let o=e[r];n.left+n.width+.9>=o.left?n.width=Math.max(n.width,o.left+o.width-n.left):(t[i++]=n,n=o)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;let n=[];for(let o=0,s=e.length;o<s;o++){let s=e[o];n[o]=new r.FloatHorizontalRange(Math.max(0,(s.left-t)/i),s.width/i)}return this._mergeAdjacentRanges(n)}static readHorizontalRanges(e,t,i,r,n,o,s,a){let l=e.children.length-1;if(0>l)return null;if((t=Math.min(l,Math.max(0,t)))===(r=Math.min(l,Math.max(0,r)))&&i===n&&0===i&&!e.children[t].firstChild){let i=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(i,o,s)}t!==r&&r>0&&0===n&&(r--,n=1073741824);let c=e.children[t].firstChild,d=e.children[r].firstChild;if((!c||!d)&&(!c&&0===i&&t>0&&(c=e.children[t-1].firstChild,i=1073741824),!d&&0===n&&r>0&&(d=e.children[r-1].firstChild,n=1073741824)),!c||!d)return null;i=Math.min(c.textContent.length,Math.max(0,i)),n=Math.min(d.textContent.length,Math.max(0,n));let u=this._readClientRects(c,i,d,n,a);return this._createHorizontalRangesFromClientRects(u,o,s)}}},109108:function(e,t,i){"use strict";i.r(t),i.d(t,{ColumnSelection:function(){return s}});var r=i("607910"),n=i("457938"),o=i("761045");class s{static columnSelect(e,t,i,s,a,l){let c=Math.abs(a-i)+1,d=i>a,u=s>l,h=s<l,g=[];for(let a=0;a<c;a++){let c=i+(d?-a:a),p=e.columnFromVisibleColumn(t,c,s),m=e.columnFromVisibleColumn(t,c,l),f=e.visibleColumnFromColumn(t,new n.Position(c,p)),C=e.visibleColumnFromColumn(t,new n.Position(c,m));if((!h||!(f>l)&&!(C<s))&&(!u||!(C>s)&&!(f<l)))g.push(new r.SingleCursorState(new o.Range(c,p,c,p),0,new n.Position(c,m),0))}if(0===g.length)for(let e=0;e<c;e++){let s=i+(d?-e:e),a=t.getLineMaxColumn(s);g.push(new r.SingleCursorState(new o.Range(s,a,s,a),0,new n.Position(s,a),0))}return{viewStates:g,reversed:d,fromLineNumber:i,fromVisualColumn:s,toLineNumber:a,toVisualColumn:l}}static columnSelectLeft(e,t,i){let r=i.toViewVisualColumn;return r>0&&r--,s.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,r)}static columnSelectRight(e,t,i){let r=0,o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),s=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let i=o;i<=s;i++){let o=t.getLineMaxColumn(i);r=Math.max(r,e.visibleColumnFromColumn(t,new n.Position(i,o)))}let a=i.toViewVisualColumn;return a<r&&a++,this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,a)}static columnSelectUp(e,t,i,r){let n=r?e.pageSize:1,o=Math.max(1,i.toViewLineNumber-n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,o,i.toViewVisualColumn)}static columnSelectDown(e,t,i,r){let n=r?e.pageSize:1,o=Math.min(t.getLineCount(),i.toViewLineNumber+n);return this.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,o,i.toViewVisualColumn)}}},815984:function(e,t,i){"use strict";i.r(t),i.d(t,{computeLinks:function(){return d}});var r=i("153049");class n{constructor(e,t,i){let r=new Uint8Array(e*t);for(let n=0,o=e*t;n<o;n++)r[n]=i;this._data=r,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class o{constructor(e){let t=0,i=0;for(let r=0,n=e.length;r<n;r++){let[n,o,s]=e[r];o>t&&(t=o),n>i&&(i=n),s>i&&(i=s)}t++;let r=new n(++i,t,0);for(let t=0,i=e.length;t<i;t++){let[i,n,o]=e[t];r.set(i,n,o)}this._states=r,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let s=null;function a(){return null===s&&(s=new o([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),s}let l=null;class c{static _createLink(e,t,i,r,n){let o=n-1;do{let i=t.charCodeAt(o);if(2!==e.get(i))break;o--}while(o>r);if(r>0){let e=t.charCodeAt(r-1),i=t.charCodeAt(o);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&o--}return{range:{startLineNumber:i,startColumn:r+1,endLineNumber:i,endColumn:o+2},url:t.substring(r,o+1)}}static computeLinks(e,t=a()){let i=function(){if(null===l){l=new r.CharacterClassifier(0);let e=" <>'\"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026";for(let t=0;t<e.length;t++)l.set(e.charCodeAt(t),1);let t=".,;:";for(let e=0;e<t.length;e++)l.set(t.charCodeAt(e),2)}return l}(),n=[];for(let r=1,o=e.getLineCount();r<=o;r++){let o=e.getLineContent(r),s=o.length,a=0,l=0,d=0,u=1,h=!1,g=!1,p=!1,m=!1;for(;a<s;){let e=!1,s=o.charCodeAt(a);if(13===u){let t;switch(s){case 40:h=!0,t=0;break;case 41:t=h?0:1;break;case 91:p=!0,g=!0,t=0;break;case 93:p=!1,t=g?0:1;break;case 123:m=!0,t=0;break;case 125:t=m?0:1;break;case 39:t=39===d?1:0;break;case 34:t=34===d?1:0;break;case 96:t=96===d?1:0;break;case 42:t=42===d?1:0;break;case 124:t=124===d?1:0;break;case 32:t=p?0:1;break;default:t=i.get(s)}1===t&&(n.push(c._createLink(i,o,r,l,a)),e=!0)}else if(12===u){let t;91===s?(g=!0,t=0):t=i.get(s),1===t?e=!0:u=13}else 0===(u=t.nextState(u,s))&&(e=!0);e&&(u=1,h=!1,g=!1,m=!1,l=a+1,d=s),a++}13===u&&n.push(c._createLink(i,o,r,l,s))}return n}}function d(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?c.computeLinks(e):[]}},268162:function(e,t,i){"use strict";i.r(t),i.d(t,{BeforeEditPositionMapper:function(){return o},TextEditInfo:function(){return n}});var r=i("336750");class n{constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}}class o{constructor(e,t){this.documentLength=t,this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map(e=>s.from(e))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);let t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):this.documentLength;return(0,r.lengthDiffNonNegative)(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,r.toLength)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,r.toLength)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){let t=(0,r.lengthToObj)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,r.toLength)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,r.toLength)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx<this.edits.length;){let t=this.edits[this.nextEditIdx],i=this.translateOldToCur(t.endOffsetAfterObj);if((0,r.lengthLessThanEqual)(i,e)){this.nextEditIdx++;let e=(0,r.lengthToObj)(i),n=(0,r.lengthToObj)(this.translateOldToCur(t.endOffsetBeforeObj)),o=e.lineCount-n.lineCount;this.deltaOldToNewLineCount+=o;let s=this.deltaLineIdxInOld===t.endOffsetBeforeObj.lineCount?this.deltaOldToNewColumnCount:0,a=e.columnCount-n.columnCount;this.deltaOldToNewColumnCount=s+a,this.deltaLineIdxInOld=t.endOffsetBeforeObj.lineCount}else break}}}class s{constructor(e,t,i){this.endOffsetBeforeObj=(0,r.lengthToObj)(t),this.endOffsetAfterObj=(0,r.lengthToObj)((0,r.lengthAdd)(e,i)),this.offsetObj=(0,r.lengthToObj)(e)}static from(e){return new s(e.startOffset,e.endOffset,e.newLength)}}},657507:function(e,t,i){"use strict";i.r(t),i.d(t,{BracketPairsTree:function(){return g}});var r=i("916904"),n=i("919527"),o=i("761045"),s=i("396692"),a=i("268162"),l=i("688621"),c=i("336750"),d=i("779939"),u=i("581300"),h=i("608603");class g extends n.Disposable{constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.Emitter,this.denseKeyProvider=new u.DenseKeyProvider,this.brackets=new l.LanguageAgnosticBracketTokens(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,0===e.tokenization.backgroundTokenizationState){let e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new h.FastTokenizer(this.textModel.getValue(),e);this.initialAstWithoutTokens=(0,d.parseDocument)(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}else 2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):1===e.tokenization.backgroundTokenizationState&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens)}didLanguageChange(e){return this.brackets.didLanguageChange(e)}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){let e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,!e&&this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){let t=e.map(e=>new a.TextEditInfo((0,c.toLength)(e.fromLineNumber-1,0),(0,c.toLength)(e.toLineNumber,0),(0,c.toLength)(e.toLineNumber-e.fromLineNumber+1,0)));this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),!this.initialAstWithoutTokens&&this.didChangeEmitter.fire()}handleContentChanged(e){let t=e.changes.map(e=>{let t=o.Range.lift(e.range);return new a.TextEditInfo((0,c.positionToLength)(t.getStartPosition()),(0,c.positionToLength)(t.getEndPosition()),(0,c.lengthOfString)(e.text))}).reverse();this.astWithTokens=this.parseDocumentFromTextBuffer(t,this.astWithTokens,!1),this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(t,this.initialAstWithoutTokens,!1))}parseDocumentFromTextBuffer(e,t,i){let r=t,n=new h.TextBufferTokenizer(this.textModel,this.brackets);return(0,d.parseDocument)(n,e,r,i)}getBracketsInRange(e){let t=(0,c.toLength)(e.startLineNumber-1,e.startColumn-1),i=(0,c.toLength)(e.endLineNumber-1,e.endColumn-1),r=[],n=this.initialAstWithoutTokens||this.astWithTokens;return function e(t,i,r,n,o,a,l,d){if(!(l>200)){if(4===t.kind)for(let s of t.children)r=(0,c.lengthAdd)(i,s.length),(0,c.lengthLessThanEqual)(i,o)&&(0,c.lengthGreaterThanEqual)(r,n)&&e(s,i,r,n,o,a,l,d),i=r;else if(2===t.kind){let u=0;if(d){let e=d.get(t.openingBracket.text);void 0===e&&(e=0),u=e,e++,d.set(t.openingBracket.text,e)}{let e=t.openingBracket;if(r=(0,c.lengthAdd)(i,e.length),(0,c.lengthLessThanEqual)(i,o)&&(0,c.lengthGreaterThanEqual)(r,n)){let e=(0,c.lengthsToRange)(i,r);a.push(new s.BracketInfo(e,l,u,!t.closingBracket))}i=r}if(t.child){let s=t.child;r=(0,c.lengthAdd)(i,s.length),(0,c.lengthLessThanEqual)(i,o)&&(0,c.lengthGreaterThanEqual)(r,n)&&e(s,i,r,n,o,a,l+1,d),i=r}if(t.closingBracket){let e=t.closingBracket;if(r=(0,c.lengthAdd)(i,e.length),(0,c.lengthLessThanEqual)(i,o)&&(0,c.lengthGreaterThanEqual)(r,n)){let e=(0,c.lengthsToRange)(i,r);a.push(new s.BracketInfo(e,l,u,!1))}i=r}null==d||d.set(t.openingBracket.text,u)}else if(3===t.kind){let e=(0,c.lengthsToRange)(i,r);a.push(new s.BracketInfo(e,l-1,0,!0))}else if(1===t.kind){let e=(0,c.lengthsToRange)(i,r);a.push(new s.BracketInfo(e,l-1,0,!1))}}}(n,c.lengthZero,n.length,t,i,r,0,new Map),r}getBracketPairsInRange(e,t){let i=[],r=(0,c.positionToLength)(e.getStartPosition()),n=(0,c.positionToLength)(e.getEndPosition()),o=this.initialAstWithoutTokens||this.astWithTokens,a=new p(i,t,this.textModel);return function e(t,i,r,n,o,a,l,d){var u;if(!(l>200)){if(2===t.kind){let h=0;if(d){let e=d.get(t.openingBracket.text);void 0===e&&(e=0),h=e,e++,d.set(t.openingBracket.text,e)}let g=(0,c.lengthAdd)(i,t.openingBracket.length),p=-1;if(a.includeMinIndentation&&(p=t.computeMinIndentation(i,a.textModel)),a.result.push(new s.BracketPairWithMinIndentationInfo((0,c.lengthsToRange)(i,r),(0,c.lengthsToRange)(i,g),t.closingBracket?(0,c.lengthsToRange)((0,c.lengthAdd)(g,(null===(u=t.child)||void 0===u?void 0:u.length)||c.lengthZero),r):void 0,l,h,t,p)),i=g,t.child){let s=t.child;r=(0,c.lengthAdd)(i,s.length),(0,c.lengthLessThanEqual)(i,o)&&(0,c.lengthGreaterThanEqual)(r,n)&&e(s,i,r,n,o,a,l+1,d)}null==d||d.set(t.openingBracket.text,h)}else{let r=i;for(let i of t.children){let t=r;r=(0,c.lengthAdd)(r,i.length),(0,c.lengthLessThanEqual)(t,o)&&(0,c.lengthLessThanEqual)(n,r)&&e(i,t,r,n,o,a,l,d)}}}}(o,c.lengthZero,o.length,r,n,a,0,new Map),i}getFirstBracketAfter(e){let t=this.initialAstWithoutTokens||this.astWithTokens;return function e(t,i,r,n){if(4===t.kind||2===t.kind)for(let o of t.children){if(r=(0,c.lengthAdd)(i,o.length),(0,c.lengthLessThan)(n,r)){let t=e(o,i,r,n);if(t)return t}i=r}else if(3===t.kind);else if(1===t.kind){let e=(0,c.lengthsToRange)(i,r);return{bracketInfo:t.bracketInfo,range:e}}return null}(t,c.lengthZero,t.length,(0,c.positionToLength)(e))}getFirstBracketBefore(e){let t=this.initialAstWithoutTokens||this.astWithTokens;return function e(t,i,r,n){if(4===t.kind||2===t.kind){let o=[];for(let e of t.children)r=(0,c.lengthAdd)(i,e.length),o.push({nodeOffsetStart:i,nodeOffsetEnd:r}),i=r;for(let i=o.length-1;i>=0;i--){let{nodeOffsetStart:r,nodeOffsetEnd:s}=o[i];if((0,c.lengthLessThan)(r,n)){let o=e(t.children[i],r,s,n);if(o)return o}}}else if(3===t.kind);else if(1===t.kind){let e=(0,c.lengthsToRange)(i,r);return{bracketInfo:t.bracketInfo,range:e}}return null}(t,c.lengthZero,t.length,(0,c.positionToLength)(e))}}class p{constructor(e,t,i){this.result=e,this.includeMinIndentation=t,this.textModel=i}}},693452:function(e,t,i){"use strict";i.r(t),i.d(t,{NodeReader:function(){return n}});var r=i("336750");class n{constructor(e){this.lastOffset=r.lengthZero,this.nextNodes=[e],this.offsets=[r.lengthZero],this.idxs=[]}readLongestNodeAt(e,t){if((0,r.lengthLessThan)(e,this.lastOffset))throw Error("Invalid offset");for(this.lastOffset=e;;){let i=s(this.nextNodes);if(!i)return;let n=s(this.offsets);if((0,r.lengthLessThan)(e,n))return;if((0,r.lengthLessThan)(n,e)){if((0,r.lengthAdd)(n,i.length)<=e)this.nextNodeAfterCurrent();else{let e=o(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)):this.nextNodeAfterCurrent()}}else{if(t(i))return this.nextNodeAfterCurrent(),i;let e=o(i);if(-1===e){this.nextNodeAfterCurrent();return}this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)}}}nextNodeAfterCurrent(){for(;;){let e=s(this.offsets),t=s(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;let i=s(this.nextNodes),n=o(i,this.idxs[this.idxs.length-1]);if(-1!==n){this.nextNodes.push(i.getChild(n)),this.offsets.push((0,r.lengthAdd)(e,t.length)),this.idxs[this.idxs.length-1]=n;break}this.idxs.pop()}}}function o(e,t=-1){for(;;){if(++t>=e.childrenLength)return -1;if(e.getChild(t))return t}}function s(e){return e.length>0?e[e.length-1]:void 0}},380859:function(e,t,i){"use strict";i.r(t),i.d(t,{MirrorTextModel:function(){return s}});var r=i("266763"),n=i("457938"),o=i("983564");class s{constructor(e,t,i,r){this._uri=e,this._lines=t,this._eol=i,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){for(let t of(e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null),e.changes))this._acceptDeleteRange(t.range),this._acceptInsertText(new n.Position(t.range.startLineNumber,t.range.startColumn),t.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let r=0;r<t;r++)i[r]=this._lines[r].length+e;this._lineStarts=new o.PrefixSumComputer(i)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){if(0===t.length)return;let i=(0,r.splitLines)(t);if(1===i.length){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);let n=new Uint32Array(i.length-1);for(let t=1;t<i.length;t++)this._lines.splice(e.lineNumber+t-1,0,i[t]),n[t-1]=i[t].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,n)}}},520767:function(e,t,i){"use strict";i.r(t),i.d(t,{clearPlatformLanguageAssociations:function(){return p},getLanguageIds:function(){return m},registerPlatformLanguageAssociation:function(){return g}});var r=i("379462"),n=i("864774"),o=i("24342"),s=i("555410"),a=i("437454"),l=i("266763"),c=i("595394");let d=[],u=[],h=[];function g(e,t=!1){(function(e,t,i){let n=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:t,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,r.parse)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(s.posix.sep)>=0}}(e,t);d.push(n),n.userConfigured?h.push(n):u.push(n),i&&!n.userConfigured&&d.forEach(e=>{e.mime!==n.mime&&!e.userConfigured&&(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))})})(e,!1,t)}function p(){d=d.filter(e=>e.userConfigured),u=[]}function m(e,t){return(function(e,t){let i;if(e)switch(e.scheme){case o.Schemas.file:i=e.fsPath;break;case o.Schemas.data:i=a.DataUri.parseMetaData(e).get(a.DataUri.META_DATA_LABEL);break;case o.Schemas.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:n.Mimes.unknown}];i=i.toLowerCase();let r=(0,s.basename)(i),g=f(i,r,h);if(g)return[g,{id:c.PLAINTEXT_LANGUAGE_ID,mime:n.Mimes.text}];let p=f(i,r,u);if(p)return[p,{id:c.PLAINTEXT_LANGUAGE_ID,mime:n.Mimes.text}];if(t){let e=function(e){if((0,l.startsWithUTF8BOM)(e)&&(e=e.substr(1)),e.length>0)for(let t=d.length-1;t>=0;t--){let i=d[t];if(!i.firstline)continue;let r=e.match(i.firstline);if(r&&r.length>0)return i}}(t);if(e)return[e,{id:c.PLAINTEXT_LANGUAGE_ID,mime:n.Mimes.text}]}return[{id:"unknown",mime:n.Mimes.unknown}]})(e,t).map(e=>e.id)}function f(e,t,i){var r;let n,o,s;for(let a=i.length-1;a>=0;a--){let l=i[a];if(t===l.filenameLowercase){n=l;break}if(l.filepattern&&(!o||l.filepattern.length>o.filepattern.length)){let i=l.filepatternOnPath?e:t;(null===(r=l.filepatternLowercase)||void 0===r?void 0:r.call(l,i))&&(o=l)}l.extension&&(!s||l.extension.length>s.extension.length)&&t.endsWith(l.extensionLowercase)&&(s=l)}return n?n:o?o:s?s:void 0}},627541:function(e,t,i){"use strict";i.r(t),i.d(t,{ITextResourceConfigurationService:function(){return n},ITextResourcePropertiesService:function(){return o}});var r=i("706301");let n=(0,r.createDecorator)("textResourceConfigurationService"),o=(0,r.createDecorator)("textResourcePropertiesService")},604737:function(e,t,i){"use strict";var r,n,o,s,a,l,c,d,u,h,g,p,m,f,C,b,v,_,S,y,k,w,x,E,L,T,I,D,M,A,P,R,N,F,O,B,W,z,K,H,V,U,j,$,q,G,X,Y,Q,Z,J,ee,et,ei,er,en,eo,es,ea,el,ec,ed,eu,eh,eg,ep,em,ef,eC,eb,ev,e_,eS,ey,ek,ew;i.r(t),i.d(t,{AccessibilitySupport:function(){return r},CodeActionTriggerType:function(){return n},CompletionItemInsertTextRule:function(){return o},CompletionItemKind:function(){return s},CompletionItemTag:function(){return a},CompletionTriggerKind:function(){return l},ContentWidgetPositionPreference:function(){return c},CursorChangeReason:function(){return d},DefaultEndOfLine:function(){return u},DocumentHighlightKind:function(){return h},EditorAutoIndentStrategy:function(){return g},EditorOption:function(){return p},EndOfLinePreference:function(){return m},EndOfLineSequence:function(){return f},IndentAction:function(){return C},InjectedTextCursorStops:function(){return b},InlayHintKind:function(){return v},InlineCompletionTriggerKind:function(){return _},KeyCode:function(){return S},MarkerSeverity:function(){return y},MarkerTag:function(){return k},MinimapPosition:function(){return w},MouseTargetType:function(){return x},OverlayWidgetPositionPreference:function(){return E},OverviewRulerLane:function(){return L},PositionAffinity:function(){return T},RenderLineNumbersType:function(){return I},RenderMinimap:function(){return D},ScrollType:function(){return M},ScrollbarVisibility:function(){return A},SelectionDirection:function(){return P},SignatureHelpTriggerKind:function(){return R},SymbolKind:function(){return N},SymbolTag:function(){return F},TextEditorCursorBlinkingStyle:function(){return O},TextEditorCursorStyle:function(){return B},TrackedRangeStickiness:function(){return W},WrappingIndent:function(){return z}}),(K=r||(r={}))[K.Unknown=0]="Unknown",K[K.Disabled=1]="Disabled",K[K.Enabled=2]="Enabled",(H=n||(n={}))[H.Invoke=1]="Invoke",H[H.Auto=2]="Auto",(V=o||(o={}))[V.KeepWhitespace=1]="KeepWhitespace",V[V.InsertAsSnippet=4]="InsertAsSnippet",(U=s||(s={}))[U.Method=0]="Method",U[U.Function=1]="Function",U[U.Constructor=2]="Constructor",U[U.Field=3]="Field",U[U.Variable=4]="Variable",U[U.Class=5]="Class",U[U.Struct=6]="Struct",U[U.Interface=7]="Interface",U[U.Module=8]="Module",U[U.Property=9]="Property",U[U.Event=10]="Event",U[U.Operator=11]="Operator",U[U.Unit=12]="Unit",U[U.Value=13]="Value",U[U.Constant=14]="Constant",U[U.Enum=15]="Enum",U[U.EnumMember=16]="EnumMember",U[U.Keyword=17]="Keyword",U[U.Text=18]="Text",U[U.Color=19]="Color",U[U.File=20]="File",U[U.Reference=21]="Reference",U[U.Customcolor=22]="Customcolor",U[U.Folder=23]="Folder",U[U.TypeParameter=24]="TypeParameter",U[U.User=25]="User",U[U.Issue=26]="Issue",U[U.Snippet=27]="Snippet",(j=a||(a={}))[j.Deprecated=1]="Deprecated",($=l||(l={}))[$.Invoke=0]="Invoke",$[$.TriggerCharacter=1]="TriggerCharacter",$[$.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",(q=c||(c={}))[q.EXACT=0]="EXACT",q[q.ABOVE=1]="ABOVE",q[q.BELOW=2]="BELOW",(G=d||(d={}))[G.NotSet=0]="NotSet",G[G.ContentFlush=1]="ContentFlush",G[G.RecoverFromMarkers=2]="RecoverFromMarkers",G[G.Explicit=3]="Explicit",G[G.Paste=4]="Paste",G[G.Undo=5]="Undo",G[G.Redo=6]="Redo",(X=u||(u={}))[X.LF=1]="LF",X[X.CRLF=2]="CRLF",(Y=h||(h={}))[Y.Text=0]="Text",Y[Y.Read=1]="Read",Y[Y.Write=2]="Write",(Q=g||(g={}))[Q.None=0]="None",Q[Q.Keep=1]="Keep",Q[Q.Brackets=2]="Brackets",Q[Q.Advanced=3]="Advanced",Q[Q.Full=4]="Full",(Z=p||(p={}))[Z.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",Z[Z.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",Z[Z.accessibilitySupport=2]="accessibilitySupport",Z[Z.accessibilityPageSize=3]="accessibilityPageSize",Z[Z.ariaLabel=4]="ariaLabel",Z[Z.autoClosingBrackets=5]="autoClosingBrackets",Z[Z.autoClosingDelete=6]="autoClosingDelete",Z[Z.autoClosingOvertype=7]="autoClosingOvertype",Z[Z.autoClosingQuotes=8]="autoClosingQuotes",Z[Z.autoIndent=9]="autoIndent",Z[Z.automaticLayout=10]="automaticLayout",Z[Z.autoSurround=11]="autoSurround",Z[Z.bracketPairColorization=12]="bracketPairColorization",Z[Z.guides=13]="guides",Z[Z.codeLens=14]="codeLens",Z[Z.codeLensFontFamily=15]="codeLensFontFamily",Z[Z.codeLensFontSize=16]="codeLensFontSize",Z[Z.colorDecorators=17]="colorDecorators",Z[Z.columnSelection=18]="columnSelection",Z[Z.comments=19]="comments",Z[Z.contextmenu=20]="contextmenu",Z[Z.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",Z[Z.cursorBlinking=22]="cursorBlinking",Z[Z.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",Z[Z.cursorStyle=24]="cursorStyle",Z[Z.cursorSurroundingLines=25]="cursorSurroundingLines",Z[Z.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",Z[Z.cursorWidth=27]="cursorWidth",Z[Z.disableLayerHinting=28]="disableLayerHinting",Z[Z.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",Z[Z.domReadOnly=30]="domReadOnly",Z[Z.dragAndDrop=31]="dragAndDrop",Z[Z.dropIntoEditor=32]="dropIntoEditor",Z[Z.emptySelectionClipboard=33]="emptySelectionClipboard",Z[Z.experimental=34]="experimental",Z[Z.extraEditorClassName=35]="extraEditorClassName",Z[Z.fastScrollSensitivity=36]="fastScrollSensitivity",Z[Z.find=37]="find",Z[Z.fixedOverflowWidgets=38]="fixedOverflowWidgets",Z[Z.folding=39]="folding",Z[Z.foldingStrategy=40]="foldingStrategy",Z[Z.foldingHighlight=41]="foldingHighlight",Z[Z.foldingImportsByDefault=42]="foldingImportsByDefault",Z[Z.foldingMaximumRegions=43]="foldingMaximumRegions",Z[Z.unfoldOnClickAfterEndOfLine=44]="unfoldOnClickAfterEndOfLine",Z[Z.fontFamily=45]="fontFamily",Z[Z.fontInfo=46]="fontInfo",Z[Z.fontLigatures=47]="fontLigatures",Z[Z.fontSize=48]="fontSize",Z[Z.fontWeight=49]="fontWeight",Z[Z.formatOnPaste=50]="formatOnPaste",Z[Z.formatOnType=51]="formatOnType",Z[Z.glyphMargin=52]="glyphMargin",Z[Z.gotoLocation=53]="gotoLocation",Z[Z.hideCursorInOverviewRuler=54]="hideCursorInOverviewRuler",Z[Z.hover=55]="hover",Z[Z.inDiffEditor=56]="inDiffEditor",Z[Z.inlineSuggest=57]="inlineSuggest",Z[Z.letterSpacing=58]="letterSpacing",Z[Z.lightbulb=59]="lightbulb",Z[Z.lineDecorationsWidth=60]="lineDecorationsWidth",Z[Z.lineHeight=61]="lineHeight",Z[Z.lineNumbers=62]="lineNumbers",Z[Z.lineNumbersMinChars=63]="lineNumbersMinChars",Z[Z.linkedEditing=64]="linkedEditing",Z[Z.links=65]="links",Z[Z.matchBrackets=66]="matchBrackets",Z[Z.minimap=67]="minimap",Z[Z.mouseStyle=68]="mouseStyle",Z[Z.mouseWheelScrollSensitivity=69]="mouseWheelScrollSensitivity",Z[Z.mouseWheelZoom=70]="mouseWheelZoom",Z[Z.multiCursorMergeOverlapping=71]="multiCursorMergeOverlapping",Z[Z.multiCursorModifier=72]="multiCursorModifier",Z[Z.multiCursorPaste=73]="multiCursorPaste",Z[Z.occurrencesHighlight=74]="occurrencesHighlight",Z[Z.overviewRulerBorder=75]="overviewRulerBorder",Z[Z.overviewRulerLanes=76]="overviewRulerLanes",Z[Z.padding=77]="padding",Z[Z.parameterHints=78]="parameterHints",Z[Z.peekWidgetDefaultFocus=79]="peekWidgetDefaultFocus",Z[Z.definitionLinkOpensInPeek=80]="definitionLinkOpensInPeek",Z[Z.quickSuggestions=81]="quickSuggestions",Z[Z.quickSuggestionsDelay=82]="quickSuggestionsDelay",Z[Z.readOnly=83]="readOnly",Z[Z.renameOnType=84]="renameOnType",Z[Z.renderControlCharacters=85]="renderControlCharacters",Z[Z.renderFinalNewline=86]="renderFinalNewline",Z[Z.renderLineHighlight=87]="renderLineHighlight",Z[Z.renderLineHighlightOnlyWhenFocus=88]="renderLineHighlightOnlyWhenFocus",Z[Z.renderValidationDecorations=89]="renderValidationDecorations",Z[Z.renderWhitespace=90]="renderWhitespace",Z[Z.revealHorizontalRightPadding=91]="revealHorizontalRightPadding",Z[Z.roundedSelection=92]="roundedSelection",Z[Z.rulers=93]="rulers",Z[Z.scrollbar=94]="scrollbar",Z[Z.scrollBeyondLastColumn=95]="scrollBeyondLastColumn",Z[Z.scrollBeyondLastLine=96]="scrollBeyondLastLine",Z[Z.scrollPredominantAxis=97]="scrollPredominantAxis",Z[Z.selectionClipboard=98]="selectionClipboard",Z[Z.selectionHighlight=99]="selectionHighlight",Z[Z.selectOnLineNumbers=100]="selectOnLineNumbers",Z[Z.showFoldingControls=101]="showFoldingControls",Z[Z.showUnused=102]="showUnused",Z[Z.snippetSuggestions=103]="snippetSuggestions",Z[Z.smartSelect=104]="smartSelect",Z[Z.smoothScrolling=105]="smoothScrolling",Z[Z.stickyTabStops=106]="stickyTabStops",Z[Z.stopRenderingLineAfter=107]="stopRenderingLineAfter",Z[Z.suggest=108]="suggest",Z[Z.suggestFontSize=109]="suggestFontSize",Z[Z.suggestLineHeight=110]="suggestLineHeight",Z[Z.suggestOnTriggerCharacters=111]="suggestOnTriggerCharacters",Z[Z.suggestSelection=112]="suggestSelection",Z[Z.tabCompletion=113]="tabCompletion",Z[Z.tabIndex=114]="tabIndex",Z[Z.unicodeHighlighting=115]="unicodeHighlighting",Z[Z.unusualLineTerminators=116]="unusualLineTerminators",Z[Z.useShadowDOM=117]="useShadowDOM",Z[Z.useTabStops=118]="useTabStops",Z[Z.wordSeparators=119]="wordSeparators",Z[Z.wordWrap=120]="wordWrap",Z[Z.wordWrapBreakAfterCharacters=121]="wordWrapBreakAfterCharacters",Z[Z.wordWrapBreakBeforeCharacters=122]="wordWrapBreakBeforeCharacters",Z[Z.wordWrapColumn=123]="wordWrapColumn",Z[Z.wordWrapOverride1=124]="wordWrapOverride1",Z[Z.wordWrapOverride2=125]="wordWrapOverride2",Z[Z.wrappingIndent=126]="wrappingIndent",Z[Z.wrappingStrategy=127]="wrappingStrategy",Z[Z.showDeprecated=128]="showDeprecated",Z[Z.inlayHints=129]="inlayHints",Z[Z.editorClassName=130]="editorClassName",Z[Z.pixelRatio=131]="pixelRatio",Z[Z.tabFocusMode=132]="tabFocusMode",Z[Z.layoutInfo=133]="layoutInfo",Z[Z.wrappingInfo=134]="wrappingInfo",(J=m||(m={}))[J.TextDefined=0]="TextDefined",J[J.LF=1]="LF",J[J.CRLF=2]="CRLF",(ee=f||(f={}))[ee.LF=0]="LF",ee[ee.CRLF=1]="CRLF",(et=C||(C={}))[et.None=0]="None",et[et.Indent=1]="Indent",et[et.IndentOutdent=2]="IndentOutdent",et[et.Outdent=3]="Outdent",(ei=b||(b={}))[ei.Both=0]="Both",ei[ei.Right=1]="Right",ei[ei.Left=2]="Left",ei[ei.None=3]="None",(er=v||(v={}))[er.Type=1]="Type",er[er.Parameter=2]="Parameter",(en=_||(_={}))[en.Automatic=0]="Automatic",en[en.Explicit=1]="Explicit",(eo=S||(S={}))[eo.DependsOnKbLayout=-1]="DependsOnKbLayout",eo[eo.Unknown=0]="Unknown",eo[eo.Backspace=1]="Backspace",eo[eo.Tab=2]="Tab",eo[eo.Enter=3]="Enter",eo[eo.Shift=4]="Shift",eo[eo.Ctrl=5]="Ctrl",eo[eo.Alt=6]="Alt",eo[eo.PauseBreak=7]="PauseBreak",eo[eo.CapsLock=8]="CapsLock",eo[eo.Escape=9]="Escape",eo[eo.Space=10]="Space",eo[eo.PageUp=11]="PageUp",eo[eo.PageDown=12]="PageDown",eo[eo.End=13]="End",eo[eo.Home=14]="Home",eo[eo.LeftArrow=15]="LeftArrow",eo[eo.UpArrow=16]="UpArrow",eo[eo.RightArrow=17]="RightArrow",eo[eo.DownArrow=18]="DownArrow",eo[eo.Insert=19]="Insert",eo[eo.Delete=20]="Delete",eo[eo.Digit0=21]="Digit0",eo[eo.Digit1=22]="Digit1",eo[eo.Digit2=23]="Digit2",eo[eo.Digit3=24]="Digit3",eo[eo.Digit4=25]="Digit4",eo[eo.Digit5=26]="Digit5",eo[eo.Digit6=27]="Digit6",eo[eo.Digit7=28]="Digit7",eo[eo.Digit8=29]="Digit8",eo[eo.Digit9=30]="Digit9",eo[eo.KeyA=31]="KeyA",eo[eo.KeyB=32]="KeyB",eo[eo.KeyC=33]="KeyC",eo[eo.KeyD=34]="KeyD",eo[eo.KeyE=35]="KeyE",eo[eo.KeyF=36]="KeyF",eo[eo.KeyG=37]="KeyG",eo[eo.KeyH=38]="KeyH",eo[eo.KeyI=39]="KeyI",eo[eo.KeyJ=40]="KeyJ",eo[eo.KeyK=41]="KeyK",eo[eo.KeyL=42]="KeyL",eo[eo.KeyM=43]="KeyM",eo[eo.KeyN=44]="KeyN",eo[eo.KeyO=45]="KeyO",eo[eo.KeyP=46]="KeyP",eo[eo.KeyQ=47]="KeyQ",eo[eo.KeyR=48]="KeyR",eo[eo.KeyS=49]="KeyS",eo[eo.KeyT=50]="KeyT",eo[eo.KeyU=51]="KeyU",eo[eo.KeyV=52]="KeyV",eo[eo.KeyW=53]="KeyW",eo[eo.KeyX=54]="KeyX",eo[eo.KeyY=55]="KeyY",eo[eo.KeyZ=56]="KeyZ",eo[eo.Meta=57]="Meta",eo[eo.ContextMenu=58]="ContextMenu",eo[eo.F1=59]="F1",eo[eo.F2=60]="F2",eo[eo.F3=61]="F3",eo[eo.F4=62]="F4",eo[eo.F5=63]="F5",eo[eo.F6=64]="F6",eo[eo.F7=65]="F7",eo[eo.F8=66]="F8",eo[eo.F9=67]="F9",eo[eo.F10=68]="F10",eo[eo.F11=69]="F11",eo[eo.F12=70]="F12",eo[eo.F13=71]="F13",eo[eo.F14=72]="F14",eo[eo.F15=73]="F15",eo[eo.F16=74]="F16",eo[eo.F17=75]="F17",eo[eo.F18=76]="F18",eo[eo.F19=77]="F19",eo[eo.NumLock=78]="NumLock",eo[eo.ScrollLock=79]="ScrollLock",eo[eo.Semicolon=80]="Semicolon",eo[eo.Equal=81]="Equal",eo[eo.Comma=82]="Comma",eo[eo.Minus=83]="Minus",eo[eo.Period=84]="Period",eo[eo.Slash=85]="Slash",eo[eo.Backquote=86]="Backquote",eo[eo.BracketLeft=87]="BracketLeft",eo[eo.Backslash=88]="Backslash",eo[eo.BracketRight=89]="BracketRight",eo[eo.Quote=90]="Quote",eo[eo.OEM_8=91]="OEM_8",eo[eo.IntlBackslash=92]="IntlBackslash",eo[eo.Numpad0=93]="Numpad0",eo[eo.Numpad1=94]="Numpad1",eo[eo.Numpad2=95]="Numpad2",eo[eo.Numpad3=96]="Numpad3",eo[eo.Numpad4=97]="Numpad4",eo[eo.Numpad5=98]="Numpad5",eo[eo.Numpad6=99]="Numpad6",eo[eo.Numpad7=100]="Numpad7",eo[eo.Numpad8=101]="Numpad8",eo[eo.Numpad9=102]="Numpad9",eo[eo.NumpadMultiply=103]="NumpadMultiply",eo[eo.NumpadAdd=104]="NumpadAdd",eo[eo.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",eo[eo.NumpadSubtract=106]="NumpadSubtract",eo[eo.NumpadDecimal=107]="NumpadDecimal",eo[eo.NumpadDivide=108]="NumpadDivide",eo[eo.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",eo[eo.ABNT_C1=110]="ABNT_C1",eo[eo.ABNT_C2=111]="ABNT_C2",eo[eo.AudioVolumeMute=112]="AudioVolumeMute",eo[eo.AudioVolumeUp=113]="AudioVolumeUp",eo[eo.AudioVolumeDown=114]="AudioVolumeDown",eo[eo.BrowserSearch=115]="BrowserSearch",eo[eo.BrowserHome=116]="BrowserHome",eo[eo.BrowserBack=117]="BrowserBack",eo[eo.BrowserForward=118]="BrowserForward",eo[eo.MediaTrackNext=119]="MediaTrackNext",eo[eo.MediaTrackPrevious=120]="MediaTrackPrevious",eo[eo.MediaStop=121]="MediaStop",eo[eo.MediaPlayPause=122]="MediaPlayPause",eo[eo.LaunchMediaPlayer=123]="LaunchMediaPlayer",eo[eo.LaunchMail=124]="LaunchMail",eo[eo.LaunchApp2=125]="LaunchApp2",eo[eo.Clear=126]="Clear",eo[eo.MAX_VALUE=127]="MAX_VALUE",(es=y||(y={}))[es.Hint=1]="Hint",es[es.Info=2]="Info",es[es.Warning=4]="Warning",es[es.Error=8]="Error",(ea=k||(k={}))[ea.Unnecessary=1]="Unnecessary",ea[ea.Deprecated=2]="Deprecated",(el=w||(w={}))[el.Inline=1]="Inline",el[el.Gutter=2]="Gutter",(ec=x||(x={}))[ec.UNKNOWN=0]="UNKNOWN",ec[ec.TEXTAREA=1]="TEXTAREA",ec[ec.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",ec[ec.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",ec[ec.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",ec[ec.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",ec[ec.CONTENT_TEXT=6]="CONTENT_TEXT",ec[ec.CONTENT_EMPTY=7]="CONTENT_EMPTY",ec[ec.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",ec[ec.CONTENT_WIDGET=9]="CONTENT_WIDGET",ec[ec.OVERVIEW_RULER=10]="OVERVIEW_RULER",ec[ec.SCROLLBAR=11]="SCROLLBAR",ec[ec.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",ec[ec.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(ed=E||(E={}))[ed.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",ed[ed.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",ed[ed.TOP_CENTER=2]="TOP_CENTER",(eu=L||(L={}))[eu.Left=1]="Left",eu[eu.Center=2]="Center",eu[eu.Right=4]="Right",eu[eu.Full=7]="Full",(eh=T||(T={}))[eh.Left=0]="Left",eh[eh.Right=1]="Right",eh[eh.None=2]="None",eh[eh.LeftOfInjectedText=3]="LeftOfInjectedText",eh[eh.RightOfInjectedText=4]="RightOfInjectedText",(eg=I||(I={}))[eg.Off=0]="Off",eg[eg.On=1]="On",eg[eg.Relative=2]="Relative",eg[eg.Interval=3]="Interval",eg[eg.Custom=4]="Custom",(ep=D||(D={}))[ep.None=0]="None",ep[ep.Text=1]="Text",ep[ep.Blocks=2]="Blocks",(em=M||(M={}))[em.Smooth=0]="Smooth",em[em.Immediate=1]="Immediate",(ef=A||(A={}))[ef.Auto=1]="Auto",ef[ef.Hidden=2]="Hidden",ef[ef.Visible=3]="Visible",(eC=P||(P={}))[eC.LTR=0]="LTR",eC[eC.RTL=1]="RTL",(eb=R||(R={}))[eb.Invoke=1]="Invoke",eb[eb.TriggerCharacter=2]="TriggerCharacter",eb[eb.ContentChange=3]="ContentChange",(ev=N||(N={}))[ev.File=0]="File",ev[ev.Module=1]="Module",ev[ev.Namespace=2]="Namespace",ev[ev.Package=3]="Package",ev[ev.Class=4]="Class",ev[ev.Method=5]="Method",ev[ev.Property=6]="Property",ev[ev.Field=7]="Field",ev[ev.Constructor=8]="Constructor",ev[ev.Enum=9]="Enum",ev[ev.Interface=10]="Interface",ev[ev.Function=11]="Function",ev[ev.Variable=12]="Variable",ev[ev.Constant=13]="Constant",ev[ev.String=14]="String",ev[ev.Number=15]="Number",ev[ev.Boolean=16]="Boolean",ev[ev.Array=17]="Array",ev[ev.Object=18]="Object",ev[ev.Key=19]="Key",ev[ev.Null=20]="Null",ev[ev.EnumMember=21]="EnumMember",ev[ev.Struct=22]="Struct",ev[ev.Event=23]="Event",ev[ev.Operator=24]="Operator",ev[ev.TypeParameter=25]="TypeParameter",(e_=F||(F={}))[e_.Deprecated=1]="Deprecated",(eS=O||(O={}))[eS.Hidden=0]="Hidden",eS[eS.Blink=1]="Blink",eS[eS.Smooth=2]="Smooth",eS[eS.Phase=3]="Phase",eS[eS.Expand=4]="Expand",eS[eS.Solid=5]="Solid",(ey=B||(B={}))[ey.Line=1]="Line",ey[ey.Block=2]="Block",ey[ey.Underline=3]="Underline",ey[ey.LineThin=4]="LineThin",ey[ey.BlockOutline=5]="BlockOutline",ey[ey.UnderlineThin=6]="UnderlineThin",(ek=W||(W={}))[ek.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",ek[ek.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",ek[ek.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",ek[ek.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter",(ew=z||(z={}))[ew.None=0]="None",ew[ew.Same=1]="Same",ew[ew.Indent=2]="Indent",ew[ew.DeepIndent=3]="DeepIndent"},832432:function(e,t,i){"use strict";i.r(t),i.d(t,{LinesLayout:function(){return s}});var r=i("266763");class n{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;let t=this._inserts,i=this._changes,r=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,r)}}class o{constructor(e,t,i,r,n){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=r,this.minWidth=n,this.prefixSum=0}}class s{constructor(e,t,i,o){this._instanceId=r.singleLetterHash(++s.INSTANCE_COUNT),this._pendingChanges=new n,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=o}static findInsertionIndex(e,t,i){let r=0,n=e.length;for(;r<n;){let o=r+n>>>1;t===e[o].afterLineNumber?i<e[o].ordinal?n=o:r=o+1:t<e[o].afterLineNumber?n=o:r=o+1}return r}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{let i={insertWhitespace:(e,i,r,n)=>{t=!0,e|=0,i|=0,r|=0,n|=0;let s=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new o(s,e,i,r,n)),s},changeOneWhitespace:(e,i,r)=>{t=!0,i|=0,r|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:r})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}};e(i)}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(let t of e)this._insertWhitespace(t);for(let e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(let e of i){let t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}let r=new Set;for(let e of i)r.add(e.id);let n=new Map;for(let e of t)n.set(e.id,e);let o=e=>{let t=[];for(let i of e)if(!r.has(i.id)){if(n.has(i.id)){let e=n.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},s=o(this._arr).concat(o(e));s.sort((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber),this._arr=s,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){let t=s.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){let t=this._arr;for(let i=0,r=t.length;i<r;i++)if(t[i].id===e)return i;return -1}_changeOneWhitespace(e,t,i){let r=this._findWhitespaceIndex(e);if(-1!==r&&(this._arr[r].height!==i&&(this._arr[r].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,r-1)),this._arr[r].afterLineNumber!==t)){let e=this._arr[r];this._removeWhitespace(r),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let i=0,r=this._arr.length;i<r;i++){let r=this._arr[i].afterLineNumber;e<=r&&r<=t?this._arr[i].afterLineNumber=e-1:r>t&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,r=this._arr.length;i<r;i++){let r=this._arr[i].afterLineNumber;e<=r&&(this._arr[i].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return(this._checkPendingChanges(),0===this._arr.length)?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let i=t;i<=e;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();let e=this._lineHeight*this._lineCount;return e+this.getWhitespacesTotalHeight()+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;let t=this._findLastWhitespaceBeforeLineNumber(e);return -1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;let t=this._arr,i=0,r=t.length-1;for(;i<=r;){let n=(r-i|0)/2|0,o=i+n|0;if(t[o].afterLineNumber<e){if(o+1>=t.length||t[o+1].afterLineNumber>=e)return o;i=o+1|0}else r=o-1|0}return -1}_findFirstWhitespaceAfterLineNumber(e){e|=0;let t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t<this._arr.length?t:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e,t=!1){let i;return this._checkPendingChanges(),e|=0,i=e>1?this._lineHeight*(e-1):0,i+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){this._checkPendingChanges(),e|=0;let i=this._lineHeight*e;return i+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;t<i;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){return this._checkPendingChanges(),e>this.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){return 0!==this._paddingBottom&&(this._checkPendingChanges(),e>=this.getLinesTotalHeight()-this._paddingBottom)}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;let t=0|this._lineCount,i=this._lineHeight,r=1,n=t;for(;r<n;){let t=(r+n)/2|0,o=0|this.getVerticalOffsetForLineNumber(t);if(e>=o+i)r=t+1;else{if(e>=o)return t;n=t}}return r>t?t:r}getLinesViewportData(e,t){let i,r;this._checkPendingChanges(),e|=0,t|=0;let n=this._lineHeight,o=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(o),a=0|this._lineCount,l=0|this.getFirstWhitespaceIndexAfterLineNumber(o),c=0|this.getWhitespacesCount();-1===l?(l=c,r=a+1,i=0):(r=0|this.getAfterLineNumberForWhitespaceIndex(l),i=0|this.getHeightForWhitespaceIndex(l));let d=s,u=d,h=0;s>=5e5&&(u-=h=Math.floor((h=5e5*Math.floor(s/5e5))/n)*n);let g=[],p=e+(t-e)/2,m=-1;for(let e=o;e<=a;e++){if(-1===m){let t=d,i=d+n;(t<=p&&p<i||t>p)&&(m=e)}for(d+=n,g[e-o]=u,u+=n;r===e;)u+=i,d+=i,++l>=c?r=a+1:(r=0|this.getAfterLineNumberForWhitespaceIndex(l),i=0|this.getHeightForWhitespaceIndex(l));if(d>=t){a=e;break}}-1===m&&(m=a);let f=0|this.getVerticalOffsetForLineNumber(a),C=o,b=a;return C<b&&s<e&&C++,C<b&&f+n>t&&b--,{bigNumbersDelta:h,startLineNumber:o,endLineNumber:a,relativeVerticalOffset:g,centeredLineNumber:m,completelyVisibleStartLineNumber:C,completelyVisibleEndLineNumber:b}}getVerticalOffsetForWhitespaceIndex(e){let t,i;this._checkPendingChanges(),e|=0;let r=this.getAfterLineNumberForWhitespaceIndex(e);return t=r>=1?this._lineHeight*r:0,t+(i=e>0?this.getWhitespacesAccumulatedHeight(e-1):0)+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return -1;let r=this.getVerticalOffsetForWhitespaceIndex(i),n=this.getHeightForWhitespaceIndex(i);if(e>=r+n)return -1;for(;t<i;){let r=Math.floor((t+i)/2),n=this.getVerticalOffsetForWhitespaceIndex(r),o=this.getHeightForWhitespaceIndex(r);if(e>=n+o)t=r+1;else{if(e>=n)return r;i=r}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;let t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0||t>=this.getWhitespacesCount())return null;let i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;let r=this.getHeightForWhitespaceIndex(t),n=this.getIdForWhitespaceIndex(t);return{id:n,afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:r}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;let i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),r=this.getWhitespacesCount()-1;if(i<0)return[];let n=[];for(let e=i;e<=r;e++){let i=this.getVerticalOffsetForWhitespaceIndex(e),r=this.getHeightForWhitespaceIndex(e);if(i>=t)break;n.push({id:this.getIdForWhitespaceIndex(e),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(e),verticalOffset:i,height:r})}return n}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}s.INSTANCE_COUNT=0},838643:function(e,t,i){"use strict";i.r(t),i.d(t,{InlineDecoration:function(){return c},MinimapLinesRenderingData:function(){return s},OverviewRulerDecorationsGroup:function(){return h},SingleLineInlineDecoration:function(){return d},ViewLineData:function(){return a},ViewLineRenderingData:function(){return l},ViewModelDecoration:function(){return u},Viewport:function(){return o}});var r=i("266763"),n=i("761045");class o{constructor(e,t,i,r){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|r}}class s{constructor(e,t){this.tabSize=e,this.data=t}}class a{constructor(e,t,i,r,n,o,s){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=r,this.startVisibleColumn=n,this.tokens=o,this.inlineDecorations=s}}class l{constructor(e,t,i,r,n,o,s,a,c,d){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=r,this.isBasicASCII=l.isBasicASCII(i,o),this.containsRTL=l.containsRTL(i,this.isBasicASCII,n),this.tokens=s,this.inlineDecorations=a,this.tabSize=c,this.startVisibleColumn=d}static isBasicASCII(e,t){return!t||r.isBasicASCII(e)}static containsRTL(e,t,i){return!t&&!!i&&r.containsRTL(e)}}class c{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class d{constructor(e,t,i,r){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=r}toInlineDecoration(e){return new c(new n.Range(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class h{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static cmp(e,t){if(e.zIndex===t.zIndex)return e.color<t.color?-1:e.color>t.color?1:0;return e.zIndex-t.zIndex}}},849487:function(e,t,i){"use strict";i.r(t),i.d(t,{ViewContext:function(){return n}});var r=i("33317");class n{constructor(e,t,i){this.configuration=e,this.theme=new r.EditorTheme(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}},69074:function(e,t,i){"use strict";i.r(t),i.d(t,{CodeActionUi:function(){return f}});var r,n,o,s=i("161111"),a=i("308220"),l=i("919527"),c=i("402304"),d=i("706301"),u=i("4601"),h=i("1460"),g=function(e,t,i,r){return new(i||(i=Promise))(function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},p=function(e,t,i,r,n){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(e,i):n?n.value=i:t.set(e,i),i},m=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)};let f=class extends l.Disposable{constructor(e,t,i,r,n){super(),this._editor=e,this.delegate=r,this._activeCodeActions=this._register(new l.MutableDisposable),this.previewOn=!1,o.set(this,!1),this._codeActionWidget=new a.Lazy(()=>this._register(n.createInstance(u.CodeActionMenu,this._editor,{onSelectCodeAction:(e,t)=>g(this,void 0,void 0,function*(){this.previewOn?this.delegate.applyCodeAction(e,!0,!!this.previewOn):this.delegate.applyCodeAction(e,!0,!!t.preview),this.previewOn=!1})}))),this._lightBulbWidget=new a.Lazy(()=>{let e=this._register(n.createInstance(h.LightBulbWidget,this._editor,t,i));return this._register(e.onClick(e=>this.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1,fromLightbulb:!0}))),e})}dispose(){p(this,o,!0,"f"),super.dispose()}hideCodeActionWidget(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().hideCodeActionWidget()}onEnter(){this._codeActionWidget.hasValue()&&this._codeActionWidget.getValue().onEnterSet()}onPreviewEnter(){this.previewOn=!0,this.onEnter()}navigateList(e){this._codeActionWidget.hasValue()&&(e?this._codeActionWidget.getValue().navigateListWithKeysUp():this._codeActionWidget.getValue().navigateListWithKeysDown())}update(e){var t,i,r,n,a;return g(this,void 0,void 0,function*(){let l;if(1!==e.type){null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide();return}try{l=yield e.actions}catch(e){(0,s.onUnexpectedError)(e);return}if(!m(this,o,"f")){if(this._lightBulbWidget.getValue().update(l,e.trigger,e.position),1===e.trigger.type){if(null===(i=e.trigger.filter)||void 0===i?void 0:i.include){let t=this.tryGetValidActionToApply(e.trigger,l);if(t){try{this._lightBulbWidget.getValue().hide(),yield this.delegate.applyCodeAction(t,!1,!1)}finally{l.dispose()}return}if(e.trigger.context){let t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,l);if(t&&t.action.disabled){null===(r=c.MessageController.get(this._editor))||void 0===r||r.showMessage(t.action.disabled,e.trigger.context.position),l.dispose();return}}}let t=!!(null===(n=e.trigger.filter)||void 0===n?void 0:n.include);if(e.trigger.context&&(!l.allActions.length||!t&&!l.validActions.length)){null===(a=c.MessageController.get(this._editor))||void 0===a||a.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=l,l.dispose();return}this._activeCodeActions.value=l,this._codeActionWidget.getValue().show(e.trigger,l,e.position,{includeDisabledActions:t,fromLightbulb:!1})}else this._codeActionWidget.getValue().isVisible?l.dispose():this._activeCodeActions.value=l}})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&("first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length))return t.allActions.find(({action:e})=>e.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&("first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length))return t.validActions[0]}showCodeActionList(e,t,i,r){return g(this,void 0,void 0,function*(){this._codeActionWidget.getValue().show(e,t,i,r)})}};o=new WeakMap,f=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([(r=4,n=d.IInstantiationService,function(e,t){n(e,t,4)})],f)},1460:function(e,t,i){"use strict";i.r(t),i.d(t,{LightBulbWidget:function(){return C}});var r,n,o,s,a=i("409737"),l=i("266569"),c=i("871628"),d=i("916904"),u=i("919527");i("546695");var h=i("247892"),g=i("708339"),p=i("534752"),m=i("897085"),f=i("439703");(r=s||(s={})).Hidden={type:0},r.Showing=class e{constructor(e,t,i,r){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=r,this.type=1}};let C=class e extends u.Disposable{constructor(e,t,i,r){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=r,this._onClick=this._register(new d.Emitter),this.onClick=this._onClick.event,this._state=s.Hidden,this._domNode=document.createElement("div"),this._domNode.className=c.Codicon.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(e=>{let t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()})),l.Gesture.ignoreTarget(this._domNode),this._register(a.addStandardDisposableGenericMouseDownListener(this._domNode,e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();let{top:t,height:i}=a.getDomNodePagePosition(this._domNode),r=this._editor.getOption(61),n=Math.floor(r/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(n+=r),this._onClick.fire({x:e.posx,y:t+i+n,actions:this.state.actions,trigger:this.state.trigger})})),this._register(a.addDisposableListener(this._domNode,"mouseenter",e=>{(1&e.buttons)==1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(59)&&!this._editor.getOption(59).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(t,i,r){if(t.validActions.length<=0)return this.hide();let n=this._editor.getOptions();if(!n.get(59).enabled)return this.hide();let o=this._editor.getModel();if(!o)return this.hide();let{lineNumber:a,column:l}=o.validatePosition(r),c=o.getOptions().tabSize,d=n.get(46),u=o.getLineContent(a),g=(0,h.computeIndentLevel)(u,c),p=d.spaceWidth*g>22,m=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1),f=a;if(!p){if(a>1&&!m(a-1))f-=1;else if(m(a+1)){if(l*d.spaceWidth<22)return this.hide()}else f+=1}this.state=new s.Showing(t,i,r,{position:{lineNumber:f,column:1},preference:e._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=s.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(1===this.state.type&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...c.Codicon.lightBulb.classNamesArray),this._domNode.classList.add(...c.Codicon.lightbulbAutofix.classNamesArray);let e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e){this.title=g.localize("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",e.getLabel());return}}this._domNode.classList.remove(...c.Codicon.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...c.Codicon.lightBulb.classNamesArray);let e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=g.localize("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=g.localize("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};C._posPref=[0],C=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([(n=3,o=p.IKeybindingService,function(e,t){o(e,t,3)})],C),(0,f.registerThemingParticipant)((e,t)=>{var i;let r=null===(i=e.getColor(m.editorBackground))||void 0===i?void 0:i.transparent(.7),n=e.getColor(m.editorLightBulbForeground);n&&t.addRule(`
25
- .monaco-editor .contentWidgets ${c.Codicon.lightBulb.cssSelector} {
26
- color: ${n};
27
- background-color: ${r};
28
- }`);let o=e.getColor(m.editorLightBulbAutoFixForeground);o&&t.addRule(`
29
- .monaco-editor .contentWidgets ${c.Codicon.lightbulbAutofix.cssSelector} {
30
- color: ${o};
31
- background-color: ${r};
32
- }`)})},653915:function(e,t,i){"use strict";i.r(t);var r=i("919527"),n=i("159923"),o=i("761045"),s=i("568487"),a=i("684315"),l=i("362003"),c=i("88936");class d extends r.Disposable{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(e=>this.onMouseDown(e)))}dispose(){super.dispose()}onMouseDown(e){let t=e.target;if(6!==t.type||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==s.ColorDecorationInjectedTextMarker||!t.range)return;let i=this._editor.getContribution(l.ModesHoverController.ID);if(i&&!i.isColorPickerVisible()){let e=new o.Range(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);i.showContentHover(e,1,!1)}}}d.ID="editor.contrib.colorContribution",(0,n.registerEditorContribution)(d.ID,d),c.HoverParticipantRegistry.register(a.ColorHoverParticipant)},361861:function(e,t,i){"use strict";i.r(t),i.d(t,{DragAndDropCommand:function(){return o}});var r=i("761045"),n=i("861065");class o{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){let i=e.getValueInRange(this.selection);if(!this.copy&&t.addEditOperation(this.selection,null),t.addEditOperation(new r.Range(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new n.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new n.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new n.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new n.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,(this.selection.startLineNumber,this.selection.endLineNumber,this.targetPosition.column-this.selection.endColumn+this.selection.startColumn),this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new n.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn)}computeCursorState(e,t){return this.targetSelection}}},399742:function(e,t,i){"use strict";i.r(t),i.d(t,{CONTEXT_FIND_INPUT_FOCUSED:function(){return f},CONTEXT_FIND_WIDGET_VISIBLE:function(){return m},CONTEXT_REPLACE_INPUT_FOCUSED:function(){return C},FIND_IDS:function(){return k},FindModelBoundToEditorModel:function(){return x},MATCHES_LIMIT:function(){return w},ToggleCaseSensitiveKeybinding:function(){return b},TogglePreserveCaseKeybinding:function(){return y},ToggleRegexKeybinding:function(){return _},ToggleSearchScopeKeybinding:function(){return S},ToggleWholeWordKeybinding:function(){return v}});var r=i("603868"),n=i("467518"),o=i("919527"),s=i("838846"),a=i("457938"),l=i("761045"),c=i("861065"),d=i("783968"),u=i("106014"),h=i("296757"),g=i("982298"),p=i("549436");let m=new p.RawContextKey("findWidgetVisible",!1);m.toNegated();let f=new p.RawContextKey("findInputFocussed",!1),C=new p.RawContextKey("replaceInputFocussed",!1),b={primary:545,mac:{primary:2593}},v={primary:565,mac:{primary:2613}},_={primary:560,mac:{primary:2608}},S={primary:554,mac:{primary:2602}},y={primary:558,mac:{primary:2606}},k={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",StartFindWithArgs:"editor.actions.findWithArgs",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},w=19999;class x{constructor(e,t){this._toDispose=new o.DisposableStore,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new n.TimeoutTimer,this._decorations=new u.FindDecorations(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new n.RunOnceScheduler(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(e=>{(3===e.reason||5===e.reason||6===e.reason)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(e=>{!this._ignoreModelContentChanged&&(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,o.dispose)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed)this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t?t:e.getFullModelRange()}research(e,t){let i=null;void 0!==t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map(e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new l.Range(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e}));let n=this._findMatches(i,!1,w);this._decorations.set(n,i);let o=this._editor.getSelection(),s=this._decorations.getCurrentMatchesPosition(o);if(0===s&&n.length>0){let e=(0,r.findFirstInSorted)(n.map(e=>e.range),e=>l.Range.compareRangesUsingStarts(e,o)>=0);s=e>0?e-1+1:s}this._state.changeMatchInfo(s,this._decorations.getCount(),void 0),e&&this._editor.getOption(37).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:i,column:r}=e,n=this._editor.getModel();return t||1===r?(1===i?i=n.getLineCount():i--,r=n.getLineMaxColumn(i)):r--,new a.Position(i,r)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){let t=this._decorations.matchAfterPosition(e);t&&this._setCurrentFindMatch(t);return}if(this._decorations.getCount()<w){let t=this._decorations.matchBeforePosition(e);t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),t&&this._setCurrentFindMatch(t);return}if(this._cannotFind())return;let i=this._decorations.getFindScope(),r=x._getSearchRange(this._editor.getModel(),i);r.getEndPosition().isBefore(e)&&(e=r.getEndPosition()),e.isBefore(r.getStartPosition())&&(e=r.getEndPosition());let{lineNumber:n,column:o}=e,s=this._editor.getModel(),l=new a.Position(n,o),c=s.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,!1);if(c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),c=s.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,!1)),c){if(!t&&!r.containsRange(c.range))return this._moveToPrevMatch(c.range.getStartPosition(),!0);this._setCurrentFindMatch(c.range)}}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:i,column:r}=e,n=this._editor.getModel();return t||r===n.getLineMaxColumn(i)?(i===n.getLineCount()?i=1:i++,r=1):r++,new a.Position(i,r)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){let t=this._decorations.matchBeforePosition(e);t&&this._setCurrentFindMatch(t);return}if(this._decorations.getCount()<w){let t=this._decorations.matchAfterPosition(e);t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),t&&this._setCurrentFindMatch(t);return}let t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i,r=!1){if(this._cannotFind())return null;let n=this._decorations.getFindScope(),o=x._getSearchRange(this._editor.getModel(),n);o.getEndPosition().isBefore(e)&&(e=o.getStartPosition()),e.isBefore(o.getStartPosition())&&(e=o.getStartPosition());let{lineNumber:s,column:l}=e,c=this._editor.getModel(),d=new a.Position(s,l),u=c.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t);return(i&&u&&u.range.isEmpty()&&u.range.getStartPosition().equals(d)&&(d=this._nextSearchPosition(d),u=c.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t)),u)?r||o.containsRange(u.range)?u:this._getNextMatch(u.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_getReplacePattern(){return this._state.isRegex?(0,g.parseReplaceString)(this._state.replaceString):g.ReplacePattern.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;let e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i){if(t.equalsRange(i.range)){let r=e.buildReplaceString(i.matches,this._state.preserveCase),n=new s.ReplaceCommand(t,r);this._executeEditorCommand("replace",n),this._decorations.setStartPosition(new a.Position(t.startLineNumber,t.startColumn+r.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}}_findMatches(e,t,i){let r=(e||[null]).map(e=>x._getSearchRange(this._editor.getModel(),e));return this._editor.getModel().findMatches(this._state.searchString,r,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null,t,i)}replaceAll(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=w?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){let e;let t=new d.SearchParams(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(119):null).parseSearchRequest();if(!t)return;let i=t.regex;if(!i.multiline){let e="mu";i.ignoreCase&&(e+="i"),i.global&&(e+="g"),i=new RegExp(i.source,e)}let r=this._editor.getModel(),n=r.getValue(1),o=r.getFullModelRange(),a=this._getReplacePattern(),l=this._state.preserveCase;e=a.hasReplacementPatterns||l?n.replace(i,function(){return a.buildReplaceString(arguments,l)}):n.replace(i,a.buildReplaceString(null,l));let c=new s.ReplaceCommandThatPreservesSelection(o,e,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)}_regularReplaceAll(e){let t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),r=[];for(let e=0,n=i.length;e<n;e++)r[e]=t.buildReplaceString(i[e].matches,this._state.preserveCase);let n=new h.ReplaceAllCommand(this._editor.getSelection(),i.map(e=>e.range),r);this._executeEditorCommand("replaceAll",n)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),t=this._findMatches(e,!1,1073741824).map(e=>new c.Selection(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)),i=this._editor.getSelection();for(let e=0,r=t.length;e<r;e++)if(t[e].equalsRange(i)){t=[i].concat(t.slice(0,e)).concat(t.slice(e+1));break}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}},296757:function(e,t,i){"use strict";i.r(t),i.d(t,{ReplaceAllCommand:function(){return n}});var r=i("761045");class n{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort((e,t)=>r.Range.compareRangesUsingStarts(e.range,t.range));let i=[],n=e[0];for(let t=1;t<e.length;t++)n.range.endLineNumber===e[t].range.startLineNumber&&n.range.endColumn===e[t].range.startColumn?(n.range=n.range.plusRange(e[t].range),n.text=n.text+e[t].text):(i.push(n),n=e[t]);for(let e of(i.push(n),i))t.addEditOperation(e.range,e.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}},891929:function(e,t,i){"use strict";i.r(t),i.d(t,{FoldingModel:function(){return s},getNextFoldLine:function(){return C},getParentFoldLine:function(){return m},getPreviousFoldLine:function(){return f},setCollapseStateAtLevel:function(){return u},setCollapseStateForMatchingLines:function(){return g},setCollapseStateForRest:function(){return h},setCollapseStateForType:function(){return p},setCollapseStateLevelsDown:function(){return l},setCollapseStateLevelsUp:function(){return c},setCollapseStateUp:function(){return d},toggleCollapseState:function(){return a}});var r=i("916904"),n=i("265761"),o=i("716989");class s{constructor(e,t){this._updateEventEmitter=new r.Emitter,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new n.FoldingRegions(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 r=0,n=-1,o=-1,s=e=>{for(;r<e;){let e=this._regions.getEndLineNumber(r),t=this._regions.isCollapsed(r);if(e<=n){let n=0!==this.regions.getSource(r);i.changeDecorationOptions(this._editorDecorationIds[r],this._decorationProvider.getDecorationOption(t,e<=o,n))}t&&e>o&&(o=e),r++}};for(let i of e){let e=i.regionIndex,r=this._editorDecorationIds[e];if(r&&!t[r]){t[r]=!0,s(e);let i=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,i),n=Math.max(n,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 r=this._regions.toFoldRange(e);(0===r.source||!i(r))&&t.push(r)}this.updatePost(n.FoldingRegions.fromFoldRanges(t))}update(e,t=[]){let i=this._currentFoldedOrManualRanges(t),r=n.FoldingRegions.sanitizeAndMerge(e,i,this._textModel.getLineCount());this.updatePost(n.FoldingRegions.fromFoldRanges(r))}updatePost(e){let t=[],i=-1;for(let r=0,n=e.length;r<n;r++){let n=e.getStartLineNumber(r),o=e.getEndLineNumber(r),s=e.isCollapsed(r),a=0!==e.getSource(r),l={startLineNumber:n,startColumn:this._textModel.getLineMaxColumn(n),endLineNumber:o,endColumn:this._textModel.getLineMaxColumn(o)+1};t.push({range:l,options:this._decorationProvider.getDecorationOption(s,o<=i,a)}),s&&o>i&&(i=o)}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 r of e)if(t<r&&r<=i)return!0;return!1},i=[];for(let e=0,r=this._regions.length;e<r;e++){let r=this.regions.isCollapsed(e),n=this.regions.getSource(e);if(r||0!==n){let o=this._regions.toFoldRange(e),s=this._textModel.getDecorationRange(this._editorDecorationIds[e]);s&&(r&&(t(s.startLineNumber,s.endLineNumber)||s.endLineNumber-s.startLineNumber!=o.endLineNumber-o.startLineNumber)&&(r=!1),i.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,type:o.type,isCollapsed:r,source:n}))}}return i}getMemento(){let e=this._currentFoldedOrManualRanges(),t=[];for(let i=0,r=e.length;i<r;i++){let r=e[i],n=this._getLinesChecksum(r.startLineNumber+1,r.endLineNumber);t.push({startLineNumber:r.startLineNumber,endLineNumber:r.endLineNumber,isCollapsed:r.isCollapsed,source:r.source,checksum:n})}return t.length>0?t:void 0}applyMemento(e){var t,i;if(!Array.isArray(e))return;let r=[],o=this._textModel.getLineCount();for(let n of e){if(n.startLineNumber>=n.endLineNumber||n.startLineNumber<1||n.endLineNumber>o)continue;let e=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);(!n.checksum||e===n.checksum)&&r.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,type:void 0,isCollapsed:null===(t=n.isCollapsed)||void 0===t||t,source:null!==(i=n.source)&&void 0!==i?i:0})}let s=n.FoldingRegions.sanitizeAndMerge(this._regions,r,o);this.updatePost(n.FoldingRegions.fromFoldRanges(s))}_getLinesChecksum(e,t){return(0,o.hash)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){let i=[];if(this._regions){let r=this._regions.findRange(e),n=1;for(;r>=0;){let e=this._regions.toRegion(r);(!t||t(e,n))&&i.push(e),n++,r=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=[],r=e?e.regionIndex+1:0,n=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){let e=[];for(let o=r,s=this._regions.length;o<s;o++){let r=this._regions.toRegion(o);if(this._regions.getStartLineNumber(o)<n){for(;e.length>0&&!r.containedBy(e[e.length-1]);)e.pop();e.push(r),t(r,e.length)&&i.push(r)}else break}}else for(let e=r,o=this._regions.length;e<o;e++){let r=this._regions.toRegion(e);if(this._regions.getStartLineNumber(e)<n)(!t||t(r))&&i.push(r);else break}return i}}function a(e,t,i){let r=[];for(let n of i){let i=e.getRegionAtLine(n);if(i){let n=!i.isCollapsed;if(r.push(i),t>1){let o=e.getRegionsInside(i,(e,i)=>e.isCollapsed!==n&&i<t);r.push(...o)}}}e.toggleCollapseState(r)}function l(e,t,i=Number.MAX_VALUE,r){let n=[];if(r&&r.length>0)for(let o of r){let r=e.getRegionAtLine(o);if(r&&(r.isCollapsed!==t&&n.push(r),i>1)){let o=e.getRegionsInside(r,(e,r)=>e.isCollapsed!==t&&r<i);n.push(...o)}}else{let r=e.getRegionsInside(null,(e,r)=>e.isCollapsed!==t&&r<i);n.push(...r)}e.toggleCollapseState(n)}function c(e,t,i,r){let n=[];for(let o of r){let r=e.getAllRegionsAtLine(o,(e,r)=>e.isCollapsed!==t&&r<=i);n.push(...r)}e.toggleCollapseState(n)}function d(e,t,i){let r=[];for(let n of i){let i=e.getAllRegionsAtLine(n,e=>e.isCollapsed!==t);i.length>0&&r.push(i[0])}e.toggleCollapseState(r)}function u(e,t,i,r){let n=e.getRegionsInside(null,(e,n)=>n===t&&e.isCollapsed!==i&&!r.some(t=>e.containsLine(t)));e.toggleCollapseState(n)}function h(e,t,i){let r=[];for(let t of i){let i=e.getAllRegionsAtLine(t,void 0);i.length>0&&r.push(i[0])}let n=e.getRegionsInside(null,e=>r.every(t=>!t.containedBy(e)&&!e.containedBy(t))&&e.isCollapsed!==t);e.toggleCollapseState(n)}function g(e,t,i){let r=e.textModel,n=e.regions,o=[];for(let e=n.length-1;e>=0;e--)if(i!==n.isCollapsed(e)){let i=n.getStartLineNumber(e);t.test(r.getLineContent(i))&&o.push(n.toRegion(e))}e.toggleCollapseState(o)}function p(e,t,i){let r=e.regions,n=[];for(let e=r.length-1;e>=0;e--)i!==r.isCollapsed(e)&&t===r.getType(e)&&n.push(r.toRegion(e));e.toggleCollapseState(n)}function m(e,t){let i=null,r=t.getRegionAtLine(e);if(null!==r&&e===(i=r.startLineNumber)){let e=r.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,r=0;for(-1!==e&&(r=t.regions.getStartLineNumber(i.parentIndex));null!==i;)if(i.regionIndex>0){if((i=t.regions.toRegion(i.regionIndex-1)).startLineNumber<=r)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 C(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){let e=i.parentIndex,r=0;if(-1!==e)r=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;r=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>=r)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}},99342:function(e,t,i){"use strict";i.r(t),i.d(t,{applyEdits:function(){return o},createDisposableRef:function(){return n},getReadonlyEmptyArray:function(){return l}});var r=i("761045");function n(e,t){return{object:e,dispose:()=>null==t?void 0:t.dispose()}}function o(e,t){let i=new s(e),n=t.map(e=>{let t=r.Range.lift(e.range);return{startOffset:i.getOffset(t.getStartPosition()),endOffset:i.getOffset(t.getEndPosition()),text:e.text}});for(let t of(n.sort((e,t)=>t.startOffset-e.startOffset),n))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}},476269:function(e,t,i){"use strict";i.r(t);var r,n,o=i("794555"),s=i("467518"),a=i("788980"),l=i("919527"),c=i("159923"),d=i("404309"),u=i("761045"),h=i("861065"),g=i("976617"),p=i("63681"),m=i("599599"),f=i("90867"),C=i("708339"),b=i("351553"),v=i("549436"),_=i("897085"),S=i("439703"),y=i("678540");function k(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?C.localize("cursorAdded","Cursor added: {0}",e):C.localize("cursorsAdded","Cursors added: {0}",e);(0,o.status)(t)}}class w extends c.EditorAction{constructor(){super({id:"editor.action.insertCursorAbove",label:C.localize("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:b.MenuId.MenubarSelectionMenu,group:"3_multi",title:C.localize({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let r=!0;i&&!1===i.logicalLine&&(r=!1);let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let o=n.getCursorStates();n.setCursorStates(i.source,3,d.CursorMoveCommands.addCursorUp(n,o,r)),n.revealTopMostCursor(i.source),k(o,n.getCursorStates())}}class x extends c.EditorAction{constructor(){super({id:"editor.action.insertCursorBelow",label:C.localize("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:b.MenuId.MenubarSelectionMenu,group:"3_multi",title:C.localize({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let r=!0;i&&!1===i.logicalLine&&(r=!1);let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let o=n.getCursorStates();n.setCursorStates(i.source,3,d.CursorMoveCommands.addCursorDown(n,o,r)),n.revealBottomMostCursor(i.source),k(o,n.getCursorStates())}}class E extends c.EditorAction{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:C.localize("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:b.MenuId.MenubarSelectionMenu,group:"3_multi",title:C.localize({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let r=e.startLineNumber;r<e.endLineNumber;r++){let e=t.getLineMaxColumn(r);i.push(new h.Selection(r,e,r,e))}e.endColumn>1&&i.push(new h.Selection(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;let i=t.getModel(),r=t.getSelections(),n=t._getViewModel(),o=n.getCursorStates(),s=[];r.forEach(e=>this.getCursorsForSelection(e,i,s)),s.length>0&&t.setSelections(s),k(o,n.getCursorStates())}}class L extends c.EditorAction{constructor(){super({id:"editor.action.addCursorsToBottom",label:C.localize("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(),r=t.getModel().getLineCount(),n=[];for(let e=i[0].startLineNumber;e<=r;e++)n.push(new h.Selection(e,i[0].startColumn,e,i[0].endColumn));let o=t._getViewModel(),s=o.getCursorStates();n.length>0&&t.setSelections(n),k(s,o.getCursorStates())}}class T extends c.EditorAction{constructor(){super({id:"editor.action.addCursorsToTop",label:C.localize("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(),r=[];for(let e=i[0].startLineNumber;e>=1;e--)r.push(new h.Selection(e,i[0].startColumn,e,i[0].endColumn));let n=t._getViewModel(),o=n.getCursorStates();r.length>0&&t.setSelections(r),k(o,n.getCursorStates())}}class I{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class D{constructor(e,t,i,r,n,o,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=r,this.wholeWord=n,this.matchCase=o,this.currentMatch=s}static create(e,t){let i,r,n;if(!e.hasModel())return null;let o=t.getState();if(!e.hasTextFocus()&&o.isRevealed&&o.searchString.length>0)return new D(e,t,!1,o.searchString,o.wholeWord,o.matchCase,null);let s=!1,a=e.getSelections();1===a.length&&a[0].isEmpty()?(s=!0,i=!0,r=!0):(i=o.wholeWord,r=o.matchCase);let l=e.getSelection(),c=null;if(l.isEmpty()){let t=e.getConfiguredWordAtPosition(l.getStartPosition());if(!t)return null;n=t.word,c=new h.Selection(l.startLineNumber,t.startColumn,l.startLineNumber,t.endColumn)}else n=e.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new D(e,t,s,n,i,r,c)}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.Selection(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.Selection(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 M extends l.Disposable{constructor(e){super(),this._sessionDispose=this._register(new l.DisposableStore),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}static get(e){return e.getContribution(M.ID)}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=D.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.Selection(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(!N(this._editor.getModel(),t,i)){let e=this._editor.getModel(),i=[];for(let r=0,n=t.length;r<n;r++)i[r]=this._expandEmptyToWord(e,t[r]);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,r=t.length;i<r;i++){let r=t[i];if(r.range.intersectRanges(e)){t[i]=t[0],t[0]=r;break}}this._setSelections(t.map(e=>new h.Selection(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)))}}}M.ID="editor.contrib.multiCursorController";class A extends c.EditorAction{run(e,t){let i=M.get(t);if(!i)return;let r=f.CommonFindController.get(t);if(!r)return;let n=t._getViewModel();if(n){let e=n.getCursorStates();this._run(i,r),k(e,n.getCursorStates())}}}class P{constructor(e,t,i,r,n){this._model=e,this._searchText=t,this._matchCase=i,this._wordSeparators=r,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,n&&this._model===n._model&&this._searchText===n._searchText&&this._matchCase===n._matchCase&&this._wordSeparators===n._wordSeparators&&this._modelVersionId===n._modelVersionId&&(this._cachedFindMatches=n._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.Range.compareRangesUsingStarts)),this._cachedFindMatches}}let R=class e extends l.Disposable{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.RunOnceScheduler(()=>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.CommonFindController.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 r=i.getSelection();if(r.startLineNumber!==r.endLineNumber)return null;let n=M.get(i);if(!n)return null;let o=f.CommonFindController.get(i);if(!o)return null;let s=n.getSession(o);if(!s){let e=i.getSelections();if(e.length>1){let t=o.getState().matchCase;if(!N(i.getModel(),e,t))return null}s=D.create(i,o)}if(!s||s.currentMatch||/^[ \t]+$/.test(s.searchText)||s.searchText.length>200)return null;let a=o.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 P(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 r=this.state.findMatches(),n=this.editor.getSelections();n.sort(u.Range.compareRangesUsingStarts);let o=[];for(let e=0,t=0,i=r.length,s=n.length;e<i;){let i=r[e];if(t>=s)o.push(i),e++;else{let r=u.Range.compareRangesUsingStarts(i,n[t]);r<0?((n[t].isEmpty()||!u.Range.areIntersecting(i,n[t]))&&o.push(i),e++):(r>0||e++,t++)}}let s=this._languageFeaturesService.documentHighlightProvider.has(i)&&this.editor.getOption(74),a=o.map(t=>({range:t,options:s?e._SELECTION_HIGHLIGHT:e._SELECTION_HIGHLIGHT_OVERVIEW}));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function N(e,t,i){let r=F(e,t[0],!i);for(let n=1,o=t.length;n<o;n++){let o=t[n];if(o.isEmpty()||r!==F(e,o,!i))return!1}return!0}function F(e,t,i){let r=e.getValueInRange(t);return i?r.toLowerCase():r}R.ID="editor.contrib.selectionHighlighter",R._SELECTION_HIGHLIGHT_OVERVIEW=m.ModelDecorationOptions.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",minimap:{color:(0,S.themeColorFromId)(_.minimapSelectionOccurrenceHighlight),position:p.MinimapPosition.Inline},overviewRuler:{color:(0,S.themeColorFromId)(_.overviewRulerSelectionHighlightForeground),position:p.OverviewRulerLane.Center}}),R._SELECTION_HIGHLIGHT=m.ModelDecorationOptions.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),R=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([(r=1,n=y.ILanguageFeaturesService,function(e,t){n(e,t,1)})],R);class O extends c.EditorAction{constructor(){super({id:"editor.action.focusNextCursor",label:C.localize("mutlicursor.focusNextCursor","Focus Next Cursor"),description:{description:C.localize("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;let r=t._getViewModel();if(r.cursorConfig.readOnly)return;r.model.pushStackElement();let n=Array.from(r.getCursorStates()),o=n.shift();o&&(n.push(o),r.setCursorStates(i.source,3,n),r.revealPrimaryCursor(i.source,!0),k(n,r.getCursorStates()))}}class B extends c.EditorAction{constructor(){super({id:"editor.action.focusPreviousCursor",label:C.localize("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),description:{description:C.localize("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;let r=t._getViewModel();if(r.cursorConfig.readOnly)return;r.model.pushStackElement();let n=Array.from(r.getCursorStates()),o=n.pop();o&&(n.unshift(o),r.setCursorStates(i.source,3,n),r.revealPrimaryCursor(i.source,!0),k(n,r.getCursorStates()))}}(0,c.registerEditorContribution)(M.ID,M),(0,c.registerEditorContribution)(R.ID,R),(0,c.registerEditorAction)(w),(0,c.registerEditorAction)(x),(0,c.registerEditorAction)(E),(0,c.registerEditorAction)(class e extends A{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:C.localize("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.focus,primary:2082,weight:100},menuOpts:{menuId:b.MenuId.MenubarSelectionMenu,group:"3_multi",title:C.localize({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}),(0,c.registerEditorAction)(class e extends A{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:C.localize("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:b.MenuId.MenubarSelectionMenu,group:"3_multi",title:C.localize({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}),(0,c.registerEditorAction)(class e extends A{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:C.localize("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.focus,primary:(0,a.KeyChord)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}),(0,c.registerEditorAction)(class e extends A{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:C.localize("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,c.registerEditorAction)(class e extends A{constructor(){super({id:"editor.action.selectHighlights",label:C.localize("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.focus,primary:3114,weight:100},menuOpts:{menuId:b.MenuId.MenubarSelectionMenu,group:"3_multi",title:C.localize({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}),(0,c.registerEditorAction)(class e extends A{constructor(){super({id:"editor.action.changeAll",label:C.localize("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:v.ContextKeyExpr.and(g.EditorContextKeys.writable,g.EditorContextKeys.editorTextFocus),kbOpts:{kbExpr:g.EditorContextKeys.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}),(0,c.registerEditorAction)(L),(0,c.registerEditorAction)(T),(0,c.registerEditorAction)(O),(0,c.registerEditorAction)(B)},184783:function(e,t,i){"use strict";i.r(t);var r,n,o=i("919527"),s=i("159923"),a=i("976617"),l=i("274854"),c=i("971942"),d=i("708339"),u=i("549436"),h=i("706301"),g=i("565874");let p=class e extends o.Disposable{constructor(e,t){super(),this.editor=e,this.widget=this._register(t.createInstance(g.ParameterHintsWidget,this.editor))}static get(t){return t.getContribution(e.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(e){this.widget.trigger(e)}};p.ID="editor.controller.parameterHints",p=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([(r=1,n=h.IInstantiationService,function(e,t){n(e,t,1)})],p);class m extends s.EditorAction{constructor(){super({id:"editor.action.triggerParameterHints",label:d.localize("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:a.EditorContextKeys.hasSignatureHelpProvider,kbOpts:{kbExpr:a.EditorContextKeys.editorTextFocus,primary:3082,weight:100}})}run(e,t){let i=p.get(t);i&&i.trigger({triggerKind:l.SignatureHelpTriggerKind.Invoke})}}(0,s.registerEditorContribution)(p.ID,p),(0,s.registerEditorAction)(m);let f=s.EditorCommand.bindToContribution(p.get);(0,s.registerEditorCommand)(new f({id:"closeParameterHints",precondition:c.Context.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:a.EditorContextKeys.focus,primary:9,secondary:[1033]}})),(0,s.registerEditorCommand)(new f({id:"showPrevParameterHint",precondition:u.ContextKeyExpr.and(c.Context.Visible,c.Context.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:a.EditorContextKeys.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,s.registerEditorCommand)(new f({id:"showNextParameterHint",precondition:u.ContextKeyExpr.and(c.Context.Visible,c.Context.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:a.EditorContextKeys.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},569556:function(e,t,i){"use strict";i.r(t),i.d(t,{ParameterHintsModel:function(){return h}});var r,n,o=i("467518"),s=i("161111"),a=i("916904"),l=i("919527"),c=i("153049"),d=i("274854"),u=i("971942");(r=n||(n={})).Default={type:0},r.Pending=class e{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}},r.Active=class e{constructor(e){this.hints=e,this.type=1}};class h extends l.Disposable{constructor(e,t,i=h.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new a.Emitter),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=n.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new l.MutableDisposable),this.triggerChars=new c.CharacterSet,this.retriggerChars=new c.CharacterSet,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new o.Delayer(i),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(e=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(e=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(e=>this.onCursorChange(e))),this._register(this.editor.onDidChangeModelContent(e=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(e=>this.onDidType(e))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=n.Default,this.throttledDelayer.cancel(),!e&&this._onChangedHints.fire(void 0)}trigger(e,t){let i=this.editor.getModel();if(!i||!this.providers.has(i))return;let r=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(r),t).catch(s.onUnexpectedError)}next(){if(1!==this.state.type)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e==e-1,r=this.editor.getOption(78).cycle;if((e<2||i)&&!r){this.cancel();return}this.updateActiveSignature(i&&r?0:t+1)}previous(){if(1!==this.state.type)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,r=this.editor.getOption(78).cycle;if((e<2||i)&&!r){this.cancel();return}this.updateActiveSignature(i&&r?e-1:t-1)}updateActiveSignature(e){1===this.state.type&&(this.state=new n.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){var t,i,r,a;return t=this,i=void 0,r=void 0,a=function*(){let t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;let r=this._pendingTriggers.reduce(g);this._pendingTriggers=[];let a={triggerKind:r.triggerKind,triggerCharacter:r.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;let l=this.editor.getModel(),c=this.editor.getPosition();this.state=new n.Pending((0,o.createCancelablePromise)(e=>(0,u.provideSignatureHelp)(this.providers,l,c,a,e)),i);try{let t=yield this.state.request;if(e!==this.triggerId)return null==t||t.dispose(),!1;if(!t||!t.value.signatures||0===t.value.signatures.length)return null==t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1;return this.state=new n.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0}catch(t){return e===this.triggerId&&(this.state=n.Default),(0,s.onUnexpectedError)(t),!1}},new(r||(r=Promise))(function(e,n){function o(e){try{l(a.next(e))}catch(e){n(e)}}function s(e){try{l(a.throw(e))}catch(e){n(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof r?i:new r(function(e){e(i)})).then(o,s)}l((a=a.apply(t,i||[])).next())})}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new c.CharacterSet,this.retriggerChars=new c.CharacterSet;let e=this.editor.getModel();if(e)for(let t of this.providers.ordered(e)){for(let e of t.signatureHelpTriggerCharacters||[])this.triggerChars.add(e.charCodeAt(0)),this.retriggerChars.add(e.charCodeAt(0));for(let e of t.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:d.SignatureHelpTriggerKind.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:d.SignatureHelpTriggerKind.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:d.SignatureHelpTriggerKind.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(78).enabled,!this.triggerOnType&&this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function g(e,t){switch(t.triggerKind){case d.SignatureHelpTriggerKind.Invoke:return t;case d.SignatureHelpTriggerKind.ContentChange:return e;case d.SignatureHelpTriggerKind.TriggerCharacter:default:return t}}h.DEFAULT_DELAY=120},971942:function(e,t,i){"use strict";i.r(t),i.d(t,{Context:function(){return p},provideSignatureHelp:function(){return m}});var r=i("500862"),n=i("161111"),o=i("744138"),s=i("938505"),a=i("457938"),l=i("274854"),c=i("678540"),d=i("878936"),u=i("326896"),h=i("549436"),g=function(e,t,i,r){return new(i||(i=Promise))(function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};let p={Visible:new h.RawContextKey("parameterHintsVisible",!1),MultipleSignatures:new h.RawContextKey("parameterHintsMultipleSignatures",!1)};function m(e,t,i,r,o){return g(this,void 0,void 0,function*(){for(let s of e.ordered(t))try{let e=yield s.provideSignatureHelp(t,i,o,r);if(e)return e}catch(e){(0,n.onUnexpectedExternalError)(e)}})}u.CommandsRegistry.registerCommand("_executeSignatureHelpProvider",(e,...t)=>g(void 0,void 0,void 0,function*(){let[i,n,u]=t;(0,o.assertType)(s.URI.isUri(i)),(0,o.assertType)(a.Position.isIPosition(n)),(0,o.assertType)("string"==typeof u||!u);let h=e.get(c.ILanguageFeaturesService),g=yield e.get(d.ITextModelService).createModelReference(i);try{let e=yield m(h.signatureHelpProvider,g.object.textEditorModel,a.Position.lift(n),{triggerKind:l.SignatureHelpTriggerKind.Invoke,isRetrigger:!1,triggerCharacter:u},r.CancellationToken.None);if(!e)return;return setTimeout(()=>e.dispose(),0),e.value}finally{g.dispose()}}))},119297:function(e,t,i){"use strict";i.r(t),i.d(t,{AbstractGotoSymbolQuickAccessProvider:function(){return b}});var r=i("467518"),n=i("500862"),o=i("871628"),s=i("216471"),a=i("919527"),l=i("266763"),c=i("761045"),d=i("274854"),u=i("232633"),h=i("351308"),g=i("708339"),p=i("678540"),m=i("603868"),f=function(e,t){return function(i,r){t(i,r,e)}},C=function(e,t,i,r){return new(i||(i=Promise))(function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};let b=class e extends h.AbstractEditorNavigationQuickAccessProvider{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.localize)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),a.Disposable.None}provideWithTextEditor(e,t,i){let r=e.editor,n=this.getModel(r);return n?this._languageFeaturesService.documentSymbolProvider.has(n)?this.doProvideWithEditorSymbols(e,n,t,i):this.doProvideWithoutEditorSymbols(e,n,t,i):a.Disposable.None}doProvideWithoutEditorSymbols(e,t,i,r){let n=new a.DisposableStore;return this.provideLabelPick(i,(0,g.localize)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),C(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,n))||r.isCancellationRequested||n.add(this.doProvideWithEditorSymbols(e,t,i,r))}),n}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return C(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let i=new r.DeferredPromise,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))}));return t.add((0,a.toDisposable)(()=>i.complete(!1))),i.p})}doProvideWithEditorSymbols(t,i,r,o){var l;let d;let u=t.editor,h=new a.DisposableStore;h.add(r.onDidAccept(e=>{let[i]=r.selectedItems;i&&i.range&&(this.gotoLocation(t,{range:i.range.selection,keyMods:r.keyMods,preserveFocus:e.inBackground}),!e.inBackground&&r.hide())})),h.add(r.onDidTriggerItemButton(({item:e})=>{e&&e.range&&(this.gotoLocation(t,{range:e.range.selection,keyMods:r.keyMods,forceSideBySide:!0}),r.hide())}));let p=this.getDocumentSymbols(i,o);let f=t=>C(this,void 0,void 0,function*(){null==d||d.dispose(!0),r.busy=!1,d=new n.CancellationTokenSource(o),r.busy=!0;try{let i=(0,s.prepareQuery)(r.value.substr(e.PREFIX.length).trim()),n=yield this.doGetSymbolPicks(p,i,void 0,d.token);if(o.isCancellationRequested)return;if(n.length>0){if(r.items=n,t&&0===i.original.length){let e=(0,m.findLast)(n,e=>!!("separator"!==e.type&&e.range&&c.Range.containsPosition(e.range.decoration,t)));e&&(r.activeItems=[e])}}else i.original.length>0?this.provideLabelPick(r,(0,g.localize)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(r,(0,g.localize)("noSymbolResults","No editor symbols"))}finally{!o.isCancellationRequested&&(r.busy=!1)}});h.add(r.onDidChangeValue(()=>f(void 0))),f(null===(l=u.getSelection())||void 0===l?void 0:l.getPosition());let b=2;return h.add(r.onDidChangeActive(()=>{let[e]=r.activeItems;if(e&&e.range){if(b-- >0)return;u.revealRangeInCenter(e.range.selection,0),this.addDecorations(u,e.range.decoration)}})),h}doGetSymbolPicks(t,i,r,n){return C(this,void 0,void 0,function*(){let a,u;let h=yield t;if(n.isCancellationRequested)return[];let p=0===i.original.indexOf(e.SCOPE_PREFIX),m=p?1:0;i.values&&i.values.length>1?(a=(0,s.pieceToQuery)(i.values[0]),u=(0,s.pieceToQuery)(i.values.slice(1))):a=i;let f=[];for(let e=0;e<h.length;e++){let t,n,p,C,b=h[e],v=(0,l.trim)(b.name),_=`$(${d.SymbolKinds.toIcon(b.kind).id}) ${v}`,S=_.length-v.length,y=b.containerName;(null==r?void 0:r.extraContainerLabel)&&(y=y?`${r.extraContainerLabel} \u{2022} ${y}`:r.extraContainerLabel);if(i.original.length>m){let e=!1;if(a!==i&&([t,n]=(0,s.scoreFuzzy2)(_,Object.assign(Object.assign({},i),{values:void 0}),m,S),"number"==typeof t&&(e=!0)),"number"!=typeof t&&([t,n]=(0,s.scoreFuzzy2)(_,a,m,S),"number"!=typeof t))continue;if(!e&&u){if(y&&u.original.length>0&&([p,C]=(0,s.scoreFuzzy2)(y,u)),"number"!=typeof p)continue;"number"==typeof t&&(t+=p)}}let k=b.tags&&b.tags.indexOf(1)>=0;f.push({index:e,kind:b.kind,score:t,label:_,ariaLabel:v,description:y,highlights:k?void 0:{label:n,description:C},range:{selection:c.Range.collapseToStart(b.selectionRange),decoration:b.range},strikethrough:k,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?o.Codicon.splitHorizontal.classNames:o.Codicon.splitVertical.classNames,tooltip:"right"===i?(0,g.localize)("openToSide","Open to the Side"):(0,g.localize)("openToBottom","Open to the Bottom")}]})()})}let C=f.sort((e,t)=>p?this.compareByKindAndScore(e,t):this.compareByScore(e,t)),b=[];if(p){let e,t;let i=0;function S(){t&&"number"==typeof e&&i>0&&(t.label=(0,l.format)(_[e]||v,i))}for(let r of C)e!==r.kind?(S(),e=r.kind,i=1,t={type:"separator"},b.push(t)):i++,b.push(r);S()}else C.length>0&&(b=[{label:(0,g.localize)("symbols","symbols ({0})",f.length),type:"separator"},...C]);return b})}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=_[e.kind]||v,r=_[t.kind]||v,n=i.localeCompare(r);return 0===n?this.compareByScore(e,t):n}getDocumentSymbols(e,t){return C(this,void 0,void 0,function*(){let i=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()})}};b.PREFIX="@",b.SCOPE_PREFIX=":",b.PREFIX_BY_CATEGORY=`${b.PREFIX}${b.SCOPE_PREFIX}`,b=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([f(0,p.ILanguageFeaturesService),f(1,u.IOutlineModelService)],b);let v=(0,g.localize)("property","properties ({0})"),_={5:(0,g.localize)("method","methods ({0})"),11:(0,g.localize)("function","functions ({0})"),8:(0,g.localize)("_constructor","constructors ({0})"),12:(0,g.localize)("variable","variables ({0})"),4:(0,g.localize)("class","classes ({0})"),22:(0,g.localize)("struct","structs ({0})"),23:(0,g.localize)("event","events ({0})"),24:(0,g.localize)("operator","operators ({0})"),10:(0,g.localize)("interface","interfaces ({0})"),2:(0,g.localize)("namespace","namespaces ({0})"),3:(0,g.localize)("package","packages ({0})"),25:(0,g.localize)("typeParameter","type parameters ({0})"),1:(0,g.localize)("modules","modules ({0})"),6:(0,g.localize)("property","properties ({0})"),9:(0,g.localize)("enum","enumerations ({0})"),21:(0,g.localize)("enumMember","enumeration members ({0})"),14:(0,g.localize)("string","strings ({0})"),0:(0,g.localize)("file","files ({0})"),17:(0,g.localize)("array","arrays ({0})"),15:(0,g.localize)("number","numbers ({0})"),16:(0,g.localize)("boolean","booleans ({0})"),18:(0,g.localize)("object","objects ({0})"),19:(0,g.localize)("key","keys ({0})"),7:(0,g.localize)("field","fields ({0})"),13:(0,g.localize)("constant","constants ({0})")}},432943:function(e,t,i){"use strict";i.r(t);var r=i("794555"),n=i("467518"),o=i("500862"),s=i("161111"),a=i("919527"),l=i("744138"),c=i("938505"),d=i("120084"),u=i("159923"),h=i("605478"),g=i("583368"),p=i("457938"),m=i("761045"),f=i("976617"),C=i("627541"),b=i("402304"),v=i("708339"),_=i("691125"),S=i("549436"),y=i("706301"),k=i("853881"),w=i("297669"),x=i("654967"),E=i("112721"),L=i("417182"),T=i("678540"),I=function(e,t){return function(i,r){t(i,r,e)}},D=function(e,t,i,r){return new(i||(i=Promise))(function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};class M{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 D(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 r=yield i.resolveRenameLocation(this.model,this.position,e);if(r){if(r.rejectReason){t.push(r.rejectReason);continue}return r}}let i=this.model.getWordAtPosition(this.position);return i?{range:new m.Range(this.position.lineNumber,i.startColumn,this.position.lineNumber,i.endColumn),text:i.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:m.Range.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}})}provideRenameEdits(e,t){return D(this,void 0,void 0,function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)})}_provideRenameEdits(e,t,i,r){return D(this,void 0,void 0,function*(){let n=this._providers[t];if(!n)return{edits:[],rejectReason:i.join("\n")};let o=yield n.provideRenameEdits(this.model,this.position,e,r);return o?o.rejectReason?this._provideRenameEdits(e,t+1,i.concat(o.rejectReason),r):o:this._provideRenameEdits(e,t+1,i.concat(v.localize("no result","No result.")),r)})}}let A=class e{constructor(e,t,i,r,s,l,c,d){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=r,this._progressService=s,this._logService=l,this._configService=c,this._languageFeaturesService=d,this._disposableStore=new a.DisposableStore,this._cts=new o.CancellationTokenSource,this._renameInputField=this._disposableStore.add(new n.IdleValue(()=>this._disposableStore.add(this._instaService.createInstance(L.RenameInputField,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 D(this,void 0,void 0,function*(){let i;if(this._cts.dispose(!0),!this.editor.hasModel())return;let o=this.editor.getPosition(),s=new M(this.editor.getModel(),o,this._languageFeaturesService.renameProvider);if(!s.hasProvider())return;this._cts=new d.EditorStateCancellationTokenSource(this.editor,5);try{let e=s.resolveRenameLocation(this._cts.token);this._progressService.showWhile(e,250),i=yield e}catch(t){null===(e=b.MessageController.get(this.editor))||void 0===e||e.showMessage(t||v.localize("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),o);return}if(!i)return;if(i.rejectReason){null===(t=b.MessageController.get(this.editor))||void 0===t||t.showMessage(i.rejectReason,o);return}if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new d.EditorStateCancellationTokenSource(this.editor,5,i.range);let a=this.editor.getSelection(),l=0,c=i.text.length;!m.Range.isEmpty(a)&&!m.Range.spansMultipleLines(a)&&m.Range.containsRange(i.range,a)&&(l=Math.max(0,a.startColumn-i.range.startColumn),c=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,c,u,this._cts.token);if("boolean"==typeof g){g&&this.editor.focus();return}this.editor.focus();let p=(0,n.raceCancellation)(s.provideRenameEdits(g.newName,this._cts.token),this._cts.token).then(e=>D(this,void 0,void 0,function*(){if(e&&this.editor.hasModel()){if(e.rejectReason){this._notificationService.info(e.rejectReason);return}this.editor.setSelection(m.Range.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(h.ResourceEdit.convert(e),{editor:this.editor,showPreview:g.wantsPreview,label:v.localize("label","Renaming '{0}' to '{1}'",null==i?void 0:i.text,g.newName),code:"undoredo.rename",quotableLabel:v.localize("quotableLabel","Renaming {0} to {1}",null==i?void 0:i.text,g.newName),respectAutoSaveConfig:!0}).then(e=>{e.ariaSummary&&(0,r.alert)(v.localize("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",i.text,g.newName,e.ariaSummary))}).catch(e=>{this._notificationService.error(v.localize("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)})}}),e=>{this._notificationService.error(v.localize("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)}};A.ID="editor.contrib.renameController",A=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([I(1,y.IInstantiationService),I(2,w.INotificationService),I(3,h.IBulkEditService),I(4,x.IEditorProgressService),I(5,k.ILogService),I(6,C.ITextResourceConfigurationService),I(7,T.ILanguageFeaturesService)],A);class P extends u.EditorAction{constructor(){super({id:"editor.action.rename",label:v.localize("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:S.ContextKeyExpr.and(f.EditorContextKeys.writable,f.EditorContextKeys.hasRenameProvider),kbOpts:{kbExpr:f.EditorContextKeys.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){let i=e.get(g.ICodeEditorService),[r,n]=Array.isArray(t)&&t||[void 0,void 0];return c.URI.isUri(r)&&p.Position.isIPosition(n)?i.openCodeEditor({resource:r},i.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(n),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},s.onUnexpectedError):super.runCommand(e,t)}run(e,t){let i=A.get(t);return i?i.run():Promise.resolve()}}(0,u.registerEditorContribution)(A.ID,A),(0,u.registerEditorAction)(P);let R=u.EditorCommand.bindToContribution(A.get);(0,u.registerEditorCommand)(new R({id:"acceptRenameInput",precondition:L.CONTEXT_RENAME_INPUT_VISIBLE,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:f.EditorContextKeys.focus,primary:3}})),(0,u.registerEditorCommand)(new R({id:"acceptRenameInputWithPreview",precondition:S.ContextKeyExpr.and(L.CONTEXT_RENAME_INPUT_VISIBLE,S.ContextKeyExpr.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:f.EditorContextKeys.focus,primary:1027}})),(0,u.registerEditorCommand)(new R({id:"cancelRenameInput",precondition:L.CONTEXT_RENAME_INPUT_VISIBLE,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.EditorContextKeys.focus,primary:9,secondary:[1033]}})),(0,u.registerModelAndPositionCommand)("_executeDocumentRenameProvider",function(e,t,i,...r){let[n]=r;(0,l.assertType)("string"==typeof n);let{renameProvider:s}=e.get(T.ILanguageFeaturesService);return function(e,t,i,r){return D(this,void 0,void 0,function*(){let n=new M(t,i,e),s=yield n.resolveRenameLocation(o.CancellationToken.None);return(null==s?void 0:s.rejectReason)?{edits:[],rejectReason:s.rejectReason}:n.provideRenameEdits(r,o.CancellationToken.None)})}(s,t,i,n)}),(0,u.registerModelAndPositionCommand)("_executePrepareRename",function(e,t,i){return D(this,void 0,void 0,function*(){let{renameProvider:r}=e.get(T.ILanguageFeaturesService),n=new M(t,i,r),s=yield n.resolveRenameLocation(o.CancellationToken.None);if(null==s?void 0:s.rejectReason)throw Error(s.rejectReason);return s})}),E.Registry.as(_.Extensions.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:v.localize("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},164664:function(e,t,i){"use strict";i.r(t),i.d(t,{WordSelectionRangeProvider:function(){return o}});var r=i("266763"),n=i("761045");class o{provideSelectionRanges(e,t){let i=[];for(let r of t){let t=[];i.push(t),this._addInWordRanges(t,e,r),this._addWordRanges(t,e,r),this._addWhitespaceLine(t,e,r),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){let o=t.getWordAtPosition(i);if(!o)return;let{word:s,startColumn:a}=o,l=i.column-a,c=l,d=l,u=0;for(;c>=0;c--){let e=s.charCodeAt(c);if(c!==l&&(95===e||45===e))break;if((0,r.isLowerAsciiLetter)(e)&&(0,r.isUpperAsciiLetter)(u))break;u=e}for(c+=1;d<s.length;d++){let e=s.charCodeAt(d);if((0,r.isUpperAsciiLetter)(e)&&(0,r.isLowerAsciiLetter)(u))break;if(95===e||45===e)break;u=e}c<d&&e.push({range:new n.Range(i.lineNumber,a+c,i.lineNumber,a+d)})}_addWordRanges(e,t,i){let r=t.getWordAtPosition(i);r&&e.push({range:new n.Range(i.lineNumber,r.startColumn,i.lineNumber,r.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new n.Range(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}},695357:function(e,t,i){"use strict";let r;i.r(t),i.d(t,{CompletionOptions:function(){return x},Context:function(){return y},QuickSuggestionsOptions:function(){return P},getSnippetSuggestSupport:function(){return E},getSuggestionComparator:function(){return M},provideSuggestionItems:function(){return T},showSimpleSuggestions:function(){return A},suggestWidgetStatusbarMenu:function(){return k}});var n=i("500862"),o=i("161111"),s=i("975024"),a=i("919527"),l=i("130039"),c=i("744138"),d=i("938505"),u=i("457938"),h=i("761045"),g=i("878936"),p=i("259842"),m=i("708339"),f=i("351553"),C=i("326896"),b=i("549436"),v=i("678540"),_=i("296709"),S=function(e,t,i,r){return new(i||(i=Promise))(function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};let y={Visible:_.historyNavigationVisible,HasFocusedSuggestion:new b.RawContextKey("suggestWidgetHasFocusedSuggestion",!1,(0,m.localize)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new b.RawContextKey("suggestWidgetDetailsVisible",!1,(0,m.localize)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new b.RawContextKey("suggestWidgetMultipleSuggestions",!1,(0,m.localize)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new b.RawContextKey("suggestionMakesTextEdit",!0,(0,m.localize)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new b.RawContextKey("acceptSuggestionOnEnter",!0,(0,m.localize)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new b.RawContextKey("suggestionHasInsertAndReplaceRange",!1,(0,m.localize)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new b.RawContextKey("suggestionInsertMode",void 0,{type:"string",description:(0,m.localize)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new b.RawContextKey("suggestionCanResolve",!1,(0,m.localize)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},k=new f.MenuId("suggestWidgetStatusBar");class w{constructor(e,t,i,r){this.position=e,this.completion=t,this.container=i,this.provider=r,this.isInvalid=!1,this.score=s.FuzzyScore.Default,this.distance=0,this.textLabel="string"==typeof t.label?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,h.Range.isIRange(t.range)?(this.editStart=new u.Position(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new u.Position(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new u.Position(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||h.Range.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new u.Position(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new u.Position(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new u.Position(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||h.Range.spansMultipleLines(t.range.insert)||h.Range.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!=typeof r.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return S(this,void 0,void 0,function*(){if(!this._resolveCache){let t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(e=>{Object.assign(this.completion,e),this._isResolved=!0,t.dispose()},e=>{(0,o.isCancellationError)(e)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}}class x{constructor(e=2,t=new Set,i=new Set,r=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.showDeprecated=r}}function E(){return r}x.default=new x;class L{constructor(e,t,i,r){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=r}}function T(e,t,i,s=x.default,c={triggerKind:0},d=n.CancellationToken.None){return S(this,void 0,void 0,function*(){let n=new l.StopWatch(!0);i=i.clone();let u=t.getWordAtPosition(i),g=u?new h.Range(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):h.Range.fromPositions(i),m={replace:g,insert:g.setEndPosition(i.lineNumber,i.column)},f=[],C=new a.DisposableStore,b=[],v=!1,_=(e,t,r)=>{var n,o,l;let c=!1;if(!t)return c;for(let r of t.suggestions)if(!s.kindFilter.has(r.kind)){if(!s.showDeprecated&&(null===(n=null==r?void 0:r.tags)||void 0===n?void 0:n.includes(1)))continue;!r.range&&(r.range=m),!r.sortText&&(r.sortText="string"==typeof r.label?r.label:r.label.label),!v&&r.insertTextRules&&4&r.insertTextRules&&(v=p.SnippetParser.guessNeedsClipboard(r.insertText)),f.push(new w(i,r,t,e)),c=!0}return(0,a.isDisposable)(t)&&C.add(t),b.push({providerName:null!==(o=e._debugDisplayName)&&void 0!==o?o:"unknown_provider",elapsedProvider:null!==(l=t.duration)&&void 0!==l?l:-1,elapsedOverall:r.elapsed()}),c},y=S(this,void 0,void 0,function*(){if(!r||s.kindFilter.has(27)||s.providerFilter.size>0&&!s.providerFilter.has(r))return;let e=new l.StopWatch(!0),n=yield r.provideCompletionItems(t,i,c,d);_(r,n,e)});for(let r of e.orderedGroups(t)){let e=!1;if(yield Promise.all(r.map(r=>S(this,void 0,void 0,function*(){if(!(s.providerFilter.size>0)||s.providerFilter.has(r))try{let n=new l.StopWatch(!0),o=yield r.provideCompletionItems(t,i,c,d);e=_(r,o,n)||e}catch(e){(0,o.onUnexpectedExternalError)(e)}}))),e||d.isCancellationRequested)break}return(yield y,d.isCancellationRequested)?(C.dispose(),Promise.reject(new o.CancellationError)):new L(f.sort(M(s.snippetSortOrder)),v,{entries:b,elapsed:n.elapsed()},C)})}function I(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return -1;if(e.sortTextLow>t.sortTextLow)return 1}return e.textLabel<t.textLabel?-1:e.textLabel>t.textLabel?1:e.completion.kind-t.completion.kind}let D=new Map;function M(e){return D.get(e)}function A(e,t){var i;null===(i=e.getContribution("editor.contrib.suggestController"))||void 0===i||i.triggerSuggest(new Set().add(t),void 0,!0)}D.set(0,function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return -1;if(27===t.completion.kind)return 1}return I(e,t)}),D.set(2,function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return -1}return I(e,t)}),D.set(1,I),C.CommandsRegistry.registerCommand("_executeCompletionItemProvider",(e,...t)=>S(void 0,void 0,void 0,function*(){let[i,r,o,s]=t;(0,c.assertType)(d.URI.isUri(i)),(0,c.assertType)(u.Position.isIPosition(r)),(0,c.assertType)("string"==typeof o||!o),(0,c.assertType)("number"==typeof s||!s);let{completionProvider:a}=e.get(v.ILanguageFeaturesService),l=yield e.get(g.ITextModelService).createModelReference(i);try{let e={incomplete:!1,suggestions:[]},t=[],i=yield T(a,l.object.textEditorModel,u.Position.lift(r),void 0,{triggerCharacter:o,triggerKind:o?1:0});for(let r of i.items)t.length<(null!=s?s:0)&&t.push(r.resolve(n.CancellationToken.None)),e.incomplete=e.incomplete||r.container.incomplete,e.suggestions.push(r.completion);try{return yield Promise.all(t),e}finally{setTimeout(()=>i.disposable.dispose(),100)}}finally{l.dispose()}}));class P{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},258156:function(e,t,i){"use strict";i.r(t),i.d(t,{SuggestController:function(){return z}});var r=i("794555"),n=i("603868"),o=i("467518"),s=i("500862"),a=i("161111"),l=i("916904"),c=i("210109"),d=i("919527"),u=i("207875"),h=i("130039"),g=i("744138"),p=i("460550"),m=i("159923"),f=i("188398"),C=i("457938"),b=i("761045"),v=i("976617"),_=i("802515"),S=i("259842"),y=i("861999"),k=i("770630"),w=i("708339"),x=i("326896"),E=i("549436"),L=i("706301"),T=i("853881"),I=i("695357"),D=i("446639"),M=i("14122"),A=i("717893"),P=i("800958"),R=i("990560"),N=i("614800"),F=i("437454"),O=i("716989"),B=function(e,t){return function(i,r){t(i,r,e)}};class W{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){let i=e.getOffsetAt(t),r=e.getPositionAt(i+1);this._marker=e.deltaDecorations([],[{range:b.Range.fromPositions(t,r),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(!this._marker)return this._model.getLineMaxColumn(e.lineNumber)-e.column;{let t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}}}let z=class e{constructor(e,t,i,r,n,s,a){this._memoryService=t,this._commandService=i,this._contextKeyService=r,this._instantiationService=n,this._logService=s,this._telemetryService=a,this._lineSuffix=new d.MutableDisposable,this._toDispose=new d.DisposableStore,this._selectors=new K(e=>e.priority),this._telemetryGate=0,this.editor=e,this.model=n.createInstance(A.SuggestModel,this.editor);let l=I.Context.InsertMode.bindTo(r);l.set(e.getOption(108).insertMode),this.model.onDidTrigger(()=>l.set(e.getOption(108).insertMode)),this.widget=this._toDispose.add(new o.IdleValue(()=>{let e=this._instantiationService.createInstance(R.SuggestWidget,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect(e=>this._insertSuggestion(e,0),this));let t=new M.CommitCharacterController(this.editor,e,e=>this._insertSuggestion(e,2));this._toDispose.add(t),this._toDispose.add(this.model.onDidSuggest(e=>{0===e.completionModel.items.length&&t.reset()}));let i=I.Context.MakesTextEdit.bindTo(this._contextKeyService),r=I.Context.HasInsertAndReplaceRange.bindTo(this._contextKeyService),n=I.Context.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,d.toDisposable)(()=>{i.reset(),r.reset(),n.reset()})),this._toDispose.add(e.onDidFocus(({item:e})=>{let t=this.editor.getPosition(),o=e.editStart.column,s=t.column,a=!0;"smart"===this.editor.getOption(1)&&2===this.model.state&&!e.completion.additionalTextEdits&&!(4&e.completion.insertTextRules)&&s-o===e.completion.insertText.length&&(a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:o,endLineNumber:t.lineNumber,endColumn:s})!==e.completion.insertText),i.set(a),r.set(!C.Position.equals(e.editInsertEnd,e.editReplaceEnd)),n.set(!!e.provider.resolveCompletionItem||!!e.completion.documentation||e.completion.detail!==e.completion.label)})),this._toDispose.add(e.onDetailsKeyDown(e=>{if(e.toKeybinding().equals(new c.SimpleKeybinding(!0,!1,!1,!1,33))||u.isMacintosh&&e.toKeybinding().equals(new c.SimpleKeybinding(!1,!1,!1,!0,33))){e.stopPropagation();return}!e.toKeybinding().isModifierKey()&&this.editor.focus()})),e})),this._overtypingCapturer=this._toDispose.add(new o.IdleValue(()=>this._toDispose.add(new P.OvertypingCapturer(this.editor,this.model)))),this._alternatives=this._toDispose.add(new o.IdleValue(()=>this._toDispose.add(new D.SuggestAlternatives(this.editor,this._contextKeyService)))),this._toDispose.add(n.createInstance(k.WordContextKey,e)),this._toDispose.add(this.model.onDidTrigger(e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new W(this.editor.getModel(),e.position)})),this._toDispose.add(this.model.onDidSuggest(e=>{if(e.shy)return;let t=-1;if(!e.noSelect){for(let i of this._selectors.itemsOrderedByPriorityDesc)if(-1!==(t=i.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items)))break;-1===t&&(t=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items))}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.auto)})),this._toDispose.add(this.model.onDidCancel(e=>{!e.retrigger&&this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{this.model.cancel(),this.model.clear()}));let h=I.Context.AcceptSuggestionsOnEnter.bindTo(r),g=()=>{let e=this.editor.getOption(1);h.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>g())),g()}static get(t){return t.getContribution(e.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;let i=_.SnippetController2.get(this.editor);if(!i)return;let r=this.editor.getModel(),n=r.getAlternativeVersionId(),{item:o}=e,l=[],c=new s.CancellationTokenSource;!(1&t)&&this.editor.pushUndoStop();let d=this.getOverwriteInfo(o,!!(8&t));if(this._memoryService.memorize(r,this.editor.getPosition(),o),Array.isArray(o.completion.additionalTextEdits)){let e=p.StableEditorScrollState.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",o.completion.additionalTextEdits.map(e=>f.EditOperation.replaceMove(b.Range.lift(e.range),e.text))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!o.isResolved){let e;let i=new h.StopWatch(!0),n=r.onDidChangeContent(t=>{if(t.isFlush){c.cancel(),n.dispose();return}for(let i of t.changes){let t=b.Range.getEndPosition(i.range);(!e||C.Position.isBefore(t,e))&&(e=t)}}),s=t;t|=2;let a=!1,d=this.editor.onWillType(()=>{d.dispose(),a=!0,!(2&s)&&this.editor.pushUndoStop()});l.push(o.resolve(c.token).then(()=>{if(!o.completion.additionalTextEdits||c.token.isCancellationRequested||e&&o.completion.additionalTextEdits.some(t=>C.Position.isBefore(e,b.Range.getStartPosition(t.range))))return!1;a&&this.editor.pushUndoStop();let t=p.StableEditorScrollState.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",o.completion.additionalTextEdits.map(e=>f.EditOperation.replaceMove(b.Range.lift(e.range),e.text))),t.restoreRelativeVerticalPositionOfCursor(this.editor),(a||!(2&s))&&this.editor.pushUndoStop(),!0}).then(e=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",i.elapsed(),e),n.dispose(),d.dispose()}))}let{insertText:u}=o.completion;!(4&o.completion.insertTextRules)&&(u=S.SnippetParser.escape(u)),i.insert(u,{overwriteBefore:d.overwriteBefore,overwriteAfter:d.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&o.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),!(2&t)&&this.editor.pushUndoStop(),o.completion.command?o.completion.command.id===H.id?this.model.trigger({auto:!0,shy:!1,noSelect:!1},!0):(l.push(this._commandService.executeCommand(o.completion.command.id,...o.completion.command.arguments?[...o.completion.command.arguments]:[]).catch(a.onUnexpectedError)),this.model.cancel()):this.model.cancel(),4&t&&this._alternatives.value.set(e,e=>{for(c.cancel();r.canUndo();){n!==r.getAlternativeVersionId()&&r.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}}),this._alertCompletionItem(o),Promise.all(l).finally(()=>{this._reportSuggestionAcceptedTelemetry(o,r,e),this.model.clear(),c.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,i){var r;if(this._telemetryGate++%100!=0)return;let n=e.extensionId?e.extensionId.value:(null!==(r=i.item.provider._debugDisplayName)&&void 0!==r?r:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:n,kind:e.completion.kind,basenameHash:(0,O.hash)((0,F.basename)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,F.extname)(t.uri)})}getOverwriteInfo(e,t){(0,g.assertType)(this.editor.hasModel());let i="replace"===this.editor.getOption(108).insertMode;t&&(i=!i);let r=e.position.column-e.editStart.column,n=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,o=this.editor.getPosition().column-e.position.column;return{overwriteBefore:r+o,overwriteAfter:n+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,n.isNonEmptyArray)(e.completion.additionalTextEdits)){let t=w.localize("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,r.alert)(t)}}triggerSuggest(e,t,i,r){this.editor.hasModel()&&(this.model.trigger({auto:null!=t&&t,shy:!1,noSelect:null!=r&&r},!1,e,void 0,i),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;let t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},r=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;let t=this.editor.getPosition(),i=e.editStart.column,r=t.column;return r-i!==e.completion.insertText.length||this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:r})!==e.completion.insertText};l.Event.once(this.model.onDidTrigger)(e=>{let t=[];l.Event.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{(0,d.dispose)(t),i()},void 0,t),this.model.onDidSuggest(({completionModel:e})=>{if((0,d.dispose)(t),0===e.items.length){i();return}let n=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),o=e.items[n];if(!r(o)){i();return}this.editor.pushUndoStop(),this._insertSuggestion({index:n,item:o,model:e},7)},void 0,t)}),this.model.trigger({auto:!1,shy:!0,noSelect:!1}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){let i=this.widget.value.getFocusedItem(),r=0;e&&(r|=4),t&&(r|=8),this._insertSuggestion(i,r)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};z.ID="editor.contrib.suggestController",z=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([B(1,y.ISuggestMemoryService),B(2,x.ICommandService),B(3,E.IContextKeyService),B(4,L.IInstantiationService),B(5,T.ILogService),B(6,N.ITelemetryService)],z);class K{constructor(e){this.prioritySelector=e,this._items=[]}register(e){if(-1!==this._items.indexOf(e))throw Error("Value is already registered");return this._items.push(e),this._items.sort((e,t)=>this.prioritySelector(t)-this.prioritySelector(e)),{dispose:()=>{let t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class H extends m.EditorAction{constructor(){super({id:H.id,label:w.localize("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:E.ContextKeyExpr.and(v.EditorContextKeys.writable,v.EditorContextKeys.hasCompletionItemProvider),kbOpts:{kbExpr:v.EditorContextKeys.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){let r,n;let o=z.get(t);o&&(i&&"object"==typeof i&&(!0===i.auto&&(r=!0),!0===i.noSelection&&(n=!0)),o.triggerSuggest(void 0,r,void 0,n))}}H.id="editor.action.triggerSuggest",(0,m.registerEditorContribution)(z.ID,z),(0,m.registerEditorAction)(H);let V=m.EditorCommand.bindToContribution(z.get);(0,m.registerEditorCommand)(new V({id:"acceptSelectedSuggestion",precondition:E.ContextKeyExpr.and(I.Context.Visible,I.Context.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:E.ContextKeyExpr.and(I.Context.Visible,v.EditorContextKeys.textInputFocus),weight:190},{primary:3,kbExpr:E.ContextKeyExpr.and(I.Context.Visible,v.EditorContextKeys.textInputFocus,I.Context.AcceptSuggestionsOnEnter,I.Context.MakesTextEdit),weight:190}],menuOpts:[{menuId:I.suggestWidgetStatusbarMenu,title:w.localize("accept.insert","Insert"),group:"left",order:1,when:I.Context.HasInsertAndReplaceRange.toNegated()},{menuId:I.suggestWidgetStatusbarMenu,title:w.localize("accept.insert","Insert"),group:"left",order:1,when:E.ContextKeyExpr.and(I.Context.HasInsertAndReplaceRange,I.Context.InsertMode.isEqualTo("insert"))},{menuId:I.suggestWidgetStatusbarMenu,title:w.localize("accept.replace","Replace"),group:"left",order:1,when:E.ContextKeyExpr.and(I.Context.HasInsertAndReplaceRange,I.Context.InsertMode.isEqualTo("replace"))}]})),(0,m.registerEditorCommand)(new V({id:"acceptAlternativeSelectedSuggestion",precondition:E.ContextKeyExpr.and(I.Context.Visible,v.EditorContextKeys.textInputFocus,I.Context.HasFocusedSuggestion),kbOpts:{weight:190,kbExpr:v.EditorContextKeys.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:I.suggestWidgetStatusbarMenu,group:"left",order:2,when:E.ContextKeyExpr.and(I.Context.HasInsertAndReplaceRange,I.Context.InsertMode.isEqualTo("insert")),title:w.localize("accept.replace","Replace")},{menuId:I.suggestWidgetStatusbarMenu,group:"left",order:2,when:E.ContextKeyExpr.and(I.Context.HasInsertAndReplaceRange,I.Context.InsertMode.isEqualTo("replace")),title:w.localize("accept.insert","Insert")}]})),x.CommandsRegistry.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.registerEditorCommand)(new V({id:"hideSuggestWidget",precondition:I.Context.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:190,kbExpr:v.EditorContextKeys.textInputFocus,primary:9,secondary:[1033]}})),(0,m.registerEditorCommand)(new V({id:"selectNextSuggestion",precondition:E.ContextKeyExpr.and(I.Context.Visible,I.Context.MultipleSuggestions),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:190,kbExpr:v.EditorContextKeys.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.registerEditorCommand)(new V({id:"selectNextPageSuggestion",precondition:E.ContextKeyExpr.and(I.Context.Visible,I.Context.MultipleSuggestions),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:190,kbExpr:v.EditorContextKeys.textInputFocus,primary:12,secondary:[2060]}})),(0,m.registerEditorCommand)(new V({id:"selectLastSuggestion",precondition:E.ContextKeyExpr.and(I.Context.Visible,I.Context.MultipleSuggestions),handler:e=>e.selectLastSuggestion()})),(0,m.registerEditorCommand)(new V({id:"selectPrevSuggestion",precondition:E.ContextKeyExpr.and(I.Context.Visible,I.Context.MultipleSuggestions),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:190,kbExpr:v.EditorContextKeys.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.registerEditorCommand)(new V({id:"selectPrevPageSuggestion",precondition:E.ContextKeyExpr.and(I.Context.Visible,I.Context.MultipleSuggestions),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:190,kbExpr:v.EditorContextKeys.textInputFocus,primary:11,secondary:[2059]}})),(0,m.registerEditorCommand)(new V({id:"selectFirstSuggestion",precondition:E.ContextKeyExpr.and(I.Context.Visible,I.Context.MultipleSuggestions),handler:e=>e.selectFirstSuggestion()})),(0,m.registerEditorCommand)(new V({id:"toggleSuggestionDetails",precondition:I.Context.Visible,handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:190,kbExpr:v.EditorContextKeys.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:I.suggestWidgetStatusbarMenu,group:"right",order:1,when:E.ContextKeyExpr.and(I.Context.DetailsVisible,I.Context.CanResolve),title:w.localize("detail.more","show less")},{menuId:I.suggestWidgetStatusbarMenu,group:"right",order:1,when:E.ContextKeyExpr.and(I.Context.DetailsVisible.toNegated(),I.Context.CanResolve),title:w.localize("detail.less","show more")}]})),(0,m.registerEditorCommand)(new V({id:"toggleExplainMode",precondition:I.Context.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),(0,m.registerEditorCommand)(new V({id:"toggleSuggestionFocus",precondition:I.Context.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:190,kbExpr:v.EditorContextKeys.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.registerEditorCommand)(new V({id:"insertBestCompletion",precondition:E.ContextKeyExpr.and(v.EditorContextKeys.textInputFocus,E.ContextKeyExpr.equals("config.editor.tabCompletion","on"),k.WordContextKey.AtEnd,I.Context.Visible.toNegated(),D.SuggestAlternatives.OtherSuggestions.toNegated(),_.SnippetController2.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.isObject)(t)?Object.assign({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:190,primary:2}})),(0,m.registerEditorCommand)(new V({id:"insertNextSuggestion",precondition:E.ContextKeyExpr.and(v.EditorContextKeys.textInputFocus,E.ContextKeyExpr.equals("config.editor.tabCompletion","on"),D.SuggestAlternatives.OtherSuggestions,I.Context.Visible.toNegated(),_.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:190,kbExpr:v.EditorContextKeys.textInputFocus,primary:2}})),(0,m.registerEditorCommand)(new V({id:"insertPrevSuggestion",precondition:E.ContextKeyExpr.and(v.EditorContextKeys.textInputFocus,E.ContextKeyExpr.equals("config.editor.tabCompletion","on"),D.SuggestAlternatives.OtherSuggestions,I.Context.Visible.toNegated(),_.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:190,kbExpr:v.EditorContextKeys.textInputFocus,primary:1026}})),(0,m.registerEditorAction)(class extends m.EditorAction{constructor(){super({id:"editor.action.resetSuggestSize",label:w.localize("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){var i;null===(i=z.get(t))||void 0===i||i.resetWidgetSize()}})},717893:function(e,t,i){"use strict";i.r(t),i.d(t,{SuggestModel:function(){return k}});var r=i("467518"),n=i("500862"),o=i("161111"),s=i("916904"),a=i("919527"),l=i("266763"),c=i("861065"),d=i("73835"),u=i("802515"),h=i("677972"),g=i("704264"),p=i("753861"),m=i("549436"),f=i("853881"),C=i("614800"),b=i("442614"),v=i("695357"),_=i("678540"),S=function(e,t){return function(i,r){t(i,r,e)}};class y{constructor(e,t,i,r,n){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=i,this.shy=r,this.noSelect=n}static shouldAutoTrigger(e){if(!e.hasModel())return!1;let t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);let r=t.getWordAtPosition(i);return!!(r&&r.endColumn===i.column&&isNaN(Number(r.word)))||!1}}let k=class e{constructor(e,t,i,n,o,l,d,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=o,this._contextKeyService=l,this._configurationService=d,this._languageFeaturesService=u,this._toDispose=new a.DisposableStore,this._triggerCharacterListener=new a.DisposableStore,this._triggerQuickSuggest=new r.TimeoutTimer,this._state=0,this._completionDisposables=new a.DisposableStore,this._onDidCancel=new s.Emitter,this._onDidTrigger=new s.Emitter,this._onDidSuggest=new s.Emitter,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new c.Selection(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.dispose)(this._triggerCharacterListener),(0,a.dispose)([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 r=e.get(i);!r&&((r=new Set).add((0,v.getSnippetSuggestSupport)()),e.set(i,r)),r.add(t)}let t=t=>{if(!function(e,t,i){if(!t.getContextKeyValue("inlineSuggestionVisible"))return!0;let r=i.getValue("editor.inlineSuggest.allowSuggestOnTriggerCharacters");return void 0!==r&&!!r}(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.isLowSurrogate)(t.charCodeAt(t.length-1))?(0,l.isHighSurrogate)(t.charCodeAt(t.length-2))&&(i=t.substr(t.length-2)):i=t.charAt(t.length-1);let r=e.get(i);if(r){let e=this._completionModel?{items:this._completionModel.adopt(r),clipboardText:this._completionModel.clipboardText}:void 0;this.trigger({auto:!0,shy:!1,noSelect:!1,triggerCharacter:i},!!this._completionModel,r,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(!v.QuickSuggestionsOptions.isAllOff(this._editor.getOption(81)))!(this._editor.getOption(108).snippetsPreventQuickSuggestions&&(null===(e=u.SnippetController2.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(v.QuickSuggestionsOptions.isAllOff(i))return;if(!v.QuickSuggestionsOptions.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);let r=e.tokenization.getLineTokens(t.lineNumber),n=r.getStandardTokenType(r.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==v.QuickSuggestionsOptions.valueFor(i,n))return}if(!!function(e,t,i){if(!t.getContextKeyValue("inlineSuggestionVisible"))return!0;let r=i.getValue("editor.inlineSuggest.allowQuickSuggestions");return void 0!==r&&!!r}(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,r,s,a){var l;if(!this._editor.hasModel())return;let c=this._editor.getModel(),d=t.auto,u=new y(c,this._editor.getPosition(),d,t.shy,t.noSelect);this.cancel(i),this._state=d?2:1,this._onDidTrigger.fire({auto:d,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 n.CancellationTokenSource;let p=this._editor.getOption(103),m=1;switch(p){case"top":m=0;break;case"bottom":m=2}let{itemKind:f,showDeprecated:C}=e._createSuggestFilter(this._editor),_=new v.CompletionOptions(m,a?new Set:f,r,C),S=h.WordDistance.create(this._editorWorkerService,this._editor);Promise.all([(0,v.provideSuggestionItems)(this._languageFeaturesService.completionProvider,c,this._editor.getPosition(),_,g,this._requestToken.token),S]).then(([e,i])=>{var r,n,o,a;return r=this,n=void 0,o=void 0,a=function*(){var r;if(null===(r=this._requestToken)||void 0===r||r.dispose(),!this._editor.hasModel())return;let n=null==s?void 0:s.clipboardText;if(!n&&e.needsClipboard&&(n=yield this._clipboardService.readText()),0===this._state)return;let o=this._editor.getModel(),a=e.items;if(s){let e=(0,v.getSuggestionComparator)(m);a=a.concat(s.items).sort(e)}let l=new y(o,this._editor.getPosition(),d,t.shy,t.noSelect);this._completionModel=new b.CompletionModel(a,this._context.column,{leadingLineContent:l.leadingLineContent,characterCountDelta:l.column-this._context.column},i,this._editor.getOption(108),this._editor.getOption(103),void 0,n),this._completionDisposables.add(e.disposable),this._onNewContext(l),this._reportDurationsTelemetry(e.durations)},new(o||(o=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 r;t.done?e(t.value):((r=t.value)instanceof o?r:new o(function(e){e(r)})).then(i,s)}l((a=a.apply(r,n||[])).next())})}).catch(o.onUnexpectedError)}_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.getLeadingWhitespace)(e.leadingLineContent)!==(0,l.getLeadingWhitespace)(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})}}}}};k=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([S(1,d.IEditorWorkerService),S(2,g.IClipboardService),S(3,C.ITelemetryService),S(4,f.ILogService),S(5,m.IContextKeyService),S(6,p.IConfigurationService),S(7,_.ILanguageFeaturesService)],k)},677972:function(e,t,i){"use strict";i.r(t),i.d(t,{WordDistance:function(){return s}});var r=i("603868"),n=i("761045"),o=i("767057");class s{static create(e,t){var i,a,l,c;return i=this,a=void 0,l=void 0,c=function*(){if(!t.getOption(108).localityBonus||!t.hasModel())return s.None;let i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return s.None;let[l]=yield new o.BracketSelectionRangeProvider().provideSelectionRanges(i,[a]);if(0===l.length)return s.None;let c=yield e.computeWordRanges(i.uri,l[0].range);if(!c)return s.None;let d=i.getWordUntilPosition(a);return delete c[d.word],new class extends s{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2097152;let o=c["string"==typeof i.label?i.label:i.label.label];if((0,r.isFalsyOrEmpty)(o))return 2097152;let s=(0,r.binarySearch)(o,n.Range.fromPositions(e),n.Range.compareRangesUsingStarts),d=s>=0?o[s]:o[Math.max(0,~s-1)],u=l.length;for(let e of l){if(!n.Range.containsRange(e.range,d))break;u-=1}return u}}},new(l||(l=Promise))(function(e,t){function r(e){try{o(c.next(e))}catch(e){t(e)}}function n(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var i;t.done?e(t.value):((i=t.value)instanceof l?i:new l(function(e){e(i)})).then(r,n)}o((c=c.apply(i,a||[])).next())})}}s.None=new class extends s{distance(){return 0}}},361486:function(e,t,i){"use strict";i.r(t);var r=i("112721"),n=i("507194"),o=i("782272"),s=i("426149");r.Registry.as(n.Extensions.Quickaccess).registerQuickAccessProvider({ctor:s.HelpQuickAccessProvider,prefix:"",helpEntries:[{description:o.QuickHelpNLS.helpQuickAccessActionLabel}]})},693478:function(e,t,i){"use strict";i.r(t),i.d(t,{StandaloneCodeEditorService:function(){return u}});var r=i("409737"),n=i("24342"),o=i("478594"),s=i("583368"),a=i("549436"),l=i("772243"),c=i("439703"),d=function(e,t){return function(i,r){t(i,r,e)}};let u=class extends o.AbstractCodeEditorService{constructor(e,t){super(t),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this.registerCodeEditorOpenHandler((e,t,i)=>{var r,n,o,s;return r=this,n=void 0,o=void 0,s=function*(){return t?this.doOpenEditor(t,e):null},new(o||(o=Promise))(function(e,t){function i(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof o?r:new o(function(e){e(r)})).then(i,a)}l((s=s.apply(r,n||[])).next())})})}_checkContextKey(){let e=!1;for(let t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){let i=t.resource.scheme;if(i===n.Schemas.http||i===n.Schemas.https)return(0,r.windowOpenNoOpener)(t.resource.toString()),e}return null}let i=t.options?t.options.selection:null;if(i){if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{let t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}}return e}findModel(e,t){let i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};u=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([d(0,a.IContextKeyService),d(1,c.IThemeService)],u),(0,l.registerSingleton)(s.ICodeEditorService,u)},575010:function(e,t,i){"use strict";i.r(t),i.d(t,{compile:function(){return c}});var r=i("398367");function n(e,t){return"boolean"==typeof e?e:t}function o(e,t){return"string"==typeof e?e:t}function s(e,t=!1){t&&(e=e.map(function(e){return e.toLowerCase()}));let i=function(e){let t={};for(let i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function a(e,t){let i;t=t.replace(/@@/g,`\x01`);let n=0;do i=!1,t=t.replace(/@(\w+)/g,function(n,o){i=!0;let s="";if("string"==typeof e[o])s=e[o];else if(e[o]&&e[o]instanceof RegExp)s=e[o].source;else{if(void 0===e[o])throw r.createError(e,"language definition does not contain attribute '"+o+"', used at: "+t);throw r.createError(e,"attribute reference '"+o+"' must be a string, used at: "+t)}return r.empty(s)?"":"(?:"+s+")"}),n++;while(i&&n<5);t=t.replace(/\x01/g,"@");let o=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,o)}class l{constructor(e){this.regex=RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let i;if("string"==typeof t)i=t;else if(t instanceof RegExp)i=t.source;else throw r.createError(e,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=i.length>0&&"^"===i[0],this.name=this.name+": "+i,this.regex=a(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")")}setAction(e,t){this.action=function e(t,i,n){if(!n)return{token:""};if("string"==typeof n)return n;if(n.token||""===n.token){if("string"!=typeof n.token)throw r.createError(t,"a 'token' attribute must be of type string, in rule: "+i);{let e={token:n.token};if(n.token.indexOf("$")>=0&&(e.tokenSubst=!0),"string"==typeof n.bracket){if("@open"===n.bracket)e.bracket=1;else if("@close"===n.bracket)e.bracket=-1;else throw r.createError(t,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+i)}if(n.next){if("string"!=typeof n.next)throw r.createError(t,"the next state must be a string value in rule: "+i);{let o=n.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),0>o.indexOf("$")&&!r.stateExists(t,r.substituteMatches(t,o,"",[],""))))throw r.createError(t,"the next state '"+n.next+"' is not defined in rule: "+i);e.next=o}}return"number"==typeof n.goBack&&(e.goBack=n.goBack),"string"==typeof n.switchTo&&(e.switchTo=n.switchTo),"string"==typeof n.log&&(e.log=n.log),"string"==typeof n.nextEmbedded&&(e.nextEmbedded=n.nextEmbedded,t.usesEmbedded=!0),e}}else if(Array.isArray(n)){let r=[];for(let o=0,s=n.length;o<s;o++)r[o]=e(t,i,n[o]);return{group:r}}else if(n.cases){let o=[];for(let l in n.cases)if(n.cases.hasOwnProperty(l)){let c=e(t,i,n.cases[l]);"@default"===l||"@"===l||""===l?o.push({test:void 0,value:c,name:l}):"@eos"===l?o.push({test:function(e,t,i,r){return r},value:c,name:l}):o.push(function(e,t,i,n){let o,l=-1,c=i,d=i.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);d&&(d[3]&&(l=parseInt(d[3]),d[2]&&(l+=100)),c=d[4]);let u="~",h=c;if(c&&0!==c.length?/^\w*$/.test(h)?u="==":(d=c.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(u=d[1],h=d[2]):(u="!=",h=""),("~"===u||"!~"===u)&&/^(\w|\|)*$/.test(h)){let t=s(h.split("|"),e.ignoreCase);o=function(e){return"~"===u?t(e):!t(e)}}else if("@"===u||"!@"===u){let i=e[h];if(!i)throw r.createError(e,"the @ match target '"+h+"' is not defined, in rule: "+t);if(!function(e,t){if(!t||!Array.isArray(t))return!1;for(let i of t)if(!e(i))return!1;return!0}(function(e){return"string"==typeof e},i))throw r.createError(e,"the @ match target '"+h+"' must be an array of strings, in rule: "+t);let n=s(i,e.ignoreCase);o=function(e){return"@"===u?n(e):!n(e)}}else if("~"===u||"!~"===u){if(0>h.indexOf("$")){let t=a(e,"^"+h+"$");o=function(e){return"~"===u?t.test(e):!t.test(e)}}else o=function(t,i,n,o){return a(e,"^"+r.substituteMatches(e,h,i,n,o)+"$").test(t)}}else if(0>h.indexOf("$")){let t=r.fixCase(e,h);o=function(e){return"=="===u?e===t:e!==t}}else{let t=r.fixCase(e,h);o=function(i,n,o,s,a){let l=r.substituteMatches(e,t,n,o,s);return"=="===u?i===l:i!==l}}return -1===l?{name:i,value:n,test:function(e,t,i,r){return o(e,e,t,i,r)}}:{name:i,value:n,test:function(e,t,i,r){let n=function(e,t,i,r){if(r<0)return e;if(r<t.length)return t[r];if(r>=100){r-=100;let e=i.split(".");if(e.unshift(i),r<e.length)return e[r]}return null}(e,t,i,l);return o(n||"",e,t,i,r)}}}(t,i,l,c))}let l=t.defaultToken;return{test:function(e,t,i,r){for(let n of o)if(!n.test||n.test(e,t,i,r))return n.value;return l}}}else throw r.createError(t,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+i)}(e,this.name,t)}}function c(e,t){if(!t||"object"!=typeof t)throw Error("Monarch: expecting a language definition object");let i={};i.languageId=e,i.includeLF=n(t.includeLF,!1),i.noThrow=!1,i.maxStack=100,i.start="string"==typeof t.start?t.start:null,i.ignoreCase=n(t.ignoreCase,!1),i.unicode=n(t.unicode,!1),i.tokenPostfix=o(t.tokenPostfix,"."+i.languageId),i.defaultToken=o(t.defaultToken,"source"),i.usesEmbedded=!1;t.languageId=e,t.includeLF=i.includeLF,t.ignoreCase=i.ignoreCase,t.unicode=i.unicode,t.noThrow=i.noThrow,t.usesEmbedded=i.usesEmbedded,t.stateNames=t.tokenizer,t.defaultToken=i.defaultToken;if(!t.tokenizer||"object"!=typeof t.tokenizer)throw r.createError(i,"a language definition must define the 'tokenizer' attribute as an object");for(let e in i.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(e)){!i.start&&(i.start=e);let o=t.tokenizer[e];i.tokenizer[e]=[],!function e(o,s,a){for(let c of a){let a=c.include;if(a){if("string"!=typeof a)throw r.createError(i,"an 'include' attribute must be a string at: "+o);if("@"===a[0]&&(a=a.substr(1)),!t.tokenizer[a])throw r.createError(i,"include target '"+a+"' is not defined at: "+o);e(o+"."+a,s,t.tokenizer[a])}else{let e=new l(o);if(Array.isArray(c)&&c.length>=1&&c.length<=3){if(e.setRegex(t,c[0]),c.length>=3){if("string"==typeof c[1])e.setAction(t,{token:c[1],next:c[2]});else if("object"==typeof c[1]){let i=c[1];i.next=c[2],e.setAction(t,i)}else throw r.createError(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+o)}else e.setAction(t,c[1])}else{if(!c.regex)throw r.createError(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+o);c.name&&"string"==typeof c.name&&(e.name=c.name),c.matchOnlyAtStart&&(e.matchOnlyAtLineStart=n(c.matchOnlyAtLineStart,!1)),e.setRegex(t,c.regex),e.setAction(t,c.action)}s.push(e)}}}("tokenizer."+e,i.tokenizer[e],o)}if(i.usesEmbedded=t.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw r.createError(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let s=[];for(let e of t.brackets){let t=e;if(t&&Array.isArray(t)&&3===t.length&&(t={token:t[2],open:t[0],close:t[1]}),t.open===t.close)throw r.createError(i,"open and close brackets in a 'brackets' attribute must be different: "+t.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"==typeof t.open&&"string"==typeof t.token&&"string"==typeof t.close)s.push({token:t.token+i.tokenPostfix,open:r.fixCase(i,t.open),close:r.fixCase(i,t.close)});else throw r.createError(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return i.brackets=s,i.noThrow=!0,i}},933969:function(e,t,i){"use strict";let r,n;i.r(t);var o=i("299334"),s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,d=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of l(t))!c.call(e,n)&&n!==i&&s(e,n,{get:()=>t[n],enumerable:!(r=a(t,n))||r.enumerable});return e},u={};d(u,r=o,"default"),n&&d(n,r,"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),C=new h("less",g,p);function b(){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,"531122"))}u.languages.css={cssDefaults:m,lessDefaults:C,scssDefaults:f},u.languages.onLanguage("less",()=>{b().then(e=>e.setupMode(C))}),u.languages.onLanguage("scss",()=>{b().then(e=>e.setupMode(f))}),u.languages.onLanguage("css",()=>{b().then(e=>e.setupMode(m))})},869253:function(e,t,i){"use strict";let r,n;i.r(t),i.d(t,{CompletionAdapter:function(){return tn},DefinitionAdapter:function(){return th},DiagnosticsAdapter:function(){return tr},DocumentColorAdapter:function(){return tS},DocumentFormattingEditProvider:function(){return tb},DocumentHighlightAdapter:function(){return tu},DocumentLinkAdapter:function(){return tC},DocumentRangeFormattingEditProvider:function(){return tv},DocumentSymbolAdapter:function(){return tf},FoldingRangeAdapter:function(){return ty},HoverAdapter:function(){return tc},ReferenceAdapter:function(){return tp},RenameAdapter:function(){return tm},SelectionRangeAdapter:function(){return tk},WorkerManager:function(){return e8},fromPosition:function(){return to},fromRange:function(){return ts},setupMode:function(){return tE},setupMode1:function(){return tx},toRange:function(){return ta},toTextEdit:function(){return tl}});var o,s,a,l,c,d,u,h,g,p,m,f,C,b,v,_,S,y,k,w,x,E,L,T,I,D,M,A,P,R,N,F,O,B,W,z,K,H,V,U,j,$,q,G,X,Y,Q,Z,J,ee,et,ei,er,en,eo,es,ea,el,ec,ed,eu,eh,eg,ep,em,ef,eC,eb,ev,e_,eS,ey,ek,ew,ex,eE,eL,eT,eI,eD,eM,eA,eP,eR,eN,eF,eO,eB,eW,ez,eK,eH,eV,eU,ej,e$,eq,eG,eX,eY,eQ,eZ,eJ,e0,e1,e2=i("299334"),e3=Object.defineProperty,e5=Object.getOwnPropertyDescriptor,e6=Object.getOwnPropertyNames,e7=Object.prototype.hasOwnProperty,e4=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of e6(t))!e7.call(e,n)&&n!==i&&e3(e,n,{get:()=>t[n],enumerable:!(r=e5(t,n))||r.enumerable});return e},e9={};e4(e9,r=e2,"default"),n&&e4(n,r,"default");var e8=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!!this._worker)Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),!this._client&&(this._worker=e9.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};(o=Z||(Z={})).MIN_VALUE=-2147483648,o.MAX_VALUE=2147483647,(s=J||(J={})).MIN_VALUE=0,s.MAX_VALUE=2147483647,(a=ee||(ee={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=J.MAX_VALUE),t===Number.MAX_VALUE&&(t=J.MAX_VALUE),{line:e,character:t}},a.is=function(e){return e1.objectLiteral(e)&&e1.uinteger(e.line)&&e1.uinteger(e.character)},(l=et||(et={})).create=function(e,t,i,r){if(e1.uinteger(e)&&e1.uinteger(t)&&e1.uinteger(i)&&e1.uinteger(r))return{start:ee.create(e,t),end:ee.create(i,r)};if(ee.is(e)&&ee.is(t))return{start:e,end:t};throw Error("Range#create called with invalid arguments["+e+", "+t+", "+i+", "+r+"]")},l.is=function(e){return e1.objectLiteral(e)&&ee.is(e.start)&&ee.is(e.end)},(c=ei||(ei={})).create=function(e,t){return{uri:e,range:t}},c.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.string(e.uri)||e1.undefined(e.uri))},(d=er||(er={})).create=function(e,t,i,r){return{targetUri:e,targetRange:t,targetSelectionRange:i,originSelectionRange:r}},d.is=function(e){return e1.defined(e)&&et.is(e.targetRange)&&e1.string(e.targetUri)&&(et.is(e.targetSelectionRange)||e1.undefined(e.targetSelectionRange))&&(et.is(e.originSelectionRange)||e1.undefined(e.originSelectionRange))},(u=en||(en={})).create=function(e,t,i,r){return{red:e,green:t,blue:i,alpha:r}},u.is=function(e){return e1.numberRange(e.red,0,1)&&e1.numberRange(e.green,0,1)&&e1.numberRange(e.blue,0,1)&&e1.numberRange(e.alpha,0,1)},(h=eo||(eo={})).create=function(e,t){return{range:e,color:t}},h.is=function(e){return et.is(e.range)&&en.is(e.color)},(g=es||(es={})).create=function(e,t,i){return{label:e,textEdit:t,additionalTextEdits:i}},g.is=function(e){return e1.string(e.label)&&(e1.undefined(e.textEdit)||em.is(e))&&(e1.undefined(e.additionalTextEdits)||e1.typedArray(e.additionalTextEdits,em.is))},(p=ea||(ea={})).Comment="comment",p.Imports="imports",p.Region="region",(m=el||(el={})).create=function(e,t,i,r,n){var o={startLine:e,endLine:t};return e1.defined(i)&&(o.startCharacter=i),e1.defined(r)&&(o.endCharacter=r),e1.defined(n)&&(o.kind=n),o},m.is=function(e){return e1.uinteger(e.startLine)&&e1.uinteger(e.startLine)&&(e1.undefined(e.startCharacter)||e1.uinteger(e.startCharacter))&&(e1.undefined(e.endCharacter)||e1.uinteger(e.endCharacter))&&(e1.undefined(e.kind)||e1.string(e.kind))},(f=ec||(ec={})).create=function(e,t){return{location:e,message:t}},f.is=function(e){return e1.defined(e)&&ei.is(e.location)&&e1.string(e.message)},(C=ed||(ed={})).Error=1,C.Warning=2,C.Information=3,C.Hint=4,(b=eu||(eu={})).Unnecessary=1,b.Deprecated=2,(eh||(eh={})).is=function(e){return null!=e&&e1.string(e.href)},(v=eg||(eg={})).create=function(e,t,i,r,n,o){var s={range:e,message:t};return e1.defined(i)&&(s.severity=i),e1.defined(r)&&(s.code=r),e1.defined(n)&&(s.source=n),e1.defined(o)&&(s.relatedInformation=o),s},v.is=function(e){var t;return e1.defined(e)&&et.is(e.range)&&e1.string(e.message)&&(e1.number(e.severity)||e1.undefined(e.severity))&&(e1.integer(e.code)||e1.string(e.code)||e1.undefined(e.code))&&(e1.undefined(e.codeDescription)||e1.string(null===(t=e.codeDescription)||void 0===t?void 0:t.href))&&(e1.string(e.source)||e1.undefined(e.source))&&(e1.undefined(e.relatedInformation)||e1.typedArray(e.relatedInformation,ec.is))},(_=ep||(ep={})).create=function(e,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var n={title:e,command:t};return e1.defined(i)&&i.length>0&&(n.arguments=i),n},_.is=function(e){return e1.defined(e)&&e1.string(e.title)&&e1.string(e.command)},(S=em||(em={})).replace=function(e,t){return{range:e,newText:t}},S.insert=function(e,t){return{range:{start:e,end:e},newText:t}},S.del=function(e){return{range:e,newText:""}},S.is=function(e){return e1.objectLiteral(e)&&e1.string(e.newText)&&et.is(e.range)},(y=ef||(ef={})).create=function(e,t,i){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==i&&(r.description=i),r},y.is=function(e){return void 0!==e&&e1.objectLiteral(e)&&e1.string(e.label)&&(e1.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(e1.string(e.description)||void 0===e.description)},(eC||(eC={})).is=function(e){return"string"==typeof e},(k=eb||(eb={})).replace=function(e,t,i){return{range:e,newText:t,annotationId:i}},k.insert=function(e,t,i){return{range:{start:e,end:e},newText:t,annotationId:i}},k.del=function(e,t){return{range:e,newText:"",annotationId:t}},k.is=function(e){return em.is(e)&&(ef.is(e.annotationId)||eC.is(e.annotationId))},(w=ev||(ev={})).create=function(e,t){return{textDocument:e,edits:t}},w.is=function(e){return e1.defined(e)&&eE.is(e.textDocument)&&Array.isArray(e.edits)},(x=e_||(e_={})).create=function(e,t,i){var r={kind:"create",uri:e};return void 0!==t&&(void 0!==t.overwrite||void 0!==t.ignoreIfExists)&&(r.options=t),void 0!==i&&(r.annotationId=i),r},x.is=function(e){return e&&"create"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||eC.is(e.annotationId))},(E=eS||(eS={})).create=function(e,t,i,r){var n={kind:"rename",oldUri:e,newUri:t};return void 0!==i&&(void 0!==i.overwrite||void 0!==i.ignoreIfExists)&&(n.options=i),void 0!==r&&(n.annotationId=r),n},E.is=function(e){return e&&"rename"===e.kind&&e1.string(e.oldUri)&&e1.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||eC.is(e.annotationId))},(L=ey||(ey={})).create=function(e,t,i){var r={kind:"delete",uri:e};return void 0!==t&&(void 0!==t.recursive||void 0!==t.ignoreIfNotExists)&&(r.options=t),void 0!==i&&(r.annotationId=i),r},L.is=function(e){return e&&"delete"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||e1.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||e1.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||eC.is(e.annotationId))},(ek||(ek={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every(function(e){return e1.string(e.kind)?e_.is(e)||eS.is(e)||ey.is(e):ev.is(e)}))};var te=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,i){var r,n;if(void 0===i?r=em.insert(e,t):eC.is(i)?(n=i,r=eb.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(i),r=eb.insert(e,t,n)),this.edits.push(r),void 0!==n)return n},e.prototype.replace=function(e,t,i){var r,n;if(void 0===i?r=em.replace(e,t):eC.is(i)?(n=i,r=eb.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(i),r=eb.replace(e,t,n)),this.edits.push(r),void 0!==n)return n},e.prototype.delete=function(e,t){var i,r;if(void 0===t?i=em.del(e):eC.is(t)?(r=t,i=eb.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),i=eb.del(e,r)),this.edits.push(i),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw Error("Text edit change is not configured to manage change annotations.")},e}(),tt=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var i;if(eC.is(e)?i=e:(i=this.nextId(),t=e),void 0!==this._annotations[i])throw Error("Id "+i+" is already in use.");if(void 0===t)throw Error("No annotation provided for id "+i);return this._annotations[i]=t,this._size++,i},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new tt(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(e){if(ev.is(e)){var i=new te(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(i){var r=new te(e.changes[i]);t._textEditChanges[i]=r})):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(eE.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},i=this._textEditChanges[t.uri];if(!i){var r=[],n={textDocument:t,edits:r};this._workspaceEdit.documentChanges.push(n),i=new te(r,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[e];if(!i){var r=[];this._workspaceEdit.changes[e]=r,i=new te(r),this._textEditChanges[e]=i}return i},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new tt,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,i){var r,n,o;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(ef.is(t)||eC.is(t)?r=t:i=t,void 0===r?n=e_.create(e,i):(o=eC.is(r)?r:this._changeAnnotations.manage(r),n=e_.create(e,i,o)),this._workspaceEdit.documentChanges.push(n),void 0!==o)return o},e.prototype.renameFile=function(e,t,i,r){var n,o,s;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(ef.is(i)||eC.is(i)?n=i:r=i,void 0===n?o=eS.create(e,t,r):(s=eC.is(n)?n:this._changeAnnotations.manage(n),o=eS.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,i){var r,n,o;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(ef.is(t)||eC.is(t)?r=t:i=t,void 0===r?n=ey.create(e,i):(o=eC.is(r)?r:this._changeAnnotations.manage(r),n=ey.create(e,i,o)),this._workspaceEdit.documentChanges.push(n),void 0!==o)return o}}(),(T=ew||(ew={})).create=function(e){return{uri:e}},T.is=function(e){return e1.defined(e)&&e1.string(e.uri)},(I=ex||(ex={})).create=function(e,t){return{uri:e,version:t}},I.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.integer(e.version)},(D=eE||(eE={})).create=function(e,t){return{uri:e,version:t}},D.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&(null===e.version||e1.integer(e.version))},(M=eL||(eL={})).create=function(e,t,i,r){return{uri:e,languageId:t,version:i,text:r}},M.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.string(e.languageId)&&e1.integer(e.version)&&e1.string(e.text)},(A=eT||(eT={})).PlainText="plaintext",A.Markdown="markdown",(P=eT||(eT={})).is=function(e){return e===P.PlainText||e===P.Markdown},(eI||(eI={})).is=function(e){return e1.objectLiteral(e)&&eT.is(e.kind)&&e1.string(e.value)},(R=eD||(eD={})).Text=1,R.Method=2,R.Function=3,R.Constructor=4,R.Field=5,R.Variable=6,R.Class=7,R.Interface=8,R.Module=9,R.Property=10,R.Unit=11,R.Value=12,R.Enum=13,R.Keyword=14,R.Snippet=15,R.Color=16,R.File=17,R.Reference=18,R.Folder=19,R.EnumMember=20,R.Constant=21,R.Struct=22,R.Event=23,R.Operator=24,R.TypeParameter=25,(N=eM||(eM={})).PlainText=1,N.Snippet=2,(eA||(eA={})).Deprecated=1,(F=eP||(eP={})).create=function(e,t,i){return{newText:e,insert:t,replace:i}},F.is=function(e){return e&&e1.string(e.newText)&&et.is(e.insert)&&et.is(e.replace)},(O=eR||(eR={})).asIs=1,O.adjustIndentation=2,(eN||(eN={})).create=function(e){return{label:e}},(eF||(eF={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(B=eO||(eO={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},B.is=function(e){return e1.string(e)||e1.objectLiteral(e)&&e1.string(e.language)&&e1.string(e.value)},(eB||(eB={})).is=function(e){return!!e&&e1.objectLiteral(e)&&(eI.is(e.contents)||eO.is(e.contents)||e1.typedArray(e.contents,eO.is))&&(void 0===e.range||et.is(e.range))},(eW||(eW={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(ez||(ez={})).create=function(e,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var n={label:e};return e1.defined(t)&&(n.documentation=t),e1.defined(i)?n.parameters=i:n.parameters=[],n},(W=eK||(eK={})).Text=1,W.Read=2,W.Write=3,(eH||(eH={})).create=function(e,t){var i={range:e};return e1.number(t)&&(i.kind=t),i},(z=eV||(eV={})).File=1,z.Module=2,z.Namespace=3,z.Package=4,z.Class=5,z.Method=6,z.Property=7,z.Field=8,z.Constructor=9,z.Enum=10,z.Interface=11,z.Function=12,z.Variable=13,z.Constant=14,z.String=15,z.Number=16,z.Boolean=17,z.Array=18,z.Object=19,z.Key=20,z.Null=21,z.EnumMember=22,z.Struct=23,z.Event=24,z.Operator=25,z.TypeParameter=26,(eU||(eU={})).Deprecated=1,(ej||(ej={})).create=function(e,t,i,r,n){var o={name:e,kind:t,location:{uri:r,range:i}};return n&&(o.containerName=n),o},(K=e$||(e$={})).create=function(e,t,i,r,n,o){var s={name:e,detail:t,kind:i,range:r,selectionRange:n};return void 0!==o&&(s.children=o),s},K.is=function(e){return e&&e1.string(e.name)&&e1.number(e.kind)&&et.is(e.range)&&et.is(e.selectionRange)&&(void 0===e.detail||e1.string(e.detail))&&(void 0===e.deprecated||e1.boolean(e.deprecated))&&(void 0===e.children||Array.isArray(e.children))&&(void 0===e.tags||Array.isArray(e.tags))},(H=eq||(eq={})).Empty="",H.QuickFix="quickfix",H.Refactor="refactor",H.RefactorExtract="refactor.extract",H.RefactorInline="refactor.inline",H.RefactorRewrite="refactor.rewrite",H.Source="source",H.SourceOrganizeImports="source.organizeImports",H.SourceFixAll="source.fixAll",(V=eG||(eG={})).create=function(e,t){var i={diagnostics:e};return null!=t&&(i.only=t),i},V.is=function(e){return e1.defined(e)&&e1.typedArray(e.diagnostics,eg.is)&&(void 0===e.only||e1.typedArray(e.only,e1.string))},(U=eX||(eX={})).create=function(e,t,i){var r={title:e},n=!0;return"string"==typeof t?(n=!1,r.kind=t):ep.is(t)?r.command=t:r.edit=t,n&&void 0!==i&&(r.kind=i),r},U.is=function(e){return e&&e1.string(e.title)&&(void 0===e.diagnostics||e1.typedArray(e.diagnostics,eg.is))&&(void 0===e.kind||e1.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||ep.is(e.command))&&(void 0===e.isPreferred||e1.boolean(e.isPreferred))&&(void 0===e.edit||ek.is(e.edit))},(j=eY||(eY={})).create=function(e,t){var i={range:e};return e1.defined(t)&&(i.data=t),i},j.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.command)||ep.is(e.command))},($=eQ||(eQ={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},$.is=function(e){return e1.defined(e)&&e1.uinteger(e.tabSize)&&e1.boolean(e.insertSpaces)},(q=eZ||(eZ={})).create=function(e,t,i){return{range:e,target:t,data:i}},q.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.target)||e1.string(e.target))},(G=eJ||(eJ={})).create=function(e,t){return{range:e,parent:t}},G.is=function(e){return void 0!==e&&et.is(e.range)&&(void 0===e.parent||G.is(e.parent))},(X=e0||(e0={})).create=function(e,t,i,r){return new ti(e,t,i,r)},X.is=function(e){return!!(e1.defined(e)&&e1.string(e.uri)&&(e1.undefined(e.languageId)||e1.string(e.languageId))&&e1.uinteger(e.lineCount)&&e1.func(e.getText)&&e1.func(e.positionAt)&&e1.func(e.offsetAt))},X.applyEdits=function(e,t){for(var i=e.getText(),r=function e(t,i){if(t.length<=1)return t;var r=t.length/2|0,n=t.slice(0,r),o=t.slice(r);e(n,i),e(o,i);for(var s=0,a=0,l=0;s<n.length&&a<o.length;)0>=i(n[s],o[a])?t[l++]=n[s++]:t[l++]=o[a++];for(;s<n.length;)t[l++]=n[s++];for(;a<o.length;)t[l++]=o[a++];return t}(t,function(e,t){var i=e.range.start.line-t.range.start.line;return 0===i?e.range.start.character-t.range.start.character:i}),n=i.length,o=r.length-1;o>=0;o--){var s=r[o],a=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(l<=n)i=i.substring(0,a)+s.newText+i.substring(l,i.length);else throw Error("Overlapping edit");n=a}return i};var ti=function(){function e(e,t,i,r){this._uri=e,this._languageId=t,this._version=i,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,i=!0,r=0;r<t.length;r++){i&&(e.push(r),i=!1);var n=t.charAt(r);i="\r"===n||"\n"===n,"\r"===n&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}i&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,r=t.length;if(0===r)return ee.create(0,e);for(;i<r;){var n=Math.floor((i+r)/2);t[n]>e?r=n:i=n+1}var o=i-1;return ee.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();Y=e1||(e1={}),Q=Object.prototype.toString,Y.defined=function(e){return void 0!==e},Y.undefined=function(e){return void 0===e},Y.boolean=function(e){return!0===e||!1===e},Y.string=function(e){return"[object String]"===Q.call(e)},Y.number=function(e){return"[object Number]"===Q.call(e)},Y.numberRange=function(e,t,i){return"[object Number]"===Q.call(e)&&t<=e&&e<=i},Y.integer=function(e){return"[object Number]"===Q.call(e)&&-2147483648<=e&&e<=2147483647},Y.uinteger=function(e){return"[object Number]"===Q.call(e)&&0<=e&&e<=2147483647},Y.func=function(e){return"[object Function]"===Q.call(e)},Y.objectLiteral=function(e){return null!==e&&"object"==typeof e},Y.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)};var tr=class{constructor(e,t,i){this._languageId=e,this._worker=t;let r=e=>{let t,i=e.getLanguageId();i===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent(()=>{window.clearTimeout(t),t=window.setTimeout(()=>this._doValidate(e.uri,i),500)}),this._doValidate(e.uri,i))},n=e=>{e9.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),i=this._listener[t];i&&(i.dispose(),delete this._listener[t])};this._disposables.push(e9.editor.onDidCreateModel(r)),this._disposables.push(e9.editor.onWillDisposeModel(n)),this._disposables.push(e9.editor.onDidChangeModelLanguage(e=>{n(e.model),r(e.model)})),this._disposables.push(i(e=>{e9.editor.getModels().forEach(e=>{e.getLanguageId()===this._languageId&&(n(e),r(e))})})),this._disposables.push({dispose:()=>{for(let e in e9.editor.getModels().forEach(n),this._listener)this._listener[e].dispose()}}),e9.editor.getModels().forEach(r)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,t){this._worker(e).then(t=>t.doValidation(e.toString())).then(i=>{let r=i.map(t=>(function(e,t){let i="number"==typeof t.code?String(t.code):t.code;return{severity:function(e){switch(e){case ed.Error:return e9.MarkerSeverity.Error;case ed.Warning:return e9.MarkerSeverity.Warning;case ed.Information:return e9.MarkerSeverity.Info;case ed.Hint:return e9.MarkerSeverity.Hint;default:return e9.MarkerSeverity.Info}}(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:i,source:t.source}})(e,t)),n=e9.editor.getModel(e);n&&n.getLanguageId()===t&&e9.editor.setModelMarkers(n,t,r)}).then(void 0,e=>{console.error(e)})}},tn=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,i,r){let n=e.uri;return this._worker(n).then(e=>e.doComplete(n.toString(),to(t))).then(i=>{if(!i)return;let r=e.getWordUntilPosition(t),n=new e9.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=i.items.map(e=>{let t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:function(e){return e&&"editor.action.triggerSuggest"===e.command?{id:e.command,title:e.title,arguments:e.arguments}:void 0}(e.command),range:n,kind:function(e){let t=e9.languages.CompletionItemKind;switch(e){case eD.Text:return t.Text;case eD.Method:return t.Method;case eD.Function:return t.Function;case eD.Constructor:return t.Constructor;case eD.Field:return t.Field;case eD.Variable:return t.Variable;case eD.Class:return t.Class;case eD.Interface:return t.Interface;case eD.Module:return t.Module;case eD.Property:break;case eD.Unit:return t.Unit;case eD.Value:return t.Value;case eD.Enum:return t.Enum;case eD.Keyword:return t.Keyword;case eD.Snippet:return t.Snippet;case eD.Color:return t.Color;case eD.File:return t.File;case eD.Reference:return t.Reference}return t.Property}(e.kind)};return e.textEdit&&(function(e){return void 0!==e.insert&&void 0!==e.replace}(e.textEdit)?t.range={insert:ta(e.textEdit.insert),replace:ta(e.textEdit.replace)}:t.range=ta(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tl)),e.insertTextFormat===eM.Snippet&&(t.insertTextRules=e9.languages.CompletionItemInsertTextRule.InsertAsSnippet),t});return{isIncomplete:i.isIncomplete,suggestions:o}})}};function to(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function ts(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ta(e){if(e)return new e9.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function tl(e){if(e)return{range:ta(e.range),text:e.newText}}var tc=class{constructor(e){this._worker=e}provideHover(e,t,i){let r=e.uri;return this._worker(r).then(e=>e.doHover(r.toString(),to(t))).then(e=>{if(e)return{range:ta(e.range),contents:function(e){if(e)return Array.isArray(e)?e.map(td):[td(e)]}(e.contents)}})}};function td(e){var t;if("string"==typeof e)return{value:e};if((t=e)&&"object"==typeof t&&"string"==typeof t.kind)return"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value};return{value:"```"+e.language+"\n"+e.value+"\n```\n"}}var tu=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,i){let r=e.uri;return this._worker(r).then(e=>e.findDocumentHighlights(r.toString(),to(t))).then(e=>{if(e)return e.map(e=>({range:ta(e.range),kind:function(e){switch(e){case eK.Read:return e9.languages.DocumentHighlightKind.Read;case eK.Write:return e9.languages.DocumentHighlightKind.Write;case eK.Text:}return e9.languages.DocumentHighlightKind.Text}(e.kind)}))})}},th=class{constructor(e){this._worker=e}provideDefinition(e,t,i){let r=e.uri;return this._worker(r).then(e=>e.findDefinition(r.toString(),to(t))).then(e=>{if(e)return[tg(e)]})}};function tg(e){return{uri:e9.Uri.parse(e.uri),range:ta(e.range)}}var tp=class{constructor(e){this._worker=e}provideReferences(e,t,i,r){let n=e.uri;return this._worker(n).then(e=>e.findReferences(n.toString(),to(t))).then(e=>{if(e)return e.map(tg)})}},tm=class{constructor(e){this._worker=e}provideRenameEdits(e,t,i,r){let n=e.uri;return this._worker(n).then(e=>e.doRename(n.toString(),to(t),i)).then(e=>(function(e){if(!e||!e.changes)return;let t=[];for(let i in e.changes){let r=e9.Uri.parse(i);for(let n of e.changes[i])t.push({resource:r,versionId:void 0,textEdit:{range:ta(n.range),text:n.newText}})}return{edits:t}})(e))}},tf=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentSymbols(i.toString())).then(e=>{if(e)return e.map(e=>({name:e.name,detail:"",containerName:e.containerName,kind:function(e){let t=e9.languages.SymbolKind;switch(e){case eV.File:return t.Array;case eV.Module:return t.Module;case eV.Namespace:return t.Namespace;case eV.Package:return t.Package;case eV.Class:return t.Class;case eV.Method:return t.Method;case eV.Property:return t.Property;case eV.Field:return t.Field;case eV.Constructor:return t.Constructor;case eV.Enum:return t.Enum;case eV.Interface:return t.Interface;case eV.Function:break;case eV.Variable:return t.Variable;case eV.Constant:return t.Constant;case eV.String:return t.String;case eV.Number:return t.Number;case eV.Boolean:return t.Boolean;case eV.Array:return t.Array}return t.Function}(e.kind),range:ta(e.location.range),selectionRange:ta(e.location.range),tags:[]}))})}},tC=class{constructor(e){this._worker=e}provideLinks(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentLinks(i.toString())).then(e=>{if(e)return{links:e.map(e=>({range:ta(e.range),url:e.target}))}})}},tb=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,i){let r=e.uri;return this._worker(r).then(e=>e.format(r.toString(),null,t_(t)).then(e=>{if(e&&0!==e.length)return e.map(tl)}))}},tv=class{constructor(e){this._worker=e}provideDocumentRangeFormattingEdits(e,t,i,r){let n=e.uri;return this._worker(n).then(e=>e.format(n.toString(),ts(t),t_(i)).then(e=>{if(e&&0!==e.length)return e.map(tl)}))}};function t_(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var tS=class{constructor(e){this._worker=e}provideDocumentColors(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentColors(i.toString())).then(e=>{if(e)return e.map(e=>({color:e.color,range:ta(e.range)}))})}provideColorPresentations(e,t,i){let r=e.uri;return this._worker(r).then(e=>e.getColorPresentations(r.toString(),t.color,ts(t.range))).then(e=>{if(e)return e.map(e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=tl(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tl)),t})})}},ty=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,i){let r=e.uri;return this._worker(r).then(e=>e.getFoldingRanges(r.toString(),t)).then(e=>{if(e)return e.map(e=>{let t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case ea.Comment:return e9.languages.FoldingRangeKind.Comment;case ea.Imports:return e9.languages.FoldingRangeKind.Imports;case ea.Region:return e9.languages.FoldingRangeKind.Region}}(e.kind)),t})})}},tk=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,i){let r=e.uri;return this._worker(r).then(e=>e.getSelectionRanges(r.toString(),t.map(to))).then(e=>{if(e)return e.map(e=>{let t=[];for(;e;)t.push({range:ta(e.range)}),e=e.parent;return t})})}},tw=class extends tn{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function tx(e){let t=new e8(e),i=(...e)=>t.getLanguageServiceWorker(...e),r=e.languageId;e9.languages.registerCompletionItemProvider(r,new tw(i)),e9.languages.registerHoverProvider(r,new tc(i)),e9.languages.registerDocumentHighlightProvider(r,new tu(i)),e9.languages.registerLinkProvider(r,new tC(i)),e9.languages.registerFoldingRangeProvider(r,new ty(i)),e9.languages.registerDocumentSymbolProvider(r,new tf(i)),e9.languages.registerSelectionRangeProvider(r,new tk(i)),e9.languages.registerRenameProvider(r,new tm(i)),"html"===r&&(e9.languages.registerDocumentFormattingEditProvider(r,new tb(i)),e9.languages.registerDocumentRangeFormattingEditProvider(r,new tv(i)))}function tE(e){let t=[],i=[],r=new e8(e);t.push(r);let n=(...e)=>r.getLanguageServiceWorker(...e);return!function(){let{languageId:t,modeConfiguration:r}=e;tT(i),r.completionItems&&i.push(e9.languages.registerCompletionItemProvider(t,new tw(n))),r.hovers&&i.push(e9.languages.registerHoverProvider(t,new tc(n))),r.documentHighlights&&i.push(e9.languages.registerDocumentHighlightProvider(t,new tu(n))),r.links&&i.push(e9.languages.registerLinkProvider(t,new tC(n))),r.documentSymbols&&i.push(e9.languages.registerDocumentSymbolProvider(t,new tf(n))),r.rename&&i.push(e9.languages.registerRenameProvider(t,new tm(n))),r.foldingRanges&&i.push(e9.languages.registerFoldingRangeProvider(t,new ty(n))),r.selectionRanges&&i.push(e9.languages.registerSelectionRangeProvider(t,new tk(n))),r.documentFormattingEdits&&i.push(e9.languages.registerDocumentFormattingEditProvider(t,new tb(n))),r.documentRangeFormattingEdits&&i.push(e9.languages.registerDocumentRangeFormattingEditProvider(t,new tv(n)))}(),t.push(tL(i)),tL(t)}function tL(e){return{dispose:()=>tT(e)}}function tT(e){for(;e.length;)e.pop().dispose()}},205914:function(e,t,i){"use strict";let r,n;i.r(t),i.d(t,{typescriptDefaults:function(){return k}});var o,s,a,l,c,d=i("299334"),u=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,m=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of g(t))!p.call(e,n)&&n!==i&&u(e,n,{get:()=>t[n],enumerable:!(r=h(t,n))||r.enumerable});return e},f={};m(f,r=d,"default"),n&&m(n,r,"default");var C=((o=C||{})[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o);var b=((s=b||{})[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev",s);var v=((a=v||{})[a.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",a[a.LineFeed=1]="LineFeed",a);var _=((l=_||{})[l.ES3=0]="ES3",l[l.ES5=1]="ES5",l[l.ES2015=2]="ES2015",l[l.ES2016=3]="ES2016",l[l.ES2017=4]="ES2017",l[l.ES2018=5]="ES2018",l[l.ES2019=6]="ES2019",l[l.ES2020=7]="ES2020",l[l.ESNext=99]="ESNext",l[l.JSON=100]="JSON",l[l.Latest=99]="Latest",l);var S=((c=S||{})[c.Classic=1]="Classic",c[c.NodeJs=2]="NodeJs",c),y=class{_onDidChange=new f.Emitter;_onDidExtraLibsChange=new f.Emitter;_extraLibs;_removedExtraLibs;_eagerModelSync;_compilerOptions;_diagnosticsOptions;_workerOptions;_onDidExtraLibsChangeTimeout;_inlayHintsOptions;constructor(e,t,i,r){this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(r),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i=void 0===t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let r=1;return this._removedExtraLibs[i]&&(r=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(r=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];if(!!e)e.version===r&&(delete this._extraLibs[i],this._removedExtraLibs[i]=r,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let t of e){let e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content,r=1;this._removedExtraLibs[e]&&(r=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}},k=new y({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),w=new y({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{});function x(){return Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"360199"))}f.languages.typescript={ModuleKind:C,JsxEmit:b,NewLineKind:v,ScriptTarget:_,ModuleResolutionKind:S,typescriptVersion:"4.5.5",typescriptDefaults:k,javascriptDefaults:w,getTypeScriptWorker:()=>x().then(e=>e.getTypeScriptWorker()),getJavaScriptWorker:()=>x().then(e=>e.getJavaScriptWorker())},f.languages.onLanguage("typescript",()=>x().then(e=>e.setupTypeScript(k))),f.languages.onLanguage("javascript",()=>x().then(e=>e.setupJavaScript(w)))},708339:function(e,t,i){"use strict";i.r(t),i.d(t,{getConfiguredDefaultLocale:function(){return o},localize:function(){return n}});let r="undefined"!=typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function n(e,t,...i){var o,s;let a;return o=t,a=0===(s=i).length?o:o.replace(/\{(\d+)\}/g,(e,t)=>{let i=s[t[0]],r=e;return"string"==typeof i?r=i:("number"==typeof i||"boolean"==typeof i||null==i)&&(r=String(i)),r}),r&&(a="\uFF3B"+a.replace(/[aouei]/g,"$&$&")+"\uFF3D"),a}function o(e){}},804990:function(e,t,i){"use strict";i.r(t),i.d(t,{BrowserClipboardService:function(){return u}});var r=i("259527"),n=i("409737"),o=i("467518"),s=i("919527"),a=i("280655"),l=i("853881"),c=function(e,t){return function(i,r){t(i,r,e)}},d=function(e,t,i,r){return new(i||(i=Promise))(function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};let u=class extends s.Disposable{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],(r.isSafari||r.isWebkitWebView)&&this.installWebKitWriteTextWorkaround()}installWebKitWriteTextWorkaround(){let e=()=>{let e=new o.DeferredPromise;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch(t=>d(this,void 0,void 0,function*(){(!(t instanceof Error)||"NotAllowedError"!==t.name||!e.isRejected)&&this.logService.error(t)}))};this.layoutService.hasContainer&&(this._register((0,n.addDisposableListener)(this.layoutService.container,"click",e)),this._register((0,n.addDisposableListener)(this.layoutService.container,"keydown",e)))}writeText(e,t){return d(this,void 0,void 0,function*(){if(t){this.mapTextToType.set(t,e);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return yield navigator.clipboard.writeText(e)}catch(e){console.error(e)}let i=document.activeElement,r=document.body.appendChild((0,n.$)("textarea",{"aria-hidden":!0}));r.style.height="1px",r.style.width="1px",r.style.position="absolute",r.value=e,r.focus(),r.select(),document.execCommand("copy"),i instanceof HTMLElement&&i.focus(),document.body.removeChild(r)})}readText(e){return d(this,void 0,void 0,function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(e){return console.error(e),""}})}readFindText(){return d(this,void 0,void 0,function*(){return this.findText})}writeFindText(e){return d(this,void 0,void 0,function*(){this.findText=e})}readResources(){return d(this,void 0,void 0,function*(){return this.resources})}};u=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([c(0,a.ILayoutService),c(1,l.ILogService)],u)},820398:function(e,t,i){"use strict";i.r(t),i.d(t,{DefaultConfigurationModel:function(){return a}});var r=i("753861"),n=i("533786"),o=i("691125"),s=i("112721");class a extends n.ConfigurationModel{constructor(e={}){let t=s.Registry.as(o.Extensions.Configuration).getConfigurationProperties(),i=Object.keys(t),n=Object.create(null),a=[];for(let i in t){let o=e[i],s=void 0!==o?o:t[i].default;(0,r.addToValueTree)(n,i,s,e=>console.error(`Conflict in default settings: ${e}`))}for(let e of Object.keys(n))o.OVERRIDE_PROPERTY_REGEX.test(e)&&a.push({identifiers:(0,o.overrideIdentifiersFromKey)(e),keys:Object.keys(n[e]),contents:(0,r.toValuesTree)(n[e],e=>console.error(`Conflict in default settings file: ${e}`))});super(n,i,a)}}},164494:function(e,t,i){"use strict";i.r(t),i.d(t,{ContextMenuService:function(){return g}});var r=i("409737"),n=i("916904"),o=i("919527"),s=i("534752"),a=i("297669"),l=i("614800"),c=i("439703"),d=i("92512"),u=i("158935"),h=function(e,t){return function(i,r){t(i,r,e)}};let g=class extends o.Disposable{constructor(e,t,i,r,o){super(),this._onDidShowContextMenu=new n.Emitter,this._onDidHideContextMenu=new n.Emitter,this.contextMenuHandler=new d.ContextMenuHandler(i,e,t,r,o)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(Object.assign(Object.assign({},e),{onHide:t=>{var i;null===(i=e.onHide)||void 0===i||i.call(e,t),this._onDidHideContextMenu.fire()}})),r.ModifierKeyEmitter.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};g=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([h(0,l.ITelemetryService),h(1,a.INotificationService),h(2,u.IContextViewService),h(3,s.IKeybindingService),h(4,c.IThemeService)],g)},933328:function(e,t,i){"use strict";i.r(t),i.d(t,{ContextViewService:function(){return l}});var r,n,o=i("98153"),s=i("919527"),a=i("280655");let l=class extends s.Disposable{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=s.Disposable.None,this.container=e.hasContainer?e.container:null,this.contextView=this._register(new o.ContextView(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 r=(0,s.toDisposable)(()=>{this.currentViewDisposable===r&&this.hideContextView()});return this.currentViewDisposable=r,r}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};l=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([(r=0,n=a.ILayoutService,function(e,t){n(e,t,0)})],l)},176807:function(e,t,i){"use strict";var r,n;i.r(t),i.d(t,{EditorOpenSource:function(){return r}}),(n=r||(r={}))[n.API=0]="API",n[n.USER=1]="USER"},294124:function(e,t,i){"use strict";i.r(t),i.d(t,{AbstractKeybindingService:function(){return l}});var r=i("467518"),n=i("916904"),o=i("919527"),s=i("708339");let a=/^(cursor|delete)/;class l extends o.Disposable{constructor(e,t,i,o,s){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=o,this._logService=s,this._onDidUpdateKeybindings=this._register(new n.Emitter),this._currentChord=null,this._currentChordChecker=new r.IntervalTimer,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=c.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new r.TimeoutTimer,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:n.Event.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){let i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");let i=this.resolveKeyboardEvent(e);if(i.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;let[r]=i.getDispatchParts();if(null===r)return this._log("\\ Keyboard event cannot be dispatched"),null;let n=this._contextKeyService.getContext(t),o=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(n,o,r)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(s.localize("first.chord","({0}) was pressed. Waiting for second key of chord...",t));let i=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-i>5e3&&this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){let i=this.resolveKeyboardEvent(e),[r]=i.getSingleModifierDispatchParts();if(r)return this._ignoreSingleModifiers.has(r)?(this._log(`+ Ignoring single modifier ${r} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=c.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=c.EMPTY,null===this._currentSingleModifier)?(this._log(`+ Storing single modifier for possible chord ${r}.`),this._currentSingleModifier=r,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):r===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${r} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1);let[n]=i.getParts();return this._ignoreSingleModifiers=new c(n),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){let r=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let n=null,o=null;if(i){let[t]=e.getSingleModifierDispatchParts();n=t,o=t}else[n]=e.getDispatchParts(),o=this._currentChord?this._currentChord.keypress:null;if(null===n)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),r;let l=this._contextKeyService.getContext(t),c=e.getLabel(),d=this._getResolver().resolve(l,o,n);return(this._logService.trace("KeybindingService#dispatch",c,null==d?void 0:d.commandId),d&&d.enterChord)?(r=!0,this._enterChordMode(n,c),this._log("+ Entering chord mode..."),r):(this._currentChord&&(!d||!d.commandId)&&(this._log(`+ Leaving chord mode: Nothing bound to "${this._currentChord.label} ${c}".`),this._notificationService.status(s.localize("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,c),{hideAfter:1e4}),r=!0),this._leaveChordMode(),d&&d.commandId&&(!d.bubble&&(r=!0),this._log(`+ Invoking command ${d.commandId}.`),void 0===d.commandArgs?this._commandService.executeCommand(d.commandId).then(void 0,e=>this._notificationService.warn(e)):this._commandService.executeCommand(d.commandId,d.commandArgs).then(void 0,e=>this._notificationService.warn(e)),!a.test(d.commandId)&&this._telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"keybinding"})),r)}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(!!(e.keyCode>=31)&&!!(e.keyCode<=56)||!!(e.keyCode>=21)&&!!(e.keyCode<=30)||!1)}}class c{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}c.EMPTY=new c(null)},534752:function(e,t,i){"use strict";i.r(t),i.d(t,{IKeybindingService:function(){return r}});let r=(0,i("706301").createDecorator)("keybindingService")},685649:function(e,t,i){"use strict";i.r(t),i.d(t,{PickerQuickAccessProvider:function(){return d}});var r,n,o=i("467518"),s=i("500862"),a=i("919527"),l=function(e,t,i,r){return new(i||(i=Promise))(function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};function c(e){return Array.isArray(e.items)}(r=n||(n={}))[r.NO_ACTION=0]="NO_ACTION",r[r.CLOSE_PICKER=1]="CLOSE_PICKER",r[r.REFRESH_PICKER=2]="REFRESH_PICKER",r[r.REMOVE_ITEM=3]="REMOVE_ITEM";class d extends a.Disposable{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var i;let r;let u=new a.DisposableStore;e.canAcceptInBackground=!!(null===(i=this.options)||void 0===i?void 0:i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let h=u.add(new a.MutableDisposable),g=()=>l(this,void 0,void 0,function*(){let i=h.value=new a.DisposableStore;null==r||r.dispose(!0),e.busy=!1;let n=(r=new s.CancellationTokenSource(t)).token,u=e.value.substr(this.prefix.length).trim(),g=this._getPicks(u,i,n),p=(t,i)=>{var r;let n,o;if(c(t)?(n=t.items,o=t.active):n=t,0===n.length){if(i)return!1;u.length>0&&(null===(r=this.options)||void 0===r?void 0:r.noResultsPick)&&(n=[this.options.noResultsPick])}return e.items=n,o&&(e.activeItems=[o]),!0};if(null===g);else{var m;if((m=g).picks&&m.additionalPicks instanceof Promise){let t=!1,i=!1;yield Promise.all([l(this,void 0,void 0,function*(){yield(0,o.timeout)(d.FAST_PICKS_RACE_DELAY),n.isCancellationRequested||i||(t=p(g.picks,!0))}),l(this,void 0,void 0,function*(){e.busy=!0;try{let i,r,o,s;let a=yield g.additionalPicks;if(n.isCancellationRequested)return;c(g.picks)?(i=g.picks.items,o=g.picks.active):i=g.picks;if(c(a)?(r=a.items,s=a.active):r=a,r.length>0||!t){let t;if(!o&&!s){let r=e.activeItems[0];r&&-1!==i.indexOf(r)&&(t=r)}p({items:[...i,...r],active:o||s||t})}}finally{n.isCancellationRequested||(e.busy=!1),i=!0}})])}else if(g instanceof Promise){e.busy=!0;try{let e=yield g;if(n.isCancellationRequested)return;p(e)}finally{!n.isCancellationRequested&&(e.busy=!1)}}else p(g)}});return u.add(e.onDidChangeValue(()=>g())),g(),u.add(e.onDidAccept(t=>{let[i]=e.selectedItems;"function"==typeof(null==i?void 0:i.accept)&&(!t.inBackground&&e.hide(),i.accept(e.keyMods,t))})),u.add(e.onDidTriggerItemButton(({button:i,item:r})=>l(this,void 0,void 0,function*(){var o,s;if("function"==typeof r.trigger){let a=null!==(s=null===(o=r.buttons)||void 0===o?void 0:o.indexOf(i))&&void 0!==s?s:-1;if(a>=0){let i=r.trigger(a,e.keyMods),o="number"==typeof i?i:yield i;if(t.isCancellationRequested)return;switch(o){case n.NO_ACTION:break;case n.CLOSE_PICKER:e.hide();break;case n.REFRESH_PICKER:g();break;case n.REMOVE_ITEM:{let t=e.items.indexOf(r);if(-1!==t){let i=e.items.slice(),r=i.splice(t,1),n=e.activeItems.filter(e=>e!==r[0]),o=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,n&&(e.activeItems=n),e.keepScrollPosition=o}}}}}}))),u}}d.FAST_PICKS_RACE_DELAY=200},479895:function(e,t,i){"use strict";i.r(t),i.d(t,{IQuickInputService:function(){return o}});var r=i("706301"),n=i("843130");i.es(n,t);let o=(0,r.createDecorator)("quickInputService")},243692:function(e,t,i){"use strict";i.r(t),i.d(t,{IStorageService:function(){return u},InMemoryStorageService:function(){return g},WillSaveStateReason:function(){return n}});var r,n,o=i("916904"),s=i("919527"),a=i("744138"),l=i("35761"),c=i("706301");let d="__$__targetStorageMarker",u=(0,c.createDecorator)("storageService");(r=n||(n={}))[r.NONE=0]="NONE",r[r.SHUTDOWN=1]="SHUTDOWN";class h extends s.Disposable{constructor(e={flushInterval:h.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new o.PauseableEmitter),this.onDidChangeValue=this._onDidChangeValue.event,this._onDidChangeTarget=this._register(new o.PauseableEmitter),this._onWillSaveState=this._register(new o.Emitter),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}emitDidChangeValue(e,t){if(t===d){switch(e){case -1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,i){var r;return null===(r=this.getStorage(t))||void 0===r?void 0:r.get(e,i)}getBoolean(e,t,i){var r;return null===(r=this.getStorage(t))||void 0===r?void 0:r.getBoolean(e,i)}getNumber(e,t,i){var r;return null===(r=this.getStorage(t))||void 0===r?void 0:r.getNumber(e,i)}store(e,t,i,r){if((0,a.isUndefinedOrNull)(t)){this.remove(e,i);return}this.withPausedEmitters(()=>{var n;this.updateKeyTarget(e,i,r),null===(n=this.getStorage(i))||void 0===n||n.set(e,t)})}remove(e,t){this.withPausedEmitters(()=>{var i;this.updateKeyTarget(e,t,void 0),null===(i=this.getStorage(t))||void 0===i||i.delete(e)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i){var r,n;let o=this.getKeyTargets(t);"number"==typeof i?o[e]!==i&&(o[e]=i,null===(r=this.getStorage(t))||void 0===r||r.set(d,JSON.stringify(o))):"number"==typeof o[e]&&(delete o[e],null===(n=this.getStorage(t))||void 0===n||n.set(d,JSON.stringify(o)))}get workspaceKeyTargets(){return!this._workspaceKeyTargets&&(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return!this._profileKeyTargets&&(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return!this._applicationKeyTargets&&(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case -1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){let t=this.get(d,e);if(t)try{return JSON.parse(t)}catch(e){}return Object.create(null)}}h.DEFAULT_FLUSH_INTERVAL=6e4;class g extends h{constructor(){super(),this.applicationStorage=this._register(new l.Storage(new l.InMemoryStorageDatabase)),this.profileStorage=this._register(new l.Storage(new l.InMemoryStorageDatabase)),this.workspaceStorage=this._register(new l.Storage(new l.InMemoryStorageDatabase)),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.profileStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e))),this._register(this.applicationStorage.onDidChangeStorage(e=>this.emitDidChangeValue(-1,e)))}getStorage(e){switch(e){case -1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},791563:function(e,t,i){"use strict";i.r(t),i.d(t,{UnthemedProductIconTheme:function(){return l},getIconsStyleSheet:function(){return a}});var r=i("409737"),n=i("916904"),o=i("338842"),s=i("439703");function a(e){let t=new n.Emitter,i=(0,o.getIconRegistry)();return i.onDidChange(()=>t.fire()),null==e||e.onDidProductIconThemeChange(()=>t.fire()),{onDidChange:t.event,getCSS(){let t=e?e.getProductIconTheme():new l,n={},o=e=>{let i=t.getIcon(e);if(!i)return;let o=i.font;return o?(n[o.id]=o.definition,`.codicon-${e.id}:before { content: '${i.fontCharacter}'; font-family: ${(0,r.asCSSPropertyValue)(o.id)}; }`):`.codicon-${e.id}:before { content: '${i.fontCharacter}'; }`},s=[];for(let e of i.getIcons()){let t=o(e);t&&s.push(t)}for(let e in n){let t=n[e],i=t.weight?`font-weight: ${t.weight};`:"",o=t.style?`font-style: ${t.style};`:"",a=t.src.map(e=>`${(0,r.asCSSUrl)(e.location)} format('${e.format}')`).join(", ");s.push(`@font-face { src: ${a}; font-family: ${(0,r.asCSSPropertyValue)(e)};${i}${o} font-display: block; }`)}return s.join("\n")}}}class l{getIcon(e){let t=(0,o.getIconRegistry)(),i=e.defaults;for(;s.ThemeIcon.isThemeIcon(i);){let e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}},897085:function(e,t,i){"use strict";i.r(t),i.d(t,{Extensions:function(){return u},activeContrastBorder:function(){return v},asCssVariableName:function(){return d},badgeBackground:function(){return $},badgeForeground:function(){return q},buttonBackground:function(){return V},buttonForeground:function(){return H},buttonHoverBackground:function(){return U},contrastBorder:function(){return b},defaultInsertColor:function(){return eY},defaultRemoveColor:function(){return eQ},diffBorder:function(){return e9},diffDiagonalFill:function(){return e8},diffInserted:function(){return eZ},diffInsertedLine:function(){return e0},diffInsertedLineGutter:function(){return e2},diffInsertedOutline:function(){return e7},diffOverviewRulerInserted:function(){return e5},diffOverviewRulerRemoved:function(){return e6},diffRemoved:function(){return eJ},diffRemovedLine:function(){return e1},diffRemovedLineGutter:function(){return e3},diffRemovedOutline:function(){return e4},editorActiveLinkForeground:function(){return eK},editorBackground:function(){return ed},editorErrorBackground:function(){return J},editorErrorBorder:function(){return et},editorErrorForeground:function(){return ee},editorFindMatch:function(){return eD},editorFindMatchBorder:function(){return eP},editorFindMatchHighlight:function(){return eM},editorFindMatchHighlightBorder:function(){return eR},editorFindRangeHighlight:function(){return eA},editorFindRangeHighlightBorder:function(){return eN},editorForeground:function(){return eu},editorHintBorder:function(){return ec},editorHintForeground:function(){return el},editorHoverBackground:function(){return eO},editorHoverBorder:function(){return eW},editorHoverForeground:function(){return eB},editorHoverHighlight:function(){return eF},editorHoverStatusBarBackground:function(){return ez},editorInactiveSelection:function(){return eL},editorInfoBackground:function(){return eo},editorInfoBorder:function(){return ea},editorInfoForeground:function(){return es},editorInlayHintBackground:function(){return eV},editorInlayHintForeground:function(){return eH},editorInlayHintParameterBackground:function(){return eq},editorInlayHintParameterForeground:function(){return e$},editorInlayHintTypeBackground:function(){return ej},editorInlayHintTypeForeground:function(){return eU},editorLightBulbAutoFixForeground:function(){return eX},editorLightBulbForeground:function(){return eG},editorSelectionBackground:function(){return ex},editorSelectionForeground:function(){return eE},editorSelectionHighlight:function(){return eT},editorSelectionHighlightBorder:function(){return eI},editorWarningBackground:function(){return ei},editorWarningBorder:function(){return en},editorWarningForeground:function(){return er},editorWidgetBackground:function(){return eh},editorWidgetBorder:function(){return ep},editorWidgetForeground:function(){return eg},editorWidgetResizeBorder:function(){return em},errorForeground:function(){return m},focusBorder:function(){return C},foreground:function(){return p},iconForeground:function(){return f},inputActiveOptionBackground:function(){return T},inputActiveOptionBorder:function(){return L},inputActiveOptionForeground:function(){return I},inputBackground:function(){return w},inputBorder:function(){return E},inputForeground:function(){return x},inputValidationErrorBackground:function(){return F},inputValidationErrorBorder:function(){return B},inputValidationErrorForeground:function(){return O},inputValidationInfoBackground:function(){return D},inputValidationInfoBorder:function(){return A},inputValidationInfoForeground:function(){return M},inputValidationWarningBackground:function(){return P},inputValidationWarningBorder:function(){return N},inputValidationWarningForeground:function(){return R},keybindingLabelBackground:function(){return eS},keybindingLabelBorder:function(){return ek},keybindingLabelBottomBorder:function(){return ew},keybindingLabelForeground:function(){return ey},listActiveSelectionBackground:function(){return tn},listActiveSelectionForeground:function(){return to},listActiveSelectionIconForeground:function(){return ts},listDropBackground:function(){return tp},listFilterWidgetBackground:function(){return tC},listFilterWidgetNoMatchesOutline:function(){return tv},listFilterWidgetOutline:function(){return tb},listFilterWidgetShadow:function(){return t_},listFocusAndSelectionOutline:function(){return tr},listFocusBackground:function(){return te},listFocusForeground:function(){return tt},listFocusHighlightForeground:function(){return tf},listFocusOutline:function(){return ti},listHighlightForeground:function(){return tm},listHoverBackground:function(){return th},listHoverForeground:function(){return tg},listInactiveFocusBackground:function(){return td},listInactiveFocusOutline:function(){return tu},listInactiveSelectionBackground:function(){return ta},listInactiveSelectionForeground:function(){return tl},listInactiveSelectionIconForeground:function(){return tc},menuBackground:function(){return tD},menuBorder:function(){return tT},menuForeground:function(){return tI},menuSelectionBackground:function(){return tA},menuSelectionBorder:function(){return tP},menuSelectionForeground:function(){return tM},menuSeparatorBackground:function(){return tR},minimapBackground:function(){return tY},minimapError:function(){return tG},minimapFindMatch:function(){return tj},minimapForegroundOpacity:function(){return tQ},minimapSelection:function(){return tq},minimapSelectionOccurrenceHighlight:function(){return t$},minimapSliderActiveBackground:function(){return t0},minimapSliderBackground:function(){return tZ},minimapSliderHoverBackground:function(){return tJ},minimapWarning:function(){return tX},oneOf:function(){return t4},overviewRulerFindMatchForeground:function(){return tV},overviewRulerSelectionHighlightForeground:function(){return tU},pickerGroupBorder:function(){return e_},pickerGroupForeground:function(){return ev},problemsErrorIconForeground:function(){return t1},problemsInfoIconForeground:function(){return t3},problemsWarningIconForeground:function(){return t2},progressBarBackground:function(){return Z},quickInputBackground:function(){return ef},quickInputForeground:function(){return eC},quickInputListFocusBackground:function(){return tL},quickInputListFocusForeground:function(){return tx},quickInputListFocusIconForeground:function(){return tE},quickInputTitleBackground:function(){return eb},registerColor:function(){return g},resolveColorValue:function(){return t8},scrollbarShadow:function(){return G},scrollbarSliderActiveBackground:function(){return Q},scrollbarSliderBackground:function(){return X},scrollbarSliderHoverBackground:function(){return Y},tableColumnsBorder:function(){return ty},tableOddRowsBackgroundColor:function(){return tk},textCodeBlockBackground:function(){return y},textLinkActiveForeground:function(){return S},textLinkForeground:function(){return _},toolbarHoverBackground:function(){return tN},transparent:function(){return t7},treeIndentGuidesStroke:function(){return tS},widgetShadow:function(){return k}});var r=i("467518"),n=i("835271"),o=i("916904"),s=i("744138"),a=i("708339"),l=i("629711"),c=i("112721");function d(e){return`--vscode-${e.replace(/\./g,"-")}`}let u={ColorContribution:"base.contributions.colors"},h=new class e{constructor(){this._onDidChangeSchema=new o.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,r=!1,n){this.colorsById[e]={id:e,description:i,defaults:t,needsTransparency:r,deprecationMessage:n};let o={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return n&&(o.deprecationMessage=n),this.colorSchema.properties[e]=o,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map(e=>this.colorsById[e])}resolveDefaultColor(e,t){let i=this.colorsById[e];if(i&&i.defaults)return t8(i.defaults[t.type],t)}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort((e,t)=>{let i=-1===e.indexOf(".")?0:1,r=-1===t.indexOf(".")?0:1;return i!==r?i-r:e.localeCompare(t)}).map(e=>`- \`${e}\`: ${this.colorsById[e].description}`).join("\n")}};c.Registry.add(u.ColorContribution,h);function g(e,t,i,r,n){var o;return h.registerColor(e,null===(o=t)?o:(void 0===o.hcLight&&(null===o.hcDark||"string"==typeof o.hcDark?o.hcLight=o.hcDark:o.hcLight=o.light),o),i,r,n)}let p=g("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},a.localize("foreground","Overall foreground color. This color is only used if not overridden by a component."));g("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},a.localize("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component."));let m=g("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},a.localize("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."));g("descriptionForeground",{light:"#717171",dark:t7(p,.7),hcDark:t7(p,.7),hcLight:t7(p,.7)},a.localize("descriptionForeground","Foreground color for description text providing additional information, for example for a label."));let f=g("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},a.localize("iconForeground","The default color for icons in the workbench.")),C=g("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#0F4A85"},a.localize("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),b=g("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},a.localize("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),v=g("contrastActiveBorder",{light:null,dark:null,hcDark:C,hcLight:C},a.localize("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));g("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},a.localize("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),g("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:n.Color.black,hcLight:"#292929"},a.localize("textSeparatorForeground","Color for text separators."));let _=g("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.localize("textLinkForeground","Foreground color for links in text.")),S=g("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#3794FF",hcLight:"#0F4A85"},a.localize("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover."));g("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#D7BA7D",hcLight:"#292929"},a.localize("textPreformatForeground","Foreground color for preformatted text segments.")),g("textBlockQuote.background",{light:"#7f7f7f1a",dark:"#7f7f7f1a",hcDark:null,hcLight:"#F2F2F2"},a.localize("textBlockQuoteBackground","Background color for block quotes in text.")),g("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:n.Color.white,hcLight:"#292929"},a.localize("textBlockQuoteBorder","Border color for block quotes in text."));let y=g("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:n.Color.black,hcLight:"#F2F2F2"},a.localize("textCodeBlockBackground","Background color for code blocks in text.")),k=g("widget.shadow",{dark:t7(n.Color.black,.36),light:t7(n.Color.black,.16),hcDark:null,hcLight:null},a.localize("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),w=g("input.background",{dark:"#3C3C3C",light:n.Color.white,hcDark:n.Color.black,hcLight:n.Color.white},a.localize("inputBoxBackground","Input box background.")),x=g("input.foreground",{dark:p,light:p,hcDark:p,hcLight:p},a.localize("inputBoxForeground","Input box foreground.")),E=g("input.border",{dark:null,light:null,hcDark:b,hcLight:b},a.localize("inputBoxBorder","Input box border.")),L=g("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hcDark:b,hcLight:b},a.localize("inputBoxActiveOptionBorder","Border color of activated options in input fields."));g("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},a.localize("inputOption.hoverBackground","Background color of activated options in input fields."));let T=g("inputOption.activeBackground",{dark:t7(C,.4),light:t7(C,.2),hcDark:n.Color.transparent,hcLight:n.Color.transparent},a.localize("inputOption.activeBackground","Background hover color of options in input fields.")),I=g("inputOption.activeForeground",{dark:n.Color.white,light:n.Color.black,hcDark:null,hcLight:p},a.localize("inputOption.activeForeground","Foreground color of activated options in input fields."));g("input.placeholderForeground",{light:t7(p,.5),dark:t7(p,.5),hcDark:t7(p,.7),hcLight:t7(p,.7)},a.localize("inputPlaceholderForeground","Input box foreground color for placeholder text."));let D=g("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:n.Color.black,hcLight:n.Color.white},a.localize("inputValidationInfoBackground","Input validation background color for information severity.")),M=g("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:p},a.localize("inputValidationInfoForeground","Input validation foreground color for information severity.")),A=g("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:b,hcLight:b},a.localize("inputValidationInfoBorder","Input validation border color for information severity.")),P=g("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:n.Color.black,hcLight:n.Color.white},a.localize("inputValidationWarningBackground","Input validation background color for warning severity.")),R=g("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:p},a.localize("inputValidationWarningForeground","Input validation foreground color for warning severity.")),N=g("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:b,hcLight:b},a.localize("inputValidationWarningBorder","Input validation border color for warning severity.")),F=g("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:n.Color.black,hcLight:n.Color.white},a.localize("inputValidationErrorBackground","Input validation background color for error severity.")),O=g("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:p},a.localize("inputValidationErrorForeground","Input validation foreground color for error severity.")),B=g("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:b,hcLight:b},a.localize("inputValidationErrorBorder","Input validation border color for error severity.")),W=g("dropdown.background",{dark:"#3C3C3C",light:n.Color.white,hcDark:n.Color.black,hcLight:n.Color.white},a.localize("dropdownBackground","Dropdown background."));g("dropdown.listBackground",{dark:null,light:null,hcDark:n.Color.black,hcLight:n.Color.white},a.localize("dropdownListBackground","Dropdown list background."));let z=g("dropdown.foreground",{dark:"#F0F0F0",light:null,hcDark:n.Color.white,hcLight:p},a.localize("dropdownForeground","Dropdown foreground.")),K=g("dropdown.border",{dark:W,light:"#CECECE",hcDark:b,hcLight:b},a.localize("dropdownBorder","Dropdown border."));g("checkbox.background",{dark:W,light:W,hcDark:W,hcLight:W},a.localize("checkbox.background","Background color of checkbox widget.")),g("checkbox.foreground",{dark:z,light:z,hcDark:z,hcLight:z},a.localize("checkbox.foreground","Foreground color of checkbox widget.")),g("checkbox.border",{dark:K,light:K,hcDark:K,hcLight:K},a.localize("checkbox.border","Border color of checkbox widget."));let H=g("button.foreground",{dark:n.Color.white,light:n.Color.white,hcDark:n.Color.white,hcLight:n.Color.white},a.localize("buttonForeground","Button foreground color."));g("button.separator",{dark:t7(H,.4),light:t7(H,.4),hcDark:t7(H,.4),hcLight:t7(H,.4)},a.localize("buttonSeparator","Button separator color."));let V=g("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},a.localize("buttonBackground","Button background color.")),U=g("button.hoverBackground",{dark:t6(V,.2),light:t5(V,.2),hcDark:null,hcLight:null},a.localize("buttonHoverBackground","Button background color when hovering."));g("button.border",{dark:b,light:b,hcDark:b,hcLight:b},a.localize("buttonBorder","Button border color.")),g("button.secondaryForeground",{dark:n.Color.white,light:n.Color.white,hcDark:n.Color.white,hcLight:p},a.localize("buttonSecondaryForeground","Secondary button foreground color."));let j=g("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:n.Color.white},a.localize("buttonSecondaryBackground","Secondary button background color."));g("button.secondaryHoverBackground",{dark:t6(j,.2),light:t5(j,.2),hcDark:null,hcLight:null},a.localize("buttonSecondaryHoverBackground","Secondary button background color when hovering."));let $=g("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:n.Color.black,hcLight:"#0F4A85"},a.localize("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),q=g("badge.foreground",{dark:n.Color.white,light:"#333",hcDark:n.Color.white,hcLight:n.Color.white},a.localize("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),G=g("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},a.localize("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),X=g("scrollbarSlider.background",{dark:n.Color.fromHex("#797979").transparent(.4),light:n.Color.fromHex("#646464").transparent(.4),hcDark:t7(b,.6),hcLight:t7(b,.4)},a.localize("scrollbarSliderBackground","Scrollbar slider background color.")),Y=g("scrollbarSlider.hoverBackground",{dark:n.Color.fromHex("#646464").transparent(.7),light:n.Color.fromHex("#646464").transparent(.7),hcDark:t7(b,.8),hcLight:t7(b,.8)},a.localize("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Q=g("scrollbarSlider.activeBackground",{dark:n.Color.fromHex("#BFBFBF").transparent(.4),light:n.Color.fromHex("#000000").transparent(.6),hcDark:b,hcLight:b},a.localize("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),Z=g("progressBar.background",{dark:n.Color.fromHex("#0E70C0"),light:n.Color.fromHex("#0E70C0"),hcDark:b,hcLight:b},a.localize("progressBarBackground","Background color of the progress bar that can show for long running operations.")),J=g("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),ee=g("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},a.localize("editorError.foreground","Foreground color of error squigglies in the editor.")),et=g("editorError.border",{dark:null,light:null,hcDark:n.Color.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},a.localize("errorBorder","Border color of error boxes in the editor.")),ei=g("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),er=g("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD37",hcLight:"#895503"},a.localize("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),en=g("editorWarning.border",{dark:null,light:null,hcDark:n.Color.fromHex("#FFCC00").transparent(.8),hcLight:"#"},a.localize("warningBorder","Border color of warning boxes in the editor.")),eo=g("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),es=g("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},a.localize("editorInfo.foreground","Foreground color of info squigglies in the editor.")),ea=g("editorInfo.border",{dark:null,light:null,hcDark:n.Color.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},a.localize("infoBorder","Border color of info boxes in the editor.")),el=g("editorHint.foreground",{dark:n.Color.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},a.localize("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ec=g("editorHint.border",{dark:null,light:null,hcDark:n.Color.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},a.localize("hintBorder","Border color of hint boxes in the editor."));g("sash.hoverBorder",{dark:C,light:C,hcDark:C,hcLight:C},a.localize("sashActiveBorder","Border color of active sashes."));let ed=g("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:n.Color.black,hcLight:n.Color.white},a.localize("editorBackground","Editor background color.")),eu=g("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:n.Color.white,hcLight:p},a.localize("editorForeground","Editor default foreground color."));g("editorStickyScroll.background",{light:ed,dark:ed,hcDark:ed,hcLight:ed},a.localize("editorStickyScrollBackground","Sticky scroll background color for the editor")),g("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:n.Color.fromHex("#0F4A85").transparent(.1)},a.localize("editorStickyScrollHoverBackground","Sticky scroll on hover background color for the editor"));let eh=g("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:n.Color.white},a.localize("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),eg=g("editorWidget.foreground",{dark:p,light:p,hcDark:p,hcLight:p},a.localize("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),ep=g("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:b,hcLight:b},a.localize("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),em=g("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},a.localize("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),ef=g("quickInput.background",{dark:eh,light:eh,hcDark:eh,hcLight:eh},a.localize("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),eC=g("quickInput.foreground",{dark:eg,light:eg,hcDark:eg,hcLight:eg},a.localize("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),eb=g("quickInputTitle.background",{dark:new n.Color(new n.RGBA(255,255,255,.105)),light:new n.Color(new n.RGBA(0,0,0,.06)),hcDark:"#000000",hcLight:n.Color.white},a.localize("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),ev=g("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:n.Color.white,hcLight:"#0F4A85"},a.localize("pickerGroupForeground","Quick picker color for grouping labels.")),e_=g("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:n.Color.white,hcLight:"#0F4A85"},a.localize("pickerGroupBorder","Quick picker color for grouping borders.")),eS=g("keybindingLabel.background",{dark:new n.Color(new n.RGBA(128,128,128,.17)),light:new n.Color(new n.RGBA(221,221,221,.4)),hcDark:n.Color.transparent,hcLight:n.Color.transparent},a.localize("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),ey=g("keybindingLabel.foreground",{dark:n.Color.fromHex("#CCCCCC"),light:n.Color.fromHex("#555555"),hcDark:n.Color.white,hcLight:p},a.localize("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),ek=g("keybindingLabel.border",{dark:new n.Color(new n.RGBA(51,51,51,.6)),light:new n.Color(new n.RGBA(204,204,204,.4)),hcDark:new n.Color(new n.RGBA(111,195,223)),hcLight:b},a.localize("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),ew=g("keybindingLabel.bottomBorder",{dark:new n.Color(new n.RGBA(68,68,68,.6)),light:new n.Color(new n.RGBA(187,187,187,.4)),hcDark:new n.Color(new n.RGBA(111,195,223)),hcLight:p},a.localize("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),ex=g("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},a.localize("editorSelectionBackground","Color of the editor selection.")),eE=g("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:n.Color.white},a.localize("editorSelectionForeground","Color of the selected text for high contrast.")),eL=g("editor.inactiveSelectionBackground",{light:t7(ex,.5),dark:t7(ex,.5),hcDark:t7(ex,.7),hcLight:t7(ex,.5)},a.localize("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),eT=g("editor.selectionHighlightBackground",{light:t9(ex,ed,.3,.6),dark:t9(ex,ed,.3,.6),hcDark:null,hcLight:null},a.localize("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),eI=g("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:v,hcLight:v},a.localize("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),eD=g("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},a.localize("editorFindMatch","Color of the current search match.")),eM=g("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},a.localize("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),eA=g("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},a.localize("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),eP=g("editor.findMatchBorder",{light:null,dark:null,hcDark:v,hcLight:v},a.localize("editorFindMatchBorder","Border color of the current search match.")),eR=g("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:v,hcLight:v},a.localize("findMatchHighlightBorder","Border color of the other search matches.")),eN=g("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:t7(v,.4),hcLight:t7(v,.4)},a.localize("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0);g("searchEditor.findMatchBackground",{light:t7(eM,.66),dark:t7(eM,.66),hcDark:eM,hcLight:eM},a.localize("searchEditor.queryMatch","Color of the Search Editor query matches.")),g("searchEditor.findMatchBorder",{light:t7(eR,.66),dark:t7(eR,.66),hcDark:eR,hcLight:eR},a.localize("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."));let eF=g("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},a.localize("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),eO=g("editorHoverWidget.background",{light:eh,dark:eh,hcDark:eh,hcLight:eh},a.localize("hoverBackground","Background color of the editor hover.")),eB=g("editorHoverWidget.foreground",{light:eg,dark:eg,hcDark:eg,hcLight:eg},a.localize("hoverForeground","Foreground color of the editor hover.")),eW=g("editorHoverWidget.border",{light:ep,dark:ep,hcDark:ep,hcLight:ep},a.localize("hoverBorder","Border color of the editor hover.")),ez=g("editorHoverWidget.statusBarBackground",{dark:t6(eO,.2),light:t5(eO,.05),hcDark:eh,hcLight:eh},a.localize("statusBarBackground","Background color of the editor hover status bar.")),eK=g("editorLink.activeForeground",{dark:"#4E94CE",light:n.Color.blue,hcDark:n.Color.cyan,hcLight:"#292929"},a.localize("activeLinkForeground","Color of active links.")),eH=g("editorInlayHint.foreground",{dark:t7(q,.8),light:t7(q,.8),hcDark:q,hcLight:q},a.localize("editorInlayHintForeground","Foreground color of inline hints")),eV=g("editorInlayHint.background",{dark:t7($,.6),light:t7($,.3),hcDark:$,hcLight:$},a.localize("editorInlayHintBackground","Background color of inline hints")),eU=g("editorInlayHint.typeForeground",{dark:eH,light:eH,hcDark:eH,hcLight:eH},a.localize("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),ej=g("editorInlayHint.typeBackground",{dark:eV,light:eV,hcDark:eV,hcLight:eV},a.localize("editorInlayHintBackgroundTypes","Background color of inline hints for types")),e$=g("editorInlayHint.parameterForeground",{dark:eH,light:eH,hcDark:eH,hcLight:eH},a.localize("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),eq=g("editorInlayHint.parameterBackground",{dark:eV,light:eV,hcDark:eV,hcLight:eV},a.localize("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),eG=g("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},a.localize("editorLightBulbForeground","The color used for the lightbulb actions icon.")),eX=g("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},a.localize("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),eY=new n.Color(new n.RGBA(155,185,85,.2)),eQ=new n.Color(new n.RGBA(255,0,0,.2)),eZ=g("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c66",hcDark:null,hcLight:null},a.localize("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),eJ=g("diffEditor.removedTextBackground",{dark:"#ff000066",light:"#ff00004d",hcDark:null,hcLight:null},a.localize("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),e0=g("diffEditor.insertedLineBackground",{dark:eY,light:eY,hcDark:null,hcLight:null},a.localize("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),e1=g("diffEditor.removedLineBackground",{dark:eQ,light:eQ,hcDark:null,hcLight:null},a.localize("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),e2=g("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),e3=g("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),e5=g("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),e6=g("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),e7=g("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},a.localize("diffEditorInsertedOutline","Outline color for the text that got inserted.")),e4=g("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},a.localize("diffEditorRemovedOutline","Outline color for text that got removed.")),e9=g("diffEditor.border",{dark:null,light:null,hcDark:b,hcLight:b},a.localize("diffEditorBorder","Border color between the two text editors.")),e8=g("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},a.localize("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),te=g("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tt=g("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ti=g("list.focusOutline",{dark:C,light:C,hcDark:v,hcLight:v},a.localize("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tr=g("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),tn=g("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:n.Color.fromHex("#0F4A85").transparent(.1)},a.localize("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),to=g("list.activeSelectionForeground",{dark:n.Color.white,light:n.Color.white,hcDark:null,hcLight:null},a.localize("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ts=g("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ta=g("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:n.Color.fromHex("#0F4A85").transparent(.1)},a.localize("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),tl=g("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),tc=g("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),td=g("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),tu=g("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),th=g("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:n.Color.fromHex("#0F4A85").transparent(.1)},a.localize("listHoverBackground","List/Tree background when hovering over items using the mouse.")),tg=g("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),tp=g("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},a.localize("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),tm=g("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:C,hcLight:C},a.localize("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),tf=g("list.focusHighlightForeground",{dark:tm,light:function(e,t,i){return{op:5,if:e,then:t,else:i}}(tn,tm,"#BBE7FF"),hcDark:tm,hcLight:tm},a.localize("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree."));g("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},a.localize("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),g("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},a.localize("listErrorForeground","Foreground color of list items containing errors.")),g("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},a.localize("listWarningForeground","Foreground color of list items containing warnings."));let tC=g("listFilterWidget.background",{light:t5(eh,0),dark:t6(eh,0),hcDark:eh,hcLight:eh},a.localize("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),tb=g("listFilterWidget.outline",{dark:n.Color.transparent,light:n.Color.transparent,hcDark:"#f38518",hcLight:"#007ACC"},a.localize("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),tv=g("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:b,hcLight:b},a.localize("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),t_=g("listFilterWidget.shadow",{dark:k,light:k,hcDark:k,hcLight:k},a.localize("listFilterWidgetShadow","Shadown color of the type filter widget in lists and trees."));g("list.filterMatchBackground",{dark:eM,light:eM,hcDark:null,hcLight:null},a.localize("listFilterMatchHighlight","Background color of the filtered match.")),g("list.filterMatchBorder",{dark:eR,light:eR,hcDark:b,hcLight:v},a.localize("listFilterMatchHighlightBorder","Border color of the filtered match."));let tS=g("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},a.localize("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),ty=g("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},a.localize("tableColumnsBorder","Table border color between columns.")),tk=g("tree.tableOddRowsBackground",{dark:t7(p,.04),light:t7(p,.04),hcDark:null,hcLight:null},a.localize("tableOddRowsBackgroundColor","Background color for odd table rows."));g("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},a.localize("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized. "));let tw=g("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,a.localize("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),tx=g("quickInputList.focusForeground",{dark:to,light:to,hcDark:to,hcLight:to},a.localize("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),tE=g("quickInputList.focusIconForeground",{dark:ts,light:ts,hcDark:ts,hcLight:ts},a.localize("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),tL=g("quickInputList.focusBackground",{dark:t4(tw,tn),light:t4(tw,tn),hcDark:null,hcLight:null},a.localize("quickInput.listFocusBackground","Quick picker background color for the focused item.")),tT=g("menu.border",{dark:null,light:null,hcDark:b,hcLight:b},a.localize("menuBorder","Border color of menus.")),tI=g("menu.foreground",{dark:z,light:p,hcDark:z,hcLight:z},a.localize("menuForeground","Foreground color of menu items.")),tD=g("menu.background",{dark:W,light:W,hcDark:W,hcLight:W},a.localize("menuBackground","Background color of menu items.")),tM=g("menu.selectionForeground",{dark:to,light:to,hcDark:to,hcLight:to},a.localize("menuSelectionForeground","Foreground color of the selected menu item in menus.")),tA=g("menu.selectionBackground",{dark:tn,light:tn,hcDark:tn,hcLight:tn},a.localize("menuSelectionBackground","Background color of the selected menu item in menus.")),tP=g("menu.selectionBorder",{dark:null,light:null,hcDark:v,hcLight:v},a.localize("menuSelectionBorder","Border color of the selected menu item in menus.")),tR=g("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:b,hcLight:b},a.localize("menuSeparatorBackground","Color of a separator menu item in menus.")),tN=g("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},a.localize("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse"));g("toolbar.hoverOutline",{dark:null,light:null,hcDark:v,hcLight:v},a.localize("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),g("toolbar.activeBackground",{dark:t6(tN,.1),light:t5(tN,.1),hcDark:null,hcLight:null},a.localize("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),g("editor.snippetTabstopHighlightBackground",{dark:new n.Color(new n.RGBA(124,124,124,.3)),light:new n.Color(new n.RGBA(10,50,100,.2)),hcDark:new n.Color(new n.RGBA(124,124,124,.3)),hcLight:new n.Color(new n.RGBA(10,50,100,.2))},a.localize("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),g("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),g("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),g("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new n.Color(new n.RGBA(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},a.localize("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),g("breadcrumb.foreground",{light:t7(p,.8),dark:t7(p,.8),hcDark:t7(p,.8),hcLight:t7(p,.8)},a.localize("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),g("breadcrumb.background",{light:ed,dark:ed,hcDark:ed,hcLight:ed},a.localize("breadcrumbsBackground","Background color of breadcrumb items.")),g("breadcrumb.focusForeground",{light:t5(p,.2),dark:t6(p,.1),hcDark:t6(p,.1),hcLight:t6(p,.1)},a.localize("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),g("breadcrumb.activeSelectionForeground",{light:t5(p,.2),dark:t6(p,.1),hcDark:t6(p,.1),hcLight:t6(p,.1)},a.localize("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),g("breadcrumbPicker.background",{light:eh,dark:eh,hcDark:eh,hcLight:eh},a.localize("breadcrumbsSelectedBackground","Background color of breadcrumb item picker."));let tF=n.Color.fromHex("#40C8AE").transparent(.5),tO=n.Color.fromHex("#40A6FF").transparent(.5),tB=n.Color.fromHex("#606060").transparent(.4),tW=g("merge.currentHeaderBackground",{dark:tF,light:tF,hcDark:null,hcLight:null},a.localize("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);g("merge.currentContentBackground",{dark:t7(tW,.4),light:t7(tW,.4),hcDark:t7(tW,.4),hcLight:t7(tW,.4)},a.localize("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let tz=g("merge.incomingHeaderBackground",{dark:tO,light:tO,hcDark:null,hcLight:null},a.localize("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);g("merge.incomingContentBackground",{dark:t7(tz,.4),light:t7(tz,.4),hcDark:t7(tz,.4),hcLight:t7(tz,.4)},a.localize("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let tK=g("merge.commonHeaderBackground",{dark:tB,light:tB,hcDark:null,hcLight:null},a.localize("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);g("merge.commonContentBackground",{dark:t7(tK,.4),light:t7(tK,.4),hcDark:t7(tK,.4),hcLight:t7(tK,.4)},a.localize("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0);let tH=g("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},a.localize("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."));g("editorOverviewRuler.currentContentForeground",{dark:t7(tW,1),light:t7(tW,1),hcDark:tH,hcLight:tH},a.localize("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),g("editorOverviewRuler.incomingContentForeground",{dark:t7(tz,1),light:t7(tz,1),hcDark:tH,hcLight:tH},a.localize("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),g("editorOverviewRuler.commonContentForeground",{dark:t7(tK,1),light:t7(tK,1),hcDark:tH,hcLight:tH},a.localize("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts."));let tV=g("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},a.localize("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),tU=g("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},a.localize("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),tj=g("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},a.localize("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),t$=g("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},a.localize("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),tq=g("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},a.localize("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),tG=g("minimap.errorHighlight",{dark:new n.Color(new n.RGBA(255,18,18,.7)),light:new n.Color(new n.RGBA(255,18,18,.7)),hcDark:new n.Color(new n.RGBA(255,50,50,1)),hcLight:"#B5200D"},a.localize("minimapError","Minimap marker color for errors.")),tX=g("minimap.warningHighlight",{dark:er,light:er,hcDark:en,hcLight:en},a.localize("overviewRuleWarning","Minimap marker color for warnings.")),tY=g("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},a.localize("minimapBackground","Minimap background color.")),tQ=g("minimap.foregroundOpacity",{dark:n.Color.fromHex("#000f"),light:n.Color.fromHex("#000f"),hcDark:n.Color.fromHex("#000f"),hcLight:n.Color.fromHex("#000f")},a.localize("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),tZ=g("minimapSlider.background",{light:t7(X,.5),dark:t7(X,.5),hcDark:t7(X,.5),hcLight:t7(X,.5)},a.localize("minimapSliderBackground","Minimap slider background color.")),tJ=g("minimapSlider.hoverBackground",{light:t7(Y,.5),dark:t7(Y,.5),hcDark:t7(Y,.5),hcLight:t7(Y,.5)},a.localize("minimapSliderHoverBackground","Minimap slider background color when hovering.")),t0=g("minimapSlider.activeBackground",{light:t7(Q,.5),dark:t7(Q,.5),hcDark:t7(Q,.5),hcLight:t7(Q,.5)},a.localize("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),t1=g("problemsErrorIcon.foreground",{dark:ee,light:ee,hcDark:ee,hcLight:ee},a.localize("problemsErrorIconForeground","The color used for the problems error icon.")),t2=g("problemsWarningIcon.foreground",{dark:er,light:er,hcDark:er,hcLight:er},a.localize("problemsWarningIconForeground","The color used for the problems warning icon.")),t3=g("problemsInfoIcon.foreground",{dark:es,light:es,hcDark:es,hcLight:es},a.localize("problemsInfoIconForeground","The color used for the problems info icon."));g("charts.foreground",{dark:p,light:p,hcDark:p,hcLight:p},a.localize("chartsForeground","The foreground color used in charts.")),g("charts.lines",{dark:t7(p,.5),light:t7(p,.5),hcDark:t7(p,.5),hcLight:t7(p,.5)},a.localize("chartsLines","The color used for horizontal lines in charts.")),g("charts.red",{dark:ee,light:ee,hcDark:ee,hcLight:ee},a.localize("chartsRed","The red color used in chart visualizations.")),g("charts.blue",{dark:es,light:es,hcDark:es,hcLight:es},a.localize("chartsBlue","The blue color used in chart visualizations.")),g("charts.yellow",{dark:er,light:er,hcDark:er,hcLight:er},a.localize("chartsYellow","The yellow color used in chart visualizations.")),g("charts.orange",{dark:tj,light:tj,hcDark:tj,hcLight:tj},a.localize("chartsOrange","The orange color used in chart visualizations.")),g("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},a.localize("chartsGreen","The green color used in chart visualizations.")),g("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},a.localize("chartsPurple","The purple color used in chart visualizations."));function t5(e,t){return{op:0,value:e,factor:t}}function t6(e,t){return{op:1,value:e,factor:t}}function t7(e,t){return{op:2,value:e,factor:t}}function t4(...e){return{op:3,values:e}}function t9(e,t,i,r){return{op:4,value:e,background:t,factor:i,transparency:r}}function t8(e,t){if(null===e);else if("string"==typeof e)return"#"===e[0]?n.Color.fromHex(e):t.getColor(e);else if(e instanceof n.Color)return e;else if("object"==typeof e)return function(e,t){var i,r,o;switch(e.op){case 0:return null===(i=t8(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(r=t8(e.value,t))||void 0===r?void 0:r.lighten(e.factor);case 2:return null===(o=t8(e.value,t))||void 0===o?void 0:o.transparent(e.factor);case 3:for(let i of e.values){let e=t8(i,t);if(e)return e}return;case 5:return t8(t.defines(e.if)?e.then:e.else,t);case 4:{let i=t8(e.value,t);if(!i)return;let r=t8(e.background,t);if(!r)return i.transparent(e.factor*e.transparency);return i.isDarkerThan(r)?n.Color.getLighterColor(i,r,e.factor).transparent(e.transparency):n.Color.getDarkerColor(i,r,e.factor).transparent(e.transparency)}default:throw(0,s.assertNever)(e)}}(e,t)}let ie="vscode://schemas/workbench-colors",it=c.Registry.as(l.Extensions.JSONContribution);it.registerSchema(ie,h.getColorSchema());let ii=new r.RunOnceScheduler(()=>it.notifySchemaChanged(ie),200);h.onDidChangeSchema(()=>{!ii.isScheduled()&&ii.schedule()})},436934:function(e){},436574:function(e){},9450:function(e){},722239:function(e){},432036:function(e){},546695:function(e){},651126:function(e){},178697:function(e){},96490:function(e){}}]);