@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.
- package/dist/index.html +1 -1
- package/dist/resource/css/505.b09c71b1.css +1 -0
- package/dist/resource/js/305.c739e0ad.js +1 -0
- package/dist/resource/js/505.b0671115.js +460 -0
- package/dist/resource/js/685.cfc0d5a4.js +1 -0
- package/dist/resource/js/async/239.bd71915c.js +1 -0
- package/dist/resource/js/async/432.627e7428.js +1 -0
- package/dist/resource/js/async/544.a3528983.js +1 -0
- package/dist/resource/js/async/811.1fbe2090.js +1 -0
- package/dist/resource/js/async/849.38fafa21.js +1 -0
- package/dist/resource/js/index.a7b9ce38.js +156 -0
- package/dist/resource/js/monaco-0.c3af1bd3.js +2 -0
- package/dist/resource/js/monaco-1.7b4f9f8c.js +17 -0
- package/dist/resource/js/monaco-10.3718b786.js +25 -0
- package/dist/resource/js/monaco-11.2ffe6be1.js +369 -0
- package/dist/resource/js/monaco-12.d0039040.js +1 -0
- package/dist/resource/js/monaco-13.c39a81c1.js +70 -0
- package/dist/resource/js/monaco-14.ab3cfa3a.js +31 -0
- package/dist/resource/js/monaco-2.deeec9f1.js +4 -0
- package/dist/resource/js/monaco-3.09ebbb5b.js +31 -0
- package/dist/resource/js/monaco-4.12cd3f32.js +1 -0
- package/dist/resource/js/monaco-5.59c23100.js +2 -0
- package/dist/resource/js/monaco-6.e7bfde98.js +1 -0
- package/dist/resource/js/monaco-7.020d48ca.js +38 -0
- package/dist/resource/js/monaco-8.fa1080e5.js +7 -0
- package/dist/resource/js/monaco-9.34b51cf9.js +4 -0
- package/package.json +7 -7
- package/dist/resource/css/117.75ade4fc.css +0 -1
- package/dist/resource/css/monaco-0.eadd16b0.css +0 -1
- package/dist/resource/css/monaco-1.535483b8.css +0 -1
- package/dist/resource/css/monaco-10.19b5ab97.css +0 -1
- package/dist/resource/css/monaco-11.e09f4a76.css +0 -1
- package/dist/resource/css/monaco-12.9ae50643.css +0 -1
- package/dist/resource/css/monaco-13.f69f0e8c.css +0 -1
- package/dist/resource/css/monaco-14.0a887a2d.css +0 -1
- package/dist/resource/css/monaco-2.3f0ef564.css +0 -1
- package/dist/resource/css/monaco-3.681f0305.css +0 -1
- package/dist/resource/css/monaco-4.37d5626c.css +0 -1
- package/dist/resource/css/monaco-5.bc87f9b2.css +0 -1
- package/dist/resource/css/monaco-6.3f11493c.css +0 -1
- package/dist/resource/css/monaco-7.25aae788.css +0 -1
- package/dist/resource/css/monaco-8.86c79c6e.css +0 -1
- package/dist/resource/css/monaco-9.b782cd98.css +0 -1
- package/dist/resource/js/117.510490e1.js +0 -461
- package/dist/resource/js/117.510490e1.js.LICENSE.txt +0 -16654
- package/dist/resource/js/305.d594f1d5.js +0 -1
- package/dist/resource/js/685.0e8f89c3.js +0 -2
- package/dist/resource/js/685.0e8f89c3.js.LICENSE.txt +0 -12
- package/dist/resource/js/async/239.737ce11d.js +0 -2
- package/dist/resource/js/async/239.737ce11d.js.LICENSE.txt +0 -1
- package/dist/resource/js/async/432.6eb18a99.js +0 -2
- package/dist/resource/js/async/432.6eb18a99.js.LICENSE.txt +0 -13
- package/dist/resource/js/async/544.873dca4e.js +0 -2
- package/dist/resource/js/async/544.873dca4e.js.LICENSE.txt +0 -9
- package/dist/resource/js/async/811.63649e86.js +0 -2
- package/dist/resource/js/async/811.63649e86.js.LICENSE.txt +0 -55
- package/dist/resource/js/async/849.1d9c8131.js +0 -1
- package/dist/resource/js/index.93b99658.js +0 -157
- package/dist/resource/js/index.93b99658.js.LICENSE.txt +0 -1995
- package/dist/resource/js/monaco-0.1a91b04d.js +0 -23
- package/dist/resource/js/monaco-0.1a91b04d.js.LICENSE.txt +0 -453
- package/dist/resource/js/monaco-1.28969d00.js +0 -3
- package/dist/resource/js/monaco-1.28969d00.js.LICENSE.txt +0 -420
- package/dist/resource/js/monaco-10.3d270acb.js +0 -5
- package/dist/resource/js/monaco-10.3d270acb.js.LICENSE.txt +0 -684
- package/dist/resource/js/monaco-11.e35d7677.js +0 -71
- package/dist/resource/js/monaco-11.e35d7677.js.LICENSE.txt +0 -800
- package/dist/resource/js/monaco-12.841db992.js +0 -2
- package/dist/resource/js/monaco-12.841db992.js.LICENSE.txt +0 -539
- package/dist/resource/js/monaco-13.cc63a6b1.js +0 -2
- package/dist/resource/js/monaco-13.cc63a6b1.js.LICENSE.txt +0 -542
- package/dist/resource/js/monaco-14.16179ee4.js +0 -29
- package/dist/resource/js/monaco-14.16179ee4.js.LICENSE.txt +0 -531
- package/dist/resource/js/monaco-2.c55ad17a.js +0 -368
- package/dist/resource/js/monaco-2.c55ad17a.js.LICENSE.txt +0 -668
- package/dist/resource/js/monaco-3.ee63c788.js +0 -25
- package/dist/resource/js/monaco-3.ee63c788.js.LICENSE.txt +0 -603
- package/dist/resource/js/monaco-4.73c5efca.js +0 -26
- package/dist/resource/js/monaco-4.73c5efca.js.LICENSE.txt +0 -668
- package/dist/resource/js/monaco-5.10e27961.js +0 -2
- package/dist/resource/js/monaco-5.10e27961.js.LICENSE.txt +0 -523
- package/dist/resource/js/monaco-6.54504449.js +0 -22
- package/dist/resource/js/monaco-6.54504449.js.LICENSE.txt +0 -533
- package/dist/resource/js/monaco-7.28555798.js +0 -32
- package/dist/resource/js/monaco-7.28555798.js.LICENSE.txt +0 -993
- package/dist/resource/js/monaco-8.38bbec6f.js +0 -6
- package/dist/resource/js/monaco-8.38bbec6f.js.LICENSE.txt +0 -649
- package/dist/resource/js/monaco-9.0e0e4c2a.js +0 -2
- package/dist/resource/js/monaco-9.0e0e4c2a.js.LICENSE.txt +0 -633
- /package/dist/resource/css/{index.fb881e51.css → index.be7fc0b3.css} +0 -0
- /package/dist/resource/font/{codicon.f866ab84.ttf → codicon.7fe16dbd.ttf} +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/*! For license information please see monaco-14.16179ee4.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["310"],{972646:function(e,t,i){"use strict";i.r(t),i.d(t,{BrowserFeatures:function(){return r}});var o=i("259527"),n=i("207875");let r={clipboard:{writeText:n.isNative||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:n.isNative||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:n.isNative||o.isStandalone()?0:navigator.keyboard||o.isSafari?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},794861:function(e,t,i){"use strict";i.r(t),i.d(t,{HighlightedLabel:function(){return s}});var o=i("409737"),n=i("572740"),r=i("500777");class s{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null==t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=o.append(e,o.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",o){!e&&(e=""),o&&(e=s.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&r.equals(this.highlights,t))&&(this.text=e,this.title=i,this.highlights=t,this.render())}render(){let e=[],t=0;for(let i of this.highlights){if(i.end===i.start)continue;if(t<i.start){let r=this.text.substring(t,i.start);e.push(o.$("span",void 0,...this.supportIcons?(0,n.renderLabelWithIcons)(r):[r])),t=i.end}let r=this.text.substring(i.start,i.end),s=o.$("span.highlight",void 0,...this.supportIcons?(0,n.renderLabelWithIcons)(r):[r]);i.extraClasses&&s.classList.add(...i.extraClasses),e.push(s),t=i.end}if(t<this.text.length){let i=this.text.substring(t);e.push(o.$("span",void 0,...this.supportIcons?(0,n.renderLabelWithIcons)(i):[i]))}o.reset(this.domNode,...e),this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}static escapeNewLines(e,t){let i=0,o=0;return e.replace(/\r\n|\r|\n/g,(e,n)=>{for(let r of(o="\r\n"===e?-1:0,n+=i,t))!(r.end<=n)&&(r.start>=n&&(r.start+=o),r.end>=n&&(r.end+=o));return i+=o,"\u23CE"})}}},547185:function(e,t,i){"use strict";i.r(t),i.d(t,{Toggle:function(){return l}});var o=i("795832"),n=i("871628"),r=i("835271"),s=i("916904");i("9450");let a={inputActiveOptionBorder:r.Color.fromHex("#007ACC00"),inputActiveOptionForeground:r.Color.fromHex("#FFFFFF"),inputActiveOptionBackground:r.Color.fromHex("#0E639C50")};class l extends o.Widget{constructor(e){super(),this._onChange=this._register(new s.Emitter),this.onChange=this._onChange.event,this._onKeyDown=this._register(new s.Emitter),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},a),e),this._checked=this._opts.isChecked;let t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...n.CSSIcon.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...t),!this._opts.notFocusable&&(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,e=>{if(10===e.keyCode||3===e.keyCode){this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),e.stopPropagation();return}this._onKeyDown.fire(e)})}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},788980:function(e,t,i){"use strict";var o,n;i.r(t),i.d(t,{EVENT_KEY_CODE_MAP:function(){return c},IMMUTABLE_CODE_TO_KEY_CODE:function(){return m},KeyChord:function(){return f},KeyCodeUtils:function(){return o}});class r{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}let s=new r,a=new r,l=new r,c=Array(230),d={},u=[],h=Object.create(null),g=Object.create(null),m=[],p=[];for(let e=0;e<=193;e++)m[e]=-1;for(let e=0;e<=127;e++)p[e]=-1;function f(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){let e=[],t=[];for(let i of[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[0,1,1,"Hyper",0,"",0,"","",""],[0,1,2,"Super",0,"",0,"","",""],[0,1,3,"Fn",0,"",0,"","",""],[0,1,4,"FnLock",0,"",0,"","",""],[0,1,5,"Suspend",0,"",0,"","",""],[0,1,6,"Resume",0,"",0,"","",""],[0,1,7,"Turbo",0,"",0,"","",""],[0,1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[0,1,9,"WakeUp",0,"",0,"","",""],[31,0,10,"KeyA",31,"A",65,"VK_A","",""],[32,0,11,"KeyB",32,"B",66,"VK_B","",""],[33,0,12,"KeyC",33,"C",67,"VK_C","",""],[34,0,13,"KeyD",34,"D",68,"VK_D","",""],[35,0,14,"KeyE",35,"E",69,"VK_E","",""],[36,0,15,"KeyF",36,"F",70,"VK_F","",""],[37,0,16,"KeyG",37,"G",71,"VK_G","",""],[38,0,17,"KeyH",38,"H",72,"VK_H","",""],[39,0,18,"KeyI",39,"I",73,"VK_I","",""],[40,0,19,"KeyJ",40,"J",74,"VK_J","",""],[41,0,20,"KeyK",41,"K",75,"VK_K","",""],[42,0,21,"KeyL",42,"L",76,"VK_L","",""],[43,0,22,"KeyM",43,"M",77,"VK_M","",""],[44,0,23,"KeyN",44,"N",78,"VK_N","",""],[45,0,24,"KeyO",45,"O",79,"VK_O","",""],[46,0,25,"KeyP",46,"P",80,"VK_P","",""],[47,0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[48,0,27,"KeyR",48,"R",82,"VK_R","",""],[49,0,28,"KeyS",49,"S",83,"VK_S","",""],[50,0,29,"KeyT",50,"T",84,"VK_T","",""],[51,0,30,"KeyU",51,"U",85,"VK_U","",""],[52,0,31,"KeyV",52,"V",86,"VK_V","",""],[53,0,32,"KeyW",53,"W",87,"VK_W","",""],[54,0,33,"KeyX",54,"X",88,"VK_X","",""],[55,0,34,"KeyY",55,"Y",89,"VK_Y","",""],[56,0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[22,0,36,"Digit1",22,"1",49,"VK_1","",""],[23,0,37,"Digit2",23,"2",50,"VK_2","",""],[24,0,38,"Digit3",24,"3",51,"VK_3","",""],[25,0,39,"Digit4",25,"4",52,"VK_4","",""],[26,0,40,"Digit5",26,"5",53,"VK_5","",""],[27,0,41,"Digit6",27,"6",54,"VK_6","",""],[28,0,42,"Digit7",28,"7",55,"VK_7","",""],[29,0,43,"Digit8",29,"8",56,"VK_8","",""],[30,0,44,"Digit9",30,"9",57,"VK_9","",""],[21,0,45,"Digit0",21,"0",48,"VK_0","",""],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[2,1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[10,1,50,"Space",10,"Space",32,"VK_SPACE","",""],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,"",0,"","",""],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[59,1,64,"F1",59,"F1",112,"VK_F1","",""],[60,1,65,"F2",60,"F2",113,"VK_F2","",""],[61,1,66,"F3",61,"F3",114,"VK_F3","",""],[62,1,67,"F4",62,"F4",115,"VK_F4","",""],[63,1,68,"F5",63,"F5",116,"VK_F5","",""],[64,1,69,"F6",64,"F6",117,"VK_F6","",""],[65,1,70,"F7",65,"F7",118,"VK_F7","",""],[66,1,71,"F8",66,"F8",119,"VK_F8","",""],[67,1,72,"F9",67,"F9",120,"VK_F9","",""],[68,1,73,"F10",68,"F10",121,"VK_F10","",""],[69,1,74,"F11",69,"F11",122,"VK_F11","",""],[70,1,75,"F12",70,"F12",123,"VK_F12","",""],[0,1,76,"PrintScreen",0,"",0,"","",""],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL","",""],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[14,1,80,"Home",14,"Home",36,"VK_HOME","",""],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[13,1,83,"End",13,"End",35,"VK_END","",""],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK","",""],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE","",""],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD","",""],[3,1,94,"NumpadEnter",3,"",0,"","",""],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1","",""],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2","",""],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3","",""],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4","",""],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5","",""],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6","",""],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7","",""],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8","",""],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9","",""],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0","",""],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL","",""],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102","",""],[58,1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[0,1,108,"Power",0,"",0,"","",""],[0,1,109,"NumpadEqual",0,"",0,"","",""],[71,1,110,"F13",71,"F13",124,"VK_F13","",""],[72,1,111,"F14",72,"F14",125,"VK_F14","",""],[73,1,112,"F15",73,"F15",126,"VK_F15","",""],[74,1,113,"F16",74,"F16",127,"VK_F16","",""],[75,1,114,"F17",75,"F17",128,"VK_F17","",""],[76,1,115,"F18",76,"F18",129,"VK_F18","",""],[77,1,116,"F19",77,"F19",130,"VK_F19","",""],[0,1,117,"F20",0,"",0,"VK_F20","",""],[0,1,118,"F21",0,"",0,"VK_F21","",""],[0,1,119,"F22",0,"",0,"VK_F22","",""],[0,1,120,"F23",0,"",0,"VK_F23","",""],[0,1,121,"F24",0,"",0,"VK_F24","",""],[0,1,122,"Open",0,"",0,"","",""],[0,1,123,"Help",0,"",0,"","",""],[0,1,124,"Select",0,"",0,"","",""],[0,1,125,"Again",0,"",0,"","",""],[0,1,126,"Undo",0,"",0,"","",""],[0,1,127,"Cut",0,"",0,"","",""],[0,1,128,"Copy",0,"",0,"","",""],[0,1,129,"Paste",0,"",0,"","",""],[0,1,130,"Find",0,"",0,"","",""],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR","",""],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1","",""],[0,1,136,"KanaMode",0,"",0,"","",""],[0,0,137,"IntlYen",0,"",0,"","",""],[0,1,138,"Convert",0,"",0,"","",""],[0,1,139,"NonConvert",0,"",0,"","",""],[0,1,140,"Lang1",0,"",0,"","",""],[0,1,141,"Lang2",0,"",0,"","",""],[0,1,142,"Lang3",0,"",0,"","",""],[0,1,143,"Lang4",0,"",0,"","",""],[0,1,144,"Lang5",0,"",0,"","",""],[0,1,145,"Abort",0,"",0,"","",""],[0,1,146,"Props",0,"",0,"","",""],[0,1,147,"NumpadParenLeft",0,"",0,"","",""],[0,1,148,"NumpadParenRight",0,"",0,"","",""],[0,1,149,"NumpadBackspace",0,"",0,"","",""],[0,1,150,"NumpadMemoryStore",0,"",0,"","",""],[0,1,151,"NumpadMemoryRecall",0,"",0,"","",""],[0,1,152,"NumpadMemoryClear",0,"",0,"","",""],[0,1,153,"NumpadMemoryAdd",0,"",0,"","",""],[0,1,154,"NumpadMemorySubtract",0,"",0,"","",""],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR","",""],[0,1,156,"NumpadClearEntry",0,"",0,"","",""],[5,1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[4,1,0,"",4,"Shift",16,"VK_SHIFT","",""],[6,1,0,"",6,"Alt",18,"VK_MENU","",""],[57,1,0,"",57,"Meta",0,"VK_COMMAND","",""],[5,1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[4,1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[6,1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[57,1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[5,1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[4,1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[6,1,163,"AltRight",6,"",0,"VK_RMENU","",""],[57,1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[0,1,165,"BrightnessUp",0,"",0,"","",""],[0,1,166,"BrightnessDown",0,"",0,"","",""],[0,1,167,"MediaPlay",0,"",0,"","",""],[0,1,168,"MediaRecord",0,"",0,"","",""],[0,1,169,"MediaFastForward",0,"",0,"","",""],[0,1,170,"MediaRewind",0,"",0,"","",""],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP","",""],[0,1,174,"Eject",0,"",0,"","",""],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[0,1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[0,1,180,"SelectTask",0,"",0,"","",""],[0,1,181,"LaunchScreenSaver",0,"",0,"","",""],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME","",""],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK","",""],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[0,1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[0,1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[0,1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[0,1,189,"ZoomToggle",0,"",0,"","",""],[0,1,190,"MailReply",0,"",0,"","",""],[0,1,191,"MailForward",0,"",0,"","",""],[0,1,192,"MailSend",0,"",0,"","",""],[109,1,0,"",109,"KeyInComposition",229,"","",""],[111,1,0,"",111,"ABNT_C2",194,"VK_ABNT_C2","",""],[91,1,0,"",91,"OEM_8",223,"VK_OEM_8","",""],[0,1,0,"",0,"",0,"VK_KANA","",""],[0,1,0,"",0,"",0,"VK_HANGUL","",""],[0,1,0,"",0,"",0,"VK_JUNJA","",""],[0,1,0,"",0,"",0,"VK_FINAL","",""],[0,1,0,"",0,"",0,"VK_HANJA","",""],[0,1,0,"",0,"",0,"VK_KANJI","",""],[0,1,0,"",0,"",0,"VK_CONVERT","",""],[0,1,0,"",0,"",0,"VK_NONCONVERT","",""],[0,1,0,"",0,"",0,"VK_ACCEPT","",""],[0,1,0,"",0,"",0,"VK_MODECHANGE","",""],[0,1,0,"",0,"",0,"VK_SELECT","",""],[0,1,0,"",0,"",0,"VK_PRINT","",""],[0,1,0,"",0,"",0,"VK_EXECUTE","",""],[0,1,0,"",0,"",0,"VK_SNAPSHOT","",""],[0,1,0,"",0,"",0,"VK_HELP","",""],[0,1,0,"",0,"",0,"VK_APPS","",""],[0,1,0,"",0,"",0,"VK_PROCESSKEY","",""],[0,1,0,"",0,"",0,"VK_PACKET","",""],[0,1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[0,1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[0,1,0,"",0,"",0,"VK_ATTN","",""],[0,1,0,"",0,"",0,"VK_CRSEL","",""],[0,1,0,"",0,"",0,"VK_EXSEL","",""],[0,1,0,"",0,"",0,"VK_EREOF","",""],[0,1,0,"",0,"",0,"VK_PLAY","",""],[0,1,0,"",0,"",0,"VK_ZOOM","",""],[0,1,0,"",0,"",0,"VK_NONAME","",""],[0,1,0,"",0,"",0,"VK_PA1","",""],[0,1,0,"",0,"",0,"VK_OEM_CLEAR","",""]]){let[o,n,r,f,b,_,y,C,v,S]=i;if(!t[r]&&(t[r]=!0,u[r]=f,h[f]=r,g[f.toLowerCase()]=r,n&&(m[r]=b,0!==b&&3!==b&&5!==b&&4!==b&&6!==b&&57!==b&&(p[b]=r))),!e[b]){if(e[b]=!0,!_)throw Error(`String representation missing for key code ${b} around scan code ${f}`);s.define(b,_),a.define(b,v||_),l.define(b,S||v||_)}y&&(c[y]=b),C&&(d[C]=b)}p[3]=46}(),(n=o||(o={})).toString=function(e){return s.keyCodeToStr(e)},n.fromString=function(e){return s.strToKeyCode(e)},n.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},n.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},n.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},n.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return s.keyCodeToStr(e)}},210109:function(e,t,i){"use strict";i.r(t),i.d(t,{ChordKeybinding:function(){return a},ResolvedKeybinding:function(){return c},ResolvedKeybindingPart:function(){return l},SimpleKeybinding:function(){return s},createKeybinding:function(){return n}});var o=i("161111");function n(e,t){if(0===e)return null;let i=(65535&e)>>>0,o=(4294901760&e)>>>16;return 0!==o?new a([r(i,t),r(o,t)]):new a([r(i,t)])}function r(e,t){let i=!!(2048&e),o=!!(256&e),n=2===t?o:i,r=2===t?i:o;return new s(n,!!(1024&e),!!(512&e),r,255&e)}class s{constructor(e,t,i,o,n){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=o,this.keyCode=n}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new a([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,o.illegalArgument)("parts");this.parts=e}}class l{constructor(e,t,i,o,n,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=o,this.keyLabel=n,this.keyAriaLabel=r}}class c{}},135262:function(e,t,i){"use strict";i.r(t),i.d(t,{normalizeDriveLetter:function(){return r}});var o=i("122000"),n=i("207875");function r(e,t=n.isWindows){return(0,o.hasDriveLetter)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null)},405019:function(e,t,i){"use strict";i.r(t),i.d(t,{generateUuid:function(){return o}});let o=function(){let e;if("object"==typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);e="object"==typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};let t=new Uint8Array(16),i=[];for(let e=0;e<256;e++)i.push(e.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let o=0,n="";return n+=i[t[o++]]+i[t[o++]]+i[t[o++]]+i[t[o++]]+"-"+i[t[o++]]+i[t[o++]]+"-"+i[t[o++]]+i[t[o++]]+"-"+i[t[o++]]+i[t[o++]]+"-"+i[t[o++]]+i[t[o++]]+i[t[o++]]+i[t[o++]]+i[t[o++]]+i[t[o++]]}}()},293017:function(e,t,i){"use strict";i.r(t),i.d(t,{QuickInputController:function(){return N}});var o=i("409737"),n=i("85763"),r=i("362880"),s=i("942072"),a=i("47975"),l=i("572740"),c=i("413876"),d=i("431453"),u=i("603868"),h=i("467518"),g=i("500862"),m=i("871628"),p=i("916904"),f=i("919527"),b=i("207875"),_=i("596608"),y=i("744138"),C=i("686329"),v=i("843130");i("664014");var S=i("708339"),k=i("515015"),w=i("963368"),E=function(e,t,i,o){return new(i||(i=Promise))(function(n,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())})};let I=o.$,L={iconClass:m.Codicon.quickInputBack.classNames,tooltip:(0,S.localize)("quickInput.back","Back"),handle:-1};class x extends f.Disposable{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=x.noPromptMessage,this._severity=_.default.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new p.Emitter),this.onDidHideEmitter=this._register(new p.Emitter),this.onDisposeEmitter=this._register(new p.Emitter),this.visibleDisposables=this._register(new f.DisposableStore),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){let t=this._ignoreFocusOut!==e&&!b.isIOS;this._ignoreFocusOut=e&&!b.isIOS,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){!this.visible&&(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=v.QuickInputHideReason.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;let e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&" "!==this.ui.title.innerHTML&&(this.ui.title.innerText="\xa0");let t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new h.TimeoutTimer,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();let e=this.buttons.filter(e=>e===L);this.ui.leftActionBar.push(e.map((e,t)=>{let i=new d.Action(`id-${t}`,"",e.iconClass||(0,C.getIconClass)(e.iconPath),!0,()=>E(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(e)}));return i.tooltip=e.tooltip||"",i}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();let t=this.buttons.filter(e=>e!==L);this.ui.rightActionBar.push(t.map((e,t)=>{let i=new d.Action(`id-${t}`,"",e.iconClass||(0,C.getIconClass)(e.iconPath),!0,()=>E(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(e)}));return i.tooltip=e.tooltip||"",i}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);let i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,o.reset(this.ui.message,...(0,l.renderLabelWithIcons)(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,S.localize)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==_.default.Ignore){let t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}x.noPromptMessage=(0,S.localize)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class T extends x{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new p.Emitter),this.onWillAcceptEmitter=this._register(new p.Emitter),this.onDidAcceptEmitter=this._register(new p.Emitter),this.onDidCustomEmitter=this._register(new p.Emitter),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?v.ItemActivation.NONE:v.ItemActivation.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new p.Emitter),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new p.Emitter),this.onDidTriggerItemButtonEmitter=this._register(new p.Emitter),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,!t&&this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?v.NO_KEY_MODS:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&!this.canSelectMany&&this.ui.list.focus(w.QuickInputListFocus.First)}show(){!this.visible&&(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{!this.autoFocusOnList&&this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(w.QuickInputListFocus.Next),this.canSelectMany&&this.ui.list.domFocus(),o.EventHelper.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(w.QuickInputListFocus.Previous):this.ui.list.focus(w.QuickInputListFocus.Last),this.canSelectMany&&this.ui.list.domFocus(),o.EventHelper.stop(e,!0);break;case 12:this.ui.list.focus(w.QuickInputListFocus.NextPage),this.canSelectMany&&this.ui.list.domFocus(),o.EventHelper.stop(e,!0);break;case 11:this.ui.list.focus(w.QuickInputListFocus.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),o.EventHelper.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(w.QuickInputListFocus.First),o.EventHelper.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(w.QuickInputListFocus.Last),o.EventHelper.stop(e,!0))}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?!this.ui.list.getCheckedElements().length&&(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{if(!this.activeItemsUpdated)!(this.activeItemsToConfirm!==this._activeItems&&(0,u.equals)(e,this._activeItems,(e,t)=>e===t))&&(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}!(this.selectedItemsToConfirm!==this._selectedItems&&(0,u.equals)(e,this._selectedItems,(e,t)=>e===t))&&(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&1===t.button))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{if(!!this.canSelectMany)!(this.selectedItemsToConfirm!==this._selectedItems&&(0,u.equals)(e,this._selectedItems,(e,t)=>e===t))&&(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),!t&&this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return o.addDisposableListener(this.ui.container,o.EventType.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;let t=new n.StandardKeyboardEvent(e),i=t.keyCode;this._quickNavigate.keybindings.some(e=>{let[o,n]=e.getParts();if(n)return!1;if(o.shiftKey&&4===i)return!t.ctrlKey&&!t.altKey&&!t.metaKey&&!0;return!!o.altKey&&6===i||!!o.ctrlKey&&5===i||!!o.metaKey&&57===i||!1})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;let e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);let i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let o=this.ariaLabel;if(!o&&(o=this.placeholder||T.DEFAULT_ARIA_LABEL,this.title&&(o+=` - ${this.title}`)),this.ui.inputBox.ariaLabel!==o&&(this.ui.inputBox.ariaLabel=o),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case v.ItemActivation.NONE:this._itemActivation=v.ItemActivation.FIRST;break;case v.ItemActivation.SECOND:this.ui.list.focus(w.QuickInputListFocus.Second),this._itemActivation=v.ItemActivation.FIRST;break;case v.ItemActivation.LAST:this.ui.list.focus(w.QuickInputListFocus.Last),this._itemActivation=v.ItemActivation.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),!i.inputBox&&(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(w.QuickInputListFocus.First)),this.keepScrollPosition&&(this.scrollTop=e)}}T.DEFAULT_ARIA_LABEL=(0,S.localize)("quickInputBox.ariaLabel","Type to narrow down results.");class N extends f.Disposable{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new p.Emitter),this.onDidCustomEmitter=this._register(new p.Emitter),this.onDidTriggerButtonEmitter=this._register(new p.Emitter),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new p.Emitter),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new p.Emitter),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){let e=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};this._register(o.addDisposableListener(window,o.EventType.KEY_DOWN,e,!0)),this._register(o.addDisposableListener(window,o.EventType.KEY_UP,e,!0)),this._register(o.addDisposableListener(window,o.EventType.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;let e=o.append(this.parentElement,I(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";let t=o.createStyleSheet(e),i=o.append(e,I(".quick-input-titlebar")),l=this._register(new r.ActionBar(i));l.domNode.classList.add("quick-input-left-action-bar");let d=o.append(i,I(".quick-input-title")),u=this._register(new r.ActionBar(i));u.domNode.classList.add("quick-input-right-action-bar");let h=o.append(e,I(".quick-input-description")),g=o.append(e,I(".quick-input-header")),m=o.append(g,I("input.quick-input-check-all"));m.type="checkbox",m.setAttribute("aria-label",(0,S.localize)("quickInput.checkAll","Toggle all checkboxes")),this._register(o.addStandardDisposableListener(m,o.EventType.CHANGE,e=>{let t=m.checked;O.setAllVisibleChecked(t)})),this._register(o.addDisposableListener(m,o.EventType.CLICK,e=>{(e.x||e.y)&&_.setFocus()}));let p=o.append(g,I(".quick-input-description")),f=o.append(g,I(".quick-input-and-message")),b=o.append(f,I(".quick-input-filter")),_=this._register(new k.QuickInputBox(b));_.setAttribute("aria-describedby",`${this.idPrefix}message`);let y=o.append(b,I(".quick-input-visible-count"));y.setAttribute("aria-live","polite"),y.setAttribute("aria-atomic","true");let C=new a.CountBadge(y,{countFormat:(0,S.localize)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),E=o.append(b,I(".quick-input-count"));E.setAttribute("aria-live","polite");let L=new a.CountBadge(E,{countFormat:(0,S.localize)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),x=o.append(g,I(".quick-input-action")),N=new s.Button(x);N.label=(0,S.localize)("ok","OK"),this._register(N.onDidClick(e=>{this.onDidAcceptEmitter.fire()}));let D=o.append(g,I(".quick-input-action")),A=new s.Button(D);A.label=(0,S.localize)("custom","Custom"),this._register(A.onDidClick(e=>{this.onDidCustomEmitter.fire()}));let M=o.append(f,I(`#${this.idPrefix}message.quick-input-message`)),O=this._register(new w.QuickInputList(e,this.idPrefix+"list",this.options));this._register(O.onChangedAllVisibleChecked(e=>{m.checked=e})),this._register(O.onChangedVisibleCount(e=>{C.setCount(e)})),this._register(O.onChangedCheckedCount(e=>{L.setCount(e)})),this._register(O.onLeave(()=>{setTimeout(()=>{_.setFocus(),this.controller instanceof T&&this.controller.canSelectMany&&O.clearFocus()},0)})),this._register(O.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));let R=new c.ProgressBar(e);R.getContainer().classList.add("quick-input-progress");let P=o.trackFocus(e);return this._register(P),this._register(o.addDisposableListener(e,o.EventType.FOCUS,e=>{this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0},!0)),this._register(P.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(v.QuickInputHideReason.Blur),this.previousFocusElement=void 0})),this._register(o.addDisposableListener(e,o.EventType.FOCUS,e=>{_.setFocus()})),this._register(o.addDisposableListener(e,o.EventType.KEY_DOWN,t=>{let i=new n.StandardKeyboardEvent(t);switch(i.keyCode){case 3:o.EventHelper.stop(t,!0),this.onDidAcceptEmitter.fire();break;case 9:o.EventHelper.stop(t,!0),this.hide(v.QuickInputHideReason.Gesture);break;case 2:if(!i.altKey&&!i.ctrlKey&&!i.metaKey){let n=[".action-label.codicon"];e.classList.contains("show-checkboxes")?n.push("input"):n.push("input[type=text]"),this.getUI().list.isDisplayed()&&n.push(".monaco-list");let r=e.querySelectorAll(n.join(", "));i.shiftKey&&i.target===r[0]?(o.EventHelper.stop(t,!0),r[r.length-1].focus()):!i.shiftKey&&i.target===r[r.length-1]&&(o.EventHelper.stop(t,!0),r[0].focus())}}})),this.ui={container:e,styleSheet:t,leftActionBar:l,titleBar:i,title:d,description1:h,description2:p,rightActionBar:u,checkAll:m,filterContainer:b,inputBox:_,visibleCountContainer:y,visibleCount:C,countContainer:E,count:L,okContainer:x,ok:N,message:M,customButtonContainer:D,customButton:A,list:O,progressBar:R,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setComboboxAccessibility:e=>this.setComboboxAccessibility(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e)},this.updateStyles(),this.ui}pick(e,t={},i=g.CancellationToken.None){return new Promise((o,n)=>{let r,s=e=>{var i;s=o,null===(i=t.onKeyMods)||void 0===i||i.call(t,a.keyMods),o(e)};if(i.isCancellationRequested){s(void 0);return}let a=this.createQuickPick(),l=[a,a.onDidAccept(()=>{if(a.canSelectMany)s(a.selectedItems.slice()),a.hide();else{let e=a.activeItems[0];e&&(s(e),a.hide())}}),a.onDidChangeActive(e=>{let i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)}),a.onDidChangeSelection(e=>{if(!a.canSelectMany){let t=e[0];t&&(s(t),a.hide())}}),a.onDidTriggerItemButton(e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},e),{removeItem:()=>{let t=a.items.indexOf(e.item);if(-1!==t){let e=a.items.slice(),i=e.splice(t,1),o=a.activeItems.filter(e=>e!==i[0]),n=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=e,o&&(a.activeItems=o),a.keepScrollPosition=n}}}))),a.onDidChangeValue(e=>{r&&!e&&(1!==a.activeItems.length||a.activeItems[0]!==r)&&(a.activeItems=[r])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{(0,f.dispose)(l),s(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,a.autoFocusOnList=void 0===t.autoFocusOnList||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([e,t])=>{r=t,a.busy=!1,a.items=e,a.canSelectMany&&(a.selectedItems=e.filter(e=>"separator"!==e.type&&e.picked)),r&&(a.activeItems=[r])}),a.show(),Promise.resolve(e).then(void 0,e=>{n(e),a.hide()})})}createQuickPick(){return new T(this.getUI())}show(e){let t=this.getUI();this.onShowEmitter.fire();let i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(_.default.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),o.reset(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";let n=this.options.backKeybindingLabel();L.tooltip=n?(0,S.localize)("quickInput.backWithKeybinding","Back ({0})",n):(0,S.localize)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){let t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){let t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){for(let t of(this.enabled=e,this.getUI().leftActionBar.viewItems))t.getAction().enabled=e;for(let t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;let i=this.controller;if(i){let o=!(null===(t=this.ui)||void 0===t?void 0:t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!o){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=(0,y.withNullAsUndefined)(e.parentElement);(null==e?void 0:e.offsetParent)?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;let e=this.ui.container.style,t=Math.min(.62*this.dimension.width,N.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){let{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:o,widgetShadow:n}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=o?`1px solid ${o}`:"",this.ui.container.style.boxShadow=n?`0 0 8px 2px ${n}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);let r=[];this.styles.list.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));let s=r.join("\n");s!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=s)}}}N.MAX_WIDTH=600},381943:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return o},language:function(){return n}});var o={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},n={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}},30527:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],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,"828814"))})},573428:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],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,"533791"))})},819964:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"go",extensions:[".go"],aliases:["Go"],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,"910288"))})},889586:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return o},language:function(){return n}});var o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},n={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[["non-sealed","keyword.non-sealed"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}},173490:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],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,"489218"))})},484917:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],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,"526542"))})},295304:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],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,"174013"))})},507682:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return o},language:function(){return n}});var o={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},n={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*\/\^%]+/,IDENTFST:/[a-zA-Z_]/,IDENTRST:/[a-zA-Z0-9_'$]/,symbolic:/[%&+-./:=@~`^|*!$#?<>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/\.@symbolic+/,action:{token:"identifier.sym"}},{regex:/\.@digit*@fexponent@FLOATSP*/,action:{token:"number.float"}},{regex:/\.@digit+/,action:{token:"number.float"}},{regex:/\$@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_dlr":{token:"keyword.dlr"},"@default":{token:"namespace"}}}},{regex:/\#@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_srp":{token:"keyword.srp"},"@default":{token:"identifier"}}}},{regex:/%\(/,action:{token:"delimiter.parenthesis"}},{regex:/^%{(#|\^|\$)?/,action:{token:"keyword",next:"@lexing_EXTCODE",nextEmbedded:"text/javascript"}},{regex:/^%}/,action:{token:"keyword"}},{regex:/'\(/,action:{token:"delimiter.parenthesis"}},{regex:/'\[/,action:{token:"delimiter.bracket"}},{regex:/'\{/,action:{token:"delimiter.brace"}},[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/,["string","string.escape","string"]],[/'[^\\']'/,"string"],[/"/,"string.quote","@lexing_DQUOTE"],{regex:/`\(/,action:"@brackets"},{regex:/\\/,action:{token:"punctuation"}},{regex:/@irregular_keywords(?!@IDENTRST)/,action:{token:"keyword"}},{regex:/@IDENTFST@IDENTRST*[<!\[]?/,action:{cases:{"@keywords":{token:"keyword"},"@keywords_types":{token:"type"},"@default":{token:"identifier"}}}},{regex:/\/\/\/\//,action:{token:"comment",next:"@lexing_COMMENT_rest"}},{regex:/\/\/.*$/,action:{token:"comment"}},{regex:/\/\*/,action:{token:"comment",next:"@lexing_COMMENT_block_c"}},{regex:/-<|=</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/@symbolic+/,action:{cases:{"@operators":"keyword","@default":"operator"}}},{regex:/0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,action:{token:"number.float"}},{regex:/0[xX]@xdigit+@INTSP*/,action:{token:"number.hex"}},{regex:/0[0-7]+(?![0-9])@INTSP*/,action:{token:"number.octal"}},{regex:/@digit+(@fexponent|@deciexp)@FLOATSP*/,action:{token:"number.float"}},{regex:/@digit@digitseq0@INTSP*/,action:{token:"number.decimal"}},{regex:/@digit+@INTSP*/,action:{token:"number"}}],lexing_COMMENT_block_ml:[[/[^\(\*]+/,"comment"],[/\(\*/,"comment","@push"],[/\(\*/,"comment.invalid"],[/\*\)/,"comment","@pop"],[/\*/,"comment"]],lexing_COMMENT_block_c:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],lexing_COMMENT_rest:[[/$/,"comment","@pop"],[/.*/,"comment"]],lexing_EFFECT_commaseq0:[{regex:/@IDENTFST@IDENTRST+|@digit+/,action:{cases:{"@keywords_effects":{token:"type.effect"},"@default":{token:"identifier"}}}},{regex:/,/,action:{token:"punctuation"}},{regex:/>/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}},450422:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],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,"588187"))})},637711:function(e,t,i){"use strict";i.r(t),i.d(t,{createWebWorker:function(){return r}});var o=i("281099"),n=i("744138");function r(e,t,i){return new s(e,t,i)}class s extends o.EditorWorkerClient{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}_getForeignProxy(){return!this._foreignProxy&&(this._foreignProxy=this._getProxy().then(e=>{let t=this._foreignModuleHost?n.getAllMethodNames(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(t=>{this._foreignModuleCreateData=null;let i=(t,i)=>e.fmr(t,i),o=(e,t)=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(let e of t)n[e]=o(e,i);return n})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(e=>this.getProxy())}}},481468:function(e,t,i){"use strict";i.r(t),i.d(t,{FloatHorizontalRange:function(){return a},HorizontalPosition:function(){return l},HorizontalRange:function(){return s},LineVisibleRanges:function(){return r},RenderingContext:function(){return n},VisibleRanges:function(){return c}});class o{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;let i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class n extends o{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class r{constructor(e,t,i){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i}}class s{constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}static from(e){let t=Array(e.length);for(let i=0,o=e.length;i<o;i++){let o=e[i];t[i]=new s(o.left,o.width)}return t}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class l{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class c{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},531382:function(e,t,i){"use strict";i.r(t),i.d(t,{EditorScrollbar:function(){return c}});var o=i("409737"),n=i("670758"),r=i("842401"),s=i("71956"),a=i("439703"),l=i("897085");class c extends s.ViewPart{constructor(e,t,i,l){super(e);let c=this._context.configuration.options,d=c.get(94),u=c.get(69),h=c.get(36),g=c.get(97),m={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,a.getThemeTypeSelector)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:d.vertical,horizontal:d.horizontal,verticalHasArrows:d.verticalHasArrows,horizontalHasArrows:d.horizontalHasArrows,verticalScrollbarSize:d.verticalScrollbarSize,verticalSliderSize:d.verticalSliderSize,horizontalScrollbarSize:d.horizontalScrollbarSize,horizontalSliderSize:d.horizontalSliderSize,handleMouseWheel:d.handleMouseWheel,alwaysConsumeMouseWheel:d.alwaysConsumeMouseWheel,arrowSize:d.arrowSize,mouseWheelScrollSensitivity:u,fastScrollSensitivity:h,scrollPredominantAxis:g,scrollByPage:d.scrollByPage};this.scrollbar=this._register(new r.SmoothScrollableElement(t.domNode,m,this._context.viewLayout.getScrollable())),s.PartFingerprints.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=(0,n.createFastDomNode)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();let p=(e,t,i)=>{let o={};if(t){let t=e.scrollTop;t&&(o.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){let t=e.scrollLeft;t&&(o.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(o,1)};this._register(o.addDisposableListener(i.domNode,"scroll",e=>p(i.domNode,!0,!0))),this._register(o.addDisposableListener(t.domNode,"scroll",e=>p(t.domNode,!0,!1))),this._register(o.addDisposableListener(l.domNode,"scroll",e=>p(l.domNode,!0,!1))),this._register(o.addDisposableListener(this.scrollbarDomNode.domNode,"scroll",e=>p(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){let e=this._context.configuration.options,t=e.get(133);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(67).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}onConfigurationChanged(e){if(e.hasChanged(94)||e.hasChanged(69)||e.hasChanged(36)){let e=this._context.configuration.options,t=e.get(94),i=e.get(69),o=e.get(36),n=e.get(97),r={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:o,scrollPredominantAxis:n};this.scrollbar.updateOptions(r)}return e.hasChanged(133)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,a.getThemeTypeSelector)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}(0,a.registerThemingParticipant)((e,t)=>{let i=e.getColor(l.scrollbarShadow);i&&t.addRule(`
|
|
3
|
-
.monaco-scrollable-element > .shadow.top {
|
|
4
|
-
box-shadow: ${i} 0 6px 6px -6px inset;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.monaco-scrollable-element > .shadow.left {
|
|
8
|
-
box-shadow: ${i} 6px 0 6px -6px inset;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.monaco-scrollable-element > .shadow.top.left {
|
|
12
|
-
box-shadow: ${i} 6px 6px 6px -6px inset;
|
|
13
|
-
}
|
|
14
|
-
`);let o=e.getColor(l.scrollbarSliderBackground);o&&t.addRule(`
|
|
15
|
-
.monaco-scrollable-element > .scrollbar > .slider {
|
|
16
|
-
background: ${o};
|
|
17
|
-
}
|
|
18
|
-
`);let n=e.getColor(l.scrollbarSliderHoverBackground);n&&t.addRule(`
|
|
19
|
-
.monaco-scrollable-element > .scrollbar > .slider:hover {
|
|
20
|
-
background: ${n};
|
|
21
|
-
}
|
|
22
|
-
`);let r=e.getColor(l.scrollbarSliderActiveBackground);r&&t.addRule(`
|
|
23
|
-
.monaco-scrollable-element > .scrollbar > .slider.active {
|
|
24
|
-
background: ${r};
|
|
25
|
-
}
|
|
26
|
-
`)})},60075:function(e,t,i){"use strict";i.r(t),i.d(t,{OverviewRuler:function(){return s}});var o=i("670758"),n=i("780801"),r=i("448331");class s extends r.ViewEventHandler{constructor(e,t){super(),this._context=e;let i=this._context.configuration.options;this._domNode=(0,o.createFastDomNode)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new n.OverviewZoneManager(e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(61)),this._zoneManager.setPixelRatio(i.get(131)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options;return e.hasChanged(61)&&(this._zoneManager.setLineHeight(t.get(61)),this._render()),e.hasChanged(131)&&(this._zoneManager.setPixelRatio(t.get(131)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;let e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),o=this._zoneManager.getId2Color(),n=this._domNode.domNode.getContext("2d");return n.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(n,i,o,e),!0}_renderOneLane(e,t,i,o){let n=0,r=0,s=0;for(let a of t){let t=a.colorId,l=a.from,c=a.to;t!==n?(e.fillRect(0,r,o,s-r),n=t,e.fillStyle=i[n],r=l,s=c):s>=l?s=Math.max(s,c):(e.fillRect(0,r,o,s-r),r=l,s=c)}e.fillRect(0,r,o,s-r)}}},412880:function(e,t,i){"use strict";i.r(t),i.d(t,{SelectionsOverlay:function(){return d}}),i("915745");var o=i("707202"),n=i("897085"),r=i("439703");class s{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class a{constructor(e,t){this.lineNumber=e,this.ranges=t}}function l(e){return new s(e)}function c(e){return new a(e.lineNumber,e.ranges.map(l))}class d extends o.DynamicViewOverlay{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;let t=this._context.configuration.options;this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++)if(e[t].ranges.length>1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){let o=this._typicalHalfwidthCharacterWidth/4,n=null,r=null;if(i&&i.length>0&&t.length>0){let o=t[0].lineNumber;if(o===e.startLineNumber)for(let e=0;!n&&e<i.length;e++)i[e].lineNumber===o&&(n=i[e].ranges[0]);let s=t[t.length-1].lineNumber;if(s===e.endLineNumber)for(let e=i.length-1;!r&&e>=0;e--)i[e].lineNumber===s&&(r=i[e].ranges[0]);n&&!n.startStyle&&(n=null),r&&!r.startStyle&&(r=null)}for(let e=0,i=t.length;e<i;e++){let s=t[e].ranges[0],a=s.left,l=s.left+s.width,c={top:0,bottom:0},d={top:0,bottom:0};if(e>0){let i=t[e-1].ranges[0].left,n=t[e-1].ranges[0].left+t[e-1].ranges[0].width;u(a-i)<o?c.top=2:a>i&&(c.top=1),u(l-n)<o?d.top=2:i<l&&l<n&&(d.top=1)}else n&&(c.top=n.startStyle.top,d.top=n.endStyle.top);if(e+1<i){let i=t[e+1].ranges[0].left,n=t[e+1].ranges[0].left+t[e+1].ranges[0].width;u(a-i)<o?c.bottom=2:i<a&&a<n&&(c.bottom=1),u(l-n)<o?d.bottom=2:l<n&&(d.bottom=1)}else r&&(c.bottom=r.startStyle.bottom,d.bottom=r.endStyle.bottom);s.startStyle=c,s.endStyle=d}}_getVisibleRangesWithStyle(e,t,i){let o=(t.linesVisibleRangesForRange(e,!0)||[]).map(c);return!this._visibleRangesHaveGaps(o)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,o,i),o}_createSelectionPiece(e,t,i,o,n){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;left:"+o.toString()+"px;width:"+n.toString()+"px;height:"+t+'px;"></div>'}_actualRenderOneSelection(e,t,i,o){if(0===o.length)return;let n=!!o[0].ranges[0].startStyle,r=this._lineHeight.toString(),s=(this._lineHeight-1).toString(),a=o[0].lineNumber,l=o[o.length-1].lineNumber;for(let c=0,u=o.length;c<u;c++){let u=o[c],h=u.lineNumber,g=h-t,m=i&&(h===l||h===a)?s:r,p=i&&h===a?1:0,f="",b="";for(let e=0,t=u.ranges.length;e<t;e++){let t=u.ranges[e];if(n){let e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){f+=this._createSelectionPiece(p,m,d.SELECTION_CLASS_NAME,t.left-d.ROUNDED_PIECE_WIDTH,d.ROUNDED_PIECE_WIDTH);let i=d.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+d.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+d.SELECTION_BOTTOM_RIGHT),f+=this._createSelectionPiece(p,m,i,t.left-d.ROUNDED_PIECE_WIDTH,d.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){f+=this._createSelectionPiece(p,m,d.SELECTION_CLASS_NAME,t.left+t.width,d.ROUNDED_PIECE_WIDTH);let e=d.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+d.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+d.SELECTION_BOTTOM_LEFT),f+=this._createSelectionPiece(p,m,e,t.left+t.width,d.ROUNDED_PIECE_WIDTH)}}let i=d.SELECTION_CLASS_NAME;if(n){let e=t.startStyle,o=t.endStyle;0===e.top&&(i+=" "+d.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+d.SELECTION_BOTTOM_LEFT),0===o.top&&(i+=" "+d.SELECTION_TOP_RIGHT),0===o.bottom&&(i+=" "+d.SELECTION_BOTTOM_RIGHT)}b+=this._createSelectionPiece(p,m,i,t.left,t.width)}e[g][0]+=f,e[g][1]+=b}}prepareRender(e){let t=[],i=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber;for(let e=i;e<=o;e++)t[e-i]=["",""];let n=[];for(let o=0,r=this._selections.length;o<r;o++){let r=this._selections[o];if(r.isEmpty()){n[o]=null;continue}let s=this._getVisibleRangesWithStyle(r,e,this._previousFrameVisibleRangesWithStyle[o]);n[o]=s,this._actualRenderOneSelection(t,i,this._selections.length>1,s)}this._previousFrameVisibleRangesWithStyle=n,this._renderResult=t.map(([e,t])=>e+t)}render(e,t){if(!this._renderResult)return"";let i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function u(e){return e<0?-e:e}d.SELECTION_CLASS_NAME="selected-text",d.SELECTION_TOP_LEFT="top-left-radius",d.SELECTION_BOTTOM_LEFT="bottom-left-radius",d.SELECTION_TOP_RIGHT="top-right-radius",d.SELECTION_BOTTOM_RIGHT="bottom-right-radius",d.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",d.ROUNDED_PIECE_WIDTH=10,(0,r.registerThemingParticipant)((e,t)=>{let i=e.getColor(n.editorSelectionBackground);i&&t.addRule(`.monaco-editor .focused .selected-text { background-color: ${i}; }`);let o=e.getColor(n.editorInactiveSelection);o&&t.addRule(`.monaco-editor .selected-text { background-color: ${o}; }`);let r=e.getColor(n.editorSelectionForeground);r&&!r.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${r}; }`)})},694614:function(e,t,i){"use strict";i.r(t),i.d(t,{ViewCursors:function(){return u}}),i("432036");var o=i("670758"),n=i("467518"),r=i("71956"),s=i("20801"),a=i("416637"),l=i("126939"),c=i("439703"),d=i("774697");class u extends r.ViewPart{constructor(e){super(e);let t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new s.ViewCursor(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,o.createFastDomNode)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new n.TimeoutTimer,this._cursorFlatBlinkInterval=new n.IntervalTimer,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){let t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length){let e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){let e=new s.ViewCursor(this._context);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){let e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let e=0;e<t.length;e++)this._secondaryCursors[e].onCursorPositionChanged(t[e])}onCursorStateChanged(e){let t=[];for(let i=0,o=e.selections.length;i<o;i++)t[i]=e.selections[i].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));let i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){let t=t=>{for(let i=0,o=e.ranges.length;i<o;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(let e of this._secondaryCursors)if(t(e.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput||!this._editorHasFocus?0:this._readOnly?5:this._cursorBlinking}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();let e=this._getCursorBlinking(),t=0===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!t&&5!==e&&(1===e?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},u.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},u.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(!this._selectionIsEmpty&&(e+=" has-selection"),this._cursorStyle){case a.TextEditorCursorStyle.Line:e+=" cursor-line-style";break;case a.TextEditorCursorStyle.Block:e+=" cursor-block-style";break;case a.TextEditorCursorStyle.Underline:e+=" cursor-underline-style";break;case a.TextEditorCursorStyle.LineThin:e+=" cursor-line-thin-style";break;case a.TextEditorCursorStyle.BlockOutline:e+=" cursor-block-outline-style";break;case a.TextEditorCursorStyle.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){let t=[],i=0,o=this._primaryCursor.render(e);o&&(t[i++]=o);for(let o=0,n=this._secondaryCursors.length;o<n;o++){let n=this._secondaryCursors[o].render(e);n&&(t[i++]=n)}this._renderData=t}getLastRenderData(){return this._renderData}}u.BLINK_INTERVAL=500,(0,c.registerThemingParticipant)((e,t)=>{let i=e.getColor(l.editorCursorForeground);if(i){let o=e.getColor(l.editorCursorBackground);!o&&(o=i.opposite()),t.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${i}; }`),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${i}; border-color: ${i}; color: ${o}; }`),(0,d.isHighContrast)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${o}; border-right: 1px solid ${o}; }`)}})},175323:function(e,t,i){"use strict";i.r(t),i.d(t,{BareFontInfo:function(){return a},FontInfo:function(){return l}});var o=i("207875"),n=i("416637"),r=i("183140");let s=o.isMacintosh?1.5:1.35;class a{constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}static createFromValidatedSettings(e,t,i){let o=e.get(45),n=e.get(49),r=e.get(48),s=e.get(47),l=e.get(61),c=e.get(58);return a._create(o,n,r,s,l,c,t,i)}static _create(e,t,i,o,n,l,c,d){0===n?n=s*i:n<8&&(n*=i),(n=Math.round(n))<8&&(n=8);let u=1+(d?0:.1*r.EditorZoom.getZoomLevel());return i*=u,n*=u,new a({pixelRatio:c,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:o,lineHeight:n,letterSpacing:l})}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){let e=n.EDITOR_FONT_DEFAULTS.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class l extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=1,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},457938:function(e,t,i){"use strict";i.r(t),i.d(t,{Position:function(){return o}});class o{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new o(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return o.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return o.isBefore(this,e)}static isBefore(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return o.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let i=0|e.lineNumber,o=0|t.lineNumber;if(i===o){let i=0|e.column;return i-(0|t.column)}return i-o}clone(){return new o(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new o(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}},861065:function(e,t,i){"use strict";i.r(t),i.d(t,{Selection:function(){return r}});var o=i("457938"),n=i("761045");class r extends n.Range{constructor(e,t,i,o){super(e,t,i,o),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=o}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return r.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new r(this.startLineNumber,this.startColumn,e,t):new r(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new o.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new o.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new r(e,t,this.endLineNumber,this.endColumn):new r(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new r(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new r(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,o=e.length;i<o;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,i,o,n){return 0===n?new r(e,t,i,o):new r(i,o,e,t)}}},812315:function(e,t,i){"use strict";i.r(t),i.d(t,{WordOperations:function(){return c},WordPartOperations:function(){return d}});var o=i("266763"),n=i("607910"),r=i("452862"),s=i("840890"),a=i("457938"),l=i("761045");class c{static _createWord(e,t,i,o,n){return{start:o,end:n,wordType:t,nextCharClass:i}}static _findPreviousWordOnLine(e,t,i){let o=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(o,e,i)}static _doFindPreviousWordOnLine(e,t,i){let o=0;for(let n=i.column-2;n>=0;n--){let i=e.charCodeAt(n),r=t.get(i);if(0===r){if(2===o)return this._createWord(e,o,r,n+1,this._findEndOfWord(e,t,o,n+1));o=1}else if(2===r){if(1===o)return this._createWord(e,o,r,n+1,this._findEndOfWord(e,t,o,n+1));o=2}else if(1===r&&0!==o)return this._createWord(e,o,r,n+1,this._findEndOfWord(e,t,o,n+1))}return 0!==o?this._createWord(e,o,1,0,this._findEndOfWord(e,t,o,0)):null}static _findEndOfWord(e,t,i,o){let n=e.length;for(let r=o;r<n;r++){let o=e.charCodeAt(r),n=t.get(o);if(1===n||1===i&&2===n||2===i&&0===n)return r}return n}static _findNextWordOnLine(e,t,i){let o=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(o,e,i)}static _doFindNextWordOnLine(e,t,i){let o=0,n=e.length;for(let r=i.column-1;r<n;r++){let i=e.charCodeAt(r),n=t.get(i);if(0===n){if(2===o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,r-1),r);o=1}else if(2===n){if(1===o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,r-1),r);o=2}else if(1===n&&0!==o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,r-1),r)}return 0!==o?this._createWord(e,o,1,this._findStartOfWord(e,t,o,n-1),n):null}static _findStartOfWord(e,t,i,o){for(let n=o;n>=0;n--){let o=e.charCodeAt(n),r=t.get(o);if(1===r||1===i&&2===r||2===i&&0===r)return n+1}return 0}static moveWordLeft(e,t,i,o){let n=i.lineNumber,r=i.column;1===r&&n>1&&(n-=1,r=t.getLineMaxColumn(n));let s=c._findPreviousWordOnLine(e,t,new a.Position(n,r));if(0===o)return new a.Position(n,s?s.start+1:1);if(1===o)return s&&2===s.wordType&&s.end-s.start==1&&0===s.nextCharClass&&(s=c._findPreviousWordOnLine(e,t,new a.Position(n,s.start+1))),new a.Position(n,s?s.start+1:1);if(3===o){for(;s&&2===s.wordType;)s=c._findPreviousWordOnLine(e,t,new a.Position(n,s.start+1));return new a.Position(n,s?s.start+1:1)}return s&&r<=s.end+1&&(s=c._findPreviousWordOnLine(e,t,new a.Position(n,s.start+1))),new a.Position(n,s?s.end+1:1)}static _moveWordPartLeft(e,t){let i=t.lineNumber,n=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.Position(i-1,e.getLineMaxColumn(i-1)):t;let r=e.getLineContent(i);for(let e=t.column-1;e>1;e--){let t=r.charCodeAt(e-2),s=r.charCodeAt(e-1);if(95===t&&95!==s||(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))&&o.isUpperAsciiLetter(s))return new a.Position(i,e);if(o.isUpperAsciiLetter(t)&&o.isUpperAsciiLetter(s)&&e+1<n){let t=r.charCodeAt(e);if(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))return new a.Position(i,e)}}return new a.Position(i,1)}static moveWordRight(e,t,i,o){let n=i.lineNumber,r=i.column,s=!1;r===t.getLineMaxColumn(n)&&n<t.getLineCount()&&(s=!0,n+=1,r=1);let l=c._findNextWordOnLine(e,t,new a.Position(n,r));if(2===o)l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1))),r=l?l.end+1:t.getLineMaxColumn(n);else if(3===o){for(s&&(r=0);l&&(2===l.wordType||l.start+1<=r);)l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1));r=l?l.start+1:t.getLineMaxColumn(n)}else l&&!s&&r>=l.start+1&&(l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1))),r=l?l.start+1:t.getLineMaxColumn(n);return new a.Position(n,r)}static _moveWordPartRight(e,t){let i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i<e.getLineCount()?new a.Position(i+1,1):t;let r=e.getLineContent(i);for(let e=t.column+1;e<n;e++){let t=r.charCodeAt(e-2),s=r.charCodeAt(e-1);if(95!==t&&95===s||(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))&&o.isUpperAsciiLetter(s))return new a.Position(i,e);if(o.isUpperAsciiLetter(t)&&o.isUpperAsciiLetter(s)&&e+1<n){let t=r.charCodeAt(e);if(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))return new a.Position(i,e)}}return new a.Position(i,n)}static _deleteWordLeftWhitespace(e,t){let i=e.getLineContent(t.lineNumber),n=t.column-2,r=o.lastNonWhitespaceIndex(i,n);return r+1<n?new l.Range(t.lineNumber,r+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){let i=e.wordSeparators,o=e.model,n=e.selection,s=e.whitespaceHeuristics;if(!n.isEmpty())return n;if(r.DeleteOperations.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){let t=e.selection.getPosition();return new l.Range(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}let d=new a.Position(n.positionLineNumber,n.positionColumn),u=d.lineNumber,h=d.column;if(1===u&&1===h)return null;if(s){let e=this._deleteWordLeftWhitespace(o,d);if(e)return e}let g=c._findPreviousWordOnLine(i,o,d);return 0===t?g?h=g.start+1:h>1?h=1:(u--,h=o.getLineMaxColumn(u)):(g&&h<=g.end+1&&(g=c._findPreviousWordOnLine(i,o,new a.Position(u,g.start+1))),g?h=g.end+1:h>1?h=1:(u--,h=o.getLineMaxColumn(u))),new l.Range(u,h,d.lineNumber,d.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;let o=new a.Position(i.positionLineNumber,i.positionColumn),n=this._deleteInsideWordWhitespace(t,o);return n?n:this._deleteInsideWordDetermineDeleteRange(e,t,o)}static _charAtIsWhitespace(e,t){let i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){let i=e.getLineContent(t.lineNumber),o=i.length;if(0===o)return null;let n=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,n))return null;let r=Math.min(t.column-1,o-1);if(!this._charAtIsWhitespace(i,r))return null;for(;n>0&&this._charAtIsWhitespace(i,n-1);)n--;for(;r+1<o&&this._charAtIsWhitespace(i,r+1);)r++;return new l.Range(t.lineNumber,n+1,t.lineNumber,r+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){let o,n,r=t.getLineContent(i.lineNumber),s=r.length;if(0===s)return i.lineNumber>1?new l.Range(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new l.Range(i.lineNumber,1,i.lineNumber+1,1):new l.Range(i.lineNumber,1,i.lineNumber,1);let a=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.Range(i.lineNumber,e,i.lineNumber,t)),d=e=>{let t=e.start+1,i=e.end+1,o=!1;for(;i-1<s&&this._charAtIsWhitespace(r,i-1);)o=!0,i++;if(!o)for(;t>1&&this._charAtIsWhitespace(r,t-2);)t--;return a(t,i)},u=c._findPreviousWordOnLine(e,t,i);if(u&&(o=u).start+1<=i.column&&i.column<=o.end+1)return d(u);let h=c._findNextWordOnLine(e,t,i);return h&&(n=h).start+1<=i.column&&i.column<=n.end+1?d(h):u&&h?a(u.end+1,h.start+1):u?a(u.start+1,u.end+1):h?a(h.start+1,h.end+1):a(1,s+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;let i=t.getPosition(),o=c._moveWordPartLeft(e,i);return new l.Range(i.lineNumber,i.column,o.lineNumber,o.column)}static _findFirstNonWhitespaceChar(e,t){let i=e.length;for(let o=t;o<i;o++){let t=e.charAt(o);if(" "!==t&&" "!==t)return o}return i}static _deleteWordRightWhitespace(e,t){let i=e.getLineContent(t.lineNumber),o=t.column-1,n=this._findFirstNonWhitespaceChar(i,o);return o+1<n?new l.Range(t.lineNumber,t.column,t.lineNumber,n+1):null}static deleteWordRight(e,t){let i=e.wordSeparators,o=e.model,n=e.selection,r=e.whitespaceHeuristics;if(!n.isEmpty())return n;let s=new a.Position(n.positionLineNumber,n.positionColumn),d=s.lineNumber,u=s.column,h=o.getLineCount(),g=o.getLineMaxColumn(d);if(d===h&&u===g)return null;if(r){let e=this._deleteWordRightWhitespace(o,s);if(e)return e}let m=c._findNextWordOnLine(i,o,s);return 2===t?m?u=m.end+1:u<g||d===h?u=g:(d++,u=(m=c._findNextWordOnLine(i,o,new a.Position(d,1)))?m.start+1:o.getLineMaxColumn(d)):(m&&u>=m.start+1&&(m=c._findNextWordOnLine(i,o,new a.Position(d,m.end+1))),m?u=m.start+1:u<g||d===h?u=g:(d++,u=(m=c._findNextWordOnLine(i,o,new a.Position(d,1)))?m.start+1:o.getLineMaxColumn(d))),new l.Range(d,u,s.lineNumber,s.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;let i=t.getPosition(),o=c._moveWordPartRight(e,i);return new l.Range(i.lineNumber,i.column,o.lineNumber,o.column)}static _createWordAtPosition(e,t,i){let o=new l.Range(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(o),startColumn:o.startColumn,endColumn:o.endColumn}}static getWordAtPosition(e,t,i){let o=(0,s.getMapForWordSeparators)(t),n=c._findPreviousWordOnLine(o,e,i);if(n&&1===n.wordType&&n.start<=i.column-1&&i.column-1<=n.end)return c._createWordAtPosition(e,i.lineNumber,n);let r=c._findNextWordOnLine(o,e,i);return r&&1===r.wordType&&r.start<=i.column-1&&i.column-1<=r.end?c._createWordAtPosition(e,i.lineNumber,r):null}static word(e,t,i,o,r){let d,u,h;let g=(0,s.getMapForWordSeparators)(e.wordSeparators),m=c._findPreviousWordOnLine(g,t,r),p=c._findNextWordOnLine(g,t,r);if(!o){let e,i;return m&&1===m.wordType&&m.start<=r.column-1&&r.column-1<=m.end?(e=m.start+1,i=m.end+1):p&&1===p.wordType&&p.start<=r.column-1&&r.column-1<=p.end?(e=p.start+1,i=p.end+1):(e=m?m.end+1:1,i=p?p.start+1:t.getLineMaxColumn(r.lineNumber)),new n.SingleCursorState(new l.Range(r.lineNumber,e,r.lineNumber,i),0,new a.Position(r.lineNumber,i),0)}m&&1===m.wordType&&m.start<r.column-1&&r.column-1<m.end?(d=m.start+1,u=m.end+1):p&&1===p.wordType&&p.start<r.column-1&&r.column-1<p.end?(d=p.start+1,u=p.end+1):(d=r.column,u=r.column);let f=r.lineNumber;if(i.selectionStart.containsPosition(r))h=i.selectionStart.endColumn;else if(r.isBeforeOrEqual(i.selectionStart.getStartPosition())){h=d;let e=new a.Position(f,h);i.selectionStart.containsPosition(e)&&(h=i.selectionStart.endColumn)}else{h=u;let e=new a.Position(f,h);i.selectionStart.containsPosition(e)&&(h=i.selectionStart.startColumn)}return i.move(!0,f,h,0)}}class d extends c{static deleteWordPartLeft(e){let t=u([c.deleteWordLeft(e,0),c.deleteWordLeft(e,2),c._deleteWordPartLeft(e.model,e.selection)]);return t.sort(l.Range.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){let t=u([c.deleteWordRight(e,0),c.deleteWordRight(e,2),c._deleteWordPartRight(e.model,e.selection)]);return t.sort(l.Range.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i){let o=u([c.moveWordLeft(e,t,i,0),c.moveWordLeft(e,t,i,2),c._moveWordPartLeft(t,i)]);return o.sort(a.Position.compare),o[2]}static moveWordPartRight(e,t,i){let o=u([c.moveWordRight(e,t,i,0),c.moveWordRight(e,t,i,2),c._moveWordPartRight(t,i)]);return o.sort(a.Position.compare),o[0]}}function u(e){return e.filter(e=>!!e)}},343349:function(e,t,i){"use strict";i.r(t),i.d(t,{DiffComputer:function(){return d}});var o=i("160012"),n=i("266763");function r(e,t,i,n){return new o.LcsDiff(e,t,i).ComputeDiff(n)}class s{constructor(e){let t=[],i=[];for(let o=0,n=e.length;o<n;o++)t[o]=u(e[o],1),i[o]=h(e[o],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){let e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){let o=[],n=[],r=[],s=0;for(let a=t;a<=i;a++){let t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)o[s]=t.charCodeAt(e-1),n[s]=a+1,r[s]=e,s++;!e&&a<i&&(o[s]=10,n[s]=a+1,r[s]=t.length+1,s++)}return new a(o,n,r)}}class a{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return -1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e])?this._lineNumbers[e]+1:this._lineNumbers[e]}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return -1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e])?1:this._columns[e]+1}}class l{constructor(e,t,i,o,n,r,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=o,this.modifiedStartLineNumber=n,this.modifiedStartColumn=r,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){let o=t.getStartLineNumber(e.originalStart),n=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),c=i.getStartColumn(e.modifiedStart),d=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1);return new l(o,n,r,s,a,c,d,i.getEndColumn(e.modifiedStart+e.modifiedLength-1))}}class c{constructor(e,t,i,o,n){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=o,this.charChanges=n}static createFromDiffResult(e,t,i,o,n,s,a){let d,u,h,g,m;if(0===t.originalLength?(d=i.getStartLineNumber(t.originalStart)-1,u=0):(d=i.getStartLineNumber(t.originalStart),u=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=o.getStartLineNumber(t.modifiedStart)-1,g=0):(h=o.getStartLineNumber(t.modifiedStart),g=o.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&n()){let s=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),c=o.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&c.getElements().length>0){let e=r(s,c,n,!0).changes;a&&(e=function(e){if(e.length<=1)return e;let t=[e[0]],i=t[0];for(let o=1,n=e.length;o<n;o++){let n=e[o],r=n.originalStart-(i.originalStart+i.originalLength);3>Math.min(r,n.modifiedStart-(i.modifiedStart+i.modifiedLength))?(i.originalLength=n.originalStart+n.originalLength-i.originalStart,i.modifiedLength=n.modifiedStart+n.modifiedLength-i.modifiedStart):(t.push(n),i=n)}return t}(e)),m=[];for(let t=0,i=e.length;t<i;t++)m.push(l.createFromDiffChange(e[t],s,c))}}return new c(d,u,h,g,m)}}class d{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new s(e),this.modified=new s(t),this.continueLineDiff=g(i.maxComputationTime),this.continueCharDiff=g(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};let e=r(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){let e=[];for(let i=0,o=t.length;i<o;i++)e.push(c.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}let o=[],n=0,s=0;for(let e=-1,i=t.length;e<i;e++){let r=e+1<i?t[e+1]:null,a=r?r.originalStart:this.originalLines.length,l=r?r.modifiedStart:this.modifiedLines.length;for(;n<a&&s<l;){let e=this.originalLines[n],t=this.modifiedLines[s];if(e!==t){{let i=u(e,1),r=u(t,1);for(;i>1&&r>1;){let o=e.charCodeAt(i-2);if(o!==t.charCodeAt(r-2))break;i--,r--}(i>1||r>1)&&this._pushTrimWhitespaceCharChange(o,n+1,1,i,s+1,1,r)}{let i=h(e,1),r=h(t,1),a=e.length+1,l=t.length+1;for(;i<a&&r<l;){let t=e.charCodeAt(i-1);if(t!==e.charCodeAt(r-1))break;i++,r++}(i<a||r<l)&&this._pushTrimWhitespaceCharChange(o,n+1,i,a,s+1,r,l)}}n++,s++}r&&(o.push(c.createFromDiffResult(this.shouldIgnoreTrimWhitespace,r,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),n+=r.originalLength,s+=r.modifiedLength)}return{quitEarly:i,changes:o}}_pushTrimWhitespaceCharChange(e,t,i,o,n,r,s){let a;if(!this._mergeTrimWhitespaceCharChange(e,t,i,o,n,r,s))this.shouldComputeCharChanges&&(a=[new l(t,i,t,o,n,r,n,s)]),e.push(new c(t,t,n,n,a))}_mergeTrimWhitespaceCharChange(e,t,i,o,n,r,s){let a=e.length;if(0===a)return!1;let c=e[a-1];return 0!==c.originalEndLineNumber&&0!==c.modifiedEndLineNumber&&c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===n&&(c.originalEndLineNumber=t,c.modifiedEndLineNumber=n,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new l(t,i,t,o,n,r,n,s)),!0)}}function u(e,t){let i=n.firstNonWhitespaceIndex(e);return -1===i?t:i+1}function h(e,t){let i=n.lastNonWhitespaceIndex(e);return -1===i?t:i+2}function g(e){if(0===e)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}},310067:function(e,t,i){"use strict";i.r(t),i.d(t,{score:function(){return function e(t,i,r,s,a,l){if(Array.isArray(t)){let o=0;for(let n of t){let t=e(n,i,r,s,a,l);if(10===t)return t;t>o&&(o=t)}return o}if("string"==typeof t)return s?"*"===t?5:t===r?10:0:0;if(!t)return 0;else{let{language:e,pattern:c,scheme:d,hasAccessToAllModels:u,notebookType:h}=t;if(!s&&!u)return 0;h&&a&&(i=a);let g=0;if(d){if(d===i.scheme)g=10;else{if("*"!==d)return 0;g=5}}if(e){if(e===r)g=10;else{if("*"!==e)return 0;g=Math.max(g,5)}}if(h){if(h===l)g=10;else{if("*"!==h||void 0===l)return 0;g=Math.max(g,5)}}if(c){let e;if(!((e="string"==typeof c?c:Object.assign(Object.assign({},c),{base:(0,n.normalize)(c.base)}))===i.fsPath||(0,o.match)(e,i.fsPath)))return 0;g=10}return g}}}});var o=i("379462"),n=i("555410")},464587:function(e,t,i){"use strict";i.r(t),i.d(t,{concat23Trees:function(){return n},concat23TreesOfSameHeight:function(){return r}});var o=i("992296");function n(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;let i=t,o=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===o;)t++;return t-i>=2?r(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let o=i(),n=i();if(!n)return o;for(let e=i();e;e=i())s(o,n)<=s(n,e)?(o=a(o,n),n=e):n=a(n,e);return a(o,n)}function r(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){let n=i>>1;for(let r=0;r<n;r++){let n=r<<1;e[r]=o.ListAstNode.create23(e[n],e[n+1],n+3===i?e[n+2]:null,t)}i=n}return o.ListAstNode.create23(e[0],e[1],i>=3?e[2]:null,t)}function s(e,t){return Math.abs(e.listHeight-t.listHeight)}function a(e,t){return e.listHeight===t.listHeight?o.ListAstNode.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i;let n=e=e.toMutable(),r=[];for(;;){if(t.listHeight===n.listHeight){i=t;break}if(4!==n.kind)throw Error("unexpected");r.push(n),n=n.makeLastElementMutable()}for(let e=r.length-1;e>=0;e--){let t=r[e];i?t.childrenLength>=3?i=o.ListAstNode.create23(t.unappendChild(),i,null,!1):(t.appendChildOfSameHeight(i),i=void 0):t.handleChildrenChanged()}return i?o.ListAstNode.create23(e,i,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable(),n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let r=t;for(let e=n.length-1;e>=0;e--){let t=n[e];r?t.childrenLength>=3?r=o.ListAstNode.create23(r,t.unprependChild(),null,!1):(t.prependChildOfSameHeight(r),r=void 0):t.handleChildrenChanged()}return r?o.ListAstNode.create23(r,e,null,!1):e}(t,e)}},276345:function(e,t,i){"use strict";i.r(t),i.d(t,{ColorizedBracketPairsDecorationProvider:function(){return l}});var o=i("916904"),n=i("919527"),r=i("761045"),s=i("126939"),a=i("439703");class l extends n.Disposable{constructor(e){super(),this.textModel=e,this.colorProvider=new c,this.onDidChangeEmitter=new o.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(e=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i){if(void 0===t||!this.colorizationOptions.enabled)return[];let o=[];for(let t of this.textModel.bracketPairs.getBracketsInRange(e))o.push({id:`bracket${t.range.toString()}-${t.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(t,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:t.range});return o}getAllDecorations(e,t){return void 0!==e&&this.colorizationOptions.enabled?this.getDecorationsInRange(new r.Range(1,1,this.textModel.getLineCount(),1),e,t):[]}}class c{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}(0,a.registerThemingParticipant)((e,t)=>{let i=[s.editorBracketHighlightingForeground1,s.editorBracketHighlightingForeground2,s.editorBracketHighlightingForeground3,s.editorBracketHighlightingForeground4,s.editorBracketHighlightingForeground5,s.editorBracketHighlightingForeground6],o=new c;t.addRule(`.monaco-editor .${o.unexpectedClosingBracketClassName} { color: ${e.getColor(s.editorBracketHighlightingUnexpectedBracketForeground)}; }`);let n=i.map(t=>e.getColor(t)).filter(e=>!!e).filter(e=>!e.isTransparent());for(let e=0;e<30;e++){let i=n[e%n.length];t.addRule(`.monaco-editor .${o.getInlineClassNameOfLevel(e)} { color: ${i}; }`)}})},782272:function(e,t,i){"use strict";i.r(t),i.d(t,{AccessibilityHelpNLS:function(){return a},GoToLineNLS:function(){return c},InspectTokensNLS:function(){return l},QuickCommandNLS:function(){return u},QuickHelpNLS:function(){return d},QuickOutlineNLS:function(){return h},StandaloneCodeEditorNLS:function(){return g},StandaloneServicesNLS:function(){return p},ToggleHighContrastNLS:function(){return m}});var o,n,r,s,a,l,c,d,u,h,g,m,p,f=i("708339");(o=a||(a={})).noSelection=f.localize("noSelection","No selection"),o.singleSelectionRange=f.localize("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),o.singleSelection=f.localize("singleSelection","Line {0}, Column {1}"),o.multiSelectionRange=f.localize("multiSelectionRange","{0} selections ({1} characters selected)"),o.multiSelection=f.localize("multiSelection","{0} selections"),o.emergencyConfOn=f.localize("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),o.openingDocs=f.localize("openingDocs","Now opening the Editor Accessibility documentation page."),o.readonlyDiffEditor=f.localize("readonlyDiffEditor"," in a read-only pane of a diff editor."),o.editableDiffEditor=f.localize("editableDiffEditor"," in a pane of a diff editor."),o.readonlyEditor=f.localize("readonlyEditor"," in a read-only code editor"),o.editableEditor=f.localize("editableEditor"," in a code editor"),o.changeConfigToOnMac=f.localize("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),o.changeConfigToOnWinLinux=f.localize("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),o.auto_on=f.localize("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),o.auto_off=f.localize("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),o.tabFocusModeOnMsg=f.localize("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),o.tabFocusModeOnMsgNoKb=f.localize("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),o.tabFocusModeOffMsg=f.localize("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),o.tabFocusModeOffMsgNoKb=f.localize("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),o.openDocMac=f.localize("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),o.openDocWinLinux=f.localize("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),o.outroMsg=f.localize("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),o.showAccessibilityHelpAction=f.localize("showAccessibilityHelpAction","Show Accessibility Help"),(l||(l={})).inspectTokensAction=f.localize("inspectTokens","Developer: Inspect Tokens"),(c||(c={})).gotoLineActionLabel=f.localize("gotoLineActionLabel","Go to Line/Column..."),(d||(d={})).helpQuickAccessActionLabel=f.localize("helpQuickAccess","Show all Quick Access Providers"),(n=u||(u={})).quickCommandActionLabel=f.localize("quickCommandActionLabel","Command Palette"),n.quickCommandHelp=f.localize("quickCommandActionHelp","Show And Run Commands"),(r=h||(h={})).quickOutlineActionLabel=f.localize("quickOutlineActionLabel","Go to Symbol..."),r.quickOutlineByCategoryActionLabel=f.localize("quickOutlineByCategoryActionLabel","Go to Symbol by Category..."),(s=g||(g={})).editorViewAccessibleLabel=f.localize("editorViewAccessibleLabel","Editor content"),s.accessibilityHelpMessage=f.localize("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options."),(m||(m={})).toggleHighContrast=f.localize("toggleHighContrast","Toggle High Contrast Theme"),(p||(p={})).bulkEditServiceSummary=f.localize("bulkEditServiceSummary","Made {0} edits in {1} files")},780801:function(e,t,i){"use strict";i.r(t),i.d(t,{OverviewRulerZone:function(){return n},OverviewZoneManager:function(){return r}});class o{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){if(e.colorId===t.colorId)return e.from===t.from?e.to-t.to:e.from-t.from;return e.colorId-t.colorId}}class n{constructor(e,t,i,o){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=o,this._colorZone=null}static compare(e,t){if(e.color===t.color){if(e.startLineNumber===t.startLineNumber)return e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines;return e.startLineNumber-t.startLineNumber}return e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class r{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(n.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){let e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),n=i/Math.floor(this._outerHeight),r=Math.floor(4*this._pixelRatio/2),s=[];for(let a=0,l=this._zones.length;a<l;a++){let l=this._zones[a];if(!e){let e=l.getColorZones();if(e){s.push(e);continue}}let c=this._getVerticalOffsetForLine(l.startLineNumber),d=0===l.heightInLines?this._getVerticalOffsetForLine(l.endLineNumber)+t:c+l.heightInLines*t,u=Math.floor(n*c),h=Math.floor(n*d),g=Math.floor((u+h)/2),m=h-g;m<r&&(m=r),g-m<0&&(g=m),g+m>i&&(g=i-m);let p=l.color,f=this._color2Id[p];!f&&(f=++this._lastAssignedId,this._color2Id[p]=f,this._id2Color[f]=p);let b=new o(g-m,g+m,f);l.setColorZone(b),s.push(b)}return this._colorZonesInvalid=!1,s.sort(o.compare),s}}},243017:function(e,t,i){"use strict";i.r(t),i.d(t,{FindOptionsWidget:function(){return d}});var o=i("409737"),n=i("25806"),r=i("795832"),s=i("467518"),a=i("399742"),l=i("897085"),c=i("439703");class d extends r.Widget{constructor(e,t,i,r){super(),this._hideSoon=this._register(new s.RunOnceScheduler(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");let c=r.getColorTheme().getColor(l.inputActiveOptionBorder),d=r.getColorTheme().getColor(l.inputActiveOptionForeground),u=r.getColorTheme().getColor(l.inputActiveOptionBackground);this.caseSensitive=this._register(new n.CaseSensitiveToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:c,inputActiveOptionForeground:d,inputActiveOptionBackground:u})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new n.WholeWordsToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:c,inputActiveOptionForeground:d,inputActiveOptionBackground:u})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new n.RegexToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:c,inputActiveOptionForeground:d,inputActiveOptionBackground:u})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()})),this._register(o.addDisposableListener(this._domNode,o.EventType.MOUSE_LEAVE,e=>this._onMouseLeave())),this._register(o.addDisposableListener(this._domNode,"mouseover",e=>this._onMouseOver())),this._applyTheme(r.getColorTheme()),this._register(r.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return d.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){!this._isVisible&&(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(l.inputActiveOptionBorder),inputActiveOptionForeground:e.getColor(l.inputActiveOptionForeground),inputActiveOptionBackground:e.getColor(l.inputActiveOptionBackground)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}d.ID="editor.contrib.findOptionsWidget",(0,c.registerThemingParticipant)((e,t)=>{let i=e.getColor(l.editorWidgetBackground);i&&t.addRule(`.monaco-editor .findOptionsWidget { background-color: ${i}; }`);let o=e.getColor(l.editorWidgetForeground);o&&t.addRule(`.monaco-editor .findOptionsWidget { color: ${o}; }`);let n=e.getColor(l.widgetShadow);n&&t.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${n}; }`);let r=e.getColor(l.contrastBorder);r&&t.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${r}; }`)})},457553:function(e,t,i){"use strict";i.r(t);var o=i("159923"),n=i("183140"),r=i("708339");class s extends o.EditorAction{constructor(){super({id:"editor.action.fontZoomIn",label:r.localize("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){n.EditorZoom.setZoomLevel(n.EditorZoom.getZoomLevel()+1)}}class a extends o.EditorAction{constructor(){super({id:"editor.action.fontZoomOut",label:r.localize("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){n.EditorZoom.setZoomLevel(n.EditorZoom.getZoomLevel()-1)}}class l extends o.EditorAction{constructor(){super({id:"editor.action.fontZoomReset",label:r.localize("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){n.EditorZoom.setZoomLevel(0)}}(0,o.registerEditorAction)(s),(0,o.registerEditorAction)(a),(0,o.registerEditorAction)(l)},445281:function(e,t,i){"use strict";i.r(t);var o=i("159923"),n=i("88936"),r=i("668383"),s=i("40172");(0,o.registerEditorContribution)(r.InlayHintsController.ID,r.InlayHintsController),n.HoverParticipantRegistry.register(s.InlayHintsHover)},49429:function(e,t,i){"use strict";i.r(t),i.d(t,{GhostTextController:function(){return b},ShowNextInlineSuggestionAction:function(){return C},ShowPreviousInlineSuggestionAction:function(){return v},TriggerInlineSuggestionAction:function(){return S}});var o=i("916904"),n=i("919527"),r=i("266763"),s=i("159923"),a=i("394798"),l=i("976617"),c=i("953938"),d=i("981849"),u=i("708339"),h=i("549436"),g=i("706301"),m=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},p=function(e,t){return function(i,o){t(i,o,e)}},f=function(e,t,i,o){return new(i||(i=Promise))(function(n,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())})};let b=class e extends n.Disposable{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new n.MutableDisposable),this.activeModelDidChangeEmitter=this._register(new o.Emitter),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(e=>{e.hasChanged(108)&&this.updateModelController(),e.hasChanged(57)&&this.updateModelController()})),this.updateModelController()}static get(t){return t.getContribution(e.ID)}get activeModel(){var e;return null===(e=this.activeController.value)||void 0===e?void 0:e.model}updateModelController(){let e=this.editor.getOption(108),t=this.editor.getOption(57);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(y,this.editor):void 0,this.activeModelDidChangeEmitter.fire()}shouldShowHoverAt(e){var t;return(null===(t=this.activeModel)||void 0===t?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t,i;return(null===(i=null===(t=this.activeController.value)||void 0===t?void 0:t.widget)||void 0===i?void 0:i.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,!this.activeController.value&&this.updateModelController(),null===(e=this.activeModel)||void 0===e||e.triggerInlineCompletion()}commit(){var e;null===(e=this.activeModel)||void 0===e||e.commitInlineCompletion()}hide(){var e;null===(e=this.activeModel)||void 0===e||e.hideInlineCompletion()}showNextInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return f(this,void 0,void 0,function*(){let t=yield null===(e=this.activeModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t})}};b.inlineSuggestionVisible=new h.RawContextKey("inlineSuggestionVisible",!1,u.localize("inlineSuggestionVisible","Whether an inline suggestion is visible")),b.inlineSuggestionHasIndentation=new h.RawContextKey("inlineSuggestionHasIndentation",!1,u.localize("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),b.inlineSuggestionHasIndentationLessThanTabSize=new h.RawContextKey("inlineSuggestionHasIndentationLessThanTabSize",!0,u.localize("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")),b.ID="editor.contrib.ghostTextController",b=m([p(1,g.IInstantiationService)],b);class _{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=b.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=b.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=b.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService)}}let y=class extends n.Disposable{constructor(e,t,i){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.contextKeys=new _(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(c.GhostTextModel,this.editor)),this.widget=this._register(this.instantiationService.createInstance(d.GhostTextWidget,this.editor,this.model)),this._register((0,n.toDisposable)(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var e;this.contextKeys.inlineCompletionVisible.set((null===(e=this.model.activeInlineCompletionsModel)||void 0===e?void 0:e.ghostText)!==void 0);let t=!1,i=!0,o=this.model.inlineCompletionsModel.ghostText;if(this.model.activeInlineCompletionsModel&&o&&o.parts.length>0){let{column:e,lines:n}=o.parts[0],s=n[0],l=this.editor.getModel().getLineIndentColumn(o.lineNumber);if(e<=l){let e=(0,r.firstNonWhitespaceIndex)(s);-1===e&&(e=s.length-1),t=e>0;let o=this.editor.getModel().getOptions().tabSize;i=a.CursorColumns.visibleColumnFromColumn(s,e+1,o)<o}}this.contextKeys.inlineCompletionSuggestsIndentation.set(t),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(i)}};y=m([p(1,g.IInstantiationService),p(2,h.IContextKeyService)],y);class C extends s.EditorAction{constructor(){super({id:C.ID,label:u.localize("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:h.ContextKeyExpr.and(l.EditorContextKeys.writable,b.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&(e.showNextInlineCompletion(),t.focus())})}}C.ID="editor.action.inlineSuggest.showNext";class v extends s.EditorAction{constructor(){super({id:v.ID,label:u.localize("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:h.ContextKeyExpr.and(l.EditorContextKeys.writable,b.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&(e.showPreviousInlineCompletion(),t.focus())})}}v.ID="editor.action.inlineSuggest.showPrevious";class S extends s.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:u.localize("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:l.EditorContextKeys.writable})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&e.trigger()})}}},195635:function(e,t,i){"use strict";i.r(t);var o=i("871628"),n=i("708339"),r=i("897085"),s=i("439703");let a=(0,r.registerColor)("symbolIcon.arrayForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=(0,r.registerColor)("symbolIcon.booleanForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=(0,r.registerColor)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=(0,r.registerColor)("symbolIcon.colorForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=(0,r.registerColor)("symbolIcon.constantForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=(0,r.registerColor)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=(0,r.registerColor)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=(0,r.registerColor)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=(0,r.registerColor)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=(0,r.registerColor)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=(0,r.registerColor)("symbolIcon.fileForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=(0,r.registerColor)("symbolIcon.folderForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=(0,r.registerColor)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=(0,r.registerColor)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=(0,r.registerColor)("symbolIcon.keyForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=(0,r.registerColor)("symbolIcon.keywordForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=(0,r.registerColor)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=(0,r.registerColor)("symbolIcon.moduleForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=(0,r.registerColor)("symbolIcon.namespaceForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=(0,r.registerColor)("symbolIcon.nullForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=(0,r.registerColor)("symbolIcon.numberForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=(0,r.registerColor)("symbolIcon.objectForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=(0,r.registerColor)("symbolIcon.operatorForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=(0,r.registerColor)("symbolIcon.packageForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=(0,r.registerColor)("symbolIcon.propertyForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=(0,r.registerColor)("symbolIcon.referenceForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=(0,r.registerColor)("symbolIcon.snippetForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=(0,r.registerColor)("symbolIcon.stringForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=(0,r.registerColor)("symbolIcon.structForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=(0,r.registerColor)("symbolIcon.textForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=(0,r.registerColor)("symbolIcon.typeParameterForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),K=(0,r.registerColor)("symbolIcon.unitForeground",{dark:r.foreground,light:r.foreground,hcDark:r.foreground,hcLight:r.foreground},(0,n.localize)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=(0,r.registerColor)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));(0,s.registerThemingParticipant)((e,t)=>{let i=e.getColor(a);i&&t.addRule(`${o.Codicon.symbolArray.cssSelector} { color: ${i}; }`);let n=e.getColor(l);n&&t.addRule(`${o.Codicon.symbolBoolean.cssSelector} { color: ${n}; }`);let r=e.getColor(c);r&&t.addRule(`${o.Codicon.symbolClass.cssSelector} { color: ${r}; }`);let s=e.getColor(k);s&&t.addRule(`${o.Codicon.symbolMethod.cssSelector} { color: ${s}; }`);let V=e.getColor(d);V&&t.addRule(`${o.Codicon.symbolColor.cssSelector} { color: ${V}; }`);let W=e.getColor(u);W&&t.addRule(`${o.Codicon.symbolConstant.cssSelector} { color: ${W}; }`);let H=e.getColor(h);H&&t.addRule(`${o.Codicon.symbolConstructor.cssSelector} { color: ${H}; }`);let U=e.getColor(g);U&&t.addRule(`
|
|
27
|
-
${o.Codicon.symbolValue.cssSelector},${o.Codicon.symbolEnum.cssSelector} { color: ${U}; }`);let z=e.getColor(m);z&&t.addRule(`${o.Codicon.symbolEnumMember.cssSelector} { color: ${z}; }`);let $=e.getColor(p);$&&t.addRule(`${o.Codicon.symbolEvent.cssSelector} { color: ${$}; }`);let q=e.getColor(f);q&&t.addRule(`${o.Codicon.symbolField.cssSelector} { color: ${q}; }`);let j=e.getColor(b);j&&t.addRule(`${o.Codicon.symbolFile.cssSelector} { color: ${j}; }`);let G=e.getColor(_);G&&t.addRule(`${o.Codicon.symbolFolder.cssSelector} { color: ${G}; }`);let Z=e.getColor(y);Z&&t.addRule(`${o.Codicon.symbolFunction.cssSelector} { color: ${Z}; }`);let Q=e.getColor(C);Q&&t.addRule(`${o.Codicon.symbolInterface.cssSelector} { color: ${Q}; }`);let X=e.getColor(v);X&&t.addRule(`${o.Codicon.symbolKey.cssSelector} { color: ${X}; }`);let Y=e.getColor(S);Y&&t.addRule(`${o.Codicon.symbolKeyword.cssSelector} { color: ${Y}; }`);let J=e.getColor(w);J&&t.addRule(`${o.Codicon.symbolModule.cssSelector} { color: ${J}; }`);let ee=e.getColor(E);ee&&t.addRule(`${o.Codicon.symbolNamespace.cssSelector} { color: ${ee}; }`);let et=e.getColor(I);et&&t.addRule(`${o.Codicon.symbolNull.cssSelector} { color: ${et}; }`);let ei=e.getColor(L);ei&&t.addRule(`${o.Codicon.symbolNumber.cssSelector} { color: ${ei}; }`);let eo=e.getColor(x);eo&&t.addRule(`${o.Codicon.symbolObject.cssSelector} { color: ${eo}; }`);let en=e.getColor(T);en&&t.addRule(`${o.Codicon.symbolOperator.cssSelector} { color: ${en}; }`);let er=e.getColor(N);er&&t.addRule(`${o.Codicon.symbolPackage.cssSelector} { color: ${er}; }`);let es=e.getColor(D);es&&t.addRule(`${o.Codicon.symbolProperty.cssSelector} { color: ${es}; }`);let ea=e.getColor(A);ea&&t.addRule(`${o.Codicon.symbolReference.cssSelector} { color: ${ea}; }`);let el=e.getColor(M);el&&t.addRule(`${o.Codicon.symbolSnippet.cssSelector} { color: ${el}; }`);let ec=e.getColor(O);ec&&t.addRule(`${o.Codicon.symbolString.cssSelector} { color: ${ec}; }`);let ed=e.getColor(R);ed&&t.addRule(`${o.Codicon.symbolStruct.cssSelector} { color: ${ed}; }`);let eu=e.getColor(P);eu&&t.addRule(`${o.Codicon.symbolText.cssSelector} { color: ${eu}; }`);let eh=e.getColor(F);eh&&t.addRule(`${o.Codicon.symbolTypeParameter.cssSelector} { color: ${eh}; }`);let eg=e.getColor(K);eg&&t.addRule(`${o.Codicon.symbolUnit.cssSelector} { color: ${eg}; }`);let em=e.getColor(B);em&&t.addRule(`${o.Codicon.symbolVariable.cssSelector} { color: ${em}; }`)})},196444:function(e,t,i){"use strict";i.r(t);var o=i("919527"),n=i("437454"),r=i("159923"),s=i("583368"),a=i("708339"),l=i("664641"),c=function(e,t){return function(i,o){t(i,o,e)}};let d="ignoreUnusualLineTerminators",u=class extends o.Disposable{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._config=this._editor.getOption(116),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(116)&&(this._config=this._editor.getOption(116),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(e=>{!e.isUndoing&&this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){var e,t,i,o;return e=this,t=void 0,i=void 0,o=function*(){var e,t;if("off"===this._config||!this._editor.hasModel())return;let i=this._editor.getModel();if(!i.mightContainUnusualLineTerminators())return;if(!(!0===(e=this._codeEditorService,t=i,e.getModelProperty(t.uri,d))||this._editor.getOption(83))){if("auto"===this._config){i.removeUnusualLineTerminators(this._editor.getSelections());return}if(!(yield this._dialogService.confirm({title:a.localize("unusualLineTerminators.title","Unusual Line Terminators"),message:a.localize("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.localize("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,n.basename)(i.uri)),primaryButton:a.localize("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:a.localize("unusualLineTerminators.ignore","Ignore")})).confirmed){!function(e,t,i){e.setModelProperty(t.uri,d,i)}(this._codeEditorService,i,!0);return}i.removeUnusualLineTerminators(this._editor.getSelections())}},new(i||(i=Promise))(function(n,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())})}};u.ID="editor.contrib.unusualLineTerminatorsDetector",u=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([c(1,l.IDialogService),c(2,s.ICodeEditorService)],u),(0,r.registerEditorContribution)(u.ID,u)},321053:function(e,t,i){"use strict";i.r(t);var o=i("112721"),n=i("507194"),r=i("782272"),s=i("583368"),a=i("236684"),l=i("744138"),c=i("706301"),d=i("534752"),u=i("326896"),h=i("614800"),g=i("664641"),m=i("159923"),p=i("976617"),f=i("479895"),b=function(e,t){return function(i,o){t(i,o,e)}};let _=class extends a.AbstractEditorCommandsQuickAccessProvider{constructor(e,t,i,o,n,r){super({showAlias:!1},e,i,o,n,r),this.codeEditorService=t}get activeTextEditorControl(){return(0,l.withNullAsUndefined)(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){var e,t,i,o;return e=this,t=void 0,o=function*(){return this.getCodeEditorCommandPicks()},new(i=void 0,i=Promise)(function(n,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())})}};_=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([b(0,c.IInstantiationService),b(1,s.ICodeEditorService),b(2,d.IKeybindingService),b(3,u.ICommandService),b(4,h.ITelemetryService),b(5,g.IDialogService)],_);class y extends m.EditorAction{constructor(){super({id:y.ID,label:r.QuickCommandNLS.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:p.EditorContextKeys.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(f.IQuickInputService).quickAccess.show(_.PREFIX)}}y.ID="editor.action.quickCommand",(0,m.registerEditorAction)(y),o.Registry.as(n.Extensions.Quickaccess).registerQuickAccessProvider({ctor:_,prefix:_.PREFIX,helpEntries:[{description:r.QuickCommandNLS.quickCommandHelp,commandId:y.ID}]})},911465:function(e,t,i){"use strict";i.r(t);var o,n,r=i("432682"),s=i("112721"),a=i("507194"),l=i("583368"),c=i("744138"),d=i("782272"),u=i("916904"),h=i("159923"),g=i("976617"),m=i("479895");let p=class extends r.AbstractGotoLineQuickAccessProvider{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.Event.None}get activeTextEditorControl(){return(0,c.withNullAsUndefined)(this.editorService.getFocusedCodeEditor())}};p=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([(o=0,n=l.ICodeEditorService,function(e,t){n(e,t,0)})],p);class f extends h.EditorAction{constructor(){super({id:f.ID,label:d.GoToLineNLS.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:g.EditorContextKeys.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m.IQuickInputService).quickAccess.show(p.PREFIX)}}f.ID="editor.action.gotoLine",(0,h.registerEditorAction)(f),s.Registry.as(a.Extensions.Quickaccess).registerQuickAccessProvider({ctor:p,prefix:p.PREFIX,helpEntries:[{description:d.GoToLineNLS.gotoLineActionLabel,commandId:f.ID}]})},747562:function(e,t,i){"use strict";i.r(t),i.d(t,{EditorScopedLayoutService:function(){return u}});var o=i("409737"),n=i("916904"),r=i("280655"),s=i("583368"),a=i("772243"),l=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},c=function(e,t){return function(i,o){t(i,o,e)}};let d=class{constructor(e){this._codeEditorService=e,this.onDidLayout=n.Event.None,this.offset={top:0,quickPickTop:0}}get dimension(){return!this._dimension&&(this._dimension=o.getClientArea(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}};d=l([c(0,s.ICodeEditorService)],d);let u=class extends d{constructor(e,t){super(t),this._container=e}get hasContainer(){return!1}get container(){return this._container}};u=l([c(1,s.ICodeEditorService)],u),(0,a.registerSingleton)(r.ILayoutService,d)},175526:function(e,t,i){"use strict";i.r(t),i.d(t,{HC_BLACK_THEME_NAME:function(){return y},HC_LIGHT_THEME_NAME:function(){return C},StandaloneThemeService:function(){return L},VS_DARK_THEME_NAME:function(){return _},VS_LIGHT_THEME_NAME:function(){return b}});var o=i("409737"),n=i("259527"),r=i("835271"),s=i("916904"),a=i("274854"),l=i("755699"),c=i("464618"),d=i("168658"),u=i("112721"),h=i("897085"),g=i("439703"),m=i("919527"),p=i("774697"),f=i("791563");let b="vs",_="vs-dark",y="hc-black",C="hc-light",v=u.Registry.as(h.Extensions.ColorContribution),S=u.Registry.as(g.Extensions.ThemingContribution);class k{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;let i=t.base;e.length>0?(w(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){let e=new Map;for(let t in this.themeData.colors)e.set(t,r.Color.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){let t=E(this.themeData.base);for(let i in t.colors)!e.has(i)&&e.set(i,r.Color.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){let i=this.getColors().get(e);return i?i:!1!==t?this.getDefault(e):void 0}getDefault(e){let t=this.defaultColors[e];return t?t:(t=v.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case b:return p.ColorScheme.LIGHT;case y:return p.ColorScheme.HIGH_CONTRAST_DARK;case C:return p.ColorScheme.HIGH_CONTRAST_LIGHT;default:return p.ColorScheme.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){let i=E(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}let i=this.themeData.colors["editor.foreground"],o=this.themeData.colors["editor.background"];if(i||o){let t={token:""};i&&(t.foreground=i),o&&(t.background=o),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=c.TokenTheme.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){let o=this.tokenTheme._match([e].concat(t).join(".")).metadata,n=l.TokenMetadata.getForeground(o),r=l.TokenMetadata.getFontStyle(o);return{foreground:n,italic:!!(1&r),bold:!!(2&r),underline:!!(4&r),strikethrough:!!(8&r)}}}function w(e){return e===b||e===_||e===y||e===C}function E(e){switch(e){case b:return d.vs;case _:return d.vs_dark;case y:return d.hc_black;case C:return d.hc_light}}function I(e){let t=E(e);return new k(e,t)}class L extends m.Disposable{constructor(){super(),this._onColorThemeChange=this._register(new s.Emitter),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new s.Emitter),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new f.UnthemedProductIconTheme,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(b,I(b)),this._knownThemes.set(_,I(_)),this._knownThemes.set(y,I(y)),this._knownThemes.set(C,I(C));let e=(0,f.getIconsStyleSheet)(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}
|
|
28
|
-
${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(b),this._onOSSchemeChanged(),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),(0,n.addMatchMediaChangeListener)("(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(e){return o.isInShadowDOM(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return!this._globalStyleElement&&(this._globalStyleElement=o.createStyleSheet(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),m.Disposable.None}_registerShadowDomContainer(e){let t=o.createStyleSheet(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t){this._styleElements.splice(e,1);return}}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw Error("Illegal theme name!");if(!w(t.base)&&!w(e))throw Error("Illegal theme base!");this._knownThemes.set(e,new k(e,t)),w(e)&&this._knownThemes.forEach(t=>{t.base===e&&t.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(b),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){let e=window.matchMedia("(forced-colors: active)").matches;if(e!==(0,p.isHighContrast)(this._theme.type)){let t;t=(0,p.isDark)(this._theme.type)?e?y:_:e?C:b,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){let e=[],t={},i={addRule:i=>{!t[i]&&(e.push(i),t[i]=!0)}};S.getThemingParticipants().forEach(e=>e(this._theme,i,this._environment));let o=[];for(let e of v.getColors()){let t=this._theme.getColor(e.id,!0);t&&o.push(`${(0,h.asCssVariableName)(e.id)}: ${t.toString()};`)}i.addRule(`.monaco-editor { ${o.join("\n")} }`);let n=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule((0,c.generateTokensCSSForColorMap)(n)),this._themeCSS=e.join("\n"),this._updateCSS(),a.TokenizationRegistry.setColorMap(n),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}
|
|
29
|
-
${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},182498:function(e,t,i){"use strict";i.r(t),i.d(t,{MenuEntryActionViewItem:function(){return I},createActionViewItem:function(){return T},createAndFillInActionBarActions:function(){return E}});var o=i("409737"),n=i("85763"),r=i("268587"),s=i("998200"),a=i("431453"),l=i("102881"),c=i("919527"),d=i("207875");i("519625");var u=i("708339"),h=i("351553"),g=i("549436"),m=i("158935"),p=i("706301"),f=i("534752"),b=i("297669"),_=i("243692"),y=i("439703"),C=i("774697"),v=i("744138"),S=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},k=function(e,t){return function(i,o){t(i,o,e)}},w=function(e,t,i,o){return new(i||(i=Promise))(function(n,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())})};function E(e,t,i,o,n,r,s){let l=e.getActions(t);return function(e,t,i,o=e=>"navigation"===e,n=Number.MAX_SAFE_INTEGER,r=()=>!1,s=!1){let l,c;Array.isArray(t)?(l=t,c=t):(l=t.primary,c=t.secondary);let d=new Set;for(let[t,n]of e){let e;for(let r of(o(t)?(e=l).length>0&&s&&e.push(new a.Separator):(e=c).length>0&&e.push(new a.Separator),n)){i&&(r=r instanceof h.MenuItemAction&&r.alt?r.alt:r);let o=e.push(r);r instanceof a.SubmenuAction&&d.add({group:t,action:r,index:o-1})}}for(let{group:e,action:t,index:i}of d){let s=o(e)?l:c,a=t.actions;(a.length<=1||s.length+a.length-2<=n)&&r(t,e,s.length)&&s.splice(i,1,...a)}if(l!==c&&l.length>n){let e=l.splice(n,l.length-n);c.unshift(...e,new a.Separator)}}(l,i,!1,"string"==typeof o?e=>e===o:o,n,r,s),function(e){let t=new c.DisposableStore;for(let[,i]of e)for(let e of i)t.add(e);return t}(l)}let I=class extends r.ActionViewItem{constructor(e,t,i,n,r,s,a){super(void 0,e,{icon:!!(e.class||e.item.icon),label:!e.class&&!e.item.icon,draggable:null==t?void 0:t.draggable,keybinding:null==t?void 0:t.keybinding,hoverDelegate:null==t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=n,this._contextKeyService=r,this._themeService=s,this._contextMenuService=a,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new c.MutableDisposable),this._altKey=o.ModifierKeyEmitter.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return w(this,void 0,void 0,function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(e){this._notificationService.error(e)}})}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,i=this._altKey.keyStatus.altKey||(d.isWindows||d.isLinux)&&this._altKey.keyStatus.shiftKey,n=()=>{var e;let o=t&&i&&!!(null===(e=this._commandAction.alt)||void 0===e?void 0:e.enabled);o!==this._wantsAltCommand&&(this._wantsAltCommand=o,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(e=>{i=e.altKey||(d.isWindows||d.isLinux)&&e.shiftKey,n()})),this._register((0,o.addDisposableListener)(e,"mouseleave",e=>{t=!1,n()})),this._register((0,o.addDisposableListener)(e,"mouseenter",e=>{t=!0,n()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;let t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),o=this._commandAction.tooltip||this._commandAction.label,n=i?(0,u.localize)("titleAndKb","{0} ({1})",o,i):o;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){let e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),o=i?(0,u.localize)("titleAndKb","{0} ({1})",e,i):e;n=(0,u.localize)("titleAndKbAndAlt","{0}\n[{1}] {2}",n,l.UILabelProvider.modifierLabels[d.OS].altKey,o)}return n}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;let{element:i,label:n}=this;if(!i||!n)return;let r=this._commandAction.checked&&(null===(t=e.toggled)||void 0===t?void 0:t.icon)?e.toggled.icon:e.icon;if(r){if(y.ThemeIcon.isThemeIcon(r)){let e=y.ThemeIcon.asClassNameArray(r);n.classList.add(...e),this._itemClassDispose.value=(0,c.toDisposable)(()=>{n.classList.remove(...e)})}else n.style.backgroundImage=(0,C.isDark)(this._themeService.getColorTheme().type)?(0,o.asCSSUrl)(r.dark):(0,o.asCSSUrl)(r.light),n.classList.add("icon"),this._itemClassDispose.value=(0,c.combinedDisposable)((0,c.toDisposable)(()=>{n.style.backgroundImage="",n.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}}};I=S([k(2,f.IKeybindingService),k(3,b.INotificationService),k(4,g.IContextKeyService),k(5,y.IThemeService),k(6,m.IContextMenuService)],I);let L=class extends s.DropdownMenuActionViewItem{constructor(e,t,i,o){var n,r;super(e,{getActions:()=>e.actions},i,Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null!==(n=null==t?void 0:t.menuAsChild)&&void 0!==n&&n,classNames:null!==(r=null==t?void 0:t.classNames)&&void 0!==r?r:y.ThemeIcon.isThemeIcon(e.item.icon)?y.ThemeIcon.asClassName(e.item.icon):void 0})),this._contextMenuService=i,this._themeService=o}render(e){super.render(e),(0,v.assertType)(this.element),e.classList.add("menu-entry");let{icon:t}=this._action.item;if(t&&!y.ThemeIcon.isThemeIcon(t)){this.element.classList.add("icon");let e=()=>{this.element&&(this.element.style.backgroundImage=(0,C.isDark)(this._themeService.getColorTheme().type)?(0,o.asCSSUrl)(t.dark):(0,o.asCSSUrl)(t.light))};e(),this._register(this._themeService.onDidColorThemeChange(()=>{e()}))}}};L=S([k(2,m.IContextMenuService),k(3,y.IThemeService)],L);let x=class extends r.BaseActionViewItem{constructor(e,t,i,o,n,r,l,c){var d,u,g;let m;super(null,e),this._keybindingService=i,this._notificationService=o,this._contextMenuService=n,this._menuService=r,this._instaService=l,this._storageService=c,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;let p=c.get(this._storageKey,1);p&&(m=e.actions.find(e=>p===e.id)),!m&&(m=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,m,{keybinding:this._getDefaultActionKeybindingLabel(m)});let f=Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null===(d=null==t?void 0:t.menuAsChild)||void 0===d||d,classNames:null!==(u=null==t?void 0:t.classNames)&&void 0!==u?u:["codicon","codicon-chevron-down"],actionRunner:null!==(g=null==t?void 0:t.actionRunner)&&void 0!==g?g:new a.ActionRunner});this._dropdown=new s.DropdownMenuActionViewItem(e,e.actions,this._contextMenuService,f),this._dropdown.actionRunner.onDidRun(e=>{e.action instanceof h.MenuItemAction&&this.update(e.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.ActionRunner{runAction(e,t){return w(this,void 0,void 0,function*(){yield e.run(void 0)})}},this._container&&this._defaultAction.render((0,o.prepend)(this._container,(0,o.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){let t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");let t=(0,o.$)(".action-container");this._defaultAction.render((0,o.append)(this._container,t)),this._register((0,o.addDisposableListener)(t,o.EventType.KEY_DOWN,e=>{let t=new n.StandardKeyboardEvent(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())}));let i=(0,o.$)(".dropdown-action-container");this._dropdown.render((0,o.append)(this._container,i)),this._register((0,o.addDisposableListener)(i,o.EventType.KEY_DOWN,e=>{var t;let i=new n.StandardKeyboardEvent(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};function T(e,t,i){if(t instanceof h.MenuItemAction)return e.createInstance(I,t,i);if(t instanceof h.SubmenuItemAction)return t.item.rememberDefaultAction?e.createInstance(x,t,i):e.createInstance(L,t,i)}x=S([k(2,f.IKeybindingService),k(3,b.INotificationService),k(4,m.IContextMenuService),k(5,h.IMenuService),k(6,p.IInstantiationService),k(7,_.IStorageService)],x)},351553:function(e,t,i){"use strict";i.r(t),i.d(t,{IMenuService:function(){return f},MenuId:function(){return p},MenuItemAction:function(){return y},MenuRegistry:function(){return b},SubmenuItemAction:function(){return _},isIMenuItem:function(){return m}});var o=i("431453"),n=i("871628"),r=i("916904"),s=i("780189"),a=i("919527"),l=i("662300"),c=i("326896"),d=i("549436"),u=i("706301"),h=i("439703"),g=function(e,t){return function(i,o){t(i,o,e)}};function m(e){return void 0!==e.command}class p{constructor(e){if(p._instances.has(e))throw TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);p._instances.set(e,this),this.id=e}}p._instances=new Map,p.CommandPalette=new p("CommandPalette"),p.DebugBreakpointsContext=new p("DebugBreakpointsContext"),p.DebugCallStackContext=new p("DebugCallStackContext"),p.DebugConsoleContext=new p("DebugConsoleContext"),p.DebugVariablesContext=new p("DebugVariablesContext"),p.DebugWatchContext=new p("DebugWatchContext"),p.DebugToolBar=new p("DebugToolBar"),p.DebugToolBarStop=new p("DebugToolBarStop"),p.EditorContext=new p("EditorContext"),p.SimpleEditorContext=new p("SimpleEditorContext"),p.EditorContextCopy=new p("EditorContextCopy"),p.EditorContextPeek=new p("EditorContextPeek"),p.EditorContextShare=new p("EditorContextShare"),p.EditorTitle=new p("EditorTitle"),p.EditorTitleRun=new p("EditorTitleRun"),p.EditorTitleContext=new p("EditorTitleContext"),p.EmptyEditorGroup=new p("EmptyEditorGroup"),p.EmptyEditorGroupContext=new p("EmptyEditorGroupContext"),p.ExplorerContext=new p("ExplorerContext"),p.ExtensionContext=new p("ExtensionContext"),p.GlobalActivity=new p("GlobalActivity"),p.CommandCenter=new p("CommandCenter"),p.LayoutControlMenuSubmenu=new p("LayoutControlMenuSubmenu"),p.LayoutControlMenu=new p("LayoutControlMenu"),p.MenubarMainMenu=new p("MenubarMainMenu"),p.MenubarAppearanceMenu=new p("MenubarAppearanceMenu"),p.MenubarDebugMenu=new p("MenubarDebugMenu"),p.MenubarEditMenu=new p("MenubarEditMenu"),p.MenubarCopy=new p("MenubarCopy"),p.MenubarFileMenu=new p("MenubarFileMenu"),p.MenubarGoMenu=new p("MenubarGoMenu"),p.MenubarHelpMenu=new p("MenubarHelpMenu"),p.MenubarLayoutMenu=new p("MenubarLayoutMenu"),p.MenubarNewBreakpointMenu=new p("MenubarNewBreakpointMenu"),p.MenubarPanelAlignmentMenu=new p("MenubarPanelAlignmentMenu"),p.MenubarPanelPositionMenu=new p("MenubarPanelPositionMenu"),p.MenubarPreferencesMenu=new p("MenubarPreferencesMenu"),p.MenubarRecentMenu=new p("MenubarRecentMenu"),p.MenubarSelectionMenu=new p("MenubarSelectionMenu"),p.MenubarShare=new p("MenubarShare"),p.MenubarSwitchEditorMenu=new p("MenubarSwitchEditorMenu"),p.MenubarSwitchGroupMenu=new p("MenubarSwitchGroupMenu"),p.MenubarTerminalMenu=new p("MenubarTerminalMenu"),p.MenubarViewMenu=new p("MenubarViewMenu"),p.MenubarHomeMenu=new p("MenubarHomeMenu"),p.OpenEditorsContext=new p("OpenEditorsContext"),p.ProblemsPanelContext=new p("ProblemsPanelContext"),p.SCMChangeContext=new p("SCMChangeContext"),p.SCMResourceContext=new p("SCMResourceContext"),p.SCMResourceFolderContext=new p("SCMResourceFolderContext"),p.SCMResourceGroupContext=new p("SCMResourceGroupContext"),p.SCMSourceControl=new p("SCMSourceControl"),p.SCMTitle=new p("SCMTitle"),p.SearchContext=new p("SearchContext"),p.StatusBarWindowIndicatorMenu=new p("StatusBarWindowIndicatorMenu"),p.StatusBarRemoteIndicatorMenu=new p("StatusBarRemoteIndicatorMenu"),p.TestItem=new p("TestItem"),p.TestItemGutter=new p("TestItemGutter"),p.TestPeekElement=new p("TestPeekElement"),p.TestPeekTitle=new p("TestPeekTitle"),p.TouchBarContext=new p("TouchBarContext"),p.TitleBarContext=new p("TitleBarContext"),p.TitleBarTitleContext=new p("TitleBarTitleContext"),p.TunnelContext=new p("TunnelContext"),p.TunnelPrivacy=new p("TunnelPrivacy"),p.TunnelProtocol=new p("TunnelProtocol"),p.TunnelPortInline=new p("TunnelInline"),p.TunnelTitle=new p("TunnelTitle"),p.TunnelLocalAddressInline=new p("TunnelLocalAddressInline"),p.TunnelOriginInline=new p("TunnelOriginInline"),p.ViewItemContext=new p("ViewItemContext"),p.ViewContainerTitle=new p("ViewContainerTitle"),p.ViewContainerTitleContext=new p("ViewContainerTitleContext"),p.ViewTitle=new p("ViewTitle"),p.ViewTitleContext=new p("ViewTitleContext"),p.CommentThreadTitle=new p("CommentThreadTitle"),p.CommentThreadActions=new p("CommentThreadActions"),p.CommentTitle=new p("CommentTitle"),p.CommentActions=new p("CommentActions"),p.InteractiveToolbar=new p("InteractiveToolbar"),p.InteractiveCellTitle=new p("InteractiveCellTitle"),p.InteractiveCellDelete=new p("InteractiveCellDelete"),p.InteractiveCellExecute=new p("InteractiveCellExecute"),p.InteractiveInputExecute=new p("InteractiveInputExecute"),p.NotebookToolbar=new p("NotebookToolbar"),p.NotebookCellTitle=new p("NotebookCellTitle"),p.NotebookCellDelete=new p("NotebookCellDelete"),p.NotebookCellInsert=new p("NotebookCellInsert"),p.NotebookCellBetween=new p("NotebookCellBetween"),p.NotebookCellListTop=new p("NotebookCellTop"),p.NotebookCellExecute=new p("NotebookCellExecute"),p.NotebookCellExecutePrimary=new p("NotebookCellExecutePrimary"),p.NotebookDiffCellInputTitle=new p("NotebookDiffCellInputTitle"),p.NotebookDiffCellMetadataTitle=new p("NotebookDiffCellMetadataTitle"),p.NotebookDiffCellOutputsTitle=new p("NotebookDiffCellOutputsTitle"),p.NotebookOutputToolbar=new p("NotebookOutputToolbar"),p.NotebookEditorLayoutConfigure=new p("NotebookEditorLayoutConfigure"),p.NotebookKernelSource=new p("NotebookKernelSource"),p.BulkEditTitle=new p("BulkEditTitle"),p.BulkEditContext=new p("BulkEditContext"),p.TimelineItemContext=new p("TimelineItemContext"),p.TimelineTitle=new p("TimelineTitle"),p.TimelineTitleContext=new p("TimelineTitleContext"),p.TimelineFilterSubMenu=new p("TimelineFilterSubMenu"),p.AccountsContext=new p("AccountsContext"),p.PanelTitle=new p("PanelTitle"),p.AuxiliaryBarTitle=new p("AuxiliaryBarTitle"),p.TerminalInstanceContext=new p("TerminalInstanceContext"),p.TerminalEditorInstanceContext=new p("TerminalEditorInstanceContext"),p.TerminalNewDropdownContext=new p("TerminalNewDropdownContext"),p.TerminalTabContext=new p("TerminalTabContext"),p.TerminalTabEmptyAreaContext=new p("TerminalTabEmptyAreaContext"),p.TerminalInlineTabContext=new p("TerminalInlineTabContext"),p.WebviewContext=new p("WebviewContext"),p.InlineCompletionsActions=new p("InlineCompletionsActions"),p.NewFile=new p("NewFile"),p.MergeToolbar=new p("MergeToolbar"),p.MergeInput1Toolbar=new p("MergeToolbar1Toolbar"),p.MergeInput2Toolbar=new p("MergeToolbar2Toolbar");let f=(0,u.createDecorator)("menuService"),b=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new r.Emitter,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===p.CommandPalette}}addCommand(e){return this.addCommands(s.Iterable.single(e))}addCommands(e){for(let t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,a.toDisposable)(()=>{let t=!1;for(let i of e)t=this._commands.delete(i.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;return this._commands.forEach((t,i)=>e.set(i,t)),e}appendMenuItem(e,t){return this.appendMenuItems(s.Iterable.single({id:e,item:t}))}appendMenuItems(e){let t=new Set,i=new l.LinkedList;for(let{id:o,item:n}of e){let e=this._menuItems.get(o);!e&&(e=new l.LinkedList,this._menuItems.set(o,e)),i.push(e.push(n)),t.add(o)}return this._onDidChangeMenu.fire(t),(0,a.toDisposable)(()=>{if(i.size>0){for(let e of i)e();this._onDidChangeMenu.fire(t),i.clear()}})}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===p.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){let t=new Set;for(let i of e)m(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach((i,o)=>{!t.has(o)&&e.push({command:i})})}};class _ extends o.SubmenuAction{constructor(e,t,i,o){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=i,this._options=o}get actions(){let e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),i=t.getActions(this._options);for(let[,n]of(t.dispose(),i))n.length>0&&(e.push(...n),e.push(new o.Separator));return e.length&&e.pop(),e}}let y=class e{constructor(t,i,o,r,s,a){var l,c;if(this.hideActions=r,this._commandService=a,this.id=t.id,this.label=(null==o?void 0:o.renderShortTitle)&&t.shortTitle?"string"==typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"==typeof t.title?t.title:t.title.value,this.tooltip=null!==(c="string"==typeof t.tooltip?t.tooltip:null===(l=t.tooltip)||void 0===l?void 0:l.value)&&void 0!==c?c:"",this.enabled=!t.precondition||s.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){let e=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=s.contextMatchesRules(e.condition),this.checked&&e.tooltip&&(this.tooltip="string"==typeof e.tooltip?e.tooltip:e.tooltip.value),e.title&&(this.label="string"==typeof e.title?e.title:e.title.value)}this.item=t,this.alt=i?new e(i,void 0,o,r,s,a):void 0,this._options=o,h.ThemeIcon.isThemeIcon(t.icon)&&(this.class=n.CSSIcon.asClassName(t.icon))}dispose(){}run(...e){var t,i;let o=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(o=[...o,this._options.arg]),(null===(i=this._options)||void 0===i?void 0:i.shouldForwardArgs)&&(o=[...o,...e]),this._commandService.executeCommand(this.id,...o)}};y=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([g(4,d.IContextKeyService),g(5,c.ICommandService)],y)},691125:function(e,t,i){"use strict";i.r(t),i.d(t,{Extensions:function(){return d},OVERRIDE_PROPERTY_REGEX:function(){return S},overrideIdentifiersFromKey:function(){return k}});var o=i("603868"),n=i("916904"),r=i("744138"),s=i("708339"),a=i("753861"),l=i("629711"),c=i("112721");let d={Configuration:"base.contributions.configuration"},u={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},b="vscode://schemas/settings/resourceLanguage",_=c.Registry.as(l.Extensions.JSONContribution),y="\\[([^\\]]+)\\]",C=RegExp(y,"g"),v=`^(${y})+$`,S=new RegExp(v);function k(e){let t=[];if(S.test(e)){let i=C.exec(e);for(;null==i?void 0:i.length;){let o=i[1].trim();o&&t.push(o),i=C.exec(e)}}return(0,o.distinct)(t)}let w=new class e{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.Emitter,this._onDidUpdateConfiguration=new n.Emitter,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:s.localize("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},_.registerSchema(b,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){let i=this.doRegisterConfigurations(e,t);_.registerSchema(b,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){var t;let i=[],o=[];for(let{overrides:n,source:l}of e)for(let e in n)if(i.push(e),S.test(e)){let i=this.configurationDefaultsOverrides.get(e),c=null!==(t=null==i?void 0:i.valuesSources)&&void 0!==t?t:new Map;if(l)for(let t of Object.keys(n[e]))c.set(t,l);let d=Object.assign(Object.assign({},(null==i?void 0:i.value)||{}),n[e]);this.configurationDefaultsOverrides.set(e,{source:l,value:d,valuesSources:c});let u=(0,a.getLanguageTagSettingPlainKey)(e),h={type:"object",default:d,description:s.localize("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",u),$ref:b,defaultDefaultValue:d,source:r.isString(l)?void 0:l,defaultValueSource:l};o.push(...k(e)),this.configurationProperties[e]=h,this.defaultLanguageConfigurationOverridesNode.properties[e]=h}else{this.configurationDefaultsOverrides.set(e,{value:n[e],source:l});let t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.registerOverrideIdentifiers(o),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:!0})}registerOverrideIdentifiers(e){for(let t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t){let i=[];return e.forEach(e=>{i.push(...this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties)),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}),i}validateAndRegisterProperties(e,t=!0,i,o,n=3){var a;n=r.isUndefinedOrNull(e.scope)?n:e.scope;let l=[],c=e.properties;if(c)for(let e in c){let d=c[e];if(t&&function(e,t){var i,o,n,r;return e.trim()?S.test(e)?s.localize("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?s.localize("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==w.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)?s.localize("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(n=t.policy)||void 0===n?void 0:n.name,w.getPolicyConfigurations().get(null===(r=t.policy)||void 0===r?void 0:r.name)):null:s.localize("config.property.empty","Cannot register an empty property")}(e,d)){delete c[e];continue}if(d.source=i,d.defaultDefaultValue=c[e].default,this.updatePropertyDefaultValue(e,d),S.test(e)?d.scope=void 0:(d.scope=r.isUndefinedOrNull(d.scope)?n:d.scope,d.restricted=r.isUndefinedOrNull(d.restricted)?!!(null==o?void 0:o.includes(e)):d.restricted),c[e].hasOwnProperty("included")&&!c[e].included){this.excludedConfigurationProperties[e]=c[e],delete c[e];continue}this.configurationProperties[e]=c[e],(null===(a=c[e].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(c[e].policy.name,e);!c[e].deprecationMessage&&c[e].markdownDeprecationMessage&&(c[e].deprecationMessage=c[e].markdownDeprecationMessage),l.push(e)}let d=e.allOf;if(d)for(let e of d)l.push(...this.validateAndRegisterProperties(e,t,i,o,n));return l}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){let t=e=>{let i=e.properties;if(i)for(let e in i)this.updateSchema(e,i[e]);let o=e.allOf;null==o||o.forEach(t)};t(e)}updateSchema(e,t){switch(u.properties[e]=t,t.scope){case 1:h.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:m.properties[e]=t;break;case 3:p.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(let e of this.overrideIdentifiers.values()){let t=`[${e}]`,i={type:"object",description:s.localize("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:s.localize("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};this.updatePropertyDefaultValue(t,i),u.properties[t]=i,h.properties[t]=i,g.properties[t]=i,m.properties[t]=i,p.properties[t]=i,f.properties[t]=i}this._onDidSchemaChange.fire()}registerOverridePropertyPatternKey(){let e={type:"object",description:s.localize("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:s.localize("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};u.patternProperties[v]=e,h.patternProperties[v]=e,g.patternProperties[v]=e,m.patternProperties[v]=e,p.patternProperties[v]=e,f.patternProperties[v]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let i=this.configurationDefaultsOverrides.get(e),o=null==i?void 0:i.value,n=null==i?void 0:i.source;r.isUndefined(o)&&(o=t.defaultDefaultValue,n=void 0),r.isUndefined(o)&&(o=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=o,t.defaultValueSource=n}};c.Registry.add(d.Configuration,w)},629711:function(e,t,i){"use strict";i.r(t),i.d(t,{Extensions:function(){return r}});var o=i("916904"),n=i("112721");let r={JSONContribution:"base.contributions.json"},s=new class e{constructor(){this._onDidChangeSchema=new o.Emitter,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e).length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};n.Registry.add(r.JSONContribution,s)},568031:function(e,t,i){"use strict";i.r(t),i.d(t,{ILabelService:function(){return o}});let o=(0,i("706301").createDecorator)("labelService")},180204:function(e,t,i){"use strict";i.r(t),i.d(t,{IOpenerService:function(){return l},NullOpenerService:function(){return c},extractSelection:function(){return h},matchesScheme:function(){return d},matchesSomeScheme:function(){return u}});var o=i("919527"),n=i("266763"),r=i("938505"),s=i("706301"),a=function(e,t,i,o){return new(i||(i=Promise))(function(n,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())})};let l=(0,s.createDecorator)("openerService"),c=Object.freeze({_serviceBrand:void 0,registerOpener:()=>o.Disposable.None,registerValidator:()=>o.Disposable.None,registerExternalUriResolver:()=>o.Disposable.None,setDefaultExternalOpener(){},registerExternalOpener:()=>o.Disposable.None,open(){return a(this,void 0,void 0,function*(){return!1})},resolveExternalUri(e){return a(this,void 0,void 0,function*(){return{resolved:e,dispose(){}}})}});function d(e,t){return r.URI.isUri(e)?(0,n.equalsIgnoreCase)(e.scheme,t):(0,n.startsWithIgnoreCase)(e,t+":")}function u(e,...t){return t.some(t=>d(e,t))}function h(e){let t;let i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},795827:function(e,t,i){"use strict";i.r(t);var o=i("161111"),n=i("919527"),r=i("24342"),s=i("596608"),a=i("708339"),l=i("664641"),c=i("772243"),d=i("297669"),u=i("852365"),h=function(e,t){return function(i,o){t(i,o,e)}},g=function(e,t,i,o){return new(i||(i=Promise))(function(n,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function a(e){try{l(o.throw(e))}catch(e){r(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((o=o.apply(e,t||[])).next())})};function m(e){return e.scheme===r.Schemas.file?e.fsPath:e.path}let p=0;class f{constructor(e,t,i,o,n,r,s){this.id=++p,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=o,this.groupOrder=n,this.sourceId=r,this.sourceOrder=s,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class b{constructor(e,t){this.resourceLabel=e,this.reason=t}}class _{constructor(){this.elements=new Map}createMessage(){let e=[],t=[];for(let[,i]of this.elements)(0===i.reason?e:t).push(i.resourceLabel);let i=[];return e.length>0&&i.push(a.localize({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(a.localize({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class y{constructor(e,t,i,o,n,r,s){this.id=++p,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=o,this.groupOrder=n,this.sourceId=r,this.sourceOrder=s,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,i){!this.removedResources&&(this.removedResources=new _),!this.removedResources.has(t)&&this.removedResources.set(t,new b(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(!this.invalidatedResources&&(this.invalidatedResources=new _),!this.invalidatedResources.has(t)&&this.invalidatedResources.set(t,new b(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class C{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(let i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(let i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){let t=[];for(let e=0,i=this._past.length;e<i;e++)t.push(this._past[e].id);for(let e=this._future.length-1;e>=0;e--)t.push(this._future[e].id);return new u.ResourceEditStackSnapshot(e,t)}restoreSnapshot(e){let t=e.elements.length,i=!0,o=0,n=-1;for(let r=0,s=this._past.length;r<s;r++,o++){let s=this._past[r];i&&(o>=t||s.id!==e.elements[o])&&(i=!1,n=0),!i&&1===s.type&&s.removeResource(this.resourceLabel,this.strResource,0)}let r=-1;for(let n=this._future.length-1;n>=0;n--,o++){let s=this._future[n];i&&(o>=t||s.id!==e.elements[o])&&(i=!1,r=n),!i&&1===s.type&&s.removeResource(this.resourceLabel,this.strResource,0)}-1!==n&&(this._past=this._past.slice(0,n)),-1!==r&&(this._future=this._future.slice(r+1)),this.versionId++}getElements(){let e=[],t=[];for(let t of this._past)e.push(t.actual);for(let e of this._future)t.push(e.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class v{constructor(e){this.editStacks=e,this._versionIds=[];for(let e=0,t=this.editStacks.length;e<t;e++)this._versionIds[e]=this.editStacks[e].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}let S=new C("","");S.locked=!0;let k=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(let t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);let t=[];for(let e of this._editStacks)t.push(e[1].toString());console.log(t.join("\n"))}pushElement(e,t=u.UndoRedoGroup.None,i=u.UndoRedoSource.None){if(0===e.type){let o=m(e.resource),n=this.getUriComparisonKey(e.resource);this._pushElement(new f(e,o,n,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{let o=new Set,n=[],r=[];for(let t of e.resources){let e=m(t),i=this.getUriComparisonKey(t);!o.has(i)&&(o.add(i),n.push(e),r.push(i))}1===n.length?this._pushElement(new f(e,n[0],r[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new y(e,n,r,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){let i;let o=e.resourceLabels[t],n=e.strResources[t];this._editStacks.has(n)?i=this._editStacks.get(n):(i=new C(o,n),this._editStacks.set(n,i)),i.pushElement(e)}}getLastElement(e){let t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){let e=this._editStacks.get(t);if(e.hasFutureElements())return null;let i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){let i=e.actual.split(),o=new Map;for(let e of i){let t=m(e.resource),i=this.getUriComparisonKey(e.resource),n=new f(e,t,i,0,0,0,0);o.set(n.strResource,n)}for(let i of e.strResources){if(!(t&&t.has(i)))this._editStacks.get(i).splitPastWorkspaceElement(e,o)}}_splitFutureWorkspaceElement(e,t){let i=e.actual.split(),o=new Map;for(let e of i){let t=m(e.resource),i=this.getUriComparisonKey(e.resource),n=new f(e,t,i,0,0,0,0);o.set(n.strResource,n)}for(let i of e.strResources){if(!(t&&t.has(i)))this._editStacks.get(i).splitFutureWorkspaceElement(e,o)}}removeElements(e){let t="string"==typeof e?e:this.getUriComparisonKey(e);this._editStacks.has(t)&&(this._editStacks.get(t).dispose(),this._editStacks.delete(t))}setElementsValidFlag(e,t,i){let o=this.getUriComparisonKey(e);this._editStacks.has(o)&&this._editStacks.get(o).setElementsValidFlag(t,i)}createSnapshot(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).createSnapshot(e):new u.ResourceEditStackSnapshot(e,[])}restoreSnapshot(e){let t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){let i=this._editStacks.get(t);i.restoreSnapshot(e),!i.hasPastElements()&&!i.hasFutureElements()&&(i.dispose(),this._editStacks.delete(t))}}getElements(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let r=n.getClosestPastElement();r&&r.sourceId===e&&(!t||r.sourceOrder>t.sourceOrder)&&(t=r,i=o)}return[t,i]}canUndo(e){if(e instanceof u.UndoRedoSource){let[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasPastElements()}_onError(e,t){for(let i of((0,o.onUnexpectedError)(e),t.strResources))this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(let t of e.editStacks)if(t.locked)throw Error("Cannot acquire edit stack lock");for(let t of e.editStacks)t.locked=!0;return()=>{for(let t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,o,n){let r;let s=this._acquireLocks(i);try{r=t()}catch(t){return s(),o.dispose(),this._onError(t,e)}return r?r.then(()=>(s(),o.dispose(),n()),t=>(s(),o.dispose(),this._onError(t,e))):(s(),o.dispose(),n())}_invokeWorkspacePrepare(e){return g(this,void 0,void 0,function*(){if(void 0===e.actual.prepareUndoRedo)return n.Disposable.None;let t=e.actual.prepareUndoRedo();return void 0===t?n.Disposable.None:t})}_invokeResourcePrepare(e,t){if(1!==e.actual.type||void 0===e.actual.prepareUndoRedo)return t(n.Disposable.None);let i=e.actual.prepareUndoRedo();return i?(0,n.isDisposable)(i)?t(i):i.then(e=>t(e)):t(n.Disposable.None)}_getAffectedEditStacks(e){let t=[];for(let i of e.strResources)t.push(this._editStacks.get(i)||S);return new v(t)}_tryToSplitAndUndo(e,t,i,o){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(o),new w(this._undo(e,0,!0));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(o),new w}_checkWorkspaceUndo(e,t,i,o){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,a.localize({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(o&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,a.localize({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let n=[];for(let e of i.editStacks)e.getClosestPastElement()!==t&&n.push(e.resourceLabel);if(n.length>0)return this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));let r=[];for(let e of i.editStacks)e.locked&&r.push(e.resourceLabel);return r.length>0?this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){let o=this._getAffectedEditStacks(t),n=this._checkWorkspaceUndo(e,t,o,!1);return n?n.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,o,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(let[,t]of this._editStacks){let i=t.getClosestPastElement();if(i){if(i===e){let i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,o){return g(this,void 0,void 0,function*(){let n;if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let n=yield this._dialogService.show(s.default.Info,a.localize("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[a.localize({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),a.localize("nok","Undo this File"),a.localize("cancel","Cancel")],{cancelId:2});if(2===n.choice)return;if(1===n.choice)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);let r=this._checkWorkspaceUndo(e,t,i,!1);if(r)return r.returnValue;o=!0}try{n=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let r=this._checkWorkspaceUndo(e,t,i,!0);if(r)return n.dispose(),r.returnValue;for(let e of i.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,n,()=>this._continueUndoInGroup(t.groupId,o))})}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){let e=a.localize({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,o=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new v([e]),o,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let r=n.getClosestPastElement();r&&r.groupId===e&&(!t||r.groupOrder>t.groupOrder)&&(t=r,i=o)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;let[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof u.UndoRedoSource){let[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"==typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;let o=this._editStacks.get(e),n=o.getClosestPastElement();if(!!n){if(n.groupId){let[e,o]=this._findClosestUndoElementInGroup(n.groupId);if(n!==e&&o)return this._undo(o,t,i)}if((n.sourceId!==t||n.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,n);if(1===n.type)return this._workspaceUndo(e,n,i);return this._resourceUndo(o,n,i)}}_confirmAndContinueUndo(e,t,i){return g(this,void 0,void 0,function*(){if(1!==(yield this._dialogService.show(s.default.Info,a.localize("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[a.localize("confirmDifferentSource.yes","Yes"),a.localize("confirmDifferentSource.no","No")],{cancelId:1})).choice)return this._undo(e,t,!0)})}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let r=n.getClosestFutureElement();r&&r.sourceId===e&&(!t||r.sourceOrder<t.sourceOrder)&&(t=r,i=o)}return[t,i]}canRedo(e){if(e instanceof u.UndoRedoSource){let[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasFutureElements()}_tryToSplitAndRedo(e,t,i,o){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(o),new w(this._redo(e));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(o),new w}_checkWorkspaceRedo(e,t,i,o){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,a.localize({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(o&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,a.localize({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let n=[];for(let e of i.editStacks)e.getClosestFutureElement()!==t&&n.push(e.resourceLabel);if(n.length>0)return this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));let r=[];for(let e of i.editStacks)e.locked&&r.push(e.resourceLabel);return r.length>0?this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,r.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){let i=this._getAffectedEditStacks(t),o=this._checkWorkspaceRedo(e,t,i,!1);return o?o.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return g(this,void 0,void 0,function*(){let o;try{o=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let n=this._checkWorkspaceRedo(e,t,i,!0);if(n)return o.dispose(),n.returnValue;for(let e of i.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,o,()=>this._continueRedoInGroup(t.groupId))})}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){let e=a.localize({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new v([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let r=n.getClosestFutureElement();r&&r.groupId===e&&(!t||r.groupOrder<t.groupOrder)&&(t=r,i=o)}return[t,i]}_continueRedoInGroup(e){if(!e)return;let[,t]=this._findClosestRedoElementInGroup(e);if(t)return this._redo(t)}redo(e){if(e instanceof u.UndoRedoSource){let[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"==typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;let t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){let[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}if(1===i.type)return this._workspaceRedo(e,i);return this._resourceRedo(t,i)}}};k=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([h(0,l.IDialogService),h(1,d.INotificationService)],k);class w{constructor(e){this.returnValue=e}}(0,c.registerSingleton)(u.IUndoRedoService,k)},507307:function(e,t,i){"use strict";i.r(t),i.d(t,{IWorkspaceContextService:function(){return r},WORKSPACE_EXTENSION:function(){return c},WorkspaceFolder:function(){return l},isSingleFolderWorkspaceIdentifier:function(){return s},toWorkspaceIdentifier:function(){return a}});var o=i("708339");i("834289");var n=i("938505");let r=(0,i("706301").createDecorator)("contextService");function s(e){return"string"==typeof(null==e?void 0:e.id)&&n.URI.isUri(e.uri)}function a(e){return e.configuration?{id:e.id,configPath:e.configuration}:1===e.folders.length?{id:e.id,uri:e.folders[0].uri}:void 0}class l{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}let c="code-workspace";(0,o.localize)("codeWorkspace","Code Workspace")},631412:function(e){},403905:function(e){},817846:function(e){},466599:function(e){},671651:function(e){},240091:function(e){},392444:function(e){},105088:function(e){},610049:function(e){}}]);
|