185 lines
2.0 MiB
185 lines
2.0 MiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{"+N8g":function(wt,P,r){},"+aX+":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return r.e(238).then(r.bind(null,"pHlb"))}})},"+qpR":function(wt,P,r){"use strict";r.d(P,"b",function(){return A}),r.d(P,"a",function(){return z});var I=r("mTMv"),oe=r("YK2C"),ne=r("bN5T"),N=r("S7i+"),F=function(){function _(f,p){this.chr=f,this.type=p,this.width=0}return _.prototype.fulfill=function(f){this.width=f},_}(),U=function(){function _(f,p){this._bareFontInfo=f,this._requests=p,this._container=null,this._testElements=null}return _.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},_.prototype._createDomElements=function(){var f=document.createElement("div");f.style.position="absolute",f.style.top="-50000px",f.style.width="50000px";var p=document.createElement("div");p.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),p.style.fontWeight=this._bareFontInfo.fontWeight,p.style.fontSize=this._bareFontInfo.fontSize+"px",p.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,p.style.lineHeight=this._bareFontInfo.lineHeight+"px",p.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",f.appendChild(p);var g=document.createElement("div");g.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),g.style.fontWeight="bold",g.style.fontSize=this._bareFontInfo.fontSize+"px",g.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,g.style.lineHeight=this._bareFontInfo.lineHeight+"px",g.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",f.appendChild(g);var m=document.createElement("div");m.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),m.style.fontWeight=this._bareFontInfo.fontWeight,m.style.fontSize=this._bareFontInfo.fontSize+"px",m.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,m.style.lineHeight=this._bareFontInfo.lineHeight+"px",m.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",m.style.fontStyle="italic",f.appendChild(m);for(var w=[],B=0,H=this._requests;B<H.length;B++){var re=H[B],he=void 0;re.type===0&&(he=p),re.type===2&&(he=g),re.type===1&&(he=m),he.appendChild(document.createElement("br"));var Ee=document.createElement("span");_._render(Ee,re),he.appendChild(Ee),w.push(Ee)}this._container=f,this._testElements=w},_._render=function(f,p){if(p.chr===" "){for(var g=" ",m=0;m<8;m++)g+=g;f.innerHTML=g}else{for(var w=p.chr,m=0;m<8;m++)w+=w;f.textContent=w}},_.prototype._readFromDomElements=function(){for(var f=0,p=this._requests.length;f<p;f++){var g=this._requests[f],m=this._testElements[f];g.fulfill(m.offsetWidth/256)}},_}();function j(_,f){var p=new U(_,f);p.read()}var G=r("ukhG"),R=r("/oyY"),E=r("juCB"),x=r("ssBC"),K=function(){var _=function(p,g){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var B in w)w.hasOwnProperty(B)&&(m[B]=w[B])},_(p,g)};return function(f,p){_(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),D=function(){function _(){this._keys=Object.create(null),this._values=Object.create(null)}return _.prototype.has=function(f){var p=f.getId();return!!this._values[p]},_.prototype.get=function(f){var p=f.getId();return this._values[p]},_.prototype.put=function(f,p){var g=f.getId();this._keys[g]=f,this._values[g]=p},_.prototype.remove=function(f){var p=f.getId();delete this._keys[p],delete this._values[p]},_.prototype.getValues=function(){var f=this;return Object.keys(this._keys).map(function(p){return f._values[p]})},_}();function A(){te.INSTANCE.clearCache()}var te=function(_){K(f,_);function f(){var p=_.call(this)||this;return p._onDidChange=p._register(new oe.a),p.onDidChange=p._onDidChange.event,p._cache=new D,p._evictUntrustedReadingsTimeout=-1,p}return f.prototype.dispose=function(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),_.prototype.dispose.call(this)},f.prototype.clearCache=function(){this._cache=new D,this._onDidChange.fire()},f.prototype._writeToCache=function(p,g){var m=this;this._cache.put(p,g),!g.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=setTimeout(function(){m._evictUntrustedReadingsTimeout=-1,m._evictUntrustedReadings()},5e3))},f.prototype._evictUntrustedReadings=function(){for(var p=this._cache.getValues(),g=!1,m=0,w=p.length;m<w;m++){var B=p[m];B.isTrusted||(g=!0,this._cache.remove(B))}g&&this._onDidChange.fire()},f.prototype.readConfiguration=function(p){if(!this._cache.has(p)){var g=f._actualReadConfiguration(p);(g.typicalHalfwidthCharacterWidth<=2||g.typicalFullwidthCharacterWidth<=2||g.spaceWidth<=2||g.maxDigitWidth<=2)&&(g=new x.b({zoomLevel:I.c(),fontFamily:g.fontFamily,fontWeight:g.fontWeight,fontSize:g.fontSize,fontFeatureSettings:g.fontFeatureSettings,lineHeight:g.lineHeight,letterSpacing:g.letterSpacing,isMonospace:g.isMonospace,typicalHalfwidthCharacterWidth:Math.max(g.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(g.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:g.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(g.spaceWidth,5),middotWidth:Math.max(g.middotWidth,5),maxDigitWidth:Math.max(g.maxDigitWidth,5)},!1)),this._writeToCache(p,g)}return this._cache.get(p)},f.createRequest=function(p,g,m,w){var B=new F(p,g);return m.push(B),w&&w.push(B),B},f._actualReadConfiguration=function(p){var g=[],m=[],w=this.createRequest("n",0,g,m),B=this.createRequest("\uFF4D",0,g,null),H=this.createRequest(" ",0,g,m),re=this.createRequest("0",0,g,m),he=this.createRequest("1",0,g,m),Ee=this.createRequest("2",0,g,m),Se=this.createRequest("3",0,g,m),q=this.createRequest("4",0,g,m),Z=this.createRequest("5",0,g,m),ce=this.createRequest("6",0,g,m),Me=this.createRequest("7",0,g,m),Ve=this.createRequest("8",0,g,m),_e=this.createRequest("9",0,g,m),ue=this.createRequest("\u2192",0,g,m),se=this.createRequest("\uFFEB",0,g,null),fe=this.createRequest("\xB7",0,g,m);this.createRequest("|",0,g,m),this.createRequest("/",0,g,m),this.createRequest("-",0,g,m),this.createRequest("_",0,g,m),this.createRequest("i",0,g,m),this.createRequest("l",0,g,m),this.createRequest("m",0,g,m),this.createRequest("|",1,g,m),this.createRequest("_",1,g,m),this.createRequest("i",1,g,m),this.createRequest("l",1,g,m),this.createRequest("m",1,g,m),this.createRequest("n",1,g,m),this.createRequest("|",2,g,m),this.createRequest("_",2,g,m),this.createRequest("i",2,g,m),this.createRequest("l",2,g,m),this.createRequest("m",2,g,m),this.createRequest("n",2,g,m),j(p,g);for(var ie=Math.max(re.width,he.width,Ee.width,Se.width,q.width,Z.width,ce.width,Me.width,Ve.width,_e.width),J=p.fontFeatureSettings===E.d.OFF,me=m[0].width,ye=1,ze=m.length;J&&ye<ze;ye++){var tt=me-m[ye].width;if(tt<-.001||tt>.001){J=!1;break}}var _t=!0;J&&se.width!==me&&(_t=!1),se.width>ue.width&&(_t=!1);var Pt=I.b()>2e3;return new x.b({zoomLevel:I.c(),fontFamily:p.fontFamily,fontWeight:p.fontWeight,fontSize:p.fontSize,fontFeatureSettings:p.fontFeatureSettings,lineHeight:p.lineHeight,letterSpacing:p.letterSpacing,isMonospace:J,typicalHalfwidthCharacterWidth:w.width,typicalFullwidthCharacterWidth:B.width,canUseHalfwidthRightwardsArrow:_t,spaceWidth:H.width,middotWidth:fe.width,maxDigitWidth:ie},Pt)},f.INSTANCE=new f,f}(ne.a),z=function(_){K(f,_);function f(p,g,m,w){m===void 0&&(m=null);var B=_.call(this,p,g)||this;return B.accessibilityService=w,B._elementSizeObserver=B._register(new G.a(m,g.dimension,function(){return B._onReferenceDomElementSizeChanged()})),B._register(te.INSTANCE.onDidChange(function(){return B._onCSSBasedConfigurationChanged()})),B._validatedOptions.get(9)&&B._elementSizeObserver.startObserving(),B._register(I.o(function(H){return B._recomputeOptions()})),B._register(B.accessibilityService.onDidChangeScreenReaderOptimized(function(){return B._recomputeOptions()})),B._recomputeOptions(),B}return f.applyFontInfoSlow=function(p,g){p.style.fontFamily=g.getMassagedFontFamily(),p.style.fontWeight=g.fontWeight,p.style.fontSize=g.fontSize+"px",p.style.fontFeatureSettings=g.fontFeatureSettings,p.style.lineHeight=g.lineHeight+"px",p.style.letterSpacing=g.letterSpacing+"px"},f.applyFontInfo=function(p,g){p.setFontFamily(g.getMassagedFontFamily()),p.setFontWeight(g.fontWeight),p.setFontSize(g.fontSize),p.setFontFeatureSettings(g.fontFeatureSettings),p.setLineHeight(g.lineHeight),p.setLetterSpacing(g.letterSpacing)},f.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},f.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},f.prototype.observeReferenceElement=function(p){this._elementSizeObserver.observe(p)},f.prototype.dispose=function(){_.prototype.dispose.call(this)},f.prototype._getExtraEditorClassName=function(){var p="";return!I.k&&!I.n&&(p+="no-user-select "),N.e&&(p+="mac "),p},f.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:I.m||I.h,pixelRatio:I.a(),zoomLevel:I.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},f.prototype.readConfiguration=function(p){return te.INSTANCE.readConfiguration(p)},f}(R.a)},"+yL2":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return r.e(229).then(r.bind(null,"eFaw"))}})},"/1i4":function(wt,P,r){"use strict";r.r(P);var I=r("DqQN"),oe=r.n(I),ne=r("g9ht"),N=r("mTMv"),F=r("S7i+"),U=r("0pVj"),j=r("Whdu"),G=r("vQ3m"),R=r("2GBI"),E=function(){var m=function(B,H){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,he){re.__proto__=he}||function(re,he){for(var Ee in he)he.hasOwnProperty(Ee)&&(re[Ee]=he[Ee])},m(B,H)};return function(w,B){m(w,B);function H(){this.constructor=w}w.prototype=B===null?Object.create(B):(H.prototype=B.prototype,new H)}}(),x="9_cutcopypaste",K=F.f||document.queryCommandSupported("cut"),D=F.f||document.queryCommandSupported("copy"),A=D&&!N.f,te=F.f||!N.d&&document.queryCommandSupported("paste"),z=function(m){E(w,m);function w(B,H){var re=m.call(this,H)||this;return re.browserCommand=B,re}return w.prototype.runCommand=function(B,H){var re=B.get(G.a).getFocusedCodeEditor();if(re&&re.hasTextFocus()){re.trigger("keyboard",this.id,H);return}document.execCommand(this.browserCommand)},w.prototype.run=function(B,H){H.focus(),document.execCommand(this.browserCommand)},w}(j.b),_=function(m){E(w,m);function w(){var B=this,H={kbExpr:R.a.textInputFocus,primary:2048|54,win:{primary:2048|54,secondary:[1024|20]},weight:100};return F.f||(H=void 0),B=m.call(this,"cut",{id:"editor.action.clipboardCutAction",label:ne.a("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:R.a.writable,kbOpts:H,contextMenuOpts:{group:x,order:1},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this,B}return w.prototype.run=function(B,H){if(!H.hasModel())return;var re=H.getOption(25);if(!re&&H.getSelection().isEmpty())return;m.prototype.run.call(this,B,H)},w}(z),f=function(m){E(w,m);function w(){var B=this,H={kbExpr:R.a.textInputFocus,primary:2048|33,win:{primary:2048|33,secondary:[2048|19]},weight:100};return F.f||(H=void 0),B=m.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:ne.a("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:H,contextMenuOpts:{group:x,order:2},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this,B}return w.prototype.run=function(B,H){if(!H.hasModel())return;var re=H.getOption(25);if(!re&&H.getSelection().isEmpty())return;m.prototype.run.call(this,B,H)},w}(z),p=function(m){E(w,m);function w(){var B=this,H={kbExpr:R.a.textInputFocus,primary:2048|52,win:{primary:2048|52,secondary:[1024|19]},weight:100};return F.f||(H=void 0),B=m.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:ne.a("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:R.a.writable,kbOpts:H,contextMenuOpts:{group:x,order:3},menuOpts:{menuId:17,group:"2_ccp",title:ne.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this,B}return w}(z),g=function(m){E(w,m);function w(){return m.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:ne.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:R.a.textInputFocus,primary:0,weight:100}})||this}return w.prototype.run=function(B,H){if(!H.hasModel())return;var re=H.getOption(25);if(!re&&H.getSelection().isEmpty())return;U.a.forceCopyWithSyntaxHighlighting=!0,m.prototype.run.call(this,B,H),U.a.forceCopyWithSyntaxHighlighting=!1},w}(z);K&&Object(j.f)(_),D&&Object(j.f)(f),te&&Object(j.f)(p),A&&Object(j.f)(g)},"/L4v":function(wt,P,r){"use strict";r.d(P,"b",function(){return F}),r.d(P,"a",function(){return U});var I=r("yBOt"),oe=r("Q5rX"),ne=r("cqUj"),N={getInitialState:function(){return ne.c},tokenize2:function(R,E,x){return Object(ne.e)(0,R,E,x)}};function F(G,R){return R===void 0&&(R=N),j(G,R||N)}function U(G,R,E,x,K,D,A){for(var te="<div>",z=x,_=0,f=0,p=R.getCount();f<p;f++){var g=R.getEndOffset(f);if(g<=x)continue;for(var m="";z<g&&z<K;z++){var w=G.charCodeAt(z);switch(w){case 9:var B=D-(z+_)%D;for(_+=B-1;B>0;)m+=A?" ":" ",B--;break;case 60:m+="<";break;case 62:m+=">";break;case 38:m+="&";break;case 0:m+="�";break;case 65279:case 8232:m+="\uFFFD";break;case 13:m+="​";break;case 32:m+=A?" ":" ";break;default:m+=String.fromCharCode(w)}}if(te+='<span style="'+R.getInlineStyle(f,E)+'">'+m+"</span>",g>K||z>=K)break}return te+="</div>",te}function j(G,R){for(var E='<div class="monaco-tokenized-source">',x=G.split(/\r\n|\r|\n/),K=R.getInitialState(),D=0,A=x.length;D<A;D++){var te=x[D];D>0&&(E+="<br/>");var z=R.tokenize2(te,K,0);oe.a.convertToEndOffset(z.tokens,te.length);for(var _=new oe.a(z.tokens,te),f=_.inflate(),p=0,g=0,m=f.getCount();g<m;g++){var w=f.getClassName(g),B=f.getEndOffset(g);E+='<span class="'+w+'">'+I.o(te.substring(p,B))+"</span>",p=B}K=z.endState}return E+="</div>",E}},"/RM0":function(wt,P,r){"use strict";r.d(P,"a",function(){return x});var I=r("mTMv"),oe=r("Qun0"),ne=r("S7i+"),N=new Array(230),F=new Array(112);(function(){for(var K=0;K<F.length;K++)F[K]=-1;function D(A,te){N[A]=te,F[te]=A}D(3,7),D(8,1),D(9,2),D(13,3),D(16,4),D(17,5),D(18,6),D(19,7),D(20,8),D(27,9),D(32,10),D(33,11),D(34,12),D(35,13),D(36,14),D(37,15),D(38,16),D(39,17),D(40,18),D(45,19),D(46,20),D(48,21),D(49,22),D(50,23),D(51,24),D(52,25),D(53,26),D(54,27),D(55,28),D(56,29),D(57,30),D(65,31),D(66,32),D(67,33),D(68,34),D(69,35),D(70,36),D(71,37),D(72,38),D(73,39),D(74,40),D(75,41),D(76,42),D(77,43),D(78,44),D(79,45),D(80,46),D(81,47),D(82,48),D(83,49),D(84,50),D(85,51),D(86,52),D(87,53),D(88,54),D(89,55),D(90,56),D(93,58),D(96,93),D(97,94),D(98,95),D(99,96),D(100,97),D(101,98),D(102,99),D(103,100),D(104,101),D(105,102),D(106,103),D(107,104),D(108,105),D(109,106),D(110,107),D(111,108),D(112,59),D(113,60),D(114,61),D(115,62),D(116,63),D(117,64),D(118,65),D(119,66),D(120,67),D(121,68),D(122,69),D(123,70),D(124,71),D(125,72),D(126,73),D(127,74),D(128,75),D(129,76),D(130,77),D(144,78),D(145,79),D(186,80),D(187,81),D(188,82),D(189,83),D(190,84),D(191,85),D(192,86),D(193,110),D(194,111),D(219,87),D(220,88),D(221,89),D(222,90),D(223,91),D(226,92),D(229,109),I.i?D(91,57):I.h?(D(59,80),D(107,81),D(109,83),ne.e&&D(224,57)):I.m&&(D(91,57),ne.e?D(93,57):D(92,57))})();function U(K){if(K.charCode){var D=String.fromCharCode(K.charCode).toUpperCase();return oe.b.fromString(D)}return N[K.keyCode]||0}var j=ne.e?256:2048,G=512,R=1024,E=ne.e?2048:256,x=function(){function K(D){this._standardKeyboardEventBrand=!0;var A=D;this.browserEvent=A,this.target=A.target,this.ctrlKey=A.ctrlKey,this.shiftKey=A.shiftKey,this.altKey=A.altKey,this.metaKey=A.metaKey,this.keyCode=U(A),this.code=A.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}return K.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},K.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},K.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},K.prototype.equals=function(D){return this._asKeybinding===D},K.prototype._computeKeybinding=function(){var D=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(D=this.keyCode);var A=0;return this.ctrlKey&&(A|=j),this.altKey&&(A|=G),this.shiftKey&&(A|=R),this.metaKey&&(A|=E),A|=D,A},K.prototype._computeRuntimeKeybinding=function(){var D=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(D=this.keyCode),new oe.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,D)},K}()},"/W++":function(wt,P,r){"use strict";r.d(P,"c",function(){return I}),r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return ne});function I(N){return N&&typeof N.id=="string"}var oe={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},ne={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},"/epU":function(wt,P,r){"use strict";var I=r("g9ht"),oe=r("yBOt"),ne;(function(N){N[N.Ignore=0]="Ignore",N[N.Info=1]="Info",N[N.Warning=2]="Warning",N[N.Error=3]="Error"})(ne||(ne={})),function(N){var F="error",U="warning",j="warn",G="info",R=Object.create(null);R[N.Error]=I.a("sev.error","Error"),R[N.Warning]=I.a("sev.warning","Warning"),R[N.Info]=I.a("sev.info","Info");function E(x){return x?oe.n(F,x)?N.Error:oe.n(U,x)||oe.n(j,x)?N.Warning:oe.n(G,x)?N.Info:N.Ignore:N.Ignore}N.fromValue=E}(ne||(ne={})),P.a=ne},"/l9y":function(wt,P,r){"use strict";r.d(P,"d",function(){return I}),r.d(P,"c",function(){return oe}),r.d(P,"e",function(){return ne}),r.d(P,"b",function(){return N}),r.d(P,"a",function(){return F});var I;(function(U){U[U.Left=1]="Left",U[U.Center=2]="Center",U[U.Right=4]="Right",U[U.Full=7]="Full"})(I||(I={}));var oe;(function(U){U[U.Inline=1]="Inline",U[U.Gutter=2]="Gutter"})(oe||(oe={}));var ne=function(){function U(j){this.tabSize=Math.max(1,j.tabSize|0),this.indentSize=j.tabSize|0,this.insertSpaces=Boolean(j.insertSpaces),this.defaultEOL=j.defaultEOL|0,this.trimAutoWhitespace=Boolean(j.trimAutoWhitespace)}return U.prototype.equals=function(j){return this.tabSize===j.tabSize&&this.indentSize===j.indentSize&&this.insertSpaces===j.insertSpaces&&this.defaultEOL===j.defaultEOL&&this.trimAutoWhitespace===j.trimAutoWhitespace},U.prototype.createChangeEvent=function(j){return{tabSize:this.tabSize!==j.tabSize,indentSize:this.indentSize!==j.indentSize,insertSpaces:this.insertSpaces!==j.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==j.trimAutoWhitespace}},U}(),N=function(){function U(j,G){this.range=j,this.matches=G}return U}(),F=function(){function U(j,G,R){this.reverseEdits=j,this.changes=G,this.trimAutoWhitespaceLineNumbers=R}return U}()},"/oyY":function(wt,P,r){"use strict";r.d(P,"a",function(){return m}),r.d(P,"c",function(){return Ve}),r.d(P,"b",function(){return _e});var I=r("g9ht"),oe=r("YK2C"),ne=r("bN5T"),N=r("mucJ"),F=r("Inmo"),U=r("juCB"),j=r("CTBJ"),G=r("ssBC"),R=r("Ndl5"),E=r("E+fE"),x=r("ttZe"),K=function(){var ue=function(fe,ie){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,me){J.__proto__=me}||function(J,me){for(var ye in me)me.hasOwnProperty(ye)&&(J[ye]=me[ye])},ue(fe,ie)};return function(se,fe){ue(se,fe);function ie(){this.constructor=se}se.prototype=fe===null?Object.create(fe):(ie.prototype=fe.prototype,new ie)}}(),D=function(){return D=Object.assign||function(ue){for(var se,fe=1,ie=arguments.length;fe<ie;fe++){se=arguments[fe];for(var J in se)Object.prototype.hasOwnProperty.call(se,J)&&(ue[J]=se[J])}return ue},D.apply(this,arguments)},A=new(function(){function ue(){this._tabFocus=!1,this._onDidChangeTabFocus=new oe.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return ue.prototype.getTabFocusMode=function(){return this._tabFocus},ue.prototype.setTabFocusMode=function(se){if(this._tabFocus===se)return;this._tabFocus=se,this._onDidChangeTabFocus.fire(this._tabFocus)},ue}()),te=Object.hasOwnProperty,z=function(){function ue(){this._values=[]}return ue.prototype._read=function(se){return this._values[se]},ue.prototype.get=function(se){return this._values[se]},ue.prototype._write=function(se,fe){this._values[se]=fe},ue}(),_=function(){function ue(){this._values=[]}return ue.prototype._read=function(se){return this._values[se]},ue.prototype._write=function(se,fe){this._values[se]=fe},ue}(),f=function(){function ue(){}return ue.readOptions=function(se){for(var fe=se,ie=new _,J=0,me=U.i;J<me.length;J++){var ye=me[J],ze=ye.name==="_never_"?void 0:fe[ye.name];ie._write(ye.id,ze)}return ie},ue.validateOptions=function(se){for(var fe=new U.h,ie=0,J=U.i;ie<J.length;ie++){var me=J[ie];fe._write(me.id,me.validate(se._read(me.id)))}return fe},ue.computeOptions=function(se,fe){for(var ie=new z,J=0,me=U.i;J<me.length;J++){var ye=me[J];ie._write(ye.id,ye.compute(fe,ie,se._read(ye.id)))}return ie},ue._deepEquals=function(se,fe){if(typeof se!="object"||typeof fe!="object")return se===fe;if(Array.isArray(se)||Array.isArray(fe))return Array.isArray(se)&&Array.isArray(fe)?F.g(se,fe):!1;for(var ie in se)if(!ue._deepEquals(se[ie],fe[ie]))return!1;return!0},ue.checkEquals=function(se,fe){for(var ie=[],J=!1,me=0,ye=U.i;me<ye.length;me++){var ze=ye[me],tt=!ue._deepEquals(se._read(ze.id),fe._read(ze.id));ie[ze.id]=tt,tt&&(J=!0)}return J?new U.a(ie):null},ue}();function p(ue){var se=ue.wordWrap;se===!0?ue.wordWrap="on":se===!1&&(ue.wordWrap="off");var fe=ue.lineNumbers;fe===!0?ue.lineNumbers="on":fe===!1&&(ue.lineNumbers="off");var ie=ue.autoClosingBrackets;ie===!1&&(ue.autoClosingBrackets="never",ue.autoClosingQuotes="never",ue.autoSurround="never");var J=ue.cursorBlinking;J==="visible"&&(ue.cursorBlinking="solid");var me=ue.renderWhitespace;me===!0?ue.renderWhitespace="boundary":me===!1&&(ue.renderWhitespace="none");var ye=ue.renderLineHighlight;ye===!0?ue.renderLineHighlight="line":ye===!1&&(ue.renderLineHighlight="none");var ze=ue.acceptSuggestionOnEnter;ze===!0?ue.acceptSuggestionOnEnter="on":ze===!1&&(ue.acceptSuggestionOnEnter="off");var tt=ue.tabCompletion;tt===!1?ue.tabCompletion="off":tt===!0&&(ue.tabCompletion="onlySnippets");var _t=ue.suggest;if(_t&&typeof _t.filteredTypes=="object"&&_t.filteredTypes){var Pt={};Pt.method="showMethods",Pt.function="showFunctions",Pt.constructor="showConstructors",Pt.field="showFields",Pt.variable="showVariables",Pt.class="showClasses",Pt.struct="showStructs",Pt.interface="showInterfaces",Pt.module="showModules",Pt.property="showProperties",Pt.event="showEvents",Pt.operator="showOperators",Pt.unit="showUnits",Pt.value="showValues",Pt.constant="showConstants",Pt.enum="showEnums",Pt.enumMember="showEnumMembers",Pt.keyword="showKeywords",Pt.text="showWords",Pt.color="showColors",Pt.file="showFiles",Pt.reference="showReferences",Pt.folder="showFolders",Pt.typeParameter="showTypeParameters",Pt.snippet="showSnippets",Object(x.b)(Pt,function(Ye){var ke=_t.filteredTypes[Ye.key];ke===!1&&(_t[Ye.value]=ke)})}var Xt=ue.hover;Xt===!0?ue.hover={enabled:!0}:Xt===!1&&(ue.hover={enabled:!1});var Ke=ue.parameterHints;Ke===!0?ue.parameterHints={enabled:!0}:Ke===!1&&(ue.parameterHints={enabled:!1});var Xe=ue.autoIndent;Xe===!0?ue.autoIndent="full":Xe===!1&&(ue.autoIndent="advanced");var Ze=ue.matchBrackets;Ze===!0?ue.matchBrackets="always":Ze===!1&&(ue.matchBrackets="never")}function g(ue){var se=N.c(ue);return p(se),se}var m=function(ue){K(se,ue);function se(fe,ie){var J=ue.call(this)||this;return J._onDidChange=J._register(new oe.a),J.onDidChange=J._onDidChange.event,J.isSimpleWidget=fe,J._isDominatedByLongLines=!1,J._lineNumbersDigitCount=1,J._rawOptions=g(ie),J._readOptions=f.readOptions(J._rawOptions),J._validatedOptions=f.validateOptions(J._readOptions),J._register(j.a.onDidChangeZoomLevel(function(me){return J._recomputeOptions()})),J._register(A.onDidChangeTabFocus(function(me){return J._recomputeOptions()})),J}return se.prototype.observeReferenceElement=function(fe){},se.prototype.dispose=function(){ue.prototype.dispose.call(this)},se.prototype._recomputeOptions=function(){var fe=this.options,ie=this._computeInternalOptions();if(!fe)this.options=ie;else{var J=f.checkEquals(fe,ie);if(J===null)return;this.options=ie,this._onDidChange.fire(J)}},se.prototype.getRawOptions=function(){return this._rawOptions},se.prototype._computeInternalOptions=function(){var fe=this._getEnvConfiguration(),ie=G.a.createFromValidatedSettings(this._validatedOptions,fe.zoomLevel,this.isSimpleWidget),J={outerWidth:fe.outerWidth,outerHeight:fe.outerHeight,fontInfo:this.readConfiguration(ie),extraEditorClassName:fe.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:fe.emptySelectionClipboard,pixelRatio:fe.pixelRatio,tabFocusMode:A.getTabFocusMode(),accessibilitySupport:fe.accessibilitySupport};return f.computeOptions(this._validatedOptions,J)},se._subsetEquals=function(fe,ie){for(var J in ie)if(te.call(ie,J)){var me=ie[J],ye=fe[J];if(ye===me)continue;if(Array.isArray(ye)&&Array.isArray(me)){if(!F.g(ye,me))return!1;continue}if(typeof ye=="object"&&typeof me=="object"){if(!this._subsetEquals(ye,me))return!1;continue}return!1}return!0},se.prototype.updateOptions=function(fe){if(typeof fe=="undefined")return;var ie=g(fe);if(se._subsetEquals(this._rawOptions,ie))return;this._rawOptions=N.g(this._rawOptions,ie||{}),this._readOptions=f.readOptions(this._rawOptions),this._validatedOptions=f.validateOptions(this._readOptions),this._recomputeOptions()},se.prototype.setIsDominatedByLongLines=function(fe){this._isDominatedByLongLines=fe,this._recomputeOptions()},se.prototype.setMaxLineNumber=function(fe){var ie=se._digitCount(fe);if(this._lineNumbersDigitCount===ie)return;this._lineNumbersDigitCount=ie,this._recomputeOptions()},se._digitCount=function(fe){for(var ie=0;fe;)fe=Math.floor(fe/10),ie++;return ie||1},se}(ne.a),w=Object.freeze({id:"editor",order:5,type:"object",title:I.a("editorConfigurationTitle","Editor"),scope:5}),B=E.a.as(R.a.Configuration),H=D(D({},w),{properties:{"editor.tabSize":{type:"number",default:U.c.tabSize,minimum:1,markdownDescription:I.a("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:U.c.insertSpaces,markdownDescription:I.a("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:U.c.detectIndentation,markdownDescription:I.a("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:U.c.trimAutoWhitespace,description:I.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:U.c.largeFileOptimizations,description:I.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:I.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{type:"boolean",default:!1,description:I.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:I.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:I.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:I.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:I.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:I.a("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:I.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}});function re(ue){return typeof ue.type!="undefined"||typeof ue.anyOf!="undefined"}for(var he=0,Ee=U.i;he<Ee.length;he++){var Se=Ee[he],q=Se.schema;if(typeof q!="undefined")if(re(q))H.properties["editor."+Se.name]=q;else for(var Z in q)te.call(q,Z)&&(H.properties[Z]=q[Z])}var ce=null;function Me(){return ce===null&&(ce=Object.create(null),Object.keys(H.properties).forEach(function(ue){ce[ue]=!0})),ce}function Ve(ue){var se=Me();return se["editor."+ue]||!1}function _e(ue){var se=Me();return se["diffEditor."+ue]||!1}B.registerConfiguration(H)},"03vC":function(wt,P,r){},"0BkX":function(wt,P,r){"use strict";r.d(P,"a",function(){return j}),r.d(P,"Rb",function(){return E}),r.d(P,"V",function(){return x}),r.d(P,"T",function(){return K}),r.d(P,"U",function(){return D}),r.d(P,"e",function(){return A}),r.d(P,"b",function(){return te}),r.d(P,"cc",function(){return z}),r.d(P,"bc",function(){return _}),r.d(P,"fc",function(){return f}),r.d(P,"Y",function(){return p}),r.d(P,"ab",function(){return g}),r.d(P,"Z",function(){return m}),r.d(P,"X",function(){return w}),r.d(P,"W",function(){return B}),r.d(P,"eb",function(){return H}),r.d(P,"gb",function(){return re}),r.d(P,"fb",function(){return he}),r.d(P,"hb",function(){return Ee}),r.d(P,"jb",function(){return Se}),r.d(P,"ib",function(){return q}),r.d(P,"bb",function(){return Z}),r.d(P,"db",function(){return ce}),r.d(P,"cb",function(){return Me}),r.d(P,"Mb",function(){return ue}),r.d(P,"Lb",function(){return se}),r.d(P,"c",function(){return fe}),r.d(P,"d",function(){return ie}),r.d(P,"Tb",function(){return J}),r.d(P,"Vb",function(){return me}),r.d(P,"Wb",function(){return ye}),r.d(P,"Ub",function(){return ze}),r.d(P,"Qb",function(){return tt}),r.d(P,"q",function(){return _t}),r.d(P,"p",function(){return Pt}),r.d(P,"O",function(){return Xt}),r.d(P,"N",function(){return Ke}),r.d(P,"H",function(){return Xe}),r.d(P,"G",function(){return Ze}),r.d(P,"z",function(){return Ye}),r.d(P,"y",function(){return ke}),r.d(P,"o",function(){return $e}),r.d(P,"x",function(){return we}),r.d(P,"P",function(){return k}),r.d(P,"R",function(){return ee}),r.d(P,"Q",function(){return Pe}),r.d(P,"S",function(){return ve}),r.d(P,"K",function(){return Te}),r.d(P,"L",function(){return Ie}),r.d(P,"F",function(){return pe}),r.d(P,"M",function(){return nt}),r.d(P,"r",function(){return Rt}),r.d(P,"t",function(){return Tt}),r.d(P,"v",function(){return Ht}),r.d(P,"s",function(){return Gt}),r.d(P,"u",function(){return rn}),r.d(P,"w",function(){return Ln}),r.d(P,"D",function(){return yn}),r.d(P,"A",function(){return Tn}),r.d(P,"C",function(){return Ft}),r.d(P,"B",function(){return pt}),r.d(P,"E",function(){return gt}),r.d(P,"n",function(){return Dt}),r.d(P,"J",function(){return Lt}),r.d(P,"I",function(){return Vt}),r.d(P,"g",function(){return Qt}),r.d(P,"h",function(){return nn}),r.d(P,"j",function(){return sn}),r.d(P,"l",function(){return ln}),r.d(P,"k",function(){return En}),r.d(P,"m",function(){return On}),r.d(P,"i",function(){return Pn}),r.d(P,"qb",function(){return Gn}),r.d(P,"rb",function(){return Qn}),r.d(P,"kb",function(){return Jn}),r.d(P,"lb",function(){return gi}),r.d(P,"wb",function(){return Kn}),r.d(P,"xb",function(){return yi}),r.d(P,"vb",function(){return mi}),r.d(P,"tb",function(){return vt}),r.d(P,"ub",function(){return Mt}),r.d(P,"mb",function(){return zt}),r.d(P,"sb",function(){return tn}),r.d(P,"nb",function(){return Ut}),r.d(P,"pb",function(){return Sn}),r.d(P,"ob",function(){return Rn}),r.d(P,"ec",function(){return Bn}),r.d(P,"zb",function(){return Fn}),r.d(P,"Ab",function(){return ri}),r.d(P,"yb",function(){return ci}),r.d(P,"Db",function(){return zi}),r.d(P,"Bb",function(){return oo}),r.d(P,"Cb",function(){return Zn}),r.d(P,"Eb",function(){return Ii}),r.d(P,"Zb",function(){return Si}),r.d(P,"ac",function(){return ji}),r.d(P,"Xb",function(){return Un}),r.d(P,"Yb",function(){return Ci}),r.d(P,"Kb",function(){return Wi}),r.d(P,"Gb",function(){return Gi}),r.d(P,"Hb",function(){return Bi}),r.d(P,"Fb",function(){return vi}),r.d(P,"Ib",function(){return qi}),r.d(P,"Nb",function(){return ro}),r.d(P,"Pb",function(){return bi}),r.d(P,"Ob",function(){return Di}),r.d(P,"f",function(){return Xi}),r.d(P,"dc",function(){return Mi}),r.d(P,"Jb",function(){return so}),r.d(P,"Sb",function(){return O});var I=r("E+fE"),oe=r("Ytku"),ne=r("YK2C"),N=r("g9ht"),F=r("4Hnn"),U=r("dE3Z"),j={ColorContribution:"base.contributions.colors"},G=function(){function Re(){this._onDidChangeSchema=new ne.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return Re.prototype.registerColor=function(We,ft,lt,yt,xt){yt===void 0&&(yt=!1);var It={id:We,description:lt,defaults:ft,needsTransparency:yt,deprecationMessage:xt};this.colorsById[We]=It;var kt={type:"string",description:lt,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return xt&&(kt.deprecationMessage=xt),this.colorSchema.properties[We]=kt,this.colorReferenceSchema.enum.push(We),this.colorReferenceSchema.enumDescriptions.push(lt),this._onDidChangeSchema.fire(),We},Re.prototype.resolveDefaultColor=function(We,ft){var lt=this.colorsById[We];if(lt&<.defaults){var yt=lt.defaults[ft.type];return O(yt,ft)}return},Re.prototype.getColorSchema=function(){return this.colorSchema},Re.prototype.toString=function(){var We=this,ft=function(yt,xt){var It=yt.indexOf(".")===-1?0:1,kt=xt.indexOf(".")===-1?0:1;return It!==kt?It-kt:yt.localeCompare(xt)};return Object.keys(this.colorsById).sort(ft).map(function(lt){return"- `"+lt+"`: "+We.colorsById[lt].description}).join(`
|
|
`)},Re}(),R=new G;I.a.add(j.ColorContribution,R);function E(Re,We,ft,lt,yt){return R.registerColor(Re,We,ft,lt,yt)}var x=E("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},N.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),K=E("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},N.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),D=E("focusBorder",{dark:oe.a.fromHex("#0E639C").transparent(.8),light:oe.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},N.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),A=E("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},N.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),te=E("contrastActiveBorder",{light:null,dark:null,hc:D},N.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),z=E("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},N.a("textLinkForeground","Foreground color for links in text.")),_=E("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:oe.a.black},N.a("textCodeBlockBackground","Background color for code blocks in text.")),f=E("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},N.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),p=E("input.background",{dark:"#3C3C3C",light:oe.a.white,hc:oe.a.black},N.a("inputBoxBackground","Input box background.")),g=E("input.foreground",{dark:x,light:x,hc:x},N.a("inputBoxForeground","Input box foreground.")),m=E("input.border",{dark:null,light:null,hc:A},N.a("inputBoxBorder","Input box border.")),w=E("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:A},N.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),B=E("inputOption.activeBackground",{dark:Mi(D,.5),light:Mi(D,.3),hc:null},N.a("inputOption.activeBackground","Background color of activated options in input fields.")),H=E("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:oe.a.black},N.a("inputValidationInfoBackground","Input validation background color for information severity.")),re=E("inputValidation.infoForeground",{dark:null,light:null,hc:null},N.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),he=E("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:A},N.a("inputValidationInfoBorder","Input validation border color for information severity.")),Ee=E("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:oe.a.black},N.a("inputValidationWarningBackground","Input validation background color for warning severity.")),Se=E("inputValidation.warningForeground",{dark:null,light:null,hc:null},N.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),q=E("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:A},N.a("inputValidationWarningBorder","Input validation border color for warning severity.")),Z=E("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:oe.a.black},N.a("inputValidationErrorBackground","Input validation background color for error severity.")),ce=E("inputValidation.errorForeground",{dark:null,light:null,hc:null},N.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),Me=E("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:A},N.a("inputValidationErrorBorder","Input validation border color for error severity.")),Ve=E("dropdown.background",{dark:"#3C3C3C",light:oe.a.white,hc:oe.a.black},N.a("dropdownBackground","Dropdown background.")),_e=E("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:oe.a.white},N.a("dropdownForeground","Dropdown foreground.")),ue=E("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:oe.a.white},N.a("pickerGroupForeground","Quick picker color for grouping labels.")),se=E("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:oe.a.white},N.a("pickerGroupBorder","Quick picker color for grouping borders.")),fe=E("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:oe.a.black},N.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),ie=E("badge.foreground",{dark:oe.a.white,light:"#333",hc:oe.a.white},N.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),J=E("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},N.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),me=E("scrollbarSlider.background",{dark:oe.a.fromHex("#797979").transparent(.4),light:oe.a.fromHex("#646464").transparent(.4),hc:Mi(A,.6)},N.a("scrollbarSliderBackground","Scrollbar slider background color.")),ye=E("scrollbarSlider.hoverBackground",{dark:oe.a.fromHex("#646464").transparent(.7),light:oe.a.fromHex("#646464").transparent(.7),hc:Mi(A,.8)},N.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),ze=E("scrollbarSlider.activeBackground",{dark:oe.a.fromHex("#BFBFBF").transparent(.4),light:oe.a.fromHex("#000000").transparent(.6),hc:A},N.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),tt=E("progressBar.background",{dark:oe.a.fromHex("#0E70C0"),light:oe.a.fromHex("#0E70C0"),hc:A},N.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),_t=E("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},N.a("editorError.foreground","Foreground color of error squigglies in the editor.")),Pt=E("editorError.border",{dark:null,light:null,hc:oe.a.fromHex("#E47777").transparent(.8)},N.a("errorBorder","Border color of error boxes in the editor.")),Xt=E("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},N.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),Ke=E("editorWarning.border",{dark:null,light:null,hc:oe.a.fromHex("#FFCC00").transparent(.8)},N.a("warningBorder","Border color of warning boxes in the editor.")),Xe=E("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},N.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Ze=E("editorInfo.border",{dark:null,light:null,hc:oe.a.fromHex("#75BEFF").transparent(.8)},N.a("infoBorder","Border color of info boxes in the editor.")),Ye=E("editorHint.foreground",{dark:oe.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},N.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ke=E("editorHint.border",{dark:null,light:null,hc:oe.a.fromHex("#eeeeee").transparent(.8)},N.a("hintBorder","Border color of hint boxes in the editor.")),$e=E("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:oe.a.black},N.a("editorBackground","Editor background color.")),we=E("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:oe.a.white},N.a("editorForeground","Editor default foreground color.")),k=E("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},N.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),ee=E("editorWidget.foreground",{dark:x,light:x,hc:x},N.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),Pe=E("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:A},N.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),ve=E("editorWidget.resizeBorder",{light:null,dark:null,hc:null},N.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),Te=E("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},N.a("editorSelectionBackground","Color of the editor selection.")),Ie=E("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},N.a("editorSelectionForeground","Color of the selected text for high contrast.")),pe=E("editor.inactiveSelectionBackground",{light:Mi(Te,.5),dark:Mi(Te,.5),hc:Mi(Te,.5)},N.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),nt=E("editor.selectionHighlightBackground",{light:Je(Te,$e,.3,.6),dark:Je(Te,$e,.3,.6),hc:null},N.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Et=E("editor.selectionHighlightBorder",{light:null,dark:null,hc:te},N.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Rt=E("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},N.a("editorFindMatch","Color of the current search match.")),Tt=E("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},N.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Ht=E("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},N.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Gt=E("editor.findMatchBorder",{light:null,dark:null,hc:te},N.a("editorFindMatchBorder","Border color of the current search match.")),rn=E("editor.findMatchHighlightBorder",{light:null,dark:null,hc:te},N.a("findMatchHighlightBorder","Border color of the other search matches.")),Ln=E("editor.findRangeHighlightBorder",{dark:null,light:null,hc:Mi(te,.4)},N.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),yn=E("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},N.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Tn=E("editorHoverWidget.background",{light:k,dark:k,hc:k},N.a("hoverBackground","Background color of the editor hover.")),Ft=E("editorHoverWidget.foreground",{light:ee,dark:ee,hc:ee},N.a("hoverForeground","Foreground color of the editor hover.")),pt=E("editorHoverWidget.border",{light:Pe,dark:Pe,hc:Pe},N.a("hoverBorder","Border color of the editor hover.")),gt=E("editorHoverWidget.statusBarBackground",{dark:lo(Tn,.2),light:Xi(Tn,.05),hc:k},N.a("statusBarBackground","Background color of the editor hover status bar.")),Dt=E("editorLink.activeForeground",{dark:"#4E94CE",light:oe.a.blue,hc:oe.a.cyan},N.a("activeLinkForeground","Color of active links.")),Lt=E("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},N.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Vt=E("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},N.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),Qt=new oe.a(new oe.c(155,185,85,.2)),nn=new oe.a(new oe.c(255,0,0,.2)),sn=E("diffEditor.insertedTextBackground",{dark:Qt,light:Qt,hc:null},N.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ln=E("diffEditor.removedTextBackground",{dark:nn,light:nn,hc:null},N.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),En=E("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},N.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),On=E("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},N.a("diffEditorRemovedOutline","Outline color for text that got removed.")),Pn=E("diffEditor.border",{dark:null,light:null,hc:A},N.a("diffEditorBorder","Border color between the two text editors.")),Gn=E("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},N.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Qn=E("list.focusForeground",{dark:null,light:null,hc:null},N.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Jn=E("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},N.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),gi=E("list.activeSelectionForeground",{dark:oe.a.white,light:oe.a.white,hc:null},N.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Kn=E("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},N.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),yi=E("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},N.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),mi=E("list.inactiveFocusBackground",{dark:null,light:null,hc:null},N.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),vt=E("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},N.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Mt=E("list.hoverForeground",{dark:null,light:null,hc:null},N.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),zt=E("list.dropBackground",{dark:Gn,light:Gn,hc:null},N.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),tn=E("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:D},N.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Ut=E("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:oe.a.black},N.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Sn=E("listFilterWidget.outline",{dark:oe.a.transparent,light:oe.a.transparent,hc:"#f38518"},N.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Rn=E("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:A},N.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Bn=E("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},N.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Fn=E("menu.border",{dark:null,light:null,hc:A},N.a("menuBorder","Border color of menus.")),ri=E("menu.foreground",{dark:_e,light:x,hc:_e},N.a("menuForeground","Foreground color of menu items.")),ci=E("menu.background",{dark:Ve,light:Ve,hc:Ve},N.a("menuBackground","Background color of menu items.")),zi=E("menu.selectionForeground",{dark:gi,light:gi,hc:gi},N.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),oo=E("menu.selectionBackground",{dark:Jn,light:Jn,hc:Jn},N.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Zn=E("menu.selectionBorder",{dark:null,light:null,hc:te},N.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Ii=E("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:A},N.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Si=E("editor.snippetTabstopHighlightBackground",{dark:new oe.a(new oe.c(124,124,124,.3)),light:new oe.a(new oe.c(10,50,100,.2)),hc:new oe.a(new oe.c(124,124,124,.3))},N.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),ji=E("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},N.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Un=E("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},N.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Ci=E("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new oe.a(new oe.c(10,50,100,.5)),hc:"#525252"},N.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),Wi=E("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},N.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Ti=E("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},N.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Gi=E("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},N.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Bi=E("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},N.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),vi=E("minimap.errorHighlight",{dark:new oe.a(new oe.c(255,18,18,.7)),light:new oe.a(new oe.c(255,18,18,.7)),hc:new oe.a(new oe.c(255,50,50,1))},N.a("minimapError","Minimap marker color for errors.")),qi=E("minimap.warningHighlight",{dark:Xt,light:Xt,hc:Ke},N.a("overviewRuleWarning","Minimap marker color for warnings.")),ro=E("problemsErrorIcon.foreground",{dark:_t,light:_t,hc:_t},N.a("problemsErrorIconForeground","The color used for the problems error icon.")),bi=E("problemsWarningIcon.foreground",{dark:Xt,light:Xt,hc:Xt},N.a("problemsWarningIconForeground","The color used for the problems warning icon.")),Di=E("problemsInfoIcon.foreground",{dark:Xe,light:Xe,hc:Xe},N.a("problemsInfoIconForeground","The color used for the problems info icon."));function Xi(Re,We){return function(ft){var lt=O(Re,ft);return lt?lt.darken(We):void 0}}function lo(Re,We){return function(ft){var lt=O(Re,ft);return lt?lt.lighten(We):void 0}}function Mi(Re,We){return function(ft){var lt=O(Re,ft);return lt?lt.transparent(We):void 0}}function so(){for(var Re=[],We=0;We<arguments.length;We++)Re[We]=arguments[We];return function(ft){for(var lt=0,yt=Re;lt<yt.length;lt++){var xt=yt[lt],It=O(xt,ft);if(It)return It}return}}function Je(Re,We,ft,lt){return function(yt){var xt=O(Re,yt);if(xt){var It=O(We,yt);return It?xt.isDarkerThan(It)?oe.a.getLighterColor(xt,It,ft).transparent(lt):oe.a.getDarkerColor(xt,It,ft).transparent(lt):xt.transparent(ft*lt)}return}}function O(Re,We){return Re===null?void 0:typeof Re=="string"?Re[0]==="#"?oe.a.fromHex(Re):We.getColor(Re):Re instanceof oe.a?Re:typeof Re=="function"?Re(We):void 0}var T="vscode://schemas/workbench-colors",Y=I.a.as(F.a.JSONContribution);Y.registerSchema(T,R.getColorSchema());var De=new U.d(function(){return Y.notifySchemaChanged(T)},200);R.onDidChangeSchema(function(){De.isScheduled()||De.schedule()})},"0Kkq":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return r.e(209).then(r.bind(null,"qngS"))}})},"0NiZ":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return r.e(228).then(r.bind(null,"lcj6"))}})},"0aZp":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return r.e(244).then(r.bind(null,"IWwd"))}})},"0pVj":function(wt,P,r){"use strict";r.d(P,"a",function(){return K}),r.d(P,"b",function(){return A});var I=r("mTMv"),oe=r("fF8p"),ne=r("dE3Z"),N=r("YK2C"),F=r("bN5T"),U=r("S7i+"),j=r("yBOt"),G=r("Cp6c"),R=r("F5bH"),E=r("Uq4v"),x=function(){var _=function(p,g){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var B in w)w.hasOwnProperty(B)&&(m[B]=w[B])},_(p,g)};return function(f,p){_(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),K={forceCopyWithSyntaxHighlighting:!1},D=function(){function _(){this._lastState=null}return _.prototype.set=function(f,p){this._lastState={lastCopiedValue:f,data:p}},_.prototype.get=function(f){return this._lastState&&this._lastState.lastCopiedValue===f?this._lastState.data:(this._lastState=null,null)},_.INSTANCE=new _,_}(),A=function(_){x(f,_);function f(p,g){var m=_.call(this)||this;m.textArea=g,m._onFocus=m._register(new N.a),m.onFocus=m._onFocus.event,m._onBlur=m._register(new N.a),m.onBlur=m._onBlur.event,m._onKeyDown=m._register(new N.a),m.onKeyDown=m._onKeyDown.event,m._onKeyUp=m._register(new N.a),m.onKeyUp=m._onKeyUp.event,m._onCut=m._register(new N.a),m.onCut=m._onCut.event,m._onPaste=m._register(new N.a),m.onPaste=m._onPaste.event,m._onType=m._register(new N.a),m.onType=m._onType.event,m._onCompositionStart=m._register(new N.a),m.onCompositionStart=m._onCompositionStart.event,m._onCompositionUpdate=m._register(new N.a),m.onCompositionUpdate=m._onCompositionUpdate.event,m._onCompositionEnd=m._register(new N.a),m.onCompositionEnd=m._onCompositionEnd.event,m._onSelectionChangeRequest=m._register(new N.a),m.onSelectionChangeRequest=m._onSelectionChangeRequest.event,m._host=p,m._textArea=m._register(new z(g)),m._asyncTriggerCut=m._register(new ne.d(function(){return m._onCut.fire()},0)),m._textAreaState=G.b.EMPTY,m._selectionChangeListener=null,m.writeScreenReaderContent("ctor"),m._hasFocus=!1,m._isDoingComposition=!1,m._nextCommand=0,m._register(oe.n(g.domNode,"keydown",function(re){m._isDoingComposition&&(re.keyCode===109||re.keyCode===1)&&re.stopPropagation(),re.equals(9)&&re.preventDefault(),m._onKeyDown.fire(re)})),m._register(oe.n(g.domNode,"keyup",function(re){m._onKeyUp.fire(re)})),m._register(oe.i(g.domNode,"compositionstart",function(re){if(m._isDoingComposition)return;m._isDoingComposition=!0,I.f||m._setAndWriteTextAreaState("compositionstart",G.b.EMPTY),m._onCompositionStart.fire()}));var w=function(he){var Ee=m._textAreaState,Se=G.b.readFromTextArea(m._textArea);return[Se,G.b.deduceInput(Ee,Se,he)]},B=function(he){var Ee=m._textAreaState,Se=G.b.selectedText(he),q={text:Se.value,replaceCharCnt:Ee.selectionEnd-Ee.selectionStart};return[Se,q]},H=function(he){return I.f&&he==="ja"?!0:!!(I.i&&he.indexOf("zh-Han")===0)};return m._register(oe.i(g.domNode,"compositionupdate",function(re){if(H(re.locale)){var he=w(!1),Ee=he[0],Se=he[1];m._textAreaState=Ee,m._onType.fire(Se),m._onCompositionUpdate.fire(re);return}var q=B(re.data),Z=q[0],ce=q[1];m._textAreaState=Z,m._onType.fire(ce),m._onCompositionUpdate.fire(re)})),m._register(oe.i(g.domNode,"compositionend",function(re){if(!m._isDoingComposition)return;if(H(re.locale)){var he=w(!1),Ee=he[0],Se=he[1];m._textAreaState=Ee,m._onType.fire(Se)}else{var q=B(re.data),Ee=q[0],Se=q[1];m._textAreaState=Ee,m._onType.fire(Se)}if((I.f||I.d)&&(m._textAreaState=G.b.readFromTextArea(m._textArea)),!m._isDoingComposition)return;m._isDoingComposition=!1,m._onCompositionEnd.fire()})),m._register(oe.i(g.domNode,"input",function(){if(m._textArea.setIgnoreSelectionChangeTime("received input event"),m._isDoingComposition)return;var re=w(U.e),he=re[0],Ee=re[1];if(Ee.replaceCharCnt===0&&Ee.text.length===1&&j.z(Ee.text.charCodeAt(0)))return;m._textAreaState=he,m._nextCommand===0?Ee.text!==""&&m._onType.fire(Ee):((Ee.text!==""||Ee.replaceCharCnt!==0)&&m._firePaste(Ee.text,null),m._nextCommand=0)})),m._register(oe.i(g.domNode,"cut",function(re){m._textArea.setIgnoreSelectionChangeTime("received cut event"),m._ensureClipboardGetsEditorSelection(re),m._asyncTriggerCut.schedule()})),m._register(oe.i(g.domNode,"copy",function(re){m._ensureClipboardGetsEditorSelection(re)})),m._register(oe.i(g.domNode,"paste",function(re){if(m._textArea.setIgnoreSelectionChangeTime("received paste event"),te.canUseTextData(re)){var he=te.getTextData(re),Ee=he[0],Se=he[1];Ee!==""&&m._firePaste(Ee,Se)}else m._textArea.getSelectionStart()!==m._textArea.getSelectionEnd()&&m._setAndWriteTextAreaState("paste",G.b.EMPTY),m._nextCommand=1})),m._register(oe.i(g.domNode,"focus",function(){m._setHasFocus(!0)})),m._register(oe.i(g.domNode,"blur",function(){m._setHasFocus(!1)})),m}return f.prototype._installSelectionChangeListener=function(){var p=this,g=0;return oe.i(document,"selectionchange",function(m){if(!p._hasFocus)return;if(p._isDoingComposition)return;if(!I.d||!U.h)return;var w=Date.now(),B=w-g;if(g=w,B<5)return;var H=w-p._textArea.getIgnoreSelectionChangeTime();if(p._textArea.resetSelectionChangeTime(),H<100)return;if(!p._textAreaState.selectionStartPosition||!p._textAreaState.selectionEndPosition)return;var re=p._textArea.getValue();if(p._textAreaState.value!==re)return;var he=p._textArea.getSelectionStart(),Ee=p._textArea.getSelectionEnd();if(p._textAreaState.selectionStart===he&&p._textAreaState.selectionEnd===Ee)return;var Se=p._textAreaState.deduceEditorPosition(he),q=p._host.deduceModelPosition(Se[0],Se[1],Se[2]),Z=p._textAreaState.deduceEditorPosition(Ee),ce=p._host.deduceModelPosition(Z[0],Z[1],Z[2]),Me=new R.a(q.lineNumber,q.column,ce.lineNumber,ce.column);p._onSelectionChangeRequest.fire(Me)})},f.prototype.dispose=function(){_.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},f.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},f.prototype.isFocused=function(){return this._hasFocus},f.prototype.refreshFocusState=function(){var p=oe.D(this.textArea.domNode);p?this._setHasFocus(p.activeElement===this.textArea.domNode):oe.L(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},f.prototype._setHasFocus=function(p){if(this._hasFocus===p)return;this._hasFocus=p,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(I.e?this._setAndWriteTextAreaState("focusgain",G.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire()},f.prototype._setAndWriteTextAreaState=function(p,g){this._hasFocus||(g=g.collapseSelection()),g.writeToTextArea(p,this._textArea,this._hasFocus),this._textAreaState=g},f.prototype.writeScreenReaderContent=function(p){if(this._isDoingComposition)return;this._setAndWriteTextAreaState(p,this._host.getScreenReaderContent(this._textAreaState))},f.prototype._ensureClipboardGetsEditorSelection=function(p){var g=this._host.getDataToCopy(te.canUseTextData(p)&&E.a.clipboard.richText),m={version:1,isFromEmptySelection:g.isFromEmptySelection,multicursorText:g.multicursorText,mode:g.mode};if(D.INSTANCE.set(I.h?g.text.replace(/\r\n/g,`
|
|
`):g.text,m),!te.canUseTextData(p)){this._setAndWriteTextAreaState("copy or cut",G.b.selectedText(g.text));return}te.setTextData(p,g.text,g.html,m)},f.prototype._firePaste=function(p,g){g||(g=D.INSTANCE.get(p)),this._onPaste.fire({text:p,metadata:g})},f}(F.a),te=function(){function _(){}return _.canUseTextData=function(f){return f.clipboardData?!0:!!window.clipboardData},_.getTextData=function(f){if(f.clipboardData){f.preventDefault();var p=f.clipboardData.getData("text/plain"),g=null,m=f.clipboardData.getData("vscode-editor-data");if(typeof m=="string")try{g=JSON.parse(m),g.version!==1&&(g=null)}catch(w){}return[p,g]}if(window.clipboardData){f.preventDefault();var p=window.clipboardData.getData("Text");return[p,null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},_.setTextData=function(f,p,g,m){if(f.clipboardData){f.clipboardData.setData("text/plain",p),typeof g=="string"&&f.clipboardData.setData("text/html",g),f.clipboardData.setData("vscode-editor-data",JSON.stringify(m)),f.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",p),f.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},_}(),z=function(_){x(f,_);function f(p){var g=_.call(this)||this;return g._actual=p,g._ignoreSelectionChangeTime=0,g}return f.prototype.setIgnoreSelectionChangeTime=function(p){this._ignoreSelectionChangeTime=Date.now()},f.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},f.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},f.prototype.getValue=function(){return this._actual.domNode.value},f.prototype.setValue=function(p,g){var m=this._actual.domNode;if(m.value===g)return;this.setIgnoreSelectionChangeTime("setValue"),m.value=g},f.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},f.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},f.prototype.setSelectionRange=function(p,g,m){var w=this._actual.domNode,B=null,H=oe.D(w);H?B=H.activeElement:B=document.activeElement;var re=B===w,he=w.selectionStart,Ee=w.selectionEnd;if(re&&he===g&&Ee===m){I.h&&window.parent!==window&&w.focus();return}if(re){this.setIgnoreSelectionChangeTime("setSelectionRange"),w.setSelectionRange(g,m),I.h&&window.parent!==window&&w.focus();return}try{var Se=oe.U(w);this.setIgnoreSelectionChangeTime("setSelectionRange"),w.focus(),w.setSelectionRange(g,m),oe.S(w,Se)}catch(q){}},f}(F.a)},"0r9M":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return r.e(222).then(r.bind(null,"CbXN"))}})},"0ytw":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("clipboardService")},"1OsU":function(wt,P,r){"use strict";r.d(P,"e",function(){return E}),r.d(P,"a",function(){return x}),r.d(P,"c",function(){return K}),r.d(P,"d",function(){return A}),r.d(P,"b",function(){return te});var I=r("Mn97"),oe=r("PoD0"),ne=r("bBv/"),N=r("OJ8J"),F=r("YK2C"),U=function(){var z=function(f,p){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var w in m)m.hasOwnProperty(w)&&(g[w]=m[w])},z(f,p)};return function(_,f){z(_,f);function p(){this.constructor=_}_.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}(),j=function(z,_,f,p){var g=arguments.length,m=g<3?_:p===null?p=Object.getOwnPropertyDescriptor(_,f):p,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(z,_,f,p);else for(var B=z.length-1;B>=0;B--)(w=z[B])&&(m=(g<3?w(m):g>3?w(_,f,m):w(_,f))||m);return g>3&&m&&Object.defineProperty(_,f,m),m},G=function(z,_){return function(f,p){_(f,p,z)}},R=function(){for(var z=0,_=0,f=arguments.length;_<f;_++)z+=arguments[_].length;for(var p=Array(z),g=0,_=0;_<f;_++)for(var m=arguments[_],w=0,B=m.length;w<B;w++,g++)p[g]=m[w];return p};function E(z){return z.command!==void 0}var x=Object(oe.c)("menuService"),K=new(function(){function z(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new F.a,this.onDidChangeMenu=this._onDidChangeMenu.event}return z.prototype.addCommand=function(_){var f=this;return this._commands.set(_.id,_),this._onDidChangeMenu.fire(0),{dispose:function(){f._commands.delete(_.id)&&f._onDidChangeMenu.fire(0)}}},z.prototype.getCommand=function(_){return this._commands.get(_)},z.prototype.getCommands=function(){var _=new Map;return this._commands.forEach(function(f,p){return _.set(p,f)}),_},z.prototype.appendMenuItem=function(_,f){var p=this,g=this._menuItems.get(_);return g?g.push(f):(g=[f],this._menuItems.set(_,g)),this._onDidChangeMenu.fire(_),{dispose:function(){var w=g.indexOf(f);w>=0&&(g.splice(w,1),p._onDidChangeMenu.fire(_))}}},z.prototype.getMenuItems=function(_){var f=(this._menuItems.get(_)||[]).slice(0);return _===0&&this._appendImplicitItems(f),f},z.prototype._appendImplicitItems=function(_){for(var f=new Set,p=_.filter(function(re){return E(re)}),g=0,m=p;g<m.length;g++){var w=m[g],B=w.command,H=w.alt;f.add(B.id),H&&f.add(H.id)}this._commands.forEach(function(re,he){f.has(he)||_.push({command:re})})},z}()),D=function(z){U(_,z);function _(f,p,g){var m=z.call(this,f,p)||this;return m._commandService=g,m}return _.prototype.run=function(){for(var f,p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];return(f=this._commandService).executeCommand.apply(f,R([this.id],p))},_=j([G(2,N.b)],_),_}(I.a),A=function(z){U(_,z);function _(f){var p=this;return typeof f.title=="string"?p=z.call(this,"",f.title,"submenu")||this:p=z.call(this,"",f.title.value,"submenu")||this,p.item=f,p}return _}(I.a),te=function(z){U(_,z);function _(f,p,g,m,w){var B=this;return typeof f.title=="string"?B=z.call(this,f.id,f.title,w)||this:B=z.call(this,f.id,f.title.value,w)||this,B._cssClass=void 0,B._enabled=!f.precondition||m.contextMatchesRules(f.precondition),B._checked=Boolean(f.toggled&&m.contextMatchesRules(f.toggled)),B._options=g||{},B.item=f,B.alt=p?new _(p,void 0,B._options,m,w):void 0,B}return _.prototype.dispose=function(){this.alt&&this.alt.dispose(),z.prototype.dispose.call(this)},_.prototype.run=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];var g=[];return this._options.arg&&(g=R(g,[this._options.arg])),this._options.shouldForwardArgs&&(g=R(g,f)),z.prototype.run.apply(this,g)},_=j([G(3,ne.c),G(4,N.b)],_),_}(D)},"1W4+":function(wt,P,r){},"1Ylb":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return ne});var I=r("PoD0"),oe=Object(I.c)("modelService");function ne(N){return!N.isTooLargeForSyncing()&&!N.isForSimpleWidget}},"1lNs":function(wt,P,r){self.MonacoEnvironment=function(I){function oe(ne){return ne.replace(/\/$/,"")}return{getWorkerUrl:function(N,F){var U=r.p,j=(U?oe(U)+"/":"")+I[F];if(/^(http:)|(https:)|(file:)/.test(j)){var G=String(window.location),R=G.substr(0,G.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(j.substring(0,R.length)!==R){var E="/*"+F+'*/importScripts("'+j+'");';return"data:text/javascript;charset=utf-8,"+encodeURIComponent(E)}}return j}}}({editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"}),r("L4jf"),r("AIFX"),r("In1f"),r("x6KX"),r("/1i4"),r("9wIi"),r("A9WA"),r("6g1z"),r("21EJ"),r("h0Mq"),r("clE0"),r("dBuo"),wt.exports=r("xv8E"),r("mOgA"),r("QMTm"),r("F5fd"),r("qVyD"),r("5PjP"),r("rsec"),r("0Kkq"),r("87aT"),r("qAL+"),r("HfEf"),r("Scml"),r("o1/H"),r("b0bP"),r("nRfS"),r("QWes"),r("sgIQ"),r("8hEA"),r("oJyV"),r("tKu4"),r("astx"),r("7jY6"),r("HPzl"),r("NFtf"),r("fyb1"),r("0r9M"),r("SF7Y"),r("Eb/l"),r("4zlj"),r("zOQw"),r("E6FT"),r("0NiZ"),r("+yL2"),r("umZW"),r("CZFe"),r("mN3h"),r("MgSW"),r("DIJm"),r("i9z8"),r("ECuw"),r("cH1I"),r("+aX+"),r("e1pu"),r("awj8"),r("QHMs"),r("T8Yj"),r("yWTM"),r("0aZp"),r("dJQc"),r("ZHO3"),r("hoER"),r("4HoP"),r("LzG9"),r("8+RW"),r("VoE1"),r("fL8t"),r("d3Gc"),r("iQNv"),r("Y0JX"),r("qCYd"),r("Jghq"),r("KPjc"),r("kpiZ"),r("loeZ"),r("47ao")},"2/w6":function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=0;function oe(){var N="$memoize"+I++,F=void 0,U=function(G,R,E){var x=null,K=null;if(typeof E.value=="function"?(x="value",K=E.value,K.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof E.get=="function"&&(x="get",K=E.get),!K)throw new Error("not supported");var D=N+":"+R;E[x]=function(){for(var A=[],te=0;te<arguments.length;te++)A[te]=arguments[te];return F=this,this.hasOwnProperty(D)||Object.defineProperty(this,D,{configurable:!0,enumerable:!1,writable:!0,value:K.apply(this,A)}),this[D]}};return U.clear=function(){if(typeof F=="undefined")return;Object.getOwnPropertyNames(F).forEach(function(j){j.indexOf(N)===0&&delete F[j]})},U}function ne(N,F,U){return oe()(N,F,U)}},"20Dg":function(wt,P,r){},"21EJ":function(wt,P,r){"use strict";r.r(P),r.d(P,"IPadShowKeyboard",function(){return G});var I=r("NCja"),oe=r.n(I),ne=r("mTMv"),N=r("fF8p"),F=r("bN5T"),U=r("Whdu"),j=function(){var E=function(K,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,te){A.__proto__=te}||function(A,te){for(var z in te)te.hasOwnProperty(z)&&(A[z]=te[z])},E(K,D)};return function(x,K){E(x,K);function D(){this.constructor=x}x.prototype=K===null?Object.create(K):(D.prototype=K.prototype,new D)}}(),G=function(E){j(x,E);function x(K){var D=E.call(this)||this;return D.editor=K,D.widget=null,ne.j&&(D._register(K.onDidChangeConfiguration(function(){return D.update()})),D.update()),D}return x.prototype.update=function(){var K=!this.editor.getOption(68);!this.widget&&K?this.widget=new R(this.editor):this.widget&&!K&&(this.widget.dispose(),this.widget=null)},x.prototype.dispose=function(){E.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},x.ID="editor.contrib.iPadShowKeyboard",x}(F.a),R=function(E){j(x,E);function x(K){var D=E.call(this)||this;return D.editor=K,D._domNode=document.createElement("textarea"),D._domNode.className="iPadShowKeyboard",D._register(N.i(D._domNode,"touchstart",function(A){D.editor.focus()})),D._register(N.i(D._domNode,"focus",function(A){D.editor.focus()})),D.editor.addOverlayWidget(D),D}return x.prototype.dispose=function(){this.editor.removeOverlayWidget(this),E.prototype.dispose.call(this)},x.prototype.getId=function(){return x.ID},x.prototype.getDomNode=function(){return this._domNode},x.prototype.getPosition=function(){return{preference:1}},x.ID="editor.contrib.ShowKeyboardWidget",x}(F.a);Object(U.h)(G.ID,G)},"2GBI":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("bBv/"),oe;(function(ne){ne.editorSimpleInput=new I.d("editorSimpleInput",!1),ne.editorTextFocus=new I.d("editorTextFocus",!1),ne.focus=new I.d("editorFocus",!1),ne.textInputFocus=new I.d("textInputFocus",!1),ne.readOnly=new I.d("editorReadonly",!1),ne.writable=ne.readOnly.toNegated(),ne.hasNonEmptySelection=new I.d("editorHasSelection",!1),ne.hasOnlyEmptySelection=ne.hasNonEmptySelection.toNegated(),ne.hasMultipleSelections=new I.d("editorHasMultipleSelections",!1),ne.hasSingleSelection=ne.hasMultipleSelections.toNegated(),ne.tabMovesFocus=new I.d("editorTabMovesFocus",!1),ne.tabDoesNotMoveFocus=ne.tabMovesFocus.toNegated(),ne.isInEmbeddedEditor=new I.d("isInEmbeddedEditor",!1),ne.canUndo=new I.d("canUndo",!1),ne.canRedo=new I.d("canRedo",!1),ne.languageId=new I.d("editorLangId",""),ne.hasCompletionItemProvider=new I.d("editorHasCompletionItemProvider",!1),ne.hasCodeActionsProvider=new I.d("editorHasCodeActionsProvider",!1),ne.hasCodeLensProvider=new I.d("editorHasCodeLensProvider",!1),ne.hasDefinitionProvider=new I.d("editorHasDefinitionProvider",!1),ne.hasDeclarationProvider=new I.d("editorHasDeclarationProvider",!1),ne.hasImplementationProvider=new I.d("editorHasImplementationProvider",!1),ne.hasTypeDefinitionProvider=new I.d("editorHasTypeDefinitionProvider",!1),ne.hasHoverProvider=new I.d("editorHasHoverProvider",!1),ne.hasDocumentHighlightProvider=new I.d("editorHasDocumentHighlightProvider",!1),ne.hasDocumentSymbolProvider=new I.d("editorHasDocumentSymbolProvider",!1),ne.hasReferenceProvider=new I.d("editorHasReferenceProvider",!1),ne.hasRenameProvider=new I.d("editorHasRenameProvider",!1),ne.hasSignatureHelpProvider=new I.d("editorHasSignatureHelpProvider",!1),ne.hasDocumentFormattingProvider=new I.d("editorHasDocumentFormattingProvider",!1),ne.hasDocumentSelectionFormattingProvider=new I.d("editorHasDocumentSelectionFormattingProvider",!1),ne.hasMultipleDocumentFormattingProvider=new I.d("editorHasMultipleDocumentFormattingProvider",!1),ne.hasMultipleDocumentSelectionFormattingProvider=new I.d("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(oe||(oe={}))},"2Wy8":function(wt,P,r){"use strict";r.d(P,"a",function(){return I}),r.d(P,"b",function(){return oe});var I;(function(ne){ne[ne.None=0]="None",ne[ne.Indent=1]="Indent",ne[ne.IndentOutdent=2]="IndentOutdent",ne[ne.Outdent=3]="Outdent"})(I||(I={}));var oe=function(){function ne(N){if(this.open=N.open,this.close=N.close,this._standardTokenMask=0,Array.isArray(N.notIn))for(var F=0,U=N.notIn.length;F<U;F++){var j=N.notIn[F];switch(j){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}return ne.prototype.isOK=function(N){return(this._standardTokenMask&N)===0},ne}()},"34RT":function(wt,P,r){"use strict";r.d(P,"b",function(){return I}),r.d(P,"a",function(){return ne}),r.d(P,"c",function(){return N}),r.d(P,"d",function(){return j});var I="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function oe(G){G===void 0&&(G="");for(var R="(-?\\d*\\.\\d\\w*)|([^",E=0,x=I;E<x.length;E++){var K=x[E];if(G.indexOf(K)>=0)continue;R+="\\"+K}return R+="\\s]+)",new RegExp(R,"g")}var ne=oe();function N(G){var R=ne;if(G&&G instanceof RegExp)if(G.global)R=G;else{var E="g";G.ignoreCase&&(E+="i"),G.multiline&&(E+="m"),G.unicode&&(E+="u"),R=new RegExp(G.source,E)}return R.lastIndex=0,R}function F(G,R,E,x){var K=G-1-x,D=E.lastIndexOf(" ",K-1)+1;R.lastIndex=D;for(var A;A=R.exec(E);){var te=A.index||0;if(te<=K&&R.lastIndex>=K)return{word:A[0],startColumn:x+1+te,endColumn:x+1+R.lastIndex}}return null}function U(G,R,E,x){var K=G-1-x;R.lastIndex=0;for(var D;D=R.exec(E);){var A=D.index||0;if(A>K)return null;if(R.lastIndex>=K)return{word:D[0],startColumn:x+1+A,endColumn:x+1+R.lastIndex}}return null}function j(G,R,E,x){R.lastIndex=0;var K=R.exec(E);if(!K)return null;var D=K[0].indexOf(" ")>=0?U(G,R,E,x):F(G,R,E,x);return R.lastIndex=0,D}},"3HcJ":function(wt,P,r){"use strict";r.d(P,"a",function(){return j}),r.d(P,"b",function(){return G});var I=r("Inmo"),oe=r("bN5T"),ne=r("fF8p"),N=r("2/w6"),F=function(){var R=function(x,K){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,A){D.__proto__=A}||function(D,A){for(var te in A)A.hasOwnProperty(te)&&(D[te]=A[te])},R(x,K)};return function(E,x){R(E,x);function K(){this.constructor=E}E.prototype=x===null?Object.create(x):(K.prototype=x.prototype,new K)}}(),U=function(R,E,x,K){var D=arguments.length,A=D<3?E:K===null?K=Object.getOwnPropertyDescriptor(E,x):K,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(R,E,x,K);else for(var z=R.length-1;z>=0;z--)(te=R[z])&&(A=(D<3?te(A):D>3?te(E,x,A):te(E,x))||A);return D>3&&A&&Object.defineProperty(E,x,A),A},j;(function(R){R.Tap="-monaco-gesturetap",R.Change="-monaco-gesturechange",R.Start="-monaco-gesturestart",R.End="-monaco-gesturesend",R.Contextmenu="-monaco-gesturecontextmenu"})(j||(j={}));var G=function(R){F(E,R);function E(){var x=R.call(this)||this;return x.dispatched=!1,x.activeTouches={},x.handle=null,x.targets=[],x.ignoreTargets=[],x._lastSetTapCountTime=0,x._register(ne.i(document,"touchstart",function(K){return x.onTouchStart(K)})),x._register(ne.i(document,"touchend",function(K){return x.onTouchEnd(K)})),x._register(ne.i(document,"touchmove",function(K){return x.onTouchMove(K)})),x}return E.addTarget=function(x){return E.isTouchDevice()?(E.INSTANCE||(E.INSTANCE=new E),E.INSTANCE.targets.push(x),{dispose:function(){E.INSTANCE.targets=E.INSTANCE.targets.filter(function(D){return D!==x})}}):oe.a.None},E.ignoreTarget=function(x){return E.isTouchDevice()?(E.INSTANCE||(E.INSTANCE=new E),E.INSTANCE.ignoreTargets.push(x),{dispose:function(){E.INSTANCE.ignoreTargets=E.INSTANCE.ignoreTargets.filter(function(D){return D!==x})}}):oe.a.None},E.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},E.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),R.prototype.dispose.call(this)},E.prototype.onTouchStart=function(x){var K=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var D=0,A=x.targetTouches.length;D<A;D++){var te=x.targetTouches.item(D);this.activeTouches[te.identifier]={id:te.identifier,initialTarget:te.target,initialTimeStamp:K,initialPageX:te.pageX,initialPageY:te.pageY,rollingTimestamps:[K],rollingPageX:[te.pageX],rollingPageY:[te.pageY]};var z=this.newGestureEvent(j.Start,te.target);z.pageX=te.pageX,z.pageY=te.pageY,this.dispatchEvent(z)}this.dispatched&&(x.preventDefault(),x.stopPropagation(),this.dispatched=!1)},E.prototype.onTouchEnd=function(x){for(var K=Date.now(),D=Object.keys(this.activeTouches).length,A=function(p,g){var m=x.changedTouches.item(p);if(!te.activeTouches.hasOwnProperty(String(m.identifier)))return console.warn("move of an UNKNOWN touch",m),"continue";var w=te.activeTouches[m.identifier],B=Date.now()-w.initialTimeStamp;if(B<E.HOLD_DELAY&&Math.abs(w.initialPageX-I.v(w.rollingPageX))<30&&Math.abs(w.initialPageY-I.v(w.rollingPageY))<30){var H=te.newGestureEvent(j.Tap,w.initialTarget);H.pageX=I.v(w.rollingPageX),H.pageY=I.v(w.rollingPageY),te.dispatchEvent(H)}else if(B>=E.HOLD_DELAY&&Math.abs(w.initialPageX-I.v(w.rollingPageX))<30&&Math.abs(w.initialPageY-I.v(w.rollingPageY))<30){var H=te.newGestureEvent(j.Contextmenu,w.initialTarget);H.pageX=I.v(w.rollingPageX),H.pageY=I.v(w.rollingPageY),te.dispatchEvent(H)}else if(D===1){var re=I.v(w.rollingPageX),he=I.v(w.rollingPageY),Ee=I.v(w.rollingTimestamps)-w.rollingTimestamps[0],Se=re-w.rollingPageX[0],q=he-w.rollingPageY[0],Z=te.targets.filter(function(ce){return w.initialTarget instanceof Node&&ce.contains(w.initialTarget)});te.inertia(Z,K,Math.abs(Se)/Ee,Se>0?1:-1,re,Math.abs(q)/Ee,q>0?1:-1,he)}te.dispatchEvent(te.newGestureEvent(j.End,w.initialTarget)),delete te.activeTouches[m.identifier]},te=this,z=0,_=x.changedTouches.length;z<_;z++)A(z,_);this.dispatched&&(x.preventDefault(),x.stopPropagation(),this.dispatched=!1)},E.prototype.newGestureEvent=function(x,K){var D=document.createEvent("CustomEvent");return D.initEvent(x,!1,!0),D.initialTarget=K,D.tapCount=0,D},E.prototype.dispatchEvent=function(x){var K=this;if(x.type===j.Tap){var D=new Date().getTime(),A=0;D-this._lastSetTapCountTime>E.CLEAR_TAP_COUNT_TIME?A=1:A=2,this._lastSetTapCountTime=D,x.tapCount=A}else(x.type===j.Change||x.type===j.Contextmenu)&&(this._lastSetTapCountTime=0);for(var te=0;te<this.ignoreTargets.length;te++)if(x.initialTarget instanceof Node&&this.ignoreTargets[te].contains(x.initialTarget))return;this.targets.forEach(function(z){x.initialTarget instanceof Node&&z.contains(x.initialTarget)&&(z.dispatchEvent(x),K.dispatched=!0)})},E.prototype.inertia=function(x,K,D,A,te,z,_,f){var p=this;this.handle=ne.V(function(){var g=Date.now(),m=g-K,w=0,B=0,H=!0;D+=E.SCROLL_FRICTION*m,z+=E.SCROLL_FRICTION*m,D>0&&(H=!1,w=A*D*m),z>0&&(H=!1,B=_*z*m);var re=p.newGestureEvent(j.Change);re.translationX=w,re.translationY=B,x.forEach(function(he){return he.dispatchEvent(re)}),H||p.inertia(x,g,D,A,te+w,z,_,f+B)})},E.prototype.onTouchMove=function(x){for(var K=Date.now(),D=0,A=x.changedTouches.length;D<A;D++){var te=x.changedTouches.item(D);if(!this.activeTouches.hasOwnProperty(String(te.identifier))){console.warn("end of an UNKNOWN touch",te);continue}var z=this.activeTouches[te.identifier],_=this.newGestureEvent(j.Change,z.initialTarget);_.translationX=te.pageX-I.v(z.rollingPageX),_.translationY=te.pageY-I.v(z.rollingPageY),_.pageX=te.pageX,_.pageY=te.pageY,this.dispatchEvent(_),z.rollingPageX.length>3&&(z.rollingPageX.shift(),z.rollingPageY.shift(),z.rollingTimestamps.shift()),z.rollingPageX.push(te.pageX),z.rollingPageY.push(te.pageY),z.rollingTimestamps.push(K)}this.dispatched&&(x.preventDefault(),x.stopPropagation(),this.dispatched=!1)},E.SCROLL_FRICTION=-.005,E.HOLD_DELAY=700,E.CLEAR_TAP_COUNT_TIME=400,U([N.a],E,"isTouchDevice",null),E}(oe.a)},"3NxR":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return ne});var I=r("FRK7"),oe=function(){function N(F){var U=Object(I.b)(F);this._defaultValue=U,this._asciiMap=N._createAsciiMap(U),this._map=new Map}return N._createAsciiMap=function(F){for(var U=new Uint8Array(256),j=0;j<256;j++)U[j]=F;return U},N.prototype.set=function(F,U){var j=Object(I.b)(U);F>=0&&F<256?this._asciiMap[F]=j:this._map.set(F,j)},N.prototype.get=function(F){return F>=0&&F<256?this._asciiMap[F]:this._map.get(F)||this._defaultValue},N}(),ne=function(){function N(){this._actual=new oe(0)}return N.prototype.add=function(F){this._actual.set(F,1)},N.prototype.has=function(F){return this._actual.get(F)===1},N}()},"41id":function(wt,P,r){"use strict";r.d(P,"a",function(){return U}),r.d(P,"c",function(){return j}),r.d(P,"b",function(){return G});var I=r("PoD0"),oe=r("YK2C"),ne=r("bN5T"),N=r("yqRl"),F=function(){var R=function(x,K){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,A){D.__proto__=A}||function(D,A){for(var te in A)A.hasOwnProperty(te)&&(D[te]=A[te])},R(x,K)};return function(E,x){R(E,x);function K(){this.constructor=E}E.prototype=x===null?Object.create(x):(K.prototype=x.prototype,new K)}}(),U=Object(I.c)("storageService"),j;(function(R){R[R.NONE=0]="NONE",R[R.SHUTDOWN=1]="SHUTDOWN"})(j||(j={}));var G=function(R){F(E,R);function E(){var x=R!==null&&R.apply(this,arguments)||this;return x._onDidChangeStorage=x._register(new oe.a),x.onDidChangeStorage=x._onDidChangeStorage.event,x._onWillSaveState=x._register(new oe.a),x.onWillSaveState=x._onWillSaveState.event,x.globalCache=new Map,x.workspaceCache=new Map,x}return E.prototype.getCache=function(x){return x===0?this.globalCache:this.workspaceCache},E.prototype.get=function(x,K,D){var A=this.getCache(K).get(x);return Object(N.l)(A)?D:A},E.prototype.getBoolean=function(x,K,D){var A=this.getCache(K).get(x);return Object(N.l)(A)?D:A==="true"},E.prototype.store=function(x,K,D){if(Object(N.l)(K))return this.remove(x,D);var A=String(K),te=this.getCache(D).get(x);return te===A||(this.getCache(D).set(x,A),this._onDidChangeStorage.fire({scope:D,key:x})),Promise.resolve()},E.prototype.remove=function(x,K){var D=this.getCache(K).delete(x);return D&&this._onDidChangeStorage.fire({scope:K,key:x}),Promise.resolve()},E}(ne.a)},"47ao":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return r.e(260).then(r.bind(null,"n60k"))}})},"4Hnn":function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("E+fE"),oe=r("YK2C"),ne={JSONContribution:"base.contributions.json"};function N(j){return j.length>0&&j.charAt(j.length-1)==="#"?j.substring(0,j.length-1):j}var F=function(){function j(){this._onDidChangeSchema=new oe.a,this.schemasById={}}return j.prototype.registerSchema=function(G,R){this.schemasById[N(G)]=R,this._onDidChangeSchema.fire(G)},j.prototype.notifySchemaChanged=function(G){this._onDidChangeSchema.fire(G)},j}(),U=new F;I.a.add(ne.JSONContribution,U)},"4HoP":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return r.e(248).then(r.bind(null,"g/9i"))}})},"4u7V":function(wt,P,r){"use strict";r.d(P,"h",function(){return F}),r.d(P,"i",function(){return U}),r.d(P,"f",function(){return x}),r.d(P,"e",function(){return K}),r.d(P,"g",function(){return A}),r.d(P,"a",function(){return te}),r.d(P,"j",function(){return z}),r.d(P,"b",function(){return f}),r.d(P,"l",function(){return p}),r.d(P,"c",function(){return m}),r.d(P,"d",function(){return w}),r.d(P,"k",function(){return B}),r.d(P,"m",function(){return re}),r.d(P,"n",function(){return he}),r.d(P,"o",function(){return Ee}),r.d(P,"q",function(){return Se}),r.d(P,"p",function(){return q});var I=r("g9ht"),oe=r("Ytku"),ne=r("0BkX"),N=r("TwZP"),F=Object(ne.Rb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},I.a("lineHighlight","Background color for the highlight of line at the cursor position.")),U=Object(ne.Rb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},I.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),j=Object(ne.Rb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},I.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),G=Object(ne.Rb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:ne.b},I.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),R=Object(ne.Rb)("editor.symbolHighlightBackground",{dark:ne.t,light:ne.t,hc:null},I.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),E=Object(ne.Rb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:ne.b},I.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),x=Object(ne.Rb)("editorCursor.foreground",{dark:"#AEAFAD",light:oe.a.black,hc:oe.a.white},I.a("caret","Color of the editor cursor.")),K=Object(ne.Rb)("editorCursor.background",null,I.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),D=Object(ne.Rb)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},I.a("editorWhitespaces","Color of whitespace characters in the editor.")),A=Object(ne.Rb)("editorIndentGuide.background",{dark:D,light:D,hc:D},I.a("editorIndentGuides","Color of the editor indentation guides.")),te=Object(ne.Rb)("editorIndentGuide.activeBackground",{dark:D,light:D,hc:D},I.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),z=Object(ne.Rb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:oe.a.white},I.a("editorLineNumbers","Color of editor line numbers.")),_=Object(ne.Rb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:ne.b},I.a("editorActiveLineNumber","Color of editor active line number"),!1,I.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),f=Object(ne.Rb)("editorLineNumber.activeForeground",{dark:_,light:_,hc:_},I.a("editorActiveLineNumber","Color of editor active line number")),p=Object(ne.Rb)("editorRuler.foreground",{dark:"#5A5A5A",light:oe.a.lightgrey,hc:oe.a.white},I.a("editorRuler","Color of the editor rulers.")),g=Object(ne.Rb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},I.a("editorCodeLensForeground","Foreground color of editor code lenses")),m=Object(ne.Rb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},I.a("editorBracketMatchBackground","Background color behind matching brackets")),w=Object(ne.Rb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:ne.e},I.a("editorBracketMatchBorder","Color for matching brackets boxes")),B=Object(ne.Rb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},I.a("editorOverviewRulerBorder","Color of the overview ruler border.")),H=Object(ne.Rb)("editorGutter.background",{dark:ne.o,light:ne.o,hc:ne.o},I.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),re=Object(ne.Rb)("editorUnnecessaryCode.border",{dark:null,light:null,hc:oe.a.fromHex("#fff").transparent(.8)},I.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),he=Object(ne.Rb)("editorUnnecessaryCode.opacity",{dark:oe.a.fromHex("#000a"),light:oe.a.fromHex("#0007"),hc:null},I.a("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),Ee=Object(ne.Rb)("editorOverviewRuler.errorForeground",{dark:new oe.a(new oe.c(255,18,18,.7)),light:new oe.a(new oe.c(255,18,18,.7)),hc:new oe.a(new oe.c(255,50,50,1))},I.a("overviewRuleError","Overview ruler marker color for errors.")),Se=Object(ne.Rb)("editorOverviewRuler.warningForeground",{dark:ne.O,light:ne.O,hc:ne.N},I.a("overviewRuleWarning","Overview ruler marker color for warnings.")),q=Object(ne.Rb)("editorOverviewRuler.infoForeground",{dark:ne.H,light:ne.H,hc:ne.G},I.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(N.e)(function(Z,ce){var Me=Z.getColor(ne.o);Me&&ce.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+Me+"; }");var Ve=Z.getColor(ne.x);Ve&&ce.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+Ve+"; }");var _e=Z.getColor(H);_e&&ce.addRule(".monaco-editor .margin { background-color: "+_e+"; }");var ue=Z.getColor(j);ue&&ce.addRule(".monaco-editor .rangeHighlight { background-color: "+ue+"; }");var se=Z.getColor(G);se&&ce.addRule(".monaco-editor .rangeHighlight { border: 1px "+(Z.type==="hc"?"dotted":"solid")+" "+se+"; }");var fe=Z.getColor(R);fe&&ce.addRule(".monaco-editor .symbolHighlight { background-color: "+fe+"; }");var ie=Z.getColor(E);ie&&ce.addRule(".monaco-editor .symbolHighlight { border: 1px "+(Z.type==="hc"?"dotted":"solid")+" "+ie+"; }");var J=Z.getColor(D);J&&ce.addRule(".vs-whitespace { color: "+J+" !important; }")})},"4zlj":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return r.e(225).then(r.bind(null,"nXTE"))}})},"5Al8":function(wt,P,r){},"5PjP":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return r.e(207).then(r.bind(null,"XfA5"))}})},"5vbK":function(wt,P,r){},"5xAg":function(wt,P,r){"use strict";r.d(P,"b",function(){return R}),r.d(P,"a",function(){return E}),r.d(P,"c",function(){return x});var I=r("GFIr"),oe=r.n(I),ne=r("g9ht"),N=r("S7i+"),F=r("fF8p"),U,j,G;function R(te){U=document.createElement("div"),U.className="monaco-aria-container",j=document.createElement("div"),j.className="monaco-alert",j.setAttribute("role","alert"),j.setAttribute("aria-atomic","true"),U.appendChild(j),G=document.createElement("div"),G.className="monaco-status",G.setAttribute("role","status"),G.setAttribute("aria-atomic","true"),U.appendChild(G),te.appendChild(U)}function E(te,z){A(j,te,z)}function x(te,z){N.e?E(te,z):A(G,te,z)}var K=0,D=void 0;function A(te,z,_){if(!U)return;if(!_){D===z?K++:(D=z,K=0);switch(K){case 0:break;case 1:z=ne.a("repeated","{0} (occurred again)",z);break;default:z=ne.a("repeatedNtimes","{0} (occurred {1} times)",z,K);break}}F.s(te),te.textContent=z,te.style.visibility="hidden",te.style.visibility="visible"}},"6+xD":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return ne});var I=r("fF8p"),oe=function(){function N(F){this.domNode=F,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none"}return N.prototype.setMaxWidth=function(F){if(this._maxWidth===F)return;this._maxWidth=F,this.domNode.style.maxWidth=this._maxWidth+"px"},N.prototype.setWidth=function(F){if(this._width===F)return;this._width=F,this.domNode.style.width=this._width+"px"},N.prototype.setHeight=function(F){if(this._height===F)return;this._height=F,this.domNode.style.height=this._height+"px"},N.prototype.setTop=function(F){if(this._top===F)return;this._top=F,this.domNode.style.top=this._top+"px"},N.prototype.unsetTop=function(){if(this._top===-1)return;this._top=-1,this.domNode.style.top=""},N.prototype.setLeft=function(F){if(this._left===F)return;this._left=F,this.domNode.style.left=this._left+"px"},N.prototype.setBottom=function(F){if(this._bottom===F)return;this._bottom=F,this.domNode.style.bottom=this._bottom+"px"},N.prototype.setRight=function(F){if(this._right===F)return;this._right=F,this.domNode.style.right=this._right+"px"},N.prototype.setFontFamily=function(F){if(this._fontFamily===F)return;this._fontFamily=F,this.domNode.style.fontFamily=this._fontFamily},N.prototype.setFontWeight=function(F){if(this._fontWeight===F)return;this._fontWeight=F,this.domNode.style.fontWeight=this._fontWeight},N.prototype.setFontSize=function(F){if(this._fontSize===F)return;this._fontSize=F,this.domNode.style.fontSize=this._fontSize+"px"},N.prototype.setFontFeatureSettings=function(F){if(this._fontFeatureSettings===F)return;this._fontFeatureSettings=F,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings},N.prototype.setLineHeight=function(F){if(this._lineHeight===F)return;this._lineHeight=F,this.domNode.style.lineHeight=this._lineHeight+"px"},N.prototype.setLetterSpacing=function(F){if(this._letterSpacing===F)return;this._letterSpacing=F,this.domNode.style.letterSpacing=this._letterSpacing+"px"},N.prototype.setClassName=function(F){if(this._className===F)return;this._className=F,this.domNode.className=this._className},N.prototype.toggleClassName=function(F,U){I.X(this.domNode,F,U),this._className=this.domNode.className},N.prototype.setDisplay=function(F){if(this._display===F)return;this._display=F,this.domNode.style.display=this._display},N.prototype.setPosition=function(F){if(this._position===F)return;this._position=F,this.domNode.style.position=this._position},N.prototype.setVisibility=function(F){if(this._visibility===F)return;this._visibility=F,this.domNode.style.visibility=this._visibility},N.prototype.setBackgroundColor=function(F){if(this._backgroundColor===F)return;this._backgroundColor=F,this.domNode.style.backgroundColor=this._backgroundColor},N.prototype.setLayerHinting=function(F){if(this._layerHint===F)return;this._layerHint=F,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":""},N.prototype.setContain=function(F){if(this._contain===F)return;this._contain=F,this.domNode.style.contain=this._contain},N.prototype.setAttribute=function(F,U){this.domNode.setAttribute(F,U)},N.prototype.removeAttribute=function(F){this.domNode.removeAttribute(F)},N.prototype.appendChild=function(F){this.domNode.appendChild(F.domNode)},N.prototype.removeChild=function(F){this.domNode.removeChild(F.domNode)},N}();function ne(N){return new oe(N)}},"67Fg":function(wt,P,r){"use strict";r.d(P,"c",function(){return R}),r.d(P,"e",function(){return x}),r.d(P,"b",function(){return K}),r.d(P,"d",function(){return D}),r.d(P,"f",function(){return A}),r.d(P,"g",function(){return te}),r.d(P,"h",function(){return _}),r.d(P,"a",function(){return f});var I=r("U9+s"),oe=r("xFpO"),ne=r("zOJ8"),N=r("yBOt"),F=r("Ojgo"),U=r("S7i+"),j=function(){for(var p=0,g=0,m=arguments.length;g<m;g++)p+=arguments[g].length;for(var w=Array(p),B=0,g=0;g<m;g++)for(var H=arguments[g],re=0,he=H.length;re<he;re++,B++)w[B]=H[re];return w};function G(p){return p&&p.scheme===F.b.file?!U.d:!0}function R(p){return K(p)||p.authority}function E(p,g){return p===g||Object(N.n)(p,g)}function x(p,g,m){if(m===void 0&&(m=G(p)),p===g)return!0;if(!p||!g)return!1;if(p.scheme!==g.scheme||!E(p.authority,g.authority))return!1;var w=p.path||"/",B=g.path||"/";return w===B||m&&Object(N.n)(w||"/",B||"/")}function K(p){return oe.posix.basename(p.path)}function D(p){if(p.path.length===0)return p;if(p.scheme===F.b.file)return ne.a.file(oe.dirname(z(p)));var g=oe.posix.dirname(p.path);return p.authority&&g.length&&g.charCodeAt(0)!==47&&(console.error('dirname("'+p.toString+")) resulted in a relative path"),g="/"),p.with({path:g})}function A(p){for(var g,m=[],w=1;w<arguments.length;w++)m[w-1]=arguments[w];var B;return p.scheme===F.b.file?B=ne.a.file(oe.join.apply(oe,j([z(p)],m))).path:B=(g=oe.posix).join.apply(g,j([p.path||"/"],m)),p.with({path:B})}function te(p){if(!p.path.length)return p;var g;return p.scheme===F.b.file?g=ne.a.file(oe.normalize(z(p))).path:g=oe.posix.normalize(p.path),p.with({path:g})}function z(p){var g,m=p.path;return p.authority&&m.length>1&&p.scheme===F.b.file?g="//"+p.authority+m:U.h&&m.charCodeAt(0)===47&&I.b(m.charCodeAt(1))&&m.charCodeAt(2)===58?g=m.substr(1):g=m,U.h&&(g=g.replace(/\//g,"\\")),g}function _(p,g,m){if(m===void 0&&(m=G(p)),p.scheme!==g.scheme||!E(p.authority,g.authority))return;if(p.scheme===F.b.file){var w=oe.relative(p.path,g.path);return U.h?I.c(w):w}var B=p.path||"/",H=g.path||"/";if(m){for(var re=0,he=Math.min(B.length,H.length);re<he&&!(B.charCodeAt(re)!==H.charCodeAt(re)&&B.charAt(re).toLowerCase()!==H.charAt(re).toLowerCase());re++);B=H.substr(0,re)+B.substr(re)}return oe.posix.relative(B,H)}var f;(function(p){p.META_DATA_LABEL="label",p.META_DATA_DESCRIPTION="description",p.META_DATA_SIZE="size",p.META_DATA_MIME="mime";function g(m){var w=new Map,B=m.path.substring(m.path.indexOf(";")+1,m.path.lastIndexOf(";"));B.split(";").forEach(function(re){var he=re.split(":"),Ee=he[0],Se=he[1];Ee&&Se&&w.set(Ee,Se)});var H=m.path.substring(0,m.path.indexOf(";"));return H&&w.set(p.META_DATA_MIME,H),w}p.parseMetaData=g})(f||(f={}))},"6FOB":function(wt,P,r){},"6g1z":function(wt,P,r){"use strict";r.r(P);var I=r("Inmo"),oe=r("l+zK"),ne=r("Qun0"),N=r("bN5T"),F=r("Whdu"),U=r("vQ3m"),j=r("3NxR"),G=r("w9Cd"),R=r("2GBI"),E=r("vqGt"),x=r("mRZz"),K=r("5xAg"),D=r("QqjT"),A=r("zOJ8"),te=r("VKfd"),z=r("UO9b"),_=r("V0RK"),f=r("F5bH"),p=r("1Ylb"),g=r("qz6B"),m=function(){function Ye(){}return Ye._handleEolEdits=function(ke,$e){for(var we=void 0,k=[],ee=0,Pe=$e;ee<Pe.length;ee++){var ve=Pe[ee];typeof ve.eol=="number"&&(we=ve.eol),ve.range&&typeof ve.text=="string"&&k.push(ve)}return typeof we=="number"&&(ke.hasModel()&&ke.getModel().pushEOL(we)),k},Ye._isFullModelReplaceEdit=function(ke,$e){if(!ke.hasModel())return!1;var we=ke.getModel(),k=we.validateRange($e.range),ee=we.getFullModelRange();return ee.equalsRange(k)},Ye.execute=function(ke,$e){ke.pushUndoStop();var we=Ye._handleEolEdits(ke,$e);we.length===1&&Ye._isFullModelReplaceEdit(ke,we[0])?ke.executeEdits("formatEditsCommand",we.map(function(k){return g.a.replace(G.a.lift(k.range),k.text)})):ke.executeEdits("formatEditsCommand",we.map(function(k){return g.a.replaceMove(G.a.lift(k.range),k.text)})),ke.pushUndoStop()},Ye}(),w=r("g9ht"),B=function(){function Ye(ke){this.value=ke,this._lower=ke.toLowerCase()}return Ye.toKey=function(ke){return typeof ke=="string"?ke.toLowerCase():ke._lower},Ye}(),H=r("PoD0"),re=r("XAYP"),he=r("OJ8J"),Ee=r("yqRl"),Se=function(Ye,ke,$e,we){function k(ee){return ee instanceof $e?ee:new $e(function(Pe){Pe(ee)})}return new($e||($e=Promise))(function(ee,Pe){function ve(pe){try{Ie(we.next(pe))}catch(nt){Pe(nt)}}function Te(pe){try{Ie(we.throw(pe))}catch(nt){Pe(nt)}}function Ie(pe){pe.done?ee(pe.value):k(pe.value).then(ve,Te)}Ie((we=we.apply(Ye,ke||[])).next())})},q=function(Ye,ke){var $e={label:0,sent:function(){if(ee[0]&1)throw ee[1];return ee[1]},trys:[],ops:[]},we,k,ee,Pe;return Pe={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(Pe[Symbol.iterator]=function(){return this}),Pe;function ve(Ie){return function(pe){return Te([Ie,pe])}}function Te(Ie){if(we)throw new TypeError("Generator is already executing.");for(;$e;)try{if(we=1,k&&(ee=Ie[0]&2?k.return:Ie[0]?k.throw||((ee=k.return)&&ee.call(k),0):k.next)&&!(ee=ee.call(k,Ie[1])).done)return ee;(k=0,ee)&&(Ie=[Ie[0]&2,ee.value]);switch(Ie[0]){case 0:case 1:ee=Ie;break;case 4:return $e.label++,{value:Ie[1],done:!1};case 5:$e.label++,k=Ie[1],Ie=[0];continue;case 7:Ie=$e.ops.pop(),$e.trys.pop();continue;default:if(!(ee=$e.trys,ee=ee.length>0&&ee[ee.length-1])&&(Ie[0]===6||Ie[0]===2)){$e=0;continue}if(Ie[0]===3&&(!ee||Ie[1]>ee[0]&&Ie[1]<ee[3])){$e.label=Ie[1];break}if(Ie[0]===6&&$e.label<ee[1]){$e.label=ee[1],ee=Ie;break}if(ee&&$e.label<ee[2]){$e.label=ee[2],$e.ops.push(Ie);break}ee[2]&&$e.ops.pop(),$e.trys.pop();continue}Ie=ke.call(Ye,$e)}catch(pe){Ie=[6,pe],k=0}finally{we=ee=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}};function Z(Ye){if(Ye=Ye.filter(function(ee){return ee.range}),!Ye.length)return;for(var ke=Ye[0].range,$e=1;$e<Ye.length;$e++)ke=G.a.plusRange(ke,Ye[$e].range);var we=ke.startLineNumber,k=ke.endLineNumber;we===k?Ye.length===1?Object(K.a)(w.a("hint11","Made 1 formatting edit on line {0}",we)):Object(K.a)(w.a("hintn1","Made {0} formatting edits on line {1}",Ye.length,we)):Ye.length===1?Object(K.a)(w.a("hint1n","Made 1 formatting edit between lines {0} and {1}",we,k)):Object(K.a)(w.a("hintnn","Made {0} formatting edits between lines {1} and {2}",Ye.length,we,k))}function ce(Ye){for(var ke=[],$e=new Set,we=E.g.ordered(Ye),k=0,ee=we;k<ee.length;k++){var Pe=ee[k];ke.push(Pe),Pe.extensionId&&$e.add(B.toKey(Pe.extensionId))}for(var ve=E.i.ordered(Ye),Te=function(Et){if(Et.extensionId){if($e.has(B.toKey(Et.extensionId)))return"continue";$e.add(B.toKey(Et.extensionId))}ke.push({displayName:Et.displayName,extensionId:Et.extensionId,provideDocumentFormattingEdits:function(Tt,Ht,Gt){return Et.provideDocumentRangeFormattingEdits(Tt,Tt.getFullModelRange(),Ht,Gt)}})},Ie=0,pe=ve;Ie<pe.length;Ie++){var Pe=pe[Ie];Te(Pe)}return ke}var Me=function(){function Ye(){}return Ye.select=function(ke,$e,we){return Se(this,void 0,void 0,function(){var k;return q(this,function(ee){switch(ee.label){case 0:return ke.length===0?[2,void 0]:(k=Ye._selectors.iterator().next().value,k?[4,k(ke,$e,we)]:[3,2]);case 1:return[2,ee.sent()];case 2:return[2,ke[0]]}})})},Ye._selectors=new re.a,Ye}();function Ve(Ye,ke,$e,we,k){return Se(this,void 0,void 0,function(){var ee,Pe,ve,Te;return q(this,function(Ie){switch(Ie.label){case 0:return ee=Ye.get(H.a),Pe=Object(z.a)(ke)?ke.getModel():ke,ve=E.i.ordered(Pe),[4,Me.select(ve,Pe,we)];case 1:return Te=Ie.sent(),Te?[4,ee.invokeFunction(_e,Te,ke,$e,k)]:[3,3];case 2:Ie.sent(),Ie.label=3;case 3:return[2]}})})}function _e(Ye,ke,$e,we,k){return Se(this,void 0,void 0,function(){var ee,Pe,ve,Te,Ie,pe,nt;return q(this,function(Et){switch(Et.label){case 0:ee=Ye.get(x.a),Object(z.a)($e)?(Pe=$e.getModel(),ve=new te.b($e,1|4,k)):(Pe=$e,ve=new te.d($e,k)),Et.label=1;case 1:return Et.trys.push([1,,4,5]),[4,ke.provideDocumentRangeFormattingEdits(Pe,we,Pe.getFormattingOptions(),ve.token)];case 2:return Ie=Et.sent(),[4,ee.computeMoreMinimalEdits(Pe.uri,Ie)];case 3:return Te=Et.sent(),ve.token.isCancellationRequested?[2,!0]:[3,5];case 4:return ve.dispose(),[7];case 5:return!Te||Te.length===0?[2,!1]:(Object(z.a)($e)?(m.execute($e,Te),Z(Te),$e.pushUndoStop(),$e.revealPositionInCenterIfOutsideViewport($e.getPosition(),1)):(pe=Te[0].range,nt=new f.a(pe.startLineNumber,pe.startColumn,pe.endLineNumber,pe.endColumn),Pe.pushEditOperations([nt],Te.map(function(Rt){return{text:Rt.text,range:G.a.lift(Rt.range),forceMoveMarkers:!0}}),function(Rt){for(var Tt=0,Ht=Rt;Tt<Ht.length;Tt++){var Gt=Ht[Tt].range;if(G.a.areIntersectingOrTouching(Gt,nt))return[new f.a(Gt.startLineNumber,Gt.startColumn,Gt.endLineNumber,Gt.endColumn)]}return null})),[2,!0])}})})}function ue(Ye,ke,$e,we){return Se(this,void 0,void 0,function(){var k,ee,Pe,ve;return q(this,function(Te){switch(Te.label){case 0:return k=Ye.get(H.a),ee=Object(z.a)(ke)?ke.getModel():ke,Pe=ce(ee),[4,Me.select(Pe,ee,$e)];case 1:return ve=Te.sent(),ve?[4,k.invokeFunction(se,ve,ke,$e,we)]:[3,3];case 2:Te.sent(),Te.label=3;case 3:return[2]}})})}function se(Ye,ke,$e,we,k){return Se(this,void 0,void 0,function(){var ee,Pe,ve,Te,Ie,pe,nt;return q(this,function(Et){switch(Et.label){case 0:ee=Ye.get(x.a),Object(z.a)($e)?(Pe=$e.getModel(),ve=new te.b($e,1|4,k)):(Pe=$e,ve=new te.d($e,k)),Et.label=1;case 1:return Et.trys.push([1,,4,5]),[4,ke.provideDocumentFormattingEdits(Pe,Pe.getFormattingOptions(),ve.token)];case 2:return Ie=Et.sent(),[4,ee.computeMoreMinimalEdits(Pe.uri,Ie)];case 3:return Te=Et.sent(),ve.token.isCancellationRequested?[2,!0]:[3,5];case 4:return ve.dispose(),[7];case 5:return!Te||Te.length===0?[2,!1]:(Object(z.a)($e)?(m.execute($e,Te),we!==2&&(Z(Te),$e.pushUndoStop(),$e.revealPositionInCenterIfOutsideViewport($e.getPosition(),1))):(pe=Te[0].range,nt=new f.a(pe.startLineNumber,pe.startColumn,pe.endLineNumber,pe.endColumn),Pe.pushEditOperations([nt],Te.map(function(Rt){return{text:Rt.text,range:G.a.lift(Rt.range),forceMoveMarkers:!0}}),function(Rt){for(var Tt=0,Ht=Rt;Tt<Ht.length;Tt++){var Gt=Ht[Tt].range;if(G.a.areIntersectingOrTouching(Gt,nt))return[new f.a(Gt.startLineNumber,Gt.startColumn,Gt.endLineNumber,Gt.endColumn)]}return null})),[2,!0])}})})}function fe(Ye,ke,$e,we,k){return Se(this,void 0,void 0,function(){var ee,Pe,ve,Te,Ie;return q(this,function(pe){switch(pe.label){case 0:ee=E.i.ordered(ke),Pe=0,ve=ee,pe.label=1;case 1:return Pe<ve.length?(Te=ve[Pe],[4,Promise.resolve(Te.provideDocumentRangeFormattingEdits(ke,$e,we,k)).catch(D.f)]):[3,5];case 2:return Ie=pe.sent(),Object(I.q)(Ie)?[4,Ye.computeMoreMinimalEdits(ke.uri,Ie)]:[3,4];case 3:return[2,pe.sent()];case 4:return Pe++,[3,1];case 5:return[2,void 0]}})})}function ie(Ye,ke,$e,we){return Se(this,void 0,void 0,function(){var k,ee,Pe,ve,Te;return q(this,function(Ie){switch(Ie.label){case 0:k=ce(ke),ee=0,Pe=k,Ie.label=1;case 1:return ee<Pe.length?(ve=Pe[ee],[4,Promise.resolve(ve.provideDocumentFormattingEdits(ke,$e,we)).catch(D.f)]):[3,5];case 2:return Te=Ie.sent(),Object(I.q)(Te)?[4,Ye.computeMoreMinimalEdits(ke.uri,Te)]:[3,4];case 3:return[2,Ie.sent()];case 4:return ee++,[3,1];case 5:return[2,void 0]}})})}function J(Ye,ke,$e,we,k){var ee=E.s.ordered(ke);return ee.length===0||ee[0].autoFormatTriggerCharacters.indexOf(we)<0?Promise.resolve(void 0):Promise.resolve(ee[0].provideOnTypeFormattingEdits(ke,$e,we,k,oe.a.None)).catch(D.f).then(function(Pe){return Ye.computeMoreMinimalEdits(ke.uri,Pe)})}he.a.registerCommand("_executeFormatRangeProvider",function(Ye){for(var ke=[],$e=1;$e<arguments.length;$e++)ke[$e-1]=arguments[$e];var we=ke[0],k=ke[1],ee=ke[2];Object(Ee.a)(A.a.isUri(we)),Object(Ee.a)(G.a.isIRange(k));var Pe=Ye.get(p.a).getModel(we);if(!Pe)throw Object(D.b)("resource");return fe(Ye.get(x.a),Pe,G.a.lift(k),ee,oe.a.None)}),he.a.registerCommand("_executeFormatDocumentProvider",function(Ye){for(var ke=[],$e=1;$e<arguments.length;$e++)ke[$e-1]=arguments[$e];var we=ke[0],k=ke[1];Object(Ee.a)(A.a.isUri(we));var ee=Ye.get(p.a).getModel(we);if(!ee)throw Object(D.b)("resource");return ie(Ye.get(x.a),ee,k,oe.a.None)}),he.a.registerCommand("_executeFormatOnTypeProvider",function(Ye){for(var ke=[],$e=1;$e<arguments.length;$e++)ke[$e-1]=arguments[$e];var we=ke[0],k=ke[1],ee=ke[2],Pe=ke[3];Object(Ee.a)(A.a.isUri(we)),Object(Ee.a)(_.a.isIPosition(k)),Object(Ee.a)(typeof ee=="string");var ve=Ye.get(p.a).getModel(we);if(!ve)throw Object(D.b)("resource");return J(Ye.get(x.a),ve,_.a.lift(k),ee,Pe)});var me=r("bBv/"),ye=function(){var Ye=function($e,we){return Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,ee){k.__proto__=ee}||function(k,ee){for(var Pe in ee)ee.hasOwnProperty(Pe)&&(k[Pe]=ee[Pe])},Ye($e,we)};return function(ke,$e){Ye(ke,$e);function we(){this.constructor=ke}ke.prototype=$e===null?Object.create($e):(we.prototype=$e.prototype,new we)}}(),ze=function(Ye,ke,$e,we){var k=arguments.length,ee=k<3?ke:we===null?we=Object.getOwnPropertyDescriptor(ke,$e):we,Pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ee=Reflect.decorate(Ye,ke,$e,we);else for(var ve=Ye.length-1;ve>=0;ve--)(Pe=Ye[ve])&&(ee=(k<3?Pe(ee):k>3?Pe(ke,$e,ee):Pe(ke,$e))||ee);return k>3&&ee&&Object.defineProperty(ke,$e,ee),ee},tt=function(Ye,ke){return function($e,we){ke($e,we,Ye)}},_t=function(Ye,ke,$e,we){function k(ee){return ee instanceof $e?ee:new $e(function(Pe){Pe(ee)})}return new($e||($e=Promise))(function(ee,Pe){function ve(pe){try{Ie(we.next(pe))}catch(nt){Pe(nt)}}function Te(pe){try{Ie(we.throw(pe))}catch(nt){Pe(nt)}}function Ie(pe){pe.done?ee(pe.value):k(pe.value).then(ve,Te)}Ie((we=we.apply(Ye,ke||[])).next())})},Pt=function(Ye,ke){var $e={label:0,sent:function(){if(ee[0]&1)throw ee[1];return ee[1]},trys:[],ops:[]},we,k,ee,Pe;return Pe={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(Pe[Symbol.iterator]=function(){return this}),Pe;function ve(Ie){return function(pe){return Te([Ie,pe])}}function Te(Ie){if(we)throw new TypeError("Generator is already executing.");for(;$e;)try{if(we=1,k&&(ee=Ie[0]&2?k.return:Ie[0]?k.throw||((ee=k.return)&&ee.call(k),0):k.next)&&!(ee=ee.call(k,Ie[1])).done)return ee;(k=0,ee)&&(Ie=[Ie[0]&2,ee.value]);switch(Ie[0]){case 0:case 1:ee=Ie;break;case 4:return $e.label++,{value:Ie[1],done:!1};case 5:$e.label++,k=Ie[1],Ie=[0];continue;case 7:Ie=$e.ops.pop(),$e.trys.pop();continue;default:if(!(ee=$e.trys,ee=ee.length>0&&ee[ee.length-1])&&(Ie[0]===6||Ie[0]===2)){$e=0;continue}if(Ie[0]===3&&(!ee||Ie[1]>ee[0]&&Ie[1]<ee[3])){$e.label=Ie[1];break}if(Ie[0]===6&&$e.label<ee[1]){$e.label=ee[1],ee=Ie;break}if(ee&&$e.label<ee[2]){$e.label=ee[2],$e.ops.push(Ie);break}ee[2]&&$e.ops.pop(),$e.trys.pop();continue}Ie=ke.call(Ye,$e)}catch(pe){Ie=[6,pe],k=0}finally{we=ee=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},Xt=function(){function Ye(ke,$e){var we=this;this._workerService=$e,this._callOnDispose=new N.b,this._callOnModel=new N.b,this._editor=ke,this._callOnDispose.add(ke.onDidChangeConfiguration(function(){return we._update()})),this._callOnDispose.add(ke.onDidChangeModel(function(){return we._update()})),this._callOnDispose.add(ke.onDidChangeModelLanguage(function(){return we._update()})),this._callOnDispose.add(E.s.onDidChange(this._update,this))}return Ye.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Ye.prototype._update=function(){var ke=this;if(this._callOnModel.clear(),!this._editor.getOption(39))return;if(!this._editor.hasModel())return;var $e=this._editor.getModel(),we=E.s.ordered($e)[0];if(!we||!we.autoFormatTriggerCharacters)return;for(var k=new j.b,ee=0,Pe=we.autoFormatTriggerCharacters;ee<Pe.length;ee++){var ve=Pe[ee];k.add(ve.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType(function(Te){var Ie=Te.charCodeAt(Te.length-1);k.has(Ie)&&ke._trigger(String.fromCharCode(Ie))}))},Ye.prototype._trigger=function(ke){var $e=this;if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1)return;var we=this._editor.getModel(),k=this._editor.getPosition(),ee=!1,Pe=this._editor.onDidChangeModelContent(function(ve){if(ve.isFlush){ee=!0,Pe.dispose();return}for(var Te=0,Ie=ve.changes.length;Te<Ie;Te++){var pe=ve.changes[Te];if(pe.range.endLineNumber<=k.lineNumber){ee=!0,Pe.dispose();return}}});J(this._workerService,we,k,ke,we.getFormattingOptions()).then(function(ve){if(Pe.dispose(),ee)return;Object(I.q)(ve)&&(m.execute($e._editor,ve),Z(ve))},function(ve){throw Pe.dispose(),ve})},Ye.ID="editor.contrib.autoFormat",Ye=ze([tt(1,x.a)],Ye),Ye}(),Ke=function(){function Ye(ke,$e){var we=this;this.editor=ke,this._instantiationService=$e,this._callOnDispose=new N.b,this._callOnModel=new N.b,this._callOnDispose.add(ke.onDidChangeConfiguration(function(){return we._update()})),this._callOnDispose.add(ke.onDidChangeModel(function(){return we._update()})),this._callOnDispose.add(ke.onDidChangeModelLanguage(function(){return we._update()})),this._callOnDispose.add(E.i.onDidChange(this._update,this))}return Ye.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},Ye.prototype._update=function(){var ke=this;if(this._callOnModel.clear(),!this.editor.getOption(38))return;if(!this.editor.hasModel())return;if(!E.i.has(this.editor.getModel()))return;this._callOnModel.add(this.editor.onDidPaste(function($e){var we=$e.range;return ke._trigger(we)}))},Ye.prototype._trigger=function(ke){if(!this.editor.hasModel())return;if(this.editor.getSelections().length>1)return;this._instantiationService.invokeFunction(Ve,this.editor,ke,2,oe.a.None).catch(D.e)},Ye.ID="editor.contrib.formatOnPaste",Ye=ze([tt(1,H.a)],Ye),Ye}(),Xe=function(Ye){ye(ke,Ye);function ke(){return Ye.call(this,{id:"editor.action.formatDocument",label:w.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:me.a.and(R.a.writable,R.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:me.a.and(R.a.editorTextFocus,R.a.hasDocumentFormattingProvider),primary:1024|512|36,linux:{primary:2048|1024|39},weight:100},contextMenuOpts:{when:R.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return ke.prototype.run=function($e,we){return _t(this,void 0,void 0,function(){var k;return Pt(this,function(ee){switch(ee.label){case 0:return we.hasModel()?(k=$e.get(H.a),[4,k.invokeFunction(ue,we,1,oe.a.None)]):[3,2];case 1:ee.sent(),ee.label=2;case 2:return[2]}})})},ke}(F.b),Ze=function(Ye){ye(ke,Ye);function ke(){return Ye.call(this,{id:"editor.action.formatSelection",label:w.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:me.a.and(R.a.writable,R.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:me.a.and(R.a.editorTextFocus,R.a.hasDocumentSelectionFormattingProvider),primary:Object(ne.a)(2048|41,2048|36),weight:100},contextMenuOpts:{when:me.a.and(R.a.hasDocumentSelectionFormattingProvider,R.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return ke.prototype.run=function($e,we){return _t(this,void 0,void 0,function(){var k,ee,Pe;return Pt(this,function(ve){switch(ve.label){case 0:return we.hasModel()?(k=$e.get(H.a),ee=we.getModel(),Pe=we.getSelection(),Pe.isEmpty()&&(Pe=new G.a(Pe.startLineNumber,1,Pe.startLineNumber,ee.getLineMaxColumn(Pe.startLineNumber))),[4,k.invokeFunction(Ve,we,Pe,1,oe.a.None)]):[2];case 1:return ve.sent(),[2]}})})},ke}(F.b);Object(F.h)(Xt.ID,Xt),Object(F.h)(Ke.ID,Ke),Object(F.f)(Xe),Object(F.f)(Ze),he.a.registerCommand("editor.action.format",function(Ye){return _t(void 0,void 0,void 0,function(){var ke,$e;return Pt(this,function(we){switch(we.label){case 0:return ke=Ye.get(U.a).getFocusedCodeEditor(),!ke||!ke.hasModel()?[2]:($e=Ye.get(he.b),ke.getSelection().isEmpty()?[4,$e.executeCommand("editor.action.formatDocument")]:[3,2]);case 1:return we.sent(),[3,4];case 2:return[4,$e.executeCommand("editor.action.formatSelection")];case 3:we.sent(),we.label=4;case 4:return[2]}})})})},"6oPh":function(wt,P,r){},"6zAk":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("YK2C"),oe=function(F,U,j){var G=function(x){return R.fire(x)},R=new I.a({onFirstListenerAdd:function(){F.addEventListener(U,G,j)},onLastListenerRemove:function(){F.removeEventListener(U,G,j)}});return R.event};function ne(N){return I.b.map(N,function(F){return F.preventDefault(),F.stopPropagation(),F})}},"7Ohf":function(wt,P,r){},"7jY6":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return r.e(220).then(r.bind(null,"zO9b"))}})},"7wrl":function(wt,P,r){"use strict";r.d(P,"a",function(){return F}),r.d(P,"b",function(){return j}),r.d(P,"c",function(){return E});var I=r("0BkX"),oe=function(){return oe=Object.assign||function(x){for(var K,D=1,A=arguments.length;D<A;D++){K=arguments[D];for(var te in K)Object.prototype.hasOwnProperty.call(K,te)&&(x[te]=K[te])}return x},oe.apply(this,arguments)};function ne(x,K){var D=Object.create(null);for(var A in K){var te=K[A];te&&(D[A]=Object(I.Sb)(te,x))}return D}function N(x,K,D){function A(te){var z=ne(x.getTheme(),K);typeof D=="function"?D(z):D.style(z)}return A(x.getTheme()),x.onThemeChange(A)}function F(x,K,D){return N(K,{badgeBackground:D&&D.badgeBackground||I.c,badgeForeground:D&&D.badgeForeground||I.d,badgeBorder:I.e},x)}function U(x,K,D){return N(K,{foreground:D&&D.foreground||I.V,background:D&&D.background||I.o,borderColor:D&&D.borderColor||I.e,widgetShadow:D&&D.widgetShadow||I.fc,progressBarBackground:D&&D.progressBarBackground||I.Qb,pickerGroupForeground:D&&D.pickerGroupForeground||I.Mb,pickerGroupBorder:D&&D.pickerGroupBorder||I.Lb,inputBackground:D&&D.inputBackground||I.Y,inputForeground:D&&D.inputForeground||I.ab,inputBorder:D&&D.inputBorder||I.Z,inputValidationInfoBorder:D&&D.inputValidationInfoBorder||I.fb,inputValidationInfoBackground:D&&D.inputValidationInfoBackground||I.eb,inputValidationInfoForeground:D&&D.inputValidationInfoForeground||I.gb,inputValidationWarningBorder:D&&D.inputValidationWarningBorder||I.ib,inputValidationWarningBackground:D&&D.inputValidationWarningBackground||I.hb,inputValidationWarningForeground:D&&D.inputValidationWarningForeground||I.jb,inputValidationErrorBorder:D&&D.inputValidationErrorBorder||I.cb,inputValidationErrorBackground:D&&D.inputValidationErrorBackground||I.bb,inputValidationErrorForeground:D&&D.inputValidationErrorForeground||I.db,listFocusBackground:D&&D.listFocusBackground||I.qb,listFocusForeground:D&&D.listFocusForeground||I.rb,listActiveSelectionBackground:D&&D.listActiveSelectionBackground||Object(I.f)(I.kb,.1),listActiveSelectionForeground:D&&D.listActiveSelectionForeground||I.lb,listFocusAndSelectionBackground:D&&D.listFocusAndSelectionBackground||I.kb,listFocusAndSelectionForeground:D&&D.listFocusAndSelectionForeground||I.lb,listInactiveSelectionBackground:D&&D.listInactiveSelectionBackground||I.wb,listInactiveSelectionForeground:D&&D.listInactiveSelectionForeground||I.xb,listInactiveFocusBackground:D&&D.listInactiveFocusBackground||I.vb,listHoverBackground:D&&D.listHoverBackground||I.tb,listHoverForeground:D&&D.listHoverForeground||I.ub,listDropBackground:D&&D.listDropBackground||I.mb,listFocusOutline:D&&D.listFocusOutline||I.b,listSelectionOutline:D&&D.listSelectionOutline||I.b,listHoverOutline:D&&D.listHoverOutline||I.b},x)}function j(x,K,D){return N(K,oe(oe({},G),D||{}),x)}var G={listFocusBackground:I.qb,listFocusForeground:I.rb,listActiveSelectionBackground:Object(I.f)(I.kb,.1),listActiveSelectionForeground:I.lb,listFocusAndSelectionBackground:I.kb,listFocusAndSelectionForeground:I.lb,listInactiveSelectionBackground:I.wb,listInactiveSelectionForeground:I.xb,listInactiveFocusBackground:I.vb,listHoverBackground:I.tb,listHoverForeground:I.ub,listDropBackground:I.mb,listFocusOutline:I.b,listSelectionOutline:I.b,listHoverOutline:I.b,listFilterWidgetBackground:I.nb,listFilterWidgetOutline:I.pb,listFilterWidgetNoMatchesOutline:I.ob,listMatchesShadow:I.fc,treeIndentGuidesStroke:I.ec},R={shadowColor:I.fc,borderColor:I.zb,foregroundColor:I.Ab,backgroundColor:I.yb,selectionForegroundColor:I.Db,selectionBackgroundColor:I.Bb,selectionBorderColor:I.Cb,separatorColor:I.Eb};function E(x,K,D){return N(K,oe(oe({},R),D),x)}},"8+RW":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return r.e(250).then(r.bind(null,"ZcQk"))}})},"87aT":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return r.e(19).then(r.bind(null,"MQtB"))}}),Object(I.a)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return r.e(19).then(r.bind(null,"MQtB"))}})},"8ZZ4":function(wt,P,r){"use strict";r.d(P,"b",function(){return Gi}),r.d(P,"a",function(){return Di});var I=r("QqjT"),oe=r("YK2C"),ne=r("bN5T"),N=r("yBOt"),F=r("zOJ8"),U=r("juCB"),j=r("V0RK"),G=r("w9Cd"),R=r("F5bH"),E=r("/l9y"),x=function(){function Je(O,T){this.beforeVersionId=O,this.beforeCursorState=T,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return Je.prototype.undo=function(O){for(var T=this.editOperations.length-1;T>=0;T--)this.editOperations[T]={operations:O.applyEdits(this.editOperations[T].operations)}},Je.prototype.redo=function(O){for(var T=0;T<this.editOperations.length;T++)this.editOperations[T]={operations:O.applyEdits(this.editOperations[T].operations)}},Je}();function K(Je){var O=Je.getEOL();return O===`
|
|
`?0:1}var D=function(){function Je(O,T){this.beforeVersionId=O,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=T}return Je.prototype.undo=function(O){var T=K(O);O.setEOL(this.eol),this.eol=T},Je.prototype.redo=function(O){var T=K(O);O.setEOL(this.eol),this.eol=T},Je}(),A=function(){function Je(O){this.model=O,this.currentOpenStackElement=null,this.past=[],this.future=[]}return Je.prototype.pushStackElement=function(){this.currentOpenStackElement!==null&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},Je.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},Je.prototype.pushEOL=function(O){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var T=K(this.model),Y=new D(this.model.getAlternativeVersionId(),T);this.model.setEOL(O),Y.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=Y,this.pushStackElement()},Je.prototype.pushEditOperation=function(O,T,Y){this.future=[];var De=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof x?De=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(De=new x(this.model.getAlternativeVersionId(),O),this.currentOpenStackElement=De);var Re={operations:this.model.applyEdits(T)};return De.editOperations.push(Re),De.afterCursorState=Je._computeCursorState(Y,Re.operations),De.afterVersionId=this.model.getVersionId(),De.afterCursorState},Je._computeCursorState=function(O,T){try{return O?O(T):null}catch(Y){return Object(I.e)(Y),null}},Je.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var O=this.past.pop();try{O.undo(this.model)}catch(T){return Object(I.e)(T),this.clear(),null}return this.future.push(O),{selections:O.beforeCursorState,recordedVersionId:O.beforeVersionId}}return null},Je.prototype.canUndo=function(){return this.past.length>0||this.currentOpenStackElement!==null},Je.prototype.redo=function(){if(this.future.length>0){var O=this.future.pop();try{O.redo(this.model)}catch(T){return Object(I.e)(T),this.clear(),null}return this.past.push(O),{selections:O.afterCursorState,recordedVersionId:O.afterVersionId}}return null},Je.prototype.canRedo=function(){return this.future.length>0},Je}(),te=function(){function Je(){this.spacesDiff=0,this.looksLikeAlignment=!1}return Je}();function z(Je,O,T,Y,De){De.spacesDiff=0,De.looksLikeAlignment=!1;var Re;for(Re=0;Re<O&&Re<Y;Re++){var We=Je.charCodeAt(Re),ft=T.charCodeAt(Re);if(We!==ft)break}for(var lt=0,yt=0,xt=Re;xt<O;xt++){var We=Je.charCodeAt(xt);We===32?lt++:yt++}for(var It=0,kt=0,xt=Re;xt<Y;xt++){var ft=T.charCodeAt(xt);ft===32?It++:kt++}if(lt>0&&yt>0)return;if(It>0&&kt>0)return;var Yt=Math.abs(yt-kt),Zt=Math.abs(lt-It);if(Yt===0){De.spacesDiff=Zt,Zt>0&&0<=It-1&&It-1<Je.length&&It<T.length&&(T.charCodeAt(It)!==32&&Je.charCodeAt(It-1)===32&&(Je.charCodeAt(Je.length-1)===44&&(De.looksLikeAlignment=!0)));return}if(Zt%Yt===0){De.spacesDiff=Zt/Yt;return}}function _(Je,O,T){for(var Y=Math.min(Je.getLineCount(),1e4),De=0,Re=0,We="",ft=0,lt=[2,4,6,8,3,5,7],yt=8,xt=[0,0,0,0,0,0,0,0,0],It=new te,kt=1;kt<=Y;kt++){for(var Yt=Je.getLineLength(kt),Zt=Je.getLineContent(kt),dn=Yt<=65536,fn=!1,An=0,gn=0,Mn=0,xn=0,Le=Yt;xn<Le;xn++){var W=dn?Zt.charCodeAt(xn):Je.getLineCharCode(kt,xn);if(W===9)Mn++;else if(W===32)gn++;else{fn=!0,An=xn;break}}if(!fn)continue;if(Mn>0?De++:gn>1&&Re++,z(We,ft,Zt,An,It),It.looksLikeAlignment&&!(T&&O===It.spacesDiff))continue;var ae=It.spacesDiff;ae<=yt&&xt[ae]++,We=Zt,ft=An}var Fe=T;De!==Re&&(Fe=De<Re);var qe=O;if(Fe){var ct=Fe?0:.1*Y;lt.forEach(function(St){var Ge=xt[St];Ge>ct&&(ct=Ge,qe=St)}),qe===4&&xt[4]>0&&xt[2]>0&&xt[2]>=xt[4]/2&&(qe=2)}return{insertSpaces:Fe,tabSize:qe}}function f(Je){return(Je.metadata&1)>>>0}function p(Je,O){Je.metadata=Je.metadata&254|O<<0}function g(Je){return(Je.metadata&2)>>>1===1}function m(Je,O){Je.metadata=Je.metadata&253|(O?1:0)<<1}function w(Je){return(Je.metadata&4)>>>2===1}function B(Je,O){Je.metadata=Je.metadata&251|(O?1:0)<<2}function H(Je){return(Je.metadata&8)>>>3===1}function re(Je,O){Je.metadata=Je.metadata&247|(O?1:0)<<3}function he(Je){return(Je.metadata&48)>>>4}function Ee(Je,O){Je.metadata=Je.metadata&207|O<<4}function Se(Je){return(Je.metadata&64)>>>6===1}function q(Je,O){Je.metadata=Je.metadata&191|(O?1:0)<<6}var Z=function(){function Je(O,T,Y){this.metadata=0,this.parent=this,this.left=this,this.right=this,p(this,1),this.start=T,this.end=Y,this.delta=0,this.maxEnd=Y,this.id=O,this.ownerId=0,this.options=null,B(this,!1),Ee(this,1),re(this,!1),q(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=T,this.cachedAbsoluteEnd=Y,this.range=null,m(this,!1)}return Je.prototype.reset=function(O,T,Y,De){this.start=T,this.end=Y,this.maxEnd=Y,this.cachedVersionId=O,this.cachedAbsoluteStart=T,this.cachedAbsoluteEnd=Y,this.range=De},Je.prototype.setOptions=function(O){this.options=O;var T=this.options.className;B(this,T==="squiggly-error"||T==="squiggly-warning"||T==="squiggly-info"),Ee(this,this.options.stickiness),re(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),q(this,this.options.collapseOnReplaceEdit)},Je.prototype.setCachedOffsets=function(O,T,Y){this.cachedVersionId!==Y&&(this.range=null),this.cachedVersionId=Y,this.cachedAbsoluteStart=O,this.cachedAbsoluteEnd=T},Je.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},Je}(),ce=new Z(null,0,0);ce.parent=ce,ce.left=ce,ce.right=ce,p(ce,0);var Me=function(){function Je(){this.root=ce,this.requestNormalizeDelta=!1}return Je.prototype.intervalSearch=function(O,T,Y,De,Re){return this.root===ce?[]:ye(this,O,T,Y,De,Re)},Je.prototype.search=function(O,T,Y){return this.root===ce?[]:me(this,O,T,Y)},Je.prototype.collectNodesFromOwner=function(O){return ie(this,O)},Je.prototype.collectNodesPostOrder=function(){return J(this)},Je.prototype.insert=function(O){ze(this,O),this._normalizeDeltaIfNecessary()},Je.prototype.delete=function(O){_t(this,O),this._normalizeDeltaIfNecessary()},Je.prototype.resolveNode=function(O,T){for(var Y=O,De=0;O!==this.root;)O===O.parent.right&&(De+=O.parent.delta),O=O.parent;var Re=Y.start+De,We=Y.end+De;Y.setCachedOffsets(Re,We,T)},Je.prototype.acceptReplace=function(O,T,Y,De){for(var Re=se(this,O,O+T),We=0,ft=Re.length;We<ft;We++){var lt=Re[We];_t(this,lt)}this._normalizeDeltaIfNecessary(),fe(this,O,O+T,Y),this._normalizeDeltaIfNecessary();for(var We=0,ft=Re.length;We<ft;We++){var lt=Re[We];lt.start=lt.cachedAbsoluteStart,lt.end=lt.cachedAbsoluteEnd,ue(lt,O,O+T,Y,De),lt.maxEnd=lt.end,ze(this,lt)}this._normalizeDeltaIfNecessary()},Je.prototype._normalizeDeltaIfNecessary=function(){if(!this.requestNormalizeDelta)return;this.requestNormalizeDelta=!1,Ve(this)},Je}();function Ve(Je){for(var O=Je.root,T=0;O!==ce;){if(O.left!==ce&&!g(O.left)){O=O.left;continue}if(O.right!==ce&&!g(O.right)){T+=O.delta,O=O.right;continue}O.start=T+O.start,O.end=T+O.end,O.delta=0,Ye(O),m(O,!0),m(O.left,!1),m(O.right,!1),O===O.parent.right&&(T-=O.parent.delta),O=O.parent}m(Je.root,!1)}function _e(Je,O,T,Y){return Je<T?!0:Je>T||Y===1?!1:Y===2?!0:O}function ue(Je,O,T,Y,De){var Re=he(Je),We=Re===0||Re===2,ft=Re===1||Re===2,lt=T-O,yt=Y,xt=Math.min(lt,yt),It=Je.start,kt=!1,Yt=Je.end,Zt=!1;O<=It&&Yt<=T&&Se(Je)&&(Je.start=O,kt=!0,Je.end=O,Zt=!0);{var dn=De?1:lt>0?2:0;!kt&&_e(It,We,O,dn)&&(kt=!0),!Zt&&_e(Yt,ft,O,dn)&&(Zt=!0)}if(xt>0&&!De){var dn=lt>yt?2:0;!kt&&_e(It,We,O+xt,dn)&&(kt=!0),!Zt&&_e(Yt,ft,O+xt,dn)&&(Zt=!0)}{var dn=De?1:0;!kt&&_e(It,We,T,dn)&&(Je.start=O+yt,kt=!0),!Zt&&_e(Yt,ft,T,dn)&&(Je.end=O+yt,Zt=!0)}var fn=yt-lt;kt||(Je.start=Math.max(0,It+fn)),Zt||(Je.end=Math.max(0,Yt+fn)),Je.start>Je.end&&(Je.end=Je.start)}function se(Je,O,T){for(var Y=Je.root,De=0,Re=0,We=0,ft=0,lt=[],yt=0;Y!==ce;){if(g(Y)){m(Y.left,!1),m(Y.right,!1),Y===Y.parent.right&&(De-=Y.parent.delta),Y=Y.parent;continue}if(!g(Y.left)){if(Re=De+Y.maxEnd,Re<O){m(Y,!0);continue}if(Y.left!==ce){Y=Y.left;continue}}if(We=De+Y.start,We>T){m(Y,!0);continue}if(ft=De+Y.end,ft>=O&&(Y.setCachedOffsets(We,ft,0),lt[yt++]=Y),m(Y,!0),Y.right!==ce&&!g(Y.right)){De+=Y.delta,Y=Y.right;continue}}return m(Je.root,!1),lt}function fe(Je,O,T,Y){for(var De=Je.root,Re=0,We=0,ft=0,lt=Y-(T-O);De!==ce;){if(g(De)){m(De.left,!1),m(De.right,!1),De===De.parent.right&&(Re-=De.parent.delta),Ye(De),De=De.parent;continue}if(!g(De.left)){if(We=Re+De.maxEnd,We<O){m(De,!0);continue}if(De.left!==ce){De=De.left;continue}}if(ft=Re+De.start,ft>T){De.start+=lt,De.end+=lt,De.delta+=lt,(De.delta<-1073741824||De.delta>1073741824)&&(Je.requestNormalizeDelta=!0),m(De,!0);continue}if(m(De,!0),De.right!==ce&&!g(De.right)){Re+=De.delta,De=De.right;continue}}m(Je.root,!1)}function ie(Je,O){for(var T=Je.root,Y=[],De=0;T!==ce;){if(g(T)){m(T.left,!1),m(T.right,!1),T=T.parent;continue}if(T.left!==ce&&!g(T.left)){T=T.left;continue}if(T.ownerId===O&&(Y[De++]=T),m(T,!0),T.right!==ce&&!g(T.right)){T=T.right;continue}}return m(Je.root,!1),Y}function J(Je){for(var O=Je.root,T=[],Y=0;O!==ce;){if(g(O)){m(O.left,!1),m(O.right,!1),O=O.parent;continue}if(O.left!==ce&&!g(O.left)){O=O.left;continue}if(O.right!==ce&&!g(O.right)){O=O.right;continue}T[Y++]=O,m(O,!0)}return m(Je.root,!1),T}function me(Je,O,T,Y){for(var De=Je.root,Re=0,We=0,ft=0,lt=[],yt=0;De!==ce;){if(g(De)){m(De.left,!1),m(De.right,!1),De===De.parent.right&&(Re-=De.parent.delta),De=De.parent;continue}if(De.left!==ce&&!g(De.left)){De=De.left;continue}We=Re+De.start,ft=Re+De.end,De.setCachedOffsets(We,ft,Y);var xt=!0;if(O&&De.ownerId&&De.ownerId!==O&&(xt=!1),T&&w(De)&&(xt=!1),xt&&(lt[yt++]=De),m(De,!0),De.right!==ce&&!g(De.right)){Re+=De.delta,De=De.right;continue}}return m(Je.root,!1),lt}function ye(Je,O,T,Y,De,Re){for(var We=Je.root,ft=0,lt=0,yt=0,xt=0,It=[],kt=0;We!==ce;){if(g(We)){m(We.left,!1),m(We.right,!1),We===We.parent.right&&(ft-=We.parent.delta),We=We.parent;continue}if(!g(We.left)){if(lt=ft+We.maxEnd,lt<O){m(We,!0);continue}if(We.left!==ce){We=We.left;continue}}if(yt=ft+We.start,yt>T){m(We,!0);continue}if(xt=ft+We.end,xt>=O){We.setCachedOffsets(yt,xt,Re);var Yt=!0;Y&&We.ownerId&&We.ownerId!==Y&&(Yt=!1),De&&w(We)&&(Yt=!1),Yt&&(It[kt++]=We)}if(m(We,!0),We.right!==ce&&!g(We.right)){ft+=We.delta,We=We.right;continue}}return m(Je.root,!1),It}function ze(Je,O){if(Je.root===ce)return O.parent=ce,O.left=ce,O.right=ce,p(O,0),Je.root=O,Je.root;tt(Je,O),ke(O.parent);for(var T=O;T!==Je.root&&f(T.parent)===1;)if(T.parent===T.parent.parent.left){var Y=T.parent.parent.right;f(Y)===1?(p(T.parent,0),p(Y,0),p(T.parent.parent,1),T=T.parent.parent):(T===T.parent.right&&(T=T.parent,Ke(Je,T)),p(T.parent,0),p(T.parent.parent,1),Xe(Je,T.parent.parent))}else{var Y=T.parent.parent.left;f(Y)===1?(p(T.parent,0),p(Y,0),p(T.parent.parent,1),T=T.parent.parent):(T===T.parent.left&&(T=T.parent,Xe(Je,T)),p(T.parent,0),p(T.parent.parent,1),Ke(Je,T.parent.parent))}return p(Je.root,0),O}function tt(Je,O){for(var T=0,Y=Je.root,De=O.start,Re=O.end;;){var We=$e(De,Re,Y.start+T,Y.end+T);if(We<0)if(Y.left===ce){O.start-=T,O.end-=T,O.maxEnd-=T,Y.left=O;break}else Y=Y.left;else if(Y.right===ce){O.start-=T+Y.delta,O.end-=T+Y.delta,O.maxEnd-=T+Y.delta,Y.right=O;break}else T+=Y.delta,Y=Y.right}O.parent=Y,O.left=ce,O.right=ce,p(O,1)}function _t(Je,O){var T,Y;if(O.left===ce?(T=O.right,Y=O,T.delta+=O.delta,(T.delta<-1073741824||T.delta>1073741824)&&(Je.requestNormalizeDelta=!0),T.start+=O.delta,T.end+=O.delta):O.right===ce?(T=O.left,Y=O):(Y=Pt(O.right),T=Y.right,T.start+=Y.delta,T.end+=Y.delta,T.delta+=Y.delta,(T.delta<-1073741824||T.delta>1073741824)&&(Je.requestNormalizeDelta=!0),Y.start+=O.delta,Y.end+=O.delta,Y.delta=O.delta,(Y.delta<-1073741824||Y.delta>1073741824)&&(Je.requestNormalizeDelta=!0)),Y===Je.root){Je.root=T,p(T,0),O.detach(),Xt(),Ye(T),Je.root.parent=ce;return}var De=f(Y)===1;if(Y===Y.parent.left?Y.parent.left=T:Y.parent.right=T,Y===O?T.parent=Y.parent:(Y.parent===O?T.parent=Y:T.parent=Y.parent,Y.left=O.left,Y.right=O.right,Y.parent=O.parent,p(Y,f(O)),O===Je.root?Je.root=Y:O===O.parent.left?O.parent.left=Y:O.parent.right=Y,Y.left!==ce&&(Y.left.parent=Y),Y.right!==ce&&(Y.right.parent=Y)),O.detach(),De){ke(T.parent),Y!==O&&(ke(Y),ke(Y.parent)),Xt();return}ke(T),ke(T.parent),Y!==O&&(ke(Y),ke(Y.parent));for(var Re;T!==Je.root&&f(T)===0;)T===T.parent.left?(Re=T.parent.right,f(Re)===1&&(p(Re,0),p(T.parent,1),Ke(Je,T.parent),Re=T.parent.right),f(Re.left)===0&&f(Re.right)===0?(p(Re,1),T=T.parent):(f(Re.right)===0&&(p(Re.left,0),p(Re,1),Xe(Je,Re),Re=T.parent.right),p(Re,f(T.parent)),p(T.parent,0),p(Re.right,0),Ke(Je,T.parent),T=Je.root)):(Re=T.parent.left,f(Re)===1&&(p(Re,0),p(T.parent,1),Xe(Je,T.parent),Re=T.parent.left),f(Re.left)===0&&f(Re.right)===0?(p(Re,1),T=T.parent):(f(Re.left)===0&&(p(Re.right,0),p(Re,1),Ke(Je,Re),Re=T.parent.left),p(Re,f(T.parent)),p(T.parent,0),p(Re.left,0),Xe(Je,T.parent),T=Je.root));p(T,0),Xt()}function Pt(Je){for(;Je.left!==ce;)Je=Je.left;return Je}function Xt(){ce.parent=ce,ce.delta=0,ce.start=0,ce.end=0}function Ke(Je,O){var T=O.right;T.delta+=O.delta,(T.delta<-1073741824||T.delta>1073741824)&&(Je.requestNormalizeDelta=!0),T.start+=O.delta,T.end+=O.delta,O.right=T.left,T.left!==ce&&(T.left.parent=O),T.parent=O.parent,O.parent===ce?Je.root=T:O===O.parent.left?O.parent.left=T:O.parent.right=T,T.left=O,O.parent=T,Ye(O),Ye(T)}function Xe(Je,O){var T=O.left;O.delta-=T.delta,(O.delta<-1073741824||O.delta>1073741824)&&(Je.requestNormalizeDelta=!0),O.start-=T.delta,O.end-=T.delta,O.left=T.right,T.right!==ce&&(T.right.parent=O),T.parent=O.parent,O.parent===ce?Je.root=T:O===O.parent.right?O.parent.right=T:O.parent.left=T,T.right=O,O.parent=T,Ye(O),Ye(T)}function Ze(Je){var O=Je.end;if(Je.left!==ce){var T=Je.left.maxEnd;T>O&&(O=T)}if(Je.right!==ce){var Y=Je.right.maxEnd+Je.delta;Y>O&&(O=Y)}return O}function Ye(Je){Je.maxEnd=Ze(Je)}function ke(Je){for(;Je!==ce;){var O=Ze(Je);if(Je.maxEnd===O)return;Je.maxEnd=O,Je=Je.parent}}function $e(Je,O,T,Y){return Je===T?O-Y:Je-T}var we=function(){function Je(O,T){this.piece=O,this.color=T,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return Je.prototype.next=function(){if(this.right!==k)return ee(this.right);for(var O=this;O.parent!==k&&!(O.parent.left===O);)O=O.parent;return O.parent===k?k:O.parent},Je.prototype.prev=function(){if(this.left!==k)return Pe(this.left);for(var O=this;O.parent!==k&&!(O.parent.right===O);)O=O.parent;return O.parent===k?k:O.parent},Je.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},Je}(),k=new we(null,0);k.parent=k,k.left=k,k.right=k,k.color=0;function ee(Je){for(;Je.left!==k;)Je=Je.left;return Je}function Pe(Je){for(;Je.right!==k;)Je=Je.right;return Je}function ve(Je){return Je===k?0:Je.size_left+Je.piece.length+ve(Je.right)}function Te(Je){return Je===k?0:Je.lf_left+Je.piece.lineFeedCnt+Te(Je.right)}function Ie(){k.parent=k}function pe(Je,O){var T=O.right;T.size_left+=O.size_left+(O.piece?O.piece.length:0),T.lf_left+=O.lf_left+(O.piece?O.piece.lineFeedCnt:0),O.right=T.left,T.left!==k&&(T.left.parent=O),T.parent=O.parent,O.parent===k?Je.root=T:O.parent.left===O?O.parent.left=T:O.parent.right=T,T.left=O,O.parent=T}function nt(Je,O){var T=O.left;O.left=T.right,T.right!==k&&(T.right.parent=O),T.parent=O.parent,O.size_left-=T.size_left+(T.piece?T.piece.length:0),O.lf_left-=T.lf_left+(T.piece?T.piece.lineFeedCnt:0),O.parent===k?Je.root=T:O===O.parent.right?O.parent.right=T:O.parent.left=T,T.right=O,O.parent=T}function Et(Je,O){var T,Y;if(O.left===k?(Y=O,T=Y.right):O.right===k?(Y=O,T=Y.left):(Y=ee(O.right),T=Y.right),Y===Je.root){Je.root=T,T.color=0,O.detach(),Ie(),Je.root.parent=k;return}var De=Y.color===1;if(Y===Y.parent.left?Y.parent.left=T:Y.parent.right=T,Y===O?(T.parent=Y.parent,Ht(Je,T)):(Y.parent===O?T.parent=Y:T.parent=Y.parent,Ht(Je,T),Y.left=O.left,Y.right=O.right,Y.parent=O.parent,Y.color=O.color,O===Je.root?Je.root=Y:O===O.parent.left?O.parent.left=Y:O.parent.right=Y,Y.left!==k&&(Y.left.parent=Y),Y.right!==k&&(Y.right.parent=Y),Y.size_left=O.size_left,Y.lf_left=O.lf_left,Ht(Je,Y)),O.detach(),T.parent.left===T){var Re=ve(T),We=Te(T);if(Re!==T.parent.size_left||We!==T.parent.lf_left){var ft=Re-T.parent.size_left,lt=We-T.parent.lf_left;T.parent.size_left=Re,T.parent.lf_left=We,Tt(Je,T.parent,ft,lt)}}if(Ht(Je,T.parent),De){Ie();return}for(var yt;T!==Je.root&&T.color===0;)T===T.parent.left?(yt=T.parent.right,yt.color===1&&(yt.color=0,T.parent.color=1,pe(Je,T.parent),yt=T.parent.right),yt.left.color===0&&yt.right.color===0?(yt.color=1,T=T.parent):(yt.right.color===0&&(yt.left.color=0,yt.color=1,nt(Je,yt),yt=T.parent.right),yt.color=T.parent.color,T.parent.color=0,yt.right.color=0,pe(Je,T.parent),T=Je.root)):(yt=T.parent.left,yt.color===1&&(yt.color=0,T.parent.color=1,nt(Je,T.parent),yt=T.parent.left),yt.left.color===0&&yt.right.color===0?(yt.color=1,T=T.parent):(yt.left.color===0&&(yt.right.color=0,yt.color=1,pe(Je,yt),yt=T.parent.left),yt.color=T.parent.color,T.parent.color=0,yt.left.color=0,nt(Je,T.parent),T=Je.root));T.color=0,Ie()}function Rt(Je,O){for(Ht(Je,O);O!==Je.root&&O.parent.color===1;)if(O.parent===O.parent.parent.left){var T=O.parent.parent.right;T.color===1?(O.parent.color=0,T.color=0,O.parent.parent.color=1,O=O.parent.parent):(O===O.parent.right&&(O=O.parent,pe(Je,O)),O.parent.color=0,O.parent.parent.color=1,nt(Je,O.parent.parent))}else{var T=O.parent.parent.left;T.color===1?(O.parent.color=0,T.color=0,O.parent.parent.color=1,O=O.parent.parent):(O===O.parent.left&&(O=O.parent,nt(Je,O)),O.parent.color=0,O.parent.parent.color=1,pe(Je,O.parent.parent))}Je.root.color=0}function Tt(Je,O,T,Y){for(;O!==Je.root&&O!==k;)O.parent.left===O&&(O.parent.size_left+=T,O.parent.lf_left+=Y),O=O.parent}function Ht(Je,O){var T=0,Y=0;if(O===Je.root)return;if(T===0){for(;O!==Je.root&&O===O.parent.right;)O=O.parent;if(O===Je.root)return;O=O.parent,T=ve(O.left)-O.size_left,Y=Te(O.left)-O.lf_left,O.size_left+=T,O.lf_left+=Y}for(;O!==Je.root&&(T!==0||Y!==0);)O.parent.left===O&&(O.parent.size_left+=T,O.parent.lf_left+=Y),O=O.parent}var Gt=r("yCUd"),rn=65535;function Ln(Je){var O;return Je[Je.length-1]<65536?O=new Uint16Array(Je.length):O=new Uint32Array(Je.length),O.set(Je,0),O}var yn=function(){function Je(O,T,Y,De,Re){this.lineStarts=O,this.cr=T,this.lf=Y,this.crlf=De,this.isBasicASCII=Re}return Je}();function Tn(Je,O){O===void 0&&(O=!0);for(var T=[0],Y=1,De=0,Re=Je.length;De<Re;De++){var We=Je.charCodeAt(De);We===13?De+1<Re&&Je.charCodeAt(De+1)===10?(T[Y++]=De+2,De++):T[Y++]=De+1:We===10&&(T[Y++]=De+1)}return O?Ln(T):T}function Ft(Je,O){Je.length=0,Je[0]=0;for(var T=1,Y=0,De=0,Re=0,We=!0,ft=0,lt=O.length;ft<lt;ft++){var yt=O.charCodeAt(ft);yt===13?ft+1<lt&&O.charCodeAt(ft+1)===10?(Re++,Je[T++]=ft+2,ft++):(Y++,Je[T++]=ft+1):yt===10?(De++,Je[T++]=ft+1):We&&(yt!==9&&(yt<32||yt>126)&&(We=!1))}var xt=new yn(Ln(Je),Y,De,Re,We);return Je.length=0,xt}var pt=function(){function Je(O,T,Y,De,Re){this.bufferIndex=O,this.start=T,this.end=Y,this.lineFeedCnt=De,this.length=Re}return Je}(),gt=function(){function Je(O,T){this.buffer=O,this.lineStarts=T}return Je}(),Dt=function(){function Je(O){this._limit=O,this._cache=[]}return Je.prototype.get=function(O){for(var T=this._cache.length-1;T>=0;T--){var Y=this._cache[T];if(Y.nodeStartOffset<=O&&Y.nodeStartOffset+Y.node.piece.length>=O)return Y}return null},Je.prototype.get2=function(O){for(var T=this._cache.length-1;T>=0;T--){var Y=this._cache[T];if(Y.nodeStartLineNumber&&Y.nodeStartLineNumber<O&&Y.nodeStartLineNumber+Y.node.piece.lineFeedCnt>=O)return Y}return null},Je.prototype.set=function(O){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(O)},Je.prototype.valdiate=function(O){for(var T=!1,Y=this._cache,De=0;De<Y.length;De++){var Re=Y[De];if(Re.node.parent===null||Re.nodeStartOffset>=O){Y[De]=null,T=!0;continue}}if(T){for(var We=[],ft=0,lt=Y;ft<lt.length;ft++){var yt=lt[ft];yt!==null&&We.push(yt)}this._cache=We}},Je}(),Lt=function(){function Je(O,T,Y){this.create(O,T,Y)}return Je.prototype.create=function(O,T,Y){this._buffers=[new gt("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=k,this._lineCnt=1,this._length=0,this._EOL=T,this._EOLLength=T.length,this._EOLNormalized=Y;for(var De=null,Re=0,We=O.length;Re<We;Re++)if(O[Re].buffer.length>0){O[Re].lineStarts||(O[Re].lineStarts=Tn(O[Re].buffer));var ft=new pt(Re+1,{line:0,column:0},{line:O[Re].lineStarts.length-1,column:O[Re].buffer.length-O[Re].lineStarts[O[Re].lineStarts.length-1]},O[Re].lineStarts.length-1,O[Re].buffer.length);this._buffers.push(O[Re]),De=this.rbInsertRight(De,ft)}this._searchCache=new Dt(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},Je.prototype.normalizeEOL=function(O){var T=this,Y=rn,De=Y-Math.floor(Y/3),Re=De*2,We="",ft=0,lt=[];if(this.iterate(this.root,function(xt){var It=T.getNodeContent(xt),kt=It.length;if(ft<=De||ft+kt<Re)return We+=It,ft+=kt,!0;var Yt=We.replace(/\r\n|\r|\n/g,O);return lt.push(new gt(Yt,Tn(Yt))),We=It,ft=kt,!0}),ft>0){var yt=We.replace(/\r\n|\r|\n/g,O);lt.push(new gt(yt,Tn(yt)))}this.create(lt,O,!0)},Je.prototype.getEOL=function(){return this._EOL},Je.prototype.setEOL=function(O){this._EOL=O,this._EOLLength=this._EOL.length,this.normalizeEOL(O)},Je.prototype.getOffsetAt=function(O,T){for(var Y=0,De=this.root;De!==k;)if(De.left!==k&&De.lf_left+1>=O)De=De.left;else if(De.lf_left+De.piece.lineFeedCnt+1>=O){Y+=De.size_left;var Re=this.getAccumulatedValue(De,O-De.lf_left-2);return Y+=Re+T-1}else O-=De.lf_left+De.piece.lineFeedCnt,Y+=De.size_left+De.piece.length,De=De.right;return Y},Je.prototype.getPositionAt=function(O){O=Math.floor(O),O=Math.max(0,O);for(var T=this.root,Y=0,De=O;T!==k;)if(T.size_left!==0&&T.size_left>=O)T=T.left;else if(T.size_left+T.piece.length>=O){var Re=this.getIndexOf(T,O-T.size_left);if(Y+=T.lf_left+Re.index,Re.index===0){var We=this.getOffsetAt(Y+1,1),ft=De-We;return new j.a(Y+1,ft+1)}return new j.a(Y+1,Re.remainder+1)}else if(O-=T.size_left+T.piece.length,Y+=T.lf_left+T.piece.lineFeedCnt,T.right===k){var We=this.getOffsetAt(Y+1,1),ft=De-O-We;return new j.a(Y+1,ft+1)}else T=T.right;return new j.a(1,1)},Je.prototype.getValueInRange=function(O,T){if(O.startLineNumber===O.endLineNumber&&O.startColumn===O.endColumn)return"";var Y=this.nodeAt2(O.startLineNumber,O.startColumn),De=this.nodeAt2(O.endLineNumber,O.endColumn),Re=this.getValueInRange2(Y,De);return T?T!==this._EOL||!this._EOLNormalized?Re.replace(/\r\n|\r|\n/g,T):T===this.getEOL()&&this._EOLNormalized?(T===`\r
|
|
`,Re):Re.replace(/\r\n|\r|\n/g,T):Re},Je.prototype.getValueInRange2=function(O,T){if(O.node===T.node){var Y=O.node,De=this._buffers[Y.piece.bufferIndex].buffer,Re=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);return De.substring(Re+O.remainder,Re+T.remainder)}var We=O.node,ft=this._buffers[We.piece.bufferIndex].buffer,lt=this.offsetInBuffer(We.piece.bufferIndex,We.piece.start),yt=ft.substring(lt+O.remainder,lt+We.piece.length);for(We=We.next();We!==k;){var xt=this._buffers[We.piece.bufferIndex].buffer,It=this.offsetInBuffer(We.piece.bufferIndex,We.piece.start);if(We===T.node){yt+=xt.substring(It,It+T.remainder);break}else yt+=xt.substr(It,We.piece.length);We=We.next()}return yt},Je.prototype.getLinesContent=function(){var O=this,T=[],Y=0,De="",Re=!1;return this.iterate(this.root,function(We){if(We===k)return!0;var ft=We.piece,lt=ft.length;if(lt===0)return!0;var yt=O._buffers[ft.bufferIndex].buffer,xt=O._buffers[ft.bufferIndex].lineStarts,It=ft.start.line,kt=ft.end.line,Yt=xt[It]+ft.start.column;if(Re&&(yt.charCodeAt(Yt)===10&&(Yt++,lt--),T[Y++]=De,De="",Re=!1,lt===0))return!0;if(It===kt)return!O._EOLNormalized&&yt.charCodeAt(Yt+lt-1)===13?(Re=!0,De+=yt.substr(Yt,lt-1)):De+=yt.substr(Yt,lt),!0;De+=O._EOLNormalized?yt.substring(Yt,Math.max(Yt,xt[It+1]-O._EOLLength)):yt.substring(Yt,xt[It+1]).replace(/(\r\n|\r|\n)$/,""),T[Y++]=De;for(var Zt=It+1;Zt<kt;Zt++)De=O._EOLNormalized?yt.substring(xt[Zt],xt[Zt+1]-O._EOLLength):yt.substring(xt[Zt],xt[Zt+1]).replace(/(\r\n|\r|\n)$/,""),T[Y++]=De;return!O._EOLNormalized&&yt.charCodeAt(xt[kt]+ft.end.column-1)===13?(Re=!0,ft.end.column===0?Y--:De=yt.substr(xt[kt],ft.end.column-1)):De=yt.substr(xt[kt],ft.end.column),!0}),Re&&(T[Y++]=De,De=""),T[Y++]=De,T},Je.prototype.getLength=function(){return this._length},Je.prototype.getLineCount=function(){return this._lineCnt},Je.prototype.getLineContent=function(O){return this._lastVisitedLine.lineNumber===O?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=O,O===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(O):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(O,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(O).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},Je.prototype.getLineCharCode=function(O,T){var Y=this.nodeAt2(O,T+1);if(Y.remainder===Y.node.piece.length){var De=Y.node.next();if(!De)return 0;var Re=this._buffers[De.piece.bufferIndex],We=this.offsetInBuffer(De.piece.bufferIndex,De.piece.start);return Re.buffer.charCodeAt(We)}else{var Re=this._buffers[Y.node.piece.bufferIndex],We=this.offsetInBuffer(Y.node.piece.bufferIndex,Y.node.piece.start),ft=We+Y.remainder;return Re.buffer.charCodeAt(ft)}},Je.prototype.getLineLength=function(O){if(O===this.getLineCount()){var T=this.getOffsetAt(O,1);return this.getLength()-T}return this.getOffsetAt(O+1,1)-this.getOffsetAt(O,1)-this._EOLLength},Je.prototype.findMatchesInNode=function(O,T,Y,De,Re,We,ft,lt,yt,xt,It){var kt=this._buffers[O.piece.bufferIndex],Yt=this.offsetInBuffer(O.piece.bufferIndex,O.piece.start),Zt=this.offsetInBuffer(O.piece.bufferIndex,Re),dn=this.offsetInBuffer(O.piece.bufferIndex,We),fn,An={line:0,column:0},gn,Mn;T._wordSeparators?(gn=kt.buffer.substring(Zt,dn),Mn=function(Fe){return Fe+Zt},T.reset(-1)):(gn=kt.buffer,Mn=function(Fe){return Fe},T.reset(Zt));do if(fn=T.next(gn),fn){if(Mn(fn.index)>=dn)return xt;this.positionInBuffer(O,Mn(fn.index)-Yt,An);var xn=this.getLineFeedCnt(O.piece.bufferIndex,Re,An),Le=An.line===Re.line?An.column-Re.column+De:An.column+1,W=Le+fn[0].length;if(It[xt++]=Object(Gt.d)(new G.a(Y+xn,Le,Y+xn,W),fn,lt),Mn(fn.index)+fn[0].length>=dn)return xt;if(xt>=yt)return xt}while(fn);return xt},Je.prototype.findMatchesLineByLine=function(O,T,Y,De){var Re=[],We=0,ft=new Gt.b(T.wordSeparators,T.regex),lt=this.nodeAt2(O.startLineNumber,O.startColumn);if(lt===null)return[];var yt=this.nodeAt2(O.endLineNumber,O.endColumn);if(yt===null)return[];var xt=this.positionInBuffer(lt.node,lt.remainder),It=this.positionInBuffer(yt.node,yt.remainder);if(lt.node===yt.node)return this.findMatchesInNode(lt.node,ft,O.startLineNumber,O.startColumn,xt,It,T,Y,De,We,Re),Re;for(var kt=O.startLineNumber,Yt=lt.node;Yt!==yt.node;){var Zt=this.getLineFeedCnt(Yt.piece.bufferIndex,xt,Yt.piece.end);if(Zt>=1){var dn=this._buffers[Yt.piece.bufferIndex].lineStarts,fn=this.offsetInBuffer(Yt.piece.bufferIndex,Yt.piece.start),An=dn[xt.line+Zt],gn=kt===O.startLineNumber?O.startColumn:1;if(We=this.findMatchesInNode(Yt,ft,kt,gn,xt,this.positionInBuffer(Yt,An-fn),T,Y,De,We,Re),We>=De)return Re;kt+=Zt}var Mn=kt===O.startLineNumber?O.startColumn-1:0;if(kt===O.endLineNumber){var xn=this.getLineContent(kt).substring(Mn,O.endColumn-1);return We=this._findMatchesInLine(T,ft,xn,O.endLineNumber,Mn,We,Re,Y,De),Re}if(We=this._findMatchesInLine(T,ft,this.getLineContent(kt).substr(Mn),kt,Mn,We,Re,Y,De),We>=De)return Re;kt++,lt=this.nodeAt2(kt,1),Yt=lt.node,xt=this.positionInBuffer(lt.node,lt.remainder)}if(kt===O.endLineNumber){var Le=kt===O.startLineNumber?O.startColumn-1:0,xn=this.getLineContent(kt).substring(Le,O.endColumn-1);return We=this._findMatchesInLine(T,ft,xn,O.endLineNumber,Le,We,Re,Y,De),Re}var W=kt===O.startLineNumber?O.startColumn:1;return We=this.findMatchesInNode(yt.node,ft,kt,W,xt,It,T,Y,De,We,Re),Re},Je.prototype._findMatchesInLine=function(O,T,Y,De,Re,We,ft,lt,yt){var xt=O.wordSeparators;if(!lt&&O.simpleSearch){for(var It=O.simpleSearch,kt=It.length,Yt=Y.length,Zt=-kt;(Zt=Y.indexOf(It,Zt+kt))!==-1;)if((!xt||Object(Gt.e)(xt,Y,Yt,Zt,kt))&&(ft[We++]=new E.b(new G.a(De,Zt+1+Re,De,Zt+1+kt+Re),null),We>=yt))return We;return We}var dn;T.reset(0);do if(dn=T.next(Y),dn&&(ft[We++]=Object(Gt.d)(new G.a(De,dn.index+1+Re,De,dn.index+1+dn[0].length+Re),dn,lt),We>=yt))return We;while(dn);return We},Je.prototype.insert=function(O,T,Y){if(Y===void 0&&(Y=!1),this._EOLNormalized=this._EOLNormalized&&Y,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==k){var De=this.nodeAt(O),Re=De.node,We=De.remainder,ft=De.nodeStartOffset,lt=Re.piece,yt=lt.bufferIndex,xt=this.positionInBuffer(Re,We);if(Re.piece.bufferIndex===0&<.end.line===this._lastChangeBufferPos.line&<.end.column===this._lastChangeBufferPos.column&&ft+lt.length===O&&T.length<rn){this.appendToNode(Re,T),this.computeBufferMetadata();return}if(ft===O)this.insertContentToNodeLeft(T,Re),this._searchCache.valdiate(O);else if(ft+Re.piece.length>O){var It=[],kt=new pt(lt.bufferIndex,xt,lt.end,this.getLineFeedCnt(lt.bufferIndex,xt,lt.end),this.offsetInBuffer(yt,lt.end)-this.offsetInBuffer(yt,xt));if(this.shouldCheckCRLF()&&this.endWithCR(T)){var Yt=this.nodeCharCodeAt(Re,We);if(Yt===10){var Zt={line:kt.start.line+1,column:0};kt=new pt(kt.bufferIndex,Zt,kt.end,this.getLineFeedCnt(kt.bufferIndex,Zt,kt.end),kt.length-1),T+=`
|
|
`}}if(this.shouldCheckCRLF()&&this.startWithLF(T)){var dn=this.nodeCharCodeAt(Re,We-1);if(dn===13){var fn=this.positionInBuffer(Re,We-1);this.deleteNodeTail(Re,fn),T="\r"+T,Re.piece.length===0&&It.push(Re)}else this.deleteNodeTail(Re,xt)}else this.deleteNodeTail(Re,xt);var An=this.createNewPieces(T);kt.length>0&&this.rbInsertRight(Re,kt);for(var gn=Re,Mn=0;Mn<An.length;Mn++)gn=this.rbInsertRight(gn,An[Mn]);this.deleteNodes(It)}else this.insertContentToNodeRight(T,Re)}else for(var xn=this.createNewPieces(T),Re=this.rbInsertLeft(null,xn[0]),Mn=1;Mn<xn.length;Mn++)Re=this.rbInsertRight(Re,xn[Mn]);this.computeBufferMetadata()},Je.prototype.delete=function(O,T){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",T<=0||this.root===k)return;var Y=this.nodeAt(O),De=this.nodeAt(O+T),Re=Y.node,We=De.node;if(Re===We){var ft=this.positionInBuffer(Re,Y.remainder),lt=this.positionInBuffer(Re,De.remainder);if(Y.nodeStartOffset===O){if(T===Re.piece.length){var yt=Re.next();Et(this,Re),this.validateCRLFWithPrevNode(yt),this.computeBufferMetadata();return}this.deleteNodeHead(Re,lt),this._searchCache.valdiate(O),this.validateCRLFWithPrevNode(Re),this.computeBufferMetadata();return}if(Y.nodeStartOffset+Re.piece.length===O+T){this.deleteNodeTail(Re,ft),this.validateCRLFWithNextNode(Re),this.computeBufferMetadata();return}this.shrinkNode(Re,ft,lt),this.computeBufferMetadata();return}var xt=[],It=this.positionInBuffer(Re,Y.remainder);this.deleteNodeTail(Re,It),this._searchCache.valdiate(O),Re.piece.length===0&&xt.push(Re);var kt=this.positionInBuffer(We,De.remainder);this.deleteNodeHead(We,kt),We.piece.length===0&&xt.push(We);for(var Yt=Re.next(),Zt=Yt;Zt!==k&&Zt!==We;Zt=Zt.next())xt.push(Zt);var dn=Re.piece.length===0?Re.prev():Re;this.deleteNodes(xt),this.validateCRLFWithNextNode(dn),this.computeBufferMetadata()},Je.prototype.insertContentToNodeLeft=function(O,T){var Y=[];if(this.shouldCheckCRLF()&&this.endWithCR(O)&&this.startWithLF(T)){var De=T.piece,Re={line:De.start.line+1,column:0},We=new pt(De.bufferIndex,Re,De.end,this.getLineFeedCnt(De.bufferIndex,Re,De.end),De.length-1);T.piece=We,O+=`
|
|
`,Tt(this,T,-1,-1),T.piece.length===0&&Y.push(T)}for(var ft=this.createNewPieces(O),lt=this.rbInsertLeft(T,ft[ft.length-1]),yt=ft.length-2;yt>=0;yt--)lt=this.rbInsertLeft(lt,ft[yt]);this.validateCRLFWithPrevNode(lt),this.deleteNodes(Y)},Je.prototype.insertContentToNodeRight=function(O,T){this.adjustCarriageReturnFromNext(O,T)&&(O+=`
|
|
`);for(var Y=this.createNewPieces(O),De=this.rbInsertRight(T,Y[0]),Re=De,We=1;We<Y.length;We++)Re=this.rbInsertRight(Re,Y[We]);this.validateCRLFWithPrevNode(De)},Je.prototype.positionInBuffer=function(O,T,Y){for(var De=O.piece,Re=O.piece.bufferIndex,We=this._buffers[Re].lineStarts,ft=We[De.start.line]+De.start.column,lt=ft+T,yt=De.start.line,xt=De.end.line,It=0,kt=0,Yt=0;yt<=xt&&!(It=yt+(xt-yt)/2|0,Yt=We[It],It===xt);)if(kt=We[It+1],lt<Yt)xt=It-1;else if(lt>=kt)yt=It+1;else break;return Y?(Y.line=It,Y.column=lt-Yt,null):{line:It,column:lt-Yt}},Je.prototype.getLineFeedCnt=function(O,T,Y){if(Y.column===0)return Y.line-T.line;var De=this._buffers[O].lineStarts;if(Y.line===De.length-1)return Y.line-T.line;var Re=De[Y.line+1],We=De[Y.line]+Y.column;if(Re>We+1)return Y.line-T.line;var ft=We-1,lt=this._buffers[O].buffer;return lt.charCodeAt(ft)===13?Y.line-T.line+1:Y.line-T.line},Je.prototype.offsetInBuffer=function(O,T){var Y=this._buffers[O].lineStarts;return Y[T.line]+T.column},Je.prototype.deleteNodes=function(O){for(var T=0;T<O.length;T++)Et(this,O[T])},Je.prototype.createNewPieces=function(O){if(O.length>rn){for(var T=[];O.length>rn;){var Y=O.charCodeAt(rn-1),De=void 0;Y===13||Y>=55296&&Y<=56319?(De=O.substring(0,rn-1),O=O.substring(rn-1)):(De=O.substring(0,rn),O=O.substring(rn));var Re=Tn(De);T.push(new pt(this._buffers.length,{line:0,column:0},{line:Re.length-1,column:De.length-Re[Re.length-1]},Re.length-1,De.length)),this._buffers.push(new gt(De,Re))}var We=Tn(O);return T.push(new pt(this._buffers.length,{line:0,column:0},{line:We.length-1,column:O.length-We[We.length-1]},We.length-1,O.length)),this._buffers.push(new gt(O,We)),T}var ft=this._buffers[0].buffer.length,lt=Tn(O,!1),yt=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===ft&&ft!==0&&this.startWithLF(O)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},yt=this._lastChangeBufferPos;for(var xt=0;xt<lt.length;xt++)lt[xt]+=ft+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(lt.slice(1)),this._buffers[0].buffer+="_"+O,ft+=1}else{if(ft!==0)for(var xt=0;xt<lt.length;xt++)lt[xt]+=ft;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(lt.slice(1)),this._buffers[0].buffer+=O}var It=this._buffers[0].buffer.length,kt=this._buffers[0].lineStarts.length-1,Yt=It-this._buffers[0].lineStarts[kt],Zt={line:kt,column:Yt},dn=new pt(0,yt,Zt,this.getLineFeedCnt(0,yt,Zt),It-ft);return this._lastChangeBufferPos=Zt,[dn]},Je.prototype.getLineRawContent=function(O,T){T===void 0&&(T=0);var Y=this.root,De="",Re=this._searchCache.get2(O);if(Re){Y=Re.node;var We=this.getAccumulatedValue(Y,O-Re.nodeStartLineNumber-1),ft=this._buffers[Y.piece.bufferIndex].buffer,lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);if(Re.nodeStartLineNumber+Y.piece.lineFeedCnt===O)De=ft.substring(lt+We,lt+Y.piece.length);else{var yt=this.getAccumulatedValue(Y,O-Re.nodeStartLineNumber);return ft.substring(lt+We,lt+yt-T)}}else for(var xt=0,It=O;Y!==k;)if(Y.left!==k&&Y.lf_left>=O-1)Y=Y.left;else if(Y.lf_left+Y.piece.lineFeedCnt>O-1){var We=this.getAccumulatedValue(Y,O-Y.lf_left-2),yt=this.getAccumulatedValue(Y,O-Y.lf_left-1),ft=this._buffers[Y.piece.bufferIndex].buffer,lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);return xt+=Y.size_left,this._searchCache.set({node:Y,nodeStartOffset:xt,nodeStartLineNumber:It-(O-1-Y.lf_left)}),ft.substring(lt+We,lt+yt-T)}else if(Y.lf_left+Y.piece.lineFeedCnt===O-1){var We=this.getAccumulatedValue(Y,O-Y.lf_left-2),ft=this._buffers[Y.piece.bufferIndex].buffer,lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);De=ft.substring(lt+We,lt+Y.piece.length);break}else O-=Y.lf_left+Y.piece.lineFeedCnt,xt+=Y.size_left+Y.piece.length,Y=Y.right;for(Y=Y.next();Y!==k;){var ft=this._buffers[Y.piece.bufferIndex].buffer;if(Y.piece.lineFeedCnt>0){var yt=this.getAccumulatedValue(Y,0),lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);return De+=ft.substring(lt,lt+yt-T),De}else{var lt=this.offsetInBuffer(Y.piece.bufferIndex,Y.piece.start);De+=ft.substr(lt,Y.piece.length)}Y=Y.next()}return De},Je.prototype.computeBufferMetadata=function(){for(var O=this.root,T=1,Y=0;O!==k;)T+=O.lf_left+O.piece.lineFeedCnt,Y+=O.size_left+O.piece.length,O=O.right;this._lineCnt=T,this._length=Y,this._searchCache.valdiate(this._length)},Je.prototype.getIndexOf=function(O,T){var Y=O.piece,De=this.positionInBuffer(O,T),Re=De.line-Y.start.line;if(this.offsetInBuffer(Y.bufferIndex,Y.end)-this.offsetInBuffer(Y.bufferIndex,Y.start)===T){var We=this.getLineFeedCnt(O.piece.bufferIndex,Y.start,De);if(We!==Re)return{index:We,remainder:0}}return{index:Re,remainder:De.column}},Je.prototype.getAccumulatedValue=function(O,T){if(T<0)return 0;var Y=O.piece,De=this._buffers[Y.bufferIndex].lineStarts,Re=Y.start.line+T+1;return Re>Y.end.line?De[Y.end.line]+Y.end.column-De[Y.start.line]-Y.start.column:De[Re]-De[Y.start.line]-Y.start.column},Je.prototype.deleteNodeTail=function(O,T){var Y=O.piece,De=Y.lineFeedCnt,Re=this.offsetInBuffer(Y.bufferIndex,Y.end),We=T,ft=this.offsetInBuffer(Y.bufferIndex,We),lt=this.getLineFeedCnt(Y.bufferIndex,Y.start,We),yt=lt-De,xt=ft-Re,It=Y.length+xt;O.piece=new pt(Y.bufferIndex,Y.start,We,lt,It),Tt(this,O,xt,yt)},Je.prototype.deleteNodeHead=function(O,T){var Y=O.piece,De=Y.lineFeedCnt,Re=this.offsetInBuffer(Y.bufferIndex,Y.start),We=T,ft=this.getLineFeedCnt(Y.bufferIndex,We,Y.end),lt=this.offsetInBuffer(Y.bufferIndex,We),yt=ft-De,xt=Re-lt,It=Y.length+xt;O.piece=new pt(Y.bufferIndex,We,Y.end,ft,It),Tt(this,O,xt,yt)},Je.prototype.shrinkNode=function(O,T,Y){var De=O.piece,Re=De.start,We=De.end,ft=De.length,lt=De.lineFeedCnt,yt=T,xt=this.getLineFeedCnt(De.bufferIndex,De.start,yt),It=this.offsetInBuffer(De.bufferIndex,T)-this.offsetInBuffer(De.bufferIndex,Re);O.piece=new pt(De.bufferIndex,De.start,yt,xt,It),Tt(this,O,It-ft,xt-lt);var kt=new pt(De.bufferIndex,Y,We,this.getLineFeedCnt(De.bufferIndex,Y,We),this.offsetInBuffer(De.bufferIndex,We)-this.offsetInBuffer(De.bufferIndex,Y)),Yt=this.rbInsertRight(O,kt);this.validateCRLFWithPrevNode(Yt)},Je.prototype.appendToNode=function(O,T){this.adjustCarriageReturnFromNext(T,O)&&(T+=`
|
|
`);var Y=this.shouldCheckCRLF()&&this.startWithLF(T)&&this.endWithCR(O),De=this._buffers[0].buffer.length;this._buffers[0].buffer+=T;for(var Re=Tn(T,!1),We=0;We<Re.length;We++)Re[We]+=De;if(Y){var ft=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:De-ft}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(Re.slice(1));var lt=this._buffers[0].lineStarts.length-1,yt=this._buffers[0].buffer.length-this._buffers[0].lineStarts[lt],xt={line:lt,column:yt},It=O.piece.length+T.length,kt=O.piece.lineFeedCnt,Yt=this.getLineFeedCnt(0,O.piece.start,xt),Zt=Yt-kt;O.piece=new pt(O.piece.bufferIndex,O.piece.start,xt,Yt,It),this._lastChangeBufferPos=xt,Tt(this,O,T.length,Zt)},Je.prototype.nodeAt=function(O){var T=this.root,Y=this._searchCache.get(O);if(Y)return{node:Y.node,nodeStartOffset:Y.nodeStartOffset,remainder:O-Y.nodeStartOffset};for(var De=0;T!==k;)if(T.size_left>O)T=T.left;else if(T.size_left+T.piece.length>=O){De+=T.size_left;var Re={node:T,remainder:O-T.size_left,nodeStartOffset:De};return this._searchCache.set(Re),Re}else O-=T.size_left+T.piece.length,De+=T.size_left+T.piece.length,T=T.right;return null},Je.prototype.nodeAt2=function(O,T){for(var Y=this.root,De=0;Y!==k;)if(Y.left!==k&&Y.lf_left>=O-1)Y=Y.left;else if(Y.lf_left+Y.piece.lineFeedCnt>O-1){var Re=this.getAccumulatedValue(Y,O-Y.lf_left-2),We=this.getAccumulatedValue(Y,O-Y.lf_left-1);return De+=Y.size_left,{node:Y,remainder:Math.min(Re+T-1,We),nodeStartOffset:De}}else if(Y.lf_left+Y.piece.lineFeedCnt===O-1){var Re=this.getAccumulatedValue(Y,O-Y.lf_left-2);if(Re+T-1<=Y.piece.length)return{node:Y,remainder:Re+T-1,nodeStartOffset:De};T-=Y.piece.length-Re;break}else O-=Y.lf_left+Y.piece.lineFeedCnt,De+=Y.size_left+Y.piece.length,Y=Y.right;for(Y=Y.next();Y!==k;){if(Y.piece.lineFeedCnt>0){var We=this.getAccumulatedValue(Y,0),ft=this.offsetOfNode(Y);return{node:Y,remainder:Math.min(T-1,We),nodeStartOffset:ft}}else if(Y.piece.length>=T-1){var lt=this.offsetOfNode(Y);return{node:Y,remainder:T-1,nodeStartOffset:lt}}else T-=Y.piece.length;Y=Y.next()}return null},Je.prototype.nodeCharCodeAt=function(O,T){if(O.piece.lineFeedCnt<1)return-1;var Y=this._buffers[O.piece.bufferIndex],De=this.offsetInBuffer(O.piece.bufferIndex,O.piece.start)+T;return Y.buffer.charCodeAt(De)},Je.prototype.offsetOfNode=function(O){if(!O)return 0;for(var T=O.size_left;O!==this.root;)O.parent.right===O&&(T+=O.parent.size_left+O.parent.piece.length),O=O.parent;return T},Je.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===`
|
|
`)},Je.prototype.startWithLF=function(O){if(typeof O=="string")return O.charCodeAt(0)===10;if(O===k||O.piece.lineFeedCnt===0)return!1;var T=O.piece,Y=this._buffers[T.bufferIndex].lineStarts,De=T.start.line,Re=Y[De]+T.start.column;if(De===Y.length-1)return!1;var We=Y[De+1];return We>Re+1?!1:this._buffers[T.bufferIndex].buffer.charCodeAt(Re)===10},Je.prototype.endWithCR=function(O){return typeof O=="string"?O.charCodeAt(O.length-1)===13:O===k||O.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(O,O.piece.length-1)===13},Je.prototype.validateCRLFWithPrevNode=function(O){if(this.shouldCheckCRLF()&&this.startWithLF(O)){var T=O.prev();this.endWithCR(T)&&this.fixCRLF(T,O)}},Je.prototype.validateCRLFWithNextNode=function(O){if(this.shouldCheckCRLF()&&this.endWithCR(O)){var T=O.next();this.startWithLF(T)&&this.fixCRLF(O,T)}},Je.prototype.fixCRLF=function(O,T){var Y=[],De=this._buffers[O.piece.bufferIndex].lineStarts,Re;O.piece.end.column===0?Re={line:O.piece.end.line-1,column:De[O.piece.end.line]-De[O.piece.end.line-1]-1}:Re={line:O.piece.end.line,column:O.piece.end.column-1};var We=O.piece.length-1,ft=O.piece.lineFeedCnt-1;O.piece=new pt(O.piece.bufferIndex,O.piece.start,Re,ft,We),Tt(this,O,-1,-1),O.piece.length===0&&Y.push(O);var lt={line:T.piece.start.line+1,column:0},yt=T.piece.length-1,xt=this.getLineFeedCnt(T.piece.bufferIndex,lt,T.piece.end);T.piece=new pt(T.piece.bufferIndex,lt,T.piece.end,xt,yt),Tt(this,T,-1,-1),T.piece.length===0&&Y.push(T);var It=this.createNewPieces(`\r
|
|
`);this.rbInsertRight(O,It[0]);for(var kt=0;kt<Y.length;kt++)Et(this,Y[kt])},Je.prototype.adjustCarriageReturnFromNext=function(O,T){if(this.shouldCheckCRLF()&&this.endWithCR(O)){var Y=T.next();if(this.startWithLF(Y)){if(O+=`
|
|
`,Y.piece.length===1)Et(this,Y);else{var De=Y.piece,Re={line:De.start.line+1,column:0},We=De.length-1,ft=this.getLineFeedCnt(De.bufferIndex,Re,De.end);Y.piece=new pt(De.bufferIndex,Re,De.end,ft,We),Tt(this,Y,-1,-1)}return!0}}return!1},Je.prototype.iterate=function(O,T){if(O===k)return T(k);var Y=this.iterate(O.left,T);return Y&&(T(O)&&this.iterate(O.right,T))},Je.prototype.getNodeContent=function(O){if(O===k)return"";var T=this._buffers[O.piece.bufferIndex],Y,De=O.piece,Re=this.offsetInBuffer(De.bufferIndex,De.start),We=this.offsetInBuffer(De.bufferIndex,De.end);return Y=T.buffer.substring(Re,We),Y},Je.prototype.rbInsertRight=function(O,T){var Y=new we(T,1);Y.left=k,Y.right=k,Y.parent=k,Y.size_left=0,Y.lf_left=0;var De=this.root;if(De===k)this.root=Y,Y.color=0;else if(O.right===k)O.right=Y,Y.parent=O;else{var Re=ee(O.right);Re.left=Y,Y.parent=Re}return Rt(this,Y),Y},Je.prototype.rbInsertLeft=function(O,T){var Y=new we(T,1);if(Y.left=k,Y.right=k,Y.parent=k,Y.size_left=0,Y.lf_left=0,this.root===k)this.root=Y,Y.color=0;else if(O.left===k)O.left=Y,Y.parent=O;else{var De=Pe(O.left);De.right=Y,Y.parent=De}return Rt(this,Y),Y},Je}(),Vt=function(){function Je(O,T,Y,De,Re,We){this._BOM=T,this._mightContainNonBasicASCII=!Re,this._mightContainRTL=De,this._pieceTree=new Lt(O,Y,We)}return Je.prototype.mightContainRTL=function(){return this._mightContainRTL},Je.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},Je.prototype.getBOM=function(){return this._BOM},Je.prototype.getEOL=function(){return this._pieceTree.getEOL()},Je.prototype.getOffsetAt=function(O,T){return this._pieceTree.getOffsetAt(O,T)},Je.prototype.getPositionAt=function(O){return this._pieceTree.getPositionAt(O)},Je.prototype.getRangeAt=function(O,T){var Y=O+T,De=this.getPositionAt(O),Re=this.getPositionAt(Y);return new G.a(De.lineNumber,De.column,Re.lineNumber,Re.column)},Je.prototype.getValueInRange=function(O,T){if(T===void 0&&(T=0),O.isEmpty())return"";var Y=this._getEndOfLine(T);return this._pieceTree.getValueInRange(O,Y)},Je.prototype.getValueLengthInRange=function(O,T){if(T===void 0&&(T=0),O.isEmpty())return 0;if(O.startLineNumber===O.endLineNumber)return O.endColumn-O.startColumn;var Y=this.getOffsetAt(O.startLineNumber,O.startColumn),De=this.getOffsetAt(O.endLineNumber,O.endColumn);return De-Y},Je.prototype.getCharacterCountInRange=function(O,T){if(T===void 0&&(T=0),this._mightContainNonBasicASCII){for(var Y=0,De=O.startLineNumber,Re=O.endLineNumber,We=De;We<=Re;We++)for(var ft=this.getLineContent(We),lt=We===De?O.startColumn-1:0,yt=We===Re?O.endColumn-1:ft.length,xt=lt;xt<yt;xt++)N.z(ft.charCodeAt(xt))?(Y=Y+1,xt=xt+1):Y=Y+1;return Y+=this._getEndOfLine(T).length*(Re-De),Y}return this.getValueLengthInRange(O,T)},Je.prototype.getLength=function(){return this._pieceTree.getLength()},Je.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},Je.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},Je.prototype.getLineContent=function(O){return this._pieceTree.getLineContent(O)},Je.prototype.getLineCharCode=function(O,T){return this._pieceTree.getLineCharCode(O,T)},Je.prototype.getLineLength=function(O){return this._pieceTree.getLineLength(O)},Je.prototype.getLineFirstNonWhitespaceColumn=function(O){var T=N.q(this.getLineContent(O));return T===-1?0:T+1},Je.prototype.getLineLastNonWhitespaceColumn=function(O){var T=N.D(this.getLineContent(O));return T===-1?0:T+2},Je.prototype._getEndOfLine=function(O){switch(O){case 1:return`
|
|
`;case 2:return`\r
|
|
`;case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},Je.prototype.setEOL=function(O){this._pieceTree.setEOL(O)},Je.prototype.applyEdits=function(O,T){for(var Y=this._mightContainRTL,De=this._mightContainNonBasicASCII,Re=!0,We=[],ft=0;ft<O.length;ft++){var lt=O[ft];Re&<._isTracked&&(Re=!1);var yt=lt.range;!Y&<.text&&(Y=N.i(lt.text)),!De&<.text&&(De=!N.v(lt.text)),We[ft]={sortIndex:ft,identifier:lt.identifier||null,range:yt,rangeOffset:this.getOffsetAt(yt.startLineNumber,yt.startColumn),rangeLength:this.getValueLengthInRange(yt),lines:lt.text?lt.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(lt.forceMoveMarkers),isAutoWhitespaceEdit:lt.isAutoWhitespaceEdit||!1}}We.sort(Je._sortOpsAscending);for(var xt=!1,ft=0,It=We.length-1;ft<It;ft++){var kt=We[ft].range.getEndPosition(),Yt=We[ft+1].range.getStartPosition();if(Yt.isBeforeOrEqual(kt)){if(Yt.isBefore(kt))throw new Error("Overlapping ranges are not allowed!");xt=!0}}Re&&(We=this._reduceOperations(We));for(var Zt=Je._getInverseEditRanges(We),dn=[],ft=0;ft<We.length;ft++){var lt=We[ft],fn=Zt[ft];if(T&<.isAutoWhitespaceEdit&<.range.isEmpty())for(var An=fn.startLineNumber;An<=fn.endLineNumber;An++){var gn="";if(An===fn.startLineNumber&&(gn=this.getLineContent(lt.range.startLineNumber),N.q(gn)!==-1))continue;dn.push({lineNumber:An,oldContent:gn})}}for(var Mn=[],ft=0;ft<We.length;ft++){var lt=We[ft],fn=Zt[ft];Mn[ft]={sortIndex:lt.sortIndex,identifier:lt.identifier,range:fn,text:this.getValueInRange(lt.range),forceMoveMarkers:lt.forceMoveMarkers}}xt||Mn.sort(function(qe,ct){return qe.sortIndex-ct.sortIndex}),this._mightContainRTL=Y,this._mightContainNonBasicASCII=De;var xn=this._doApplyEdits(We),Le=null;if(T&&dn.length>0){dn.sort(function(qe,ct){return ct.lineNumber-qe.lineNumber}),Le=[];for(var ft=0,W=dn.length;ft<W;ft++){var An=dn[ft].lineNumber;if(ft>0&&dn[ft-1].lineNumber===An)continue;var ae=dn[ft].oldContent,Fe=this.getLineContent(An);if(Fe.length===0||Fe===ae||N.q(Fe)!==-1)continue;Le.push(An)}}return new E.a(Mn,xn,Le)},Je.prototype._reduceOperations=function(O){return O.length<1e3?O:[this._toSingleEditOperation(O)]},Je.prototype._toSingleEditOperation=function(O){for(var T=!1,Y=O[0].range,De=O[O.length-1].range,Re=new G.a(Y.startLineNumber,Y.startColumn,De.endLineNumber,De.endColumn),We=Y.startLineNumber,ft=Y.startColumn,lt=[],yt=0,xt=O.length;yt<xt;yt++){var It=O[yt],kt=It.range;T=T||It.forceMoveMarkers;for(var Yt=We;Yt<kt.startLineNumber;Yt++)Yt===We?lt.push(this.getLineContent(Yt).substring(ft-1)):(lt.push(`
|
|
`),lt.push(this.getLineContent(Yt)));if(kt.startLineNumber===We?lt.push(this.getLineContent(kt.startLineNumber).substring(ft-1,kt.startColumn-1)):(lt.push(`
|
|
`),lt.push(this.getLineContent(kt.startLineNumber).substring(0,kt.startColumn-1))),It.lines)for(var Zt=0,dn=It.lines.length;Zt<dn;Zt++)Zt!==0&<.push(`
|
|
`),lt.push(It.lines[Zt]);We=It.range.endLineNumber,ft=It.range.endColumn}return{sortIndex:0,identifier:O[0].identifier,range:Re,rangeOffset:this.getOffsetAt(Re.startLineNumber,Re.startColumn),rangeLength:this.getValueLengthInRange(Re,0),lines:lt.join("").split(`
|
|
`),forceMoveMarkers:T,isAutoWhitespaceEdit:!1}},Je.prototype._doApplyEdits=function(O){O.sort(Je._sortOpsDescending);for(var T=[],Y=0;Y<O.length;Y++){var De=O[Y],Re=De.range.startLineNumber,We=De.range.startColumn,ft=De.range.endLineNumber,lt=De.range.endColumn;if(Re===ft&&We===lt&&(!De.lines||De.lines.length===0))continue;var yt=ft-Re,xt=De.lines?De.lines.length-1:0,It=Math.min(yt,xt),kt=De.lines?De.lines.join(this.getEOL()):"";if(kt?(this._pieceTree.delete(De.rangeOffset,De.rangeLength),this._pieceTree.insert(De.rangeOffset,kt,!0)):this._pieceTree.delete(De.rangeOffset,De.rangeLength),It<xt){for(var Yt=[],Zt=It+1;Zt<=xt;Zt++)Yt.push(De.lines[Zt]);Yt[Yt.length-1]=this.getLineContent(Re+xt-1)}var dn=new G.a(Re,We,ft,lt);T.push({range:dn,rangeLength:De.rangeLength,text:kt,rangeOffset:De.rangeOffset,forceMoveMarkers:De.forceMoveMarkers})}return T},Je.prototype.findMatchesLineByLine=function(O,T,Y,De){return this._pieceTree.findMatchesLineByLine(O,T,Y,De)},Je._getInverseEditRanges=function(O){for(var T=[],Y=0,De=0,Re=null,We=0,ft=O.length;We<ft;We++){var lt=O[We],yt=void 0,xt=void 0;Re?Re.range.endLineNumber===lt.range.startLineNumber?(yt=Y,xt=De+(lt.range.startColumn-Re.range.endColumn)):(yt=Y+(lt.range.startLineNumber-Re.range.endLineNumber),xt=lt.range.startColumn):(yt=lt.range.startLineNumber,xt=lt.range.startColumn);var It=void 0;if(lt.lines&<.lines.length>0){var kt=lt.lines.length,Yt=lt.lines[0],Zt=lt.lines[kt-1];kt===1?It=new G.a(yt,xt,yt,xt+Yt.length):It=new G.a(yt,xt,yt+kt-1,Zt.length+1)}else It=new G.a(yt,xt,yt,xt);Y=It.endLineNumber,De=It.endColumn,T.push(It),Re=lt}return T},Je._sortOpsAscending=function(O,T){var Y=G.a.compareRangesUsingEnds(O.range,T.range);return Y===0?O.sortIndex-T.sortIndex:Y},Je._sortOpsDescending=function(O,T){var Y=G.a.compareRangesUsingEnds(O.range,T.range);return Y===0?T.sortIndex-O.sortIndex:-Y},Je}(),Qt=function(){function Je(O,T,Y,De,Re,We,ft,lt){this._chunks=O,this._bom=T,this._cr=Y,this._lf=De,this._crlf=Re,this._containsRTL=We,this._isBasicASCII=ft,this._normalizeEOL=lt}return Je.prototype._getEOL=function(O){var T=this._cr+this._lf+this._crlf,Y=this._cr+this._crlf;return T===0?O===1?`
|
|
`:`\r
|
|
`:Y>T/2?`\r
|
|
`:`
|
|
`},Je.prototype.create=function(O){var T=this._getEOL(O),Y=this._chunks;if(this._normalizeEOL&&(T===`\r
|
|
`&&(this._cr>0||this._lf>0)||T===`
|
|
`&&(this._cr>0||this._crlf>0)))for(var De=0,Re=Y.length;De<Re;De++){var We=Y[De].buffer.replace(/\r\n|\r|\n/g,T),ft=Tn(We);Y[De]=new gt(We,ft)}return new Vt(Y,this._bom,T,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},Je}(),nn=function(){function Je(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.isBasicASCII=!0}return Je.prototype.acceptChunk=function(O){if(O.length===0)return;this.chunks.length===0&&(N.O(O)&&(this.BOM=N.a,O=O.substr(1)));var T=O.charCodeAt(O.length-1);T===13||T>=55296&&T<=56319?(this._acceptChunk1(O.substr(0,O.length-1),!1),this._hasPreviousChar=!0,this._previousChar=T):(this._acceptChunk1(O,!1),this._hasPreviousChar=!1,this._previousChar=T)},Je.prototype._acceptChunk1=function(O,T){if(!T&&O.length===0)return;this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+O):this._acceptChunk2(O)},Je.prototype._acceptChunk2=function(O){var T=Ft(this._tmpLineStarts,O);this.chunks.push(new gt(O,T.lineStarts)),this.cr+=T.cr,this.lf+=T.lf,this.crlf+=T.crlf,this.isBasicASCII&&(this.isBasicASCII=T.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=N.i(O))},Je.prototype.finish=function(O){return O===void 0&&(O=!0),this._finish(),new Qt(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,O)},Je.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var O=this.chunks[this.chunks.length-1];O.buffer+=String.fromCharCode(this._previousChar);var T=Tn(O.buffer);O.lineStarts=T,this._previousChar===13&&this.cr++}},Je}(),sn=function(){function Je(){this.changeType=1}return Je}(),ln=function(){function Je(O,T){this.changeType=2,this.lineNumber=O,this.detail=T}return Je}(),En=function(){function Je(O,T){this.changeType=3,this.fromLineNumber=O,this.toLineNumber=T}return Je}(),On=function(){function Je(O,T,Y){this.changeType=4,this.fromLineNumber=O,this.toLineNumber=T,this.detail=Y}return Je}(),Pn=function(){function Je(){this.changeType=5}return Je}(),Gn=function(){function Je(O,T,Y,De){this.changes=O,this.versionId=T,this.isUndoing=Y,this.isRedoing=De}return Je.prototype.containsEvent=function(O){for(var T=0,Y=this.changes.length;T<Y;T++){var De=this.changes[T];if(De.changeType===O)return!0}return!1},Je.merge=function(O,T){var Y=[].concat(O.changes).concat(T.changes),De=T.versionId,Re=O.isUndoing||T.isUndoing,We=O.isRedoing||T.isRedoing;return new Je(Y,De,Re,We)},Je}(),Qn=function(){function Je(O,T){this.rawContentChangedEvent=O,this.contentChangedEvent=T}return Je.prototype.merge=function(O){var T=Gn.merge(this.rawContentChangedEvent,O.rawContentChangedEvent),Y=Je._mergeChangeEvents(this.contentChangedEvent,O.contentChangedEvent);return new Je(T,Y)},Je._mergeChangeEvents=function(O,T){var Y=[].concat(O.changes).concat(T.changes),De=T.eol,Re=T.versionId,We=O.isUndoing||T.isUndoing,ft=O.isRedoing||T.isRedoing,lt=O.isFlush||T.isFlush;return{changes:Y,eol:De,versionId:Re,isUndoing:We,isRedoing:ft,isFlush:lt}},Je}(),Jn=r("Inmo"),gi=r("Q5rX"),Kn=r("vqGt"),yi=r("cqUj"),mi=r("aar3"),vt=r("Cagm"),Mt=r("S7i+"),zt=function(){var Je=function(T,Y){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Re){De.__proto__=Re}||function(De,Re){for(var We in Re)Re.hasOwnProperty(We)&&(De[We]=Re[We])},Je(T,Y)};return function(O,T){Je(O,T);function Y(){this.constructor=O}O.prototype=T===null?Object.create(T):(Y.prototype=T.prototype,new Y)}}(),tn=function(){function Je(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return Je.prototype._reset=function(O){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,O&&this._setBeginState(0,O)},Je.prototype.flush=function(O){this._reset(O)},Object.defineProperty(Je.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),Je.prototype._invalidateLine=function(O){O<this._len&&(this._valid[O]=!1),O<this._invalidLineStartIndex&&(this._invalidLineStartIndex=O)},Je.prototype._isValid=function(O){return O<this._len?this._valid[O]:!1},Je.prototype.getBeginState=function(O){return O<this._len?this._beginState[O]:null},Je.prototype._ensureLine=function(O){for(;O>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},Je.prototype._deleteLines=function(O,T){if(T===0)return;O+T>this._len&&(T=this._len-O),this._beginState.splice(O,T),this._valid.splice(O,T),this._len-=T},Je.prototype._insertLines=function(O,T){if(T===0)return;for(var Y=[],De=[],Re=0;Re<T;Re++)Y[Re]=null,De[Re]=!1;this._beginState=Jn.a(this._beginState,O,Y),this._valid=Jn.a(this._valid,O,De),this._len+=T},Je.prototype._setValid=function(O,T){this._ensureLine(O),this._valid[O]=T},Je.prototype._setBeginState=function(O,T){this._ensureLine(O),this._beginState[O]=T},Je.prototype.setEndState=function(O,T,Y){if(this._setValid(T,!0),this._invalidLineStartIndex=T+1,T===O-1)return;var De=this.getBeginState(T+1);if(De===null||!Y.equals(De)){this._setBeginState(T+1,Y),this._invalidateLine(T+1);return}for(var Re=T+1;Re<O&&this._isValid(Re);)Re++;this._invalidLineStartIndex=Re},Je.prototype.setFakeTokens=function(O){this._setValid(O,!1)},Je.prototype.applyEdits=function(O,T){for(var Y=O.endLineNumber-O.startLineNumber,De=T,Re=Math.min(Y,De),We=Re;We>=0;We--)this._invalidateLine(O.startLineNumber+We-1);this._acceptDeleteRange(O),this._acceptInsertText(new j.a(O.startLineNumber,O.startColumn),T)},Je.prototype._acceptDeleteRange=function(O){var T=O.startLineNumber-1;if(T>=this._len)return;this._deleteLines(O.startLineNumber,O.endLineNumber-O.startLineNumber)},Je.prototype._acceptInsertText=function(O,T){var Y=O.lineNumber-1;if(Y>=this._len)return;this._insertLines(O.lineNumber,T)},Je}(),Ut=function(Je){zt(O,Je);function O(T){var Y=Je.call(this)||this;return Y._isDisposed=!1,Y._textModel=T,Y._tokenizationStateStore=new tn,Y._tokenizationSupport=null,Y._register(Kn.y.onDidChange(function(De){var Re=Y._textModel.getLanguageIdentifier();if(De.changedLanguages.indexOf(Re.language)===-1)return;Y._resetTokenizationState(),Y._textModel.clearTokens()})),Y._register(Y._textModel.onDidChangeRawContentFast(function(De){if(De.containsEvent(1)){Y._resetTokenizationState();return}})),Y._register(Y._textModel.onDidChangeContentFast(function(De){for(var Re=0,We=De.changes.length;Re<We;Re++){var ft=De.changes[Re],lt=Object(vt.f)(ft.text)[0];Y._tokenizationStateStore.applyEdits(ft.range,lt)}Y._beginBackgroundTokenization()})),Y._register(Y._textModel.onDidChangeAttached(function(){Y._beginBackgroundTokenization()})),Y._register(Y._textModel.onDidChangeLanguage(function(){Y._resetTokenizationState(),Y._textModel.clearTokens()})),Y._resetTokenizationState(),Y}return O.prototype.dispose=function(){this._isDisposed=!0,Je.prototype.dispose.call(this)},O.prototype._resetTokenizationState=function(){var T=Sn(this._textModel),Y=T[0],De=T[1];this._tokenizationSupport=Y,this._tokenizationStateStore.flush(De),this._beginBackgroundTokenization()},O.prototype._beginBackgroundTokenization=function(){var T=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&Mt.i(function(){if(T._isDisposed)return;T._revalidateTokensNow()})},O.prototype._revalidateTokensNow=function(T){T===void 0&&(T=this._textModel.getLineCount());for(var Y=1,De=new vt.b,Re=mi.a.create(!1);this._hasLinesToTokenize()&&!(Re.elapsed()>Y);){var We=this._tokenizeOneInvalidLine(De);if(We>=T)break}this._beginBackgroundTokenization(),this._textModel.setTokens(De.tokens)},O.prototype.tokenizeViewport=function(T,Y){var De=new vt.b;this._tokenizeViewport(De,T,Y),this._textModel.setTokens(De.tokens)},O.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},O.prototype.forceTokenization=function(T){var Y=new vt.b;this._updateTokensUntilLine(Y,T),this._textModel.setTokens(Y.tokens)},O.prototype.isCheapToTokenize=function(T){if(!this._tokenizationSupport)return!0;var Y=this._tokenizationStateStore.invalidLineStartIndex+1;return T>Y?!1:T<Y?!0:this._textModel.getLineLength(T)<2048},O.prototype._hasLinesToTokenize=function(){return this._tokenizationSupport?this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount():!1},O.prototype._tokenizeOneInvalidLine=function(T){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var Y=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(T,Y),Y},O.prototype._updateTokensUntilLine=function(T,Y){if(!this._tokenizationSupport)return;for(var De=this._textModel.getLanguageIdentifier(),Re=this._textModel.getLineCount(),We=Y-1,ft=this._tokenizationStateStore.invalidLineStartIndex;ft<=We;ft++){var lt=this._textModel.getLineContent(ft+1),yt=this._tokenizationStateStore.getBeginState(ft),xt=Rn(De,this._tokenizationSupport,lt,yt);T.add(ft+1,xt.tokens),this._tokenizationStateStore.setEndState(Re,ft,xt.endState),ft=this._tokenizationStateStore.invalidLineStartIndex-1}},O.prototype._tokenizeViewport=function(T,Y,De){if(!this._tokenizationSupport)return;if(De<=this._tokenizationStateStore.invalidLineStartIndex)return;if(Y<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(T,De);return}for(var Re=this._textModel.getLineFirstNonWhitespaceColumn(Y),We=[],ft=null,lt=Y-1;Re>0&<>=1;lt--){var yt=this._textModel.getLineFirstNonWhitespaceColumn(lt);if(yt===0)continue;if(yt<Re){if(ft=this._tokenizationStateStore.getBeginState(lt-1),ft)break;We.push(this._textModel.getLineContent(lt)),Re=yt}}ft||(ft=this._tokenizationSupport.getInitialState());for(var xt=this._textModel.getLanguageIdentifier(),It=ft,lt=We.length-1;lt>=0;lt--){var kt=Rn(xt,this._tokenizationSupport,We[lt],It);It=kt.endState}for(var Yt=Y;Yt<=De;Yt++){var Zt=this._textModel.getLineContent(Yt),kt=Rn(xt,this._tokenizationSupport,Zt,It);T.add(Yt,kt.tokens),this._tokenizationStateStore.setFakeTokens(Yt-1),It=kt.endState}},O}(ne.a);function Sn(Je){var O=Je.getLanguageIdentifier(),T=Je.isTooLargeForTokenization()?null:Kn.y.get(O.language),Y=null;if(T)try{Y=T.getInitialState()}catch(De){Object(I.e)(De),T=null}return[T,Y]}function Rn(Je,O,T,Y){var De=null;if(O)try{De=O.tokenize2(T,Y.clone(),0)}catch(Re){Object(I.e)(Re)}return De||(De=Object(yi.e)(Je.id,T,Y,0)),gi.a.convertToEndOffset(De.tokens,T.length),De}var Bn=r("34RT"),Fn=r("tkZS"),ri=r("pLcT"),ci=r("lh12"),zi=r("yqRl"),oo=r("Ytku"),Zn=function(){var Je=function(T,Y){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Re){De.__proto__=Re}||function(De,Re){for(var We in Re)Re.hasOwnProperty(We)&&(De[We]=Re[We])},Je(T,Y)};return function(O,T){Je(O,T);function Y(){this.constructor=O}O.prototype=T===null?Object.create(T):(Y.prototype=T.prototype,new Y)}}();function Ii(){return new nn}function Si(Je){var O=Ii();return O.acceptChunk(Je),O.finish()}function ji(Je,O){var T=typeof Je=="string"?Si(Je):Je;return T.create(O)}var Un=0,Ci=999,Wi=1e4,Ti=function(){throw new Error("Invalid change accessor")},Gi=function(Je){Zn(O,Je);function O(T,Y,De,Re){Re===void 0&&(Re=null);var We=Je.call(this)||this;We._onWillDispose=We._register(new oe.a),We.onWillDispose=We._onWillDispose.event,We._onDidChangeDecorations=We._register(new Mi),We.onDidChangeDecorations=We._onDidChangeDecorations.event,We._onDidChangeLanguage=We._register(new oe.a),We.onDidChangeLanguage=We._onDidChangeLanguage.event,We._onDidChangeLanguageConfiguration=We._register(new oe.a),We.onDidChangeLanguageConfiguration=We._onDidChangeLanguageConfiguration.event,We._onDidChangeTokens=We._register(new oe.a),We.onDidChangeTokens=We._onDidChangeTokens.event,We._onDidChangeOptions=We._register(new oe.a),We.onDidChangeOptions=We._onDidChangeOptions.event,We._onDidChangeAttached=We._register(new oe.a),We.onDidChangeAttached=We._onDidChangeAttached.event,We._eventEmitter=We._register(new so),Un++,We.id="$model"+Un,We.isForSimpleWidget=Y.isForSimpleWidget,typeof Re=="undefined"||Re===null?We._associatedResource=F.a.parse("inmemory://model/"+Un):We._associatedResource=Re,We._attachedEditorCount=0,We._buffer=ji(T,Y.defaultEOL),We._options=O.resolveOptions(We._buffer,Y);var ft=We._buffer.getLineCount(),lt=We._buffer.getValueLengthInRange(new G.a(1,1,ft,We._buffer.getLineLength(ft)+1),0);return Y.largeFileOptimizations?We._isTooLargeForTokenization=lt>O.LARGE_FILE_SIZE_THRESHOLD||ft>O.LARGE_FILE_LINE_COUNT_THRESHOLD:We._isTooLargeForTokenization=!1,We._isTooLargeForSyncing=lt>O.MODEL_SYNC_LIMIT,We._versionId=1,We._alternativeVersionId=1,We._isDisposed=!1,We._isDisposing=!1,We._languageIdentifier=De||yi.a,We._languageRegistryListener=Fn.a.onDidChange(function(yt){yt.languageIdentifier.id===We._languageIdentifier.id&&We._onDidChangeLanguageConfiguration.fire({})}),We._instanceId=N.L(Un),We._lastDecorationId=0,We._decorations=Object.create(null),We._decorationsTree=new Bi,We._commandManager=new A(We),We._isUndoing=!1,We._isRedoing=!1,We._trimAutoWhitespaceLines=null,We._tokens=new vt.d,We._tokens2=new vt.e,We._tokenization=new Ut(We),We}return O.createFromString=function(T,Y,De,Re){return Y===void 0&&(Y=O.DEFAULT_CREATION_OPTIONS),De===void 0&&(De=null),Re===void 0&&(Re=null),new O(T,Y,De,Re)},O.resolveOptions=function(T,Y){if(Y.detectIndentation){var De=_(T,Y.tabSize,Y.insertSpaces);return new E.e({tabSize:De.tabSize,indentSize:De.tabSize,insertSpaces:De.insertSpaces,trimAutoWhitespace:Y.trimAutoWhitespace,defaultEOL:Y.defaultEOL})}return new E.e({tabSize:Y.tabSize,indentSize:Y.indentSize,insertSpaces:Y.insertSpaces,trimAutoWhitespace:Y.trimAutoWhitespace,defaultEOL:Y.defaultEOL})},O.prototype.onDidChangeRawContentFast=function(T){return this._eventEmitter.fastEvent(function(Y){return T(Y.rawContentChangedEvent)})},O.prototype.onDidChangeRawContent=function(T){return this._eventEmitter.slowEvent(function(Y){return T(Y.rawContentChangedEvent)})},O.prototype.onDidChangeContentFast=function(T){return this._eventEmitter.fastEvent(function(Y){return T(Y.contentChangedEvent)})},O.prototype.onDidChangeContent=function(T){return this._eventEmitter.slowEvent(function(Y){return T(Y.contentChangedEvent)})},O.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,Je.prototype.dispose.call(this),this._isDisposing=!1},O.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},O.prototype._emitContentChangedEvent=function(T,Y){if(this._isDisposing)return;this._eventEmitter.fire(new Qn(T,Y))},O.prototype.setValue=function(T){if(this._assertNotDisposed(),T===null)return;var Y=ji(T,this._options.defaultEOL);this.setValueFromTextBuffer(Y)},O.prototype._createContentChanged2=function(T,Y,De,Re,We,ft,lt){return{changes:[{range:T,rangeOffset:Y,rangeLength:De,text:Re}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:We,isRedoing:ft,isFlush:lt}},O.prototype.setValueFromTextBuffer=function(T){if(this._assertNotDisposed(),T===null)return;var Y=this.getFullModelRange(),De=this.getValueLengthInRange(Y),Re=this.getLineCount(),We=this.getLineMaxColumn(Re);this._buffer=T,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new Bi,this._commandManager=new A(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Gn([new sn],this._versionId,!1,!1),this._createContentChanged2(new G.a(1,1,Re,We),0,De,this.getValue(),!1,!1,!0))},O.prototype.setEOL=function(T){this._assertNotDisposed();var Y=T===1?`\r
|
|
`:`
|
|
`;if(this._buffer.getEOL()===Y)return;var De=this.getFullModelRange(),Re=this.getValueLengthInRange(De),We=this.getLineCount(),ft=this.getLineMaxColumn(We);this._onBeforeEOLChange(),this._buffer.setEOL(Y),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Gn([new Pn],this._versionId,!1,!1),this._createContentChanged2(new G.a(1,1,We,ft),0,Re,this.getValue(),!1,!1,!1))},O.prototype._onBeforeEOLChange=function(){var T=this.getVersionId(),Y=this._decorationsTree.search(0,!1,!1,T);this._ensureNodesHaveRanges(Y)},O.prototype._onAfterEOLChange=function(){for(var T=this.getVersionId(),Y=this._decorationsTree.collectNodesPostOrder(),De=0,Re=Y.length;De<Re;De++){var We=Y[De],ft=We.cachedAbsoluteStart-We.start,lt=this._buffer.getOffsetAt(We.range.startLineNumber,We.range.startColumn),yt=this._buffer.getOffsetAt(We.range.endLineNumber,We.range.endColumn);We.cachedAbsoluteStart=lt,We.cachedAbsoluteEnd=yt,We.cachedVersionId=T,We.start=lt-ft,We.end=yt-ft,Ye(We)}},O.prototype.onBeforeAttached=function(){this._attachedEditorCount++,this._attachedEditorCount===1&&this._onDidChangeAttached.fire(void 0)},O.prototype.onBeforeDetached=function(){this._attachedEditorCount--,this._attachedEditorCount===0&&this._onDidChangeAttached.fire(void 0)},O.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},O.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},O.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},O.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},O.prototype.isDisposed=function(){return this._isDisposed},O.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var T=0,Y=0,De=this._buffer.getLineCount(),Re=1;Re<=De;Re++){var We=this._buffer.getLineLength(Re);We>=Wi?Y+=We:T+=We}return Y>T},Object.defineProperty(O.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),O.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},O.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},O.prototype.updateOptions=function(T){this._assertNotDisposed();var Y=typeof T.tabSize!="undefined"?T.tabSize:this._options.tabSize,De=typeof T.indentSize!="undefined"?T.indentSize:this._options.indentSize,Re=typeof T.insertSpaces!="undefined"?T.insertSpaces:this._options.insertSpaces,We=typeof T.trimAutoWhitespace!="undefined"?T.trimAutoWhitespace:this._options.trimAutoWhitespace,ft=new E.e({tabSize:Y,indentSize:De,insertSpaces:Re,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:We});if(this._options.equals(ft))return;var lt=this._options.createChangeEvent(ft);this._options=ft,this._onDidChangeOptions.fire(lt)},O.prototype.detectIndentation=function(T,Y){this._assertNotDisposed();var De=_(this._buffer,Y,T);this.updateOptions({insertSpaces:De.insertSpaces,tabSize:De.tabSize,indentSize:De.tabSize})},O._normalizeIndentationFromWhitespace=function(T,Y,De){for(var Re=0,We=0;We<T.length;We++)T.charAt(We)===" "?Re+=Y:Re++;var ft="";if(!De){var lt=Math.floor(Re/Y);Re=Re%Y;for(var We=0;We<lt;We++)ft+=" "}for(var We=0;We<Re;We++)ft+=" ";return ft},O.normalizeIndentation=function(T,Y,De){var Re=N.q(T);return Re===-1&&(Re=T.length),O._normalizeIndentationFromWhitespace(T.substring(0,Re),Y,De)+T.substring(Re)},O.prototype.normalizeIndentation=function(T){return this._assertNotDisposed(),O.normalizeIndentation(T,this._options.indentSize,this._options.insertSpaces)},O.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},O.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},O.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},O.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},O.prototype.getOffsetAt=function(T){this._assertNotDisposed();var Y=this._validatePosition(T.lineNumber,T.column,0);return this._buffer.getOffsetAt(Y.lineNumber,Y.column)},O.prototype.getPositionAt=function(T){this._assertNotDisposed();var Y=Math.min(this._buffer.getLength(),Math.max(0,T));return this._buffer.getPositionAt(Y)},O.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},O.prototype._overwriteAlternativeVersionId=function(T){this._alternativeVersionId=T},O.prototype.getValue=function(T,Y){Y===void 0&&(Y=!1),this._assertNotDisposed();var De=this.getFullModelRange(),Re=this.getValueInRange(De,T);return Y?this._buffer.getBOM()+Re:Re},O.prototype.getValueLength=function(T,Y){Y===void 0&&(Y=!1),this._assertNotDisposed();var De=this.getFullModelRange(),Re=this.getValueLengthInRange(De,T);return Y?this._buffer.getBOM().length+Re:Re},O.prototype.getValueInRange=function(T,Y){return Y===void 0&&(Y=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(T),Y)},O.prototype.getValueLengthInRange=function(T,Y){return Y===void 0&&(Y=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(T),Y)},O.prototype.getCharacterCountInRange=function(T,Y){return Y===void 0&&(Y=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(T),Y)},O.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},O.prototype.getLineContent=function(T){if(this._assertNotDisposed(),T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(T)},O.prototype.getLineLength=function(T){if(this._assertNotDisposed(),T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(T)},O.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},O.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},O.prototype.getLineMinColumn=function(T){return this._assertNotDisposed(),1},O.prototype.getLineMaxColumn=function(T){if(this._assertNotDisposed(),T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(T)+1},O.prototype.getLineFirstNonWhitespaceColumn=function(T){if(this._assertNotDisposed(),T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(T)},O.prototype.getLineLastNonWhitespaceColumn=function(T){if(this._assertNotDisposed(),T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(T)},O.prototype._validateRangeRelaxedNoAllocations=function(T){var Y=this._buffer.getLineCount(),De=T.startLineNumber,Re=T.startColumn,We,ft;if(De<1)We=1,ft=1;else if(De>Y)We=Y,ft=this.getLineMaxColumn(We);else if(We=De|0,Re<=1)ft=1;else{var lt=this.getLineMaxColumn(We);Re>=lt?ft=lt:ft=Re|0}var yt=T.endLineNumber,xt=T.endColumn,It,kt;if(yt<1)It=1,kt=1;else if(yt>Y)It=Y,kt=this.getLineMaxColumn(It);else if(It=yt|0,xt<=1)kt=1;else{var lt=this.getLineMaxColumn(It);xt>=lt?kt=lt:kt=xt|0}return De===We&&Re===ft&&yt===It&&xt===kt&&T instanceof G.a&&!(T instanceof R.a)?T:new G.a(We,ft,It,kt)},O.prototype._isValidPosition=function(T,Y,De){if(typeof T!="number"||typeof Y!="number")return!1;if(isNaN(T)||isNaN(Y))return!1;if(T<1||Y<1)return!1;if((T|0)!==T||(Y|0)!==Y)return!1;var Re=this._buffer.getLineCount();if(T>Re)return!1;if(Y===1)return!0;var We=this.getLineMaxColumn(T);if(Y>We)return!1;if(De===1){var ft=this._buffer.getLineCharCode(T,Y-2);if(N.z(ft))return!1}return!0},O.prototype._validatePosition=function(T,Y,De){var Re=Math.floor(typeof T=="number"&&!isNaN(T)?T:1),We=Math.floor(typeof Y=="number"&&!isNaN(Y)?Y:1),ft=this._buffer.getLineCount();if(Re<1)return new j.a(1,1);if(Re>ft)return new j.a(ft,this.getLineMaxColumn(ft));if(We<=1)return new j.a(Re,1);var lt=this.getLineMaxColumn(Re);if(We>=lt)return new j.a(Re,lt);if(De===1){var yt=this._buffer.getLineCharCode(Re,We-2);if(N.z(yt))return new j.a(Re,We-1)}return new j.a(Re,We)},O.prototype.validatePosition=function(T){var Y=1;return this._assertNotDisposed(),T instanceof j.a&&this._isValidPosition(T.lineNumber,T.column,Y)?T:this._validatePosition(T.lineNumber,T.column,Y)},O.prototype._isValidRange=function(T,Y){var De=T.startLineNumber,Re=T.startColumn,We=T.endLineNumber,ft=T.endColumn;if(!this._isValidPosition(De,Re,0))return!1;if(!this._isValidPosition(We,ft,0))return!1;if(Y===1){var lt=Re>1?this._buffer.getLineCharCode(De,Re-2):0,yt=ft>1&&ft<=this._buffer.getLineLength(We)?this._buffer.getLineCharCode(We,ft-2):0,xt=N.z(lt),It=N.z(yt);return!xt&&!It}return!0},O.prototype.validateRange=function(T){var Y=1;if(this._assertNotDisposed(),T instanceof G.a&&!(T instanceof R.a)&&this._isValidRange(T,Y))return T;var De=this._validatePosition(T.startLineNumber,T.startColumn,0),Re=this._validatePosition(T.endLineNumber,T.endColumn,0),We=De.lineNumber,ft=De.column,lt=Re.lineNumber,yt=Re.column;if(Y===1){var xt=ft>1?this._buffer.getLineCharCode(We,ft-2):0,It=yt>1&&yt<=this._buffer.getLineLength(lt)?this._buffer.getLineCharCode(lt,yt-2):0,kt=N.z(xt),Yt=N.z(It);return!kt&&!Yt?new G.a(We,ft,lt,yt):We===lt&&ft===yt?new G.a(We,ft-1,lt,yt-1):kt&&Yt?new G.a(We,ft-1,lt,yt+1):kt?new G.a(We,ft-1,lt,yt):new G.a(We,ft,lt,yt+1)}return new G.a(We,ft,lt,yt)},O.prototype.modifyPosition=function(T,Y){this._assertNotDisposed();var De=this.getOffsetAt(T)+Y;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,De)))},O.prototype.getFullModelRange=function(){this._assertNotDisposed();var T=this.getLineCount();return new G.a(1,1,T,this.getLineMaxColumn(T))},O.prototype.findMatchesLineByLine=function(T,Y,De,Re){return this._buffer.findMatchesLineByLine(T,Y,De,Re)},O.prototype.findMatches=function(T,Y,De,Re,We,ft,lt){lt===void 0&&(lt=Ci),this._assertNotDisposed();var yt;if(G.a.isIRange(Y)?yt=this.validateRange(Y):yt=this.getFullModelRange(),!De&&T.indexOf(`
|
|
`)<0){var xt=new Gt.a(T,De,Re,We),It=xt.parseSearchRequest();return It?this.findMatchesLineByLine(yt,It,ft,lt):[]}return Gt.c.findMatches(this,new Gt.a(T,De,Re,We),yt,ft,lt)},O.prototype.findNextMatch=function(T,Y,De,Re,We,ft){this._assertNotDisposed();var lt=this.validatePosition(Y);if(!De&&T.indexOf(`
|
|
`)<0){var yt=new Gt.a(T,De,Re,We),xt=yt.parseSearchRequest();if(!xt)return null;var It=this.getLineCount(),kt=new G.a(lt.lineNumber,lt.column,It,this.getLineMaxColumn(It)),Yt=this.findMatchesLineByLine(kt,xt,ft,1);return Gt.c.findNextMatch(this,new Gt.a(T,De,Re,We),lt,ft),Yt.length>0?Yt[0]:(kt=new G.a(1,1,lt.lineNumber,this.getLineMaxColumn(lt.lineNumber)),Yt=this.findMatchesLineByLine(kt,xt,ft,1),Yt.length>0?Yt[0]:null)}return Gt.c.findNextMatch(this,new Gt.a(T,De,Re,We),lt,ft)},O.prototype.findPreviousMatch=function(T,Y,De,Re,We,ft){this._assertNotDisposed();var lt=this.validatePosition(Y);return Gt.c.findPreviousMatch(this,new Gt.a(T,De,Re,We),lt,ft)},O.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},O.prototype.pushEOL=function(T){var Y=this.getEOL()===`
|
|
`?0:1;if(Y===T)return;try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(T)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype.pushEditOperations=function(T,Y,De){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(T,Y,De)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype._pushEditOperations=function(T,Y,De){var Re=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var We=Y.map(function(Le){return{range:Re.validateRange(Le.range),text:Le.text}}),ft=!0,lt=0,yt=T.length;lt<yt;lt++){for(var xt=T[lt],It=!1,kt=0,Yt=We.length;kt<Yt;kt++){var Zt=We[kt].range,dn=Zt.startLineNumber>xt.endLineNumber,fn=xt.startLineNumber>Zt.endLineNumber;if(!dn&&!fn){It=!0;break}}if(!It){ft=!1;break}}if(ft)for(var lt=0,yt=this._trimAutoWhitespaceLines.length;lt<yt;lt++){for(var An=this._trimAutoWhitespaceLines[lt],gn=this.getLineMaxColumn(An),Mn=!0,kt=0,Yt=We.length;kt<Yt;kt++){var Zt=We[kt].range,xn=We[kt].text;if(An<Zt.startLineNumber||An>Zt.endLineNumber)continue;if(An===Zt.startLineNumber&&Zt.startColumn===gn&&Zt.isEmpty()&&xn&&xn.length>0&&xn.charAt(0)===`
|
|
`)continue;if(An===Zt.startLineNumber&&Zt.startColumn===1&&Zt.isEmpty()&&xn&&xn.length>0&&xn.charAt(xn.length-1)===`
|
|
`)continue;Mn=!1;break}Mn&&Y.push({range:new G.a(An,1,An,gn),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(T,Y,De)},O.prototype.applyEdits=function(T){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(T)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype._applyEdits=function(T){for(var Y=0,De=T.length;Y<De;Y++)T[Y].range=this.validateRange(T[Y].range);var Re=this._buffer.getLineCount(),We=this._buffer.applyEdits(T,this._options.trimAutoWhitespace),ft=this._buffer.getLineCount(),lt=We.changes;if(this._trimAutoWhitespaceLines=We.trimAutoWhitespaceLineNumbers,lt.length!==0){for(var yt=[],xt=Re,Y=0,De=lt.length;Y<De;Y++){var It=lt[Y],kt=Object(vt.f)(It.text),Yt=kt[0],Zt=kt[1],dn=kt[2];this._tokens.acceptEdit(It.range,Yt,Zt),this._tokens2.acceptEdit(It.range,Yt,Zt,dn,It.text.length>0?It.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(It.rangeOffset,It.rangeLength,It.text.length,It.forceMoveMarkers);for(var fn=It.range.startLineNumber,An=It.range.endLineNumber,gn=An-fn,Mn=Yt,xn=Math.min(gn,Mn),Le=Mn-gn,W=xn;W>=0;W--){var ae=fn+W,Fe=ft-xt-Le+ae;yt.push(new ln(ae,this.getLineContent(Fe)))}if(xn<gn){var qe=fn+xn;yt.push(new En(qe+1,An))}if(xn<Mn){for(var ct=fn+xn,St=Mn-xn,Ge=ft-xt-St+ct+1,de=[],X=0;X<St;X++){var Ue=Ge+X;de[Ue-Ge]=this.getLineContent(Ue)}yt.push(new On(ct+1,fn+Mn,de))}xt+=Le}this._increaseVersionId(),this._emitContentChangedEvent(new Gn(yt,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:lt,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return We.reverseEdits},O.prototype._undo=function(){this._isUndoing=!0;var T=this._commandManager.undo();return this._isUndoing=!1,T?(this._overwriteAlternativeVersionId(T.recordedVersionId),T.selections):null},O.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype.canUndo=function(){return this._commandManager.canUndo()},O.prototype._redo=function(){this._isRedoing=!0;var T=this._commandManager.redo();return this._isRedoing=!1,T?(this._overwriteAlternativeVersionId(T.recordedVersionId),T.selections):null},O.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},O.prototype.canRedo=function(){return this._commandManager.canRedo()},O.prototype.changeDecorations=function(T,Y){Y===void 0&&(Y=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(Y,T)}finally{this._onDidChangeDecorations.endDeferredEmit()}},O.prototype._changeDecorations=function(T,Y){var De=this,Re={addDecoration:function(lt,yt){return De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(T,[],[{range:lt,options:yt}])[0]},changeDecoration:function(lt,yt){De._onDidChangeDecorations.fire(),De._changeDecorationImpl(lt,yt)},changeDecorationOptions:function(lt,yt){De._onDidChangeDecorations.fire(),De._changeDecorationOptionsImpl(lt,lo(yt))},removeDecoration:function(lt){De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(T,[lt],[])},deltaDecorations:function(lt,yt){return lt.length===0&&yt.length===0?[]:(De._onDidChangeDecorations.fire(),De._deltaDecorationsImpl(T,lt,yt))}},We=null;try{We=Y(Re)}catch(ft){Object(I.e)(ft)}return Re.addDecoration=Ti,Re.changeDecoration=Ti,Re.changeDecorationOptions=Ti,Re.removeDecoration=Ti,Re.deltaDecorations=Ti,We},O.prototype.deltaDecorations=function(T,Y,De){if(De===void 0&&(De=0),this._assertNotDisposed(),T||(T=[]),T.length===0&&Y.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(De,T,Y)}finally{this._onDidChangeDecorations.endDeferredEmit()}},O.prototype._getTrackedRange=function(T){return this.getDecorationRange(T)},O.prototype._setTrackedRange=function(T,Y,De){var Re=T?this._decorations[T]:null;if(!Re)return Y?this._deltaDecorationsImpl(0,[],[{range:Y,options:Xi[De]}])[0]:null;if(!Y)return this._decorationsTree.delete(Re),delete this._decorations[Re.id],null;var We=this._validateRangeRelaxedNoAllocations(Y),ft=this._buffer.getOffsetAt(We.startLineNumber,We.startColumn),lt=this._buffer.getOffsetAt(We.endLineNumber,We.endColumn);return this._decorationsTree.delete(Re),Re.reset(this.getVersionId(),ft,lt,We),Re.setOptions(Xi[De]),this._decorationsTree.insert(Re),Re.id},O.prototype.removeAllDecorationsWithOwnerId=function(T){if(this._isDisposed)return;for(var Y=this._decorationsTree.collectNodesFromOwner(T),De=0,Re=Y.length;De<Re;De++){var We=Y[De];this._decorationsTree.delete(We),delete this._decorations[We.id]}},O.prototype.getDecorationOptions=function(T){var Y=this._decorations[T];return Y?Y.options:null},O.prototype.getDecorationRange=function(T){var Y=this._decorations[T];if(!Y)return null;var De=this.getVersionId();return Y.cachedVersionId!==De&&this._decorationsTree.resolveNode(Y,De),Y.range===null&&(Y.range=this._getRangeAt(Y.cachedAbsoluteStart,Y.cachedAbsoluteEnd)),Y.range},O.prototype.getLineDecorations=function(T,Y,De){return Y===void 0&&(Y=0),De===void 0&&(De=!1),T<1||T>this.getLineCount()?[]:this.getLinesDecorations(T,T,Y,De)},O.prototype.getLinesDecorations=function(T,Y,De,Re){De===void 0&&(De=0),Re===void 0&&(Re=!1);var We=this.getLineCount(),ft=Math.min(We,Math.max(1,T)),lt=Math.min(We,Math.max(1,Y)),yt=this.getLineMaxColumn(lt);return this._getDecorationsInRange(new G.a(ft,1,lt,yt),De,Re)},O.prototype.getDecorationsInRange=function(T,Y,De){Y===void 0&&(Y=0),De===void 0&&(De=!1);var Re=this.validateRange(T);return this._getDecorationsInRange(Re,Y,De)},O.prototype.getOverviewRulerDecorations=function(T,Y){T===void 0&&(T=0),Y===void 0&&(Y=!1);var De=this.getVersionId(),Re=this._decorationsTree.search(T,Y,!0,De);return this._ensureNodesHaveRanges(Re)},O.prototype.getAllDecorations=function(T,Y){T===void 0&&(T=0),Y===void 0&&(Y=!1);var De=this.getVersionId(),Re=this._decorationsTree.search(T,Y,!1,De);return this._ensureNodesHaveRanges(Re)},O.prototype._getDecorationsInRange=function(T,Y,De){var Re=this._buffer.getOffsetAt(T.startLineNumber,T.startColumn),We=this._buffer.getOffsetAt(T.endLineNumber,T.endColumn),ft=this.getVersionId(),lt=this._decorationsTree.intervalSearch(Re,We,Y,De,ft);return this._ensureNodesHaveRanges(lt)},O.prototype._ensureNodesHaveRanges=function(T){for(var Y=0,De=T.length;Y<De;Y++){var Re=T[Y];Re.range===null&&(Re.range=this._getRangeAt(Re.cachedAbsoluteStart,Re.cachedAbsoluteEnd))}return T},O.prototype._getRangeAt=function(T,Y){return this._buffer.getRangeAt(T,Y-T)},O.prototype._changeDecorationImpl=function(T,Y){var De=this._decorations[T];if(!De)return;var Re=this._validateRangeRelaxedNoAllocations(Y),We=this._buffer.getOffsetAt(Re.startLineNumber,Re.startColumn),ft=this._buffer.getOffsetAt(Re.endLineNumber,Re.endColumn);this._decorationsTree.delete(De),De.reset(this.getVersionId(),We,ft,Re),this._decorationsTree.insert(De)},O.prototype._changeDecorationOptionsImpl=function(T,Y){var De=this._decorations[T];if(!De)return;var Re=!!(De.options.overviewRuler&&De.options.overviewRuler.color),We=!!(Y.overviewRuler&&Y.overviewRuler.color);Re!==We?(this._decorationsTree.delete(De),De.setOptions(Y),this._decorationsTree.insert(De)):De.setOptions(Y)},O.prototype._deltaDecorationsImpl=function(T,Y,De){for(var Re=this.getVersionId(),We=Y.length,ft=0,lt=De.length,yt=0,xt=new Array(lt);ft<We||yt<lt;){var It=null;if(ft<We){do It=this._decorations[Y[ft++]];while(!It&&ft<We);It&&this._decorationsTree.delete(It)}if(yt<lt){if(!It){var kt=++this._lastDecorationId,Yt=this._instanceId+";"+kt;It=new Z(Yt,0,0),this._decorations[Yt]=It}var Zt=De[yt],dn=this._validateRangeRelaxedNoAllocations(Zt.range),fn=lo(Zt.options),An=this._buffer.getOffsetAt(dn.startLineNumber,dn.startColumn),gn=this._buffer.getOffsetAt(dn.endLineNumber,dn.endColumn);It.ownerId=T,It.reset(Re,An,gn,dn),It.setOptions(fn),this._decorationsTree.insert(It),xt[yt]=It.id,yt++}else It&&delete this._decorations[It.id]}return xt},O.prototype.setLineTokens=function(T,Y){if(T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,T-1,this._buffer.getLineLength(T),Y)},O.prototype.setTokens=function(T){if(T.length===0)return;for(var Y=[],De=0,Re=T.length;De<Re;De++){var We=T[De];Y.push({fromLineNumber:We.startLineNumber,toLineNumber:We.startLineNumber+We.tokens.length-1});for(var ft=0,lt=We.tokens.length;ft<lt;ft++)this.setLineTokens(We.startLineNumber+ft,We.tokens[ft])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:Y})},O.prototype.setSemanticTokens=function(T){this._tokens2.set(T),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},O.prototype.tokenizeViewport=function(T,Y){T=Math.max(1,T),Y=Math.min(this._buffer.getLineCount(),Y),this._tokenization.tokenizeViewport(T,Y)},O.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},O.prototype._emitModelTokensChangedEvent=function(T){this._isDisposing||this._onDidChangeTokens.fire(T)},O.prototype.resetTokenization=function(){this._tokenization.reset()},O.prototype.forceTokenization=function(T){if(T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(T)},O.prototype.isCheapToTokenize=function(T){return this._tokenization.isCheapToTokenize(T)},O.prototype.tokenizeIfCheap=function(T){this.isCheapToTokenize(T)&&this.forceTokenization(T)},O.prototype.getLineTokens=function(T){if(T<1||T>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(T)},O.prototype._getLineTokens=function(T){var Y=this.getLineContent(T),De=this._tokens.getTokens(this._languageIdentifier.id,T-1,Y);return this._tokens2.addSemanticTokens(T,De)},O.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},O.prototype.getModeId=function(){return this._languageIdentifier.language},O.prototype.setMode=function(T){if(this._languageIdentifier.id===T.id)return;var Y={oldLanguage:this._languageIdentifier.language,newLanguage:T.language};this._languageIdentifier=T,this._onDidChangeLanguage.fire(Y),this._onDidChangeLanguageConfiguration.fire({})},O.prototype.getLanguageIdAtPosition=function(T,Y){var De=this.validatePosition(new j.a(T,Y)),Re=this.getLineTokens(De.lineNumber);return Re.getLanguageId(Re.findTokenIndexAtOffset(De.column-1))},O.prototype.getWordAtPosition=function(T){this._assertNotDisposed();var Y=this.validatePosition(T),De=this.getLineContent(Y.lineNumber),Re=this._getLineTokens(Y.lineNumber),We=Re.findTokenIndexAtOffset(Y.column-1),ft=O._findLanguageBoundaries(Re,We),lt=ft[0],yt=ft[1],xt=Object(Bn.d)(Y.column,Fn.a.getWordDefinition(Re.getLanguageId(We)),De.substring(lt,yt),lt);if(xt&&xt.startColumn<=T.column&&T.column<=xt.endColumn)return xt;if(We>0&<===Y.column-1){var It=O._findLanguageBoundaries(Re,We-1),kt=It[0],Yt=It[1],Zt=Object(Bn.d)(Y.column,Fn.a.getWordDefinition(Re.getLanguageId(We-1)),De.substring(kt,Yt),kt);if(Zt&&Zt.startColumn<=T.column&&T.column<=Zt.endColumn)return Zt}return null},O._findLanguageBoundaries=function(T,Y){for(var De=T.getLanguageId(Y),Re=0,We=Y;We>=0&&T.getLanguageId(We)===De;We--)Re=T.getStartOffset(We);for(var ft=T.getLineContent().length,We=Y,lt=T.getCount();We<lt&&T.getLanguageId(We)===De;We++)ft=T.getEndOffset(We);return[Re,ft]},O.prototype.getWordUntilPosition=function(T){var Y=this.getWordAtPosition(T);return Y?{word:Y.word.substr(0,T.column-Y.startColumn),startColumn:Y.startColumn,endColumn:T.column}:{word:"",startColumn:T.column,endColumn:T.column}},O.prototype.findMatchingBracketUp=function(T,Y){var De=T.toLowerCase(),Re=this.validatePosition(Y),We=this._getLineTokens(Re.lineNumber),ft=We.getLanguageId(We.findTokenIndexAtOffset(Re.column-1)),lt=Fn.a.getBracketsSupport(ft);if(!lt)return null;var yt=lt.textIsBracket[De];return yt?this._findMatchingBracketUp(yt,Re):null},O.prototype.matchBracket=function(T){return this._matchBracket(this.validatePosition(T))},O.prototype._matchBracket=function(T){var Y=T.lineNumber,De=this._getLineTokens(Y),Re=De.getCount(),We=this._buffer.getLineContent(Y),ft=De.findTokenIndexAtOffset(T.column-1);if(ft<0)return null;var lt=Fn.a.getBracketsSupport(De.getLanguageId(ft));if(lt&&!Object(ri.b)(De.getStandardTokenType(ft))){for(var yt=Math.max(0,T.column-1-lt.maxBracketLength),xt=ft-1;xt>=0;xt--){var It=De.getEndOffset(xt);if(It<=yt)break;Object(ri.b)(De.getStandardTokenType(xt))&&(yt=It)}for(var kt=Math.min(We.length,T.column-1+lt.maxBracketLength),Yt=null;;){var Zt=ci.a.findNextBracketInRange(lt.forwardRegex,Y,We,yt,kt);if(!Zt)break;if(Zt.startColumn<=T.column&&T.column<=Zt.endColumn){var dn=We.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),fn=this._matchFoundBracket(Zt,lt.textIsBracket[dn],lt.textIsOpenBracket[dn]);fn&&(Yt=fn)}yt=Zt.endColumn-1}if(Yt)return Yt}if(ft>0&&De.getStartOffset(ft)===T.column-1){var An=ft-1,gn=Fn.a.getBracketsSupport(De.getLanguageId(An));if(gn&&!Object(ri.b)(De.getStandardTokenType(An))){for(var yt=Math.max(0,T.column-1-gn.maxBracketLength),kt=Math.min(We.length,T.column-1+gn.maxBracketLength),xt=An+1;xt<Re;xt++){var Mn=De.getStartOffset(xt);if(Mn>=kt)break;Object(ri.b)(De.getStandardTokenType(xt))&&(kt=Mn)}var Zt=ci.a.findPrevBracketInRange(gn.reversedRegex,Y,We,yt,kt);if(Zt&&Zt.startColumn<=T.column&&T.column<=Zt.endColumn){var dn=We.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),fn=this._matchFoundBracket(Zt,gn.textIsBracket[dn],gn.textIsOpenBracket[dn]);if(fn)return fn}}}return null},O.prototype._matchFoundBracket=function(T,Y,De){if(!Y)return null;if(De){var Re=this._findMatchingBracketDown(Y,T.getEndPosition());if(Re)return[T,Re]}else{var Re=this._findMatchingBracketUp(Y,T.getStartPosition());if(Re)return[T,Re]}return null},O.prototype._findMatchingBracketUp=function(T,Y){for(var De=T.languageIdentifier.id,Re=T.reversedRegex,We=-1,ft=function(Mn,xn,Le,W){for(;;){var ae=ci.a.findPrevBracketInRange(Re,Mn,xn,Le,W);if(!ae)break;var Fe=xn.substring(ae.startColumn-1,ae.endColumn-1).toLowerCase();if(T.isOpen(Fe)?We++:T.isClose(Fe)&&We--,We===0)return ae;W=ae.startColumn-1}return null},lt=Y.lineNumber;lt>=1;lt--){var yt=this._getLineTokens(lt),xt=yt.getCount(),It=this._buffer.getLineContent(lt),kt=xt-1,Yt=It.length,Zt=It.length;lt===Y.lineNumber&&(kt=yt.findTokenIndexAtOffset(Y.column-1),Yt=Y.column-1,Zt=Y.column-1);for(var dn=!0;kt>=0;kt--){var fn=yt.getLanguageId(kt)===De&&!Object(ri.b)(yt.getStandardTokenType(kt));if(fn)dn?Yt=yt.getStartOffset(kt):(Yt=yt.getStartOffset(kt),Zt=yt.getEndOffset(kt));else if(dn&&Yt!==Zt){var An=ft(lt,It,Yt,Zt);if(An)return An}dn=fn}if(dn&&Yt!==Zt){var An=ft(lt,It,Yt,Zt);if(An)return An}}return null},O.prototype._findMatchingBracketDown=function(T,Y){for(var De=T.languageIdentifier.id,Re=T.forwardRegex,We=1,ft=function(xn,Le,W,ae){for(;;){var Fe=ci.a.findNextBracketInRange(Re,xn,Le,W,ae);if(!Fe)break;var qe=Le.substring(Fe.startColumn-1,Fe.endColumn-1).toLowerCase();if(T.isOpen(qe)?We++:T.isClose(qe)&&We--,We===0)return Fe;W=Fe.endColumn-1}return null},lt=this.getLineCount(),yt=Y.lineNumber;yt<=lt;yt++){var xt=this._getLineTokens(yt),It=xt.getCount(),kt=this._buffer.getLineContent(yt),Yt=0,Zt=0,dn=0;yt===Y.lineNumber&&(Yt=xt.findTokenIndexAtOffset(Y.column-1),Zt=Y.column-1,dn=Y.column-1);for(var fn=!0;Yt<It;Yt++){var An=xt.getLanguageId(Yt)===De&&!Object(ri.b)(xt.getStandardTokenType(Yt));if(An)fn||(Zt=xt.getStartOffset(Yt)),dn=xt.getEndOffset(Yt);else if(fn&&Zt!==dn){var gn=ft(yt,kt,Zt,dn);if(gn)return gn}fn=An}if(fn&&Zt!==dn){var gn=ft(yt,kt,Zt,dn);if(gn)return gn}}return null},O.prototype.findPrevBracket=function(T){for(var Y=this.validatePosition(T),De=-1,Re=null,We=Y.lineNumber;We>=1;We--){var ft=this._getLineTokens(We),lt=ft.getCount(),yt=this._buffer.getLineContent(We),xt=lt-1,It=yt.length,kt=yt.length;if(We===Y.lineNumber){xt=ft.findTokenIndexAtOffset(Y.column-1),It=Y.column-1,kt=Y.column-1;var Yt=ft.getLanguageId(xt);De!==Yt&&(De=Yt,Re=Fn.a.getBracketsSupport(De))}for(var Zt=!0;xt>=0;xt--){var Yt=ft.getLanguageId(xt);if(De!==Yt){if(Re&&Zt&&It!==kt){var dn=ci.a.findPrevBracketInRange(Re.reversedRegex,We,yt,It,kt);if(dn)return this._toFoundBracket(Re,dn);Zt=!1}De=Yt,Re=Fn.a.getBracketsSupport(De)}var fn=!!Re&&!Object(ri.b)(ft.getStandardTokenType(xt));if(fn)Zt?It=ft.getStartOffset(xt):(It=ft.getStartOffset(xt),kt=ft.getEndOffset(xt));else if(Re&&Zt&&It!==kt){var dn=ci.a.findPrevBracketInRange(Re.reversedRegex,We,yt,It,kt);if(dn)return this._toFoundBracket(Re,dn)}Zt=fn}if(Re&&Zt&&It!==kt){var dn=ci.a.findPrevBracketInRange(Re.reversedRegex,We,yt,It,kt);if(dn)return this._toFoundBracket(Re,dn)}}return null},O.prototype.findNextBracket=function(T){for(var Y=this.validatePosition(T),De=this.getLineCount(),Re=-1,We=null,ft=Y.lineNumber;ft<=De;ft++){var lt=this._getLineTokens(ft),yt=lt.getCount(),xt=this._buffer.getLineContent(ft),It=0,kt=0,Yt=0;if(ft===Y.lineNumber){It=lt.findTokenIndexAtOffset(Y.column-1),kt=Y.column-1,Yt=Y.column-1;var Zt=lt.getLanguageId(It);Re!==Zt&&(Re=Zt,We=Fn.a.getBracketsSupport(Re))}for(var dn=!0;It<yt;It++){var Zt=lt.getLanguageId(It);if(Re!==Zt){if(We&&dn&&kt!==Yt){var fn=ci.a.findNextBracketInRange(We.forwardRegex,ft,xt,kt,Yt);if(fn)return this._toFoundBracket(We,fn);dn=!1}Re=Zt,We=Fn.a.getBracketsSupport(Re)}var An=!!We&&!Object(ri.b)(lt.getStandardTokenType(It));if(An)dn||(kt=lt.getStartOffset(It)),Yt=lt.getEndOffset(It);else if(We&&dn&&kt!==Yt){var fn=ci.a.findNextBracketInRange(We.forwardRegex,ft,xt,kt,Yt);if(fn)return this._toFoundBracket(We,fn)}dn=An}if(We&&dn&&kt!==Yt){var fn=ci.a.findNextBracketInRange(We.forwardRegex,ft,xt,kt,Yt);if(fn)return this._toFoundBracket(We,fn)}}return null},O.prototype.findEnclosingBrackets=function(T,Y){var De=this;Y===void 0&&(Y=1073741824);for(var Re=this.validatePosition(T),We=this.getLineCount(),ft=new Map,lt=[],yt=function(St,Ge){if(!ft.has(St)){for(var de=[],X=0,Ue=Ge?Ge.brackets.length:0;X<Ue;X++)de[X]=0;ft.set(St,de)}lt=ft.get(St)},xt=function(St,Ge,de,X,Ue){for(;;){var at=ci.a.findNextBracketInRange(St.forwardRegex,Ge,de,X,Ue);if(!at)break;var et=de.substring(at.startColumn-1,at.endColumn-1).toLowerCase(),Q=St.textIsBracket[et];if(Q&&(Q.isOpen(et)?lt[Q.index]++:Q.isClose(et)&<[Q.index]--,lt[Q.index]===-1))return De._matchFoundBracket(at,Q,!1);X=at.endColumn-1}return null},It=-1,kt=null,Yt=Date.now(),Zt=Re.lineNumber;Zt<=We;Zt++){var dn=Date.now()-Yt;if(dn>Y)return null;var fn=this._getLineTokens(Zt),An=fn.getCount(),gn=this._buffer.getLineContent(Zt),Mn=0,xn=0,Le=0;if(Zt===Re.lineNumber){Mn=fn.findTokenIndexAtOffset(Re.column-1),xn=Re.column-1,Le=Re.column-1;var W=fn.getLanguageId(Mn);It!==W&&(It=W,kt=Fn.a.getBracketsSupport(It),yt(It,kt))}for(var ae=!0;Mn<An;Mn++){var W=fn.getLanguageId(Mn);if(It!==W){if(kt&&ae&&xn!==Le){var Fe=xt(kt,Zt,gn,xn,Le);if(Fe)return Fe;ae=!1}It=W,kt=Fn.a.getBracketsSupport(It),yt(It,kt)}var qe=!!kt&&!Object(ri.b)(fn.getStandardTokenType(Mn));if(qe)ae||(xn=fn.getStartOffset(Mn)),Le=fn.getEndOffset(Mn);else if(kt&&ae&&xn!==Le){var Fe=xt(kt,Zt,gn,xn,Le);if(Fe)return Fe}ae=qe}if(kt&&ae&&xn!==Le){var Fe=xt(kt,Zt,gn,xn,Le);if(Fe)return Fe}}return null},O.prototype._toFoundBracket=function(T,Y){if(!Y)return null;var De=this.getValueInRange(Y);De=De.toLowerCase();var Re=T.textIsBracket[De];return Re?{range:Y,open:Re.open,close:Re.close,isOpen:T.textIsOpenBracket[De]}:null},O.computeIndentLevel=function(T,Y){for(var De=0,Re=0,We=T.length;Re<We;){var ft=T.charCodeAt(Re);if(ft===32)De++;else if(ft===9)De=De-De%Y+Y;else break;Re++}return Re===We?-1:De},O.prototype._computeIndentLevel=function(T){return O.computeIndentLevel(this._buffer.getLineContent(T+1),this._options.tabSize)},O.prototype.getActiveIndentGuide=function(T,Y,De){var Re=this;this._assertNotDisposed();var We=this.getLineCount();if(T<1||T>We)throw new Error("Illegal value for lineNumber");for(var ft=Fn.a.getFoldingRules(this._languageIdentifier.id),lt=Boolean(ft&&ft.offSide),yt=-2,xt=-1,It=-2,kt=-1,Yt=function(Ue){if(yt!==-1&&(yt===-2||yt>Ue-1)){yt=-1,xt=-1;for(var at=Ue-2;at>=0;at--){var et=Re._computeIndentLevel(at);if(et>=0){yt=at,xt=et;break}}}if(It===-2){It=-1,kt=-1;for(var at=Ue;at<We;at++){var Q=Re._computeIndentLevel(at);if(Q>=0){It=at,kt=Q;break}}}},Zt=-2,dn=-1,fn=-2,An=-1,gn=function(Ue){if(Zt===-2){Zt=-1,dn=-1;for(var at=Ue-2;at>=0;at--){var et=Re._computeIndentLevel(at);if(et>=0){Zt=at,dn=et;break}}}if(fn!==-1&&(fn===-2||fn<Ue-1)){fn=-1,An=-1;for(var at=Ue;at<We;at++){var Q=Re._computeIndentLevel(at);if(Q>=0){fn=at,An=Q;break}}}},Mn=0,xn=!0,Le=0,W=!0,ae=0,Fe=0;xn||W;Fe++){var qe=T-Fe,ct=T+Fe;if(Fe!==0&&(qe<1||qe<Y)&&(xn=!1),Fe!==0&&(ct>We||ct>De)&&(W=!1),Fe>5e4&&(xn=!1,W=!1),xn){var St=void 0,Ge=this._computeIndentLevel(qe-1);if(Ge>=0?(It=qe-1,kt=Ge,St=Math.ceil(Ge/this._options.indentSize)):(Yt(qe),St=this._getIndentLevelForWhitespaceLine(lt,xt,kt)),Fe===0){if(Mn=qe,Le=ct,ae=St,ae===0)return{startLineNumber:Mn,endLineNumber:Le,indent:ae};continue}St>=ae?Mn=qe:xn=!1}if(W){var de=void 0,Ge=this._computeIndentLevel(ct-1);Ge>=0?(Zt=ct-1,dn=Ge,de=Math.ceil(Ge/this._options.indentSize)):(gn(ct),de=this._getIndentLevelForWhitespaceLine(lt,dn,An)),de>=ae?Le=ct:W=!1}}return{startLineNumber:Mn,endLineNumber:Le,indent:ae}},O.prototype.getLinesIndentGuides=function(T,Y){this._assertNotDisposed();var De=this.getLineCount();if(T<1||T>De)throw new Error("Illegal value for startLineNumber");if(Y<1||Y>De)throw new Error("Illegal value for endLineNumber");for(var Re=Fn.a.getFoldingRules(this._languageIdentifier.id),We=Boolean(Re&&Re.offSide),ft=new Array(Y-T+1),lt=-2,yt=-1,xt=-2,It=-1,kt=T;kt<=Y;kt++){var Yt=kt-T,Zt=this._computeIndentLevel(kt-1);if(Zt>=0){lt=kt-1,yt=Zt,ft[Yt]=Math.ceil(Zt/this._options.indentSize);continue}if(lt===-2){lt=-1,yt=-1;for(var dn=kt-2;dn>=0;dn--){var fn=this._computeIndentLevel(dn);if(fn>=0){lt=dn,yt=fn;break}}}if(xt!==-1&&(xt===-2||xt<kt-1)){xt=-1,It=-1;for(var dn=kt;dn<De;dn++){var fn=this._computeIndentLevel(dn);if(fn>=0){xt=dn,It=fn;break}}}ft[Yt]=this._getIndentLevelForWhitespaceLine(We,yt,It)}return ft},O.prototype._getIndentLevelForWhitespaceLine=function(T,Y,De){return Y===-1||De===-1?0:Y<De?1+Math.floor(Y/this._options.indentSize):Y===De?Math.ceil(De/this._options.indentSize):T?Math.ceil(De/this._options.indentSize):1+Math.floor(De/this._options.indentSize)},O.MODEL_SYNC_LIMIT=50*1024*1024,O.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024,O.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3,O.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:U.c.tabSize,indentSize:U.c.indentSize,insertSpaces:U.c.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:U.c.trimAutoWhitespace,largeFileOptimizations:U.c.largeFileOptimizations},O}(ne.a),Bi=function(){function Je(){this._decorationsTree0=new Me,this._decorationsTree1=new Me}return Je.prototype.intervalSearch=function(O,T,Y,De,Re){var We=this._decorationsTree0.intervalSearch(O,T,Y,De,Re),ft=this._decorationsTree1.intervalSearch(O,T,Y,De,Re);return We.concat(ft)},Je.prototype.search=function(O,T,Y,De){if(Y)return this._decorationsTree1.search(O,T,De);var Re=this._decorationsTree0.search(O,T,De),We=this._decorationsTree1.search(O,T,De);return Re.concat(We)},Je.prototype.collectNodesFromOwner=function(O){var T=this._decorationsTree0.collectNodesFromOwner(O),Y=this._decorationsTree1.collectNodesFromOwner(O);return T.concat(Y)},Je.prototype.collectNodesPostOrder=function(){var O=this._decorationsTree0.collectNodesPostOrder(),T=this._decorationsTree1.collectNodesPostOrder();return O.concat(T)},Je.prototype.insert=function(O){H(O)?this._decorationsTree1.insert(O):this._decorationsTree0.insert(O)},Je.prototype.delete=function(O){H(O)?this._decorationsTree1.delete(O):this._decorationsTree0.delete(O)},Je.prototype.resolveNode=function(O,T){H(O)?this._decorationsTree1.resolveNode(O,T):this._decorationsTree0.resolveNode(O,T)},Je.prototype.acceptReplace=function(O,T,Y,De){this._decorationsTree0.acceptReplace(O,T,Y,De),this._decorationsTree1.acceptReplace(O,T,Y,De)},Je}();function vi(Je){return Je.replace(/[^a-z0-9\-_]/gi," ")}var qi=function(){function Je(O){this.color=O.color||"",this.darkColor=O.darkColor||""}return Je}(),ro=function(Je){Zn(O,Je);function O(T){var Y=Je.call(this,T)||this;return Y._resolvedColor=null,Y.position=typeof T.position=="number"?T.position:E.d.Center,Y}return O.prototype.getColor=function(T){return this._resolvedColor||(T.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,T):this._resolvedColor=this._resolveColor(this.color,T)),this._resolvedColor},O.prototype.invalidateCachedColor=function(){this._resolvedColor=null},O.prototype._resolveColor=function(T,Y){if(typeof T=="string")return T;var De=T?Y.getColor(T.id):null;return De?De.toString():""},O}(qi),bi=function(Je){Zn(O,Je);function O(T){var Y=Je.call(this,T)||this;return Y.position=T.position,Y}return O.prototype.getColor=function(T){return this._resolvedColor||(T.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,T):this._resolvedColor=this._resolveColor(this.color,T)),this._resolvedColor},O.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},O.prototype._resolveColor=function(T,Y){return typeof T=="string"?oo.a.fromHex(T):Y.getColor(T.id)},O}(qi),Di=function(){function Je(O){this.stickiness=O.stickiness||0,this.zIndex=O.zIndex||0,this.className=O.className?vi(O.className):null,this.hoverMessage=Object(zi.o)(O.hoverMessage),this.glyphMarginHoverMessage=Object(zi.o)(O.glyphMarginHoverMessage),this.isWholeLine=O.isWholeLine||!1,this.showIfCollapsed=O.showIfCollapsed||!1,this.collapseOnReplaceEdit=O.collapseOnReplaceEdit||!1,this.overviewRuler=O.overviewRuler?new ro(O.overviewRuler):null,this.minimap=O.minimap?new bi(O.minimap):null,this.glyphMarginClassName=O.glyphMarginClassName?vi(O.glyphMarginClassName):null,this.linesDecorationsClassName=O.linesDecorationsClassName?vi(O.linesDecorationsClassName):null,this.marginClassName=O.marginClassName?vi(O.marginClassName):null,this.inlineClassName=O.inlineClassName?vi(O.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=O.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=O.beforeContentClassName?vi(O.beforeContentClassName):null,this.afterContentClassName=O.afterContentClassName?vi(O.afterContentClassName):null}return Je.register=function(O){return new Je(O)},Je.createDynamic=function(O){return new Je(O)},Je}();Di.EMPTY=Di.register({});var Xi=[Di.register({stickiness:0}),Di.register({stickiness:1}),Di.register({stickiness:2}),Di.register({stickiness:3})];function lo(Je){return Je instanceof Di?Je:Di.createDynamic(Je)}var Mi=function(Je){Zn(O,Je);function O(){var T=Je.call(this)||this;return T._actual=T._register(new oe.a),T.event=T._actual.event,T._deferredCnt=0,T._shouldFire=!1,T}return O.prototype.beginDeferredEmit=function(){this._deferredCnt++},O.prototype.endDeferredEmit=function(){this._deferredCnt--,this._deferredCnt===0&&(this._shouldFire&&(this._shouldFire=!1,this._actual.fire({})))},O.prototype.fire=function(){this._shouldFire=!0},O}(ne.a),so=function(Je){Zn(O,Je);function O(){var T=Je.call(this)||this;return T._fastEmitter=T._register(new oe.a),T.fastEvent=T._fastEmitter.event,T._slowEmitter=T._register(new oe.a),T.slowEvent=T._slowEmitter.event,T._deferredCnt=0,T._deferredEvent=null,T}return O.prototype.beginDeferredEmit=function(){this._deferredCnt++},O.prototype.endDeferredEmit=function(){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){var T=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(T),this._slowEmitter.fire(T)}},O.prototype.fire=function(T){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(T):this._deferredEvent=T;return}this._fastEmitter.fire(T),this._slowEmitter.fire(T)},O}(ne.a)},"8hEA":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return r.e(217).then(r.bind(null,"S7HC"))}})},"9HM1":function(wt,P,r){"use strict";r.d(P,"a",function(){return I}),r.d(P,"b",function(){return oe}),r.d(P,"c",function(){return ne});var I={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},oe=function(){function N(F){this.data=F}return N.prototype.update=function(){},N.prototype.getData=function(){return this.data},N}(),ne={CurrentDragAndDropData:void 0}},"9UUe":function(wt,P,r){},"9wIi":function(wt,P,r){"use strict";r.r(P);var I=r("g9ht"),oe=r("Qun0"),ne=r("Whdu"),N=r("2GBI"),F=r("qz6B"),U=r("V0RK"),j=r("w9Cd"),G=r("F5bH"),R=r("tkZS"),E=function(){function p(g,m){this._selection=g,this._insertSpace=m,this._usedEndToken=null}return p._haystackHasNeedleAtOffset=function(g,m,w){if(w<0)return!1;var B=m.length,H=g.length;if(w+B>H)return!1;for(var re=0;re<B;re++){var he=g.charCodeAt(w+re),Ee=m.charCodeAt(re);if(he===Ee)continue;if(he>=65&&he<=90&&he+32===Ee)continue;if(Ee>=65&&Ee<=90&&Ee+32===he)continue;return!1}return!0},p.prototype._createOperationsForBlockComment=function(g,m,w,B,H,re){var he=g.startLineNumber,Ee=g.startColumn,Se=g.endLineNumber,q=g.endColumn,Z=H.getLineContent(he),ce=H.getLineContent(Se),Me=Z.lastIndexOf(m,Ee-1+m.length),Ve=ce.indexOf(w,q-1-w.length);if(Me!==-1&&Ve!==-1)if(he===Se){var _e=Z.substring(Me+m.length,Ve);_e.indexOf(w)>=0&&(Me=-1,Ve=-1)}else{var ue=Z.substring(Me+m.length),se=ce.substring(0,Ve);(ue.indexOf(w)>=0||se.indexOf(w)>=0)&&(Me=-1,Ve=-1)}var fe;Me!==-1&&Ve!==-1?(B&&Me+m.length<Z.length&&Z.charCodeAt(Me+m.length)===32&&(m=m+" "),B&&Ve>0&&ce.charCodeAt(Ve-1)===32&&(w=" "+w,Ve-=1),fe=p._createRemoveBlockCommentOperations(new j.a(he,Me+m.length+1,Se,Ve+1),m,w)):(fe=p._createAddBlockCommentOperations(g,m,w,this._insertSpace),this._usedEndToken=fe.length===1?w:null);for(var ie=0,J=fe;ie<J.length;ie++){var me=J[ie];re.addTrackedEditOperation(me.range,me.text)}},p._createRemoveBlockCommentOperations=function(g,m,w){var B=[];return j.a.isEmpty(g)?B.push(F.a.delete(new j.a(g.startLineNumber,g.startColumn-m.length,g.endLineNumber,g.endColumn+w.length))):(B.push(F.a.delete(new j.a(g.startLineNumber,g.startColumn-m.length,g.startLineNumber,g.startColumn))),B.push(F.a.delete(new j.a(g.endLineNumber,g.endColumn,g.endLineNumber,g.endColumn+w.length)))),B},p._createAddBlockCommentOperations=function(g,m,w,B){var H=[];return j.a.isEmpty(g)?H.push(F.a.replace(new j.a(g.startLineNumber,g.startColumn,g.endLineNumber,g.endColumn),m+" "+w)):(H.push(F.a.insert(new U.a(g.startLineNumber,g.startColumn),m+(B?" ":""))),H.push(F.a.insert(new U.a(g.endLineNumber,g.endColumn),(B?" ":"")+w))),H},p.prototype.getEditOperations=function(g,m){var w=this._selection.startLineNumber,B=this._selection.startColumn;g.tokenizeIfCheap(w);var H=g.getLanguageIdAtPosition(w,B),re=R.a.getComments(H);if(!re||!re.blockCommentStartToken||!re.blockCommentEndToken)return;this._createOperationsForBlockComment(this._selection,re.blockCommentStartToken,re.blockCommentEndToken,this._insertSpace,g,m)},p.prototype.computeCursorState=function(g,m){var w=m.getInverseEditOperations();if(w.length===2){var B=w[0],H=w[1];return new G.a(B.range.endLineNumber,B.range.endColumn,H.range.startLineNumber,H.range.startColumn)}else{var re=w[0].range,he=this._usedEndToken?-this._usedEndToken.length-1:0;return new G.a(re.endLineNumber,re.endColumn+he,re.endLineNumber,re.endColumn+he)}},p}(),x=r("yBOt"),K=function(){function p(g,m,w,B){this._selection=g,this._tabSize=m,this._type=w,this._insertSpace=B,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1}return p._gatherPreflightCommentStrings=function(g,m,w){g.tokenizeIfCheap(m);var B=g.getLanguageIdAtPosition(m,1),H=R.a.getComments(B),re=H?H.lineCommentToken:null;if(!re)return null;for(var he=[],Ee=0,Se=w-m+1;Ee<Se;Ee++)he[Ee]={ignore:!1,commentStr:re,commentStrOffset:0,commentStrLength:re.length};return he},p._analyzeLines=function(g,m,w,B,H){var re=!0,he;g===0?he=!0:g===1?he=!1:he=!0;for(var Ee=0,Se=B.length;Ee<Se;Ee++){var q=B[Ee],Z=H+Ee,ce=w.getLineContent(Z),Me=x.q(ce);if(Me===-1){g===0||g===1,q.ignore=!0,q.commentStrOffset=ce.length;continue}if(re=!1,q.ignore=!1,q.commentStrOffset=Me,he&&!E._haystackHasNeedleAtOffset(ce,q.commentStr,Me)&&(g===0?he=!1:g===1||(q.ignore=!0)),he&&m){var Ve=Me+q.commentStrLength;Ve<ce.length&&ce.charCodeAt(Ve)===32&&(q.commentStrLength+=1)}}if(g===0&&re){he=!1;for(var Ee=0,Se=B.length;Ee<Se;Ee++)B[Ee].ignore=!1}return{supported:!0,shouldRemoveComments:he,lines:B}},p._gatherPreflightData=function(g,m,w,B,H){var re=p._gatherPreflightCommentStrings(w,B,H);return re===null?{supported:!1}:p._analyzeLines(g,m,w,re,B)},p.prototype._executeLineComments=function(g,m,w,B){var H;w.shouldRemoveComments?H=p._createRemoveLineCommentsOperations(w.lines,B.startLineNumber):(p._normalizeInsertionPoint(g,w.lines,B.startLineNumber,this._tabSize),H=this._createAddLineCommentsOperations(w.lines,B.startLineNumber));for(var re=new U.a(B.positionLineNumber,B.positionColumn),he=0,Ee=H.length;he<Ee;he++)if(m.addEditOperation(H[he].range,H[he].text),H[he].range.isEmpty()&&H[he].range.getStartPosition().equals(re)){var Se=g.getLineContent(re.lineNumber);Se.length+1===re.column&&(this._deltaColumn=(H[he].text||"").length)}this._selectionId=m.trackSelection(B)},p.prototype._attemptRemoveBlockComment=function(g,m,w,B){var H=m.startLineNumber,re=m.endLineNumber,he=B.length+Math.max(g.getLineFirstNonWhitespaceColumn(m.startLineNumber),m.startColumn),Ee=g.getLineContent(H).lastIndexOf(w,he-1),Se=g.getLineContent(re).indexOf(B,m.endColumn-1-w.length);return Ee!==-1&&Se===-1&&(Se=g.getLineContent(H).indexOf(B,Ee+w.length),re=H),Ee===-1&&Se!==-1&&(Ee=g.getLineContent(re).lastIndexOf(w,Se),H=re),m.isEmpty()&&(Ee===-1||Se===-1)&&(Ee=g.getLineContent(H).indexOf(w),Ee!==-1&&(Se=g.getLineContent(H).indexOf(B,Ee+w.length))),Ee!==-1&&g.getLineContent(H).charCodeAt(Ee+w.length)===32&&(w+=" "),Se!==-1&&g.getLineContent(re).charCodeAt(Se-1)===32&&(B=" "+B,Se-=1),Ee!==-1&&Se!==-1?E._createRemoveBlockCommentOperations(new j.a(H,Ee+w.length+1,re,Se+1),w,B):null},p.prototype._executeBlockComment=function(g,m,w){g.tokenizeIfCheap(w.startLineNumber);var B=g.getLanguageIdAtPosition(w.startLineNumber,1),H=R.a.getComments(B);if(!H||!H.blockCommentStartToken||!H.blockCommentEndToken)return;var re=H.blockCommentStartToken,he=H.blockCommentEndToken,Ee=this._attemptRemoveBlockComment(g,w,re,he);if(!Ee){if(w.isEmpty()){var Se=g.getLineContent(w.startLineNumber),q=x.q(Se);q===-1&&(q=Se.length),Ee=E._createAddBlockCommentOperations(new j.a(w.startLineNumber,q+1,w.startLineNumber,Se.length+1),re,he,this._insertSpace)}else Ee=E._createAddBlockCommentOperations(new j.a(w.startLineNumber,g.getLineFirstNonWhitespaceColumn(w.startLineNumber),w.endLineNumber,g.getLineMaxColumn(w.endLineNumber)),re,he,this._insertSpace);Ee.length===1&&(this._deltaColumn=re.length+1)}this._selectionId=m.trackSelection(w);for(var Z=0,ce=Ee;Z<ce.length;Z++){var Me=ce[Z];m.addEditOperation(Me.range,Me.text)}},p.prototype.getEditOperations=function(g,m){var w=this._selection;this._moveEndPositionDown=!1,w.startLineNumber<w.endLineNumber&&w.endColumn===1&&(this._moveEndPositionDown=!0,w=w.setEndPosition(w.endLineNumber-1,g.getLineMaxColumn(w.endLineNumber-1)));var B=p._gatherPreflightData(this._type,this._insertSpace,g,w.startLineNumber,w.endLineNumber);return B.supported?this._executeLineComments(g,m,B,w):this._executeBlockComment(g,m,w)},p.prototype.computeCursorState=function(g,m){var w=m.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(w=w.setEndPosition(w.endLineNumber+1,1)),new G.a(w.selectionStartLineNumber,w.selectionStartColumn+this._deltaColumn,w.positionLineNumber,w.positionColumn+this._deltaColumn)},p._createRemoveLineCommentsOperations=function(g,m){for(var w=[],B=0,H=g.length;B<H;B++){var re=g[B];if(re.ignore)continue;w.push(F.a.delete(new j.a(m+B,re.commentStrOffset+1,m+B,re.commentStrOffset+re.commentStrLength+1)))}return w},p.prototype._createAddLineCommentsOperations=function(g,m){for(var w=[],B=this._insertSpace?" ":"",H=0,re=g.length;H<re;H++){var he=g[H];if(he.ignore)continue;w.push(F.a.insert(new U.a(m+H,he.commentStrOffset+1),he.commentStr+B))}return w},p.nextVisibleColumn=function(g,m,w,B){return w?g+(m-g%m):g+B},p._normalizeInsertionPoint=function(g,m,w,B){for(var H=1073741824,re,he,Ee=0,Se=m.length;Ee<Se;Ee++){if(m[Ee].ignore)continue;for(var q=g.getLineContent(w+Ee),Z=0,ce=0,Me=m[Ee].commentStrOffset;Z<H&&ce<Me;ce++)Z=p.nextVisibleColumn(Z,B,q.charCodeAt(ce)===9,1);Z<H&&(H=Z)}H=Math.floor(H/B)*B;for(var Ee=0,Se=m.length;Ee<Se;Ee++){if(m[Ee].ignore)continue;var q=g.getLineContent(w+Ee),Z=0;for(re=0,he=m[Ee].commentStrOffset;Z<H&&re<he;re++)Z=p.nextVisibleColumn(Z,B,q.charCodeAt(re)===9,1);Z>H?m[Ee].commentStrOffset=re-1:m[Ee].commentStrOffset=re}},p}(),D=function(){var p=function(m,w){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,H){B.__proto__=H}||function(B,H){for(var re in H)H.hasOwnProperty(re)&&(B[re]=H[re])},p(m,w)};return function(g,m){p(g,m);function w(){this.constructor=g}g.prototype=m===null?Object.create(m):(w.prototype=m.prototype,new w)}}(),A=function(p){D(g,p);function g(m,w){var B=p.call(this,w)||this;return B._type=m,B}return g.prototype.run=function(m,w){if(!w.hasModel())return;for(var B=w.getModel(),H=[],re=w.getSelections(),he=B.getOptions(),Ee=w.getOption(13),Se=0,q=re;Se<q.length;Se++){var Z=q[Se];H.push(new K(Z,he.tabSize,this._type,Ee.insertSpace))}w.pushUndoStop(),w.executeCommands(this.id,H),w.pushUndoStop()},g}(ne.b),te=function(p){D(g,p);function g(){return p.call(this,0,{id:"editor.action.commentLine",label:I.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:2048|85,weight:100},menuOpts:{menuId:17,group:"5_insert",title:I.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}return g}(A),z=function(p){D(g,p);function g(){return p.call(this,1,{id:"editor.action.addCommentLine",label:I.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:Object(oe.a)(2048|41,2048|33),weight:100}})||this}return g}(A),_=function(p){D(g,p);function g(){return p.call(this,2,{id:"editor.action.removeCommentLine",label:I.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:Object(oe.a)(2048|41,2048|51),weight:100}})||this}return g}(A),f=function(p){D(g,p);function g(){return p.call(this,{id:"editor.action.blockComment",label:I.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:N.a.writable,kbOpts:{kbExpr:N.a.editorTextFocus,primary:1024|512|31,linux:{primary:2048|1024|31},weight:100},menuOpts:{menuId:17,group:"5_insert",title:I.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}return g.prototype.run=function(m,w){if(!w.hasModel())return;for(var B=w.getOption(13),H=[],re=w.getSelections(),he=0,Ee=re;he<Ee.length;he++){var Se=Ee[he];H.push(new E(Se,B.insertSpace))}w.pushUndoStop(),w.executeCommands(this.id,H),w.pushUndoStop()},g}(ne.b);Object(ne.f)(te),Object(ne.f)(z),Object(ne.f)(_),Object(ne.f)(f)},A9WA:function(wt,P,r){"use strict";r.r(P),r.d(P,"FoldingController",function(){return ee}),r.d(P,"foldBackgroundBackground",function(){return Tn});var I=r("OciR"),oe=r("g9ht"),ne=r("yqRl"),N=r("yBOt"),F=r("dE3Z"),U=r("Qun0"),j=r("bN5T"),G=r("Whdu"),R=r("YK2C"),E=65535,x=16777215,K=4278190080,D=function(){function Ft(pt,gt,Dt){if(pt.length!==gt.length||pt.length>E)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=pt,this._endIndexes=gt,this._collapseStates=new Uint32Array(Math.ceil(pt.length/32)),this._types=Dt,this._parentsComputed=!1}return Ft.prototype.ensureParentIndices=function(){var pt=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var gt=[],Dt=function(En,On){var Pn=gt[gt.length-1];return pt.getStartLineNumber(Pn)<=En&&pt.getEndLineNumber(Pn)>=On},Lt=0,Vt=this._startIndexes.length;Lt<Vt;Lt++){var Qt=this._startIndexes[Lt],nn=this._endIndexes[Lt];if(Qt>x||nn>x)throw new Error("startLineNumber or endLineNumber must not exceed "+x);for(;gt.length>0&&!Dt(Qt,nn);)gt.pop();var sn=gt.length>0?gt[gt.length-1]:-1;gt.push(Lt),this._startIndexes[Lt]=Qt+((sn&255)<<24),this._endIndexes[Lt]=nn+((sn&65280)<<16)}}},Object.defineProperty(Ft.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),Ft.prototype.getStartLineNumber=function(pt){return this._startIndexes[pt]&x},Ft.prototype.getEndLineNumber=function(pt){return this._endIndexes[pt]&x},Ft.prototype.getType=function(pt){return this._types?this._types[pt]:void 0},Ft.prototype.hasTypes=function(){return!!this._types},Ft.prototype.isCollapsed=function(pt){var gt=pt/32|0,Dt=pt%32;return(this._collapseStates[gt]&1<<Dt)!==0},Ft.prototype.setCollapsed=function(pt,gt){var Dt=pt/32|0,Lt=pt%32,Vt=this._collapseStates[Dt];gt?this._collapseStates[Dt]=Vt|1<<Lt:this._collapseStates[Dt]=Vt&~(1<<Lt)},Ft.prototype.toRegion=function(pt){return new A(this,pt)},Ft.prototype.getParentIndex=function(pt){this.ensureParentIndices();var gt=((this._startIndexes[pt]&K)>>>24)+((this._endIndexes[pt]&K)>>>16);return gt===E?-1:gt},Ft.prototype.contains=function(pt,gt){return this.getStartLineNumber(pt)<=gt&&this.getEndLineNumber(pt)>=gt},Ft.prototype.findIndex=function(pt){var gt=0,Dt=this._startIndexes.length;if(Dt===0)return-1;for(;gt<Dt;){var Lt=Math.floor((gt+Dt)/2);pt<this.getStartLineNumber(Lt)?Dt=Lt:gt=Lt+1}return gt-1},Ft.prototype.findRange=function(pt){var gt=this.findIndex(pt);if(gt>=0){var Dt=this.getEndLineNumber(gt);if(Dt>=pt)return gt;for(gt=this.getParentIndex(gt);gt!==-1;){if(this.contains(gt,pt))return gt;gt=this.getParentIndex(gt)}}return-1},Ft.prototype.toString=function(){for(var pt=[],gt=0;gt<this.length;gt++)pt[gt]="["+(this.isCollapsed(gt)?"+":"-")+"] "+this.getStartLineNumber(gt)+"/"+this.getEndLineNumber(gt);return pt.join(", ")},Ft}(),A=function(){function Ft(pt,gt){this.ranges=pt,this.index=gt}return Object.defineProperty(Ft.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),Ft.prototype.containedBy=function(pt){return pt.startLineNumber<=this.startLineNumber&&pt.endLineNumber>=this.endLineNumber},Ft.prototype.containsLine=function(pt){return this.startLineNumber<=pt&&pt<=this.endLineNumber},Ft}(),te=function(){function Ft(pt,gt){this._updateEventEmitter=new R.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=pt,this._decorationProvider=gt,this._regions=new D(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(Ft.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),Ft.prototype.toggleCollapseState=function(pt){var gt=this;if(!pt.length)return;var Dt={};this._decorationProvider.changeDecorations(function(Lt){for(var Vt=0,Qt=pt;Vt<Qt.length;Vt++){var nn=Qt[Vt],sn=nn.regionIndex,ln=gt._editorDecorationIds[sn];if(ln&&!Dt[ln]){Dt[ln]=!0;var En=!gt._regions.isCollapsed(sn);gt._regions.setCollapsed(sn,En),Lt.changeDecorationOptions(ln,gt._decorationProvider.getDecorationOption(En))}}}),this._updateEventEmitter.fire({model:this,collapseStateChanged:pt})},Ft.prototype.update=function(pt,gt){var Dt=this;gt===void 0&&(gt=[]);for(var Lt=[],Vt=function(Jn,gi){for(var Kn=0,yi=gt;Kn<yi.length;Kn++){var mi=yi[Kn];if(Jn<mi&&mi<=gi)return!0}return!1},Qt=function(Jn,gi){var Kn=pt.getStartLineNumber(Jn);gi&&Vt(Kn,pt.getEndLineNumber(Jn))&&(gi=!1),pt.setCollapsed(Jn,gi);var yi=Dt._textModel.getLineMaxColumn(Kn),mi={startLineNumber:Kn,startColumn:yi,endLineNumber:Kn,endColumn:yi};Lt.push({range:mi,options:Dt._decorationProvider.getDecorationOption(gi)})},nn=0,sn=function(){for(;nn<Dt._regions.length;){var Jn=Dt._regions.isCollapsed(nn);if(nn++,Jn)return nn-1}return-1},ln=0,En=sn();En!==-1&&ln<pt.length;){var On=this._textModel.getDecorationRange(this._editorDecorationIds[En]);if(On){var Pn=On.startLineNumber;if(this._textModel.getLineMaxColumn(Pn)===On.startColumn)for(;ln<pt.length;){var Gn=pt.getStartLineNumber(ln);if(Pn>=Gn)Qt(ln,Pn===Gn),ln++;else break}}En=sn()}for(;ln<pt.length;)Qt(ln,!1),ln++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,Lt),this._regions=pt,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},Ft.prototype.getMemento=function(){for(var pt=[],gt=0;gt<this._regions.length;gt++)if(this._regions.isCollapsed(gt)){var Dt=this._textModel.getDecorationRange(this._editorDecorationIds[gt]);if(Dt){var Lt=Dt.startLineNumber,Vt=Dt.endLineNumber+this._regions.getEndLineNumber(gt)-this._regions.getStartLineNumber(gt);pt.push({startLineNumber:Lt,endLineNumber:Vt})}}return pt.length>0?pt:void 0},Ft.prototype.applyMemento=function(pt){if(!Array.isArray(pt))return;for(var gt=[],Dt=0,Lt=pt;Dt<Lt.length;Dt++){var Vt=Lt[Dt],Qt=this.getRegionAtLine(Vt.startLineNumber);Qt&&!Qt.isCollapsed&>.push(Qt)}this.toggleCollapseState(gt)},Ft.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},Ft.prototype.getAllRegionsAtLine=function(pt,gt){var Dt=[];if(this._regions)for(var Lt=this._regions.findRange(pt),Vt=1;Lt>=0;){var Qt=this._regions.toRegion(Lt);(!gt||gt(Qt,Vt))&&Dt.push(Qt),Vt++,Lt=Qt.parentIndex}return Dt},Ft.prototype.getRegionAtLine=function(pt){if(this._regions){var gt=this._regions.findRange(pt);if(gt>=0)return this._regions.toRegion(gt)}return null},Ft.prototype.getRegionsInside=function(pt,gt){var Dt=[],Lt=pt?pt.regionIndex+1:0,Vt=pt?pt.endLineNumber:Number.MAX_VALUE;if(gt&>.length===2)for(var Qt=[],nn=Lt,sn=this._regions.length;nn<sn;nn++){var ln=this._regions.toRegion(nn);if(this._regions.getStartLineNumber(nn)<Vt){for(;Qt.length>0&&!ln.containedBy(Qt[Qt.length-1]);)Qt.pop();Qt.push(ln),gt(ln,Qt.length)&&Dt.push(ln)}else break}else for(var nn=Lt,sn=this._regions.length;nn<sn;nn++){var ln=this._regions.toRegion(nn);if(this._regions.getStartLineNumber(nn)<Vt)(!gt||gt(ln))&&Dt.push(ln);else break}return Dt},Ft}();function z(Ft,pt,gt){for(var Dt=[],Lt=function(ln){var En=Ft.getRegionAtLine(ln);if(En){var On=!En.isCollapsed;if(Dt.push(En),pt>1){var Pn=Ft.getRegionsInside(En,function(Gn,Qn){return Gn.isCollapsed!==On&&Qn<pt});Dt.push.apply(Dt,Pn)}}},Vt=0,Qt=gt;Vt<Qt.length;Vt++){var nn=Qt[Vt];Lt(nn)}Ft.toggleCollapseState(Dt)}function _(Ft,pt,gt,Dt){gt===void 0&&(gt=Number.MAX_VALUE);var Lt=[];if(Dt&&Dt.length>0)for(var Vt=0,Qt=Dt;Vt<Qt.length;Vt++){var nn=Qt[Vt],sn=Ft.getRegionAtLine(nn);if(sn&&(sn.isCollapsed!==pt&&Lt.push(sn),gt>1)){var ln=Ft.getRegionsInside(sn,function(En,On){return En.isCollapsed!==pt&&On<gt});Lt.push.apply(Lt,ln)}}else{var ln=Ft.getRegionsInside(null,function(On,Pn){return On.isCollapsed!==pt&&Pn<gt});Lt.push.apply(Lt,ln)}Ft.toggleCollapseState(Lt)}function f(Ft,pt,gt,Dt){for(var Lt=[],Vt=0,Qt=Dt;Vt<Qt.length;Vt++){var nn=Qt[Vt],sn=Ft.getAllRegionsAtLine(nn,function(ln,En){return ln.isCollapsed!==pt&&En<=gt});Lt.push.apply(Lt,sn)}Ft.toggleCollapseState(Lt)}function p(Ft,pt,gt){for(var Dt=[],Lt=0,Vt=gt;Lt<Vt.length;Lt++){var Qt=Vt[Lt],nn=Ft.getAllRegionsAtLine(Qt,function(sn){return sn.isCollapsed!==pt});nn.length>0&&Dt.push(nn[0])}Ft.toggleCollapseState(Dt)}function g(Ft,pt,gt,Dt){var Lt=function(nn,sn){return sn===pt&&nn.isCollapsed!==gt&&!Dt.some(function(ln){return nn.containsLine(ln)})},Vt=Ft.getRegionsInside(null,Lt);Ft.toggleCollapseState(Vt)}function m(Ft,pt,gt){for(var Dt=Ft.textModel,Lt=Ft.regions,Vt=[],Qt=Lt.length-1;Qt>=0;Qt--)if(gt!==Lt.isCollapsed(Qt)){var nn=Lt.getStartLineNumber(Qt);pt.test(Dt.getLineContent(nn))&&Vt.push(Lt.toRegion(Qt))}Ft.toggleCollapseState(Vt)}function w(Ft,pt,gt){for(var Dt=Ft.regions,Lt=[],Vt=Dt.length-1;Vt>=0;Vt--)gt!==Dt.isCollapsed(Vt)&&pt===Dt.getType(Vt)&&Lt.push(Dt.toRegion(Vt));Ft.toggleCollapseState(Lt)}var B=r("8ZZ4"),H=function(){function Ft(pt){this.editor=pt,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}return Ft.prototype.getDecorationOption=function(pt){return pt?this.showFoldingHighlights?Ft.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:Ft.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?Ft.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:Ft.EXPANDED_VISUAL_DECORATION},Ft.prototype.deltaDecorations=function(pt,gt){return this.editor.deltaDecorations(pt,gt)},Ft.prototype.changeDecorations=function(pt){return this.editor.changeDecorations(pt)},Ft.COLLAPSED_VISUAL_DECORATION=B.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),Ft.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=B.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),Ft.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=B.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),Ft.EXPANDED_VISUAL_DECORATION=B.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),Ft}(),re=r("2GBI"),he=r("w9Cd"),Ee=r("Inmo"),Se=function(){function Ft(pt){var gt=this;this._updateEventEmitter=new R.a,this._foldingModel=pt,this._foldingModelListener=pt.onDidChange(function(Dt){return gt.updateHiddenRanges()}),this._hiddenRanges=[],pt.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(Ft.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(Ft.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),Ft.prototype.updateHiddenRanges=function(){for(var pt=!1,gt=[],Dt=0,Lt=0,Vt=Number.MAX_VALUE,Qt=-1,nn=this._foldingModel.regions;Dt<nn.length;Dt++){if(!nn.isCollapsed(Dt))continue;var sn=nn.getStartLineNumber(Dt)+1,ln=nn.getEndLineNumber(Dt);if(Vt<=sn&&ln<=Qt)continue;!pt&&Lt<this._hiddenRanges.length&&this._hiddenRanges[Lt].startLineNumber===sn&&this._hiddenRanges[Lt].endLineNumber===ln?(gt.push(this._hiddenRanges[Lt]),Lt++):(pt=!0,gt.push(new he.a(sn,1,ln,1))),Vt=sn,Qt=ln}(pt||Lt<this._hiddenRanges.length)&&this.applyHiddenRanges(gt)},Ft.prototype.applyMemento=function(pt){if(!Array.isArray(pt)||pt.length===0)return!1;for(var gt=[],Dt=0,Lt=pt;Dt<Lt.length;Dt++){var Vt=Lt[Dt];if(!Vt.startLineNumber||!Vt.endLineNumber)return!1;gt.push(new he.a(Vt.startLineNumber+1,1,Vt.endLineNumber,1))}return this.applyHiddenRanges(gt),!0},Ft.prototype.getMemento=function(){return this._hiddenRanges.map(function(pt){return{startLineNumber:pt.startLineNumber-1,endLineNumber:pt.endLineNumber}})},Ft.prototype.applyHiddenRanges=function(pt){this._hiddenRanges=pt,this._updateEventEmitter.fire(pt)},Ft.prototype.hasRanges=function(){return this._hiddenRanges.length>0},Ft.prototype.isHidden=function(pt){return Z(this._hiddenRanges,pt)!==null},Ft.prototype.adjustSelections=function(pt){for(var gt=this,Dt=!1,Lt=this._foldingModel.textModel,Vt=null,Qt=function(Gn){return(!Vt||!q(Gn,Vt))&&(Vt=Z(gt._hiddenRanges,Gn)),Vt?Vt.startLineNumber-1:null},nn=0,sn=pt.length;nn<sn;nn++){var ln=pt[nn],En=Qt(ln.startLineNumber);En&&(ln=ln.setStartPosition(En,Lt.getLineMaxColumn(En)),Dt=!0);var On=Qt(ln.endLineNumber);On&&(ln=ln.setEndPosition(On,Lt.getLineMaxColumn(On)),Dt=!0),pt[nn]=ln}return Dt},Ft.prototype.dispose=function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},Ft}();function q(Ft,pt){return Ft>=pt.startLineNumber&&Ft<=pt.endLineNumber}function Z(Ft,pt){var gt=Object(Ee.i)(Ft,function(Dt){return pt<Dt.startLineNumber})-1;return gt>=0&&Ft[gt].endLineNumber>=pt?Ft[gt]:null}var ce=r("tkZS"),Me=5e3,Ve="indent",_e=function(){function Ft(pt){this.editorModel=pt,this.id=Ve}return Ft.prototype.dispose=function(){},Ft.prototype.compute=function(pt){var gt=ce.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),Dt=gt&&!!gt.offSide,Lt=gt&>.markers;return Promise.resolve(se(this.editorModel,Dt,Lt))},Ft}(),ue=function(){function Ft(pt){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=pt}return Ft.prototype.insertFirst=function(pt,gt,Dt){if(pt>x||gt>x)return;var Lt=this._length;this._startIndexes[Lt]=pt,this._endIndexes[Lt]=gt,this._length++,Dt<1e3&&(this._indentOccurrences[Dt]=(this._indentOccurrences[Dt]||0)+1)},Ft.prototype.toIndentRanges=function(pt){if(this._length<=this._foldingRangesLimit){for(var gt=new Uint32Array(this._length),Dt=new Uint32Array(this._length),Lt=this._length-1,Vt=0;Lt>=0;Lt--,Vt++)gt[Vt]=this._startIndexes[Lt],Dt[Vt]=this._endIndexes[Lt];return new D(gt,Dt)}else{for(var Qt=0,nn=this._indentOccurrences.length,Lt=0;Lt<this._indentOccurrences.length;Lt++){var sn=this._indentOccurrences[Lt];if(sn){if(sn+Qt>this._foldingRangesLimit){nn=Lt;break}Qt+=sn}}for(var ln=pt.getOptions().tabSize,gt=new Uint32Array(this._foldingRangesLimit),Dt=new Uint32Array(this._foldingRangesLimit),Lt=this._length-1,Vt=0;Lt>=0;Lt--){var En=this._startIndexes[Lt],On=pt.getLineContent(En),Pn=B.b.computeIndentLevel(On,ln);(Pn<nn||Pn===nn&&Qt++<this._foldingRangesLimit)&&(gt[Vt]=En,Dt[Vt]=this._endIndexes[Lt],Vt++)}return new D(gt,Dt)}},Ft}();function se(Ft,pt,gt,Dt){Dt===void 0&&(Dt=Me);var Lt=Ft.getOptions().tabSize,Vt=new ue(Dt),Qt=void 0;gt&&(Qt=new RegExp("("+gt.start.source+")|(?:"+gt.end.source+")"));var nn=[],sn=Ft.getLineCount()+1;nn.push({indent:-1,endAbove:sn,line:sn});for(var ln=Ft.getLineCount();ln>0;ln--){var En=Ft.getLineContent(ln),On=B.b.computeIndentLevel(En,Lt),Pn=nn[nn.length-1];if(On===-1){pt&&(Pn.endAbove=ln);continue}var Gn=void 0;if(Qt&&(Gn=En.match(Qt)))if(Gn[1]){for(var Qn=nn.length-1;Qn>0&&nn[Qn].indent!==-2;)Qn--;if(Qn>0){nn.length=Qn+1,Pn=nn[Qn],Vt.insertFirst(ln,Pn.line,On),Pn.line=ln,Pn.indent=On,Pn.endAbove=ln;continue}}else{nn.push({indent:-2,endAbove:ln,line:ln});continue}if(Pn.indent>On){do nn.pop(),Pn=nn[nn.length-1];while(Pn.indent>On);var Jn=Pn.endAbove-1;Jn-ln>=1&&Vt.insertFirst(ln,Jn,On)}Pn.indent===On?Pn.endAbove=ln:nn.push({indent:On,endAbove:ln,line:ln})}return Vt.toIndentRanges(Ft)}var fe=r("vqGt"),ie=r("QqjT"),J=5e3,me={},ye="syntax",ze=function(){function Ft(pt,gt,Dt){Dt===void 0&&(Dt=J),this.editorModel=pt,this.providers=gt,this.limit=Dt,this.id=ye}return Ft.prototype.compute=function(pt){var gt=this;return tt(this.providers,this.editorModel,pt).then(function(Dt){if(Dt){var Lt=Pt(Dt,gt.limit);return Lt}return null})},Ft.prototype.dispose=function(){},Ft}();function tt(Ft,pt,gt){var Dt=null,Lt=Ft.map(function(Vt,Qt){return Promise.resolve(Vt.provideFoldingRanges(pt,me,gt)).then(function(nn){if(gt.isCancellationRequested)return;if(Array.isArray(nn)){Array.isArray(Dt)||(Dt=[]);for(var sn=pt.getLineCount(),ln=0,En=nn;ln<En.length;ln++){var On=En[ln];On.start>0&&On.end>On.start&&On.end<=sn&&Dt.push({start:On.start,end:On.end,rank:Qt,kind:On.kind})}}},ie.f)});return Promise.all(Lt).then(function(Vt){return Dt})}var _t=function(){function Ft(pt){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=pt}return Ft.prototype.add=function(pt,gt,Dt,Lt){if(pt>x||gt>x)return;var Vt=this._length;this._startIndexes[Vt]=pt,this._endIndexes[Vt]=gt,this._nestingLevels[Vt]=Lt,this._types[Vt]=Dt,this._length++,Lt<30&&(this._nestingLevelCounts[Lt]=(this._nestingLevelCounts[Lt]||0)+1)},Ft.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var pt=new Uint32Array(this._length),gt=new Uint32Array(this._length),Dt=0;Dt<this._length;Dt++)pt[Dt]=this._startIndexes[Dt],gt[Dt]=this._endIndexes[Dt];return new D(pt,gt,this._types)}else{for(var Lt=0,Vt=this._nestingLevelCounts.length,Dt=0;Dt<this._nestingLevelCounts.length;Dt++){var Qt=this._nestingLevelCounts[Dt];if(Qt){if(Qt+Lt>this._foldingRangesLimit){Vt=Dt;break}Lt+=Qt}}for(var pt=new Uint32Array(this._foldingRangesLimit),gt=new Uint32Array(this._foldingRangesLimit),nn=[],Dt=0,sn=0;Dt<this._length;Dt++){var ln=this._nestingLevels[Dt];(ln<Vt||ln===Vt&&Lt++<this._foldingRangesLimit)&&(pt[sn]=this._startIndexes[Dt],gt[sn]=this._endIndexes[Dt],nn[sn]=this._types[Dt],sn++)}return new D(pt,gt,nn)}},Ft}();function Pt(Ft,pt){for(var gt=Ft.sort(function(ln,En){var On=ln.start-En.start;return On===0&&(On=ln.rank-En.rank),On}),Dt=new _t(pt),Lt=void 0,Vt=[],Qt=0,nn=gt;Qt<nn.length;Qt++){var sn=nn[Qt];if(!Lt)Lt=sn,Dt.add(sn.start,sn.end,sn.kind&&sn.kind.value,Vt.length);else if(sn.start>Lt.start)if(sn.end<=Lt.end)Vt.push(Lt),Lt=sn,Dt.add(sn.start,sn.end,sn.kind&&sn.kind.value,Vt.length);else{if(sn.start>Lt.end){do Lt=Vt.pop();while(Lt&&sn.start>Lt.end);Lt&&Vt.push(Lt),Lt=sn}Dt.add(sn.start,sn.end,sn.kind&&sn.kind.value,Vt.length)}}return Dt.toIndentRanges()}var Xt="init",Ke=function(){function Ft(pt,gt,Dt,Lt){if(this.editorModel=pt,this.id=Xt,gt.length){var Vt=function(nn){return{range:{startLineNumber:nn.startLineNumber,startColumn:0,endLineNumber:nn.endLineNumber,endColumn:pt.getLineLength(nn.endLineNumber)},options:{stickiness:1}}};this.decorationIds=pt.deltaDecorations([],gt.map(Vt)),this.timeout=setTimeout(Dt,Lt)}}return Ft.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),typeof this.timeout=="number"&&(clearTimeout(this.timeout),this.timeout=void 0)},Ft.prototype.compute=function(pt){var gt=[];if(this.decorationIds)for(var Dt=0,Lt=this.decorationIds;Dt<Lt.length;Dt++){var Vt=Lt[Dt],Qt=this.editorModel.getDecorationRange(Vt);Qt&>.push({start:Qt.startLineNumber,end:Qt.endLineNumber,rank:1})}return Promise.resolve(Pt(gt,Number.MAX_VALUE))},Ft}(),Xe=r("bBv/"),Ze=r("TwZP"),Ye=r("0BkX"),ke=function(){var Ft=function(gt,Dt){return Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Lt,Vt){Lt.__proto__=Vt}||function(Lt,Vt){for(var Qt in Vt)Vt.hasOwnProperty(Qt)&&(Lt[Qt]=Vt[Qt])},Ft(gt,Dt)};return function(pt,gt){Ft(pt,gt);function Dt(){this.constructor=pt}pt.prototype=gt===null?Object.create(gt):(Dt.prototype=gt.prototype,new Dt)}}(),$e=function(Ft,pt,gt,Dt){var Lt=arguments.length,Vt=Lt<3?pt:Dt===null?Dt=Object.getOwnPropertyDescriptor(pt,gt):Dt,Qt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Vt=Reflect.decorate(Ft,pt,gt,Dt);else for(var nn=Ft.length-1;nn>=0;nn--)(Qt=Ft[nn])&&(Vt=(Lt<3?Qt(Vt):Lt>3?Qt(pt,gt,Vt):Qt(pt,gt))||Vt);return Lt>3&&Vt&&Object.defineProperty(pt,gt,Vt),Vt},we=function(Ft,pt){return function(gt,Dt){pt(gt,Dt,Ft)}},k=new Xe.d("foldingEnabled",!1),ee=function(Ft){ke(pt,Ft);function pt(gt,Dt){var Lt=Ft.call(this)||this;Lt.contextKeyService=Dt,Lt.localToDispose=Lt._register(new j.b),Lt.editor=gt;var Vt=Lt.editor.getOptions();return Lt._isEnabled=Vt.get(30),Lt._useFoldingProviders=Vt.get(31)!=="indentation",Lt.foldingModel=null,Lt.hiddenRangeModel=null,Lt.rangeProvider=null,Lt.foldingRegionPromise=null,Lt.foldingStateMemento=null,Lt.foldingModelPromise=null,Lt.updateScheduler=null,Lt.cursorChangedScheduler=null,Lt.mouseDownInfo=null,Lt.foldingDecorationProvider=new H(gt),Lt.foldingDecorationProvider.autoHideFoldingControls=Vt.get(84)==="mouseover",Lt.foldingDecorationProvider.showFoldingHighlights=Vt.get(32),Lt.foldingEnabled=k.bindTo(Lt.contextKeyService),Lt.foldingEnabled.set(Lt._isEnabled),Lt._register(Lt.editor.onDidChangeModel(function(){return Lt.onModelChanged()})),Lt._register(Lt.editor.onDidChangeConfiguration(function(Qt){if(Qt.hasChanged(30)){var nn=Lt.editor.getOptions();Lt._isEnabled=nn.get(30),Lt.foldingEnabled.set(Lt._isEnabled),Lt.onModelChanged()}if(Qt.hasChanged(84)||Qt.hasChanged(32)){var sn=Lt.editor.getOptions();Lt.foldingDecorationProvider.autoHideFoldingControls=sn.get(84)==="mouseover",Lt.foldingDecorationProvider.showFoldingHighlights=sn.get(32),Lt.onModelContentChanged()}if(Qt.hasChanged(31)){var ln=Lt.editor.getOptions();Lt._useFoldingProviders=ln.get(31)!=="indentation",Lt.onFoldingStrategyChanged()}})),Lt.onModelChanged(),Lt}return pt.get=function(gt){return gt.getContribution(pt.ID)},pt.prototype.saveViewState=function(){var gt=this.editor.getModel();if(!gt||!this._isEnabled||gt.isTooLargeForTokenization())return{};if(this.foldingModel){var Dt=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),Lt=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:Dt,lineCount:gt.getLineCount(),provider:Lt}}return},pt.prototype.restoreViewState=function(gt){var Dt=this.editor.getModel();if(!Dt||!this._isEnabled||Dt.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!gt||!gt.collapsedRegions||gt.lineCount!==Dt.getLineCount())return;(gt.provider===ye||gt.provider===Xt)&&(this.foldingStateMemento=gt);var Lt=gt.collapsedRegions;if(this.hiddenRangeModel.applyMemento(Lt)){var Vt=this.getFoldingModel();Vt&&Vt.then(function(Qt){Qt&&Qt.applyMemento(Lt)}).then(void 0,ie.e)}},pt.prototype.onModelChanged=function(){var gt=this;this.localToDispose.clear();var Dt=this.editor.getModel();if(!this._isEnabled||!Dt||Dt.isTooLargeForTokenization())return;this.foldingModel=new te(Dt,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new Se(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(function(Lt){return gt.onHiddenRangesChanges(Lt)})),this.updateScheduler=new F.a(200),this.cursorChangedScheduler=new F.d(function(){return gt.revealCursor()},200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(fe.n.onDidChange(function(){return gt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(function(){return gt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelContent(function(){return gt.onModelContentChanged()})),this.localToDispose.add(this.editor.onDidChangeCursorPosition(function(){return gt.onCursorPositionChanged()})),this.localToDispose.add(this.editor.onMouseDown(function(Lt){return gt.onEditorMouseDown(Lt)})),this.localToDispose.add(this.editor.onMouseUp(function(Lt){return gt.onEditorMouseUp(Lt)})),this.localToDispose.add({dispose:function(){gt.foldingRegionPromise&&(gt.foldingRegionPromise.cancel(),gt.foldingRegionPromise=null),gt.updateScheduler&>.updateScheduler.cancel(),gt.updateScheduler=null,gt.foldingModel=null,gt.foldingModelPromise=null,gt.hiddenRangeModel=null,gt.cursorChangedScheduler=null,gt.foldingStateMemento=null,gt.rangeProvider&>.rangeProvider.dispose(),gt.rangeProvider=null}}),this.onModelContentChanged()},pt.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},pt.prototype.getRangeProvider=function(gt){var Dt=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new _e(gt),this._useFoldingProviders&&this.foldingModel){var Lt=fe.n.ordered(this.foldingModel.textModel);if(Lt.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var Vt=this.rangeProvider=new Ke(gt,this.foldingStateMemento.collapsedRegions,function(){Dt.foldingStateMemento=null,Dt.onFoldingStrategyChanged()},3e4);return Vt}else Lt.length>0&&(this.rangeProvider=new ze(gt,Lt))}return this.foldingStateMemento=null,this.rangeProvider},pt.prototype.getFoldingModel=function(){return this.foldingModelPromise},pt.prototype.onModelContentChanged=function(){var gt=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(function(){var Dt=gt.foldingModel;if(!Dt)return null;var Lt=gt.foldingRegionPromise=Object(F.f)(function(Vt){return gt.getRangeProvider(Dt.textModel).compute(Vt)});return Lt.then(function(Vt){if(Vt&&Lt===gt.foldingRegionPromise){var Qt=gt.editor.getSelections(),nn=Qt?Qt.map(function(sn){return sn.startLineNumber}):[];Dt.update(Vt,nn)}return Dt})}).then(void 0,function(Dt){return Object(ie.e)(Dt),null}))},pt.prototype.onHiddenRangesChanges=function(gt){if(this.hiddenRangeModel&>.length){var Dt=this.editor.getSelections();Dt&&(this.hiddenRangeModel.adjustSelections(Dt)&&this.editor.setSelections(Dt))}this.editor.setHiddenAreas(gt)},pt.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},pt.prototype.revealCursor=function(){var gt=this,Dt=this.getFoldingModel();if(!Dt)return;Dt.then(function(Lt){if(Lt){var Vt=gt.editor.getSelections();if(Vt&&Vt.length>0){for(var Qt=[],nn=function(Pn){var Gn=Pn.selectionStartLineNumber;gt.hiddenRangeModel&>.hiddenRangeModel.isHidden(Gn)&&Qt.push.apply(Qt,Lt.getAllRegionsAtLine(Gn,function(Qn){return Qn.isCollapsed&&Gn>Qn.startLineNumber}))},sn=0,ln=Vt;sn<ln.length;sn++){var En=ln[sn];nn(En)}Qt.length&&(Lt.toggleCollapseState(Qt),gt.reveal(Vt[0].getPosition()))}}}).then(void 0,ie.e)},pt.prototype.onEditorMouseDown=function(gt){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!gt.target||!gt.target.range)return;if(!gt.event.leftButton&&!gt.event.middleButton)return;var Dt=gt.target.range,Lt=!1;switch(gt.target.type){case 4:var Vt=gt.target.detail,Qt=gt.target.element.offsetLeft,nn=Vt.offsetX-Qt;if(nn<5)return;Lt=!0;break;case 6:{if(this.hiddenRangeModel.hasRanges()){var sn=this.editor.getModel();if(sn&&Dt.startColumn===sn.getLineMaxColumn(Dt.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:Dt.startLineNumber,iconClicked:Lt}},pt.prototype.onEditorMouseUp=function(gt){var Dt=this,Lt=this.getFoldingModel();if(!Lt||!this.mouseDownInfo||!gt.target)return;var Vt=this.mouseDownInfo.lineNumber,Qt=this.mouseDownInfo.iconClicked,nn=gt.target.range;if(!nn||nn.startLineNumber!==Vt)return;if(Qt){if(gt.target.type!==4)return}else{var sn=this.editor.getModel();if(!sn||nn.startColumn!==sn.getLineMaxColumn(Vt))return}Lt.then(function(ln){if(ln){var En=ln.getRegionAtLine(Vt);if(En&&En.startLineNumber===Vt){var On=En.isCollapsed;if(Qt||On){var Pn=[],Gn=gt.event.middleButton||gt.event.shiftKey;if(Gn)for(var Qn=0,Jn=ln.getRegionsInside(En);Qn<Jn.length;Qn++){var gi=Jn[Qn];gi.isCollapsed===On&&Pn.push(gi)}(On||!Gn||Pn.length===0)&&Pn.push(En),ln.toggleCollapseState(Pn),Dt.reveal({lineNumber:Vt,column:1})}}}}).then(void 0,ie.e)},pt.prototype.reveal=function(gt){this.editor.revealPositionInCenterIfOutsideViewport(gt,0)},pt.ID="editor.contrib.folding",pt=$e([we(1,Xe.c)],pt),pt}(j.a),Pe=function(Ft){ke(pt,Ft);function pt(){return Ft!==null&&Ft.apply(this,arguments)||this}return pt.prototype.runEditorCommand=function(gt,Dt,Lt){var Vt=this,Qt=ee.get(Dt);if(!Qt)return;var nn=Qt.getFoldingModel();if(nn)return this.reportTelemetry(gt,Dt),nn.then(function(sn){if(sn){Vt.invoke(Qt,sn,Dt,Lt);var ln=Dt.getSelection();ln&&Qt.reveal(ln.getStartPosition())}})},pt.prototype.getSelectedLines=function(gt){var Dt=gt.getSelections();return Dt?Dt.map(function(Lt){return Lt.startLineNumber}):[]},pt.prototype.getLineNumbers=function(gt,Dt){return gt&>.selectionLines?gt.selectionLines.map(function(Lt){return Lt+1}):this.getSelectedLines(Dt)},pt.prototype.run=function(gt,Dt){},pt}(G.b);function ve(Ft){if(!ne.k(Ft)){if(!ne.i(Ft))return!1;var pt=Ft;if(!ne.k(pt.levels)&&!ne.h(pt.levels))return!1;if(!ne.k(pt.direction)&&!ne.j(pt.direction))return!1;if(!ne.k(pt.selectionLines)&&(!ne.d(pt.selectionLines)||!pt.selectionLines.every(ne.h)))return!1}return!0}var Te=function(Ft){ke(pt,Ft);function pt(){return Ft.call(this,{id:"editor.unfold",label:oe.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:k,kbOpts:{kbExpr:re.a.editorTextFocus,primary:2048|1024|89,mac:{primary:2048|512|89},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument:
|
|
* 'levels': Number of levels to unfold. If not set, defaults to 1.
|
|
* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.
|
|
* 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.
|
|
`,constraint:ve,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return pt.prototype.invoke=function(gt,Dt,Lt,Vt){var Qt=Vt&&Vt.levels||1,nn=this.getLineNumbers(Vt,Lt);Vt&&Vt.direction==="up"?f(Dt,!1,Qt,nn):_(Dt,!1,Qt,nn)},pt}(Pe),Ie=function(Ft){ke(pt,Ft);function pt(){return Ft.call(this,{id:"editor.unfoldRecursively",label:oe.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:k,kbOpts:{kbExpr:re.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|89),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt,Vt){_(Dt,!1,Number.MAX_VALUE,this.getSelectedLines(Lt))},pt}(Pe),pe=function(Ft){ke(pt,Ft);function pt(){return Ft.call(this,{id:"editor.fold",label:oe.a("foldAction.label","Fold"),alias:"Fold",precondition:k,kbOpts:{kbExpr:re.a.editorTextFocus,primary:2048|1024|87,mac:{primary:2048|512|87},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument:
|
|
* 'levels': Number of levels to fold.
|
|
* 'direction': If 'up', folds given number of levels up otherwise folds down.
|
|
* 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.
|
|
If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.
|
|
`,constraint:ve,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return pt.prototype.invoke=function(gt,Dt,Lt,Vt){var Qt=this.getLineNumbers(Vt,Lt),nn=Vt&&Vt.levels,sn=Vt&&Vt.direction;typeof nn!="number"&&typeof sn!="string"?p(Dt,!0,Qt):sn==="up"?f(Dt,!0,nn||1,Qt):_(Dt,!0,nn||1,Qt)},pt}(Pe),nt=function(Ft){ke(pt,Ft);function pt(){return Ft.call(this,{id:"editor.toggleFold",label:oe.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:k,kbOpts:{kbExpr:re.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|42),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){var Vt=this.getSelectedLines(Lt);z(Dt,1,Vt)},pt}(Pe),Et=function(Ft){ke(pt,Ft);function pt(){return Ft.call(this,{id:"editor.foldRecursively",label:oe.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:k,kbOpts:{kbExpr:re.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|87),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){var Vt=this.getSelectedLines(Lt);_(Dt,!0,Number.MAX_VALUE,Vt)},pt}(Pe),Rt=function(Ft){ke(pt,Ft);function pt(){return Ft.call(this,{id:"editor.foldAllBlockComments",label:oe.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:k,kbOpts:{kbExpr:re.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|85),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){if(Dt.regions.hasTypes())w(Dt,fe.m.Comment.value,!0);else{var Vt=Lt.getModel();if(!Vt)return;var Qt=ce.a.getComments(Vt.getLanguageIdentifier().id);if(Qt&&Qt.blockCommentStartToken){var nn=new RegExp("^\\s*"+Object(N.p)(Qt.blockCommentStartToken));m(Dt,nn,!0)}}},pt}(Pe),Tt=function(Ft){ke(pt,Ft);function pt(){return Ft.call(this,{id:"editor.foldAllMarkerRegions",label:oe.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:k,kbOpts:{kbExpr:re.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|29),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){if(Dt.regions.hasTypes())w(Dt,fe.m.Region.value,!0);else{var Vt=Lt.getModel();if(!Vt)return;var Qt=ce.a.getFoldingRules(Vt.getLanguageIdentifier().id);if(Qt&&Qt.markers&&Qt.markers.start){var nn=new RegExp(Qt.markers.start);m(Dt,nn,!0)}}},pt}(Pe),Ht=function(Ft){ke(pt,Ft);function pt(){return Ft.call(this,{id:"editor.unfoldAllMarkerRegions",label:oe.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:k,kbOpts:{kbExpr:re.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|30),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){if(Dt.regions.hasTypes())w(Dt,fe.m.Region.value,!1);else{var Vt=Lt.getModel();if(!Vt)return;var Qt=ce.a.getFoldingRules(Vt.getLanguageIdentifier().id);if(Qt&&Qt.markers&&Qt.markers.start){var nn=new RegExp(Qt.markers.start);m(Dt,nn,!1)}}},pt}(Pe),Gt=function(Ft){ke(pt,Ft);function pt(){return Ft.call(this,{id:"editor.foldAll",label:oe.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:k,kbOpts:{kbExpr:re.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|21),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){_(Dt,!0)},pt}(Pe),rn=function(Ft){ke(pt,Ft);function pt(){return Ft.call(this,{id:"editor.unfoldAll",label:oe.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:k,kbOpts:{kbExpr:re.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|40),weight:100}})||this}return pt.prototype.invoke=function(gt,Dt,Lt){_(Dt,!1)},pt}(Pe),Ln=function(Ft){ke(pt,Ft);function pt(){return Ft!==null&&Ft.apply(this,arguments)||this}return pt.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(pt.ID_PREFIX.length))},pt.prototype.invoke=function(gt,Dt,Lt){g(Dt,this.getFoldingLevel(),!0,this.getSelectedLines(Lt))},pt.ID_PREFIX="editor.foldLevel",pt.ID=function(gt){return pt.ID_PREFIX+gt},pt}(Pe);Object(G.h)(ee.ID,ee),Object(G.f)(Te),Object(G.f)(Ie),Object(G.f)(pe),Object(G.f)(Et),Object(G.f)(Gt),Object(G.f)(rn),Object(G.f)(Rt),Object(G.f)(Tt),Object(G.f)(Ht),Object(G.f)(nt);for(var yn=1;yn<=7;yn++)Object(G.i)(new Ln({id:Ln.ID(yn),label:oe.a("foldLevelAction.label","Fold Level {0}",yn),alias:"Fold Level "+yn,precondition:k,kbOpts:{kbExpr:re.a.editorTextFocus,primary:Object(U.a)(2048|41,2048|21+yn),weight:100}}));var Tn=Object(Ye.Rb)("editor.foldBackground",{light:Object(Ye.dc)(Ye.K,.3),dark:Object(Ye.dc)(Ye.K,.3),hc:null},oe.a("editorSelectionBackground","Color of the editor selection."));Object(Ze.e)(function(Ft,pt){var gt=Ft.getColor(Tn);gt&&pt.addRule(".monaco-editor .folded-background { background-color: "+gt+"; }")})},AIFX:function(wt,P,r){"use strict";r.r(P),r.d(P,"getSelectionSearchString",function(){return Yt}),r.d(P,"CommonFindController",function(){return Zt}),r.d(P,"FindController",function(){return dn}),r.d(P,"StartFindAction",function(){return fn}),r.d(P,"StartFindWithSelectionAction",function(){return An}),r.d(P,"MatchFindAction",function(){return gn}),r.d(P,"NextMatchFindAction",function(){return Mn}),r.d(P,"NextMatchFindAction2",function(){return xn}),r.d(P,"PreviousMatchFindAction",function(){return Le}),r.d(P,"PreviousMatchFindAction2",function(){return W}),r.d(P,"SelectionMatchFindAction",function(){return ae}),r.d(P,"NextSelectionMatchFindAction",function(){return Fe}),r.d(P,"PreviousSelectionMatchFindAction",function(){return qe}),r.d(P,"StartFindReplaceAction",function(){return ct});var I=r("g9ht"),oe=r("dE3Z"),ne=r("bN5T"),N=r("yBOt"),F=r("Whdu"),U=r("2GBI"),j=r("i14n"),G=r("V0RK"),R=r("w9Cd"),E=r("F5bH"),x=r("yCUd"),K=r("/l9y"),D=r("8ZZ4"),A=r("0BkX"),te=r("TwZP"),z=function(){function Ge(de){this._editor=de,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return Ge.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},Ge.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},Ge.prototype.getCount=function(){return this._decorations.length},Ge.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},Ge.prototype.getStartPosition=function(){return this._startPosition},Ge.prototype.setStartPosition=function(de){this._startPosition=de,this.setCurrentFindMatch(null)},Ge.prototype._getDecorationIndex=function(de){var X=this._decorations.indexOf(de);return X>=0?X+1:1},Ge.prototype.getCurrentMatchesPosition=function(de){for(var X=this._editor.getModel().getDecorationsInRange(de),Ue=0,at=X;Ue<at.length;Ue++){var et=at[Ue],Q=et.options;if(Q===Ge._FIND_MATCH_DECORATION||Q===Ge._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(et.id)}return 1},Ge.prototype.setCurrentFindMatch=function(de){var X=this,Ue=null,at=0;if(de)for(var et=0,Q=this._decorations.length;et<Q;et++){var Ce=this._editor.getModel().getDecorationRange(this._decorations[et]);if(de.equalsRange(Ce)){Ue=this._decorations[et],at=et+1;break}}return(this._highlightedDecorationId!==null||Ue!==null)&&this._editor.changeDecorations(function(Oe){if(X._highlightedDecorationId!==null&&(Oe.changeDecorationOptions(X._highlightedDecorationId,Ge._FIND_MATCH_DECORATION),X._highlightedDecorationId=null),Ue!==null&&(X._highlightedDecorationId=Ue,Oe.changeDecorationOptions(X._highlightedDecorationId,Ge._CURRENT_FIND_MATCH_DECORATION)),X._rangeHighlightDecorationId!==null&&(Oe.removeDecoration(X._rangeHighlightDecorationId),X._rangeHighlightDecorationId=null),Ue!==null){var it=X._editor.getModel().getDecorationRange(Ue);if(it.startLineNumber!==it.endLineNumber&&it.endColumn===1){var Qe=it.endLineNumber-1,je=X._editor.getModel().getLineMaxColumn(Qe);it=new R.a(it.startLineNumber,it.startColumn,Qe,je)}X._rangeHighlightDecorationId=Oe.addDecoration(it,Ge._RANGE_HIGHLIGHT_DECORATION)}}),at},Ge.prototype.set=function(de,X){var Ue=this;this._editor.changeDecorations(function(at){var et=Ge._FIND_MATCH_DECORATION,Q=[];if(de.length>1e3){et=Ge._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var Ce=Ue._editor.getModel().getLineCount(),Oe=Ue._editor.getLayoutInfo().height,it=Oe/Ce,Qe=Math.max(2,Math.ceil(3/it)),je=de[0].range.startLineNumber,Ct=de[0].range.endLineNumber,Ot=1,Jt=de.length;Ot<Jt;Ot++){var At=de[Ot].range;Ct+Qe>=At.startLineNumber?At.endLineNumber>Ct&&(Ct=At.endLineNumber):(Q.push({range:new R.a(je,1,Ct,1),options:Ge._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),je=At.startLineNumber,Ct=At.endLineNumber)}Q.push({range:new R.a(je,1,Ct,1),options:Ge._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var jt=new Array(de.length),Ot=0,Jt=de.length;Ot<Jt;Ot++)jt[Ot]={range:de[Ot].range,options:et};Ue._decorations=at.deltaDecorations(Ue._decorations,jt),Ue._overviewRulerApproximateDecorations=at.deltaDecorations(Ue._overviewRulerApproximateDecorations,Q),Ue._rangeHighlightDecorationId&&(at.removeDecoration(Ue._rangeHighlightDecorationId),Ue._rangeHighlightDecorationId=null),Ue._findScopeDecorationId&&(at.removeDecoration(Ue._findScopeDecorationId),Ue._findScopeDecorationId=null),X&&(Ue._findScopeDecorationId=at.addDecoration(X,Ge._FIND_SCOPE_DECORATION))})},Ge.prototype.matchBeforePosition=function(de){if(this._decorations.length===0)return null;for(var X=this._decorations.length-1;X>=0;X--){var Ue=this._decorations[X],at=this._editor.getModel().getDecorationRange(Ue);if(!at||at.endLineNumber>de.lineNumber)continue;if(at.endLineNumber<de.lineNumber)return at;if(at.endColumn>de.column)continue;return at}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},Ge.prototype.matchAfterPosition=function(de){if(this._decorations.length===0)return null;for(var X=0,Ue=this._decorations.length;X<Ue;X++){var at=this._decorations[X],et=this._editor.getModel().getDecorationRange(at);if(!et||et.startLineNumber<de.lineNumber)continue;if(et.startLineNumber>de.lineNumber)return et;if(et.startColumn<de.column)continue;return et}return this._editor.getModel().getDecorationRange(this._decorations[0])},Ge.prototype._allDecorations=function(){var de=[];return de=de.concat(this._decorations),de=de.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&de.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&de.push(this._rangeHighlightDecorationId),de},Ge._CURRENT_FIND_MATCH_DECORATION=D.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(te.f)(A.Kb),position:K.d.Center},minimap:{color:Object(te.f)(A.Gb),position:K.c.Inline}}),Ge._FIND_MATCH_DECORATION=D.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(te.f)(A.Kb),position:K.d.Center},minimap:{color:Object(te.f)(A.Gb),position:K.c.Inline}}),Ge._FIND_MATCH_NO_OVERVIEW_DECORATION=D.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),Ge._FIND_MATCH_ONLY_OVERVIEW_DECORATION=D.a.register({stickiness:1,overviewRuler:{color:Object(te.f)(A.Kb),position:K.d.Center}}),Ge._RANGE_HIGHLIGHT_DECORATION=D.a.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),Ge._FIND_SCOPE_DECORATION=D.a.register({className:"findScope",isWholeLine:!0}),Ge}(),_=function(){function Ge(de,X,Ue){this._editorSelection=de,this._ranges=X,this._replaceStrings=Ue,this._trackedEditorSelectionId=null}return Ge.prototype.getEditOperations=function(de,X){if(this._ranges.length>0){for(var Ue=[],at=0;at<this._ranges.length;at++)Ue.push({range:this._ranges[at],text:this._replaceStrings[at]});Ue.sort(function(Qe,je){return R.a.compareRangesUsingStarts(Qe.range,je.range)});for(var et=[],Q=Ue[0],at=1;at<Ue.length;at++)Q.range.endLineNumber===Ue[at].range.startLineNumber&&Q.range.endColumn===Ue[at].range.startColumn?(Q.range=Q.range.plusRange(Ue[at].range),Q.text=Q.text+Ue[at].text):(et.push(Q),Q=Ue[at]);et.push(Q);for(var Ce=0,Oe=et;Ce<Oe.length;Ce++){var it=Oe[Ce];X.addEditOperation(it.range,it.text)}}this._trackedEditorSelectionId=X.trackSelection(this._editorSelection)},Ge.prototype.computeCursorState=function(de,X){return X.getTrackedSelection(this._trackedEditorSelectionId)},Ge}();function f(Ge,de){if(Ge&&Ge[0]!==""){var X=p(Ge,de,"-"),Ue=p(Ge,de,"_");return X&&!Ue?g(Ge,de,"-"):!X&&Ue?g(Ge,de,"_"):Ge[0].toUpperCase()===Ge[0]?de.toUpperCase():Ge[0].toLowerCase()===Ge[0]?de.toLowerCase():N.j(Ge[0][0])?de[0].toUpperCase()+de.substr(1):de}else return de}function p(Ge,de,X){var Ue=Ge[0].indexOf(X)!==-1&&de.indexOf(X)!==-1;return Ue&&Ge[0].split(X).length===de.split(X).length}function g(Ge,de,X){var Ue=de.split(X),at=Ge[0].split(X),et="";return Ue.forEach(function(Q,Ce){et+=f([at[Ce]],Q)+X}),et.slice(0,-1)}var m=function(){function Ge(de){this.staticValue=de,this.kind=0}return Ge}(),w=function(){function Ge(de){this.pieces=de,this.kind=1}return Ge}(),B=function(){function Ge(de){!de||de.length===0?this._state=new m(""):de.length===1&&de[0].staticValue!==null?this._state=new m(de[0].staticValue):this._state=new w(de)}return Ge.fromStaticValue=function(de){return new Ge([H.staticValue(de)])},Object.defineProperty(Ge.prototype,"hasReplacementPatterns",{get:function(){return this._state.kind===1},enumerable:!0,configurable:!0}),Ge.prototype.buildReplaceString=function(de,X){if(this._state.kind===0)return X?f(de,this._state.staticValue):this._state.staticValue;for(var Ue="",at=0,et=this._state.pieces.length;at<et;at++){var Q=this._state.pieces[at];if(Q.staticValue!==null){Ue+=Q.staticValue;continue}Ue+=Ge._substitute(Q.matchIndex,de)}return Ue},Ge._substitute=function(de,X){if(X===null)return"";if(de===0)return X[0];for(var Ue="";de>0;){if(de<X.length){var at=X[de]||"";return at+Ue}Ue=String(de%10)+Ue,de=Math.floor(de/10)}return"$"+Ue},Ge}(),H=function(){function Ge(de,X){this.staticValue=de,this.matchIndex=X}return Ge.staticValue=function(de){return new Ge(de,-1)},Ge.matchIndex=function(de){return new Ge(null,de)},Ge}(),re=function(){function Ge(de){this._source=de,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return Ge.prototype.emitUnchanged=function(de){this._emitStatic(this._source.substring(this._lastCharIndex,de)),this._lastCharIndex=de},Ge.prototype.emitStatic=function(de,X){this._emitStatic(de),this._lastCharIndex=X},Ge.prototype._emitStatic=function(de){if(de.length===0)return;this._currentStaticPiece+=de},Ge.prototype.emitMatchIndex=function(de,X){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=H.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=H.matchIndex(de),this._lastCharIndex=X},Ge.prototype.finalize=function(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=H.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new B(this._result)},Ge}();function he(Ge){if(!Ge||Ge.length===0)return new B(null);for(var de=new re(Ge),X=0,Ue=Ge.length;X<Ue;X++){var at=Ge.charCodeAt(X);if(at===92){if(X++,X>=Ue)break;var et=Ge.charCodeAt(X);switch(et){case 92:de.emitUnchanged(X-1),de.emitStatic("\\",X+1);break;case 110:de.emitUnchanged(X-1),de.emitStatic(`
|
|
`,X+1);break;case 116:de.emitUnchanged(X-1),de.emitStatic(" ",X+1);break}continue}if(at===36){if(X++,X>=Ue)break;var et=Ge.charCodeAt(X);if(et===36){de.emitUnchanged(X-1),de.emitStatic("$",X+1);continue}if(et===48||et===38){de.emitUnchanged(X-1),de.emitMatchIndex(0,X+1);continue}if(49<=et&&et<=57){var Q=et-48;if(X+1<Ue){var Ce=Ge.charCodeAt(X+1);if(48<=Ce&&Ce<=57){X++,Q=Q*10+(Ce-48),de.emitUnchanged(X-2),de.emitMatchIndex(Q,X+1);continue}}de.emitUnchanged(X-1),de.emitMatchIndex(Q,X+1);continue}}}return de.finalize()}var Ee=r("bBv/"),Se=new Ee.d("findWidgetVisible",!1),q=new Ee.d("findInputFocussed",!1),Z=new Ee.d("replaceInputFocussed",!1),ce={primary:512|33,mac:{primary:2048|512|33}},Me={primary:512|53,mac:{primary:2048|512|53}},Ve={primary:512|48,mac:{primary:2048|512|48}},_e={primary:512|42,mac:{primary:2048|512|42}},ue={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},se=19999,fe=240,ie=function(){function Ge(de,X){var Ue=this;this._toDispose=new ne.b,this._editor=de,this._state=X,this._isDisposed=!1,this._startSearchingTimer=new oe.e,this._decorations=new z(de),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new oe.d(function(){return Ue.research(!1)},100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(function(at){(at.reason===3||at.reason===5||at.reason===6)&&Ue._decorations.setStartPosition(Ue._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(function(at){if(Ue._ignoreModelContentChanged)return;at.isFlush&&Ue._decorations.reset(),Ue._decorations.setStartPosition(Ue._editor.getPosition()),Ue._updateDecorationsScheduler.schedule()})),this._toDispose.add(this._state.onFindReplaceStateChange(function(at){return Ue._onStateChanged(at)})),this.research(!1,this._state.searchScope)}return Ge.prototype.dispose=function(){this._isDisposed=!0,Object(ne.f)(this._startSearchingTimer),this._toDispose.dispose()},Ge.prototype._onStateChanged=function(de){var X=this;if(this._isDisposed)return;if(!this._editor.hasModel())return;if(de.searchString||de.isReplaceRevealed||de.isRegex||de.wholeWord||de.matchCase||de.searchScope){var Ue=this._editor.getModel();Ue.isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(function(){de.searchScope?X.research(de.moveCursor,X._state.searchScope):X.research(de.moveCursor)},fe)):de.searchScope?this.research(de.moveCursor,this._state.searchScope):this.research(de.moveCursor)}},Ge._getSearchRange=function(de,X){return X||de.getFullModelRange()},Ge.prototype.research=function(de,X){var Ue=null;typeof X!="undefined"?Ue=X:Ue=this._decorations.getFindScope(),Ue!==null&&(Ue.startLineNumber!==Ue.endLineNumber&&(Ue.endColumn===1?Ue=new R.a(Ue.startLineNumber,1,Ue.endLineNumber-1,this._editor.getModel().getLineMaxColumn(Ue.endLineNumber-1)):Ue=new R.a(Ue.startLineNumber,1,Ue.endLineNumber,this._editor.getModel().getLineMaxColumn(Ue.endLineNumber))));var at=this._findMatches(Ue,!1,se);this._decorations.set(at,Ue),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),de&&this._moveToNextMatch(this._decorations.getStartPosition())},Ge.prototype._hasMatches=function(){return this._state.matchesCount>0},Ge.prototype._cannotFind=function(){if(!this._hasMatches()){var de=this._decorations.getFindScope();return de&&this._editor.revealRangeInCenterIfOutsideViewport(de,0),!0}return!1},Ge.prototype._setCurrentFindMatch=function(de){var X=this._decorations.setCurrentFindMatch(de);this._state.changeMatchInfo(X,this._decorations.getCount(),de),this._editor.setSelection(de),this._editor.revealRangeInCenterIfOutsideViewport(de,0)},Ge.prototype._prevSearchPosition=function(de){var X=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),Ue=de.lineNumber,at=de.column,et=this._editor.getModel();return X||at===1?(Ue===1?Ue=et.getLineCount():Ue--,at=et.getLineMaxColumn(Ue)):at--,new G.a(Ue,at)},Ge.prototype._moveToPrevMatch=function(de,X){if(X===void 0&&(X=!1),this._decorations.getCount()<se){var Ue=this._decorations.matchBeforePosition(de);Ue&&Ue.isEmpty()&&Ue.getStartPosition().equals(de)&&(de=this._prevSearchPosition(de),Ue=this._decorations.matchBeforePosition(de)),Ue&&this._setCurrentFindMatch(Ue);return}if(this._cannotFind())return;var at=this._decorations.getFindScope(),et=Ge._getSearchRange(this._editor.getModel(),at);et.getEndPosition().isBefore(de)&&(de=et.getEndPosition()),de.isBefore(et.getStartPosition())&&(de=et.getEndPosition());var Q=de.lineNumber,Ce=de.column,Oe=this._editor.getModel(),it=new G.a(Q,Ce),Qe=Oe.findPreviousMatch(this._state.searchString,it,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1);if(Qe&&Qe.range.isEmpty()&&Qe.range.getStartPosition().equals(it)&&(it=this._prevSearchPosition(it),Qe=Oe.findPreviousMatch(this._state.searchString,it,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1)),!Qe)return;if(!X&&!et.containsRange(Qe.range))return this._moveToPrevMatch(Qe.range.getStartPosition(),!0);this._setCurrentFindMatch(Qe.range)},Ge.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},Ge.prototype._nextSearchPosition=function(de){var X=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),Ue=de.lineNumber,at=de.column,et=this._editor.getModel();return X||at===et.getLineMaxColumn(Ue)?(Ue===et.getLineCount()?Ue=1:Ue++,at=1):at++,new G.a(Ue,at)},Ge.prototype._moveToNextMatch=function(de){if(this._decorations.getCount()<se){var X=this._decorations.matchAfterPosition(de);X&&X.isEmpty()&&X.getStartPosition().equals(de)&&(de=this._nextSearchPosition(de),X=this._decorations.matchAfterPosition(de)),X&&this._setCurrentFindMatch(X);return}var Ue=this._getNextMatch(de,!1,!0);Ue&&this._setCurrentFindMatch(Ue.range)},Ge.prototype._getNextMatch=function(de,X,Ue,at){if(at===void 0&&(at=!1),this._cannotFind())return null;var et=this._decorations.getFindScope(),Q=Ge._getSearchRange(this._editor.getModel(),et);Q.getEndPosition().isBefore(de)&&(de=Q.getStartPosition()),de.isBefore(Q.getStartPosition())&&(de=Q.getStartPosition());var Ce=de.lineNumber,Oe=de.column,it=this._editor.getModel(),Qe=new G.a(Ce,Oe),je=it.findNextMatch(this._state.searchString,Qe,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,X);return Ue&&je&&je.range.isEmpty()&&je.range.getStartPosition().equals(Qe)&&(Qe=this._nextSearchPosition(Qe),je=it.findNextMatch(this._state.searchString,Qe,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,X)),je?!at&&!Q.containsRange(je.range)?this._getNextMatch(je.range.getEndPosition(),X,Ue,!0):je:null},Ge.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},Ge.prototype._getReplacePattern=function(){return this._state.isRegex?he(this._state.replaceString):B.fromStaticValue(this._state.replaceString)},Ge.prototype.replace=function(){if(!this._hasMatches())return;var de=this._getReplacePattern(),X=this._editor.getSelection(),Ue=this._getNextMatch(X.getStartPosition(),!0,!1);if(Ue)if(X.equalsRange(Ue.range)){var at=de.buildReplaceString(Ue.matches,this._state.preserveCase),et=new j.a(X,at);this._executeEditorCommand("replace",et),this._decorations.setStartPosition(new G.a(X.startLineNumber,X.startColumn+at.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(Ue.range)},Ge.prototype._findMatches=function(de,X,Ue){var at=Ge._getSearchRange(this._editor.getModel(),de);return this._editor.getModel().findMatches(this._state.searchString,at,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,X,Ue)},Ge.prototype.replaceAll=function(){if(!this._hasMatches())return;var de=this._decorations.getFindScope();de===null&&this._state.matchesCount>=se?this._largeReplaceAll():this._regularReplaceAll(de),this.research(!1)},Ge.prototype._largeReplaceAll=function(){var de=new x.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null),X=de.parseSearchRequest();if(!X)return;var Ue=X.regex;if(!Ue.multiline){var at="mu";Ue.ignoreCase&&(at+="i"),Ue.global&&(at+="g"),Ue=new RegExp(Ue.source,at)}var et=this._editor.getModel(),Q=et.getValue(1),Ce=et.getFullModelRange(),Oe=this._getReplacePattern(),it,Qe=this._state.preserveCase;Oe.hasReplacementPatterns||Qe?it=Q.replace(Ue,function(){return Oe.buildReplaceString(arguments,Qe)}):it=Q.replace(Ue,Oe.buildReplaceString(null,Qe));var je=new j.b(Ce,it,this._editor.getSelection());this._executeEditorCommand("replaceAll",je)},Ge.prototype._regularReplaceAll=function(de){for(var X=this._getReplacePattern(),Ue=this._findMatches(de,X.hasReplacementPatterns||this._state.preserveCase,1073741824),at=[],et=0,Q=Ue.length;et<Q;et++)at[et]=X.buildReplaceString(Ue[et].matches,this._state.preserveCase);var Ce=new _(this._editor.getSelection(),Ue.map(function(Oe){return Oe.range}),at);this._executeEditorCommand("replaceAll",Ce)},Ge.prototype.selectAllMatches=function(){if(!this._hasMatches())return;for(var de=this._decorations.getFindScope(),X=this._findMatches(de,!1,1073741824),Ue=X.map(function(Oe){return new E.a(Oe.range.startLineNumber,Oe.range.startColumn,Oe.range.endLineNumber,Oe.range.endColumn)}),at=this._editor.getSelection(),et=0,Q=Ue.length;et<Q;et++){var Ce=Ue[et];if(Ce.equalsRange(at)){Ue=[at].concat(Ue.slice(0,et)).concat(Ue.slice(et+1));break}}this._editor.setSelections(Ue)},Ge.prototype._executeEditorCommand=function(de,X){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(de,X),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},Ge}(),J=r("fF8p"),me=r("EAR2"),ye=r("AMt9"),ze=r("Ytku"),tt=r("YK2C"),_t=r("mucJ"),Pt=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),Xt={inputActiveOptionBorder:ze.a.fromHex("#007ACC00"),inputActiveOptionBackground:ze.a.fromHex("#0E639C50")},Ke=function(Ge){Pt(de,Ge);function de(X){var Ue=Ge.call(this)||this;return Ue._onChange=Ue._register(new tt.a),Ue.onChange=Ue._onChange.event,Ue._onKeyDown=Ue._register(new tt.a),Ue.onKeyDown=Ue._onKeyDown.event,Ue._opts=_t.c(X),_t.g(Ue._opts,Xt,!1),Ue._checked=Ue._opts.isChecked,Ue.domNode=document.createElement("div"),Ue.domNode.title=Ue._opts.title,Ue.domNode.className="monaco-custom-checkbox codicon "+(Ue._opts.actionClassName||"")+" "+(Ue._checked?"checked":"unchecked"),Ue.domNode.tabIndex=0,Ue.domNode.setAttribute("role","checkbox"),Ue.domNode.setAttribute("aria-checked",String(Ue._checked)),Ue.domNode.setAttribute("aria-label",Ue._opts.title),Ue.applyStyles(),Ue.onclick(Ue.domNode,function(at){Ue.checked=!Ue._checked,Ue._onChange.fire(!1),at.preventDefault()}),Ue.ignoreGesture(Ue.domNode),Ue.onkeydown(Ue.domNode,function(at){if(at.keyCode===10||at.keyCode===3){Ue.checked=!Ue._checked,Ue._onChange.fire(!0),at.preventDefault();return}Ue._onKeyDown.fire(at)}),Ue}return Object.defineProperty(de.prototype,"enabled",{get:function(){return this.domNode.getAttribute("aria-disabled")!=="true"},enumerable:!0,configurable:!0}),de.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(de.prototype,"checked",{get:function(){return this._checked},set:function(Ue){this._checked=Ue,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()},enumerable:!0,configurable:!0}),de.prototype.width=function(){return 2+2+2+16},de.prototype.style=function(X){X.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=X.inputActiveOptionBorder),X.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=X.inputActiveOptionBackground),this.applyStyles()},de.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")},de.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},de.prototype.disable=function(){J.R(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},de}(ye.a),Xe=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),Ze=I.a("caseDescription","Match Case"),Ye=I.a("wordsDescription","Match Whole Word"),ke=I.a("regexDescription","Use Regular Expression"),$e=function(Ge){Xe(de,Ge);function de(X){return Ge.call(this,{actionClassName:"codicon-case-sensitive",title:Ze+X.appendTitle,isChecked:X.isChecked,inputActiveOptionBorder:X.inputActiveOptionBorder,inputActiveOptionBackground:X.inputActiveOptionBackground})||this}return de}(Ke),we=function(Ge){Xe(de,Ge);function de(X){return Ge.call(this,{actionClassName:"codicon-whole-word",title:Ye+X.appendTitle,isChecked:X.isChecked,inputActiveOptionBorder:X.inputActiveOptionBorder,inputActiveOptionBackground:X.inputActiveOptionBackground})||this}return de}(Ke),k=function(Ge){Xe(de,Ge);function de(X){return Ge.call(this,{actionClassName:"codicon-regex",title:ke+X.appendTitle,isChecked:X.isChecked,inputActiveOptionBorder:X.inputActiveOptionBorder,inputActiveOptionBackground:X.inputActiveOptionBackground})||this}return de}(Ke),ee=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),Pe=function(Ge){ee(de,Ge);function de(X,Ue,at,et){var Q=Ge.call(this)||this;Q._hideSoon=Q._register(new oe.d(function(){return Q._hide()},2e3)),Q._isVisible=!1,Q._editor=X,Q._state=Ue,Q._keybindingService=at,Q._domNode=document.createElement("div"),Q._domNode.className="findOptionsWidget",Q._domNode.style.display="none",Q._domNode.style.top="10px",Q._domNode.setAttribute("role","presentation"),Q._domNode.setAttribute("aria-hidden","true");var Ce=et.getTheme().getColor(A.X),Oe=et.getTheme().getColor(A.W);return Q.caseSensitive=Q._register(new $e({appendTitle:Q._keybindingLabelFor(ue.ToggleCaseSensitiveCommand),isChecked:Q._state.matchCase,inputActiveOptionBorder:Ce,inputActiveOptionBackground:Oe})),Q._domNode.appendChild(Q.caseSensitive.domNode),Q._register(Q.caseSensitive.onChange(function(){Q._state.change({matchCase:Q.caseSensitive.checked},!1)})),Q.wholeWords=Q._register(new we({appendTitle:Q._keybindingLabelFor(ue.ToggleWholeWordCommand),isChecked:Q._state.wholeWord,inputActiveOptionBorder:Ce,inputActiveOptionBackground:Oe})),Q._domNode.appendChild(Q.wholeWords.domNode),Q._register(Q.wholeWords.onChange(function(){Q._state.change({wholeWord:Q.wholeWords.checked},!1)})),Q.regex=Q._register(new k({appendTitle:Q._keybindingLabelFor(ue.ToggleRegexCommand),isChecked:Q._state.isRegex,inputActiveOptionBorder:Ce,inputActiveOptionBackground:Oe})),Q._domNode.appendChild(Q.regex.domNode),Q._register(Q.regex.onChange(function(){Q._state.change({isRegex:Q.regex.checked},!1)})),Q._editor.addOverlayWidget(Q),Q._register(Q._state.onFindReplaceStateChange(function(it){var Qe=!1;it.isRegex&&(Q.regex.checked=Q._state.isRegex,Qe=!0),it.wholeWord&&(Q.wholeWords.checked=Q._state.wholeWord,Qe=!0),it.matchCase&&(Q.caseSensitive.checked=Q._state.matchCase,Qe=!0),!Q._state.isRevealed&&Qe&&Q._revealTemporarily()})),Q._register(J.j(Q._domNode,function(it){return Q._onMouseOut()})),Q._register(J.i(Q._domNode,"mouseover",function(it){return Q._onMouseOver()})),Q._applyTheme(et.getTheme()),Q._register(et.onThemeChange(Q._applyTheme.bind(Q))),Q}return de.prototype._keybindingLabelFor=function(X){var Ue=this._keybindingService.lookupKeybinding(X);return Ue?" ("+Ue.getLabel()+")":""},de.prototype.dispose=function(){this._editor.removeOverlayWidget(this),Ge.prototype.dispose.call(this)},de.prototype.getId=function(){return de.ID},de.prototype.getDomNode=function(){return this._domNode},de.prototype.getPosition=function(){return{preference:0}},de.prototype.highlightFindOptions=function(){this._revealTemporarily()},de.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},de.prototype._onMouseOut=function(){this._hideSoon.schedule()},de.prototype._onMouseOver=function(){this._hideSoon.cancel()},de.prototype._show=function(){if(this._isVisible)return;this._isVisible=!0,this._domNode.style.display="block"},de.prototype._hide=function(){if(!this._isVisible)return;this._isVisible=!1,this._domNode.style.display="none"},de.prototype._applyTheme=function(X){var Ue={inputActiveOptionBorder:X.getColor(A.X),inputActiveOptionBackground:X.getColor(A.W)};this.caseSensitive.style(Ue),this.wholeWords.style(Ue),this.regex.style(Ue)},de.ID="editor.contrib.findOptionsWidget",de}(ye.a);Object(te.e)(function(Ge,de){var X=Ge.getColor(A.P);X&&de.addRule(".monaco-editor .findOptionsWidget { background-color: "+X+"; }");var Ue=Ge.getColor(A.R);Ue&&de.addRule(".monaco-editor .findOptionsWidget { color: "+Ue+"; }");var at=Ge.getColor(A.fc);at&&de.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+at+"; }");var et=Ge.getColor(A.e);et&&de.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+et+"; }")});var ve=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}();function Te(Ge,de){return Ge===1?!0:Ge===2?!1:de}var Ie=function(Ge){ve(de,Ge);function de(){var X=Ge.call(this)||this;return X._onFindReplaceStateChange=X._register(new tt.a),X.onFindReplaceStateChange=X._onFindReplaceStateChange.event,X._searchString="",X._replaceString="",X._isRevealed=!1,X._isReplaceRevealed=!1,X._isRegex=!1,X._isRegexOverride=0,X._wholeWord=!1,X._wholeWordOverride=0,X._matchCase=!1,X._matchCaseOverride=0,X._preserveCase=!1,X._preserveCaseOverride=0,X._searchScope=null,X._matchesPosition=0,X._matchesCount=0,X._currentMatch=null,X}return Object.defineProperty(de.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"isRegex",{get:function(){return Te(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"wholeWord",{get:function(){return Te(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"matchCase",{get:function(){return Te(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"preserveCase",{get:function(){return Te(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),de.prototype.changeMatchInfo=function(X,Ue,at){var et={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},Q=!1;Ue===0&&(X=0),X>Ue&&(X=Ue),this._matchesPosition!==X&&(this._matchesPosition=X,et.matchesPosition=!0,Q=!0),this._matchesCount!==Ue&&(this._matchesCount=Ue,et.matchesCount=!0,Q=!0),typeof at!="undefined"&&(R.a.equalsRange(this._currentMatch,at)||(this._currentMatch=at,et.currentMatch=!0,Q=!0)),Q&&this._onFindReplaceStateChange.fire(et)},de.prototype.change=function(X,Ue,at){at===void 0&&(at=!0);var et={moveCursor:Ue,updateHistory:at,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},Q=!1,Ce=this.isRegex,Oe=this.wholeWord,it=this.matchCase,Qe=this.preserveCase;typeof X.searchString!="undefined"&&(this._searchString!==X.searchString&&(this._searchString=X.searchString,et.searchString=!0,Q=!0)),typeof X.replaceString!="undefined"&&(this._replaceString!==X.replaceString&&(this._replaceString=X.replaceString,et.replaceString=!0,Q=!0)),typeof X.isRevealed!="undefined"&&(this._isRevealed!==X.isRevealed&&(this._isRevealed=X.isRevealed,et.isRevealed=!0,Q=!0)),typeof X.isReplaceRevealed!="undefined"&&(this._isReplaceRevealed!==X.isReplaceRevealed&&(this._isReplaceRevealed=X.isReplaceRevealed,et.isReplaceRevealed=!0,Q=!0)),typeof X.isRegex!="undefined"&&(this._isRegex=X.isRegex),typeof X.wholeWord!="undefined"&&(this._wholeWord=X.wholeWord),typeof X.matchCase!="undefined"&&(this._matchCase=X.matchCase),typeof X.preserveCase!="undefined"&&(this._preserveCase=X.preserveCase),typeof X.searchScope!="undefined"&&(R.a.equalsRange(this._searchScope,X.searchScope)||(this._searchScope=X.searchScope,et.searchScope=!0,Q=!0)),this._isRegexOverride=typeof X.isRegexOverride!="undefined"?X.isRegexOverride:0,this._wholeWordOverride=typeof X.wholeWordOverride!="undefined"?X.wholeWordOverride:0,this._matchCaseOverride=typeof X.matchCaseOverride!="undefined"?X.matchCaseOverride:0,this._preserveCaseOverride=typeof X.preserveCaseOverride!="undefined"?X.preserveCaseOverride:0,Ce!==this.isRegex&&(Q=!0,et.isRegex=!0),Oe!==this.wholeWord&&(Q=!0,et.wholeWord=!0),it!==this.matchCase&&(Q=!0,et.matchCase=!0),Qe!==this.preserveCase&&(Q=!0,et.preserveCase=!0),Q&&this._onFindReplaceStateChange.fire(et)},de}(ne.a),pe=r("UgoW"),nt=r("5xAg"),Et=r("carD"),Rt=r("QqjT"),Tt=r("S7i+"),Ht=r("YWAb"),Gt=r("6oPh"),rn=r("mTMv"),Ln=r("mmaD"),yn=r("SPtt"),Tn=r("ywU6"),Ft=function(){function Ge(de,X){de===void 0&&(de=[]),X===void 0&&(X=10),this._initialize(de),this._limit=X,this._onChange()}return Ge.prototype.add=function(de){this._history.delete(de),this._history.add(de),this._onChange()},Ge.prototype.next=function(){return this._navigator.next()},Ge.prototype.previous=function(){return this._navigator.previous()},Ge.prototype.current=function(){return this._navigator.current()},Ge.prototype.parent=function(){return null},Ge.prototype.first=function(){return this._navigator.first()},Ge.prototype.last=function(){return this._navigator.last()},Ge.prototype.has=function(de){return this._history.has(de)},Ge.prototype._onChange=function(){this._reduceToLimit();var de=this._elements;this._navigator=new Tn.a(de,0,de.length,de.length)},Ge.prototype._reduceToLimit=function(){var de=this._elements;de.length>this._limit&&this._initialize(de.slice(de.length-this._limit))},Ge.prototype._initialize=function(de){this._history=new Set;for(var X=0,Ue=de;X<Ue.length;X++){var at=Ue[X];this._history.add(at)}},Object.defineProperty(Ge.prototype,"_elements",{get:function(){var X=[];return this._history.forEach(function(Ue){return X.push(Ue)}),X},enumerable:!0,configurable:!0}),Ge}(),pt=r("AyeG"),gt=r("6zAk"),Dt=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),Lt=J.a,Vt={inputBackground:ze.a.fromHex("#3C3C3C"),inputForeground:ze.a.fromHex("#CCCCCC"),inputValidationInfoBorder:ze.a.fromHex("#55AAFF"),inputValidationInfoBackground:ze.a.fromHex("#063B49"),inputValidationWarningBorder:ze.a.fromHex("#B89500"),inputValidationWarningBackground:ze.a.fromHex("#352A05"),inputValidationErrorBorder:ze.a.fromHex("#BE1100"),inputValidationErrorBackground:ze.a.fromHex("#5A1D1D")},Qt=function(Ge){Dt(de,Ge);function de(X,Ue,at){var et=Ge.call(this)||this;et.state="idle",et.maxHeight=Number.POSITIVE_INFINITY,et._onDidChange=et._register(new tt.a),et.onDidChange=et._onDidChange.event,et._onDidHeightChange=et._register(new tt.a),et.onDidHeightChange=et._onDidHeightChange.event,et.contextViewProvider=Ue,et.options=at||Object.create(null),Object(_t.g)(et.options,Vt,!1),et.message=null,et.placeholder=et.options.placeholder||"",et.ariaLabel=et.options.ariaLabel||"",et.inputBackground=et.options.inputBackground,et.inputForeground=et.options.inputForeground,et.inputBorder=et.options.inputBorder,et.inputValidationInfoBorder=et.options.inputValidationInfoBorder,et.inputValidationInfoBackground=et.options.inputValidationInfoBackground,et.inputValidationInfoForeground=et.options.inputValidationInfoForeground,et.inputValidationWarningBorder=et.options.inputValidationWarningBorder,et.inputValidationWarningBackground=et.options.inputValidationWarningBackground,et.inputValidationWarningForeground=et.options.inputValidationWarningForeground,et.inputValidationErrorBorder=et.options.inputValidationErrorBorder,et.inputValidationErrorBackground=et.options.inputValidationErrorBackground,et.inputValidationErrorForeground=et.options.inputValidationErrorForeground,et.options.validationOptions&&(et.validation=et.options.validationOptions.validation),et.element=J.p(X,Lt(".monaco-inputbox.idle"));var Q=et.options.flexibleHeight?"textarea":"input",Ce=J.p(et.element,Lt(".wrapper"));if(et.input=J.p(Ce,Lt(Q+".input.empty")),et.input.setAttribute("autocorrect","off"),et.input.setAttribute("autocapitalize","off"),et.input.setAttribute("spellcheck","false"),et.onfocus(et.input,function(){return J.e(et.element,"synthetic-focus")}),et.onblur(et.input,function(){return J.O(et.element,"synthetic-focus")}),et.options.flexibleHeight){et.maxHeight=typeof et.options.flexibleMaxHeight=="number"?et.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,et.mirror=J.p(Ce,Lt("div.mirror")),et.mirror.innerHTML=" ",et.scrollableElement=new pt.b(et.element,{vertical:1}),et.options.flexibleWidth&&(et.input.setAttribute("wrap","off"),et.mirror.style.whiteSpace="pre",et.mirror.style.wordWrap="initial"),J.p(X,et.scrollableElement.getDomNode()),et._register(et.scrollableElement),et._register(et.scrollableElement.onScroll(function(it){return et.input.scrollTop=it.scrollTop}));var Oe=tt.b.filter(Object(gt.a)(document,"selectionchange"),function(){var it=document.getSelection();return(it==null?void 0:it.anchorNode)===Ce});et._register(Oe(et.updateScrollDimensions,et)),et._register(et.onDidHeightChange(et.updateScrollDimensions,et))}else et.input.type=et.options.type||"text",et.input.setAttribute("wrap","off");return et.ariaLabel&&et.input.setAttribute("aria-label",et.ariaLabel),et.placeholder&&et.setPlaceHolder(et.placeholder),et.oninput(et.input,function(){return et.onValueChange()}),et.onblur(et.input,function(){return et.onBlur()}),et.onfocus(et.input,function(){return et.onFocus()}),et.placeholder&&rn.i&&et.onclick(et.input,function(it){J.b.stop(it,!0),et.input.focus()}),et.ignoreGesture(et.input),setTimeout(function(){return et.updateMirror()},0),et.options.actions&&(et.actionbar=et._register(new yn.a(et.element)),et.actionbar.push(et.options.actions,{icon:!0,label:!1})),et.applyStyles(),et}return de.prototype.onBlur=function(){this._hideMessage()},de.prototype.onFocus=function(){this._showMessage()},de.prototype.setPlaceHolder=function(X){this.placeholder=X,this.input.setAttribute("placeholder",X),this.input.title=X},de.prototype.setAriaLabel=function(X){this.ariaLabel=X,X?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")},Object.defineProperty(de.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"value",{get:function(){return this.input.value},set:function(Ue){this.input.value!==Ue&&(this.input.value=Ue,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"height",{get:function(){return typeof this.cachedHeight=="number"?this.cachedHeight:J.F(this.element)},enumerable:!0,configurable:!0}),de.prototype.focus=function(){this.input.focus()},de.prototype.blur=function(){this.input.blur()},de.prototype.hasFocus=function(){return document.activeElement===this.input},de.prototype.select=function(X){X===void 0&&(X=null),this.input.select(),X&&this.input.setSelectionRange(X.start,X.end)},de.prototype.enable=function(){this.input.removeAttribute("disabled")},de.prototype.disable=function(){this.blur(),this.input.disabled=!0,this._hideMessage()},Object.defineProperty(de.prototype,"width",{get:function(){return J.G(this.input)},set:function(Ue){if(this.options.flexibleHeight&&this.options.flexibleWidth){var at=0;if(this.mirror){var et=parseFloat(this.mirror.style.paddingLeft||"")||0,Q=parseFloat(this.mirror.style.paddingRight||"")||0;at=et+Q}this.input.style.width=Ue-at+"px"}else this.input.style.width=Ue+"px";this.mirror&&(this.mirror.style.width=Ue+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(de.prototype,"paddingRight",{set:function(Ue){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+Ue+"px)":this.input.style.paddingRight=Ue+"px",this.mirror&&(this.mirror.style.paddingRight=Ue+"px")},enumerable:!0,configurable:!0}),de.prototype.updateScrollDimensions=function(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;var X=this.cachedContentHeight,Ue=this.cachedHeight,at=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:X,height:Ue}),this.scrollableElement.setScrollPosition({scrollTop:at})},de.prototype.showMessage=function(X,Ue){this.message=X,J.O(this.element,"idle"),J.O(this.element,"info"),J.O(this.element,"warning"),J.O(this.element,"error"),J.e(this.element,this.classForType(X.type));var at=this.stylesForType(this.message.type);this.element.style.border=at.border?"1px solid "+at.border:"";var et;X.type===3?et=I.a("alertErrorMessage","Error: {0}",X.content):X.type===2?et=I.a("alertWarningMessage","Warning: {0}",X.content):et=I.a("alertInfoMessage","Info: {0}",X.content),nt.a(et),(this.hasFocus()||Ue)&&this._showMessage()},de.prototype.hideMessage=function(){this.message=null,J.O(this.element,"info"),J.O(this.element,"warning"),J.O(this.element,"error"),J.e(this.element,"idle"),this._hideMessage(),this.applyStyles()},de.prototype.validate=function(){var X=null;return this.validation&&(X=this.validation(this.value),X?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(X)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!X},de.prototype.stylesForType=function(X){switch(X){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}},de.prototype.classForType=function(X){switch(X){case 1:return"info";case 2:return"warning";default:return"error"}},de.prototype._showMessage=function(){var X=this;if(!this.contextViewProvider||!this.message)return;var Ue,at=function(){return Ue.style.width=J.G(X.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return X.element},anchorAlignment:1,render:function(Q){if(!X.message)return null;Ue=J.p(Q,Lt(".monaco-inputbox-container")),at();var Ce={inline:!0,className:"monaco-inputbox-message"},Oe=X.message.formatContent?Object(Ln.b)(X.message.content,Ce):Object(Ln.c)(X.message.content,Ce);J.e(Oe,X.classForType(X.message.type));var it=X.stylesForType(X.message.type);return Oe.style.backgroundColor=it.background?it.background.toString():"",Oe.style.color=it.foreground?it.foreground.toString():"",Oe.style.border=it.border?"1px solid "+it.border:"",J.p(Ue,Oe),null},onHide:function(){X.state="closed"},layout:at}),this.state="open"},de.prototype._hideMessage=function(){if(!this.contextViewProvider)return;this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle"},de.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),J.X(this.input,"empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()},de.prototype.updateMirror=function(){if(!this.mirror)return;var X=this.value,Ue=X.charCodeAt(X.length-1),at=Ue===10?" ":"",et=X+at;et?this.mirror.textContent=X+at:this.mirror.innerHTML=" ",this.layout()},de.prototype.style=function(X){this.inputBackground=X.inputBackground,this.inputForeground=X.inputForeground,this.inputBorder=X.inputBorder,this.inputValidationInfoBackground=X.inputValidationInfoBackground,this.inputValidationInfoForeground=X.inputValidationInfoForeground,this.inputValidationInfoBorder=X.inputValidationInfoBorder,this.inputValidationWarningBackground=X.inputValidationWarningBackground,this.inputValidationWarningForeground=X.inputValidationWarningForeground,this.inputValidationWarningBorder=X.inputValidationWarningBorder,this.inputValidationErrorBackground=X.inputValidationErrorBackground,this.inputValidationErrorForeground=X.inputValidationErrorForeground,this.inputValidationErrorBorder=X.inputValidationErrorBorder,this.applyStyles()},de.prototype.applyStyles=function(){var X=this.inputBackground?this.inputBackground.toString():"",Ue=this.inputForeground?this.inputForeground.toString():"",at=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=X,this.element.style.color=Ue,this.input.style.backgroundColor=X,this.input.style.color=Ue,this.element.style.borderWidth=at?"1px":"",this.element.style.borderStyle=at?"solid":"",this.element.style.borderColor=at},de.prototype.layout=function(){if(!this.mirror)return;var X=this.cachedContentHeight;this.cachedContentHeight=J.F(this.mirror),X!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))},de.prototype.insertAtCursor=function(X){var Ue=this.inputElement,at=Ue.selectionStart,et=Ue.selectionEnd,Q=Ue.value;at!==null&&et!==null&&(this.value=Q.substr(0,at)+X+Q.substr(et),Ue.setSelectionRange(at+1,at+1),this.layout())},de.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),Ge.prototype.dispose.call(this)},de}(ye.a),nn=function(Ge){Dt(de,Ge);function de(X,Ue,at){var et=Ge.call(this,X,Ue,at)||this;return et.history=new Ft(at.history,100),et}return de.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},de.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var X=this.getNextValue();X&&(X=X===this.value?this.getNextValue():X),X&&(this.value=X,nt.c(this.value))},de.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var X=this.getPreviousValue();X&&(X=X===this.value?this.getPreviousValue():X),X&&(this.value=X,nt.c(this.value))},de.prototype.getCurrentValue=function(){var X=this.history.current();return X||(X=this.history.last(),this.history.next()),X},de.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},de.prototype.getNextValue=function(){return this.history.next()||this.history.last()},de}(Qt),sn=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),ln=I.a("defaultLabel","input"),En=function(Ge){sn(de,Ge);function de(X,Ue,at,et){var Q=Ge.call(this)||this;Q._showOptionButtons=at,Q.fixFocusOnOptionClickEnabled=!0,Q._onDidOptionChange=Q._register(new tt.a),Q.onDidOptionChange=Q._onDidOptionChange.event,Q._onKeyDown=Q._register(new tt.a),Q.onKeyDown=Q._onKeyDown.event,Q._onMouseDown=Q._register(new tt.a),Q.onMouseDown=Q._onMouseDown.event,Q._onInput=Q._register(new tt.a),Q._onKeyUp=Q._register(new tt.a),Q._onCaseSensitiveKeyDown=Q._register(new tt.a),Q.onCaseSensitiveKeyDown=Q._onCaseSensitiveKeyDown.event,Q._onRegexKeyDown=Q._register(new tt.a),Q.onRegexKeyDown=Q._onRegexKeyDown.event,Q._lastHighlightFindOptions=0,Q.contextViewProvider=Ue,Q.placeholder=et.placeholder||"",Q.validation=et.validation,Q.label=et.label||ln,Q.inputActiveOptionBorder=et.inputActiveOptionBorder,Q.inputActiveOptionBackground=et.inputActiveOptionBackground,Q.inputBackground=et.inputBackground,Q.inputForeground=et.inputForeground,Q.inputBorder=et.inputBorder,Q.inputValidationInfoBorder=et.inputValidationInfoBorder,Q.inputValidationInfoBackground=et.inputValidationInfoBackground,Q.inputValidationInfoForeground=et.inputValidationInfoForeground,Q.inputValidationWarningBorder=et.inputValidationWarningBorder,Q.inputValidationWarningBackground=et.inputValidationWarningBackground,Q.inputValidationWarningForeground=et.inputValidationWarningForeground,Q.inputValidationErrorBorder=et.inputValidationErrorBorder,Q.inputValidationErrorBackground=et.inputValidationErrorBackground,Q.inputValidationErrorForeground=et.inputValidationErrorForeground;var Ce=et.appendCaseSensitiveLabel||"",Oe=et.appendWholeWordsLabel||"",it=et.appendRegexLabel||"",Qe=et.history||[],je=!!et.flexibleHeight,Ct=!!et.flexibleWidth,Ot=et.flexibleMaxHeight;Q.domNode=document.createElement("div"),J.e(Q.domNode,"monaco-findInput"),Q.inputBox=Q._register(new nn(Q.domNode,Q.contextViewProvider,{placeholder:Q.placeholder||"",ariaLabel:Q.label||"",validationOptions:{validation:Q.validation},inputBackground:Q.inputBackground,inputForeground:Q.inputForeground,inputBorder:Q.inputBorder,inputValidationInfoBackground:Q.inputValidationInfoBackground,inputValidationInfoForeground:Q.inputValidationInfoForeground,inputValidationInfoBorder:Q.inputValidationInfoBorder,inputValidationWarningBackground:Q.inputValidationWarningBackground,inputValidationWarningForeground:Q.inputValidationWarningForeground,inputValidationWarningBorder:Q.inputValidationWarningBorder,inputValidationErrorBackground:Q.inputValidationErrorBackground,inputValidationErrorForeground:Q.inputValidationErrorForeground,inputValidationErrorBorder:Q.inputValidationErrorBorder,history:Qe,flexibleHeight:je,flexibleWidth:Ct,flexibleMaxHeight:Ot})),Q.regex=Q._register(new k({appendTitle:it,isChecked:!1,inputActiveOptionBorder:Q.inputActiveOptionBorder,inputActiveOptionBackground:Q.inputActiveOptionBackground})),Q._register(Q.regex.onChange(function(jt){Q._onDidOptionChange.fire(jt),!jt&&Q.fixFocusOnOptionClickEnabled&&Q.inputBox.focus(),Q.validate()})),Q._register(Q.regex.onKeyDown(function(jt){Q._onRegexKeyDown.fire(jt)})),Q.wholeWords=Q._register(new we({appendTitle:Oe,isChecked:!1,inputActiveOptionBorder:Q.inputActiveOptionBorder,inputActiveOptionBackground:Q.inputActiveOptionBackground})),Q._register(Q.wholeWords.onChange(function(jt){Q._onDidOptionChange.fire(jt),!jt&&Q.fixFocusOnOptionClickEnabled&&Q.inputBox.focus(),Q.validate()})),Q.caseSensitive=Q._register(new $e({appendTitle:Ce,isChecked:!1,inputActiveOptionBorder:Q.inputActiveOptionBorder,inputActiveOptionBackground:Q.inputActiveOptionBackground})),Q._register(Q.caseSensitive.onChange(function(jt){Q._onDidOptionChange.fire(jt),!jt&&Q.fixFocusOnOptionClickEnabled&&Q.inputBox.focus(),Q.validate()})),Q._register(Q.caseSensitive.onKeyDown(function(jt){Q._onCaseSensitiveKeyDown.fire(jt)})),Q._showOptionButtons&&(Q.inputBox.paddingRight=Q.caseSensitive.width()+Q.wholeWords.width()+Q.regex.width());var Jt=[Q.caseSensitive.domNode,Q.wholeWords.domNode,Q.regex.domNode];Q.onkeydown(Q.domNode,function(jt){if(jt.equals(15)||jt.equals(17)||jt.equals(9)){var hn=Jt.indexOf(document.activeElement);if(hn>=0){var bn=-1;jt.equals(17)?bn=(hn+1)%Jt.length:jt.equals(15)&&(hn===0?bn=Jt.length-1:bn=hn-1),jt.equals(9)?Jt[hn].blur():bn>=0&&Jt[bn].focus(),J.b.stop(jt,!0)}}});var At=document.createElement("div");return At.className="controls",At.style.display=Q._showOptionButtons?"block":"none",At.appendChild(Q.caseSensitive.domNode),At.appendChild(Q.wholeWords.domNode),At.appendChild(Q.regex.domNode),Q.domNode.appendChild(At),X&&X.appendChild(Q.domNode),Q.onkeydown(Q.inputBox.inputElement,function(jt){return Q._onKeyDown.fire(jt)}),Q.onkeyup(Q.inputBox.inputElement,function(jt){return Q._onKeyUp.fire(jt)}),Q.oninput(Q.inputBox.inputElement,function(jt){return Q._onInput.fire()}),Q.onmousedown(Q.inputBox.inputElement,function(jt){return Q._onMouseDown.fire(jt)}),Q}return de.prototype.enable=function(){J.O(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},de.prototype.disable=function(){J.e(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},de.prototype.setFocusInputOnOptionClick=function(X){this.fixFocusOnOptionClickEnabled=X},de.prototype.setEnabled=function(X){X?this.enable():this.disable()},de.prototype.getValue=function(){return this.inputBox.value},de.prototype.setValue=function(X){this.inputBox.value!==X&&(this.inputBox.value=X)},de.prototype.style=function(X){this.inputActiveOptionBorder=X.inputActiveOptionBorder,this.inputActiveOptionBackground=X.inputActiveOptionBackground,this.inputBackground=X.inputBackground,this.inputForeground=X.inputForeground,this.inputBorder=X.inputBorder,this.inputValidationInfoBackground=X.inputValidationInfoBackground,this.inputValidationInfoForeground=X.inputValidationInfoForeground,this.inputValidationInfoBorder=X.inputValidationInfoBorder,this.inputValidationWarningBackground=X.inputValidationWarningBackground,this.inputValidationWarningForeground=X.inputValidationWarningForeground,this.inputValidationWarningBorder=X.inputValidationWarningBorder,this.inputValidationErrorBackground=X.inputValidationErrorBackground,this.inputValidationErrorForeground=X.inputValidationErrorForeground,this.inputValidationErrorBorder=X.inputValidationErrorBorder,this.applyStyles()},de.prototype.applyStyles=function(){if(this.domNode){var X={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(X),this.wholeWords.style(X),this.caseSensitive.style(X);var Ue={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(Ue)}},de.prototype.select=function(){this.inputBox.select()},de.prototype.focus=function(){this.inputBox.focus()},de.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},de.prototype.setCaseSensitive=function(X){this.caseSensitive.checked=X},de.prototype.getWholeWords=function(){return this.wholeWords.checked},de.prototype.setWholeWords=function(X){this.wholeWords.checked=X},de.prototype.getRegex=function(){return this.regex.checked},de.prototype.setRegex=function(X){this.regex.checked=X,this.validate()},de.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},de.prototype.highlightFindOptions=function(){J.O(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,J.e(this.domNode,"highlight-"+this._lastHighlightFindOptions)},de.prototype.validate=function(){this.inputBox.validate()},de.prototype.clearMessage=function(){this.inputBox.hideMessage()},de}(ye.a),On=r("sobA"),Pn=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),Gn=I.a("defaultLabel","input"),Qn=I.a("label.preserveCaseCheckbox","Preserve Case"),Jn=function(Ge){Pn(de,Ge);function de(X){return Ge.call(this,{actionClassName:"codicon-preserve-case",title:Qn+X.appendTitle,isChecked:X.isChecked,inputActiveOptionBorder:X.inputActiveOptionBorder,inputActiveOptionBackground:X.inputActiveOptionBackground})||this}return de}(Ke),gi=function(Ge){Pn(de,Ge);function de(X,Ue,at,et){var Q=Ge.call(this)||this;Q._showOptionButtons=at,Q.fixFocusOnOptionClickEnabled=!0,Q.cachedOptionsWidth=0,Q._onDidOptionChange=Q._register(new tt.a),Q.onDidOptionChange=Q._onDidOptionChange.event,Q._onKeyDown=Q._register(new tt.a),Q.onKeyDown=Q._onKeyDown.event,Q._onMouseDown=Q._register(new tt.a),Q._onInput=Q._register(new tt.a),Q._onKeyUp=Q._register(new tt.a),Q._onPreserveCaseKeyDown=Q._register(new tt.a),Q.onPreserveCaseKeyDown=Q._onPreserveCaseKeyDown.event,Q.contextViewProvider=Ue,Q.placeholder=et.placeholder||"",Q.validation=et.validation,Q.label=et.label||Gn,Q.inputActiveOptionBorder=et.inputActiveOptionBorder,Q.inputActiveOptionBackground=et.inputActiveOptionBackground,Q.inputBackground=et.inputBackground,Q.inputForeground=et.inputForeground,Q.inputBorder=et.inputBorder,Q.inputValidationInfoBorder=et.inputValidationInfoBorder,Q.inputValidationInfoBackground=et.inputValidationInfoBackground,Q.inputValidationInfoForeground=et.inputValidationInfoForeground,Q.inputValidationWarningBorder=et.inputValidationWarningBorder,Q.inputValidationWarningBackground=et.inputValidationWarningBackground,Q.inputValidationWarningForeground=et.inputValidationWarningForeground,Q.inputValidationErrorBorder=et.inputValidationErrorBorder,Q.inputValidationErrorBackground=et.inputValidationErrorBackground,Q.inputValidationErrorForeground=et.inputValidationErrorForeground;var Ce=et.history||[],Oe=!!et.flexibleHeight,it=!!et.flexibleWidth,Qe=et.flexibleMaxHeight;Q.domNode=document.createElement("div"),J.e(Q.domNode,"monaco-findInput"),Q.inputBox=Q._register(new nn(Q.domNode,Q.contextViewProvider,{ariaLabel:Q.label||"",placeholder:Q.placeholder||"",validationOptions:{validation:Q.validation},inputBackground:Q.inputBackground,inputForeground:Q.inputForeground,inputBorder:Q.inputBorder,inputValidationInfoBackground:Q.inputValidationInfoBackground,inputValidationInfoForeground:Q.inputValidationInfoForeground,inputValidationInfoBorder:Q.inputValidationInfoBorder,inputValidationWarningBackground:Q.inputValidationWarningBackground,inputValidationWarningForeground:Q.inputValidationWarningForeground,inputValidationWarningBorder:Q.inputValidationWarningBorder,inputValidationErrorBackground:Q.inputValidationErrorBackground,inputValidationErrorForeground:Q.inputValidationErrorForeground,inputValidationErrorBorder:Q.inputValidationErrorBorder,history:Ce,flexibleHeight:Oe,flexibleWidth:it,flexibleMaxHeight:Qe})),Q.preserveCase=Q._register(new Jn({appendTitle:"",isChecked:!1,inputActiveOptionBorder:Q.inputActiveOptionBorder,inputActiveOptionBackground:Q.inputActiveOptionBackground})),Q._register(Q.preserveCase.onChange(function(Ot){Q._onDidOptionChange.fire(Ot),!Ot&&Q.fixFocusOnOptionClickEnabled&&Q.inputBox.focus(),Q.validate()})),Q._register(Q.preserveCase.onKeyDown(function(Ot){Q._onPreserveCaseKeyDown.fire(Ot)})),Q._showOptionButtons?Q.cachedOptionsWidth=Q.preserveCase.width():Q.cachedOptionsWidth=0;var je=[Q.preserveCase.domNode];Q.onkeydown(Q.domNode,function(Ot){if(Ot.equals(15)||Ot.equals(17)||Ot.equals(9)){var Jt=je.indexOf(document.activeElement);if(Jt>=0){var At=-1;Ot.equals(17)?At=(Jt+1)%je.length:Ot.equals(15)&&(Jt===0?At=je.length-1:At=Jt-1),Ot.equals(9)?je[Jt].blur():At>=0&&je[At].focus(),J.b.stop(Ot,!0)}}});var Ct=document.createElement("div");return Ct.className="controls",Ct.style.display=Q._showOptionButtons?"block":"none",Ct.appendChild(Q.preserveCase.domNode),Q.domNode.appendChild(Ct),X&&X.appendChild(Q.domNode),Q.onkeydown(Q.inputBox.inputElement,function(Ot){return Q._onKeyDown.fire(Ot)}),Q.onkeyup(Q.inputBox.inputElement,function(Ot){return Q._onKeyUp.fire(Ot)}),Q.oninput(Q.inputBox.inputElement,function(Ot){return Q._onInput.fire()}),Q.onmousedown(Q.inputBox.inputElement,function(Ot){return Q._onMouseDown.fire(Ot)}),Q}return de.prototype.enable=function(){J.O(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},de.prototype.disable=function(){J.e(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},de.prototype.setEnabled=function(X){X?this.enable():this.disable()},de.prototype.style=function(X){this.inputActiveOptionBorder=X.inputActiveOptionBorder,this.inputActiveOptionBackground=X.inputActiveOptionBackground,this.inputBackground=X.inputBackground,this.inputForeground=X.inputForeground,this.inputBorder=X.inputBorder,this.inputValidationInfoBackground=X.inputValidationInfoBackground,this.inputValidationInfoForeground=X.inputValidationInfoForeground,this.inputValidationInfoBorder=X.inputValidationInfoBorder,this.inputValidationWarningBackground=X.inputValidationWarningBackground,this.inputValidationWarningForeground=X.inputValidationWarningForeground,this.inputValidationWarningBorder=X.inputValidationWarningBorder,this.inputValidationErrorBackground=X.inputValidationErrorBackground,this.inputValidationErrorForeground=X.inputValidationErrorForeground,this.inputValidationErrorBorder=X.inputValidationErrorBorder,this.applyStyles()},de.prototype.applyStyles=function(){if(this.domNode){var X={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(X);var Ue={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(Ue)}},de.prototype.select=function(){this.inputBox.select()},de.prototype.focus=function(){this.inputBox.focus()},de.prototype.getPreserveCase=function(){return this.preserveCase.checked},de.prototype.setPreserveCase=function(X){this.preserveCase.checked=X},de.prototype.focusOnPreserve=function(){this.preserveCase.focus()},de.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(de.prototype,"width",{set:function(Ue){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=Ue,this.domNode.style.width=Ue+"px"},enumerable:!0,configurable:!0}),de.prototype.dispose=function(){Ge.prototype.dispose.call(this)},de}(ye.a),Kn=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),yi=function(Ge,de,X,Ue){var at=arguments.length,et=at<3?de:Ue===null?Ue=Object.getOwnPropertyDescriptor(de,X):Ue,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")et=Reflect.decorate(Ge,de,X,Ue);else for(var Ce=Ge.length-1;Ce>=0;Ce--)(Q=Ge[Ce])&&(et=(at<3?Q(et):at>3?Q(de,X,et):Q(de,X))||et);return at>3&&et&&Object.defineProperty(de,X,et),et},mi=function(Ge,de){return function(X,Ue){de(X,Ue,Ge)}},vt="historyNavigationWidget",Mt="historyNavigationEnabled";function zt(Ge,de,X){new Ee.d(X,de).bindTo(Ge)}function tn(Ge,de){return Ge.createScoped(de.target)}function Ut(Ge,de){return Ge.getContext(document.activeElement).getValue(de)}function Sn(Ge,de){var X=tn(Ge,de);zt(X,de,vt);var Ue=new Ee.d(Mt,!0).bindTo(X);return{scopedContextKeyService:X,historyNavigationEnablement:Ue}}var Rn=function(Ge){Kn(de,Ge);function de(X,Ue,at,et,Q){Q===void 0&&(Q=!1);var Ce=Ge.call(this,X,Ue,Q,at)||this;return Ce._register(Sn(et,{target:Ce.inputBox.element,historyNavigator:Ce.inputBox}).scopedContextKeyService),Ce}return de=yi([mi(3,Ee.c)],de),de}(En),Bn=function(Ge){Kn(de,Ge);function de(X,Ue,at,et,Q){Q===void 0&&(Q=!1);var Ce=Ge.call(this,X,Ue,Q,at)||this;return Ce._register(Sn(et,{target:Ce.inputBox.element,historyNavigator:Ce.inputBox}).scopedContextKeyService),Ce}return de=yi([mi(3,Ee.c)],de),de}(gi);On.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:Ee.a.and(Ee.a.has(vt),Ee.a.equals(Mt,!0)),primary:16,secondary:[512|16],handler:function(de,X){var Ue=Ut(de.get(Ee.c),vt);if(Ue){var at=Ue.historyNavigator;at.showPreviousValue()}}}),On.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:Ee.a.and(Ee.a.has(vt),Ee.a.equals(Mt,!0)),primary:18,secondary:[512|18],handler:function(de,X){var Ue=Ut(de.get(Ee.c),vt);if(Ue){var at=Ue.historyNavigator;at.showNextValue()}}});var Fn=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),ri=I.a("label.find","Find"),ci=I.a("placeholder.find","Find"),zi=I.a("label.previousMatchButton","Previous match"),oo=I.a("label.nextMatchButton","Next match"),Zn=I.a("label.toggleSelectionFind","Find in selection"),Ii=I.a("label.closeButton","Close"),Si=I.a("label.replace","Replace"),ji=I.a("placeholder.replace","Replace"),Un=I.a("label.replaceButton","Replace"),Ci=I.a("label.replaceAllButton","Replace All"),Wi=I.a("label.toggleReplaceButton","Toggle Replace mode"),Ti=I.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",se),Gi=I.a("label.matchesLocation","{0} of {1}"),Bi=I.a("label.noResults","No Results"),vi=419,qi=275,ro=qi-54,bi=69,Di=33,Xi="ctrlEnterReplaceAll.windows.donotask",lo=Tt.e?256:2048,Mi=function(){function Ge(de){this.afterLineNumber=de,this.heightInPx=Di,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return Ge}();function so(Ge,de,X){var Ue=!!de.match(/\n/);if(X&&Ue&&X.selectionStart>0){Ge.stopPropagation();return}}function Je(Ge,de,X){var Ue=!!de.match(/\n/);if(X&&Ue&&X.selectionEnd<X.value.length){Ge.stopPropagation();return}}var O=function(Ge){Fn(de,Ge);function de(X,Ue,at,et,Q,Ce,Oe,it,Qe){var je=Ge.call(this)||this;return je._cachedHeight=null,je._codeEditor=X,je._controller=Ue,je._state=at,je._contextViewProvider=et,je._keybindingService=Q,je._contextKeyService=Ce,je._storageService=it,je._notificationService=Qe,je._ctrlEnterReplaceAllWarningPrompted=!!it.getBoolean(Xi,0),je._isVisible=!1,je._isReplaceVisible=!1,je._ignoreChangeEvent=!1,je._updateHistoryDelayer=new oe.a(500),je._register(Object(ne.h)(function(){return je._updateHistoryDelayer.cancel()})),je._register(je._state.onFindReplaceStateChange(function(Ct){return je._onStateChanged(Ct)})),je._buildDomNode(),je._updateButtons(),je._tryUpdateWidgetWidth(),je._findInput.inputBox.layout(),je._register(je._codeEditor.onDidChangeConfiguration(function(Ct){if(Ct.hasChanged(68)&&(je._codeEditor.getOption(68)&&je._state.change({isReplaceRevealed:!1},!1),je._updateButtons()),Ct.hasChanged(107)&&je._tryUpdateWidgetWidth(),Ct.hasChanged(2)&&je.updateAccessibilitySupport(),Ct.hasChanged(28)){var Ot=je._codeEditor.getOption(28).addExtraSpaceOnTop;Ot&&!je._viewZone&&(je._viewZone=new Mi(0),je._showViewZone()),!Ot&&je._viewZone&&je._removeViewZone()}})),je.updateAccessibilitySupport(),je._register(je._codeEditor.onDidChangeCursorSelection(function(){je._isVisible&&je._updateToggleSelectionFindButton()})),je._register(je._codeEditor.onDidFocusEditorWidget(function(){if(je._isVisible){var Ct=je._controller.getGlobalBufferTerm();Ct&&Ct!==je._state.searchString&&(je._state.change({searchString:Ct},!0),je._findInput.select())}})),je._findInputFocused=q.bindTo(Ce),je._findFocusTracker=je._register(J.Y(je._findInput.inputBox.inputElement)),je._register(je._findFocusTracker.onDidFocus(function(){je._findInputFocused.set(!0),je._updateSearchScope()})),je._register(je._findFocusTracker.onDidBlur(function(){je._findInputFocused.set(!1)})),je._replaceInputFocused=Z.bindTo(Ce),je._replaceFocusTracker=je._register(J.Y(je._replaceInput.inputBox.inputElement)),je._register(je._replaceFocusTracker.onDidFocus(function(){je._replaceInputFocused.set(!0),je._updateSearchScope()})),je._register(je._replaceFocusTracker.onDidBlur(function(){je._replaceInputFocused.set(!1)})),je._codeEditor.addOverlayWidget(je),je._codeEditor.getOption(28).addExtraSpaceOnTop&&(je._viewZone=new Mi(0)),je._applyTheme(Oe.getTheme()),je._register(Oe.onThemeChange(je._applyTheme.bind(je))),je._register(je._codeEditor.onDidChangeModel(function(){if(!je._isVisible)return;je._viewZoneId=void 0})),je._register(je._codeEditor.onDidScrollChange(function(Ct){if(Ct.scrollTopChanged){je._layoutViewZone();return}setTimeout(function(){je._layoutViewZone()},0)})),je}return de.prototype.getId=function(){return de.ID},de.prototype.getDomNode=function(){return this._domNode},de.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},de.prototype._onStateChanged=function(X){if(X.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(X.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),X.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),X.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(68)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=J.G(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(X.isRevealed||X.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&(this._tryUpdateHeight()&&this._showViewZone()),X.isRegex&&this._findInput.setRegex(this._state.isRegex),X.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),X.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),X.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),X.searchString||X.matchesCount||X.matchesPosition){var Ue=this._state.searchString.length>0&&this._state.matchesCount===0;J.X(this._domNode,"no-results",Ue),this._updateMatchesCount(),this._updateButtons()}(X.searchString||X.currentMatch)&&this._layoutViewZone(),X.updateHistory&&this._delayedUpdateHistory()},de.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},de.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},de.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=bi+"px",this._state.matchesCount>=se?this._matchesCount.title=Ti:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var X;if(this._state.matchesCount>0){var Ue=String(this._state.matchesCount);this._state.matchesCount>=se&&(Ue+="+");var at=String(this._state.matchesPosition);at==="0"&&(at="?"),X=N.r(Gi,at,Ue)}else X=Bi;this._matchesCount.appendChild(document.createTextNode(X)),Object(nt.a)(this._getAriaLabel(X,this._state.currentMatch,this._state.searchString),!0),bi=Math.max(bi,this._matchesCount.clientWidth)},de.prototype._getAriaLabel=function(X,Ue,at){return X===Bi?at===""?I.a("ariaSearchNoResultEmpty","{0} found",X):I.a("ariaSearchNoResult","{0} found for {1}",X,at):Ue?I.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",X,at,Ue.startLineNumber+":"+Ue.startColumn):I.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",X,at)},de.prototype._updateToggleSelectionFindButton=function(){var X=this._codeEditor.getSelection(),Ue=X?X.startLineNumber!==X.endLineNumber||X.startColumn!==X.endColumn:!1,at=this._toggleSelectionFind.checked;this._isVisible&&(at||Ue)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},de.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var X=this._state.searchString.length>0,Ue=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&X&&Ue),this._nextBtn.setEnabled(this._isVisible&&X&&Ue),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&X),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&X),J.X(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var at=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&at)},de.prototype._reveal=function(){var X=this;if(!this._isVisible){this._isVisible=!0;var Ue=this._codeEditor.getSelection();switch(this._codeEditor.getOption(28).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var at=!!Ue&&Ue.startLineNumber!==Ue.endLineNumber;this._toggleSelectionFind.checked=at;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){J.e(X._domNode,"visible"),X._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){X._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var et=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&Ue){var Q=this._codeEditor.getDomNode();if(Q){var Ce=J.B(Q),Oe=this._codeEditor.getScrolledVisiblePosition(Ue.getStartPosition()),it=Ce.left+(Oe?Oe.left:0),Qe=Oe?Oe.top:0;if(this._viewZone&&Qe<this._viewZone.heightInPx){Ue.endLineNumber>Ue.startLineNumber&&(et=!1);var je=J.E(this._domNode).left;it>je&&(et=!1);var Ct=this._codeEditor.getScrolledVisiblePosition(Ue.getEndPosition()),Ot=Ce.left+(Ct?Ct.left:0);Ot>je&&(et=!1)}}}this._showViewZone(et)}},de.prototype._hide=function(X){this._isVisible&&(this._isVisible=!1,this._updateButtons(),J.O(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),X&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},de.prototype._layoutViewZone=function(){var X=this,Ue=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!Ue){this._removeViewZone();return}if(!this._isVisible)return;var at=this._viewZone;if(this._viewZoneId!==void 0||!at)return;this._codeEditor.changeViewZones(function(et){at.heightInPx=X._getHeight(),X._viewZoneId=et.addZone(at),X._codeEditor.setScrollTop(X._codeEditor.getScrollTop()+at.heightInPx)})},de.prototype._showViewZone=function(X){var Ue=this;if(X===void 0&&(X=!0),!this._isVisible)return;var at=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!at)return;this._viewZone===void 0&&(this._viewZone=new Mi(0));var et=this._viewZone;this._codeEditor.changeViewZones(function(Q){if(Ue._viewZoneId!==void 0){var Ce=Ue._getHeight();if(Ce===et.heightInPx)return;var Oe=Ce-et.heightInPx;et.heightInPx=Ce,Q.layoutZone(Ue._viewZoneId),X&&Ue._codeEditor.setScrollTop(Ue._codeEditor.getScrollTop()+Oe);return}else{var Oe=Ue._getHeight();et.heightInPx=Oe,Ue._viewZoneId=Q.addZone(et),X&&Ue._codeEditor.setScrollTop(Ue._codeEditor.getScrollTop()+Oe)}})},de.prototype._removeViewZone=function(){var X=this;this._codeEditor.changeViewZones(function(Ue){X._viewZoneId!==void 0&&(Ue.removeZone(X._viewZoneId),X._viewZoneId=void 0,X._viewZone&&(X._codeEditor.setScrollTop(X._codeEditor.getScrollTop()-X._viewZone.heightInPx),X._viewZone=void 0))})},de.prototype._applyTheme=function(X){var Ue={inputActiveOptionBorder:X.getColor(A.X),inputActiveOptionBackground:X.getColor(A.W),inputBackground:X.getColor(A.Y),inputForeground:X.getColor(A.ab),inputBorder:X.getColor(A.Z),inputValidationInfoBackground:X.getColor(A.eb),inputValidationInfoForeground:X.getColor(A.gb),inputValidationInfoBorder:X.getColor(A.fb),inputValidationWarningBackground:X.getColor(A.hb),inputValidationWarningForeground:X.getColor(A.jb),inputValidationWarningBorder:X.getColor(A.ib),inputValidationErrorBackground:X.getColor(A.bb),inputValidationErrorForeground:X.getColor(A.db),inputValidationErrorBorder:X.getColor(A.cb)};this._findInput.style(Ue),this._replaceInput.style(Ue),this._toggleSelectionFind.style(Ue)},de.prototype._tryUpdateWidgetWidth=function(){if(!this._isVisible)return;if(!J.L(this._domNode))return;var X=this._codeEditor.getLayoutInfo(),Ue=X.contentWidth;if(Ue<=0){J.e(this._domNode,"hiddenEditor");return}else J.H(this._domNode,"hiddenEditor")&&J.O(this._domNode,"hiddenEditor");var at=X.width,et=X.minimapWidth,Q=!1,Ce=!1,Oe=!1;if(this._resized){var it=J.G(this._domNode);if(it>vi){this._domNode.style.maxWidth=at-28-et-15+"px",this._replaceInput.width=J.G(this._findInput.domNode);return}}if(vi+28+et>=at&&(Ce=!0),vi+28+et-bi>=at&&(Oe=!0),vi+28+et-bi>=at+50&&(Q=!0),J.X(this._domNode,"collapsed-find-widget",Q),J.X(this._domNode,"narrow-find-widget",Oe),J.X(this._domNode,"reduced-find-widget",Ce),!Oe&&!Q&&(this._domNode.style.maxWidth=at-28-et-15+"px"),this._resized){this._findInput.inputBox.layout();var Qe=this._findInput.inputBox.element.clientWidth;Qe>0&&(this._replaceInput.width=Qe)}else this._isReplaceVisible&&(this._replaceInput.width=J.G(this._findInput.domNode))},de.prototype._getHeight=function(){var X=0;return X+=4,X+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(X+=4,X+=this._replaceInput.inputBox.height+2),X+=4,X},de.prototype._tryUpdateHeight=function(){var X=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===X?!1:(this._cachedHeight=X,this._domNode.style.height=X+"px",!0)},de.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},de.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},de.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},de.prototype._updateSearchScope=function(){if(!this._codeEditor.hasModel())return;if(this._toggleSelectionFind.checked){var X=this._codeEditor.getSelection();X.endColumn===1&&X.endLineNumber>X.startLineNumber&&(X=X.setEndPosition(X.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(X.endLineNumber-1)));var Ue=this._state.currentMatch;X.startLineNumber!==X.endLineNumber&&(R.a.equalsRange(X,Ue)||this._state.change({searchScope:X},!0))}},de.prototype._onFindInputMouseDown=function(X){X.middleButton&&X.stopPropagation()},de.prototype._onFindInputKeyDown=function(X){if(X.equals(lo|3)){this._findInput.inputBox.insertAtCursor(`
|
|
`),X.preventDefault();return}if(X.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),X.preventDefault();return}if(X.equals(2048|18)){this._codeEditor.focus(),X.preventDefault();return}if(X.equals(16))return so(X,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(X.equals(18))return Je(X,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))},de.prototype._onReplaceInputKeyDown=function(X){if(X.equals(lo|3)){Tt.h&&Tt.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(I.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Xi,!0,0)),this._replaceInput.inputBox.insertAtCursor(`
|
|
`),X.preventDefault();return}if(X.equals(2)){this._findInput.focusOnCaseSensitive(),X.preventDefault();return}if(X.equals(1024|2)){this._findInput.focus(),X.preventDefault();return}if(X.equals(2048|18)){this._codeEditor.focus(),X.preventDefault();return}if(X.equals(16))return so(X,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(X.equals(18))return Je(X,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))},de.prototype.getHorizontalSashTop=function(X){return 0},de.prototype.getHorizontalSashLeft=function(X){return 0},de.prototype.getHorizontalSashWidth=function(X){return 500},de.prototype._keybindingLabelFor=function(X){var Ue=this._keybindingService.lookupKeybinding(X);return Ue?" ("+Ue.getLabel()+")":""},de.prototype._buildDomNode=function(){var X=this,Ue=!0,at=!0;this._findInput=this._register(new Rn(null,this._contextViewProvider,{width:ro,label:ri,placeholder:ci,appendCaseSensitiveLabel:this._keybindingLabelFor(ue.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(ue.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(ue.ToggleRegexCommand),validation:function(je){if(je.length===0||!X._findInput.getRegex())return null;try{return new RegExp(je),null}catch(Ct){return{content:Ct.message}}},flexibleHeight:Ue,flexibleWidth:at,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(function(Qe){return X._onFindInputKeyDown(Qe)})),this._register(this._findInput.inputBox.onDidChange(function(){if(X._ignoreChangeEvent)return;X._state.change({searchString:X._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){X._state.change({isRegex:X._findInput.getRegex(),wholeWord:X._findInput.getWholeWords(),matchCase:X._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(Qe){Qe.equals(1024|2)&&(X._isReplaceVisible&&(X._replaceInput.focus(),Qe.preventDefault()))})),this._register(this._findInput.onRegexKeyDown(function(Qe){Qe.equals(2)&&(X._isReplaceVisible&&(X._replaceInput.focusOnPreserve(),Qe.preventDefault()))})),this._register(this._findInput.inputBox.onDidHeightChange(function(Qe){X._tryUpdateHeight()&&X._showViewZone()})),Tt.d&&this._register(this._findInput.onMouseDown(function(Qe){return X._onFindInputMouseDown(Qe)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new T({label:zi+this._keybindingLabelFor(ue.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){X._codeEditor.getAction(ue.PreviousMatchFindAction).run().then(void 0,Rt.e)}})),this._nextBtn=this._register(new T({label:oo+this._keybindingLabelFor(ue.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){X._codeEditor.getAction(ue.NextMatchFindAction).run().then(void 0,Rt.e)}}));var et=document.createElement("div");et.className="find-part",et.appendChild(this._findInput.domNode);var Q=document.createElement("div");Q.className="find-actions",et.appendChild(Q),Q.appendChild(this._matchesCount),Q.appendChild(this._prevBtn.domNode),Q.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new Ke({actionClassName:"codicon codicon-selection",title:Zn+this._keybindingLabelFor(ue.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(function(){if(X._toggleSelectionFind.checked){if(X._codeEditor.hasModel()){var Qe=X._codeEditor.getSelection();Qe.endColumn===1&&Qe.endLineNumber>Qe.startLineNumber&&(Qe=Qe.setEndPosition(Qe.endLineNumber-1,X._codeEditor.getModel().getLineMaxColumn(Qe.endLineNumber-1))),Qe.isEmpty()||X._state.change({searchScope:Qe},!0)}}else X._state.change({searchScope:null},!0)})),Q.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new T({label:Ii+this._keybindingLabelFor(ue.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){X._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(je){je.equals(2)&&(X._isReplaceVisible&&(X._replaceBtn.isEnabled()?X._replaceBtn.focus():X._codeEditor.focus(),je.preventDefault()))}})),Q.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Bn(null,void 0,{label:Si,placeholder:ji,history:[],flexibleHeight:Ue,flexibleWidth:at,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(function(Qe){return X._onReplaceInputKeyDown(Qe)})),this._register(this._replaceInput.inputBox.onDidChange(function(){X._state.change({replaceString:X._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(function(Qe){X._isReplaceVisible&&X._tryUpdateHeight()&&X._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(function(){X._state.change({preserveCase:X._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(function(Qe){Qe.equals(2)&&(X._prevBtn.isEnabled()?X._prevBtn.focus():X._nextBtn.isEnabled()?X._nextBtn.focus():X._toggleSelectionFind.enabled?X._toggleSelectionFind.focus():X._closeBtn.isEnabled()&&X._closeBtn.focus(),Qe.preventDefault())})),this._replaceBtn=this._register(new T({label:Un+this._keybindingLabelFor(ue.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){X._controller.replace()},onKeyDown:function(je){je.equals(1024|2)&&(X._closeBtn.focus(),je.preventDefault())}})),this._replaceAllBtn=this._register(new T({label:Ci+this._keybindingLabelFor(ue.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){X._controller.replaceAll()}}));var Ce=document.createElement("div");Ce.className="replace-part",Ce.appendChild(this._replaceInput.domNode);var Oe=document.createElement("div");Oe.className="replace-actions",Ce.appendChild(Oe),Oe.appendChild(this._replaceBtn.domNode),Oe.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new T({label:Wi,className:"codicon toggle left",onTrigger:function(){X._state.change({isReplaceRevealed:!X._isReplaceVisible},!1),X._isReplaceVisible&&(X._replaceInput.width=J.G(X._findInput.domNode),X._replaceInput.inputBox.layout()),X._showViewZone()}})),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=vi+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(et),this._domNode.appendChild(Ce),this._resizeSash=new Et.a(this._domNode,this,{orientation:0}),this._resized=!1;var it=vi;this._register(this._resizeSash.onDidStart(function(){it=J.G(X._domNode)})),this._register(this._resizeSash.onDidChange(function(Qe){X._resized=!0;var je=it+Qe.startX-Qe.currentX;if(je<vi)return;var Ct=parseFloat(J.y(X._domNode).maxWidth)||0;if(je>Ct)return;X._domNode.style.width=je+"px",X._isReplaceVisible&&(X._replaceInput.width=J.G(X._findInput.domNode)),X._findInput.inputBox.layout(),X._tryUpdateHeight()})),this._register(this._resizeSash.onDidReset(function(){var Qe=J.G(X._domNode);if(Qe<vi)return;var je=vi;if(!X._resized||Qe===vi){var Ct=X._codeEditor.getLayoutInfo();je=Ct.width-28-Ct.minimapWidth-15,X._resized=!0}X._domNode.style.width=je+"px",X._isReplaceVisible&&(X._replaceInput.width=J.G(X._findInput.domNode)),X._findInput.inputBox.layout()}))},de.prototype.updateAccessibilitySupport=function(){var X=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(X!==2)},de.ID="editor.contrib.findWidget",de}(ye.a),T=function(Ge){Fn(de,Ge);function de(X){var Ue=Ge.call(this)||this;return Ue._opts=X,Ue._domNode=document.createElement("div"),Ue._domNode.title=Ue._opts.label,Ue._domNode.tabIndex=0,Ue._domNode.className="button "+Ue._opts.className,Ue._domNode.setAttribute("role","button"),Ue._domNode.setAttribute("aria-label",Ue._opts.label),Ue.onclick(Ue._domNode,function(at){Ue._opts.onTrigger(),at.preventDefault()}),Ue.onkeydown(Ue._domNode,function(at){if(at.equals(10)||at.equals(3)){Ue._opts.onTrigger(),at.preventDefault();return}Ue._opts.onKeyDown&&Ue._opts.onKeyDown(at)}),Ue}return Object.defineProperty(de.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),de.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},de.prototype.focus=function(){this._domNode.focus()},de.prototype.setEnabled=function(X){J.X(this._domNode,"disabled",!X),this._domNode.setAttribute("aria-disabled",String(!X)),this._domNode.tabIndex=X?0:-1},de.prototype.setExpanded=function(X){this._domNode.setAttribute("aria-expanded",String(!!X))},de.prototype.toggleClass=function(X,Ue){J.X(this._domNode,X,Ue)},de}(ye.a);Object(te.e)(function(Ge,de){var X=function(At,jt){jt&&de.addRule(".monaco-editor "+At+" { background-color: "+jt+"; }")};X(".findMatch",Ge.getColor(A.t)),X(".currentFindMatch",Ge.getColor(A.r)),X(".findScope",Ge.getColor(A.v));var Ue=Ge.getColor(A.P);X(".find-widget",Ue);var at=Ge.getColor(A.fc);at&&de.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+at+"; }");var et=Ge.getColor(A.u);et&&de.addRule(".monaco-editor .findMatch { border: 1px "+(Ge.type==="hc"?"dotted":"solid")+" "+et+"; box-sizing: border-box; }");var Q=Ge.getColor(A.s);Q&&de.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+Q+"; padding: 1px; box-sizing: border-box; }");var Ce=Ge.getColor(A.w);Ce&&de.addRule(".monaco-editor .findScope { border: 1px "+(Ge.type==="hc"?"dashed":"solid")+" "+Ce+"; }");var Oe=Ge.getColor(A.e);Oe&&de.addRule(".monaco-editor .find-widget { border: 1px solid "+Oe+"; }");var it=Ge.getColor(A.R);it&&de.addRule(".monaco-editor .find-widget { color: "+it+"; }");var Qe=Ge.getColor(A.T);Qe&&de.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+Qe+"; }");var je=Ge.getColor(A.S);if(je)de.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+je+"; width: 3px !important; margin-left: -4px;}");else{var Ct=Ge.getColor(A.Q);Ct&&de.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+Ct+"; width: 3px !important; margin-left: -4px;}")}var Ot=Ge.getColor(A.U);Ot&&de.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+Ot+"; }")});var Y=r("0ytw"),De=r("sjWa"),Re=r("PoD0"),We=r("Qr/v"),ft=r("41id"),lt=r("Ym/J"),yt=function(){var Ge=function(X,Ue){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,et){at.__proto__=et}||function(at,et){for(var Q in et)et.hasOwnProperty(Q)&&(at[Q]=et[Q])},Ge(X,Ue)};return function(de,X){Ge(de,X);function Ue(){this.constructor=de}de.prototype=X===null?Object.create(X):(Ue.prototype=X.prototype,new Ue)}}(),xt=function(Ge,de,X,Ue){var at=arguments.length,et=at<3?de:Ue===null?Ue=Object.getOwnPropertyDescriptor(de,X):Ue,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")et=Reflect.decorate(Ge,de,X,Ue);else for(var Ce=Ge.length-1;Ce>=0;Ce--)(Q=Ge[Ce])&&(et=(at<3?Q(et):at>3?Q(de,X,et):Q(de,X))||et);return at>3&&et&&Object.defineProperty(de,X,et),et},It=function(Ge,de){return function(X,Ue){de(X,Ue,Ge)}},kt=524288;function Yt(Ge){if(!Ge.hasModel())return null;var de=Ge.getSelection();if(de.startLineNumber===de.endLineNumber){if(de.isEmpty()){var X=Ge.getModel().getWordAtPosition(de.getStartPosition());if(X)return X.word}else if(Ge.getModel().getValueLengthInRange(de)<kt)return Ge.getModel().getValueInRange(de)}return null}var Zt=function(Ge){yt(de,Ge);function de(X,Ue,at,et){var Q=Ge.call(this)||this;return Q._editor=X,Q._findWidgetVisible=Se.bindTo(Ue),Q._contextKeyService=Ue,Q._storageService=at,Q._clipboardService=et,Q._updateHistoryDelayer=new oe.a(500),Q._state=Q._register(new Ie),Q.loadQueryState(),Q._register(Q._state.onFindReplaceStateChange(function(Ce){return Q._onStateChanged(Ce)})),Q._model=null,Q._register(Q._editor.onDidChangeModel(function(){var Ce=Q._editor.getModel()&&Q._state.isRevealed;Q.disposeModel(),Q._state.change({searchScope:null,matchCase:Q._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:Q._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:Q._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:Q._storageService.getBoolean("editor.preserveCase",1,!1)},!1),Ce&&Q._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})})),Q}return de.get=function(X){return X.getContribution(de.ID)},de.prototype.dispose=function(){this.disposeModel(),Ge.prototype.dispose.call(this)},de.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},de.prototype._onStateChanged=function(X){this.saveQueryState(X),X.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),X.searchString&&this.setGlobalBufferTerm(this._state.searchString)},de.prototype.saveQueryState=function(X){X.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),X.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),X.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),X.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},de.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)},de.prototype.isFindInputFocused=function(){return!!q.getValue(this._contextKeyService)},de.prototype.getState=function(){return this._state},de.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},de.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},de.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},de.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},de.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var X=this._editor.getSelection();X.endColumn===1&&X.endLineNumber>X.startLineNumber&&(X=X.setEndPosition(X.endLineNumber-1,this._editor.getModel().getLineMaxColumn(X.endLineNumber-1))),X.isEmpty()||this._state.change({searchScope:X},!0)}},de.prototype.setSearchString=function(X){this._state.isRegex&&(X=N.p(X)),this._state.change({searchString:X},!1)},de.prototype.highlightFindOptions=function(){},de.prototype._start=function(X){if(this.disposeModel(),!this._editor.hasModel())return;var Ue={isRevealed:!0};if(X.seedSearchStringFromSelection){var at=Yt(this._editor);at&&(this._state.isRegex?Ue.searchString=N.p(at):Ue.searchString=at)}if(!Ue.searchString&&X.seedSearchStringFromGlobalClipboard){var at=this.getGlobalBufferTerm();at&&(Ue.searchString=at)}if(X.forceRevealReplace?Ue.isReplaceRevealed=!0:this._findWidgetVisible.get()||(Ue.isReplaceRevealed=!1),X.updateSearchScope){var et=this._editor.getSelection();et.isEmpty()||(Ue.searchScope=et)}this._state.change(Ue,!1),this._model||(this._model=new ie(this._editor,this._state))},de.prototype.start=function(X){this._start(X)},de.prototype.moveToNextMatch=function(){return this._model?(this._model.moveToNextMatch(),!0):!1},de.prototype.moveToPrevMatch=function(){return this._model?(this._model.moveToPrevMatch(),!0):!1},de.prototype.replace=function(){return this._model?(this._model.replace(),!0):!1},de.prototype.replaceAll=function(){return this._model?(this._model.replaceAll(),!0):!1},de.prototype.selectAllMatches=function(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1},de.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},de.prototype.setGlobalBufferTerm=function(X){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(X)},de.ID="editor.contrib.findController",de=xt([It(1,Ee.c),It(2,ft.a),It(3,Y.a)],de),de}(ne.a),dn=function(Ge){yt(de,Ge);function de(X,Ue,at,et,Q,Ce,Oe,it){var Qe=Ge.call(this,X,at,Oe,it)||this;return Qe._contextViewService=Ue,Qe._keybindingService=et,Qe._themeService=Q,Qe._notificationService=Ce,Qe._widget=null,Qe._findOptionsWidget=null,Qe}return de.prototype._start=function(X){this._widget||this._createFindWidget();var Ue=this._editor.getSelection(),at=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":at=!0;break;case"never":at=!1;break;case"multiline":var et=!!Ue&&Ue.startLineNumber!==Ue.endLineNumber;at=et;break;default:break}X.updateSearchScope=at,Ge.prototype._start.call(this,X),X.shouldFocus===2?this._widget.focusReplaceInput():X.shouldFocus===1&&this._widget.focusFindInput()},de.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},de.prototype._createFindWidget=function(){this._widget=this._register(new O(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new Pe(this._editor,this._state,this._keybindingService,this._themeService))},de=xt([It(1,De.b),It(2,Ee.c),It(3,We.a),It(4,te.c),It(5,lt.a),It(6,ft.a),It(7,Object(Re.d)(Y.a))],de),de}(Zt),fn=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.StartFindAction,label:I.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|36,weight:100},menuOpts:{menuId:17,group:"3_find",title:I.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return de.prototype.run=function(X,Ue){var at=Zt.get(Ue);at&&at.start({forceRevealReplace:!1,seedSearchStringFromSelection:Ue.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:Ue.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},de}(F.b),An=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.StartFindWithSelection,label:I.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2048|35},weight:100}})||this}return de.prototype.run=function(X,Ue){var at=Zt.get(Ue);at&&(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),at.setGlobalBufferTerm(at.getState().searchString))},de}(F.b),gn=function(Ge){yt(de,Ge);function de(){return Ge!==null&&Ge.apply(this,arguments)||this}return de.prototype.run=function(X,Ue){var at=Zt.get(Ue);at&&!this._run(at)&&(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:at.getState().searchString.length===0&&Ue.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(at))},de}(F.b),Mn=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.NextMatchFindAction,label:I.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:61,mac:{primary:2048|37,secondary:[61]},weight:100}})||this}return de.prototype._run=function(X){return X.moveToNextMatch()},de}(gn),xn=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.NextMatchFindAction,label:I.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:Ee.a.and(U.a.focus,q),primary:3,weight:100}})||this}return de.prototype._run=function(X){return X.moveToNextMatch()},de}(gn),Le=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.PreviousMatchFindAction,label:I.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:1024|61,mac:{primary:2048|1024|37,secondary:[1024|61]},weight:100}})||this}return de.prototype._run=function(X){return X.moveToPrevMatch()},de}(gn),W=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.PreviousMatchFindAction,label:I.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:Ee.a.and(U.a.focus,q),primary:1024|3,weight:100}})||this}return de.prototype._run=function(X){return X.moveToPrevMatch()},de}(gn),ae=function(Ge){yt(de,Ge);function de(){return Ge!==null&&Ge.apply(this,arguments)||this}return de.prototype.run=function(X,Ue){var at=Zt.get(Ue);if(!at)return;var et=Yt(Ue);et&&at.setSearchString(et),this._run(at)||(at.start({forceRevealReplace:!1,seedSearchStringFromSelection:Ue.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(at))},de}(F.b),Fe=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.NextSelectionMatchFindAction,label:I.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:2048|61,weight:100}})||this}return de.prototype._run=function(X){return X.moveToNextMatch()},de}(ae),qe=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.PreviousSelectionMatchFindAction,label:I.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:U.a.focus,primary:2048|1024|61,weight:100}})||this}return de.prototype._run=function(X){return X.moveToPrevMatch()},de}(ae),ct=function(Ge){yt(de,Ge);function de(){return Ge.call(this,{id:ue.StartFindReplaceAction,label:I.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|38,mac:{primary:2048|512|36},weight:100},menuOpts:{menuId:17,group:"3_find",title:I.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return de.prototype.run=function(X,Ue){if(!Ue.hasModel()||Ue.getOption(68))return;var at=Zt.get(Ue),et=Ue.getSelection(),Q=at.isFindInputFocused(),Ce=!et.isEmpty()&&et.startLineNumber===et.endLineNumber&&Ue.getOption(28).seedSearchStringFromSelection&&!Q,Oe=Q||Ce?2:1;at&&at.start({forceRevealReplace:!0,seedSearchStringFromSelection:Ce,seedSearchStringFromGlobalClipboard:Ue.getOption(28).seedSearchStringFromSelection,shouldFocus:Oe,shouldAnimate:!0,updateSearchScope:!1})},de}(F.b);Object(F.h)(Zt.ID,dn),Object(F.f)(fn),Object(F.f)(An),Object(F.f)(Mn),Object(F.f)(xn),Object(F.f)(Le),Object(F.f)(W),Object(F.f)(Fe),Object(F.f)(qe),Object(F.f)(ct);var St=F.c.bindToContribution(Zt.get);Object(F.g)(new St({id:ue.CloseFindWidgetCommand,precondition:Se,handler:function(de){return de.closeFindWidget()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:9,secondary:[1024|9]}})),Object(F.g)(new St({id:ue.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(de){return de.toggleCaseSensitive()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:ce.primary,mac:ce.mac,win:ce.win,linux:ce.linux}})),Object(F.g)(new St({id:ue.ToggleWholeWordCommand,precondition:void 0,handler:function(de){return de.toggleWholeWords()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:Me.primary,mac:Me.mac,win:Me.win,linux:Me.linux}})),Object(F.g)(new St({id:ue.ToggleRegexCommand,precondition:void 0,handler:function(de){return de.toggleRegex()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:Ve.primary,mac:Ve.mac,win:Ve.win,linux:Ve.linux}})),Object(F.g)(new St({id:ue.ToggleSearchScopeCommand,precondition:void 0,handler:function(de){return de.toggleSearchScope()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:_e.primary,mac:_e.mac,win:_e.win,linux:_e.linux}})),Object(F.g)(new St({id:ue.ReplaceOneAction,precondition:Se,handler:function(de){return de.replace()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:2048|1024|22}})),Object(F.g)(new St({id:ue.ReplaceOneAction,precondition:Se,handler:function(de){return de.replace()},kbOpts:{weight:100+5,kbExpr:Ee.a.and(U.a.focus,Z),primary:3}})),Object(F.g)(new St({id:ue.ReplaceAllAction,precondition:Se,handler:function(de){return de.replaceAll()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:2048|512|3}})),Object(F.g)(new St({id:ue.ReplaceAllAction,precondition:Se,handler:function(de){return de.replaceAll()},kbOpts:{weight:100+5,kbExpr:Ee.a.and(U.a.focus,Z),primary:void 0,mac:{primary:2048|3}}})),Object(F.g)(new St({id:ue.SelectAllMatchesAction,precondition:Se,handler:function(de){return de.selectAllMatches()},kbOpts:{weight:100+5,kbExpr:U.a.focus,primary:512|3}}))},AMt9:function(wt,P,r){"use strict";r.d(P,"a",function(){return j});var I=r("fF8p"),oe=r("/RM0"),ne=r("oBNp"),N=r("bN5T"),F=r("3HcJ"),U=function(){var G=function(E,x){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var A in D)D.hasOwnProperty(A)&&(K[A]=D[A])},G(E,x)};return function(R,E){G(R,E);function x(){this.constructor=R}R.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}}(),j=function(G){U(R,G);function R(){return G!==null&&G.apply(this,arguments)||this}return R.prototype.onclick=function(E,x){this._register(I.i(E,I.c.CLICK,function(K){return x(new ne.a(K))}))},R.prototype.onmousedown=function(E,x){this._register(I.i(E,I.c.MOUSE_DOWN,function(K){return x(new ne.a(K))}))},R.prototype.onmouseover=function(E,x){this._register(I.i(E,I.c.MOUSE_OVER,function(K){return x(new ne.a(K))}))},R.prototype.onnonbubblingmouseout=function(E,x){this._register(I.j(E,function(K){return x(new ne.a(K))}))},R.prototype.onkeydown=function(E,x){this._register(I.i(E,I.c.KEY_DOWN,function(K){return x(new oe.a(K))}))},R.prototype.onkeyup=function(E,x){this._register(I.i(E,I.c.KEY_UP,function(K){return x(new oe.a(K))}))},R.prototype.oninput=function(E,x){this._register(I.i(E,I.c.INPUT,x))},R.prototype.onblur=function(E,x){this._register(I.i(E,I.c.BLUR,x))},R.prototype.onfocus=function(E,x){this._register(I.i(E,I.c.FOCUS,x))},R.prototype.ignoreGesture=function(E){F.b.ignoreTarget(E)},R}(N.a)},ARnQ:function(wt,P,r){"use strict";(function(I){r.d(P,"a",function(){return N}),r.d(P,"b",function(){return F}),r.d(P,"c",function(){return U});var oe=r("S7i+"),ne=typeof I=="undefined"?{cwd:function(){return"/"},env:Object.create(null),get platform(){return oe.h?"win32":oe.e?"darwin":"linux"},nextTick:function(G){return Object(oe.i)(G)}}:I,N=ne.cwd,F=ne.env,U=ne.platform}).call(this,r("7vYp"))},ATqw:function(wt,P,r){"use strict";r.d(P,"a",function(){return F});var I=r("3NxR"),oe=function(){var U=function(G,R){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var K in x)x.hasOwnProperty(K)&&(E[K]=x[K])},U(G,R)};return function(j,G){U(j,G);function R(){this.constructor=j}j.prototype=G===null?Object.create(G):(R.prototype=G.prototype,new R)}}(),ne=function(U){oe(j,U);function j(G){for(var R=U.call(this,0)||this,E=0,x=G.length;E<x;E++)R.set(G.charCodeAt(E),2);return R.set(32,1),R.set(9,1),R}return j}(I.a);function N(U){var j={};return function(G){return j.hasOwnProperty(G)||(j[G]=U(G)),j[G]}}var F=N(function(U){return new ne(U)})},AhSp:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("textModelService")},AyeG:function(wt,P,r){"use strict";r.d(P,"b",function(){return _e}),r.d(P,"c",function(){return ue}),r.d(P,"a",function(){return se});var I=r("sY7j"),oe=r("mTMv"),ne=r("fF8p"),N=r("6+xD"),F=r("oBNp"),U=r("pfH9"),j=r("AMt9"),G=r("dE3Z"),R=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,tt){ze.__proto__=tt}||function(ze,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(ze[_t]=tt[_t])},ie(me,ye)};return function(J,me){ie(J,me);function ye(){this.constructor=J}J.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),E=11,x=function(ie){R(J,ie);function J(me){var ye=ie.call(this)||this;return ye._onActivate=me.onActivate,ye.bgDomNode=document.createElement("div"),ye.bgDomNode.className="arrow-background",ye.bgDomNode.style.position="absolute",ye.bgDomNode.style.width=me.bgWidth+"px",ye.bgDomNode.style.height=me.bgHeight+"px",typeof me.top!="undefined"&&(ye.bgDomNode.style.top="0px"),typeof me.left!="undefined"&&(ye.bgDomNode.style.left="0px"),typeof me.bottom!="undefined"&&(ye.bgDomNode.style.bottom="0px"),typeof me.right!="undefined"&&(ye.bgDomNode.style.right="0px"),ye.domNode=document.createElement("div"),ye.domNode.className=me.className,ye.domNode.style.position="absolute",ye.domNode.style.width=E+"px",ye.domNode.style.height=E+"px",typeof me.top!="undefined"&&(ye.domNode.style.top=me.top+"px"),typeof me.left!="undefined"&&(ye.domNode.style.left=me.left+"px"),typeof me.bottom!="undefined"&&(ye.domNode.style.bottom=me.bottom+"px"),typeof me.right!="undefined"&&(ye.domNode.style.right=me.right+"px"),ye._mouseMoveMonitor=ye._register(new U.a),ye.onmousedown(ye.bgDomNode,function(ze){return ye._arrowMouseDown(ze)}),ye.onmousedown(ye.domNode,function(ze){return ye._arrowMouseDown(ze)}),ye._mousedownRepeatTimer=ye._register(new G.c),ye._mousedownScheduleRepeatTimer=ye._register(new G.e),ye}return J.prototype._arrowMouseDown=function(me){var ye=this,ze=function(){ye._mousedownRepeatTimer.cancelAndSet(function(){return ye._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(ze,200),this._mouseMoveMonitor.startMonitoring(me.target,me.buttons,U.b,function(tt){},function(){ye._mousedownRepeatTimer.cancel(),ye._mousedownScheduleRepeatTimer.cancel()}),me.preventDefault()},J}(j.a),K=r("bN5T"),D=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,tt){ze.__proto__=tt}||function(ze,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(ze[_t]=tt[_t])},ie(me,ye)};return function(J,me){ie(J,me);function ye(){this.constructor=J}J.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),A=function(ie){D(J,ie);function J(me,ye,ze){var tt=ie.call(this)||this;return tt._visibility=me,tt._visibleClassName=ye,tt._invisibleClassName=ze,tt._domNode=null,tt._isVisible=!1,tt._isNeeded=!1,tt._shouldBeVisible=!1,tt._revealTimer=tt._register(new G.e),tt}return J.prototype.applyVisibilitySetting=function(me){return this._visibility===2?!1:this._visibility===3?!0:me},J.prototype.setShouldBeVisible=function(me){var ye=this.applyVisibilitySetting(me);this._shouldBeVisible!==ye&&(this._shouldBeVisible=ye,this.ensureVisibility())},J.prototype.setIsNeeded=function(me){this._isNeeded!==me&&(this._isNeeded=me,this.ensureVisibility())},J.prototype.setDomNode=function(me){this._domNode=me,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},J.prototype.ensureVisibility=function(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)},J.prototype._reveal=function(){var me=this;if(this._isVisible)return;this._isVisible=!0,this._revealTimer.setIfNotSet(function(){me._domNode&&me._domNode.setClassName(me._visibleClassName)},0)},J.prototype._hide=function(me){if(this._revealTimer.cancel(),!this._isVisible)return;this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(me?" fade":""))},J}(K.a),te=r("S7i+"),z=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,tt){ze.__proto__=tt}||function(ze,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(ze[_t]=tt[_t])},ie(me,ye)};return function(J,me){ie(J,me);function ye(){this.constructor=J}J.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),_=140,f=function(ie){z(J,ie);function J(me){var ye=ie.call(this)||this;return ye._lazyRender=me.lazyRender,ye._host=me.host,ye._scrollable=me.scrollable,ye._scrollbarState=me.scrollbarState,ye._visibilityController=ye._register(new A(me.visibility,"visible scrollbar "+me.extraScrollbarClassName,"invisible scrollbar "+me.extraScrollbarClassName)),ye._visibilityController.setIsNeeded(ye._scrollbarState.isNeeded()),ye._mouseMoveMonitor=ye._register(new U.a),ye._shouldRender=!0,ye.domNode=Object(N.b)(document.createElement("div")),ye.domNode.setAttribute("role","presentation"),ye.domNode.setAttribute("aria-hidden","true"),ye._visibilityController.setDomNode(ye.domNode),ye.domNode.setPosition("absolute"),ye.onmousedown(ye.domNode.domNode,function(ze){return ye._domNodeMouseDown(ze)}),ye}return J.prototype._createArrow=function(me){var ye=this._register(new x(me));this.domNode.domNode.appendChild(ye.bgDomNode),this.domNode.domNode.appendChild(ye.domNode)},J.prototype._createSlider=function(me,ye,ze,tt){var _t=this;this.slider=Object(N.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(me),this.slider.setLeft(ye),typeof ze=="number"&&this.slider.setWidth(ze),typeof tt=="number"&&this.slider.setHeight(tt),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(Pt){Pt.leftButton&&(Pt.preventDefault(),_t._sliderMouseDown(Pt,function(){}))}),this.onclick(this.slider.domNode,function(Pt){Pt.leftButton&&Pt.stopPropagation()})},J.prototype._onElementSize=function(me){return this._scrollbarState.setVisibleSize(me)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},J.prototype._onElementScrollSize=function(me){return this._scrollbarState.setScrollSize(me)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},J.prototype._onElementScrollPosition=function(me){return this._scrollbarState.setScrollPosition(me)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},J.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},J.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},J.prototype.render=function(){if(!this._shouldRender)return;this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition())},J.prototype._domNodeMouseDown=function(me){if(me.target!==this.domNode.domNode)return;this._onMouseDown(me)},J.prototype.delegateMouseDown=function(me){var ye=this.domNode.domNode.getClientRects()[0].top,ze=ye+this._scrollbarState.getSliderPosition(),tt=ye+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),_t=this._sliderMousePosition(me);ze<=_t&&_t<=tt?me.leftButton&&(me.preventDefault(),this._sliderMouseDown(me,function(){})):this._onMouseDown(me)},J.prototype._onMouseDown=function(me){var ye,ze;if(me.target===this.domNode.domNode&&typeof me.browserEvent.offsetX=="number"&&typeof me.browserEvent.offsetY=="number")ye=me.browserEvent.offsetX,ze=me.browserEvent.offsetY;else{var tt=ne.B(this.domNode.domNode);ye=me.posx-tt.left,ze=me.posy-tt.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(ye,ze))),me.leftButton&&(me.preventDefault(),this._sliderMouseDown(me,function(){}))},J.prototype._sliderMouseDown=function(me,ye){var ze=this,tt=this._sliderMousePosition(me),_t=this._sliderOrthogonalMousePosition(me),Pt=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(me.target,me.buttons,U.b,function(Xt){var Ke=ze._sliderOrthogonalMousePosition(Xt),Xe=Math.abs(Ke-_t);if(te.h&&Xe>_){ze._setDesiredScrollPositionNow(Pt.getScrollPosition());return}var Ze=ze._sliderMousePosition(Xt),Ye=Ze-tt;ze._setDesiredScrollPositionNow(Pt.getDesiredScrollPositionFromDelta(Ye))},function(){ze.slider.toggleClassName("active",!1),ze._host.onDragEnd(),ye()}),this._host.onDragStart()},J.prototype._setDesiredScrollPositionNow=function(me){var ye={};this.writeScrollPosition(ye,me),this._scrollable.setScrollPositionNow(ye)},J}(j.a),p=20,g=function(){function ie(J,me,ye,ze,tt,_t){this._scrollbarSize=Math.round(me),this._oppositeScrollbarSize=Math.round(ye),this._arrowSize=Math.round(J),this._visibleSize=ze,this._scrollSize=tt,this._scrollPosition=_t,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return ie.prototype.clone=function(){return new ie(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},ie.prototype.setVisibleSize=function(J){var me=Math.round(J);return this._visibleSize!==me?(this._visibleSize=me,this._refreshComputedValues(),!0):!1},ie.prototype.setScrollSize=function(J){var me=Math.round(J);return this._scrollSize!==me?(this._scrollSize=me,this._refreshComputedValues(),!0):!1},ie.prototype.setScrollPosition=function(J){var me=Math.round(J);return this._scrollPosition!==me?(this._scrollPosition=me,this._refreshComputedValues(),!0):!1},ie._computeValues=function(J,me,ye,ze,tt){var _t=Math.max(0,ye-J),Pt=Math.max(0,_t-2*me),Xt=ze>0&&ze>ye;if(!Xt)return{computedAvailableSize:Math.round(_t),computedIsNeeded:Xt,computedSliderSize:Math.round(Pt),computedSliderRatio:0,computedSliderPosition:0};var Ke=Math.round(Math.max(p,Math.floor(ye*Pt/ze))),Xe=(Pt-Ke)/(ze-ye),Ze=tt*Xe;return{computedAvailableSize:Math.round(_t),computedIsNeeded:Xt,computedSliderSize:Math.round(Ke),computedSliderRatio:Xe,computedSliderPosition:Math.round(Ze)}},ie.prototype._refreshComputedValues=function(){var J=ie._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=J.computedAvailableSize,this._computedIsNeeded=J.computedIsNeeded,this._computedSliderSize=J.computedSliderSize,this._computedSliderRatio=J.computedSliderRatio,this._computedSliderPosition=J.computedSliderPosition},ie.prototype.getArrowSize=function(){return this._arrowSize},ie.prototype.getScrollPosition=function(){return this._scrollPosition},ie.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},ie.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},ie.prototype.isNeeded=function(){return this._computedIsNeeded},ie.prototype.getSliderSize=function(){return this._computedSliderSize},ie.prototype.getSliderPosition=function(){return this._computedSliderPosition},ie.prototype.getDesiredScrollPositionFromOffset=function(J){if(!this._computedIsNeeded)return 0;var me=J-this._arrowSize-this._computedSliderSize/2;return Math.round(me/this._computedSliderRatio)},ie.prototype.getDesiredScrollPositionFromDelta=function(J){if(!this._computedIsNeeded)return 0;var me=this._computedSliderPosition+J;return Math.round(me/this._computedSliderRatio)},ie}(),m=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,tt){ze.__proto__=tt}||function(ze,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(ze[_t]=tt[_t])},ie(me,ye)};return function(J,me){ie(J,me);function ye(){this.constructor=J}J.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),w=function(ie){m(J,ie);function J(me,ye,ze){var tt=this,_t=me.getScrollDimensions(),Pt=me.getCurrentScrollPosition();if(tt=ie.call(this,{lazyRender:ye.lazyRender,host:ze,scrollbarState:new g(ye.horizontalHasArrows?ye.arrowSize:0,ye.horizontal===2?0:ye.horizontalScrollbarSize,ye.vertical===2?0:ye.verticalScrollbarSize,_t.width,_t.scrollWidth,Pt.scrollLeft),visibility:ye.horizontal,extraScrollbarClassName:"horizontal",scrollable:me})||this,ye.horizontalHasArrows){var Xt=(ye.arrowSize-E)/2,Ke=(ye.horizontalScrollbarSize-E)/2;tt._createArrow({className:"left-arrow",top:Ke,left:Xt,bottom:void 0,right:void 0,bgWidth:ye.arrowSize,bgHeight:ye.horizontalScrollbarSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,1,0))}}),tt._createArrow({className:"right-arrow",top:Ke,left:void 0,bottom:void 0,right:Xt,bgWidth:ye.arrowSize,bgHeight:ye.horizontalScrollbarSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,-1,0))}})}return tt._createSlider(Math.floor((ye.horizontalScrollbarSize-ye.horizontalSliderSize)/2),0,void 0,ye.horizontalSliderSize),tt}return J.prototype._updateSlider=function(me,ye){this.slider.setWidth(me),this.slider.setLeft(ye)},J.prototype._renderDomNode=function(me,ye){this.domNode.setWidth(me),this.domNode.setHeight(ye),this.domNode.setLeft(0),this.domNode.setBottom(0)},J.prototype.onDidScroll=function(me){return this._shouldRender=this._onElementScrollSize(me.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(me.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(me.width)||this._shouldRender,this._shouldRender},J.prototype._mouseDownRelativePosition=function(me,ye){return me},J.prototype._sliderMousePosition=function(me){return me.posx},J.prototype._sliderOrthogonalMousePosition=function(me){return me.posy},J.prototype.writeScrollPosition=function(me,ye){me.scrollLeft=ye},J}(f),B=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,tt){ze.__proto__=tt}||function(ze,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(ze[_t]=tt[_t])},ie(me,ye)};return function(J,me){ie(J,me);function ye(){this.constructor=J}J.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),H=function(ie){B(J,ie);function J(me,ye,ze){var tt=this,_t=me.getScrollDimensions(),Pt=me.getCurrentScrollPosition();if(tt=ie.call(this,{lazyRender:ye.lazyRender,host:ze,scrollbarState:new g(ye.verticalHasArrows?ye.arrowSize:0,ye.vertical===2?0:ye.verticalScrollbarSize,0,_t.height,_t.scrollHeight,Pt.scrollTop),visibility:ye.vertical,extraScrollbarClassName:"vertical",scrollable:me})||this,ye.verticalHasArrows){var Xt=(ye.arrowSize-E)/2,Ke=(ye.verticalScrollbarSize-E)/2;tt._createArrow({className:"up-arrow",top:Xt,left:Ke,bottom:void 0,right:void 0,bgWidth:ye.verticalScrollbarSize,bgHeight:ye.arrowSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,0,1))}}),tt._createArrow({className:"down-arrow",top:void 0,left:Ke,bottom:Xt,right:void 0,bgWidth:ye.verticalScrollbarSize,bgHeight:ye.arrowSize,onActivate:function(){return tt._host.onMouseWheel(new F.b(null,0,-1))}})}return tt._createSlider(0,Math.floor((ye.verticalScrollbarSize-ye.verticalSliderSize)/2),ye.verticalSliderSize,void 0),tt}return J.prototype._updateSlider=function(me,ye){this.slider.setHeight(me),this.slider.setTop(ye)},J.prototype._renderDomNode=function(me,ye){this.domNode.setWidth(ye),this.domNode.setHeight(me),this.domNode.setRight(0),this.domNode.setTop(0)},J.prototype.onDidScroll=function(me){return this._shouldRender=this._onElementScrollSize(me.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(me.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(me.height)||this._shouldRender,this._shouldRender},J.prototype._mouseDownRelativePosition=function(me,ye){return ye},J.prototype._sliderMousePosition=function(me){return me.posy},J.prototype._sliderOrthogonalMousePosition=function(me){return me.posx},J.prototype.writeScrollPosition=function(me,ye){me.scrollTop=ye},J}(f),re=r("YK2C"),he=r("WO5T"),Ee=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,tt){ze.__proto__=tt}||function(ze,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(ze[_t]=tt[_t])},ie(me,ye)};return function(J,me){ie(J,me);function ye(){this.constructor=J}J.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),Se=500,q=50,Z=!0,ce=function(){function ie(J,me,ye){this.timestamp=J,this.deltaX=me,this.deltaY=ye,this.score=0}return ie}(),Me=function(){function ie(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return ie.prototype.isPhysicalMouseWheel=function(){if(this._front===-1&&this._rear===-1)return!1;var J=1,me=0,ye=1,ze=this._rear;do{var tt=ze===this._front?J:Math.pow(2,-ye);if(J-=tt,me+=this._memory[ze].score*tt,ze===this._front)break;ze=(this._capacity+ze-1)%this._capacity,ye++}while(!0);return me<=.5},ie.prototype.accept=function(J,me,ye){var ze=new ce(J,me,ye);ze.score=this._computeScore(ze),this._front===-1&&this._rear===-1?(this._memory[0]=ze,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=ze)},ie.prototype._computeScore=function(J){if(Math.abs(J.deltaX)>0&&Math.abs(J.deltaY)>0)return 1;var me=.5,ye=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(Math.abs(J.deltaX-Math.round(J.deltaX))>0||Math.abs(J.deltaY-Math.round(J.deltaY))>0)&&(me+=.25),Math.min(Math.max(me,0),1)},ie.INSTANCE=new ie,ie}(),Ve=function(ie){Ee(J,ie);function J(me,ye,ze){var tt=ie.call(this)||this;tt._onScroll=tt._register(new re.a),tt.onScroll=tt._onScroll.event,me.style.overflow="hidden",tt._options=fe(ye),tt._scrollable=ze,tt._register(tt._scrollable.onScroll(function(Pt){tt._onDidScroll(Pt),tt._onScroll.fire(Pt)}));var _t={onMouseWheel:function(Xt){return tt._onMouseWheel(Xt)},onDragStart:function(){return tt._onDragStart()},onDragEnd:function(){return tt._onDragEnd()}};return tt._verticalScrollbar=tt._register(new H(tt._scrollable,tt._options,_t)),tt._horizontalScrollbar=tt._register(new w(tt._scrollable,tt._options,_t)),tt._domNode=document.createElement("div"),tt._domNode.className="monaco-scrollable-element "+tt._options.className,tt._domNode.setAttribute("role","presentation"),tt._domNode.style.position="relative",tt._domNode.style.overflow="hidden",tt._domNode.appendChild(me),tt._domNode.appendChild(tt._horizontalScrollbar.domNode.domNode),tt._domNode.appendChild(tt._verticalScrollbar.domNode.domNode),tt._options.useShadows?(tt._leftShadowDomNode=Object(N.b)(document.createElement("div")),tt._leftShadowDomNode.setClassName("shadow"),tt._domNode.appendChild(tt._leftShadowDomNode.domNode),tt._topShadowDomNode=Object(N.b)(document.createElement("div")),tt._topShadowDomNode.setClassName("shadow"),tt._domNode.appendChild(tt._topShadowDomNode.domNode),tt._topLeftShadowDomNode=Object(N.b)(document.createElement("div")),tt._topLeftShadowDomNode.setClassName("shadow top-left-corner"),tt._domNode.appendChild(tt._topLeftShadowDomNode.domNode)):(tt._leftShadowDomNode=null,tt._topShadowDomNode=null,tt._topLeftShadowDomNode=null),tt._listenOnDomNode=tt._options.listenOnDomNode||tt._domNode,tt._mouseWheelToDispose=[],tt._setListeningToMouseWheel(tt._options.handleMouseWheel),tt.onmouseover(tt._listenOnDomNode,function(Pt){return tt._onMouseOver(Pt)}),tt.onnonbubblingmouseout(tt._listenOnDomNode,function(Pt){return tt._onMouseOut(Pt)}),tt._hideTimeout=tt._register(new G.e),tt._isDragging=!1,tt._mouseIsOver=!1,tt._shouldRender=!0,tt._revealOnScroll=!0,tt}return J.prototype.dispose=function(){this._mouseWheelToDispose=Object(K.f)(this._mouseWheelToDispose),ie.prototype.dispose.call(this)},J.prototype.getDomNode=function(){return this._domNode},J.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},J.prototype.delegateVerticalScrollbarMouseDown=function(me){this._verticalScrollbar.delegateMouseDown(me)},J.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},J.prototype.setScrollDimensions=function(me){this._scrollable.setScrollDimensions(me)},J.prototype.updateClassName=function(me){this._options.className=me,te.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},J.prototype.updateOptions=function(me){var ye=fe(me);this._options.handleMouseWheel=ye.handleMouseWheel,this._options.mouseWheelScrollSensitivity=ye.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=ye.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},J.prototype._setListeningToMouseWheel=function(me){var ye=this,ze=this._mouseWheelToDispose.length>0;if(ze===me)return;if(this._mouseWheelToDispose=Object(K.f)(this._mouseWheelToDispose),me){var tt=function(Pt){ye._onMouseWheel(new F.b(Pt))};this._mouseWheelToDispose.push(ne.i(this._listenOnDomNode,oe.f?"mousewheel":"wheel",tt,{passive:!1}))}},J.prototype._onMouseWheel=function(me){var ye,ze=Me.INSTANCE;if(Z&&ze.accept(Date.now(),me.deltaX,me.deltaY),me.deltaY||me.deltaX){var tt=me.deltaY*this._options.mouseWheelScrollSensitivity,_t=me.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(ye=[_t,tt],tt=ye[0],_t=ye[1]);var Pt=!te.e&&me.browserEvent&&me.browserEvent.shiftKey;(this._options.scrollYToX||Pt)&&!_t&&(_t=tt,tt=0),me.browserEvent&&me.browserEvent.altKey&&(_t=_t*this._options.fastScrollSensitivity,tt=tt*this._options.fastScrollSensitivity);var Xt=this._scrollable.getFutureScrollPosition(),Ke={};if(tt){var Xe=Xt.scrollTop-q*tt;this._verticalScrollbar.writeScrollPosition(Ke,Xe)}if(_t){var Ze=Xt.scrollLeft-q*_t;this._horizontalScrollbar.writeScrollPosition(Ke,Ze)}if(Ke=this._scrollable.validateScrollPosition(Ke),Xt.scrollLeft!==Ke.scrollLeft||Xt.scrollTop!==Ke.scrollTop){var Ye=Z&&this._options.mouseWheelSmoothScroll&&ze.isPhysicalMouseWheel();Ye?this._scrollable.setScrollPositionSmooth(Ke):this._scrollable.setScrollPositionNow(Ke),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(me.preventDefault(),me.stopPropagation())},J.prototype._onDidScroll=function(me){this._shouldRender=this._horizontalScrollbar.onDidScroll(me)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(me)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},J.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},J.prototype._render=function(){if(!this._shouldRender)return;if(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows){var me=this._scrollable.getCurrentScrollPosition(),ye=me.scrollTop>0,ze=me.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(ze?" left":"")),this._topShadowDomNode.setClassName("shadow"+(ye?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(ye?" top":"")+(ze?" left":""))}},J.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},J.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},J.prototype._onMouseOut=function(me){this._mouseIsOver=!1,this._hide()},J.prototype._onMouseOver=function(me){this._mouseIsOver=!0,this._reveal()},J.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},J.prototype._hide=function(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},J.prototype._scheduleHide=function(){var me=this;!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(function(){return me._hide()},Se)},J}(j.a),_e=function(ie){Ee(J,ie);function J(me,ye){var ze=this;ye=ye||{},ye.mouseWheelSmoothScroll=!1;var tt=new he.a(0,function(_t){return ne.V(_t)});return ze=ie.call(this,me,ye,tt)||this,ze._register(tt),ze}return J.prototype.setScrollPosition=function(me){this._scrollable.setScrollPositionNow(me)},J.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},J}(Ve),ue=function(ie){Ee(J,ie);function J(me,ye,ze){return ie.call(this,me,ye,ze)||this}return J}(Ve),se=function(ie){Ee(J,ie);function J(me,ye){var ze=ie.call(this,me,ye)||this;return ze._element=me,ze.onScroll(function(tt){tt.scrollTopChanged&&(ze._element.scrollTop=tt.scrollTop),tt.scrollLeftChanged&&(ze._element.scrollLeft=tt.scrollLeft)}),ze.scanDomNode(),ze}return J.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},J}(_e);function fe(ie){var J={lazyRender:typeof ie.lazyRender!="undefined"?ie.lazyRender:!1,className:typeof ie.className!="undefined"?ie.className:"",useShadows:typeof ie.useShadows!="undefined"?ie.useShadows:!0,handleMouseWheel:typeof ie.handleMouseWheel!="undefined"?ie.handleMouseWheel:!0,flipAxes:typeof ie.flipAxes!="undefined"?ie.flipAxes:!1,alwaysConsumeMouseWheel:typeof ie.alwaysConsumeMouseWheel!="undefined"?ie.alwaysConsumeMouseWheel:!1,scrollYToX:typeof ie.scrollYToX!="undefined"?ie.scrollYToX:!1,mouseWheelScrollSensitivity:typeof ie.mouseWheelScrollSensitivity!="undefined"?ie.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof ie.fastScrollSensitivity!="undefined"?ie.fastScrollSensitivity:5,mouseWheelSmoothScroll:typeof ie.mouseWheelSmoothScroll!="undefined"?ie.mouseWheelSmoothScroll:!0,arrowSize:typeof ie.arrowSize!="undefined"?ie.arrowSize:11,listenOnDomNode:typeof ie.listenOnDomNode!="undefined"?ie.listenOnDomNode:null,horizontal:typeof ie.horizontal!="undefined"?ie.horizontal:1,horizontalScrollbarSize:typeof ie.horizontalScrollbarSize!="undefined"?ie.horizontalScrollbarSize:10,horizontalSliderSize:typeof ie.horizontalSliderSize!="undefined"?ie.horizontalSliderSize:0,horizontalHasArrows:typeof ie.horizontalHasArrows!="undefined"?ie.horizontalHasArrows:!1,vertical:typeof ie.vertical!="undefined"?ie.vertical:1,verticalScrollbarSize:typeof ie.verticalScrollbarSize!="undefined"?ie.verticalScrollbarSize:10,verticalHasArrows:typeof ie.verticalHasArrows!="undefined"?ie.verticalHasArrows:!1,verticalSliderSize:typeof ie.verticalSliderSize!="undefined"?ie.verticalSliderSize:0};return J.horizontalSliderSize=typeof ie.horizontalSliderSize!="undefined"?ie.horizontalSliderSize:J.horizontalScrollbarSize,J.verticalSliderSize=typeof ie.verticalSliderSize!="undefined"?ie.verticalSliderSize:J.verticalScrollbarSize,te.e&&(J.className+=" mac"),J}},B6aB:function(wt,P,r){"use strict";r.d(P,"a",function(){return U});var I=r("g2LA"),oe=r("V0RK"),ne=r("w9Cd"),N=r("yBOt"),F=function(){function j(G,R,E){this.lineNumber=G,this.column=R,this.leftoverVisibleColumns=E}return j}(),U=function(){function j(){}return j.leftPosition=function(G,R,E){return E>G.getLineMinColumn(R)?E=E-N.G(G.getLineContent(R),E-1):R>1&&(R=R-1,E=G.getLineMaxColumn(R)),new oe.a(R,E)},j.left=function(G,R,E,x){var K=j.leftPosition(R,E,x);return new F(K.lineNumber,K.column,0)},j.moveLeft=function(G,R,E,x,K){var D,A;if(E.hasSelection()&&!x)D=E.selection.startLineNumber,A=E.selection.startColumn;else{var te=j.left(G,R,E.position.lineNumber,E.position.column-(K-1));D=te.lineNumber,A=te.column}return E.move(x,D,A,0)},j.rightPosition=function(G,R,E){return E<G.getLineMaxColumn(R)?E=E+N.E(G.getLineContent(R),E-1):R<G.getLineCount()&&(R=R+1,E=G.getLineMinColumn(R)),new oe.a(R,E)},j.right=function(G,R,E,x){var K=j.rightPosition(R,E,x);return new F(K.lineNumber,K.column,0)},j.moveRight=function(G,R,E,x,K){var D,A;if(E.hasSelection()&&!x)D=E.selection.endLineNumber,A=E.selection.endColumn;else{var te=j.right(G,R,E.position.lineNumber,E.position.column+(K-1));D=te.lineNumber,A=te.column}return E.move(x,D,A,0)},j.down=function(G,R,E,x,K,D,A){var te=I.a.visibleColumnFromColumn(R.getLineContent(E),x,G.tabSize)+K;E=E+D;var z=R.getLineCount();return E>z?(E=z,A?x=R.getLineMaxColumn(E):x=Math.min(R.getLineMaxColumn(E),x)):x=I.a.columnFromVisibleColumn2(G,R,E,te),K=te-I.a.visibleColumnFromColumn(R.getLineContent(E),x,G.tabSize),new F(E,x,K)},j.moveDown=function(G,R,E,x,K){var D,A;E.hasSelection()&&!x?(D=E.selection.endLineNumber,A=E.selection.endColumn):(D=E.position.lineNumber,A=E.position.column);var te=j.down(G,R,D,A,E.leftoverVisibleColumns,K,!0);return E.move(x,te.lineNumber,te.column,te.leftoverVisibleColumns)},j.translateDown=function(G,R,E){var x=E.selection,K=j.down(G,R,x.selectionStartLineNumber,x.selectionStartColumn,E.selectionStartLeftoverVisibleColumns,1,!1),D=j.down(G,R,x.positionLineNumber,x.positionColumn,E.leftoverVisibleColumns,1,!1);return new I.f(new ne.a(K.lineNumber,K.column,K.lineNumber,K.column),K.leftoverVisibleColumns,new oe.a(D.lineNumber,D.column),D.leftoverVisibleColumns)},j.up=function(G,R,E,x,K,D,A){var te=I.a.visibleColumnFromColumn(R.getLineContent(E),x,G.tabSize)+K;return E=E-D,E<1?(E=1,A?x=R.getLineMinColumn(E):x=Math.min(R.getLineMaxColumn(E),x)):x=I.a.columnFromVisibleColumn2(G,R,E,te),K=te-I.a.visibleColumnFromColumn(R.getLineContent(E),x,G.tabSize),new F(E,x,K)},j.moveUp=function(G,R,E,x,K){var D,A;E.hasSelection()&&!x?(D=E.selection.startLineNumber,A=E.selection.startColumn):(D=E.position.lineNumber,A=E.position.column);var te=j.up(G,R,D,A,E.leftoverVisibleColumns,K,!0);return E.move(x,te.lineNumber,te.column,te.leftoverVisibleColumns)},j.translateUp=function(G,R,E){var x=E.selection,K=j.up(G,R,x.selectionStartLineNumber,x.selectionStartColumn,E.selectionStartLeftoverVisibleColumns,1,!1),D=j.up(G,R,x.positionLineNumber,x.positionColumn,E.leftoverVisibleColumns,1,!1);return new I.f(new ne.a(K.lineNumber,K.column,K.lineNumber,K.column),K.leftoverVisibleColumns,new oe.a(D.lineNumber,D.column),D.leftoverVisibleColumns)},j.moveToBeginningOfLine=function(G,R,E,x){var K=E.position.lineNumber,D=R.getLineMinColumn(K),A=R.getLineFirstNonWhitespaceColumn(K)||D,te,z=E.position.column;return z===A?te=D:te=A,E.move(x,K,te,0)},j.moveToEndOfLine=function(G,R,E,x){var K=E.position.lineNumber,D=R.getLineMaxColumn(K);return E.move(x,K,D,0)},j.moveToBeginningOfBuffer=function(G,R,E,x){return E.move(x,1,1,0)},j.moveToEndOfBuffer=function(G,R,E,x){var K=R.getLineCount(),D=R.getLineMaxColumn(K);return E.move(x,K,D,0)},j}()},CTBJ:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("YK2C"),oe=new(function(){function ne(){this._zoomLevel=0,this._onDidChangeZoomLevel=new I.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return ne.prototype.getZoomLevel=function(){return this._zoomLevel},ne.prototype.setZoomLevel=function(N){if(N=Math.min(Math.max(-5,N),20),this._zoomLevel===N)return;this._zoomLevel=N,this._onDidChangeZoomLevel.fire(this._zoomLevel)},ne}())},CZFe:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return r.e(231).then(r.bind(null,"rj1P"))}})},Cagm:function(wt,P,r){"use strict";r.d(P,"f",function(){return F}),r.d(P,"b",function(){return G}),r.d(P,"c",function(){return R}),r.d(P,"a",function(){return x}),r.d(P,"e",function(){return A}),r.d(P,"d",function(){return te});var I=r("Inmo"),oe=r("Q5rX"),ne=r("V0RK"),N=r("vqGt");function F(z){for(var _=0,f=0,p=0,g=0,m=z.length;g<m;g++){var w=z.charCodeAt(g);w===13?(_===0&&(f=g),_++,g+1<m&&z.charCodeAt(g+1)===10&&g++,p=g+1):w===10&&(_===0&&(f=g),_++,p=g+1)}return _===0&&(f=z.length),[_,f,z.length-p]}function U(z){return(z<<0|0<<8|0<<11|1<<14|2<<23)>>>0}var j=new Uint32Array(0).buffer,G=function(){function z(){this.tokens=[]}return z.prototype.add=function(_,f){if(this.tokens.length>0){var p=this.tokens[this.tokens.length-1],g=p.startLineNumber+p.tokens.length-1;if(g+1===_){p.tokens.push(f);return}}this.tokens.push(new K(_,[f]))},z}(),R=function(){function z(_){this._tokens=_,this._tokenCount=_.length/4}return z.prototype.getMaxDeltaLine=function(){var _=this.getTokenCount();return _===0?-1:this.getDeltaLine(_-1)},z.prototype.getTokenCount=function(){return this._tokenCount},z.prototype.getDeltaLine=function(_){return this._tokens[4*_]},z.prototype.getStartCharacter=function(_){return this._tokens[4*_+1]},z.prototype.getEndCharacter=function(_){return this._tokens[4*_+2]},z.prototype.getMetadata=function(_){return this._tokens[4*_+3]},z.prototype.clear=function(){this._tokenCount=0},z.prototype.acceptDeleteRange=function(_,f,p,g,m){for(var w=this._tokens,B=this._tokenCount,H=g-f,re=0,he=!1,Ee=0;Ee<B;Ee++){var Se=4*Ee,q=w[Se],Z=w[Se+1],ce=w[Se+2],Me=w[Se+3];if(q<f||q===f&&ce<=p){re++;continue}else if(q===f&&Z<p)q===g&&ce>m?ce-=m-p:ce=p;else if(q===f&&Z===p)if(q===g&&ce>m)ce-=m-p;else{he=!0;continue}else if(q<g||q===g&&Z<m)if(q===g&&ce>m)q===f?(Z=p,ce=Z+(ce-m)):(Z=0,ce=Z+(ce-m));else{he=!0;continue}else if(q>g){if(H===0&&!he){re=B;break}q-=H}else if(q===g&&Z>=m)_&&q===0&&(Z+=_,ce+=_),q-=H,Z-=m-p,ce-=m-p;else throw new Error("Not possible!");var Ve=4*re;w[Ve]=q,w[Ve+1]=Z,w[Ve+2]=ce,w[Ve+3]=Me,re++}this._tokenCount=re},z.prototype.acceptInsertText=function(_,f,p,g,m,w){for(var B=p===0&&g===1&&(w>=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122),H=this._tokens,re=this._tokenCount,he=0;he<re;he++){var Ee=4*he,Se=H[Ee],q=H[Ee+1],Z=H[Ee+2];if(Se<_||Se===_&&Z<f)continue;if(Se===_&&Z===f)if(B)Z+=1;else continue;else if(Se===_&&q<f&&f<Z)p===0?Z+=g:Z=f;else{if(Se===_&&q===f&&B)continue;if(Se===_)if(Se+=p,p===0)q+=g,Z+=g;else{var ce=Z-q;q=m+(q-f),Z=q+ce}else Se+=p}H[Ee]=Se,H[Ee+1]=q,H[Ee+2]=Z}},z}(),E=function(){function z(_,f,p){this._actual=_,this._startTokenIndex=f,this._endTokenIndex=p}return z.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},z.prototype.getStartCharacter=function(_){return this._actual.getStartCharacter(this._startTokenIndex+_)},z.prototype.getEndCharacter=function(_){return this._actual.getEndCharacter(this._startTokenIndex+_)},z.prototype.getMetadata=function(_){return this._actual.getMetadata(this._startTokenIndex+_)},z}(),x=function(){function z(_,f){this.startLineNumber=_,this.tokens=f,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}return z.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},z.prototype.getLineTokens=function(_){if(this.startLineNumber<=_&&_<=this.endLineNumber){var f=z._findTokensWithLine(this.tokens,_-this.startLineNumber);if(f){var p=f[0],g=f[1];return new E(this.tokens,p,g)}}return null},z._findTokensWithLine=function(_,f){for(var p=0,g=_.getTokenCount()-1;p<g;){var m=p+Math.floor((g-p)/2),w=_.getDeltaLine(m);if(w<f)p=m+1;else if(w>f)g=m-1;else{for(var B=m;B>p&&_.getDeltaLine(B-1)===f;)B--;for(var H=m;H<g&&_.getDeltaLine(H+1)===f;)H++;return[B,H]}}return _.getDeltaLine(p)===f?[p,p]:null},z.prototype.applyEdit=function(_,f){var p=F(f),g=p[0],m=p[1],w=p[2];this.acceptEdit(_,g,m,w,f.length>0?f.charCodeAt(0):0)},z.prototype.acceptEdit=function(_,f,p,g,m){this._acceptDeleteRange(_),this._acceptInsertText(new ne.a(_.startLineNumber,_.startColumn),f,p,g,m),this._updateEndLineNumber()},z.prototype._acceptDeleteRange=function(_){if(_.startLineNumber===_.endLineNumber&&_.startColumn===_.endColumn)return;var f=_.startLineNumber-this.startLineNumber,p=_.endLineNumber-this.startLineNumber;if(p<0){var g=p-f;this.startLineNumber-=g;return}var m=this.tokens.getMaxDeltaLine();if(f>=m+1)return;if(f<0&&p>=m+1){this.startLineNumber=0,this.tokens.clear();return}if(f<0){var w=-f;this.startLineNumber-=w,this.tokens.acceptDeleteRange(_.startColumn-1,0,0,p,_.endColumn-1)}else this.tokens.acceptDeleteRange(0,f,_.startColumn-1,p,_.endColumn-1)},z.prototype._acceptInsertText=function(_,f,p,g,m){if(f===0&&p===0)return;var w=_.lineNumber-this.startLineNumber;if(w<0){this.startLineNumber+=f;return}var B=this.tokens.getMaxDeltaLine();if(w>=B+1)return;this.tokens.acceptInsertText(w,_.column-1,f,p,g,m)},z}(),K=function(){function z(_,f){this.startLineNumber=_,this.tokens=f}return z}();function D(z){return z instanceof Uint32Array?z:new Uint32Array(z)}var A=function(){function z(){this._pieces=[]}return z.prototype.flush=function(){this._pieces=[]},z.prototype.set=function(_){this._pieces=_||[]},z.prototype.addSemanticTokens=function(_,f){var p=this._pieces;if(p.length===0)return f;var g=z._findFirstPieceWithLine(p,_),m=this._pieces[g].getLineTokens(_);if(!m)return f;for(var w=f.getCount(),B=m.getCount(),H=0,re=[],he=0,Ee=0;Ee<B;Ee++){for(var Se=m.getStartCharacter(Ee),q=m.getEndCharacter(Ee),Z=m.getMetadata(Ee),ce=((Z&1?2048:0)|(Z&2?4096:0)|(Z&4?8192:0)|(Z&8?8372224:0)|(Z&16?4286578688:0))>>>0,Me=~ce>>>0;H<w&&f.getEndOffset(H)<=Se;)re[he++]=f.getEndOffset(H),re[he++]=f.getMetadata(H),H++;for(H<w&&f.getStartOffset(H)<Se&&(re[he++]=Se,re[he++]=f.getMetadata(H));H<w&&f.getEndOffset(H)<q;)re[he++]=f.getEndOffset(H),re[he++]=f.getMetadata(H)&Me|Z&ce,H++;if(H<w&&f.getEndOffset(H)===q)re[he++]=f.getEndOffset(H),re[he++]=f.getMetadata(H)&Me|Z&ce,H++;else{var Ve=Math.min(Math.max(0,H-1),w-1);re[he++]=q,re[he++]=f.getMetadata(Ve)&Me|Z&ce}}for(;H<w;)re[he++]=f.getEndOffset(H),re[he++]=f.getMetadata(H),H++;return new oe.a(new Uint32Array(re),f.getLineContent())},z._findFirstPieceWithLine=function(_,f){for(var p=0,g=_.length-1;p<g;){var m=p+Math.floor((g-p)/2);if(_[m].endLineNumber<f)p=m+1;else if(_[m].startLineNumber>f)g=m-1;else{for(;m>p&&_[m-1].startLineNumber<=f&&f<=_[m-1].endLineNumber;)m--;return m}}return p},z.prototype.acceptEdit=function(_,f,p,g,m){for(var w=0,B=this._pieces;w<B.length;w++){var H=B[w];H.acceptEdit(_,f,p,g,m)}},z}(),te=function(){function z(){this._lineTokens=[],this._len=0}return z.prototype.flush=function(){this._lineTokens=[],this._len=0},z.prototype.getTokens=function(_,f,p){var g=null;if(f<this._len&&(g=this._lineTokens[f]),g!==null&&g!==j)return new oe.a(D(g),p);var m=new Uint32Array(2);return m[0]=p.length,m[1]=U(_),new oe.a(m,p)},z._massageTokens=function(_,f,p){var g=p?D(p):null;if(f===0){var m=!1;if(g&&g.length>1&&(m=N.x.getLanguageId(g[1])!==_),!m)return j}if(!g||g.length===0){var w=new Uint32Array(2);return w[0]=f,w[1]=U(_),w.buffer}return g[g.length-2]=f,g.byteOffset===0&&g.byteLength===g.buffer.byteLength?g.buffer:g},z.prototype._ensureLine=function(_){for(;_>=this._len;)this._lineTokens[this._len]=null,this._len++},z.prototype._deleteLines=function(_,f){if(f===0)return;_+f>this._len&&(f=this._len-_),this._lineTokens.splice(_,f),this._len-=f},z.prototype._insertLines=function(_,f){if(f===0)return;for(var p=[],g=0;g<f;g++)p[g]=null;this._lineTokens=I.a(this._lineTokens,_,p),this._len+=f},z.prototype.setTokens=function(_,f,p,g){var m=z._massageTokens(_,p,g);this._ensureLine(f),this._lineTokens[f]=m},z.prototype.acceptEdit=function(_,f,p){this._acceptDeleteRange(_),this._acceptInsertText(new ne.a(_.startLineNumber,_.startColumn),f,p)},z.prototype._acceptDeleteRange=function(_){var f=_.startLineNumber-1;if(f>=this._len)return;if(_.startLineNumber===_.endLineNumber){if(_.startColumn===_.endColumn)return;this._lineTokens[f]=z._delete(this._lineTokens[f],_.startColumn-1,_.endColumn-1);return}this._lineTokens[f]=z._deleteEnding(this._lineTokens[f],_.startColumn-1);var p=_.endLineNumber-1,g=null;p<this._len&&(g=z._deleteBeginning(this._lineTokens[p],_.endColumn-1)),this._lineTokens[f]=z._append(this._lineTokens[f],g),this._deleteLines(_.startLineNumber,_.endLineNumber-_.startLineNumber)},z.prototype._acceptInsertText=function(_,f,p){if(f===0&&p===0)return;var g=_.lineNumber-1;if(g>=this._len)return;if(f===0){this._lineTokens[g]=z._insert(this._lineTokens[g],_.column-1,p);return}this._lineTokens[g]=z._deleteEnding(this._lineTokens[g],_.column-1),this._lineTokens[g]=z._insert(this._lineTokens[g],_.column-1,p),this._insertLines(_.lineNumber,f)},z._deleteBeginning=function(_,f){return _===null||_===j?_:z._delete(_,0,f)},z._deleteEnding=function(_,f){if(_===null||_===j)return _;var p=D(_),g=p[p.length-2];return z._delete(_,f,g)},z._delete=function(_,f,p){if(_===null||_===j||f===p)return _;var g=D(_),m=g.length>>>1;if(f===0&&g[g.length-2]===p)return j;var w=oe.a.findIndexInTokensArray(g,f),B=w>0?g[w-1<<1]:0,H=g[w<<1];if(p<H){for(var re=p-f,he=w;he<m;he++)g[he<<1]-=re;return _}var Ee,Se;B!==f?(g[w<<1]=f,Ee=w+1<<1,Se=f):(Ee=w<<1,Se=B);for(var q=p-f,Z=w+1;Z<m;Z++){var ce=g[Z<<1]-q;ce>Se&&(g[Ee++]=ce,g[Ee++]=g[(Z<<1)+1],Se=ce)}if(Ee===g.length)return _;var Me=new Uint32Array(Ee);return Me.set(g.subarray(0,Ee),0),Me.buffer},z._append=function(_,f){if(f===j)return _;if(_===j)return f;if(_===null)return _;if(f===null)return null;var p=D(_),g=D(f),m=g.length>>>1,w=new Uint32Array(p.length+g.length);w.set(p,0);for(var B=p.length,H=p[p.length-2],re=0;re<m;re++)w[B++]=g[re<<1]+H,w[B++]=g[(re<<1)+1];return w.buffer},z._insert=function(_,f,p){if(_===null||_===j)return _;var g=D(_),m=g.length>>>1,w=oe.a.findIndexInTokensArray(g,f);if(w>0){var B=g[w-1<<1];B===f&&w--}for(var H=w;H<m;H++)g[H<<1]+=p;return _},z}()},Cp6c:function(wt,P,r){"use strict";r.d(P,"b",function(){return N}),r.d(P,"a",function(){return F});var I=r("yBOt"),oe=r("V0RK"),ne=r("w9Cd"),N=function(){function U(j,G,R,E,x){this.value=j,this.selectionStart=G,this.selectionEnd=R,this.selectionStartPosition=E,this.selectionEndPosition=x}return U.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},U.readFromTextArea=function(j){return new U(j.getValue(),j.getSelectionStart(),j.getSelectionEnd(),null,null)},U.prototype.collapseSelection=function(){return new U(this.value,this.value.length,this.value.length,null,null)},U.prototype.writeToTextArea=function(j,G,R){G.setValue(j,this.value),R&&G.setSelectionRange(j,this.selectionStart,this.selectionEnd)},U.prototype.deduceEditorPosition=function(j){if(j<=this.selectionStart){var G=this.value.substring(j,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,G,-1)}if(j>=this.selectionEnd){var G=this.value.substring(this.selectionEnd,j);return this._finishDeduceEditorPosition(this.selectionEndPosition,G,1)}var R=this.value.substring(this.selectionStart,j);if(R.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,R,1);var E=this.value.substring(j,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,E,-1)},U.prototype._finishDeduceEditorPosition=function(j,G,R){for(var E=0,x=-1;(x=G.indexOf(`
|
|
`,x+1))!==-1;)E++;return[j,R*G.length,E]},U.selectedText=function(j){return new U(j,0,j.length,null,null)},U.deduceInput=function(j,G,R){if(!j)return{text:"",replaceCharCnt:0};var E=j.value,x=j.selectionStart,K=j.selectionEnd,D=G.value,A=G.selectionStart,te=G.selectionEnd,z=E.substring(K),_=D.substring(te),f=I.d(z,_);D=D.substring(0,D.length-f),E=E.substring(0,E.length-f);var p=E.substring(0,x),g=D.substring(0,A),m=I.c(p,g);if(D=D.substring(m),E=E.substring(m),A-=m,x-=m,te-=m,K-=m,R&&A===te&&E.length>0){var w=null;if(A===D.length?I.M(D,E)&&(w=D.substring(E.length)):I.m(D,E)&&(w=D.substring(0,D.length-E.length)),w!==null&&w.length>0&&(/\uFE0F/.test(w)||I.g(w)))return{text:w,replaceCharCnt:0}}if(A===te){if(E===D&&x===0&&K===E.length&&A===D.length&&D.indexOf(`
|
|
`)===-1&&I.h(D))return{text:"",replaceCharCnt:0};var B=p.length-m;return{text:D,replaceCharCnt:B}}var H=K-x;return{text:D,replaceCharCnt:H}},U.EMPTY=new U("",0,0,null,null),U}(),F=function(){function U(){}return U._getPageOfLine=function(j,G){return Math.floor((j-1)/G)},U._getRangeForPage=function(j,G){var R=j*G,E=R+1,x=R+G;return new ne.a(E,1,x+1,1)},U.fromEditorSelection=function(j,G,R,E,x){var K=U._getPageOfLine(R.startLineNumber,E),D=U._getRangeForPage(K,E),A=U._getPageOfLine(R.endLineNumber,E),te=U._getRangeForPage(A,E),z=D.intersectRanges(new ne.a(1,1,R.startLineNumber,R.startColumn)),_=G.getValueInRange(z,1),f=G.getLineCount(),p=G.getLineMaxColumn(f),g=te.intersectRanges(new ne.a(R.endLineNumber,R.endColumn,f,p)),m=G.getValueInRange(g,1),w;if(K===A||K+1===A)w=G.getValueInRange(R,1);else{var B=D.intersectRanges(R),H=te.intersectRanges(R);w=G.getValueInRange(B,1)+String.fromCharCode(8230)+G.getValueInRange(H,1)}if(x){var re=500;_.length>re&&(_=_.substring(_.length-re,_.length)),m.length>re&&(m=m.substring(0,re)),w.length>2*re&&(w=w.substring(0,re)+String.fromCharCode(8230)+w.substring(w.length-re,w.length))}return new N(_+w+m,_.length,_.length+w.length,new oe.a(R.startLineNumber,R.startColumn),new oe.a(R.endLineNumber,R.endColumn))},U}()},DIJm:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return r.e(234).then(r.bind(null,"/5I7"))}})},DqQN:function(wt,P,r){},"E+fE":function(wt,P,r){"use strict";r.d(P,"a",function(){return N});var I=r("yqRl"),oe=r("bndW"),ne=function(){function F(){this.data=new Map}return F.prototype.add=function(U,j){oe.a(I.j(U)),oe.a(I.i(j)),oe.a(!this.data.has(U),"There is already an extension with this id"),this.data.set(U,j)},F.prototype.as=function(U){return this.data.get(U)||null},F}(),N=new ne},E2Od:function(wt,P,r){"use strict";r.d(P,"a",function(){return Pr});var I=r("djTL"),oe=r("g9ht"),ne=r("fF8p"),N=r("QqjT"),F=r("YK2C"),U=r("bN5T"),j=r("Ojgo"),G=r("+qpR"),R=r("Whdu"),E=r("vQ3m"),x=r("6+xD"),K=r("S7i+"),D=r("3HcJ"),A=r("mTMv"),te=r("oBNp"),z=r("dE3Z"),_=r("pfH9"),f=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),p=function(){function L(n,e){this.x=n,this.y=e}return L.prototype.toClientCoordinates=function(){return new g(this.x-ne.d.scrollX,this.y-ne.d.scrollY)},L}(),g=function(){function L(n,e){this.clientX=n,this.clientY=e}return L.prototype.toPageCoordinates=function(){return new p(this.clientX+ne.d.scrollX,this.clientY+ne.d.scrollY)},L}(),m=function(){function L(n,e,i,d){this.x=n,this.y=e,this.width=i,this.height=d}return L}();function w(L){var n=ne.B(L);return new m(n.left,n.top,n.width,n.height)}var B=function(L){f(n,L);function n(e,i){var d=L.call(this,e)||this;return d.pos=new p(d.posx,d.posy),d.editorPos=w(i),d}return n}(te.a),H=function(){function L(n){this._editorViewDomNode=n}return L.prototype._create=function(n){return new B(n,this._editorViewDomNode)},L.prototype.onContextMenu=function(n,e){var i=this;return ne.i(n,"contextmenu",function(d){e(i._create(d))})},L.prototype.onMouseUp=function(n,e){var i=this;return ne.i(n,"mouseup",function(d){e(i._create(d))})},L.prototype.onMouseDown=function(n,e){var i=this;return ne.i(n,"mousedown",function(d){e(i._create(d))})},L.prototype.onMouseLeave=function(n,e){var i=this;return ne.j(n,function(d){e(i._create(d))})},L.prototype.onMouseMoveThrottled=function(n,e,i,d){var c=this,M=function(le,He){return i(le,c._create(He))};return ne.l(n,"mousemove",e,M,d)},L}(),re=function(){function L(n){this._editorViewDomNode=n}return L.prototype._create=function(n){return new B(n,this._editorViewDomNode)},L.prototype.onPointerUp=function(n,e){var i=this;return ne.i(n,"pointerup",function(d){e(i._create(d))})},L.prototype.onPointerDown=function(n,e){var i=this;return ne.i(n,"pointerdown",function(d){e(i._create(d))})},L.prototype.onPointerLeave=function(n,e){var i=this;return ne.k(n,function(d){e(i._create(d))})},L.prototype.onPointerMoveThrottled=function(n,e,i,d){var c=this,M=function(le,He){return i(le,c._create(He))};return ne.l(n,"pointermove",e,M,d)},L}(),he=function(L){f(n,L);function n(e){var i=L.call(this)||this;return i._editorViewDomNode=e,i._globalMouseMoveMonitor=i._register(new _.a),i._keydownListener=null,i}return n.prototype.startMonitoring=function(e,i,d,c,M){var ge=this;this._keydownListener=ne.n(document,"keydown",function(He){var st=He.toKeybinding();if(st.isModifierKey())return;ge._globalMouseMoveMonitor.stopMonitoring(!0)},!0);var le=function(st,ht){return d(st,new B(ht,ge._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(e,i,le,c,function(){ge._keydownListener.dispose(),M()})},n}(U.a),Ee=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Se=function(L){Ee(n,L);function n(){var e=L.call(this)||this;return e._shouldRender=!0,e}return n.prototype.shouldRender=function(){return this._shouldRender},n.prototype.forceShouldRender=function(){this._shouldRender=!0},n.prototype.setShouldRender=function(){this._shouldRender=!0},n.prototype.onDidRender=function(){this._shouldRender=!1},n.prototype.onConfigurationChanged=function(e){return!1},n.prototype.onContentSizeChanged=function(e){return!1},n.prototype.onCursorStateChanged=function(e){return!1},n.prototype.onDecorationsChanged=function(e){return!1},n.prototype.onFlushed=function(e){return!1},n.prototype.onFocusChanged=function(e){return!1},n.prototype.onLanguageConfigurationChanged=function(e){return!1},n.prototype.onLineMappingChanged=function(e){return!1},n.prototype.onLinesChanged=function(e){return!1},n.prototype.onLinesDeleted=function(e){return!1},n.prototype.onLinesInserted=function(e){return!1},n.prototype.onRevealRangeRequest=function(e){return!1},n.prototype.onScrollChanged=function(e){return!1},n.prototype.onThemeChanged=function(e){return!1},n.prototype.onTokensChanged=function(e){return!1},n.prototype.onTokensColorsChanged=function(e){return!1},n.prototype.onZonesChanged=function(e){return!1},n.prototype.handleEvents=function(e){for(var i=!1,d=0,c=e.length;d<c;d++){var M=e[d];switch(M.type){case 1:this.onConfigurationChanged(M)&&(i=!0);break;case 2:this.onContentSizeChanged(M)&&(i=!0);break;case 3:this.onCursorStateChanged(M)&&(i=!0);break;case 4:this.onDecorationsChanged(M)&&(i=!0);break;case 5:this.onFlushed(M)&&(i=!0);break;case 6:this.onFocusChanged(M)&&(i=!0);break;case 7:this.onLanguageConfigurationChanged(M)&&(i=!0);break;case 8:this.onLineMappingChanged(M)&&(i=!0);break;case 9:this.onLinesChanged(M)&&(i=!0);break;case 10:this.onLinesDeleted(M)&&(i=!0);break;case 11:this.onLinesInserted(M)&&(i=!0);break;case 12:this.onRevealRangeRequest(M)&&(i=!0);break;case 13:this.onScrollChanged(M)&&(i=!0);break;case 15:this.onTokensChanged(M)&&(i=!0);break;case 14:this.onThemeChanged(M)&&(i=!0);break;case 16:this.onTokensColorsChanged(M)&&(i=!0);break;case 17:this.onZonesChanged(M)&&(i=!0);break;default:console.info("View received unknown event: "),console.info(M)}}i&&(this._shouldRender=!0)},n}(U.a),q=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Z=function(L){q(n,L);function n(e){var i=L.call(this)||this;return i._context=e,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),L.prototype.dispose.call(this)},n}(Se),ce=function(){function L(){}return L.write=function(n,e){n instanceof x.a,n.setAttribute("data-mprt",String(e))},L.read=function(n){var e=n.getAttribute("data-mprt");return e===null?0:parseInt(e,10)},L.collect=function(n,e){for(var i=[],d=0;n&&n!==document.body&&!(n===e);)n.nodeType===n.ELEMENT_NODE&&(i[d++]=this.read(n)),n=n.parentElement;for(var c=new Uint8Array(d),M=0;M<d;M++)c[M]=i[d-M-1];return c},L}(),Me=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ve=function(){function L(n,e){this._viewLayout=n,this.viewportData=e,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}return L.prototype.getScrolledTopFromAbsoluteTop=function(n){return n-this.scrollTop},L.prototype.getVerticalOffsetForLineNumber=function(n){return this._viewLayout.getVerticalOffsetForLineNumber(n)},L.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},L}(),_e=function(L){Me(n,L);function n(e,i,d){var c=L.call(this,e,i)||this;return c._viewLines=d,c}return n.prototype.linesVisibleRangesForRange=function(e,i){return this._viewLines.linesVisibleRangesForRange(e,i)},n.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)},n}(Ve),ue=function(){function L(n,e,i){this.outsideRenderedLine=n,this.lineNumber=e,this.ranges=i}return L}(),se=function(){function L(n,e){this.left=Math.round(n),this.width=Math.round(e)}return L.prototype.toString=function(){return"["+this.left+","+this.width+"]"},L}(),fe=function(){function L(n,e){this.outsideRenderedLine=n,this.left=Math.round(e)}return L}(),ie=function(){function L(n,e){this.outsideRenderedLine=n,this.ranges=e}return L}(),J=function(){function L(n,e){this.left=n,this.width=e}return L.prototype.toString=function(){return"["+this.left+","+this.width+"]"},L.compare=function(n,e){return n.left-e.left},L}(),me=function(){function L(){}return L._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},L._detachRange=function(n,e){n.selectNodeContents(e)},L._readClientRects=function(n,e,i,d,c){var M=this._createRange();try{return M.setStart(n,e),M.setEnd(i,d),M.getClientRects()}catch(ge){return null}finally{this._detachRange(M,c)}},L._mergeAdjacentRanges=function(n){if(n.length===1)return[new se(n[0].left,n[0].width)];n.sort(J.compare);for(var e=[],i=0,d=n[0].left,c=n[0].width,M=1,ge=n.length;M<ge;M++){var le=n[M],He=le.left,st=le.width;d+c+.9>=He?c=Math.max(c,He+st-d):(e[i++]=new se(d,c),d=He,c=st)}return e[i++]=new se(d,c),e},L._createHorizontalRangesFromClientRects=function(n,e){if(!n||n.length===0)return null;for(var i=[],d=0,c=n.length;d<c;d++){var M=n[d];i[d]=new J(Math.max(0,M.left-e),M.width)}return this._mergeAdjacentRanges(i)},L.readHorizontalRanges=function(n,e,i,d,c,M,ge){var le=0,He=n.children.length-1;if(le>He)return null;e=Math.min(He,Math.max(le,e)),d=Math.min(He,Math.max(le,d)),e!==d&&(d>0&&c===0&&(d--,c=1073741824));var st=n.children[e].firstChild,ht=n.children[d].firstChild;if((!st||!ht)&&(!st&&i===0&&e>0&&(st=n.children[e-1].firstChild,i=1073741824),!ht&&c===0&&d>0&&(ht=n.children[d-1].firstChild,c=1073741824)),!st||!ht)return null;i=Math.min(st.textContent.length,Math.max(0,i)),c=Math.min(ht.textContent.length,Math.max(0,c));var y=this._readClientRects(st,i,ht,c,ge);return this._createHorizontalRangesFromClientRects(y,M)},L}(),ye=r("UFql"),ze=r("o75R"),tt=r("TwZP"),_t=r("juCB"),Pt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xt=function(){return K.f?!0:!(K.d||A.h||A.k)}(),Ke=A.f,Xe=function(){function L(n,e){this._domNode=n,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=e}return Object.defineProperty(L.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),L}(),Ze=function(){function L(n,e){this.themeType=e;var i=n.options,d=i.get(34);this.renderWhitespace=i.get(74),this.renderControlCharacters=i.get(69),this.spaceWidth=d.spaceWidth,this.middotWidth=d.middotWidth,this.useMonospaceOptimizations=d.isMonospace&&!i.get(23),this.canUseHalfwidthRightwardsArrow=d.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(49),this.stopRenderingLineAfter=i.get(88),this.fontLigatures=i.get(35)}return L.prototype.equals=function(n){return this.themeType===n.themeType&&this.renderWhitespace===n.renderWhitespace&&this.renderControlCharacters===n.renderControlCharacters&&this.spaceWidth===n.spaceWidth&&this.middotWidth===n.middotWidth&&this.useMonospaceOptimizations===n.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===n.canUseHalfwidthRightwardsArrow&&this.lineHeight===n.lineHeight&&this.stopRenderingLineAfter===n.stopRenderingLineAfter&&this.fontLigatures===n.fontLigatures},L}(),Ye=function(){function L(n){this._options=n,this._isMaybeInvalid=!0,this._renderedViewLine=null}return L.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},L.prototype.setDomNode=function(n){if(this._renderedViewLine)this._renderedViewLine.domNode=Object(x.b)(n);else throw new Error("I have no rendered view line to set the dom node to...")},L.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},L.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},L.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},L.prototype.onOptionsChanged=function(n){this._isMaybeInvalid=!0,this._options=n},L.prototype.onSelectionChanged=function(){return Ke||this._options.themeType===tt.b||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1},L.prototype.renderLine=function(n,e,i,d){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var c=i.getViewLineRenderingData(n),M=this._options,ge=ye.a.filter(c.inlineDecorations,n,c.minColumn,c.maxColumn),le=null;if(Ke||M.themeType===tt.b||this._options.renderWhitespace==="selection")for(var He=i.selections,st=0,ht=He;st<ht.length;st++){var y=ht[st];if(y.endLineNumber<n||y.startLineNumber>n)continue;var u=y.startLineNumber===n?y.startColumn:c.minColumn,l=y.endLineNumber===n?y.endColumn:c.maxColumn;u<l&&(this._options.renderWhitespace!=="selection"?ge.push(new ye.a(u,l,"inline-selected-text",0)):(le||(le=[]),le.push(new ze.b(u-1,l-1))))}var b=new ze.c(M.useMonospaceOptimizations,M.canUseHalfwidthRightwardsArrow,c.content,c.continuesWithWrappedLine,c.isBasicASCII,c.containsRTL,c.minColumn-1,c.tokens,ge,c.tabSize,c.startVisibleColumn,M.spaceWidth,M.middotWidth,M.stopRenderingLineAfter,M.renderWhitespace,M.renderControlCharacters,M.fontLigatures!==_t.d.OFF,le);if(this._renderedViewLine&&this._renderedViewLine.input.equals(b))return!1;d.appendASCIIString('<div style="top:'),d.appendASCIIString(String(e)),d.appendASCIIString("px;height:"),d.appendASCIIString(String(this._options.lineHeight)),d.appendASCIIString('px;" class="'),d.appendASCIIString(L.CLASS_NAME),d.appendASCIIString('">');var S=Object(ze.d)(b,d);d.appendASCIIString("</div>");var C=null;return Xt&&c.isBasicASCII&&M.useMonospaceOptimizations&&S.containsForeignElements===0&&(c.content.length<300&&b.lineTokens.getCount()<100&&(C=new ke(this._renderedViewLine?this._renderedViewLine.domNode:null,b,S.characterMapping))),C||(C=k(this._renderedViewLine?this._renderedViewLine.domNode:null,b,S.characterMapping,S.containsRTL,S.containsForeignElements)),this._renderedViewLine=C,!0},L.prototype.layoutLine=function(n,e){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(e),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},L.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},L.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},L.prototype.getVisibleRangesForRange=function(n,e,i){if(!this._renderedViewLine)return null;n=n|0,e=e|0,n=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,n)),e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e));var d=this._renderedViewLine.input.stopRenderingLineAfter|0,c=!1;d!==-1&&n>d+1&&e>d+1&&(c=!0),d!==-1&&n>d+1&&(n=d+1),d!==-1&&e>d+1&&(e=d+1);var M=this._renderedViewLine.getVisibleRangesForRange(n,e,i);return M&&M.length>0?new ie(c,M):null},L.prototype.getColumnOfNodeOffset=function(n,e,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(n,e,i):1},L.CLASS_NAME="view-line",L}(),ke=function(){function L(n,e,i){this.domNode=n,this.input=e,this._characterMapping=i,this._charWidth=e.spaceWidth}return L.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},L.prototype.getWidthIsFast=function(){return!0},L.prototype.getVisibleRangesForRange=function(n,e,i){var d=this._getCharPosition(n),c=this._getCharPosition(e);return[new se(d,c-d)]},L.prototype._getCharPosition=function(n){var e=this._characterMapping.getAbsoluteOffsets();return e.length===0?0:Math.round(this._charWidth*e[n-1])},L.prototype.getColumnOfNodeOffset=function(n,e,i){for(var d=e.textContent.length,c=-1;e;)e=e.previousSibling,c++;var M=this._characterMapping.partDataToCharOffset(c,d,i);return M+1},L}(),$e=function(){function L(n,e,i,d,c){if(this.domNode=n,this.input=e,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(e.lineContent),this._containsForeignElements=c,this._cachedWidth=-1,this._pixelOffsetCache=null,!d||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var M=0,ge=this._characterMapping.length;M<=ge;M++)this._pixelOffsetCache[M]=-1}}return L.prototype._getReadingTarget=function(n){return n.domNode.firstChild},L.prototype.getWidth=function(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},L.prototype.getWidthIsFast=function(){return!(this._cachedWidth===-1)},L.prototype.getVisibleRangesForRange=function(n,e,i){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){var d=this._readPixelOffset(this.domNode,n,i);if(d===-1)return null;var c=this._readPixelOffset(this.domNode,e,i);return c===-1?null:[new se(d,c-d)]}return this._readVisibleRangesForRange(this.domNode,n,e,i)},L.prototype._readVisibleRangesForRange=function(n,e,i,d){if(e===i){var c=this._readPixelOffset(n,e,d);return c===-1?null:[new se(c,0)]}else return this._readRawVisibleRangesForRange(n,e,i,d)},L.prototype._readPixelOffset=function(n,e,i){if(this._characterMapping.length===0){if(this._containsForeignElements===0)return 0;if(this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();var d=this._getReadingTarget(n);return d.firstChild?d.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){var c=this._pixelOffsetCache[e];if(c!==-1)return c;var M=this._actualReadPixelOffset(n,e,i);return this._pixelOffsetCache[e]=M,M}return this._actualReadPixelOffset(n,e,i)},L.prototype._actualReadPixelOffset=function(n,e,i){if(this._characterMapping.length===0){var d=me.readHorizontalRanges(this._getReadingTarget(n),0,0,0,0,i.clientRectDeltaLeft,i.endNode);return!d||d.length===0?-1:d[0].left}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var c=this._characterMapping.charOffsetToPartData(e-1),M=ze.a.getPartIndex(c),ge=ze.a.getCharIndex(c),le=me.readHorizontalRanges(this._getReadingTarget(n),M,ge,M,ge,i.clientRectDeltaLeft,i.endNode);return!le||le.length===0?-1:le[0].left},L.prototype._readRawVisibleRangesForRange=function(n,e,i,d){if(e===1&&i===this._characterMapping.length)return[new se(0,this.getWidth())];var c=this._characterMapping.charOffsetToPartData(e-1),M=ze.a.getPartIndex(c),ge=ze.a.getCharIndex(c),le=this._characterMapping.charOffsetToPartData(i-1),He=ze.a.getPartIndex(le),st=ze.a.getCharIndex(le);return me.readHorizontalRanges(this._getReadingTarget(n),M,ge,He,st,d.clientRectDeltaLeft,d.endNode)},L.prototype.getColumnOfNodeOffset=function(n,e,i){for(var d=e.textContent.length,c=-1;e;)e=e.previousSibling,c++;var M=this._characterMapping.partDataToCharOffset(c,d,i);return M+1},L}(),we=function(L){Pt(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n.prototype._readVisibleRangesForRange=function(e,i,d,c){var M=L.prototype._readVisibleRangesForRange.call(this,e,i,d,c);if(!M||M.length===0||i===d||i===1&&d===this._characterMapping.length)return M;if(!this.input.containsRTL){var ge=this._readPixelOffset(e,d,c);if(ge!==-1){var le=M[M.length-1];le.left<ge&&(le.width=ge-le.left)}}return M},n}($e),k=function(){return A.m?ee:Pe}();function ee(L,n,e,i,d){return new we(L,n,e,i,d)}function Pe(L,n,e,i,d){return new $e(L,n,e,i,d)}var ve=r("V0RK"),Te=r("w9Cd"),Ie=r("g2LA"),pe=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),nt=function(){function L(n,e){this.lastViewCursorsRenderData=n,this.lastTextareaPosition=e}return L}(),Et=function(){function L(n,e,i,d,c,M){i===void 0&&(i=0),d===void 0&&(d=null),c===void 0&&(c=null),M===void 0&&(M=null),this.element=n,this.type=e,this.mouseColumn=i,this.position=d,!c&&d&&(c=new Te.a(d.lineNumber,d.column,d.lineNumber,d.column)),this.range=c,this.detail=M}return L._typeToString=function(n){return n===1?"TEXTAREA":n===2?"GUTTER_GLYPH_MARGIN":n===3?"GUTTER_LINE_NUMBERS":n===4?"GUTTER_LINE_DECORATIONS":n===5?"GUTTER_VIEW_ZONE":n===6?"CONTENT_TEXT":n===7?"CONTENT_EMPTY":n===8?"CONTENT_VIEW_ZONE":n===9?"CONTENT_WIDGET":n===10?"OVERVIEW_RULER":n===11?"SCROLLBAR":n===12?"OVERLAY_WIDGET":"UNKNOWN"},L.toString=function(n){return this._typeToString(n.type)+": "+n.position+" - "+n.range+" - "+n.detail},L.prototype.toString=function(){return L.toString(this)},L}(),Rt=function(){function L(){}return L.isTextArea=function(n){return n.length===2&&n[0]===3&&n[1]===6},L.isChildOfViewLines=function(n){return n.length>=4&&n[0]===3&&n[3]===7},L.isStrictChildOfViewLines=function(n){return n.length>4&&n[0]===3&&n[3]===7},L.isChildOfScrollableElement=function(n){return n.length>=2&&n[0]===3&&n[1]===5},L.isChildOfMinimap=function(n){return n.length>=2&&n[0]===3&&n[1]===8},L.isChildOfContentWidgets=function(n){return n.length>=4&&n[0]===3&&n[3]===1},L.isChildOfOverflowingContentWidgets=function(n){return n.length>=1&&n[0]===2},L.isChildOfOverlayWidgets=function(n){return n.length>=2&&n[0]===3&&n[1]===4},L}(),Tt=function(){function L(n,e,i){this.model=n.model;var d=n.configuration.options;this.layoutInfo=d.get(107),this.viewDomNode=e.viewDomNode,this.lineHeight=d.get(49),this.typicalHalfwidthCharacterWidth=d.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=n,this._viewHelper=e}return L.prototype.getZoneAtCoord=function(n){return L.getZoneAtCoord(this._context,n)},L.getZoneAtCoord=function(n,e){var i=n.viewLayout.getWhitespaceAtVerticalOffset(e);if(i){var d=i.verticalOffset+i.height/2,c=n.model.getLineCount(),M=null,ge=void 0,le=null;return i.afterLineNumber!==c&&(le=new ve.a(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(M=new ve.a(i.afterLineNumber,n.model.getLineMaxColumn(i.afterLineNumber))),le===null?ge=M:M===null?ge=le:e<d?ge=M:ge=le,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:M,positionAfter:le,position:ge}}return null},L.prototype.getFullLineRangeAtCoord=function(n){if(this._context.viewLayout.isAfterLines(n)){var e=this._context.model.getLineCount(),i=this._context.model.getLineMaxColumn(e);return{range:new Te.a(e,i,e,i),isAfterLines:!0}}var d=this._context.viewLayout.getLineNumberAtVerticalOffset(n),c=this._context.model.getLineMaxColumn(d);return{range:new Te.a(d,1,d,c),isAfterLines:!1}},L.prototype.getLineNumberAtVerticalOffset=function(n){return this._context.viewLayout.getLineNumberAtVerticalOffset(n)},L.prototype.isAfterLines=function(n){return this._context.viewLayout.isAfterLines(n)},L.prototype.getVerticalOffsetForLineNumber=function(n){return this._context.viewLayout.getVerticalOffsetForLineNumber(n)},L.prototype.findAttribute=function(n,e){return L._findAttribute(n,e,this._viewHelper.viewDomNode)},L._findAttribute=function(n,e,i){for(;n&&n!==document.body;){if(n.hasAttribute&&n.hasAttribute(e))return n.getAttribute(e);if(n===i)return null;n=n.parentNode}return null},L.prototype.getLineWidth=function(n){return this._viewHelper.getLineWidth(n)},L.prototype.visibleRangeForPosition=function(n,e){return this._viewHelper.visibleRangeForPosition(n,e)},L.prototype.getPositionFromDOMInfo=function(n,e){return this._viewHelper.getPositionFromDOMInfo(n,e)},L.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},L.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},L}(),Ht=function(){function L(n,e,i){this.editorPos=e,this.pos=i,this.mouseVerticalOffset=Math.max(0,n.getCurrentScrollTop()+i.y-e.y),this.mouseContentHorizontalOffset=n.getCurrentScrollLeft()+i.x-e.x-n.layoutInfo.contentLeft,this.isInMarginArea=i.x-e.x<n.layoutInfo.contentLeft&&i.x-e.x>=n.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,yn._getMouseColumn(this.mouseContentHorizontalOffset,n.typicalHalfwidthCharacterWidth))}return L}(),Gt=function(L){pe(n,L);function n(e,i,d,c){var M=L.call(this,e,i,d)||this;return M._ctx=e,c?(M.target=c,M.targetPath=ce.collect(c,e.viewDomNode)):(M.target=null,M.targetPath=new Uint8Array(0)),M}return n.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+`
|
|
target: `+(this.target?this.target.outerHTML:null)},n.prototype.fulfill=function(e,i,d,c){i===void 0&&(i=null),d===void 0&&(d=null),c===void 0&&(c=null);var M=this.mouseColumn;return i&&i.column<this._ctx.model.getLineMaxColumn(i.lineNumber)&&(M=Ie.a.visibleColumnFromColumn(this._ctx.model.getLineContent(i.lineNumber),i.column,this._ctx.model.getOptions().tabSize)+1),new Et(this.target,e,M,i,d,c)},n.prototype.withTarget=function(e){return new n(this._ctx,this.editorPos,this.pos,e)},n}(Ht),rn={isAfterLines:!0};function Ln(L){return{isAfterLines:!1,horizontalDistanceToText:L}}var yn=function(){function L(n,e){this._context=n,this._viewHelper=e}return L.prototype.mouseTargetIsWidget=function(n){var e=n.target,i=ce.collect(e,this._viewHelper.viewDomNode);return Rt.isChildOfContentWidgets(i)||Rt.isChildOfOverflowingContentWidgets(i)?!0:!!Rt.isChildOfOverlayWidgets(i)},L.prototype.createMouseTarget=function(n,e,i,d){var c=new Tt(this._context,this._viewHelper,n),M=new Gt(c,e,i,d);try{var ge=L._createMouseTarget(c,M,!1);return ge}catch(le){return M.fulfill(0)}},L._createMouseTarget=function(n,e,i){if(e.target===null){if(i)return e.fulfill(0);var d=L._doHitTest(n,e);return d.position?L.createMouseTargetFromHitTestPosition(n,e,d.position.lineNumber,d.position.column):this._createMouseTarget(n,e.withTarget(d.hitTarget),!0)}var c=e,M=null;return M=M||L._hitTestContentWidget(n,c),M=M||L._hitTestOverlayWidget(n,c),M=M||L._hitTestMinimap(n,c),M=M||L._hitTestScrollbarSlider(n,c),M=M||L._hitTestViewZone(n,c),M=M||L._hitTestMargin(n,c),M=M||L._hitTestViewCursor(n,c),M=M||L._hitTestTextArea(n,c),M=M||L._hitTestViewLines(n,c,i),M=M||L._hitTestScrollbar(n,c),M||e.fulfill(0)},L._hitTestContentWidget=function(n,e){if(Rt.isChildOfContentWidgets(e.targetPath)||Rt.isChildOfOverflowingContentWidgets(e.targetPath)){var i=n.findAttribute(e.target,"widgetId");return i?e.fulfill(9,null,null,i):e.fulfill(0)}return null},L._hitTestOverlayWidget=function(n,e){if(Rt.isChildOfOverlayWidgets(e.targetPath)){var i=n.findAttribute(e.target,"widgetId");return i?e.fulfill(12,null,null,i):e.fulfill(0)}return null},L._hitTestViewCursor=function(n,e){if(e.target)for(var i=n.lastRenderData.lastViewCursorsRenderData,d=0,c=i;d<c.length;d++){var M=c[d];if(e.target===M.domNode)return e.fulfill(6,M.position)}if(e.isInContentArea)for(var i=n.lastRenderData.lastViewCursorsRenderData,ge=e.mouseContentHorizontalOffset,le=e.mouseVerticalOffset,He=0,st=i;He<st.length;He++){var M=st[He];if(ge<M.contentLeft)continue;if(ge>M.contentLeft+M.width)continue;var ht=n.getVerticalOffsetForLineNumber(M.position.lineNumber);if(ht<=le&&le<=ht+M.height)return e.fulfill(6,M.position)}return null},L._hitTestViewZone=function(n,e){var i=n.getZoneAtCoord(e.mouseVerticalOffset);if(i){var d=e.isInContentArea?8:5;return e.fulfill(d,i.position,null,i)}return null},L._hitTestTextArea=function(n,e){return Rt.isTextArea(e.targetPath)?n.lastRenderData.lastTextareaPosition?e.fulfill(6,n.lastRenderData.lastTextareaPosition):e.fulfill(1,n.lastRenderData.lastTextareaPosition):null},L._hitTestMargin=function(n,e){if(e.isInMarginArea){var i=n.getFullLineRangeAtCoord(e.mouseVerticalOffset),d=i.range.getStartPosition(),c=Math.abs(e.pos.x-e.editorPos.x),M={isAfterLines:i.isAfterLines,glyphMarginLeft:n.layoutInfo.glyphMarginLeft,glyphMarginWidth:n.layoutInfo.glyphMarginWidth,lineNumbersWidth:n.layoutInfo.lineNumbersWidth,offsetX:c};return c-=n.layoutInfo.glyphMarginLeft,c<=n.layoutInfo.glyphMarginWidth?e.fulfill(2,d,i.range,M):(c-=n.layoutInfo.glyphMarginWidth,c<=n.layoutInfo.lineNumbersWidth?e.fulfill(3,d,i.range,M):(c-=n.layoutInfo.lineNumbersWidth,e.fulfill(4,d,i.range,M)))}return null},L._hitTestViewLines=function(n,e,i){if(!Rt.isChildOfViewLines(e.targetPath))return null;if(n.isAfterLines(e.mouseVerticalOffset)){var d=n.model.getLineCount(),c=n.model.getLineMaxColumn(d);return e.fulfill(7,new ve.a(d,c),void 0,rn)}if(i){if(Rt.isStrictChildOfViewLines(e.targetPath)){var M=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset);if(n.model.getLineLength(M)===0){var ge=n.getLineWidth(M),le=Ln(e.mouseContentHorizontalOffset-ge);return e.fulfill(7,new ve.a(M,1),void 0,le)}var He=n.getLineWidth(M);if(e.mouseContentHorizontalOffset>=He){var le=Ln(e.mouseContentHorizontalOffset-He),st=new ve.a(M,n.model.getLineMaxColumn(M));return e.fulfill(7,st,void 0,le)}}return e.fulfill(0)}var ht=L._doHitTest(n,e);return ht.position?L.createMouseTargetFromHitTestPosition(n,e,ht.position.lineNumber,ht.position.column):this._createMouseTarget(n,e.withTarget(ht.hitTarget),!0)},L._hitTestMinimap=function(n,e){if(Rt.isChildOfMinimap(e.targetPath)){var i=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),d=n.model.getLineMaxColumn(i);return e.fulfill(11,new ve.a(i,d))}return null},L._hitTestScrollbarSlider=function(n,e){if(Rt.isChildOfScrollableElement(e.targetPath)&&(e.target&&e.target.nodeType===1)){var i=e.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){var d=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),c=n.model.getLineMaxColumn(d);return e.fulfill(11,new ve.a(d,c))}}return null},L._hitTestScrollbar=function(n,e){if(Rt.isChildOfScrollableElement(e.targetPath)){var i=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),d=n.model.getLineMaxColumn(i);return e.fulfill(11,new ve.a(i,d))}return null},L.prototype.getMouseColumn=function(n,e){var i=this._context.configuration.options,d=i.get(107),c=this._context.viewLayout.getCurrentScrollLeft()+e.x-n.x-d.contentLeft;return L._getMouseColumn(c,i.get(34).typicalHalfwidthCharacterWidth)},L._getMouseColumn=function(n,e){if(n<0)return 1;var i=Math.round(n/e);return i+1},L.createMouseTargetFromHitTestPosition=function(n,e,i,d){var c=new ve.a(i,d),M=n.getLineWidth(i);if(e.mouseContentHorizontalOffset>M){if(A.e&&c.column===1){var ge=Ln(e.mouseContentHorizontalOffset-M);return e.fulfill(7,new ve.a(i,n.model.getLineMaxColumn(i)),void 0,ge)}var le=Ln(e.mouseContentHorizontalOffset-M);return e.fulfill(7,c,void 0,le)}var He=n.visibleRangeForPosition(i,d);if(!He)return e.fulfill(0,c);var st=He.left;if(e.mouseContentHorizontalOffset===st)return e.fulfill(6,c);var ht=[];if(ht.push({offset:He.left,column:d}),d>1){var y=n.visibleRangeForPosition(i,d-1);y&&ht.push({offset:y.left,column:d-1})}var u=n.model.getLineMaxColumn(i);if(d<u){var l=n.visibleRangeForPosition(i,d+1);l&&ht.push({offset:l.left,column:d+1})}ht.sort(function(Be,ot){return Be.offset-ot.offset});for(var b=1;b<ht.length;b++){var S=ht[b-1],C=ht[b];if(S.offset<=e.mouseContentHorizontalOffset&&e.mouseContentHorizontalOffset<=C.offset){var $=new Te.a(i,S.column,i,C.column);return e.fulfill(6,c,$)}}return e.fulfill(6,c)},L._doHitTestWithCaretRangeFromPoint=function(n,e){var i=n.getLineNumberAtVerticalOffset(e.mouseVerticalOffset),d=n.getVerticalOffsetForLineNumber(i),c=d+Math.floor(n.lineHeight/2),M=e.pos.y+(c-e.mouseVerticalOffset);M<=e.editorPos.y&&(M=e.editorPos.y+1),M>=e.editorPos.y+n.layoutInfo.height&&(M=e.editorPos.y+n.layoutInfo.height-1);var ge=new p(e.pos.x,M),le=this._actualDoHitTestWithCaretRangeFromPoint(n,ge.toClientCoordinates());return le.position?le:this._actualDoHitTestWithCaretRangeFromPoint(n,e.pos.toClientCoordinates())},L._actualDoHitTestWithCaretRangeFromPoint=function(n,e){var i=ne.D(n.viewDomNode),d;if(i?typeof i.caretRangeFromPoint=="undefined"?d=Tn(i,e.clientX,e.clientY):d=i.caretRangeFromPoint(e.clientX,e.clientY):d=document.caretRangeFromPoint(e.clientX,e.clientY),!d||!d.startContainer)return{position:null,hitTarget:null};var c=d.startContainer,M=null;if(c.nodeType===c.TEXT_NODE){var ge=c.parentNode,le=ge?ge.parentNode:null,He=le?le.parentNode:null,st=He&&He.nodeType===He.ELEMENT_NODE?He.className:null;if(st===Ye.CLASS_NAME){var ht=n.getPositionFromDOMInfo(ge,d.startOffset);return{position:ht,hitTarget:null}}else M=c.parentNode}else if(c.nodeType===c.ELEMENT_NODE){var ge=c.parentNode,le=ge?ge.parentNode:null,y=le&&le.nodeType===le.ELEMENT_NODE?le.className:null;if(y===Ye.CLASS_NAME){var ht=n.getPositionFromDOMInfo(c,c.textContent.length);return{position:ht,hitTarget:null}}else M=c}return{position:null,hitTarget:M}},L._doHitTestWithCaretPositionFromPoint=function(n,e){var i=document.caretPositionFromPoint(e.clientX,e.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){var d=i.offsetNode.parentNode,c=d?d.parentNode:null,M=c?c.parentNode:null,ge=M&&M.nodeType===M.ELEMENT_NODE?M.className:null;if(ge===Ye.CLASS_NAME){var le=n.getPositionFromDOMInfo(i.offsetNode.parentNode,i.offset);return{position:le,hitTarget:null}}else return{position:null,hitTarget:i.offsetNode.parentNode}}return{position:null,hitTarget:i.offsetNode}},L._doHitTestWithMoveToPoint=function(n,e){var i=null,d=null,c=document.body.createTextRange();try{c.moveToPoint(e.clientX,e.clientY)}catch(ht){return{position:null,hitTarget:null}}c.collapse(!0);var M=c?c.parentElement():null,ge=M?M.parentNode:null,le=ge?ge.parentNode:null,He=le&&le.nodeType===le.ELEMENT_NODE?le.className:"";if(He===Ye.CLASS_NAME){var st=c.duplicate();st.moveToElementText(M),st.setEndPoint("EndToStart",c),i=n.getPositionFromDOMInfo(M,st.text.length),st.moveToElementText(n.viewDomNode)}else d=M;return c.moveToElementText(n.viewDomNode),{position:i,hitTarget:d}},L._doHitTest=function(n,e){return typeof document.caretRangeFromPoint=="function"?this._doHitTestWithCaretRangeFromPoint(n,e):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(n,e.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(n,e.pos.toClientCoordinates()):{position:null,hitTarget:null}},L}();function Tn(L,n,e){var i=document.createRange(),d=L.elementFromPoint(n,e);if(d!==null){for(;d&&d.firstChild&&d.firstChild.nodeType!==d.firstChild.TEXT_NODE;)d=d.lastChild;var c=d.getBoundingClientRect(),M=window.getComputedStyle(d,null).getPropertyValue("font"),ge=d.innerText,le=c.left,He=0,st=void 0;if(n>c.left+c.width)He=ge.length;else for(var ht=Ft.getInstance(),y=0;y<ge.length+1;y++){if(st=ht.getCharWidth(ge.charAt(y),M)/2,le+=st,n<le){He=y;break}le+=st}i.setStart(d.firstChild,He),i.setEnd(d.firstChild,He)}return i}var Ft=function(){function L(){this._cache={},this._canvas=document.createElement("canvas")}return L.getInstance=function(){return L._INSTANCE||(L._INSTANCE=new L),L._INSTANCE},L.prototype.getCharWidth=function(n,e){var i=n+e;if(this._cache[i])return this._cache[i];var d=this._canvas.getContext("2d");d.font=e;var c=d.measureText(n),M=c.width;return this._cache[i]=M,M},L._INSTANCE=null,L}(),pt=r("CTBJ"),gt=r("F5bH"),Dt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function Lt(L){return function(n,e){var i=!1;return L&&(i=L.mouseTargetIsWidget(e)),i||e.preventDefault(),e}}var Vt=function(L){Dt(n,L);function n(e,i,d){var c=L.call(this)||this;c._isFocused=!1,c._context=e,c.viewController=i,c.viewHelper=d,c.mouseTargetFactory=new yn(c._context,d),c._mouseDownOperation=c._register(new Qt(c._context,c.viewController,c.viewHelper,function(le,He){return c._createMouseTarget(le,He)},function(le){return c._getMouseColumn(le)})),c._asyncFocus=c._register(new z.d(function(){return c.viewHelper.focusTextArea()},0)),c.lastMouseLeaveTime=-1;var M=new H(c.viewHelper.viewDomNode);c._register(M.onContextMenu(c.viewHelper.viewDomNode,function(le){return c._onContextMenu(le,!0)})),c._register(M.onMouseMoveThrottled(c.viewHelper.viewDomNode,function(le){return c._onMouseMove(le)},Lt(c.mouseTargetFactory),n.MOUSE_MOVE_MINIMUM_TIME)),c._register(M.onMouseUp(c.viewHelper.viewDomNode,function(le){return c._onMouseUp(le)})),c._register(M.onMouseLeave(c.viewHelper.viewDomNode,function(le){return c._onMouseLeave(le)})),c._register(M.onMouseDown(c.viewHelper.viewDomNode,function(le){return c._onMouseDown(le)}));var ge=function(He){if(c.viewController.emitMouseWheel(He),!c._context.configuration.options.get(57))return;var st=new te.b(He);if(st.browserEvent.ctrlKey||st.browserEvent.metaKey){var ht=pt.a.getZoomLevel(),y=st.deltaY>0?1:-1;pt.a.setZoomLevel(ht+y),st.preventDefault(),st.stopPropagation()}};return c._register(ne.i(c.viewHelper.viewDomNode,A.f?"mousewheel":"wheel",ge,{capture:!0,passive:!1})),c._context.addEventHandler(c),c}return n.prototype.dispose=function(){this._context.removeEventHandler(this),L.prototype.dispose.call(this)},n.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},n.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},n.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},n.prototype.getTargetAtClientPoint=function(e,i){var d=new g(e,i),c=d.toPageCoordinates(),M=w(this.viewHelper.viewDomNode);return c.y<M.y||c.y>M.y+M.height||c.x<M.x||c.x>M.x+M.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),M,c,null)},n.prototype._createMouseTarget=function(e,i){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,i?e.target:null)},n.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},n.prototype._onContextMenu=function(e,i){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,i)})},n.prototype._onMouseMove=function(e){if(this._mouseDownOperation.isActive())return;var i=e.timestamp;if(i<this.lastMouseLeaveTime)return;this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})},n.prototype._onMouseLeave=function(e){this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:e,target:null})},n.prototype._onMouseUp=function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})},n.prototype._onMouseDown=function(e){var i=this,d=this._createMouseTarget(e,!0),c=d.type===6||d.type===7,M=d.type===2||d.type===3||d.type===4,ge=d.type===3,le=this._context.configuration.options.get(83),He=d.type===8||d.type===5,st=d.type===9,ht=e.leftButton||e.middleButton;K.e&&e.leftButton&&e.ctrlKey&&(ht=!1);var y=function(){A.i&&!i._isFocused?i._asyncFocus.schedule():(e.preventDefault(),i.viewHelper.focusTextArea())};if(ht&&(c||ge&&le))y(),this._mouseDownOperation.start(d.type,e);else if(M)e.preventDefault();else if(He){var u=d.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(u.viewZoneId)&&(y(),this._mouseDownOperation.start(d.type,e),e.preventDefault())}else st&&this.viewHelper.shouldSuppressMouseDownOnWidget(d.detail)&&(y(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:d})},n.MOUSE_MOVE_MINIMUM_TIME=100,n}(Se),Qt=function(L){Dt(n,L);function n(e,i,d,c,M){var ge=L.call(this)||this;return ge._context=e,ge._viewController=i,ge._viewHelper=d,ge._createMouseTarget=c,ge._getMouseColumn=M,ge._mouseMoveMonitor=ge._register(new he(ge._viewHelper.viewDomNode)),ge._onScrollTimeout=ge._register(new z.e),ge._mouseState=new nn,ge._currentSelection=new gt.a(1,1,1,1),ge._isActive=!1,ge._lastMouseEvent=null,ge}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype.isActive=function(){return this._isActive},n.prototype._onMouseDownThenMove=function(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);var i=this._findMousePosition(e,!0);if(!i)return;this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:i}):this._dispatchMouse(i,!0)},n.prototype.start=function(e,i){var d=this;this._lastMouseEvent=i,this._mouseState.setStartedOnLineNumbers(e===3),this._mouseState.setStartButtons(i),this._mouseState.setModifiers(i);var c=this._findMousePosition(i,!0);if(!c||!c.position)return;this._mouseState.trySetCount(i.detail,c.position),i.detail=this._mouseState.count;var M=this._context.configuration.options;if(!M.get(68)&&M.get(24)&&!this._mouseState.altKey&&i.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&c.type===6&&c.position&&this._currentSelection.containsPosition(c.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,Lt(null),function(ge){return d._onMouseDownThenMove(ge)},function(){var ge=d._findMousePosition(d._lastMouseEvent,!0);d._viewController.emitMouseDrop({event:d._lastMouseEvent,target:ge?d._createMouseTarget(d._lastMouseEvent,!0):null}),d._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(c,i.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,Lt(null),function(ge){return d._onMouseDownThenMove(ge)},function(){return d._stop()}))},n.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},n.prototype.onScrollChanged=function(){var e=this;if(!this._isActive)return;this._onScrollTimeout.setIfNotSet(function(){if(!e._lastMouseEvent)return;var i=e._findMousePosition(e._lastMouseEvent,!1);if(!i)return;if(e._mouseState.isDragAndDrop)return;e._dispatchMouse(i,!0)},10)},n.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0]},n.prototype._getPositionOutsideEditor=function(e){var i=e.editorPos,d=this._context.model,c=this._context.viewLayout,M=this._getMouseColumn(e);if(e.posy<i.y){var ge=Math.max(c.getCurrentScrollTop()-(i.y-e.posy),0),le=Tt.getZoneAtCoord(this._context,ge);if(le){var He=this._helpPositionJumpOverViewZone(le);if(He)return new Et(null,13,M,He)}var st=c.getLineNumberAtVerticalOffset(ge);return new Et(null,13,M,new ve.a(st,1))}if(e.posy>i.y+i.height){var ge=c.getCurrentScrollTop()+(e.posy-i.y),le=Tt.getZoneAtCoord(this._context,ge);if(le){var He=this._helpPositionJumpOverViewZone(le);if(He)return new Et(null,13,M,He)}var ht=c.getLineNumberAtVerticalOffset(ge);return new Et(null,13,M,new ve.a(ht,d.getLineMaxColumn(ht)))}var y=c.getLineNumberAtVerticalOffset(c.getCurrentScrollTop()+(e.posy-i.y));return e.posx<i.x?new Et(null,13,M,new ve.a(y,1)):e.posx>i.x+i.width?new Et(null,13,M,new ve.a(y,d.getLineMaxColumn(y))):null},n.prototype._findMousePosition=function(e,i){var d=this._getPositionOutsideEditor(e);if(d)return d;var c=this._createMouseTarget(e,i),M=c.position;if(!M)return null;if(c.type===8||c.type===5){var ge=this._helpPositionJumpOverViewZone(c.detail);if(ge)return new Et(c.element,c.type,c.mouseColumn,ge,null,c.detail)}return c},n.prototype._helpPositionJumpOverViewZone=function(e){var i=new ve.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),d=e.positionBefore,c=e.positionAfter;return d&&c?d.isBefore(i)?d:c:null},n.prototype._dispatchMouse=function(e,i){if(!e.position)return;this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:i,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},n}(U.a),nn=function(){function L(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return Object.defineProperty(L.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),L.prototype.setModifiers=function(n){this._altKey=n.altKey,this._ctrlKey=n.ctrlKey,this._metaKey=n.metaKey,this._shiftKey=n.shiftKey},L.prototype.setStartButtons=function(n){this._leftButton=n.leftButton,this._middleButton=n.middleButton},L.prototype.setStartedOnLineNumbers=function(n){this._startedOnLineNumbers=n},L.prototype.trySetCount=function(n,e){var i=new Date().getTime();i-this._lastSetMouseDownCountTime>L.CLEAR_MOUSE_DOWN_COUNT_TIME&&(n=1),this._lastSetMouseDownCountTime=i,n>this._lastMouseDownCount+1&&(n=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(e)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=e,this._lastMouseDownCount=Math.min(n,this._lastMouseDownPositionEqualCount)},L.CLEAR_MOUSE_DOWN_COUNT_TIME=400,L}(),sn=r("Uq4v"),ln=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function En(L,n){var e={translationY:n.translationY,translationX:n.translationX};return L&&(e.translationY+=L.translationY,e.translationX+=L.translationX),e}var On=function(L){ln(n,L);function n(e,i,d){var c=L.call(this,e,i,d)||this;return c.viewHelper.linesContentDomNode.style.msTouchAction="none",c.viewHelper.linesContentDomNode.style.msContentZooming="none",c._installGestureHandlerTimeout=window.setTimeout(function(){if(c._installGestureHandlerTimeout=-1,window.MSGesture){var M=new MSGesture,ge=new MSGesture;M.target=c.viewHelper.linesContentDomNode,ge.target=c.viewHelper.linesContentDomNode,c.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(le){var He=le.pointerType;if(He===(le.MSPOINTER_TYPE_MOUSE||"mouse")){c._lastPointerType="mouse";return}else He===(le.MSPOINTER_TYPE_TOUCH||"touch")?(c._lastPointerType="touch",M.addPointer(le.pointerId)):(c._lastPointerType="pen",ge.addPointer(le.pointerId))}),c._register(ne.l(c.viewHelper.linesContentDomNode,"MSGestureChange",function(le){return c._onGestureChange(le)},En)),c._register(ne.i(c.viewHelper.linesContentDomNode,"MSGestureTap",function(le){return c._onCaptureGestureTap(le)},!0))}},100),c._lastPointerType="mouse",c}return n.prototype._onMouseDown=function(e){this._lastPointerType==="mouse"&&L.prototype._onMouseDown.call(this,e)},n.prototype._onCaptureGestureTap=function(e){var i=this,d=new B(e,this.viewHelper.viewDomNode),c=this._createMouseTarget(d,!1);c.position&&this.viewController.moveTo(c.position),d.browserEvent.fromElement?(d.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},n.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),L.prototype.dispose.call(this)},n}(Vt),Pn=function(L){ln(n,L);function n(e,i,d){var c=L.call(this,e,i,d)||this;return c.viewHelper.linesContentDomNode.style.touchAction="none",c._installGestureHandlerTimeout=window.setTimeout(function(){if(c._installGestureHandlerTimeout=-1,window.MSGesture){var M=new MSGesture,ge=new MSGesture;M.target=c.viewHelper.linesContentDomNode,ge.target=c.viewHelper.linesContentDomNode,c.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(le){var He=le.pointerType;if(He==="mouse"){c._lastPointerType="mouse";return}else He==="touch"?(c._lastPointerType="touch",M.addPointer(le.pointerId)):(c._lastPointerType="pen",ge.addPointer(le.pointerId))}),c._register(ne.l(c.viewHelper.linesContentDomNode,"MSGestureChange",function(le){return c._onGestureChange(le)},En)),c._register(ne.i(c.viewHelper.linesContentDomNode,"MSGestureTap",function(le){return c._onCaptureGestureTap(le)},!0))}},100),c._lastPointerType="mouse",c}return n.prototype._onMouseDown=function(e){this._lastPointerType==="mouse"&&L.prototype._onMouseDown.call(this,e)},n.prototype._onCaptureGestureTap=function(e){var i=this,d=new B(e,this.viewHelper.viewDomNode),c=this._createMouseTarget(d,!1);c.position&&this.viewController.moveTo(c.position),d.browserEvent.fromElement?(d.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},n.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),L.prototype.dispose.call(this)},n}(Vt),Gn=function(L){ln(n,L);function n(e,i,d){var c=L.call(this,e,i,d)||this;c._register(D.b.addTarget(c.viewHelper.linesContentDomNode)),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Tap,function(ge){return c.onTap(ge)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Change,function(ge){return c.onChange(ge)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Contextmenu,function(ge){return c._onContextMenu(new B(ge,c.viewHelper.viewDomNode),!1)})),c._lastPointerType="mouse",c._register(ne.i(c.viewHelper.linesContentDomNode,"pointerdown",function(ge){var le=ge.pointerType;if(le==="mouse"){c._lastPointerType="mouse";return}else le==="touch"?c._lastPointerType="touch":c._lastPointerType="pen"}));var M=new re(c.viewHelper.viewDomNode);return c._register(M.onPointerMoveThrottled(c.viewHelper.viewDomNode,function(ge){return c._onMouseMove(ge)},Lt(c.mouseTargetFactory),Vt.MOUSE_MOVE_MINIMUM_TIME)),c._register(M.onPointerUp(c.viewHelper.viewDomNode,function(ge){return c._onMouseUp(ge)})),c._register(M.onPointerLeave(c.viewHelper.viewDomNode,function(ge){return c._onMouseLeave(ge)})),c._register(M.onPointerDown(c.viewHelper.viewDomNode,function(ge){return c._onMouseDown(ge)})),c}return n.prototype.onTap=function(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new B(e,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})},n.prototype.onChange=function(e){this._lastPointerType==="touch"&&this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n.prototype._onMouseDown=function(e){if(e.target&&this.viewHelper.linesContentDomNode.contains(e.target)&&this._lastPointerType==="touch")return;L.prototype._onMouseDown.call(this,e)},n}(Vt),Qn=function(L){ln(n,L);function n(e,i,d){var c=L.call(this,e,i,d)||this;return c._register(D.b.addTarget(c.viewHelper.linesContentDomNode)),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Tap,function(M){return c.onTap(M)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Change,function(M){return c.onChange(M)})),c._register(ne.i(c.viewHelper.linesContentDomNode,D.a.Contextmenu,function(M){return c._onContextMenu(new B(M,c.viewHelper.viewDomNode),!1)})),c}return n.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new B(e,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.moveTo(i.position)},n.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},n}(Vt),Jn=function(L){ln(n,L);function n(e,i,d){var c=L.call(this)||this;return window.navigator.msPointerEnabled?c.handler=c._register(new On(e,i,d)):K.c&&sn.a.pointerEvents?c.handler=c._register(new Gn(e,i,d)):window.TouchEvent?c.handler=c._register(new Qn(e,i,d)):window.navigator.pointerEnabled||window.PointerEvent?c.handler=c._register(new Pn(e,i,d)):c.handler=c._register(new Vt(e,i,d)),c}return n.prototype.getTargetAtClientPoint=function(e,i){return this.handler.getTargetAtClientPoint(e,i)},n}(U.a),gi=r("mhhl"),Kn=r("yBOt"),yi=r("0pVj"),mi=r("Cp6c"),vt=r("jUI+"),Mt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),zt=function(L){Mt(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n}(Se),tn=r("4u7V"),Ut=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Sn=function(L){Ut(n,L);function n(e){var i=L.call(this)||this;return i._context=e,i._readConfig(),i._lastCursorModelPosition=new ve.a(1,1),i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype._readConfig=function(){var e=this._context.configuration.options;this._lineHeight=e.get(49);var i=e.get(50);this._renderLineNumbers=i.renderType,this._renderCustomLineNumbers=i.renderFn,this._renderFinalNewline=e.get(71);var d=e.get(107);this._lineNumbersLeft=d.lineNumbersLeft,this._lineNumbersWidth=d.lineNumbersWidth},n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},n.prototype.onCursorStateChanged=function(e){var i=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(i),this._renderLineNumbers===2||this._renderLineNumbers===3},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getLineRenderLineNumber=function(e){var i=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(e,1));if(i.column!==1)return"";var d=i.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(d);if(this._renderLineNumbers===2){var c=Math.abs(this._lastCursorModelPosition.lineNumber-d);return c===0?'<span class="relative-current-line-number">'+d+"</span>":String(c)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===d||d%10===0?String(d):"":String(d)},n.prototype.prepareRender=function(e){if(this._renderLineNumbers===0){this._renderResult=null;return}for(var i=K.d?this._lineHeight%2===0?" lh-even":" lh-odd":"",d=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,M='<div class="'+n.CLASS_NAME+i+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',ge=this._context.model.getLineCount(),le=[],He=d;He<=c;He++){var st=He-d;if(!this._renderFinalNewline&&(He===ge&&this._context.model.getLineLength(He)===0)){le[st]="";continue}var ht=this._getLineRenderLineNumber(He);ht?le[st]=M+ht+"</div>":le[st]=""}this._renderResult=le},n.prototype.render=function(e,i){if(!this._renderResult)return"";var d=i-e;return d<0||d>=this._renderResult.length?"":this._renderResult[d]},n.CLASS_NAME="line-numbers",n}(zt);Object(tt.e)(function(L,n){var e=L.getColor(tn.j);e&&n.addRule(".monaco-editor .line-numbers { color: "+e+"; }");var i=L.getColor(tn.b);i&&n.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var Rn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Bn=function(L){Rn(n,L);function n(e){var i=L.call(this,e)||this,d=i._context.configuration.options,c=d.get(107);return i._canUseLayerHinting=!d.get(22),i._contentLeft=c.contentLeft,i._glyphMarginLeft=c.glyphMarginLeft,i._glyphMarginWidth=c.glyphMarginWidth,i._domNode=Object(x.b)(document.createElement("div")),i._domNode.setClassName(n.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=Object(x.b)(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(n.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._canUseLayerHinting=!i.get(22),this._contentLeft=d.contentLeft,this._glyphMarginLeft=d.glyphMarginLeft,this._glyphMarginWidth=d.glyphMarginWidth,!0},n.prototype.onScrollChanged=function(e){return L.prototype.onScrollChanged.call(this,e)||e.scrollTopChanged},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var i=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-i);var d=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(d),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(d)},n.CLASS_NAME="glyph-margin",n.OUTER_CLASS_NAME="margin",n}(Z),Fn=r("ATqw"),ri=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ci=function(){function L(n){this.type=1,this._source=n}return L.prototype.hasChanged=function(n){return this._source.hasChanged(n)},L}(),zi=function(){function L(n){this.type=2,this.contentWidth=n.contentWidth,this.contentHeight=n.contentHeight,this.contentWidthChanged=n.contentWidthChanged,this.contentHeightChanged=n.contentHeightChanged}return L}(),oo=function(){function L(n,e){this.type=3,this.selections=n,this.modelSelections=e}return L}(),Zn=function(){function L(){this.type=4}return L}(),Ii=function(){function L(){this.type=5}return L}(),Si=function(){function L(n){this.type=6,this.isFocused=n}return L}(),ji=function(){function L(){this.type=7}return L}(),Un=function(){function L(){this.type=8}return L}(),Ci=function(){function L(n,e){this.type=9,this.fromLineNumber=n,this.toLineNumber=e}return L}(),Wi=function(){function L(n,e){this.type=10,this.fromLineNumber=n,this.toLineNumber=e}return L}(),Ti=function(){function L(n,e){this.type=11,this.fromLineNumber=n,this.toLineNumber=e}return L}(),Gi=function(){function L(n,e,i,d,c){this.type=12,this.source=n,this.range=e,this.verticalType=i,this.revealHorizontal=d,this.scrollType=c}return L}(),Bi=function(){function L(n){this.type=13,this.scrollWidth=n.scrollWidth,this.scrollLeft=n.scrollLeft,this.scrollHeight=n.scrollHeight,this.scrollTop=n.scrollTop,this.scrollWidthChanged=n.scrollWidthChanged,this.scrollLeftChanged=n.scrollLeftChanged,this.scrollHeightChanged=n.scrollHeightChanged,this.scrollTopChanged=n.scrollTopChanged}return L}(),vi=function(){function L(){this.type=14}return L}(),qi=function(){function L(n){this.type=15,this.ranges=n}return L}(),ro=function(){function L(){this.type=16}return L}(),bi=function(){function L(){this.type=17}return L}(),Di=function(L){ri(n,L);function n(){var e=L.call(this)||this;return e._listeners=[],e._collector=null,e._collectorCnt=0,e}return n.prototype.dispose=function(){this._listeners=[],L.prototype.dispose.call(this)},n.prototype._beginEmit=function(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new Xi),this._collector},n.prototype._endEmit=function(){if(this._collectorCnt--,this._collectorCnt===0){var e=this._collector.finalize();this._collector=null,e.length>0&&this._emit(e)}},n.prototype._emit=function(e){for(var i=this._listeners.slice(0),d=0,c=i.length;d<c;d++)lo(i[d],e)},n.prototype.addEventListener=function(e){var i=this;return this._listeners.push(e),Object(U.h)(function(){for(var d=i._listeners,c=0,M=d.length;c<M;c++)if(d[c]===e){d.splice(c,1);break}})},n}(U.a),Xi=function(){function L(){this._eventsLen=0,this._events=[],this._eventsLen=0}return L.prototype.emit=function(n){this._events[this._eventsLen++]=n},L.prototype.finalize=function(){var n=this._events;return this._events=[],n},L}();function lo(L,n){try{L(n)}catch(e){N.e(e)}}var Mi=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),so=function(){function L(n,e,i){this.top=n,this.left=e,this.width=i}return L.prototype.setWidth=function(n){return new L(this.top,this.left,n)},L}(),Je=A.f||A.h,O=function(L){Mi(n,L);function n(e,i,d){var c=L.call(this,e)||this;c._primaryCursorPosition=new ve.a(1,1),c._primaryCursorVisibleRange=null,c._viewController=i,c._viewHelper=d,c._scrollLeft=0,c._scrollTop=0;var M=c._context.configuration.options,ge=M.get(107);c._setAccessibilityOptions(M),c._contentLeft=ge.contentLeft,c._contentWidth=ge.contentWidth,c._contentHeight=ge.height,c._fontInfo=M.get(34),c._lineHeight=M.get(49),c._emptySelectionClipboard=M.get(25),c._copyWithSyntaxHighlighting=M.get(15),c._visibleTextArea=null,c._selections=[new gt.a(1,1,1,1)],c._modelSelections=[new gt.a(1,1,1,1)],c._lastRenderPosition=null,c.textArea=Object(x.b)(document.createElement("textarea")),ce.write(c.textArea,6),c.textArea.setClassName("inputarea"),c.textArea.setAttribute("wrap","off"),c.textArea.setAttribute("autocorrect","off"),c.textArea.setAttribute("autocapitalize","off"),c.textArea.setAttribute("autocomplete","off"),c.textArea.setAttribute("spellcheck","false"),c.textArea.setAttribute("aria-label",c._getAriaLabel(M)),c.textArea.setAttribute("role","textbox"),c.textArea.setAttribute("aria-multiline","true"),c.textArea.setAttribute("aria-haspopup","false"),c.textArea.setAttribute("aria-autocomplete","both"),K.g&&M.get(68)&&c.textArea.setAttribute("readonly","true"),c.textAreaCover=Object(x.b)(document.createElement("div")),c.textAreaCover.setPosition("absolute");var le={getLineCount:function(){return c._context.model.getLineCount()},getLineMaxColumn:function(ht){return c._context.model.getLineMaxColumn(ht)},getValueInRange:function(ht,y){return c._context.model.getValueInRange(ht,y)}},He={getDataToCopy:function(ht){var y=c._context.model.getPlainTextToCopy(c._modelSelections,c._emptySelectionClipboard,K.h),u=c._context.model.getEOL(),l=c._emptySelectionClipboard&&c._modelSelections.length===1&&c._modelSelections[0].isEmpty(),b=Array.isArray(y)?y:null,S=Array.isArray(y)?y.join(u):y,C=void 0,$=null;if(ht&&(yi.a.forceCopyWithSyntaxHighlighting||c._copyWithSyntaxHighlighting&&S.length<65536)){var Be=c._context.model.getRichTextToCopy(c._modelSelections,c._emptySelectionClipboard);Be&&(C=Be.html,$=Be.mode)}return{isFromEmptySelection:l,multicursorText:b,text:S,html:C,mode:$}},getScreenReaderContent:function(ht){if(A.j)return mi.b.EMPTY;if(c._accessibilitySupport===1){if(K.e){var y=c._selections[0];if(y.isEmpty()){var u=y.getStartPosition(),l=c._getWordBeforePosition(u);if(l.length===0&&(l=c._getCharacterBeforePosition(u)),l.length>0)return new mi.b(l,l.length,l.length,u,u)}}return mi.b.EMPTY}return mi.a.fromEditorSelection(ht,le,c._selections[0],c._accessibilityPageSize,c._accessibilitySupport===0)},deduceModelPosition:function(ht,y,u){return c._context.model.deduceModelPositionRelativeToViewPosition(ht,y,u)}};return c._textAreaInput=c._register(new yi.b(He,c.textArea)),c._register(c._textAreaInput.onKeyDown(function(st){c._viewController.emitKeyDown(st)})),c._register(c._textAreaInput.onKeyUp(function(st){c._viewController.emitKeyUp(st)})),c._register(c._textAreaInput.onPaste(function(st){var ht=!1,y=null,u=null;st.metadata&&(ht=c._emptySelectionClipboard&&!!st.metadata.isFromEmptySelection,y=typeof st.metadata.multicursorText!="undefined"?st.metadata.multicursorText:null,u=st.metadata.mode),c._viewController.paste("keyboard",st.text,ht,y,u)})),c._register(c._textAreaInput.onCut(function(){c._viewController.cut("keyboard")})),c._register(c._textAreaInput.onType(function(st){st.replaceCharCnt?c._viewController.replacePreviousChar("keyboard",st.text,st.replaceCharCnt):c._viewController.type("keyboard",st.text)})),c._register(c._textAreaInput.onSelectionChangeRequest(function(st){c._viewController.setSelection("keyboard",st)})),c._register(c._textAreaInput.onCompositionStart(function(){var st=c._selections[0].startLineNumber,ht=c._selections[0].startColumn;c._context.privateViewEventBus.emit(new Gi("keyboard",new Te.a(st,ht,st,ht),0,!0,1));var y=c._viewHelper.visibleRangeForPositionRelativeToEditor(st,ht);y&&(c._visibleTextArea=new so(c._context.viewLayout.getVerticalOffsetForLineNumber(st),y.left,Je?0:1),c._render()),c.textArea.setClassName("inputarea ime-input"),c._viewController.compositionStart("keyboard")})),c._register(c._textAreaInput.onCompositionUpdate(function(st){A.f?c._visibleTextArea=c._visibleTextArea.setWidth(0):c._visibleTextArea=c._visibleTextArea.setWidth(T(st.data,c._fontInfo)),c._render()})),c._register(c._textAreaInput.onCompositionEnd(function(){c._visibleTextArea=null,c._render(),c.textArea.setClassName("inputarea"),c._viewController.compositionEnd("keyboard")})),c._register(c._textAreaInput.onFocus(function(){c._context.privateViewEventBus.emit(new Si(!0))})),c._register(c._textAreaInput.onBlur(function(){c._context.privateViewEventBus.emit(new Si(!1))})),c}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype._getWordBeforePosition=function(e){for(var i=this._context.model.getLineContent(e.lineNumber),d=Object(Fn.a)(this._context.configuration.options.get(96)),c=e.column,M=0;c>1;){var ge=i.charCodeAt(c-2),le=d.get(ge);if(le!==0||M>50)return i.substring(c-1,e.column-1);M++,c--}return i.substring(0,e.column-1)},n.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var i=this._context.model.getLineContent(e.lineNumber),d=i.charAt(e.column-2);if(!Kn.z(d.charCodeAt(0)))return d}return""},n.prototype._getAriaLabel=function(e){var i=e.get(2);return i===1?oe.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.get(4)},n.prototype._setAccessibilityOptions=function(e){this._accessibilitySupport=e.get(2);var i=e.get(3);this._accessibilitySupport===2&&i===_t.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=i},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._setAccessibilityOptions(i),this._contentLeft=d.contentLeft,this._contentWidth=d.contentWidth,this._contentHeight=d.height,this._fontInfo=i.get(34),this._lineHeight=i.get(49),this._emptySelectionClipboard=i.get(25),this._copyWithSyntaxHighlighting=i.get(15),this.textArea.setAttribute("aria-label",this._getAriaLabel(i)),K.g&&e.hasChanged(68)&&(i.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},n.prototype.onZonesChanged=function(e){return!0},n.prototype.isFocused=function(){return this._textAreaInput.isFocused()},n.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},n.prototype.getLastRenderData=function(){return this._lastRenderPosition},n.prototype.setAriaOptions=function(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant"))},n.prototype.prepareRender=function(e){this._primaryCursorPosition=new ve.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)},n.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},n.prototype._render=function(){if(this._visibleTextArea){this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth){this._renderAtTopLeft();return}var i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight){this._renderAtTopLeft();return}if(K.e){this._renderInsideEditor(this._primaryCursorPosition,i,e,Je?0:1,this._lineHeight);return}this._renderInsideEditor(this._primaryCursorPosition,i,e,Je?0:1,Je?0:1)},n.prototype._renderInsideEditor=function(e,i,d,c,M){this._lastRenderPosition=e;var ge=this.textArea,le=this.textAreaCover;G.a.applyFontInfo(ge,this._fontInfo),ge.setTop(i),ge.setLeft(d),ge.setWidth(c),ge.setHeight(M),le.setTop(0),le.setLeft(0),le.setWidth(0),le.setHeight(0)},n.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var e=this.textArea,i=this.textAreaCover;if(G.a.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),i.setTop(0),i.setLeft(0),Je){e.setWidth(0),e.setHeight(0),i.setWidth(0),i.setHeight(0);return}e.setWidth(1),e.setHeight(1),i.setWidth(1),i.setHeight(1);var d=this._context.configuration.options;d.get(40)?i.setClassName("monaco-editor-background textAreaCover "+Bn.OUTER_CLASS_NAME):d.get(50).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+Sn.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")},n}(Z);function T(L,n){var e=document.createElement("canvas"),i=e.getContext("2d");i.font=Y(n);var d=i.measureText(L);return A.h?d.width+2:d.width}function Y(L){return De("normal",L.fontWeight,L.fontSize,L.lineHeight,L.fontFamily)}function De(L,n,e,i,d){return L+" normal "+n+" "+e+"px / "+i+"px "+d}var Re=r("L4jf"),We=function(){function L(n,e,i,d){this.configuration=n,this.viewModel=e,this.outgoingEvents=i,this.commandDelegate=d}return L.prototype._execMouseCommand=function(n,e){e.source="mouse",this.commandDelegate.executeEditorCommand(n,e)},L.prototype.paste=function(n,e,i,d,c){this.commandDelegate.paste(n,e,i,d,c)},L.prototype.type=function(n,e){this.commandDelegate.type(n,e)},L.prototype.replacePreviousChar=function(n,e,i){this.commandDelegate.replacePreviousChar(n,e,i)},L.prototype.compositionStart=function(n){this.commandDelegate.compositionStart(n)},L.prototype.compositionEnd=function(n){this.commandDelegate.compositionEnd(n)},L.prototype.cut=function(n){this.commandDelegate.cut(n)},L.prototype.setSelection=function(n,e){this.commandDelegate.executeEditorCommand(Re.CoreNavigationCommands.SetSelection,{source:n,selection:e})},L.prototype._validateViewColumn=function(n){var e=this.viewModel.getLineMinColumn(n.lineNumber);return n.column<e?new ve.a(n.lineNumber,e):n},L.prototype._hasMulticursorModifier=function(n){switch(this.configuration.options.get(59)){case"altKey":return n.altKey;case"ctrlKey":return n.ctrlKey;case"metaKey":return n.metaKey}return!1},L.prototype._hasNonMulticursorModifier=function(n){switch(this.configuration.options.get(59)){case"altKey":return n.ctrlKey||n.metaKey;case"ctrlKey":return n.altKey||n.metaKey;case"metaKey":return n.ctrlKey||n.altKey}return!1},L.prototype.dispatchMouse=function(n){var e=K.d&&this.configuration.options.get(81);n.middleButton&&!e?this._columnSelect(n.position,n.mouseColumn,n.inSelectionMode):n.startedOnLineNumbers?this._hasMulticursorModifier(n)?n.inSelectionMode?this._lastCursorLineSelect(n.position):this._createCursor(n.position,!0):n.inSelectionMode?this._lineSelectDrag(n.position):this._lineSelect(n.position):n.mouseDownCount>=4?this._selectAll():n.mouseDownCount===3?this._hasMulticursorModifier(n)?n.inSelectionMode?this._lastCursorLineSelectDrag(n.position):this._lastCursorLineSelect(n.position):n.inSelectionMode?this._lineSelectDrag(n.position):this._lineSelect(n.position):n.mouseDownCount===2?this._hasMulticursorModifier(n)?this._lastCursorWordSelect(n.position):n.inSelectionMode?this._wordSelectDrag(n.position):this._wordSelect(n.position):this._hasMulticursorModifier(n)?this._hasNonMulticursorModifier(n)||(n.shiftKey?this._columnSelect(n.position,n.mouseColumn,!0):n.inSelectionMode?this._lastCursorMoveToSelect(n.position):this._createCursor(n.position,!1)):n.inSelectionMode?n.altKey?this._columnSelect(n.position,n.mouseColumn,!0):this._moveToSelect(n.position):this.moveTo(n.position)},L.prototype._usualArgs=function(n){return n=this._validateViewColumn(n),{position:this._convertViewToModelPosition(n),viewPosition:n}},L.prototype.moveTo=function(n){this._execMouseCommand(Re.CoreNavigationCommands.MoveTo,this._usualArgs(n))},L.prototype._moveToSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.MoveToSelect,this._usualArgs(n))},L.prototype._columnSelect=function(n,e,i){n=this._validateViewColumn(n),this._execMouseCommand(Re.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(n),viewPosition:n,mouseColumn:e,doColumnSelect:i})},L.prototype._createCursor=function(n,e){n=this._validateViewColumn(n),this._execMouseCommand(Re.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(n),viewPosition:n,wholeLine:e})},L.prototype._lastCursorMoveToSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(n))},L.prototype._wordSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.WordSelect,this._usualArgs(n))},L.prototype._wordSelectDrag=function(n){this._execMouseCommand(Re.CoreNavigationCommands.WordSelectDrag,this._usualArgs(n))},L.prototype._lastCursorWordSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(n))},L.prototype._lineSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LineSelect,this._usualArgs(n))},L.prototype._lineSelectDrag=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LineSelectDrag,this._usualArgs(n))},L.prototype._lastCursorLineSelect=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(n))},L.prototype._lastCursorLineSelectDrag=function(n){this._execMouseCommand(Re.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(n))},L.prototype._selectAll=function(){this._execMouseCommand(Re.CoreNavigationCommands.SelectAll,{})},L.prototype._convertViewToModelPosition=function(n){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(n)},L.prototype.emitKeyDown=function(n){this.outgoingEvents.emitKeyDown(n)},L.prototype.emitKeyUp=function(n){this.outgoingEvents.emitKeyUp(n)},L.prototype.emitContextMenu=function(n){this.outgoingEvents.emitContextMenu(n)},L.prototype.emitMouseMove=function(n){this.outgoingEvents.emitMouseMove(n)},L.prototype.emitMouseLeave=function(n){this.outgoingEvents.emitMouseLeave(n)},L.prototype.emitMouseUp=function(n){this.outgoingEvents.emitMouseUp(n)},L.prototype.emitMouseDown=function(n){this.outgoingEvents.emitMouseDown(n)},L.prototype.emitMouseDrag=function(n){this.outgoingEvents.emitMouseDrag(n)},L.prototype.emitMouseDrop=function(n){this.outgoingEvents.emitMouseDrop(n)},L.prototype.emitMouseWheel=function(n){this.outgoingEvents.emitMouseWheel(n)},L}(),ft=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),lt=function(L){ft(n,L);function n(e){var i=L.call(this)||this;return i.onDidContentSizeChange=null,i.onDidScroll=null,i.onDidGainFocus=null,i.onDidLoseFocus=null,i.onKeyDown=null,i.onKeyUp=null,i.onContextMenu=null,i.onMouseMove=null,i.onMouseLeave=null,i.onMouseUp=null,i.onMouseDown=null,i.onMouseDrag=null,i.onMouseDrop=null,i.onMouseWheel=null,i._viewModel=e,i}return n.prototype.emitContentSizeChange=function(e){this.onDidContentSizeChange&&this.onDidContentSizeChange(e)},n.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)},n.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},n.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},n.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)},n.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)},n.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))},n.prototype.emitMouseWheel=function(e){this.onMouseWheel&&this.onMouseWheel(e)},n.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e},n.prototype._convertViewToModelMouseTarget=function(e){return n.convertViewToModelMouseTarget(e,this._viewModel.coordinatesConverter)},n.convertViewToModelMouseTarget=function(e,i){return new yt(e.element,e.type,e.mouseColumn,e.position?i.convertViewPositionToModelPosition(e.position):null,e.range?i.convertViewRangeToModelRange(e.range):null,e.detail)},n}(U.a),yt=function(){function L(n,e,i,d,c,M){this.element=n,this.type=e,this.mouseColumn=i,this.position=d,this.range=c,this.detail=M}return L.prototype.toString=function(){return Et.toString(this)},L}(),xt=r("I+kL"),It=function(){function L(n){this._createLine=n,this._set(1,[])}return L.prototype.flush=function(){this._set(1,[])},L.prototype._set=function(n,e){this._lines=e,this._rendLineNumberStart=n},L.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},L.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},L.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},L.prototype.getCount=function(){return this._lines.length},L.prototype.getLine=function(n){var e=n-this._rendLineNumberStart;if(e<0||e>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[e]},L.prototype.onLinesDeleted=function(n,e){if(this.getCount()===0)return null;var i=this.getStartLineNumber(),d=this.getEndLineNumber();if(e<i){var c=e-n+1;return this._rendLineNumberStart-=c,null}if(n>d)return null;for(var M=0,ge=0,le=i;le<=d;le++){var He=le-this._rendLineNumberStart;n<=le&&le<=e&&(ge===0?(M=He,ge=1):ge++)}if(n<i){var st=0;e<i?st=e-n+1:st=i-n,this._rendLineNumberStart-=st}var ht=this._lines.splice(M,ge);return ht},L.prototype.onLinesChanged=function(n,e){if(this.getCount()===0)return!1;for(var i=this.getStartLineNumber(),d=this.getEndLineNumber(),c=!1,M=n;M<=e;M++)M>=i&&M<=d&&(this._lines[M-this._rendLineNumberStart].onContentChanged(),c=!0);return c},L.prototype.onLinesInserted=function(n,e){if(this.getCount()===0)return null;var i=e-n+1,d=this.getStartLineNumber(),c=this.getEndLineNumber();if(n<=d)return this._rendLineNumberStart+=i,null;if(n>c)return null;if(i+n>c){var M=this._lines.splice(n-this._rendLineNumberStart,c-n+1);return M}for(var ge=[],le=0;le<i;le++)ge[le]=this._createLine();var He=n-this._rendLineNumberStart,st=this._lines.slice(0,He),ht=this._lines.slice(He,this._lines.length-i),y=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=st.concat(ge).concat(ht),y},L.prototype.onTokensChanged=function(n){if(this.getCount()===0)return!1;for(var e=this.getStartLineNumber(),i=this.getEndLineNumber(),d=!1,c=0,M=n.length;c<M;c++){var ge=n[c];if(ge.toLineNumber<e||ge.fromLineNumber>i)continue;for(var le=Math.max(e,ge.fromLineNumber),He=Math.min(i,ge.toLineNumber),st=le;st<=He;st++){var ht=st-this._rendLineNumberStart;this._lines[ht].onTokensChanged(),d=!0}}return d},L}(),kt=function(){function L(n){var e=this;this._host=n,this.domNode=this._createDomNode(),this._linesCollection=new It(function(){return e._host.createVisibleLine()})}return L.prototype._createDomNode=function(){var n=Object(x.b)(document.createElement("div"));return n.setClassName("view-layer"),n.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n},L.prototype.onConfigurationChanged=function(n){return!!n.hasChanged(107)},L.prototype.onFlushed=function(n){return this._linesCollection.flush(),!0},L.prototype.onLinesChanged=function(n){return this._linesCollection.onLinesChanged(n.fromLineNumber,n.toLineNumber)},L.prototype.onLinesDeleted=function(n){var e=this._linesCollection.onLinesDeleted(n.fromLineNumber,n.toLineNumber);if(e)for(var i=0,d=e.length;i<d;i++){var c=e[i].getDomNode();c&&this.domNode.domNode.removeChild(c)}return!0},L.prototype.onLinesInserted=function(n){var e=this._linesCollection.onLinesInserted(n.fromLineNumber,n.toLineNumber);if(e)for(var i=0,d=e.length;i<d;i++){var c=e[i].getDomNode();c&&this.domNode.domNode.removeChild(c)}return!0},L.prototype.onScrollChanged=function(n){return n.scrollTopChanged},L.prototype.onTokensChanged=function(n){return this._linesCollection.onTokensChanged(n.ranges)},L.prototype.onZonesChanged=function(n){return!0},L.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},L.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},L.prototype.getVisibleLine=function(n){return this._linesCollection.getLine(n)},L.prototype.renderLines=function(n){var e=this._linesCollection._get(),i=new Yt(this.domNode.domNode,this._host,n),d={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines,linesLength:e.lines.length},c=i.render(d,n.startLineNumber,n.endLineNumber,n.relativeVerticalOffset);this._linesCollection._set(c.rendLineNumberStart,c.lines)},L}(),Yt=function(){function L(n,e,i){this.domNode=n,this.host=e,this.viewportData=i}return L.prototype.render=function(n,e,i,d){var c={rendLineNumberStart:n.rendLineNumberStart,lines:n.lines.slice(0),linesLength:n.linesLength};if(c.rendLineNumberStart+c.linesLength-1<e||i<c.rendLineNumberStart){c.rendLineNumberStart=e,c.linesLength=i-e+1,c.lines=[];for(var M=e;M<=i;M++)c.lines[M-e]=this.host.createVisibleLine();return this._finishRendering(c,!0,d),c}if(this._renderUntouchedLines(c,Math.max(e-c.rendLineNumberStart,0),Math.min(i-c.rendLineNumberStart,c.linesLength-1),d,e),c.rendLineNumberStart>e){var ge=e,le=Math.min(i,c.rendLineNumberStart-1);ge<=le&&(this._insertLinesBefore(c,ge,le,d,e),c.linesLength+=le-ge+1)}else if(c.rendLineNumberStart<e){var He=Math.min(c.linesLength,e-c.rendLineNumberStart);He>0&&(this._removeLinesBefore(c,He),c.linesLength-=He)}if(c.rendLineNumberStart=e,c.rendLineNumberStart+c.linesLength-1<i){var ge=c.rendLineNumberStart+c.linesLength,le=i;ge<=le&&(this._insertLinesAfter(c,ge,le,d,e),c.linesLength+=le-ge+1)}else if(c.rendLineNumberStart+c.linesLength-1>i){var ge=Math.max(0,i-c.rendLineNumberStart+1),le=c.linesLength-1,He=le-ge+1;He>0&&(this._removeLinesAfter(c,He),c.linesLength-=He)}return this._finishRendering(c,!1,d),c},L.prototype._renderUntouchedLines=function(n,e,i,d,c){for(var M=n.rendLineNumberStart,ge=n.lines,le=e;le<=i;le++){var He=M+le;ge[le].layoutLine(He,d[He-c])}},L.prototype._insertLinesBefore=function(n,e,i,d,c){for(var M=[],ge=0,le=e;le<=i;le++)M[ge++]=this.host.createVisibleLine();n.lines=M.concat(n.lines)},L.prototype._removeLinesBefore=function(n,e){for(var i=0;i<e;i++){var d=n.lines[i].getDomNode();d&&this.domNode.removeChild(d)}n.lines.splice(0,e)},L.prototype._insertLinesAfter=function(n,e,i,d,c){for(var M=[],ge=0,le=e;le<=i;le++)M[ge++]=this.host.createVisibleLine();n.lines=n.lines.concat(M)},L.prototype._removeLinesAfter=function(n,e){for(var i=n.linesLength-e,d=0;d<e;d++){var c=n.lines[i+d].getDomNode();c&&this.domNode.removeChild(c)}n.lines.splice(i,e)},L.prototype._finishRenderingNewLines=function(n,e,i,d){var c=this.domNode.lastChild;e||!c?this.domNode.innerHTML=i:c.insertAdjacentHTML("afterend",i);for(var M=this.domNode.lastChild,ge=n.linesLength-1;ge>=0;ge--){var le=n.lines[ge];d[ge]&&(le.setDomNode(M),M=M.previousSibling)}},L.prototype._finishRenderingInvalidLines=function(n,e,i){var d=document.createElement("div");d.innerHTML=e;for(var c=0;c<n.linesLength;c++){var M=n.lines[c];if(i[c]){var ge=d.firstChild,le=M.getDomNode();le.parentNode.replaceChild(ge,le),M.setDomNode(ge)}}},L.prototype._finishRendering=function(n,e,i){var d=L._sb,c=n.linesLength,M=n.lines,ge=n.rendLineNumberStart,le=[];{d.reset();for(var He=!1,st=0;st<c;st++){var ht=M[st];le[st]=!1;var y=ht.getDomNode();if(y)continue;var u=ht.renderLine(st+ge,i[st],this.viewportData,d);if(!u)continue;le[st]=!0,He=!0}He&&this._finishRenderingNewLines(n,e,d.build(),le)}{d.reset();for(var l=!1,b=[],st=0;st<c;st++){var ht=M[st];if(b[st]=!1,le[st])continue;var u=ht.renderLine(st+ge,i[st],this.viewportData,d);if(!u)continue;b[st]=!0,l=!0}l&&this._finishRenderingInvalidLines(n,d.build(),b)}},L._sb=Object(xt.a)(1e5),L}(),Zt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),dn=function(L){Zt(n,L);function n(e){var i=L.call(this,e)||this;return i._visibleLines=new kt(i),i.domNode=i._visibleLines.domNode,i._dynamicOverlays=[],i._isFocused=!1,i.domNode.setClassName("view-overlays"),i}return n.prototype.shouldRender=function(){if(L.prototype.shouldRender.call(this))return!0;for(var e=0,i=this._dynamicOverlays.length;e<i;e++){var d=this._dynamicOverlays[e];if(d.shouldRender())return!0}return!1},n.prototype.dispose=function(){L.prototype.dispose.call(this);for(var e=0,i=this._dynamicOverlays.length;e<i;e++){var d=this._dynamicOverlays[e];d.dispose()}this._dynamicOverlays=[]},n.prototype.getDomNode=function(){return this.domNode},n.prototype.createVisibleLine=function(){return new fn(this._context.configuration,this._dynamicOverlays)},n.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e)},n.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);for(var i=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber(),c=i;c<=d;c++){var M=this._visibleLines.getVisibleLine(c);M.onConfigurationChanged(e)}return!0},n.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e)},n.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!0},n.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},n.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},n.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},n.prototype.onScrollChanged=function(e){return this._visibleLines.onScrollChanged(e)||!0},n.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},n.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},n.prototype.prepareRender=function(e){for(var i=this._dynamicOverlays.filter(function(ge){return ge.shouldRender()}),d=0,c=i.length;d<c;d++){var M=i[d];M.prepareRender(e),M.onDidRender()}},n.prototype.render=function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)},n.prototype._viewOverlaysRender=function(e){this._visibleLines.renderLines(e.viewportData)},n}(Z),fn=function(){function L(n,e){this._configuration=n,this._lineHeight=this._configuration.options.get(49),this._dynamicOverlays=e,this._domNode=null,this._renderedContent=null}return L.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},L.prototype.setDomNode=function(n){this._domNode=Object(x.b)(n)},L.prototype.onContentChanged=function(){},L.prototype.onTokensChanged=function(){},L.prototype.onConfigurationChanged=function(n){this._lineHeight=this._configuration.options.get(49)},L.prototype.renderLine=function(n,e,i,d){for(var c="",M=0,ge=this._dynamicOverlays.length;M<ge;M++){var le=this._dynamicOverlays[M];c+=le.render(i.startLineNumber,n)}return this._renderedContent===c?!1:(this._renderedContent=c,d.appendASCIIString('<div style="position:absolute;top:'),d.appendASCIIString(String(e)),d.appendASCIIString("px;width:100%;height:"),d.appendASCIIString(String(this._lineHeight)),d.appendASCIIString('px;">'),d.appendASCIIString(c),d.appendASCIIString("</div>"),!0)},L.prototype.layoutLine=function(n,e){this._domNode&&(this._domNode.setTop(e),this._domNode.setHeight(this._lineHeight))},L}(),An=function(L){Zt(n,L);function n(e){var i=L.call(this,e)||this,d=i._context.configuration.options,c=d.get(107);return i._contentWidth=c.contentWidth,i.domNode.setHeight(0),i}return n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._contentWidth=d.contentWidth,L.prototype.onConfigurationChanged.call(this,e)||!0},n.prototype.onScrollChanged=function(e){return L.prototype.onScrollChanged.call(this,e)||e.scrollWidthChanged},n.prototype._viewOverlaysRender=function(e){L.prototype._viewOverlaysRender.call(this,e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))},n}(dn),gn=function(L){Zt(n,L);function n(e){var i=L.call(this,e)||this,d=i._context.configuration.options,c=d.get(107);return i._contentLeft=c.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),G.a.applyFontInfo(i.domNode,d.get(34)),i}return n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;G.a.applyFontInfo(this.domNode,i.get(34));var d=i.get(107);return this._contentLeft=d.contentLeft,L.prototype.onConfigurationChanged.call(this,e)||!0},n.prototype.onScrollChanged=function(e){return L.prototype.onScrollChanged.call(this,e)||e.scrollHeightChanged},n.prototype._viewOverlaysRender=function(e){L.prototype._viewOverlaysRender.call(this,e);var i=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(i),this.domNode.setWidth(this._contentLeft)},n}(dn),Mn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),xn=function(){function L(n,e){this.top=n,this.left=e}return L}(),Le=function(L){Mn(n,L);function n(e,i){var d=L.call(this,e)||this;return d._viewDomNode=i,d._widgets={},d.domNode=Object(x.b)(document.createElement("div")),ce.write(d.domNode,1),d.domNode.setClassName("contentWidgets"),d.domNode.setPosition("absolute"),d.domNode.setTop(0),d.overflowingContentWidgetsDomNode=Object(x.b)(document.createElement("div")),ce.write(d.overflowingContentWidgetsDomNode,2),d.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),d}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this._widgets={}},n.prototype.onConfigurationChanged=function(e){for(var i=Object.keys(this._widgets),d=0,c=i;d<c.length;d++){var M=c[d];this._widgets[M].onConfigurationChanged(e)}return!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLineMappingChanged=function(e){for(var i=Object.keys(this._widgets),d=0,c=i;d<c.length;d++){var M=c[d];this._widgets[M].onLineMappingChanged(e)}return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return!0},n.prototype.onZonesChanged=function(e){return!0},n.prototype.addWidget=function(e){var i=new W(this._context,this._viewDomNode,e);this._widgets[i.id]=i,i.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(i.domNode):this.domNode.appendChild(i.domNode),this.setShouldRender()},n.prototype.setWidgetPosition=function(e,i,d){var c=this._widgets[e.getId()];c.setPosition(i,d),this.setShouldRender()},n.prototype.removeWidget=function(e){var i=e.getId();if(this._widgets.hasOwnProperty(i)){var d=this._widgets[i];delete this._widgets[i];var c=d.domNode.domNode;c.parentNode.removeChild(c),c.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},n.prototype.shouldSuppressMouseDownOnWidget=function(e){return this._widgets.hasOwnProperty(e)?this._widgets[e].suppressMouseDown:!1},n.prototype.onBeforeRender=function(e){for(var i=Object.keys(this._widgets),d=0,c=i;d<c.length;d++){var M=c[d];this._widgets[M].onBeforeRender(e)}},n.prototype.prepareRender=function(e){for(var i=Object.keys(this._widgets),d=0,c=i;d<c.length;d++){var M=c[d];this._widgets[M].prepareRender(e)}},n.prototype.render=function(e){for(var i=Object.keys(this._widgets),d=0,c=i;d<c.length;d++){var M=c[d];this._widgets[M].render(e)}},n}(Z),W=function(){function L(n,e,i){this._context=n,this._viewDomNode=e,this._actual=i,this.domNode=Object(x.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var d=this._context.configuration.options,c=d.get(107);this._fixedOverflowWidgets=d.get(29),this._contentWidth=c.contentWidth,this._contentLeft=c.contentLeft,this._lineHeight=d.get(49),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}return L.prototype.onConfigurationChanged=function(n){var e=this._context.configuration.options;if(this._lineHeight=e.get(49),n.hasChanged(107)){var i=e.get(107);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}},L.prototype.onLineMappingChanged=function(n){this._setPosition(this._range)},L.prototype._setPosition=function(n){if(this._range=n,this._viewRange=null,this._range){var e=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(e.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(e.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(e))}},L.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},L.prototype.setPosition=function(n,e){this._setPosition(n),this._preference=e,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},L.prototype._layoutBoxInViewport=function(n,e,i,d,c){var M=n.top,ge=M,le=e.top+this._lineHeight,He=c.viewportHeight-le,st=M-d,ht=ge>=d,y=le,u=He>=d,l=n.left,b=e.left;return l+i>c.scrollLeft+c.viewportWidth&&(l=c.scrollLeft+c.viewportWidth-i),b+i>c.scrollLeft+c.viewportWidth&&(b=c.scrollLeft+c.viewportWidth-i),l<c.scrollLeft&&(l=c.scrollLeft),b<c.scrollLeft&&(b=c.scrollLeft),{fitsAbove:ht,aboveTop:st,aboveLeft:l,fitsBelow:u,belowTop:y,belowLeft:b}},L.prototype._layoutHorizontalSegmentInPage=function(n,e,i,d){var c=Math.max(0,e.left-d),M=Math.min(e.left+e.width+d,n.width),ge=e.left+i-ne.d.scrollX;if(ge+d>M){var le=ge-(M-d);ge-=le,i-=le}if(ge<c){var le=ge-c;ge-=le,i-=le}return[i,ge]},L.prototype._layoutBoxInPage=function(n,e,i,d,c){var M=n.top-d,ge=e.top+this._lineHeight,le=ne.B(this._viewDomNode.domNode),He=le.top+M-ne.d.scrollY,st=le.top+ge-ne.d.scrollY,ht=ne.x(document.body),y=this._layoutHorizontalSegmentInPage(ht,le,n.left-c.scrollLeft+this._contentLeft,i),u=y[0],l=y[1],b=this._layoutHorizontalSegmentInPage(ht,le,e.left-c.scrollLeft+this._contentLeft,i),S=b[0],C=b[1],$=22,Be=22,ot=He>=$,xe=st+d<=ht.height-Be;return this._fixedOverflowWidgets?{fitsAbove:ot,aboveTop:Math.max(He,$),aboveLeft:l,fitsBelow:xe,belowTop:st,belowLeft:C}:{fitsAbove:ot,aboveTop:Math.max(M,$),aboveLeft:u,fitsBelow:xe,belowTop:ge,belowLeft:S}},L.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(n){return new xn(n.top,n.left+this._contentLeft)},L.prototype._getTopAndBottomLeft=function(n){if(!this._viewRange)return[null,null];var e=n.linesVisibleRangesForRange(this._viewRange,!1);if(!e||e.length===0)return[null,null];for(var i=e[0],d=e[0],c=0,M=e;c<M.length;c++){var ge=M[c];ge.lineNumber<i.lineNumber&&(i=ge),ge.lineNumber>d.lineNumber&&(d=ge)}for(var le=1073741824,He=0,st=i.ranges;He<st.length;He++){var ht=st[He];ht.left<le&&(le=ht.left)}for(var y=1073741824,u=0,l=d.ranges;u<l.length;u++){var ht=l[u];ht.left<y&&(y=ht.left)}var b=n.getVerticalOffsetForLineNumber(i.lineNumber)-n.scrollTop,S=new xn(b,le),C=n.getVerticalOffsetForLineNumber(d.lineNumber)-n.scrollTop,$=new xn(C,y);return[S,$]},L.prototype._prepareRenderWidget=function(n){var e=this._getTopAndBottomLeft(n),i=e[0],d=e[1];if(!i||!d)return null;if(this._cachedDomNodeClientWidth===-1||this._cachedDomNodeClientHeight===-1){var c=this.domNode.domNode;this._cachedDomNodeClientWidth=c.clientWidth,this._cachedDomNodeClientHeight=c.clientHeight}var M;if(this.allowEditorOverflow?M=this._layoutBoxInPage(i,d,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,n):M=this._layoutBoxInViewport(i,d,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,n),this._preference)for(var ge=1;ge<=2;ge++)for(var le=0,He=this._preference;le<He.length;le++){var st=He[le];if(st===1){if(!M)return null;if(ge===2||M.fitsAbove)return new xn(M.aboveTop,M.aboveLeft)}else if(st===2){if(!M)return null;if(ge===2||M.fitsBelow)return new xn(M.belowTop,M.belowLeft)}else return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i}return null},L.prototype.onBeforeRender=function(n){if(!this._viewRange||!this._preference)return;if(this._viewRange.endLineNumber<n.startLineNumber||this._viewRange.startLineNumber>n.endLineNumber)return;this.domNode.setMaxWidth(this._maxWidth)},L.prototype.prepareRender=function(n){this._renderData=this._prepareRenderWidget(n)},L.prototype.render=function(n){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"));return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+n.scrollTop-n.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)},L}(),ae=r("ZE/v"),Fe=r("Inmo"),qe=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),ct=!0,St=function(L){qe(n,L);function n(e){var i=L.call(this)||this;i._context=e;var d=i._context.configuration.options,c=d.get(107);return i._lineHeight=d.get(49),i._renderLineHighlight=d.get(72),i._contentLeft=c.contentLeft,i._contentWidth=c.contentWidth,i._selectionIsEmpty=!0,i._cursorLineNumbers=[],i._selections=[],i._renderData=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),L.prototype.dispose.call(this)},n.prototype._readFromSelections=function(){var e=!1,i=ct?this._selections.slice(0,1):this._selections,d=i.map(function(M){return M.positionLineNumber});d.sort(function(M,ge){return M-ge}),Fe.g(this._cursorLineNumbers,d)||(this._cursorLineNumbers=d,e=!0);var c=i.every(function(M){return M.isEmpty()});return this._selectionIsEmpty!==c&&(this._selectionIsEmpty=c,e=!0),e},n.prototype.onThemeChanged=function(e){return this._readFromSelections()},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._lineHeight=i.get(49),this._renderLineHighlight=i.get(72),this._contentLeft=d.contentLeft,this._contentWidth=d.contentWidth,!0},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._readFromSelections()},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollWidthChanged||e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.prepareRender=function(e){if(!this._shouldRenderThis()){this._renderData=null;return}for(var i=this._renderOne(e),d=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,M=this._cursorLineNumbers.length,ge=0,le=[],He=d;He<=c;He++){for(var st=He-d;ge<M&&this._cursorLineNumbers[ge]<He;)ge++;ge<M&&this._cursorLineNumbers[ge]===He?le[st]=i:le[st]=""}this._renderData=le},n.prototype.render=function(e,i){if(!this._renderData)return"";var d=i-e;return d>=this._renderData.length?"":this._renderData[d]},n}(zt),Ge=function(L){qe(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n.prototype._renderOne=function(e){var i="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'<div class="'+i+'" style="width:'+Math.max(e.scrollWidth,this._contentWidth)+"px; height:"+this._lineHeight+'px;"></div>'},n.prototype._shouldRenderThis=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},n.prototype._shouldRenderOther=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},n}(St),de=function(L){qe(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n.prototype._renderOne=function(e){var i="current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"");return'<div class="'+i+'" style="width:'+this._contentLeft+"px; height:"+this._lineHeight+'px;"></div>'},n.prototype._shouldRenderThis=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},n.prototype._shouldRenderOther=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},n}(St);Object(tt.e)(function(L,n){ct=!1;var e=L.getColor(tn.h);if(e&&(n.addRule(".monaco-editor .view-overlays .current-line { background-color: "+e+"; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+e+"; border: none; }")),!e||e.isTransparent()||L.defines(tn.i)){var i=L.getColor(tn.i);i&&(ct=!0,n.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),L.type==="hc"&&(n.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),n.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});var X=r("dZ+3"),Ue=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),at=function(L){Ue(n,L);function n(e){var i=L.call(this)||this;i._context=e;var d=i._context.configuration.options;return i._lineHeight=d.get(49),i._typicalHalfwidthCharacterWidth=d.get(34).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.prepareRender=function(e){for(var i=e.getDecorationsInViewport(),d=[],c=0,M=0,ge=i.length;M<ge;M++){var le=i[M];le.options.className&&(d[c++]=le)}d=d.sort(function(l,b){if(l.options.zIndex<b.options.zIndex)return-1;if(l.options.zIndex>b.options.zIndex)return 1;var S=l.options.className,C=b.options.className;return S<C?-1:S>C?1:Te.a.compareRangesUsingStarts(l.range,b.range)});for(var He=e.visibleRange.startLineNumber,st=e.visibleRange.endLineNumber,ht=[],y=He;y<=st;y++){var u=y-He;ht[u]=""}this._renderWholeLineDecorations(e,d,ht),this._renderNormalDecorations(e,d,ht),this._renderResult=ht},n.prototype._renderWholeLineDecorations=function(e,i,d){for(var c=String(this._lineHeight),M=e.visibleRange.startLineNumber,ge=e.visibleRange.endLineNumber,le=0,He=i.length;le<He;le++){var st=i[le];if(!st.options.isWholeLine)continue;for(var ht='<div class="cdr '+st.options.className+'" style="left:0;width:100%;height:'+c+'px;"></div>',y=Math.max(st.range.startLineNumber,M),u=Math.min(st.range.endLineNumber,ge),l=y;l<=u;l++){var b=l-M;d[b]+=ht}}},n.prototype._renderNormalDecorations=function(e,i,d){for(var c=String(this._lineHeight),M=e.visibleRange.startLineNumber,ge=null,le=!1,He=null,st=0,ht=i.length;st<ht;st++){var y=i[st];if(y.options.isWholeLine)continue;var u=y.options.className,l=Boolean(y.options.showIfCollapsed),b=y.range;if(l&&b.endColumn===1&&b.endLineNumber!==b.startLineNumber&&(b=new Te.a(b.startLineNumber,b.startColumn,b.endLineNumber-1,this._context.model.getLineMaxColumn(b.endLineNumber-1))),ge===u&&le===l&&Te.a.areIntersectingOrTouching(He,b)){He=Te.a.plusRange(He,b);continue}ge!==null&&this._renderNormalDecoration(e,He,ge,le,c,M,d),ge=u,le=l,He=b}ge!==null&&this._renderNormalDecoration(e,He,ge,le,c,M,d)},n.prototype._renderNormalDecoration=function(e,i,d,c,M,ge,le){var He=e.linesVisibleRangesForRange(i,d==="findMatch");if(!He)return;for(var st=0,ht=He.length;st<ht;st++){var y=He[st];if(y.outsideRenderedLine)continue;var u=y.lineNumber-ge;if(c&&y.ranges.length===1){var l=y.ranges[0];l.width===0&&(y.ranges[0]=new se(l.left,this._typicalHalfwidthCharacterWidth))}for(var b=0,S=y.ranges.length;b<S;b++){var C=y.ranges[b],$='<div class="cdr '+d+'" style="left:'+String(C.left)+"px;width:"+String(C.width)+"px;height:"+M+'px;"></div>';le[u]+=$}}},n.prototype.render=function(e,i){if(!this._renderResult)return"";var d=i-e;return d<0||d>=this._renderResult.length?"":this._renderResult[d]},n}(zt),et=r("AyeG"),Q=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ce=function(L){Q(n,L);function n(e,i,d,c){var M=L.call(this,e)||this,ge=M._context.configuration.options,le=ge.get(78),He=ge.get(56),st=ge.get(27),ht={listenOnDomNode:d.domNode,className:"editor-scrollable "+Object(tt.d)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:le.vertical,horizontal:le.horizontal,verticalHasArrows:le.verticalHasArrows,horizontalHasArrows:le.horizontalHasArrows,verticalScrollbarSize:le.verticalScrollbarSize,verticalSliderSize:le.verticalSliderSize,horizontalScrollbarSize:le.horizontalScrollbarSize,horizontalSliderSize:le.horizontalSliderSize,handleMouseWheel:le.handleMouseWheel,alwaysConsumeMouseWheel:le.alwaysConsumeMouseWheel,arrowSize:le.arrowSize,mouseWheelScrollSensitivity:He,fastScrollSensitivity:st};M.scrollbar=M._register(new et.c(i.domNode,ht,M._context.viewLayout.getScrollable())),ce.write(M.scrollbar.getDomNode(),5),M.scrollbarDomNode=Object(x.b)(M.scrollbar.getDomNode()),M.scrollbarDomNode.setPosition("absolute"),M._setLayout();var y=function(l,b,S){var C={};if(b){var $=l.scrollTop;$&&(C.scrollTop=M._context.viewLayout.getCurrentScrollTop()+$,l.scrollTop=0)}if(S){var Be=l.scrollLeft;Be&&(C.scrollLeft=M._context.viewLayout.getCurrentScrollLeft()+Be,l.scrollLeft=0)}M._context.viewLayout.setScrollPositionNow(C)};return M._register(ne.i(d.domNode,"scroll",function(u){return y(d.domNode,!0,!0)})),M._register(ne.i(i.domNode,"scroll",function(u){return y(i.domNode,!0,!1)})),M._register(ne.i(c.domNode,"scroll",function(u){return y(c.domNode,!0,!1)})),M._register(ne.i(M.scrollbarDomNode.domNode,"scroll",function(u){return y(M.scrollbarDomNode.domNode,!0,!1)})),M}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype._setLayout=function(){var e=this._context.configuration.options,i=e.get(107);this.scrollbarDomNode.setLeft(i.contentLeft);var d=e.get(54),c=d.side;c==="right"?this.scrollbarDomNode.setWidth(i.contentWidth+i.minimapWidth):this.scrollbarDomNode.setWidth(i.contentWidth),this.scrollbarDomNode.setHeight(i.height)},n.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},n.prototype.getDomNode=function(){return this.scrollbarDomNode},n.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},n.prototype.onConfigurationChanged=function(e){if(e.hasChanged(78)||e.hasChanged(56)||e.hasChanged(27)){var i=this._context.configuration.options,d=i.get(78),c=i.get(56),M=i.get(27),ge={handleMouseWheel:d.handleMouseWheel,mouseWheelScrollSensitivity:c,fastScrollSensitivity:M};this.scrollbar.updateOptions(ge)}return e.hasChanged(107)&&this._setLayout(),!0},n.prototype.onScrollChanged=function(e){return!0},n.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(tt.d)(this._context.theme.type)),!0},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this.scrollbar.renderNow()},n}(Z),Oe=r("Gt+Q"),it=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qe=function(){function L(n,e,i){this.startLineNumber=+n,this.endLineNumber=+e,this.className=String(i)}return L}(),je=function(L){it(n,L);function n(){return L!==null&&L.apply(this,arguments)||this}return n.prototype._render=function(e,i,d){for(var c=[],M=e;M<=i;M++){var ge=M-e;c[ge]=[]}if(d.length===0)return c;d.sort(function(C,$){return C.className===$.className?C.startLineNumber===$.startLineNumber?C.endLineNumber-$.endLineNumber:C.startLineNumber-$.startLineNumber:C.className<$.className?-1:1});for(var le=null,He=0,st=0,ht=d.length;st<ht;st++){var y=d[st],u=y.className,l=Math.max(y.startLineNumber,e)-e,b=Math.min(y.endLineNumber,i)-e;le===u?(l=Math.max(He+1,l),He=Math.max(He,b)):(le=u,He=b);for(var S=l;S<=He;S++)c[S].push(le)}return c},n}(zt),Ct=function(L){it(n,L);function n(e){var i=L.call(this)||this;i._context=e;var d=i._context.configuration.options,c=d.get(107);return i._lineHeight=d.get(49),i._glyphMargin=d.get(40),i._glyphMarginLeft=c.glyphMarginLeft,i._glyphMarginWidth=c.glyphMarginWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._lineHeight=i.get(49),this._glyphMargin=i.get(40),this._glyphMarginLeft=d.glyphMarginLeft,this._glyphMarginWidth=d.glyphMarginWidth,!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getDecorations=function(e){for(var i=e.getDecorationsInViewport(),d=[],c=0,M=0,ge=i.length;M<ge;M++){var le=i[M],He=le.options.glyphMarginClassName;He&&(d[c++]=new Qe(le.range.startLineNumber,le.range.endLineNumber,He))}return d},n.prototype.prepareRender=function(e){if(!this._glyphMargin){this._renderResult=null;return}for(var i=e.visibleRange.startLineNumber,d=e.visibleRange.endLineNumber,c=this._render(i,d,this._getDecorations(e)),M=this._lineHeight.toString(),ge=this._glyphMarginLeft.toString(),le=this._glyphMarginWidth.toString(),He='" style="left:'+ge+"px;width:"+le+"px;height:"+M+'px;"></div>',st=[],ht=i;ht<=d;ht++){var y=ht-i,u=c[y];u.length===0?st[y]="":st[y]='<div class="cgmr codicon '+u.join(" ")+He}this._renderResult=st},n.prototype.render=function(e,i){if(!this._renderResult)return"";var d=i-e;return d<0||d>=this._renderResult.length?"":this._renderResult[d]},n}(je),Ot=r("ZOck"),Jt=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),At=function(L){Jt(n,L);function n(e){var i=L.call(this)||this;i._context=e,i._primaryLineNumber=0;var d=i._context.configuration.options,c=d.get(108),M=d.get(34);return i._lineHeight=d.get(49),i._spaceWidth=M.spaceWidth,i._enabled=d.get(70),i._activeIndentEnabled=d.get(43),i._maxIndentLeft=c.wrappingColumn===-1?-1:c.wrappingColumn*M.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(108),c=i.get(34);return this._lineHeight=i.get(49),this._spaceWidth=c.spaceWidth,this._enabled=i.get(70),this._activeIndentEnabled=i.get(43),this._maxIndentLeft=d.wrappingColumn===-1?-1:d.wrappingColumn*c.typicalHalfwidthCharacterWidth,!0},n.prototype.onCursorStateChanged=function(e){var i=e.selections[0],d=i.isEmpty()?i.positionLineNumber:0;return this._primaryLineNumber!==d?(this._primaryLineNumber=d,!0):!1},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.onLanguageConfigurationChanged=function(e){return!0},n.prototype.prepareRender=function(e){if(!this._enabled){this._renderResult=null;return}var i=e.visibleRange.startLineNumber,d=e.visibleRange.endLineNumber,c=this._context.model.getOptions().indentSize,M=c*this._spaceWidth,ge=e.scrollWidth,le=this._lineHeight,He=this._context.model.getLinesIndentGuides(i,d),st=0,ht=0,y=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var u=this._context.model.getActiveIndentGuide(this._primaryLineNumber,i,d);st=u.startLineNumber,ht=u.endLineNumber,y=u.indent}for(var l=[],b=i;b<=d;b++){var S=st<=b&&b<=ht,C=b-i,$=He[C],Be="";if($>=1)for(var ot=e.visibleRangeForPosition(new ve.a(b,1)),xe=ot?ot.left:0,dt=1;dt<=$;dt++){var Nt=S&&dt===y?"cigra":"cigr";if(Be+='<div class="'+Nt+'" style="left:'+xe+"px;height:"+le+"px;width:"+M+'px"></div>',xe+=M,xe>ge||this._maxIndentLeft>0&&xe>this._maxIndentLeft)break}l[C]=Be}this._renderResult=l},n.prototype.render=function(e,i){if(!this._renderResult)return"";var d=i-e;return d<0||d>=this._renderResult.length?"":this._renderResult[d]},n}(zt);Object(tt.e)(function(L,n){var e=L.getColor(tn.g);e&&n.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+e+" inset; }");var i=L.getColor(tn.a)||e;i&&n.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")});var jt=r("HTM+"),hn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),bn=function(){function L(){this._currentVisibleRange=new Te.a(1,1,1,1)}return L.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},L.prototype.setCurrentVisibleRange=function(n){this._currentVisibleRange=n},L}(),mn=function(){function L(n,e,i,d,c,M){this.lineNumber=n,this.startColumn=e,this.endColumn=i,this.startScrollTop=d,this.stopScrollTop=c,this.scrollType=M}return L}(),Vn=function(L){hn(n,L);function n(e,i){var d=L.call(this,e)||this;d._linesContent=i,d._textRangeRestingSpot=document.createElement("div"),d._visibleLines=new kt(d),d.domNode=d._visibleLines.domNode;var c=d._context.configuration,M=d._context.configuration.options,ge=M.get(34),le=M.get(108);return d._lineHeight=M.get(49),d._typicalHalfwidthCharacterWidth=ge.typicalHalfwidthCharacterWidth,d._isViewportWrapping=le.isViewportWrapping,d._revealHorizontalRightPadding=M.get(75),d._cursorSurroundingLines=M.get(19),d._cursorSurroundingLinesStyle=M.get(20),d._canUseLayerHinting=!M.get(22),d._viewLineOptions=new Ze(c,d._context.theme.type),ce.write(d.domNode,7),d.domNode.setClassName("view-lines"),G.a.applyFontInfo(d.domNode,ge),d._maxLineWidth=0,d._asyncUpdateLineWidths=new z.d(function(){d._updateLineWidthsSlow()},200),d._lastRenderedData=new bn,d._horizontalRevealRequest=null,d}return n.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),L.prototype.dispose.call(this)},n.prototype.getDomNode=function(){return this.domNode},n.prototype.createVisibleLine=function(){return new Ye(this._viewLineOptions)},n.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(108)&&(this._maxLineWidth=0);var i=this._context.configuration.options,d=i.get(34),c=i.get(108);return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=d.typicalHalfwidthCharacterWidth,this._isViewportWrapping=c.isViewportWrapping,this._revealHorizontalRightPadding=i.get(75),this._cursorSurroundingLines=i.get(19),this._cursorSurroundingLinesStyle=i.get(20),this._canUseLayerHinting=!i.get(22),G.a.applyFontInfo(this.domNode,d),this._onOptionsMaybeChanged(),e.hasChanged(107)&&(this._maxLineWidth=0),!0},n.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,i=new Ze(e,this._context.theme.type);if(!this._viewLineOptions.equals(i)){this._viewLineOptions=i;for(var d=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber(),M=d;M<=c;M++){var ge=this._visibleLines.getVisibleLine(M);ge.onOptionsChanged(this._viewLineOptions)}return!0}return!1},n.prototype.onCursorStateChanged=function(e){for(var i=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber(),c=!1,M=i;M<=d;M++)c=this._visibleLines.getVisibleLine(M).onSelectionChanged()||c;return c},n.prototype.onDecorationsChanged=function(e){for(var i=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber(),c=i;c<=d;c++)this._visibleLines.getVisibleLine(c).onDecorationsChanged();return!0},n.prototype.onFlushed=function(e){var i=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,i},n.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},n.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},n.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},n.prototype.onRevealRangeRequest=function(e){var i=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.verticalType),d=this._context.viewLayout.validateScrollPosition({scrollTop:i});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?d={scrollTop:d.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new mn(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),d.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var c=Math.abs(this._context.viewLayout.getCurrentScrollTop()-d.scrollTop);return e.scrollType===0&&c>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(d):this._context.viewLayout.setScrollPositionNow(d),!0},n.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var i=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),d=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<i||e.scrollTop>d)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},n.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},n.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},n.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},n.prototype.getPositionFromDOMInfo=function(e,i){var d=this._getViewLineDomNode(e);if(d===null)return null;var c=this._getLineNumberFor(d);if(c===-1)return null;if(c<1||c>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(c)===1)return new ve.a(c,1);var M=this._visibleLines.getStartLineNumber(),ge=this._visibleLines.getEndLineNumber();if(c<M||c>ge)return null;var le=this._visibleLines.getVisibleLine(c).getColumnOfNodeOffset(c,e,i),He=this._context.model.getLineMinColumn(c);return le<He&&(le=He),new ve.a(c,le)},n.prototype._getViewLineDomNode=function(e){for(;e&&e.nodeType===1;){if(e.className===Ye.CLASS_NAME)return e;e=e.parentElement}return null},n.prototype._getLineNumberFor=function(e){for(var i=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber(),c=i;c<=d;c++){var M=this._visibleLines.getVisibleLine(c);if(e===M.getDomNode())return c}return-1},n.prototype.getLineWidth=function(e){var i=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();return e<i||e>d?-1:this._visibleLines.getVisibleLine(e).getWidth()},n.prototype.linesVisibleRangesForRange=function(e,i){if(this.shouldRender())return null;var d=e.endLineNumber,c=Te.a.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!c)return null;var M=[],ge=0,le=new Xe(this.domNode.domNode,this._textRangeRestingSpot),He=0;i&&(He=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(c.startLineNumber,1)).lineNumber);for(var st=this._visibleLines.getStartLineNumber(),ht=this._visibleLines.getEndLineNumber(),y=c.startLineNumber;y<=c.endLineNumber;y++){if(y<st||y>ht)continue;var u=y===c.startLineNumber?c.startColumn:1,l=y===c.endLineNumber?c.endColumn:this._context.model.getLineMaxColumn(y),b=this._visibleLines.getVisibleLine(y).getVisibleRangesForRange(u,l,le);if(!b)continue;if(i&&y<d){var S=He;He=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(y+1,1)).lineNumber,S!==He&&(b.ranges[b.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}M[ge++]=new ue(b.outsideRenderedLine,y,b.ranges)}return ge===0?null:M},n.prototype._visibleRangesForLineRange=function(e,i,d){return this.shouldRender()||(e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber())?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(i,d,new Xe(this.domNode.domNode,this._textRangeRestingSpot))},n.prototype.visibleRangeForPosition=function(e){var i=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return i?new fe(i.outsideRenderedLine,i.ranges[0].left):null},n.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},n.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},n.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},n.prototype._updateLineWidths=function(e){for(var i=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber(),c=1,M=!0,ge=i;ge<=d;ge++){var le=this._visibleLines.getVisibleLine(ge);if(e&&!le.getWidthIsFast()){M=!1;continue}c=Math.max(c,le.getWidth())}return M&&i===1&&d===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(c),M},n.prototype.prepareRender=function(){throw new Error("Not supported")},n.prototype.render=function(){throw new Error("Not supported")},n.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var i=this._horizontalRevealRequest.lineNumber,d=this._horizontalRevealRequest.startColumn,c=this._horizontalRevealRequest.endColumn,M=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=i&&i<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var ge=this._computeScrollLeftToRevealRange(i,d,c),le=this._isViewportWrapping;le||this._ensureMaxLineWidth(ge.maxHorizontalOffset),M===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:ge.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:ge.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var He=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-He),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},n.prototype._ensureMaxLineWidth=function(e){var i=Math.ceil(e);this._maxLineWidth<i&&(this._maxLineWidth=i,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},n.prototype._computeScrollTopToRevealRange=function(e,i,d,c){var M=e.top,ge=e.height,le=M+ge,He,st;He=this._context.viewLayout.getVerticalOffsetForLineNumber(d.startLineNumber),st=this._context.viewLayout.getVerticalOffsetForLineNumber(d.endLineNumber)+this._lineHeight;var ht=i==="mouse"&&this._cursorSurroundingLinesStyle==="default";if(!ht){var y=Math.min(ge/this._lineHeight/2,this._cursorSurroundingLines);He-=y*this._lineHeight,st+=Math.max(0,y-1)*this._lineHeight}(c===0||c===4)&&(st+=this._lineHeight);var u;if(st-He>ge)u=He;else if(c===1||c===2)if(c===2&&M<=He&&st<=le)u=M;else{var l=(He+st)/2;u=Math.max(0,l-ge/2)}else u=this._computeMinimumScrolling(M,le,He,st,c===3,c===4);return u},n.prototype._computeScrollLeftToRevealRange=function(e,i,d){var c=0,M=this._context.viewLayout.getCurrentViewport(),ge=M.left,le=ge+M.width,He=this._visibleRangesForLineRange(e,i,d),st=1073741824,ht=0;if(!He)return{scrollLeft:ge,maxHorizontalOffset:c};for(var y=0,u=He.ranges;y<u.length;y++){var l=u[y];l.left<st&&(st=l.left),l.left+l.width>ht&&(ht=l.left+l.width)}c=ht,st=Math.max(0,st-n.HORIZONTAL_EXTRA_PX),ht+=this._revealHorizontalRightPadding;var b=this._computeMinimumScrolling(ge,le,st,ht);return{scrollLeft:b,maxHorizontalOffset:c}},n.prototype._computeMinimumScrolling=function(e,i,d,c,M,ge){e=e|0,i=i|0,d=d|0,c=c|0,M=!!M,ge=!!ge;var le=i-e,He=c-d;if(He<le){if(M)return d;if(ge)return Math.max(0,c-le);if(d<e)return d;if(c>i)return Math.max(0,c-le)}else return d;return e},n.HORIZONTAL_EXTRA_PX=30,n}(Z),Xn=r("bq0d"),Yn=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ui=function(L){Yn(n,L);function n(e){var i=L.call(this)||this;i._context=e;var d=i._context.configuration.options,c=d.get(107);return i._decorationsLeft=c.decorationsLeft,i._decorationsWidth=c.decorationsWidth,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._decorationsLeft=d.decorationsLeft,this._decorationsWidth=d.decorationsWidth,!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getDecorations=function(e){for(var i=e.getDecorationsInViewport(),d=[],c=0,M=0,ge=i.length;M<ge;M++){var le=i[M],He=le.options.linesDecorationsClassName;He&&(d[c++]=new Qe(le.range.startLineNumber,le.range.endLineNumber,He))}return d},n.prototype.prepareRender=function(e){for(var i=e.visibleRange.startLineNumber,d=e.visibleRange.endLineNumber,c=this._render(i,d,this._getDecorations(e)),M=this._decorationsLeft.toString(),ge=this._decorationsWidth.toString(),le='" style="left:'+M+"px;width:"+ge+'px;"></div>',He=[],st=i;st<=d;st++){for(var ht=st-i,y=c[ht],u="",l=0,b=y.length;l<b;l++)u+='<div class="cldr '+y[l]+le;He[ht]=u}this._renderResult=He},n.prototype.render=function(e,i){return this._renderResult?this._renderResult[i-e]:""},n}(je),ii=r("+N8g"),Pi=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),uo=function(L){Pi(n,L);function n(e){var i=L.call(this)||this;return i._context=e,i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){return!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getDecorations=function(e){for(var i=e.getDecorationsInViewport(),d=[],c=0,M=0,ge=i.length;M<ge;M++){var le=i[M],He=le.options.marginClassName;He&&(d[c++]=new Qe(le.range.startLineNumber,le.range.endLineNumber,He))}return d},n.prototype.prepareRender=function(e){for(var i=e.visibleRange.startLineNumber,d=e.visibleRange.endLineNumber,c=this._render(i,d,this._getDecorations(e)),M=[],ge=i;ge<=d;ge++){for(var le=ge-i,He=c[le],st="",ht=0,y=He.length;ht<y;ht++)st+='<div class="cmdr '+He[ht]+'" style=""></div>';M[le]=st}this._renderResult=M},n.prototype.render=function(e,i){return this._renderResult?this._renderResult[i-e]:""},n}(je),eo=r("7Ohf"),to=function(){function L(n,e,i,d){this.r=L._clamp(n),this.g=L._clamp(e),this.b=L._clamp(i),this.a=L._clamp(d)}return L._clamp=function(n){return n<0?0:n>255?255:n|0},L.Empty=new L(0,0,0,0),L}(),zn=r("vqGt"),zo=function(){function L(){var n=this;this._onDidChange=new F.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),zn.y.onDidChange(function(e){e.changedColorMap&&n._updateColorMap()})}return L.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new L),this._INSTANCE},L.prototype._updateColorMap=function(){var n=zn.y.getColorMap();if(!n){this._colors=[to.Empty],this._backgroundIsLight=!0;return}this._colors=[to.Empty];for(var e=1;e<n.length;e++){var i=n[e].rgba;this._colors[e]=new to(i.r,i.g,i.b,Math.round(i.a*255))}var d=n[2].getRelativeLuminance();this._backgroundIsLight=d>=.5,this._onDidChange.fire(void 0)},L.prototype.getColor=function(n){return(n<1||n>=this._colors.length)&&(n=2),this._colors[n]},L.prototype.backgroundIsLight=function(){return this._backgroundIsLight},L._INSTANCE=null,L}(),Oi=r("0BkX"),wr=function(){for(var L=[],n=32;n<=126;n++)L.push(n);return L.push(65533),L}(),Po=function(n,e){return n-=32,n<0||n>96?e<=2?(n+96)%96:96-1:n},Ho=function(){function L(n,e){this.scale=e,this.charDataNormal=L.soften(n,12/15),this.charDataLight=L.soften(n,50/60)}return L.soften=function(n,e){for(var i=new Uint8ClampedArray(n.length),d=0,c=n.length;d<c;d++)i[d]=n[d]*e;return i},L.prototype.renderChar=function(n,e,i,d,c,M,ge,le){var He=1*this.scale,st=2*this.scale;if(e+He>n.width||i+st>n.height){console.warn("bad render request outside image data");return}for(var ht=le?this.charDataLight:this.charDataNormal,y=Po(d,ge),u=n.width*4,l=M.r,b=M.g,S=M.b,C=c.r-l,$=c.g-b,Be=c.b-S,ot=n.data,xe=y*He*st,dt=i*u+e*4,Nt=0;Nt<st;Nt++){for(var qt=dt,en=0;en<He;en++){var un=ht[xe++]/255;ot[qt++]=l+C*un,ot[qt++]=b+$*un,ot[qt++]=S+Be*un,qt++}dt+=u}},L.prototype.blockRenderChar=function(n,e,i,d,c,M){var ge=1*this.scale,le=2*this.scale;if(e+ge>n.width||i+le>n.height){console.warn("bad render request outside image data");return}for(var He=n.width*4,st=.5,ht=c.r,y=c.g,u=c.b,l=d.r-ht,b=d.g-y,S=d.b-u,C=ht+l*st,$=y+b*st,Be=u+S*st,ot=n.data,xe=i*He+e*4,dt=0;dt<le;dt++){for(var Nt=xe,qt=0;qt<ge;qt++)ot[Nt++]=C,ot[Nt++]=$,ot[Nt++]=Be,Nt++;xe+=He}},L}(),Fo=r("WcJl"),tr={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,A:10,B:11,C:12,D:13,E:14,F:15},pr=function(n){for(var e=new Uint8ClampedArray(n.length/2),i=0;i<n.length;i+=2)e[i>>1]=tr[n[i]]<<4|tr[n[i+1]]&15;return e},co={1:Object(Fo.a)(function(){return pr("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")}),2:Object(Fo.a)(function(){return pr("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")})},So=function(){function L(){}return L.create=function(n,e){if(this.lastCreated&&n===this.lastCreated.scale&&e===this.lastFontFamily)return this.lastCreated;var i;return co[n]?i=new Ho(co[n](),n):i=L.createFromSampleData(L.createSampleData(e).data,n),this.lastFontFamily=e,this.lastCreated=i,i},L.createSampleData=function(n){var e=document.createElement("canvas"),i=e.getContext("2d");e.style.height=16+"px",e.height=16,e.width=96*10,e.style.width=96*10+"px",i.fillStyle="#ffffff",i.font="bold "+16+"px "+n,i.textBaseline="middle";for(var d=0,c=0,M=wr;c<M.length;c++){var ge=M[c];i.fillText(String.fromCharCode(ge),d,16/2),d+=10}return i.getImageData(0,0,96*10,16)},L.createFromSampleData=function(n,e){var i=16*10*4*96;if(n.length!==i)throw new Error("Unexpected source in MinimapCharRenderer");var d=L._downsample(n,e);return new Ho(d,e)},L._downsampleChar=function(n,e,i,d,c){for(var M=1*c,ge=2*c,le=d,He=0,st=0;st<ge;st++)for(var ht=st/ge*16,y=(st+1)/ge*16,u=0;u<M;u++){for(var l=u/M*10,b=(u+1)/M*10,S=0,C=0,$=ht;$<y;$++)for(var Be=e+Math.floor($)*3840,ot=1-($-Math.floor($)),xe=l;xe<b;xe++){var dt=1-(xe-Math.floor(xe)),Nt=Be+Math.floor(xe)*4,qt=dt*ot;C+=qt,S+=n[Nt]*n[Nt+3]/255*qt}var en=S/C;He=Math.max(He,en),i[le++]=en}return He},L._downsample=function(n,e){for(var i=2*e*1*e,d=i*96,c=new Uint8ClampedArray(d),M=0,ge=0,le=0,He=0;He<96;He++)le=Math.max(le,this._downsampleChar(n,ge,c,M,e)),M+=i,ge+=10*4;if(le>0)for(var st=255/le,ht=0;ht<d;ht++)c[ht]*=st;return c},L}(),gr=r("/l9y"),Br=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function Lr(L,n){return L===1?2*n:(2+1)*n}function Ai(L,n){return L===1,1*n}var Ko=140,is=2,ko=function(){function L(n){var e=this,i=n.options,d=i.get(105),c=i.get(107),M=i.get(34);this.renderMinimap=c.renderMinimap|0,this.scrollBeyondLastLine=i.get(80);var ge=i.get(54);this.showSlider=ge.showSlider,this.fontScale=Math.round(ge.scale*d),this.charRenderer=Object(Fo.a)(function(){return So.create(e.fontScale,M.fontFamily)}),this.pixelRatio=d,this.typicalHalfwidthCharacterWidth=M.typicalHalfwidthCharacterWidth,this.lineHeight=i.get(49),this.minimapLeft=c.minimapLeft,this.minimapWidth=c.minimapWidth,this.minimapHeight=c.height,this.canvasInnerWidth=Math.floor(d*this.minimapWidth),this.canvasInnerHeight=Math.floor(d*this.minimapHeight),this.canvasOuterWidth=this.canvasInnerWidth/d,this.canvasOuterHeight=this.canvasInnerHeight/d}return L.prototype.equals=function(n){return this.renderMinimap===n.renderMinimap&&this.scrollBeyondLastLine===n.scrollBeyondLastLine&&this.showSlider===n.showSlider&&this.pixelRatio===n.pixelRatio&&this.typicalHalfwidthCharacterWidth===n.typicalHalfwidthCharacterWidth&&this.lineHeight===n.lineHeight&&this.fontScale===n.fontScale&&this.minimapLeft===n.minimapLeft&&this.minimapWidth===n.minimapWidth&&this.minimapHeight===n.minimapHeight&&this.canvasInnerWidth===n.canvasInnerWidth&&this.canvasInnerHeight===n.canvasInnerHeight&&this.canvasOuterWidth===n.canvasOuterWidth&&this.canvasOuterHeight===n.canvasOuterHeight},L}(),os=function(){function L(n,e,i,d,c,M,ge){this.scrollTop=n,this.scrollHeight=e,this._computedSliderRatio=i,this.sliderTop=d,this.sliderHeight=c,this.startLineNumber=M,this.endLineNumber=ge}return L.prototype.getDesiredScrollTopFromDelta=function(n){var e=this.sliderTop+n;return Math.round(e/this._computedSliderRatio)},L.prototype.getDesiredScrollTopFromTouchLocation=function(n){return Math.round((n-this.sliderHeight/2)/this._computedSliderRatio)},L.create=function(n,e,i,d,c,M,ge,le,He){var st=n.pixelRatio,ht=Lr(n.renderMinimap,n.fontScale),y=Math.floor(n.canvasInnerHeight/ht),u=n.lineHeight,l;if(c&&i!==M){var b=i-e+1;l=Math.floor(b*ht/st)}else{var S=d/u;l=Math.floor(S*ht/st)}var C;n.scrollBeyondLastLine?C=(M-1)*ht/st:C=Math.max(0,M*ht/st-l),C=Math.min(n.minimapHeight-l,C);var $=C/(le-d),Be=ge*$,ot=0;if(n.scrollBeyondLastLine){var S=d/u;ot=S}if(y>=M+ot){var xe=1,dt=M;return new L(ge,le,$,Be,l,xe,dt)}else{var xe=Math.max(1,Math.floor(e-Be*st/ht));He&&He.scrollHeight===le&&(He.scrollTop>ge&&(xe=Math.min(xe,He.startLineNumber)),He.scrollTop<ge&&(xe=Math.max(xe,He.startLineNumber)));var dt=Math.min(M,xe+y-1);return new L(ge,le,$,Be,l,xe,dt)}},L}(),ao=function(){function L(n){this.dy=n}return L.prototype.onContentChanged=function(){this.dy=-1},L.prototype.onTokensChanged=function(){this.dy=-1},L.INVALID=new L(-1),L}(),rs=function(){function L(n,e,i){this.renderedLayout=n,this._imageData=e,this._renderedLines=new It(function(){return ao.INVALID}),this._renderedLines._set(n.startLineNumber,i)}return L.prototype.linesEquals=function(n){if(!this.scrollEquals(n))return!1;for(var e=this._renderedLines._get(),i=e.lines,d=0,c=i.length;d<c;d++)if(i[d].dy===-1)return!1;return!0},L.prototype.scrollEquals=function(n){return this.renderedLayout.startLineNumber===n.startLineNumber&&this.renderedLayout.endLineNumber===n.endLineNumber},L.prototype._get=function(){var n=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:n.rendLineNumberStart,lines:n.lines}},L.prototype.onLinesChanged=function(n){return this._renderedLines.onLinesChanged(n.fromLineNumber,n.toLineNumber)},L.prototype.onLinesDeleted=function(n){this._renderedLines.onLinesDeleted(n.fromLineNumber,n.toLineNumber)},L.prototype.onLinesInserted=function(n){this._renderedLines.onLinesInserted(n.fromLineNumber,n.toLineNumber)},L.prototype.onTokensChanged=function(n){return this._renderedLines.onTokensChanged(n.ranges)},L}(),Dr=function(){function L(n,e,i,d){this._backgroundFillData=L._createBackgroundFillData(e,i,d),this._buffers=[n.createImageData(e,i),n.createImageData(e,i)],this._lastUsedBuffer=0}return L.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var n=this._buffers[this._lastUsedBuffer];return n.data.set(this._backgroundFillData),n},L._createBackgroundFillData=function(n,e,i){for(var d=i.r,c=i.g,M=i.b,ge=new Uint8ClampedArray(n*e*4),le=0,He=0;He<e;He++)for(var st=0;st<n;st++)ge[le]=d,ge[le+1]=c,ge[le+2]=M,ge[le+3]=255,le+=4;return ge},L}(),pn=function(L){Br(n,L);function n(e){var i=L.call(this,e)||this;return i._selections=[],i._renderDecorations=!1,i._gestureInProgress=!1,i._options=new ko(i._context.configuration),i._lastRenderData=null,i._buffers=null,i._selectionColor=i._context.theme.getColor(Oi.Hb),i._domNode=Object(x.b)(document.createElement("div")),ce.write(i._domNode,8),i._domNode.setClassName(i._getMinimapDomNodeClassName()),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._shadow=Object(x.b)(document.createElement("div")),i._shadow.setClassName("minimap-shadow-hidden"),i._domNode.appendChild(i._shadow),i._canvas=Object(x.b)(document.createElement("canvas")),i._canvas.setPosition("absolute"),i._canvas.setLeft(0),i._domNode.appendChild(i._canvas),i._decorationsCanvas=Object(x.b)(document.createElement("canvas")),i._decorationsCanvas.setPosition("absolute"),i._decorationsCanvas.setClassName("minimap-decorations-layer"),i._decorationsCanvas.setLeft(0),i._domNode.appendChild(i._decorationsCanvas),i._slider=Object(x.b)(document.createElement("div")),i._slider.setPosition("absolute"),i._slider.setClassName("minimap-slider"),i._slider.setLayerHinting(!0),i._slider.setContain("strict"),i._domNode.appendChild(i._slider),i._sliderHorizontal=Object(x.b)(document.createElement("div")),i._sliderHorizontal.setPosition("absolute"),i._sliderHorizontal.setClassName("minimap-slider-horizontal"),i._slider.appendChild(i._sliderHorizontal),i._tokensColorTracker=zo.getInstance(),i._applyLayout(),i._mouseDownListener=ne.n(i._domNode.domNode,"mousedown",function(d){d.preventDefault();var c=i._options.renderMinimap;if(c===0)return;if(!i._lastRenderData)return;var M=Lr(c,i._options.fontScale),ge=i._options.pixelRatio*d.browserEvent.offsetY,le=Math.floor(ge/M),He=le+i._lastRenderData.renderedLayout.startLineNumber;He=Math.min(He,i._context.model.getLineCount()),i._context.privateViewEventBus.emit(new Gi("mouse",new Te.a(He,1,He,1),1,!1,0))}),i._sliderMouseMoveMonitor=new _.a,i._sliderMouseDownListener=ne.n(i._slider.domNode,"mousedown",function(d){if(d.preventDefault(),d.stopPropagation(),d.leftButton&&i._lastRenderData){var c=d.posy,M=d.posx,ge=i._lastRenderData.renderedLayout;i._slider.toggleClassName("active",!0),i._sliderMouseMoveMonitor.startMonitoring(d.target,d.buttons,_.b,function(le){var He=Math.abs(le.posx-M);if(K.h&&He>Ko){i._context.viewLayout.setScrollPositionNow({scrollTop:ge.scrollTop});return}var st=le.posy-c;i._context.viewLayout.setScrollPositionNow({scrollTop:ge.getDesiredScrollTopFromDelta(st)})},function(){i._slider.toggleClassName("active",!1)})}}),i._gestureDisposable=D.b.addTarget(i._domNode.domNode),i._sliderTouchStartListener=ne.i(i._domNode.domNode,D.a.Start,function(d){d.preventDefault(),d.stopPropagation(),i._lastRenderData&&(i._slider.toggleClassName("active",!0),i._gestureInProgress=!0,i.scrollDueToTouchEvent(d))}),i._sliderTouchMoveListener=ne.n(i._domNode.domNode,D.a.Change,function(d){d.preventDefault(),d.stopPropagation(),i._lastRenderData&&i._gestureInProgress&&i.scrollDueToTouchEvent(d)}),i._sliderTouchEndListener=ne.n(i._domNode.domNode,D.a.End,function(d){d.preventDefault(),d.stopPropagation(),i._gestureInProgress=!1,i._slider.toggleClassName("active",!1)}),i}return n.prototype.scrollDueToTouchEvent=function(e){var i=this._domNode.domNode.getBoundingClientRect().top,d=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-i);this._context.viewLayout.setScrollPositionNow({scrollTop:d})},n.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),L.prototype.dispose.call(this)},n.prototype._getMinimapDomNodeClassName=function(){return this._options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"},n.prototype.getDomNode=function(){return this._domNode},n.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},n.prototype._getBuffer=function(){return this._buffers||this._options.canvasInnerWidth>0&&this._options.canvasInnerHeight>0&&(this._buffers=new Dr(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},n.prototype._onOptionsMaybeChanged=function(){var e=new ko(this._context.configuration);return this._options.equals(e)?!1:(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},n.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._renderDecorations=!0,!0},n.prototype.onFlushed=function(e){return this._lastRenderData=null,!0},n.prototype.onLinesChanged=function(e){return this._lastRenderData?this._lastRenderData.onLinesChanged(e):!1},n.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},n.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},n.prototype.onScrollChanged=function(e){return this._renderDecorations=!0,!0},n.prototype.onTokensChanged=function(e){return this._lastRenderData?this._lastRenderData.onTokensChanged(e):!1},n.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0},n.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0},n.prototype.onDecorationsChanged=function(e){return this._renderDecorations=!0,!0},n.prototype.onThemeChanged=function(e){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(Oi.Hb),this._renderDecorations=!0,!0},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){var i=this._options.renderMinimap;if(i===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var d=os.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(d.sliderTop),this._slider.setHeight(d.sliderHeight);var c=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,M=Math.min(this._options.minimapWidth,Math.round(c*Ai(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(M),this._sliderHorizontal.setWidth(this._options.minimapWidth-M),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(d.sliderHeight),this.renderDecorations(d),this._lastRenderData=this.renderLines(d)},n.prototype.renderDecorations=function(e){if(this._renderDecorations){this._renderDecorations=!1;var i=this._context.model.getDecorationsInViewport(new Te.a(e.startLineNumber,1,e.endLineNumber,this._context.model.getLineMaxColumn(e.endLineNumber))),d=this._options,c=d.renderMinimap,M=d.canvasInnerWidth,ge=d.canvasInnerHeight,le=Lr(c,this._options.fontScale),He=Ai(c,this._options.fontScale),st=this._context.model.getOptions().tabSize,ht=this._decorationsCanvas.domNode.getContext("2d");ht.clearRect(0,0,M,ge);for(var y=new Map,u=0;u<this._selections.length;u++)for(var l=this._selections[u],b=l.startLineNumber;b<=l.endLineNumber;b++)this.renderDecorationOnLine(ht,y,l,this._selectionColor,e,b,le,le,st,He);for(var u=0;u<i.length;u++){var S=i[u];if(!S.options.minimap)continue;for(var C=S.options.minimap.getColor(this._context.theme),b=S.range.startLineNumber;b<=S.range.endLineNumber;b++)switch(S.options.minimap.position){case gr.c.Inline:this.renderDecorationOnLine(ht,y,S.range,C,e,b,le,le,st,He);continue;case gr.c.Gutter:var $=(b-e.startLineNumber)*le,Be=2;this.renderDecoration(ht,C,Be,$,is,le);continue}}}},n.prototype.renderDecorationOnLine=function(e,i,d,c,M,ge,le,He,st,ht){var y=(ge-M.startLineNumber)*He;if(y+le<0||y>this._options.canvasInnerHeight)return;var u=i.get(ge),l=!u;if(!u){var b=this._context.model.getLineContent(ge);u=[_t.f];for(var S=1;S<b.length+1;S++){var C=b.charCodeAt(S-1),$=C===9?st*ht:Kn.y(C)?2*ht:ht;u[S]=u[S-1]+$}i.set(ge,u)}var Be=d.startColumn,ot=d.endColumn,xe=d.startLineNumber,dt=d.endLineNumber,Nt=xe===ge?u[Be-1]:_t.f,qt=dt>ge?u.length-1:ot-1;if(qt>0){var en=u[qt]-Nt||2;this.renderDecoration(e,c,Nt,y,en,le)}l&&this.renderLineHighlight(e,c,y,le)},n.prototype.renderLineHighlight=function(e,i,d,c){e.fillStyle=i&&i.transparent(.5).toString()||"",e.fillRect(_t.f,d,e.canvas.width,c)},n.prototype.renderDecoration=function(e,i,d,c,M,ge){e.fillStyle=i&&i.toString()||"",e.fillRect(d,c,M,ge)},n.prototype.renderLines=function(e){var i=this._options.renderMinimap,d=this._options.charRenderer(),c=e.startLineNumber,M=e.endLineNumber,ge=Lr(i,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var le=this._lastRenderData._get();return new rs(e,le.imageData,le.lines)}var He=this._getBuffer();if(!He)return null;for(var st=n._renderUntouchedLines(He,c,M,ge,this._lastRenderData),ht=st[0],y=st[1],u=st[2],l=this._context.model.getMinimapLinesRenderingData(c,M,u),b=l.tabSize,S=this._tokensColorTracker.getColor(2),C=this._tokensColorTracker.backgroundIsLight(),$=0,Be=[],ot=0,xe=M-c+1;ot<xe;ot++)u[ot]&&n._renderLine(He,S,C,i,this._tokensColorTracker,d,$,b,l.data[ot],this._options.fontScale),Be[ot]=new ao($),$+=ge;var dt=ht===-1?0:ht,Nt=y===-1?He.height:y,qt=Nt-dt,en=this._canvas.domNode.getContext("2d");return en.putImageData(He,0,0,0,dt,He.width,qt),new rs(e,He,Be)},n._renderUntouchedLines=function(e,i,d,c,M){var ge=[];if(!M){for(var le=0,He=d-i+1;le<He;le++)ge[le]=!0;return[-1,-1,ge]}for(var st=M._get(),ht=st.imageData.data,y=st.rendLineNumberStart,u=st.lines,l=u.length,b=e.width,S=e.data,C=(d-i+1)*c*b*4,$=-1,Be=-1,ot=-1,xe=-1,dt=-1,Nt=-1,qt=0,en=i;en<=d;en++){var un=en-i,an=en-y,Cn=an>=0&&an<l?u[an].dy:-1;if(Cn===-1){ge[un]=!0,qt+=c;continue}var In=Cn*b*4,Nn=(Cn+c)*b*4,ti=qt*b*4,Dn=(qt+c)*b*4;xe===In&&Nt===ti?(xe=Nn,Nt=Dn):(ot!==-1&&(S.set(ht.subarray(ot,xe),dt),$===-1&&ot===0&&ot===dt&&($=xe),Be===-1&&xe===C&&ot===dt&&(Be=ot)),ot=In,xe=Nn,dt=ti,Nt=Dn),ge[un]=!1,qt+=c}ot!==-1&&(S.set(ht.subarray(ot,xe),dt),$===-1&&ot===0&&ot===dt&&($=xe),Be===-1&&xe===C&&ot===dt&&(Be=ot));var di=$===-1?-1:$/(b*4),qn=Be===-1?-1:Be/(b*4);return[di,qn,ge]},n._renderLine=function(e,i,d,c,M,ge,le,He,st,ht){for(var y=st.content,u=st.tokens,l=Ai(c,ht),b=e.width-l,S=_t.f,C=0,$=0,Be=0,ot=u.getCount();Be<ot;Be++)for(var xe=u.getEndOffset(Be),dt=u.getForeground(Be),Nt=M.getColor(dt);C<xe;C++){if(S>b)return;var qt=y.charCodeAt(C);if(qt===9){var en=He-(C+$)%He;$+=en-1,S+=en*l}else if(qt===32)S+=l;else for(var un=Kn.y(qt)?2:1,an=0;an<un;an++)if(c===2?ge.blockRenderChar(e,S,le,Nt,i,d):ge.renderChar(e,S,le,qt,Nt,i,ht,d),S+=l,S>b)return}},n}(Z);Object(tt.e)(function(L,n){var e=L.getColor(Oi.Vb);if(e){var i=e.transparent(.5);n.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var d=L.getColor(Oi.Wb);if(d){var c=d.transparent(.5);n.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+c+"; }")}var M=L.getColor(Oi.Ub);if(M){var ge=M.transparent(.5);n.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+ge+"; }")}var le=L.getColor(Oi.Tb);le&&n.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+le+" -6px 0 6px -6px inset; }")});var Os=r("TitK"),Ts=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),_i=function(L){Ts(n,L);function n(e){var i=L.call(this,e)||this,d=i._context.configuration.options,c=d.get(107);return i._widgets={},i._verticalScrollbarWidth=c.verticalScrollbarWidth,i._minimapWidth=c.minimapWidth,i._horizontalScrollbarHeight=c.horizontalScrollbarHeight,i._editorHeight=c.height,i._editorWidth=c.width,i._domNode=Object(x.b)(document.createElement("div")),ce.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this._widgets={}},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._verticalScrollbarWidth=d.verticalScrollbarWidth,this._minimapWidth=d.minimapWidth,this._horizontalScrollbarHeight=d.horizontalScrollbarHeight,this._editorHeight=d.height,this._editorWidth=d.width,!0},n.prototype.addWidget=function(e){var i=Object(x.b)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:i},i.setPosition("absolute"),i.setAttribute("widgetId",e.getId()),this._domNode.appendChild(i),this.setShouldRender()},n.prototype.setWidgetPosition=function(e,i){var d=this._widgets[e.getId()];return d.preference===i?!1:(d.preference=i,this.setShouldRender(),!0)},n.prototype.removeWidget=function(e){var i=e.getId();if(this._widgets.hasOwnProperty(i)){var d=this._widgets[i],c=d.domNode.domNode;delete this._widgets[i],c.parentNode.removeChild(c),this.setShouldRender()}},n.prototype._renderWidget=function(e){var i=e.domNode;if(e.preference===null){i.unsetTop();return}if(e.preference===0)i.setTop(0),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(e.preference===1){var d=i.domNode.clientHeight;i.setTop(this._editorHeight-d-2*this._horizontalScrollbarHeight),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else e.preference===2&&(i.setTop(0),i.domNode.style.right="50%")},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var i=Object.keys(this._widgets),d=0,c=i.length;d<c;d++){var M=i[d];this._renderWidget(this._widgets[M])}},n}(Z),mr=r("Ytku"),ss=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),as=function(){function L(n,e){var i=n.options;this.lineHeight=i.get(49),this.pixelRatio=i.get(105),this.overviewRulerLanes=i.get(63),this.renderBorder=i.get(62);var d=e.getColor(tn.k);this.borderColor=d?d.toString():null,this.hideCursor=i.get(42);var c=e.getColor(tn.f);this.cursorColor=c?c.transparent(.7).toString():null,this.themeType=e.type;var M=i.get(54),ge=M.enabled,le=M.side,He=ge?zn.y.getDefaultBackground():null;He===null||le==="left"?this.backgroundColor=null:this.backgroundColor=mr.a.Format.CSS.formatHex(He);var st=i.get(107),ht=st.overviewRuler;this.top=ht.top,this.right=ht.right,this.domWidth=ht.width,this.domHeight=ht.height,this.overviewRulerLanes===0?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);var y=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),u=y[0],l=y[1];this.x=u,this.w=l}return L.prototype._initLanes=function(n,e,i){var d=e-n;if(i>=3){var c=Math.floor(d/3),M=Math.floor(d/3),ge=d-c-M,le=n,He=le+c,st=le+c+ge;return[[0,le,He,le,st,le,He,le],[0,c,ge,c+ge,M,c+ge+M,ge+M,c+ge+M]]}else if(i===2){var c=Math.floor(d/2),M=d-c,le=n,st=le+c;return[[0,le,le,le,st,le,le,le],[0,c,c,c,M,c+M,c+M,c+M]]}else{var ht=n,y=d;return[[0,ht,ht,ht,ht,ht,ht,ht],[0,y,y,y,y,y,y,y]]}},L.prototype.equals=function(n){return this.lineHeight===n.lineHeight&&this.pixelRatio===n.pixelRatio&&this.overviewRulerLanes===n.overviewRulerLanes&&this.renderBorder===n.renderBorder&&this.borderColor===n.borderColor&&this.hideCursor===n.hideCursor&&this.cursorColor===n.cursorColor&&this.themeType===n.themeType&&this.backgroundColor===n.backgroundColor&&this.top===n.top&&this.right===n.right&&this.domWidth===n.domWidth&&this.domHeight===n.domHeight&&this.canvasWidth===n.canvasWidth&&this.canvasHeight===n.canvasHeight},L}(),Ms=function(L){ss(n,L);function n(e){var i=L.call(this,e)||this;return i._domNode=Object(x.b)(document.createElement("canvas")),i._domNode.setClassName("decorationsOverviewRuler"),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._domNode.setContain("strict"),i._domNode.setAttribute("aria-hidden","true"),i._updateSettings(!1),i._tokensColorTrackerListener=zn.y.onDidChange(function(d){d.changedColorMap&&i._updateSettings(!0)}),i._cursorPositions=[],i}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},n.prototype._updateSettings=function(e){var i=new as(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(i)?!1:(this._settings=i,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)},n.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},n.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var i=0,d=e.selections.length;i<d;i++)this._cursorPositions[i]=e.selections[i].getPosition();return this._cursorPositions.sort(ve.a.compare),!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.onThemeChanged=function(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},n.prototype.getDomNode=function(){return this._domNode.domNode},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this._render()},n.prototype._render=function(){if(this._settings.overviewRulerLanes===0){this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"");return}var e=this._settings.canvasWidth,i=this._settings.canvasHeight,d=this._settings.lineHeight,c=this._context.viewLayout,M=this._context.viewLayout.getScrollHeight(),ge=i/M,le=this._context.model.getAllOverviewRulerDecorations(this._context.theme),He=6*this._settings.pixelRatio|0,st=He/2|0,ht=this._domNode.domNode.getContext("2d");this._settings.backgroundColor===null?ht.clearRect(0,0,e,i):(ht.fillStyle=this._settings.backgroundColor,ht.fillRect(0,0,e,i));var y=this._settings.x,u=this._settings.w,l=Object.keys(le);l.sort();for(var b=0,S=l.length;b<S;b++){var C=l[b],$=le[C];ht.fillStyle=C;for(var Be=0,ot=0,xe=0,dt=0,Nt=$.length;dt<Nt;dt++){var qt=$[3*dt],en=$[3*dt+1],un=$[3*dt+2],an=c.getVerticalOffsetForLineNumber(en)*ge|0,Cn=(c.getVerticalOffsetForLineNumber(un)+d)*ge|0,In=Cn-an;if(In<He){var Nn=(an+Cn)/2|0;Nn<st?Nn=st:Nn+st>i&&(Nn=i-st),an=Nn-st,Cn=Nn+st}an>xe+1||qt!==Be?(dt!==0&&ht.fillRect(y[Be],ot,u[Be],xe-ot),Be=qt,ot=an,xe=Cn):Cn>xe&&(xe=Cn)}ht.fillRect(y[Be],ot,u[Be],xe-ot)}if(!this._settings.hideCursor&&this._settings.cursorColor){var ti=2*this._settings.pixelRatio|0,Dn=ti/2|0,di=this._settings.x[7],qn=this._settings.w[7];ht.fillStyle=this._settings.cursorColor;for(var ot=-100,xe=-100,dt=0,Nt=this._cursorPositions.length;dt<Nt;dt++){var Ri=this._cursorPositions[dt],Nn=c.getVerticalOffsetForLineNumber(Ri.lineNumber)*ge|0;Nn<Dn?Nn=Dn:Nn+Dn>i&&(Nn=i-Dn);var an=Nn-Dn,Cn=an+ti;an>xe+1?(dt!==0&&ht.fillRect(di,ot,qn,xe-ot),ot=an,xe=Cn):Cn>xe&&(xe=Cn)}ht.fillRect(di,ot,qn,xe-ot)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(ht.beginPath(),ht.lineWidth=1,ht.strokeStyle=this._settings.borderColor,ht.moveTo(0,0),ht.lineTo(0,i),ht.stroke(),ht.moveTo(0,0),ht.lineTo(e,0),ht.stroke())},n}(Z),jo=r("kEqQ"),ls=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),$s=function(L){ls(n,L);function n(e,i){var d=L.call(this)||this;d._context=e;var c=d._context.configuration.options;return d._domNode=Object(x.b)(document.createElement("canvas")),d._domNode.setClassName(i),d._domNode.setPosition("absolute"),d._domNode.setLayerHinting(!0),d._domNode.setContain("strict"),d._zoneManager=new jo.b(function(M){return d._context.viewLayout.getVerticalOffsetForLineNumber(M)}),d._zoneManager.setDOMWidth(0),d._zoneManager.setDOMHeight(0),d._zoneManager.setOuterHeight(d._context.viewLayout.getScrollHeight()),d._zoneManager.setLineHeight(c.get(49)),d._zoneManager.setPixelRatio(c.get(105)),d._context.addEventHandler(d),d}return n.prototype.dispose=function(){this._context.removeEventHandler(this),L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return e.hasChanged(49)&&(this._zoneManager.setLineHeight(i.get(49)),this._render()),e.hasChanged(105)&&(this._zoneManager.setPixelRatio(i.get(105)),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},n.prototype.onFlushed=function(e){return this._render(),!0},n.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},n.prototype.onZonesChanged=function(e){return this._render(),!0},n.prototype.getDomNode=function(){return this._domNode.domNode},n.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var i=!1;i=this._zoneManager.setDOMWidth(e.width)||i,i=this._zoneManager.setDOMHeight(e.height)||i,i&&(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())},n.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},n.prototype._render=function(){if(this._zoneManager.getOuterHeight()===0)return!1;var e=this._zoneManager.getCanvasWidth(),i=this._zoneManager.getCanvasHeight(),d=this._zoneManager.resolveColorZones(),c=this._zoneManager.getId2Color(),M=this._domNode.domNode.getContext("2d");return M.clearRect(0,0,e,i),d.length>0&&this._renderOneLane(M,d,c,e),!0},n.prototype._renderOneLane=function(e,i,d,c){for(var M=0,ge=0,le=0,He=0,st=i;He<st.length;He++){var ht=st[He],y=ht.colorId,u=ht.from,l=ht.to;y!==M?(e.fillRect(0,ge,c,le-ge),M=y,e.fillStyle=d[M],ge=u,le=l):le>=u?le=Math.max(le,l):(e.fillRect(0,ge,c,le-ge),ge=u,le=l)}e.fillRect(0,ge,c,le-ge)},n}(Se),da=r("5Al8"),Js=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Qs=function(L){Js(n,L);function n(e){var i=L.call(this,e)||this;i.domNode=Object(x.b)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[];var d=i._context.configuration.options;return i._rulers=d.get(77),i._typicalHalfwidthCharacterWidth=d.get(34).typicalHalfwidthCharacterWidth,i}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return this._rulers=i.get(77),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},n.prototype.prepareRender=function(e){},n.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,i=this._rulers.length;if(e===i)return;if(e<i){for(var d=this._context.model.getOptions().tabSize,c=d,M=i-e;M>0;){var ge=Object(x.b)(document.createElement("div"));ge.setClassName("view-ruler"),ge.setWidth(c),this.domNode.appendChild(ge),this._renderedRulers.push(ge),M--}return}for(var le=e-i;le>0;){var ge=this._renderedRulers.pop();this.domNode.removeChild(ge),le--}},n.prototype.render=function(e){this._ensureRulersCount();for(var i=0,d=this._rulers.length;i<d;i++){var c=this._renderedRulers[i];c.setHeight(Math.min(e.scrollHeight,1e6)),c.setLeft(this._rulers[i]*this._typicalHalfwidthCharacterWidth)}},n}(Z);Object(tt.e)(function(L,n){var e=L.getColor(tn.l);e&&n.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+e+" inset; }")});var ua=r("FdDt"),ds=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wo=function(L){ds(n,L);function n(e){var i=L.call(this,e)||this;i._scrollTop=0,i._width=0,i._updateWidth(),i._shouldShow=!1;var d=i._context.configuration.options,c=d.get(78);return i._useShadows=c.useShadows,i._domNode=Object(x.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype._updateShouldShow=function(){var e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e?(this._shouldShow=e,!0):!1},n.prototype.getDomNode=function(){return this._domNode},n.prototype._updateWidth=function(){var e=this._context.configuration.options,i=e.get(107);i.renderMinimap===0||i.minimapWidth>0&&i.minimapLeft===0?this._width=i.width:this._width=i.width-i.minimapWidth-i.verticalScrollbarWidth},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(78);return this._useShadows=d.useShadows,this._updateWidth(),this._updateShouldShow(),!0},n.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},n}(Z);Object(tt.e)(function(L,n){var e=L.getColor(Oi.Tb);e&&n.addRule(".monaco-editor .scroll-decoration { box-shadow: "+e+" 0 6px 6px -6px inset; }")});var xs=r("quOs"),Ni=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Go=function(){function L(n){this.left=n.left,this.width=n.width,this.startStyle=null,this.endStyle=null}return L}(),Xo=function(){function L(n,e){this.lineNumber=n,this.ranges=e}return L}();function us(L){return new Go(L)}function Ur(L){return new Xo(L.lineNumber,L.ranges.map(us))}var Yo=A.f,cs=function(L){Ni(n,L);function n(e){var i=L.call(this)||this;i._previousFrameVisibleRangesWithStyle=[],i._context=e;var d=i._context.configuration.options;return i._lineHeight=d.get(49),i._roundedSelection=d.get(76),i._typicalHalfwidthCharacterWidth=d.get(34).typicalHalfwidthCharacterWidth,i._selections=[],i._renderResult=null,i._context.addEventHandler(i),i}return n.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,L.prototype.dispose.call(this)},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._roundedSelection=i.get(76),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},n.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype._visibleRangesHaveGaps=function(e){for(var i=0,d=e.length;i<d;i++){var c=e[i];if(c.ranges.length>1)return!0}return!1},n.prototype._enrichVisibleRangesWithStyle=function(e,i,d){var c=this._typicalHalfwidthCharacterWidth/4,M=null,ge=null;if(d&&d.length>0&&i.length>0){var le=i[0].lineNumber;if(le===e.startLineNumber)for(var He=0;!M&&He<d.length;He++)d[He].lineNumber===le&&(M=d[He].ranges[0]);var st=i[i.length-1].lineNumber;if(st===e.endLineNumber)for(var He=d.length-1;!ge&&He>=0;He--)d[He].lineNumber===st&&(ge=d[He].ranges[0]);M&&!M.startStyle&&(M=null),ge&&!ge.startStyle&&(ge=null)}for(var He=0,ht=i.length;He<ht;He++){var y=i[He].ranges[0],u=y.left,l=y.left+y.width,b={top:0,bottom:0},S={top:0,bottom:0};if(He>0){var C=i[He-1].ranges[0].left,$=i[He-1].ranges[0].left+i[He-1].ranges[0].width;nr(u-C)<c?b.top=2:u>C&&(b.top=1),nr(l-$)<c?S.top=2:C<l&&l<$&&(S.top=1)}else M&&(b.top=M.startStyle.top,S.top=M.endStyle.top);if(He+1<ht){var Be=i[He+1].ranges[0].left,ot=i[He+1].ranges[0].left+i[He+1].ranges[0].width;nr(u-Be)<c?b.bottom=2:Be<u&&u<ot&&(b.bottom=1),nr(l-ot)<c?S.bottom=2:l<ot&&(S.bottom=1)}else ge&&(b.bottom=ge.startStyle.bottom,S.bottom=ge.endStyle.bottom);y.startStyle=b,y.endStyle=S}},n.prototype._getVisibleRangesWithStyle=function(e,i,d){var c=i.linesVisibleRangesForRange(e,!0)||[],M=c.map(Ur),ge=this._visibleRangesHaveGaps(M);return!Yo&&!ge&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(i.visibleRange,M,d),M},n.prototype._createSelectionPiece=function(e,i,d,c,M){return'<div class="cslr '+d+'" style="top:'+e.toString()+"px;left:"+c.toString()+"px;width:"+M.toString()+"px;height:"+i+'px;"></div>'},n.prototype._actualRenderOneSelection=function(e,i,d,c){if(c.length===0)return;for(var M=!!c[0].ranges[0].startStyle,ge=this._lineHeight.toString(),le=(this._lineHeight-1).toString(),He=c[0].lineNumber,st=c[c.length-1].lineNumber,ht=0,y=c.length;ht<y;ht++){for(var u=c[ht],l=u.lineNumber,b=l-i,S=d&&(l===st||l===He)?le:ge,C=d&&l===He?1:0,$="",Be="",ot=0,xe=u.ranges.length;ot<xe;ot++){var dt=u.ranges[ot];if(M){var Nt=dt.startStyle,qt=dt.endStyle;if(Nt.top===1||Nt.bottom===1){$+=this._createSelectionPiece(C,S,n.SELECTION_CLASS_NAME,dt.left-n.ROUNDED_PIECE_WIDTH,n.ROUNDED_PIECE_WIDTH);var en=n.EDITOR_BACKGROUND_CLASS_NAME;Nt.top===1&&(en+=" "+n.SELECTION_TOP_RIGHT),Nt.bottom===1&&(en+=" "+n.SELECTION_BOTTOM_RIGHT),$+=this._createSelectionPiece(C,S,en,dt.left-n.ROUNDED_PIECE_WIDTH,n.ROUNDED_PIECE_WIDTH)}if(qt.top===1||qt.bottom===1){$+=this._createSelectionPiece(C,S,n.SELECTION_CLASS_NAME,dt.left+dt.width,n.ROUNDED_PIECE_WIDTH);var un=n.EDITOR_BACKGROUND_CLASS_NAME;qt.top===1&&(un+=" "+n.SELECTION_TOP_LEFT),qt.bottom===1&&(un+=" "+n.SELECTION_BOTTOM_LEFT),$+=this._createSelectionPiece(C,S,un,dt.left+dt.width,n.ROUNDED_PIECE_WIDTH)}}var an=n.SELECTION_CLASS_NAME;if(M){var Nt=dt.startStyle,qt=dt.endStyle;Nt.top===0&&(an+=" "+n.SELECTION_TOP_LEFT),Nt.bottom===0&&(an+=" "+n.SELECTION_BOTTOM_LEFT),qt.top===0&&(an+=" "+n.SELECTION_TOP_RIGHT),qt.bottom===0&&(an+=" "+n.SELECTION_BOTTOM_RIGHT)}Be+=this._createSelectionPiece(C,S,an,dt.left,dt.width)}e[b][0]+=$,e[b][1]+=Be}},n.prototype.prepareRender=function(e){for(var i=[],d=e.visibleRange.startLineNumber,c=e.visibleRange.endLineNumber,M=d;M<=c;M++){var ge=M-d;i[ge]=["",""]}for(var le=[],He=0,st=this._selections.length;He<st;He++){var ht=this._selections[He];if(ht.isEmpty()){le[He]=null;continue}var y=this._getVisibleRangesWithStyle(ht,e,this._previousFrameVisibleRangesWithStyle[He]);le[He]=y,this._actualRenderOneSelection(i,d,this._selections.length>1,y)}this._previousFrameVisibleRangesWithStyle=le,this._renderResult=i.map(function(u){var l=u[0],b=u[1];return l+b})},n.prototype.render=function(e,i){if(!this._renderResult)return"";var d=i-e;return d<0||d>=this._renderResult.length?"":this._renderResult[d]},n.SELECTION_CLASS_NAME="selected-text",n.SELECTION_TOP_LEFT="top-left-radius",n.SELECTION_BOTTOM_LEFT="bottom-left-radius",n.SELECTION_TOP_RIGHT="top-right-radius",n.SELECTION_BOTTOM_RIGHT="bottom-right-radius",n.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",n.ROUNDED_PIECE_WIDTH=10,n}(zt);Object(tt.e)(function(L,n){var e=L.getColor(Oi.K);e&&n.addRule(".monaco-editor .focused .selected-text { background-color: "+e+"; }");var i=L.getColor(Oi.F);i&&n.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var d=L.getColor(Oi.L);d&&n.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+d+"; }")});function nr(L){return L<0?-L:L}var qs=r("9UUe"),vr=function(){function L(n,e,i,d,c,M){this.top=n,this.left=e,this.width=i,this.height=d,this.textContent=c,this.textContentClassName=M}return L}(),hs=function(){function L(n){this._context=n;var e=this._context.configuration.options,i=e.get(34);this._cursorStyle=e.get(18),this._lineHeight=e.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(e.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(x.b)(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),G.a.applyFontInfo(this._domNode,i),this._domNode.setDisplay("none"),this._position=new ve.a(1,1),this._lastRenderedContent="",this._renderData=null}return L.prototype.getDomNode=function(){return this._domNode},L.prototype.getPosition=function(){return this._position},L.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},L.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},L.prototype.onConfigurationChanged=function(n){var e=this._context.configuration.options,i=e.get(34);return this._cursorStyle=e.get(18),this._lineHeight=e.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(e.get(21),this._typicalHalfwidthCharacterWidth),G.a.applyFontInfo(this._domNode,i),!0},L.prototype.onCursorPositionChanged=function(n){return this._position=n,!0},L.prototype._prepareRender=function(n){var e="";if(this._cursorStyle===_t.g.Line||this._cursorStyle===_t.g.LineThin){var i=n.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;var d;if(this._cursorStyle===_t.g.Line){if(d=ne.t(this._lineCursorWidth>0?this._lineCursorWidth:2),d>2){var c=this._context.model.getLineContent(this._position.lineNumber),M=Kn.E(c,this._position.column-1);e=c.substr(this._position.column-1,M)}}else d=ne.t(1);var ge=i.left;d>=2&&ge>=1&&(ge-=1);var le=n.getVerticalOffsetForLineNumber(this._position.lineNumber)-n.bigNumbersDelta;return new vr(le,ge,d,this._lineHeight,e,"")}var He=this._context.model.getLineContent(this._position.lineNumber),st=Kn.E(He,this._position.column-1),ht=n.linesVisibleRangesForRange(new Te.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+st),!1);if(!ht||ht.length===0)return null;var y=ht[0];if(y.outsideRenderedLine||y.ranges.length===0)return null;var u=y.ranges[0],l=u.width<1?this._typicalHalfwidthCharacterWidth:u.width,b="";if(this._cursorStyle===_t.g.Block){var S=this._context.model.getViewLineData(this._position.lineNumber);e=He.substr(this._position.column-1,st);var C=S.tokens.findTokenIndexAtOffset(this._position.column-1);b=S.tokens.getClassName(C)}var $=n.getVerticalOffsetForLineNumber(this._position.lineNumber)-n.bigNumbersDelta,Be=this._lineHeight;return(this._cursorStyle===_t.g.Underline||this._cursorStyle===_t.g.UnderlineThin)&&($+=this._lineHeight-2,Be=2),new vr($,u.left,l,Be,e,b)},L.prototype.prepareRender=function(n){this._renderData=this._prepareRender(n)},L.prototype.render=function(n){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},L}(),ea=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),As=function(L){ea(n,L);function n(e){var i=L.call(this,e)||this,d=i._context.configuration.options;return i._readOnly=d.get(68),i._cursorBlinking=d.get(16),i._cursorStyle=d.get(18),i._cursorSmoothCaretAnimation=d.get(17),i._selectionIsEmpty=!0,i._isVisible=!1,i._primaryCursor=new hs(i._context),i._secondaryCursors=[],i._renderData=[],i._domNode=Object(x.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._updateDomClassName(),i._domNode.appendChild(i._primaryCursor.getDomNode()),i._startCursorBlinkAnimation=new z.e,i._cursorFlatBlinkInterval=new z.c,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},n.prototype.getDomNode=function(){return this._domNode},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options;this._readOnly=i.get(68),this._cursorBlinking=i.get(16),this._cursorStyle=i.get(18),this._cursorSmoothCaretAnimation=i.get(17),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(var d=0,c=this._secondaryCursors.length;d<c;d++)this._secondaryCursors[d].onConfigurationChanged(e);return!0},n.prototype._onCursorPositionChanged=function(e,i){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<i.length)for(var d=i.length-this._secondaryCursors.length,c=0;c<d;c++){var M=new hs(this._context);this._domNode.domNode.insertBefore(M.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(M)}else if(this._secondaryCursors.length>i.length)for(var ge=this._secondaryCursors.length-i.length,c=0;c<ge;c++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1);for(var c=0;c<i.length;c++)this._secondaryCursors[c].onCursorPositionChanged(i[c])},n.prototype.onCursorStateChanged=function(e){for(var i=[],d=0,c=e.selections.length;d<c;d++)i[d]=e.selections[d].getPosition();this._onCursorPositionChanged(i[0],i.slice(1));var M=e.selections[0].isEmpty();return this._selectionIsEmpty!==M&&(this._selectionIsEmpty=M,this._updateDomClassName()),!0},n.prototype.onDecorationsChanged=function(e){return!0},n.prototype.onFlushed=function(e){return!0},n.prototype.onFocusChanged=function(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1},n.prototype.onLinesChanged=function(e){return!0},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype.onScrollChanged=function(e){return!0},n.prototype.onTokensChanged=function(e){var i=function(le){for(var He=0,st=e.ranges.length;He<st;He++)if(e.ranges[He].fromLineNumber<=le.lineNumber&&le.lineNumber<=e.ranges[He].toLineNumber)return!0;return!1};if(i(this._primaryCursor.getPosition()))return!0;for(var d=0,c=this._secondaryCursors;d<c.length;d++){var M=c[d];if(i(M.getPosition()))return!0}return!1},n.prototype.onZonesChanged=function(e){return!0},n.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},n.prototype._updateBlinking=function(){var e=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var i=this._getCursorBlinking(),d=i===0,c=i===5;d?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!d&&!c&&(i===1?this._cursorFlatBlinkInterval.cancelAndSet(function(){e._isVisible?e._hide():e._show()},n.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(function(){e._blinkingEnabled=!0,e._updateDomClassName()},n.BLINK_INTERVAL))},n.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},n.prototype._getClassName=function(){var e="cursors-layer";this._selectionIsEmpty||(e+=" has-selection");switch(this._cursorStyle){case _t.g.Line:e+=" cursor-line-style";break;case _t.g.Block:e+=" cursor-block-style";break;case _t.g.Underline:e+=" cursor-underline-style";break;case _t.g.LineThin:e+=" cursor-line-thin-style";break;case _t.g.BlockOutline:e+=" cursor-block-outline-style";break;case _t.g.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;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e},n.prototype._show=function(){this._primaryCursor.show();for(var e=0,i=this._secondaryCursors.length;e<i;e++)this._secondaryCursors[e].show();this._isVisible=!0},n.prototype._hide=function(){this._primaryCursor.hide();for(var e=0,i=this._secondaryCursors.length;e<i;e++)this._secondaryCursors[e].hide();this._isVisible=!1},n.prototype.prepareRender=function(e){this._primaryCursor.prepareRender(e);for(var i=0,d=this._secondaryCursors.length;i<d;i++)this._secondaryCursors[i].prepareRender(e)},n.prototype.render=function(e){var i=[],d=0,c=this._primaryCursor.render(e);c&&(i[d++]=c);for(var M=0,ge=this._secondaryCursors.length;M<ge;M++){var le=this._secondaryCursors[M].render(e);le&&(i[d++]=le)}this._renderData=i},n.prototype.getLastRenderData=function(){return this._renderData},n.BLINK_INTERVAL=500,n}(Z);Object(tt.e)(function(L,n){var e=L.getColor(tn.f);if(e){var i=L.getColor(tn.e);i||(i=e.opposite()),n.addRule(".monaco-editor .cursor { background-color: "+e+"; border-color: "+e+"; color: "+i+"; }"),L.type==="hc"&&n.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }")}});var Ns=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zo=function(){throw new Error("Invalid change accessor")},Vr=function(L){Ns(n,L);function n(e){var i=L.call(this,e)||this,d=i._context.configuration.options,c=d.get(107);return i._lineHeight=d.get(49),i._contentWidth=c.contentWidth,i._contentLeft=c.contentLeft,i.domNode=Object(x.b)(document.createElement("div")),i.domNode.setClassName("view-zones"),i.domNode.setPosition("absolute"),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.marginDomNode=Object(x.b)(document.createElement("div")),i.marginDomNode.setClassName("margin-view-zones"),i.marginDomNode.setPosition("absolute"),i.marginDomNode.setAttribute("role","presentation"),i.marginDomNode.setAttribute("aria-hidden","true"),i._zones={},i}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this._zones={}},n.prototype._recomputeWhitespacesProps=function(){for(var e=this,i=this._context.viewLayout.getWhitespaces(),d=new Map,c=0,M=i;c<M.length;c++){var ge=M[c];d.set(ge.id,ge)}return this._context.viewLayout.changeWhitespace(function(le){for(var He=!1,st=Object.keys(e._zones),ht=0,y=st.length;ht<y;ht++){var u=st[ht],l=e._zones[u],b=e._computeWhitespaceProps(l.delegate),S=d.get(u);S&&(S.afterLineNumber!==b.afterViewLineNumber||S.height!==b.heightInPx)&&(le.changeOneWhitespace(u,b.afterViewLineNumber,b.heightInPx),e._safeCallOnComputedHeight(l.delegate,b.heightInPx),He=!0)}return He})},n.prototype.onConfigurationChanged=function(e){var i=this._context.configuration.options,d=i.get(107);return this._lineHeight=i.get(49),this._contentWidth=d.contentWidth,this._contentLeft=d.contentLeft,e.hasChanged(49)&&this._recomputeWhitespacesProps(),!0},n.prototype.onLineMappingChanged=function(e){var i=this._recomputeWhitespacesProps();return i&&this._context.viewLayout.onHeightMaybeChanged(),i},n.prototype.onLinesDeleted=function(e){return!0},n.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},n.prototype.onZonesChanged=function(e){return!0},n.prototype.onLinesInserted=function(e){return!0},n.prototype._getZoneOrdinal=function(e){return typeof e.afterColumn!="undefined"?e.afterColumn:1e4},n.prototype._computeWhitespaceProps=function(e){if(e.afterLineNumber===0)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var i;if(typeof e.afterColumn!="undefined")i=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var d=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;i=new ve.a(d,this._context.model.getModelLineMaxColumn(d))}var c;i.column===this._context.model.getModelLineMaxColumn(i.lineNumber)?c=this._context.model.validateModelPosition({lineNumber:i.lineNumber+1,column:1}):c=this._context.model.validateModelPosition({lineNumber:i.lineNumber,column:i.column+1});var M=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(i),ge=this._context.model.coordinatesConverter.modelPositionIsVisible(c);return{afterViewLineNumber:M.lineNumber,heightInPx:ge?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}},n.prototype.changeViewZones=function(e){var i=this;return this._context.viewLayout.changeWhitespace(function(d){var c=!1,M={addZone:function(le){return c=!0,i._addZone(d,le)},removeZone:function(le){if(!le)return;c=i._removeZone(d,le)||c},layoutZone:function(le){if(!le)return;c=i._layoutZone(d,le)||c}};return fs(e,M),M.addZone=Zo,M.removeZone=Zo,M.layoutZone=Zo,c})},n.prototype._addZone=function(e,i){var d=this._computeWhitespaceProps(i),c=e.insertWhitespace(d.afterViewLineNumber,this._getZoneOrdinal(i),d.heightInPx,d.minWidthInPx),M={whitespaceId:c,delegate:i,isVisible:!1,domNode:Object(x.b)(i.domNode),marginDomNode:i.marginDomNode?Object(x.b)(i.marginDomNode):null};return this._safeCallOnComputedHeight(M.delegate,d.heightInPx),M.domNode.setPosition("absolute"),M.domNode.domNode.style.width="100%",M.domNode.setDisplay("none"),M.domNode.setAttribute("monaco-view-zone",M.whitespaceId),this.domNode.appendChild(M.domNode),M.marginDomNode&&(M.marginDomNode.setPosition("absolute"),M.marginDomNode.domNode.style.width="100%",M.marginDomNode.setDisplay("none"),M.marginDomNode.setAttribute("monaco-view-zone",M.whitespaceId),this.marginDomNode.appendChild(M.marginDomNode)),this._zones[M.whitespaceId]=M,this.setShouldRender(),M.whitespaceId},n.prototype._removeZone=function(e,i){if(this._zones.hasOwnProperty(i)){var d=this._zones[i];return delete this._zones[i],e.removeWhitespace(d.whitespaceId),d.domNode.removeAttribute("monaco-visible-view-zone"),d.domNode.removeAttribute("monaco-view-zone"),d.domNode.domNode.parentNode.removeChild(d.domNode.domNode),d.marginDomNode&&(d.marginDomNode.removeAttribute("monaco-visible-view-zone"),d.marginDomNode.removeAttribute("monaco-view-zone"),d.marginDomNode.domNode.parentNode.removeChild(d.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},n.prototype._layoutZone=function(e,i){if(this._zones.hasOwnProperty(i)){var d=this._zones[i],c=this._computeWhitespaceProps(d.delegate);return e.changeOneWhitespace(d.whitespaceId,c.afterViewLineNumber,c.heightInPx),this._safeCallOnComputedHeight(d.delegate,c.heightInPx),this.setShouldRender(),!0}return!1},n.prototype.shouldSuppressMouseDownOnViewZone=function(e){if(this._zones.hasOwnProperty(e)){var i=this._zones[e];return Boolean(i.delegate.suppressMouseDown)}return!1},n.prototype._heightInPixels=function(e){return typeof e.heightInPx=="number"?e.heightInPx:typeof e.heightInLines=="number"?this._lineHeight*e.heightInLines:this._lineHeight},n.prototype._minWidthInPixels=function(e){return typeof e.minWidthInPx=="number"?e.minWidthInPx:0},n.prototype._safeCallOnComputedHeight=function(e,i){if(typeof e.onComputedHeight=="function")try{e.onComputedHeight(i)}catch(d){Object(N.e)(d)}},n.prototype._safeCallOnDomNodeTop=function(e,i){if(typeof e.onDomNodeTop=="function")try{e.onDomNodeTop(i)}catch(d){Object(N.e)(d)}},n.prototype.prepareRender=function(e){},n.prototype.render=function(e){for(var i=e.viewportData.whitespaceViewportData,d={},c=!1,M=0,ge=i.length;M<ge;M++)d[i[M].id]=i[M],c=!0;for(var le=Object.keys(this._zones),M=0,ge=le.length;M<ge;M++){var He=le[M],st=this._zones[He],ht=0,y=0,u="none";d.hasOwnProperty(He)?(ht=d[He].verticalOffset-e.bigNumbersDelta,y=d[He].height,u="block",st.isVisible||(st.domNode.setAttribute("monaco-visible-view-zone","true"),st.isVisible=!0),this._safeCallOnDomNodeTop(st.delegate,e.getScrolledTopFromAbsoluteTop(d[He].verticalOffset))):(st.isVisible&&(st.domNode.removeAttribute("monaco-visible-view-zone"),st.isVisible=!1),this._safeCallOnDomNodeTop(st.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),st.domNode.setTop(ht),st.domNode.setHeight(y),st.domNode.setDisplay(u),st.marginDomNode&&(st.marginDomNode.setTop(ht),st.marginDomNode.setHeight(y),st.marginDomNode.setDisplay(u))}c&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},n}(Z);function fs(L,n){try{return L(n)}catch(e){Object(N.e)(e)}}var ps=function(){function L(n,e,i,d){this.configuration=n,this.theme=e,this.model=i,this.viewLayout=i.viewLayout,this.privateViewEventBus=d}return L.prototype.addEventHandler=function(n){this.privateViewEventBus.addEventHandler(n)},L.prototype.removeEventHandler=function(n){this.privateViewEventBus.removeEventHandler(n)},L}(),zr=function(){function L(n){this._eventHandlerGateKeeper=n,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return L.prototype.addEventHandler=function(n){for(var e=0,i=this._eventHandlers.length;e<i;e++)this._eventHandlers[e]===n&&console.warn("Detected duplicate listener in ViewEventDispatcher",n);this._eventHandlers.push(n)},L.prototype.removeEventHandler=function(n){for(var e=0;e<this._eventHandlers.length;e++)if(this._eventHandlers[e]===n){this._eventHandlers.splice(e,1);break}},L.prototype.emit=function(n){this._eventQueue?this._eventQueue.push(n):this._eventQueue=[n],this._isConsumingQueue||this.consumeQueue()},L.prototype.emitMany=function(n){this._eventQueue?this._eventQueue=this._eventQueue.concat(n):this._eventQueue=n,this._isConsumingQueue||this.consumeQueue()},L.prototype.consumeQueue=function(){var n=this;this._eventHandlerGateKeeper(function(){try{n._isConsumingQueue=!0,n._doConsumeQueue()}finally{n._isConsumingQueue=!1}})},L.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var n=this._eventQueue;this._eventQueue=null;for(var e=this._eventHandlers.slice(0),i=0,d=e.length;i<d;i++)e[i].handleEvents(n)}},L}(),yr=function(){function L(n,e,i,d){this.selections=n,this.startLineNumber=e.startLineNumber|0,this.endLineNumber=e.endLineNumber|0,this.relativeVerticalOffset=e.relativeVerticalOffset,this.bigNumbersDelta=e.bigNumbersDelta|0,this.whitespaceViewportData=i,this._model=d,this.visibleRange=new Te.a(e.startLineNumber,this._model.getLineMinColumn(e.startLineNumber),e.endLineNumber,this._model.getLineMaxColumn(e.endLineNumber))}return L.prototype.getViewLineRenderingData=function(n){return this._model.getViewLineRenderingData(this.visibleRange,n)},L.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},L}(),Or=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Tr=function(L){Or(n,L);function n(e,i,d,c,M,ge){var le=L.call(this)||this;le._cursor=M,le._renderAnimationFrame=null,le.outgoingEvents=ge;var He=new We(i,c,le.outgoingEvents,e);le.eventDispatcher=new zr(function($){return le._renderOnce($)}),le.eventDispatcher.addEventHandler(le),le._context=new ps(i,d.getTheme(),c,le.eventDispatcher),le._register(d.onThemeChange(function($){le._context.theme=$,le.eventDispatcher.emit(new vi),le.render(!0,!1)})),le.viewParts=[],le._textAreaHandler=new O(le._context,He,le.createTextAreaHandlerHelper()),le.viewParts.push(le._textAreaHandler),le.linesContent=Object(x.b)(document.createElement("div")),le.linesContent.setClassName("lines-content monaco-editor-background"),le.linesContent.setPosition("absolute"),le.domNode=Object(x.b)(document.createElement("div")),le.domNode.setClassName(le.getEditorClassName()),le.overflowGuardContainer=Object(x.b)(document.createElement("div")),ce.write(le.overflowGuardContainer,3),le.overflowGuardContainer.setClassName("overflow-guard"),le._scrollbar=new Ce(le._context,le.linesContent,le.domNode,le.overflowGuardContainer),le.viewParts.push(le._scrollbar),le.viewLines=new Vn(le._context,le.linesContent),le.viewZones=new Vr(le._context),le.viewParts.push(le.viewZones);var st=new Ms(le._context);le.viewParts.push(st);var ht=new wo(le._context);le.viewParts.push(ht);var y=new An(le._context);le.viewParts.push(y),y.addDynamicOverlay(new Ge(le._context)),y.addDynamicOverlay(new cs(le._context)),y.addDynamicOverlay(new At(le._context)),y.addDynamicOverlay(new at(le._context));var u=new gn(le._context);le.viewParts.push(u),u.addDynamicOverlay(new de(le._context)),u.addDynamicOverlay(new Ct(le._context)),u.addDynamicOverlay(new uo(le._context)),u.addDynamicOverlay(new Ui(le._context)),u.addDynamicOverlay(new Sn(le._context));var l=new Bn(le._context);l.getDomNode().appendChild(le.viewZones.marginDomNode),l.getDomNode().appendChild(u.getDomNode()),le.viewParts.push(l),le.contentWidgets=new Le(le._context,le.domNode),le.viewParts.push(le.contentWidgets),le.viewCursors=new As(le._context),le.viewParts.push(le.viewCursors),le.overlayWidgets=new _i(le._context),le.viewParts.push(le.overlayWidgets);var b=new Qs(le._context);le.viewParts.push(b);var S=new pn(le._context);if(le.viewParts.push(S),st){var C=le._scrollbar.getOverviewRulerLayoutInfo();C.parent.insertBefore(st.getDomNode(),C.insertBefore)}return le.linesContent.appendChild(y.getDomNode()),le.linesContent.appendChild(b.domNode),le.linesContent.appendChild(le.viewZones.domNode),le.linesContent.appendChild(le.viewLines.getDomNode()),le.linesContent.appendChild(le.contentWidgets.domNode),le.linesContent.appendChild(le.viewCursors.getDomNode()),le.overflowGuardContainer.appendChild(l.getDomNode()),le.overflowGuardContainer.appendChild(le._scrollbar.getDomNode()),le.overflowGuardContainer.appendChild(ht.getDomNode()),le.overflowGuardContainer.appendChild(le._textAreaHandler.textArea),le.overflowGuardContainer.appendChild(le._textAreaHandler.textAreaCover),le.overflowGuardContainer.appendChild(le.overlayWidgets.getDomNode()),le.overflowGuardContainer.appendChild(S.getDomNode()),le.domNode.appendChild(le.overflowGuardContainer),le.domNode.appendChild(le.contentWidgets.overflowingContentWidgetsDomNode),le._applyLayout(),le.pointerHandler=le._register(new Jn(le._context,He,le.createPointerHandlerHelper())),le._register(c.addEventListener(function($){le.eventDispatcher.emitMany($)})),le._register(le._cursor.addEventListener(function($){le.eventDispatcher.emitMany($)})),le}return n.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},n.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus()},getLastRenderData:function(){var d=e.viewCursors.getLastRenderData()||[],c=e._textAreaHandler.getLastRenderData();return new nt(d,c)},shouldSuppressMouseDownOnViewZone:function(d){return e.viewZones.shouldSuppressMouseDownOnViewZone(d)},shouldSuppressMouseDownOnWidget:function(d){return e.contentWidgets.shouldSuppressMouseDownOnWidget(d)},getPositionFromDOMInfo:function(d,c){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(d,c)},visibleRangeForPosition:function(d,c){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new ve.a(d,c))},getLineWidth:function(d){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(d)}}},n.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(d,c){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new ve.a(d,c))}}},n.prototype._applyLayout=function(){var e=this._context.configuration.options,i=e.get(107);this.domNode.setWidth(i.width),this.domNode.setHeight(i.height),this.overflowGuardContainer.setWidth(i.width),this.overflowGuardContainer.setHeight(i.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},n.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(104)+" "+Object(tt.d)(this._context.theme.type)+e},n.prototype.onConfigurationChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._applyLayout(),!1},n.prototype.onContentSizeChanged=function(e){return this.outgoingEvents.emitContentSizeChange(e),!1},n.prototype.onFocusChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(e.isFocused),e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},n.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},n.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1},n.prototype.dispose=function(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var e=0,i=this.viewParts.length;e<i;e++)this.viewParts[e].dispose();this.viewParts=[],L.prototype.dispose.call(this)},n.prototype._renderOnce=function(e){var i=Hr(e);return this._scheduleRender(),i},n.prototype._scheduleRender=function(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=ne.T(this._onRenderScheduled.bind(this),100))},n.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},n.prototype._renderNow=function(){var e=this;Hr(function(){return e._actualRender()})},n.prototype._getViewPartsToRender=function(){for(var e=[],i=0,d=0,c=this.viewParts.length;d<c;d++){var M=this.viewParts[d];M.shouldRender()&&(e[i++]=M)}return e},n.prototype._actualRender=function(){if(!ne.L(this.domNode.domNode))return;var e=this._getViewPartsToRender();if(!this.viewLines.shouldRender()&&e.length===0)return;var i=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(i.startLineNumber,i.endLineNumber,i.centeredLineNumber);var d=new yr(this._cursor.getViewSelections(),i,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(d),this.viewLines.shouldRender()&&(this.viewLines.renderText(d),this.viewLines.onDidRender(),e=this._getViewPartsToRender());for(var c=new _e(this._context.viewLayout,d,this.viewLines),M=0,ge=e.length;M<ge;M++){var le=e[M];le.prepareRender(c)}for(var M=0,ge=e.length;M<ge;M++){var le=e[M];le.render(c),le.onDidRender()}},n.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)},n.prototype.restoreState=function(e){this._context.viewLayout.setScrollPositionNow({scrollTop:e.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:e.scrollLeft})},n.prototype.getOffsetForColumn=function(e,i){var d=this._context.model.validateModelPosition({lineNumber:e,column:i}),c=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(d);this._flushAccumulatedAndRenderNow();var M=this.viewLines.visibleRangeForPosition(new ve.a(c.lineNumber,c.column));return M?M.left:-1},n.prototype.getTargetAtClientPoint=function(e,i){var d=this.pointerHandler.getTargetAtClientPoint(e,i);return d?lt.convertViewToModelMouseTarget(d,this._context.model.coordinatesConverter):null},n.prototype.createOverviewRuler=function(e){return new $s(this._context,e)},n.prototype.change=function(e){var i=this;return this._renderOnce(function(){var d=i.viewZones.changeViewZones(e);return d&&(i._context.viewLayout.onHeightMaybeChanged(),i._context.privateViewEventBus.emit(new bi)),d})},n.prototype.render=function(e,i){if(i){this.viewLines.forceShouldRender();for(var d=0,c=this.viewParts.length;d<c;d++){var M=this.viewParts[d];M.forceShouldRender()}}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()},n.prototype.focus=function(){this._textAreaHandler.focusTextArea()},n.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},n.prototype.setAriaOptions=function(e){this._textAreaHandler.setAriaOptions(e)},n.prototype.addContentWidget=function(e){this.contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()},n.prototype.layoutContentWidget=function(e){var i=e.position&&e.position.range||null;if(i===null){var d=e.position?e.position.position:null;d!==null&&(i=new Te.a(d.lineNumber,d.column,d.lineNumber,d.column))}var c=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,i,c),this._scheduleRender()},n.prototype.removeContentWidget=function(e){this.contentWidgets.removeWidget(e.widget),this._scheduleRender()},n.prototype.addOverlayWidget=function(e){this.overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()},n.prototype.layoutOverlayWidget=function(e){var i=e.position?e.position.preference:null,d=this.overlayWidgets.setWidgetPosition(e.widget,i);d&&this._scheduleRender()},n.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender()},n}(Se);function Hr(L){try{return L()}catch(n){Object(N.e)(n)}}var gs=function(){function L(n){this._selTrackedRange=null,this._trackSelection=!0,this._setState(n,new Ie.f(new Te.a(1,1,1,1),0,new ve.a(1,1),0),new Ie.f(new Te.a(1,1,1,1),0,new ve.a(1,1),0))}return L.prototype.dispose=function(n){this._removeTrackedRange(n)},L.prototype.startTrackingSelection=function(n){this._trackSelection=!0,this._updateTrackedRange(n)},L.prototype.stopTrackingSelection=function(n){this._trackSelection=!1,this._removeTrackedRange(n)},L.prototype._updateTrackedRange=function(n){if(!this._trackSelection)return;this._selTrackedRange=n.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0)},L.prototype._removeTrackedRange=function(n){this._selTrackedRange=n.model._setTrackedRange(this._selTrackedRange,null,0)},L.prototype.asCursorState=function(){return new Ie.d(this.modelState,this.viewState)},L.prototype.readSelectionFromMarkers=function(n){var e=n.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.getDirection()===0?new gt.a(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new gt.a(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)},L.prototype.ensureValidState=function(n){this._setState(n,this.modelState,this.viewState)},L.prototype.setState=function(n,e,i){this._setState(n,e,i)},L.prototype._setState=function(n,e,i){if(e){var d=n.model.validateRange(e.selectionStart),M=e.selectionStart.equalsRange(d)?e.selectionStartLeftoverVisibleColumns:0,c=n.model.validatePosition(e.position),ge=e.position.equals(c)?e.leftoverVisibleColumns:0;e=new Ie.f(d,M,c,ge)}else{if(!i)return;var d=n.model.validateRange(n.convertViewRangeToModelRange(i.selectionStart)),c=n.model.validatePosition(n.convertViewPositionToModelPosition(i.position.lineNumber,i.position.column));e=new Ie.f(d,i.selectionStartLeftoverVisibleColumns,c,i.leftoverVisibleColumns)}if(i){var st=n.validateViewRange(i.selectionStart,e.selectionStart),ht=n.validateViewPosition(i.position,e.position);i=new Ie.f(st,e.selectionStartLeftoverVisibleColumns,ht,e.leftoverVisibleColumns)}else{var le=n.convertModelPositionToViewPosition(new ve.a(e.selectionStart.startLineNumber,e.selectionStart.startColumn)),He=n.convertModelPositionToViewPosition(new ve.a(e.selectionStart.endLineNumber,e.selectionStart.endColumn)),st=new Te.a(le.lineNumber,le.column,He.lineNumber,He.column),ht=n.convertModelPositionToViewPosition(e.position);i=new Ie.f(st,e.selectionStartLeftoverVisibleColumns,ht,e.leftoverVisibleColumns)}this.modelState=e,this.viewState=i,this._updateTrackedRange(n)},L}(),Wo=function(){function L(n){this.context=n,this.primaryCursor=new gs(n),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return L.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},L.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var n=0,e=this.secondaryCursors.length;n<e;n++)this.secondaryCursors[n].startTrackingSelection(this.context)},L.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var n=0,e=this.secondaryCursors.length;n<e;n++)this.secondaryCursors[n].stopTrackingSelection(this.context)},L.prototype.updateContext=function(n){this.context=n},L.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var n=0,e=this.secondaryCursors.length;n<e;n++)this.secondaryCursors[n].ensureValidState(this.context)},L.prototype.readSelectionFromMarkers=function(){var n=[];n[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e].readSelectionFromMarkers(this.context);return n},L.prototype.getAll=function(){var n=[];n[0]=this.primaryCursor.asCursorState();for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e].asCursorState();return n},L.prototype.getViewPositions=function(){var n=[];n[0]=this.primaryCursor.viewState.position;for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e].viewState.position;return n},L.prototype.getSelections=function(){var n=[];n[0]=this.primaryCursor.modelState.selection;for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e].modelState.selection;return n},L.prototype.getViewSelections=function(){var n=[];n[0]=this.primaryCursor.viewState.selection;for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e].viewState.selection;return n},L.prototype.setSelections=function(n){this.setStates(Ie.d.fromModelSelections(n))},L.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},L.prototype.setStates=function(n){if(n===null)return;this.primaryCursor.setState(this.context,n[0].modelState,n[0].viewState),this._setSecondaryStates(n.slice(1))},L.prototype._setSecondaryStates=function(n){var e=this.secondaryCursors.length,i=n.length;if(e<i)for(var d=i-e,c=0;c<d;c++)this._addSecondaryCursor();else if(e>i)for(var M=e-i,c=0;c<M;c++)this._removeSecondaryCursor(this.secondaryCursors.length-1);for(var c=0;c<i;c++)this.secondaryCursors[c].setState(this.context,n[c].modelState,n[c].viewState)},L.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},L.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new gs(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},L.prototype.getLastAddedCursorIndex=function(){return this.secondaryCursors.length===0||this.lastAddedCursorIndex===0?0:this.lastAddedCursorIndex},L.prototype._removeSecondaryCursor=function(n){this.lastAddedCursorIndex>=n+1&&this.lastAddedCursorIndex--,this.secondaryCursors[n].dispose(this.context),this.secondaryCursors.splice(n,1)},L.prototype._getAll=function(){var n=[];n[0]=this.primaryCursor;for(var e=0,i=this.secondaryCursors.length;e<i;e++)n[e+1]=this.secondaryCursors[e];return n},L.prototype.normalize=function(){if(this.secondaryCursors.length===0)return;for(var n=this._getAll(),e=[],i=0,d=n.length;i<d;i++)e.push({index:i,selection:n[i].modelState.selection});e.sort(function(un,an){return un.selection.startLineNumber===an.selection.startLineNumber?un.selection.startColumn-an.selection.startColumn:un.selection.startLineNumber-an.selection.startLineNumber});for(var c=0;c<e.length-1;c++){var M=e[c],ge=e[c+1],le=M.selection,He=ge.selection;if(!this.context.config.multiCursorMergeOverlapping)continue;var st=void 0;if(He.isEmpty()||le.isEmpty()?st=He.getStartPosition().isBeforeOrEqual(le.getEndPosition()):st=He.getStartPosition().isBefore(le.getEndPosition()),st){var ht=M.index<ge.index?c:c+1,y=M.index<ge.index?c+1:c,u=e[y].index,l=e[ht].index,b=e[y].selection,S=e[ht].selection;if(!b.equalsSelection(S)){var C=b.plusRange(S),$=b.selectionStartLineNumber===b.startLineNumber&&b.selectionStartColumn===b.startColumn,Be=S.selectionStartLineNumber===S.startLineNumber&&S.selectionStartColumn===S.startColumn,ot=void 0;u===this.lastAddedCursorIndex?(ot=$,this.lastAddedCursorIndex=l):ot=Be;var xe=void 0;ot?xe=new gt.a(C.startLineNumber,C.startColumn,C.endLineNumber,C.endColumn):xe=new gt.a(C.endLineNumber,C.endColumn,C.startLineNumber,C.startColumn),e[ht].selection=xe;var dt=Ie.d.fromModelSelection(xe);n[l].setState(this.context,dt.modelState,dt.viewState)}for(var Nt=0,qt=e;Nt<qt.length;Nt++){var en=qt[Nt];en.index>u&&en.index--}n.splice(u,1),e.splice(y,1),this._removeSecondaryCursor(u-1),c--}}},L}(),Rs=r("prEm"),ho=r("XGV8"),oi=r("/W++"),ta=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();function Is(L){for(var n=0,e=L.length;n<e;n++)if(L[n].type===8)return!0;return!1}var Ps=function(){function L(n,e,i,d,c,M){this.selections=n,this.modelVersionId=e,this.oldSelections=i,this.oldModelVersionId=d,this.source=c,this.reason=M}return L}(),ms=function(){function L(n,e){this.modelVersionId=n.getVersionId(),this.cursorState=e.getAll()}return L.prototype.equals=function(n){if(!n)return!1;if(this.modelVersionId!==n.modelVersionId)return!1;if(this.cursorState.length!==n.cursorState.length)return!1;for(var e=0,i=this.cursorState.length;e<i;e++)if(!this.cursorState[e].equals(n.cursorState[e]))return!1;return!0},L}(),Mr=function(){function L(n,e,i){this._model=n,this._autoClosedCharactersDecorations=e,this._autoClosedEnclosingDecorations=i}return L.getAllAutoClosedCharacters=function(n){for(var e=[],i=0,d=n;i<d.length;i++){var c=d[i];e=e.concat(c.getAutoClosedCharactersRanges())}return e},L.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},L.prototype.getAutoClosedCharactersRanges=function(){for(var n=[],e=0;e<this._autoClosedCharactersDecorations.length;e++){var i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[e]);i&&n.push(i)}return n},L.prototype.isValid=function(n){for(var e=[],i=0;i<this._autoClosedEnclosingDecorations.length;i++){var d=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(d&&(e.push(d),d.startLineNumber!==d.endLineNumber))return!1}e.sort(Te.a.compareRangesUsingStarts),n.sort(Te.a.compareRangesUsingStarts);for(var i=0;i<n.length;i++){if(i>=e.length)return!1;if(!e[i].strictContainsRange(n[i]))return!1}return!0},L}(),Fs=function(L){ta(n,L);function n(e,i,d){var c=L.call(this)||this;c._onDidReachMaxCursorCount=c._register(new F.a),c.onDidReachMaxCursorCount=c._onDidReachMaxCursorCount.event,c._onDidAttemptReadOnlyEdit=c._register(new F.a),c.onDidAttemptReadOnlyEdit=c._onDidAttemptReadOnlyEdit.event,c._onDidChange=c._register(new F.a),c.onDidChange=c._onDidChange.event,c._configuration=e,c._model=i,c._knownModelVersionId=c._model.getVersionId(),c._viewModel=d,c.context=new Ie.c(c._configuration,c._model,c._viewModel),c._cursors=new Wo(c.context),c._isHandling=!1,c._isDoingComposition=!1,c._selectionsWhenCompositionStarted=null,c._columnSelectData=null,c._autoClosedActions=[],c._prevEditOperationType=0,c._register(c._model.onDidChangeRawContent(function(ge){if(c._knownModelVersionId=ge.versionId,c._isHandling)return;var le=ge.containsEvent(1);c._onModelContentChanged(le)})),c._register(d.addEventListener(function(ge){if(!Is(ge))return;if(c._knownModelVersionId!==c._model.getVersionId())return;c.setStates("viewModel",0,c.getAll())}));var M=function(){c.context=new Ie.c(c._configuration,c._model,c._viewModel),c._cursors.updateContext(c.context)};return c._register(c._model.onDidChangeLanguage(function(ge){M()})),c._register(c._model.onDidChangeLanguageConfiguration(function(){M()})),c._register(c._model.onDidChangeOptions(function(){M()})),c._register(c._configuration.onDidChange(function(ge){Ie.b.shouldRecreate(ge)&&M()})),c}return n.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(U.f)(this._autoClosedActions),L.prototype.dispose.call(this)},n.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var e=this._cursors.getSelections(),i=0;i<this._autoClosedActions.length;i++){var d=this._autoClosedActions[i];d.isValid(e)||(d.dispose(),this._autoClosedActions.splice(i,1),i--)}},n.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},n.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},n.prototype.getAll=function(){return this._cursors.getAll()},n.prototype.setStates=function(e,i,d){d!==null&&d.length>n.MAX_CURSOR_COUNT&&(d=d.slice(0,n.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var c=new ms(this._model,this);this._cursors.setStates(d),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,i,c)},n.prototype.setColumnSelectData=function(e){this._columnSelectData=e},n.prototype.reveal=function(e,i,d,c){this._revealRange(e,d,0,i,c)},n.prototype.revealRange=function(e,i,d,c,M){this.emitCursorRevealRange(e,d,c,i,M)},n.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},n.prototype.saveState=function(){for(var e=[],i=this._cursors.getSelections(),d=0,c=i.length;d<c;d++){var M=i[d];e.push({inSelectionMode:!M.isEmpty(),selectionStart:{lineNumber:M.selectionStartLineNumber,column:M.selectionStartColumn},position:{lineNumber:M.positionLineNumber,column:M.positionColumn}})}return e},n.prototype.restoreState=function(e){for(var i=[],d=0,c=e.length;d<c;d++){var M=e[d],ge=1,le=1;M.position&&M.position.lineNumber&&(ge=M.position.lineNumber),M.position&&M.position.column&&(le=M.position.column);var He=ge,st=le;M.selectionStart&&M.selectionStart.lineNumber&&(He=M.selectionStart.lineNumber),M.selectionStart&&M.selectionStart.column&&(st=M.selectionStart.column),i.push({selectionStartLineNumber:He,selectionStartColumn:st,positionLineNumber:ge,positionColumn:le})}this.setStates("restoreState",0,Ie.d.fromModelSelections(i)),this.reveal("restoreState",!0,0,1)},n.prototype._onModelContentChanged=function(e){if(this._prevEditOperationType=0,e)this._cursors.dispose(),this._cursors=new Wo(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var i=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,Ie.d.fromModelSelections(i))}},n.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},n.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor(),i=e.viewState.selectionStart.getStartPosition(),d=i.lineNumber,c=Ie.a.visibleColumnFromColumn2(this.context.config,this.context.viewModel,i);return{isReal:!1,fromViewLineNumber:d,fromViewVisualColumn:c,toViewLineNumber:d,toViewVisualColumn:c}},n.prototype.getSelections=function(){return this._cursors.getSelections()},n.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},n.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},n.prototype.setSelections=function(e,i){this.setStates(e,0,Ie.d.fromModelSelections(i))},n.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},n.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e},n.prototype._pushAutoClosedAction=function(e,i){for(var d=[],c=[],M=0,ge=e.length;M<ge;M++)d.push({range:e[M],options:{inlineClassName:"auto-closed-character",stickiness:1}}),c.push({range:i[M],options:{stickiness:1}});var le=this._model.deltaDecorations([],d),He=this._model.deltaDecorations([],c);this._autoClosedActions.push(new Mr(this._model,le,He))},n.prototype._executeEditOperation=function(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();var i=ir.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(i){this._interpretCommandResult(i);for(var d=[],c=[],M=0;M<e.commands.length;M++){var ge=e.commands[M];ge instanceof ho.b&&ge.enclosingRange&&ge.closeCharacterRange&&(d.push(ge.closeCharacterRange),c.push(ge.enclosingRange))}d.length>0&&this._pushAutoClosedAction(d,c),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()},n.prototype._interpretCommandResult=function(e){(!e||e.length===0)&&(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},n.prototype._emitStateChangedIfNecessary=function(e,i,d){var c=new ms(this._model,this);if(c.equals(d))return!1;var M=this._cursors.getSelections(),ge=this._cursors.getViewSelections();try{var le=this._beginEmit();le.emit(new oo(ge,M))}finally{this._endEmit()}if(!d||d.cursorState.length!==c.cursorState.length||c.cursorState.some(function(ht,y){return!ht.modelState.equals(d.cursorState[y].modelState)})){var He=d?d.cursorState.map(function(ht){return ht.modelState.selection}):null,st=d?d.modelVersionId:0;this._onDidChange.fire(new Ps(M,c.modelVersionId,He,st,e||"keyboard",i))}return!0},n.prototype._revealRange=function(e,i,d,c,M){var ge=this._cursors.getViewPositions(),le=ge[0];if(i===1)for(var He=1;He<ge.length;He++)ge[He].isBefore(le)&&(le=ge[He]);else if(i===2)for(var He=1;He<ge.length;He++)le.isBeforeOrEqual(ge[He])&&(le=ge[He]);else if(ge.length>1)return;var st=new Te.a(le.lineNumber,le.column,le.lineNumber,le.column);this.emitCursorRevealRange(e,st,d,c,M)},n.prototype.emitCursorRevealRange=function(e,i,d,c,M){try{var ge=this._beginEmit();ge.emit(new Gi(e,i,d,c,M))}finally{this._endEmit()}},n.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var i=[],d=0,c=e.length;d<c;d++){var M=e[d];if(!M.text||M.text.indexOf(`
|
|
`)>=0)return null;var ge=M.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!ge)return null;var le=ge[1],He=this.context.config.autoClosingPairsClose2.get(le);if(!He||He.length!==1)return null;var st=He[0].open,ht=M.text.length-ge[2].length-1,y=M.text.lastIndexOf(st,ht-1);if(y===-1)return null;i.push([y,ht])}return i},n.prototype.executeEdits=function(e,i,d){var c=this,M=null;e==="snippet"&&(M=this._findAutoClosingPairs(i)),M&&(i[0]._isTracked=!0);var ge=[],le=[],He=this._model.pushEditOperations(this.getSelections(),i,function(st){if(M)for(var ht=0,y=M.length;ht<y;ht++){var u=M[ht],l=u[0],b=u[1],S=st[ht],C=S.range.startLineNumber,$=S.range.startColumn-1+l,Be=S.range.startColumn-1+b;ge.push(new Te.a(C,Be+1,C,Be+2)),le.push(new Te.a(C,$+1,C,Be+2))}var ot=d(st);return ot&&(c._isHandling=!0),ot});He&&(this._isHandling=!1,this.setSelections(e,He)),ge.length>0&&this._pushAutoClosedAction(ge,le)},n.prototype.trigger=function(e,i,d){var c=oi.b;if(i===c.CompositionStart){this._isDoingComposition=!0,this._selectionsWhenCompositionStarted=this.getSelections().slice(0);return}if(i===c.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68)){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var M=new ms(this._model,this),ge=0;i!==c.Undo&&i!==c.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(i){case c.Type:this._type(e,d.text);break;case c.ReplacePreviousChar:this._replacePreviousChar(d.text,d.replaceCharCnt);break;case c.Paste:ge=4,this._paste(d.text,d.pasteOnNewLine,d.multicursorText||[]);break;case c.Cut:this._cut();break;case c.Undo:ge=5,this._interpretCommandResult(this._model.undo());break;case c.Redo:ge=6,this._interpretCommandResult(this._model.redo());break;case c.ExecuteCommand:this._externalExecuteCommand(d);break;case c.ExecuteCommands:this._externalExecuteCommands(d);break;case c.CompositionEnd:this._interpretCompositionEnd(e);break}}catch(le){Object(N.e)(le)}this._isHandling=!1,i!==c.Undo&&i!==c.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,ge,M)&&this._revealRange(e,0,0,!0,0)},n.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&e==="keyboard"){var i=Mr.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(ho.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),i)),this._selectionsWhenCompositionStarted=null}},n.prototype._type=function(e,i){if(!this._isDoingComposition&&e==="keyboard")for(var d=i.length,c=0;c<d;){var M=Kn.E(i,c),ge=i.substr(c,M),le=Mr.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(ho.a.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),le,ge)),c+=M}else this._executeEditOperation(ho.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),i))},n.prototype._replacePreviousChar=function(e,i){this._executeEditOperation(ho.a.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,i))},n.prototype._paste=function(e,i,d){this._executeEditOperation(ho.a.paste(this.context.config,this.context.model,this.getSelections(),e,i,d))},n.prototype._cut=function(){this._executeEditOperation(Rs.a.cut(this.context.config,this.context.model,this.getSelections()))},n.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new Ie.e(0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},n.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new Ie.e(0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},n.MAX_CURSOR_COUNT=1e4,n}(Di),ir=function(){function L(){}return L.executeCommands=function(n,e,i){for(var d={model:n,selectionsBefore:e,trackedRanges:[],trackedRangesDirection:[]},c=this._innerExecuteCommands(d,i),M=0,ge=d.trackedRanges.length;M<ge;M++)d.model._setTrackedRange(d.trackedRanges[M],null,0);return c},L._innerExecuteCommands=function(n,e){if(this._arrayIsEmpty(e))return null;var i=this._getEditOperations(n,e);if(i.operations.length===0)return null;var d=i.operations,c=this._getLoserCursorMap(d);if(c.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var M=[],ge=0,le=d.length;ge<le;ge++)c.hasOwnProperty(d[ge].identifier.major.toString())||M.push(d[ge]);i.hadTrackedEditOperation&&M.length>0&&(M[0]._isTracked=!0);var He=n.model.pushEditOperations(n.selectionsBefore,M,function(b){for(var S=[],C=0;C<n.selectionsBefore.length;C++)S[C]=[];for(var $=0,Be=b;$<Be.length;$++){var ot=Be[$];if(!ot.identifier)continue;S[ot.identifier.major].push(ot)}for(var xe=function(en,un){return en.identifier.minor-un.identifier.minor},dt=[],Nt=function(en){S[en].length>0?(S[en].sort(xe),dt[en]=e[en].computeCursorState(n.model,{getInverseEditOperations:function(){return S[en]},getTrackedSelection:function(an){var Cn=parseInt(an,10),In=n.model._getTrackedRange(n.trackedRanges[Cn]);return n.trackedRangesDirection[Cn]===0?new gt.a(In.startLineNumber,In.startColumn,In.endLineNumber,In.endColumn):new gt.a(In.endLineNumber,In.endColumn,In.startLineNumber,In.startColumn)}})):dt[en]=n.selectionsBefore[en]},C=0;C<n.selectionsBefore.length;C++)Nt(C);return dt});He||(He=n.selectionsBefore);var st=[];for(var ht in c)c.hasOwnProperty(ht)&&st.push(parseInt(ht,10));st.sort(function(b,S){return S-b});for(var y=0,u=st;y<u.length;y++){var l=u[y];He.splice(l,1)}return He},L._arrayIsEmpty=function(n){for(var e=0,i=n.length;e<i;e++)if(n[e])return!1;return!0},L._getEditOperations=function(n,e){for(var i=[],d=!1,c=0,M=e.length;c<M;c++){var ge=e[c];if(ge){var le=this._getEditOperationsFromCommand(n,c,ge);i=i.concat(le.operations),d=d||le.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:d}},L._getEditOperationsFromCommand=function(n,e,i){var d=[],c=0,M=function(y,u,l){if(l===void 0&&(l=!1),y.isEmpty()&&u==="")return;d.push({identifier:{major:e,minor:c++},range:y,text:u,forceMoveMarkers:l,isAutoWhitespaceEdit:i.insertsAutoWhitespace})},ge=!1,le=function(y,u,l){ge=!0,M(y,u,l)},He=function(y,u){var l;if(y.isEmpty())if(typeof u=="boolean")u?l=2:l=3;else{var b=n.model.getLineMaxColumn(y.startLineNumber);y.startColumn===b?l=2:l=3}else l=1;var S=n.trackedRanges.length,C=n.model._setTrackedRange(null,y,l);return n.trackedRanges[S]=C,n.trackedRangesDirection[S]=y.getDirection(),S.toString()},st={addEditOperation:M,addTrackedEditOperation:le,trackSelection:He};try{i.getEditOperations(n.model,st)}catch(ht){return Object(N.e)(ht),{operations:[],hadTrackedEditOperation:!1}}return{operations:d,hadTrackedEditOperation:ge}},L._getLoserCursorMap=function(n){n=n.slice(0),n.sort(function(le,He){return-Te.a.compareRangesUsingEnds(le.range,He.range)});for(var e={},i=1;i<n.length;i++){var d=n[i-1],c=n[i];if(d.range.getStartPosition().isBefore(c.range.getEndPosition())){var M=void 0;d.identifier.major>c.identifier.major?M=d.identifier.major:M=c.identifier.major,e[M.toString()]=!0;for(var ge=0;ge<n.length;ge++)n[ge].identifier.major===M&&(n.splice(ge,1),ge<i&&i--,ge--);i>0&&i--}}return e},L}(),ks=r("vN4a"),si=r("2GBI"),js=r("/L4v"),na=r("WO5T"),Mo=function(){function L(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return L.prototype.insert=function(n){this._hasPending=!0,this._inserts.push(n)},L.prototype.change=function(n){this._hasPending=!0,this._changes.push(n)},L.prototype.remove=function(n){this._hasPending=!0,this._removes.push(n)},L.prototype.mustCommit=function(){return this._hasPending},L.prototype.commit=function(n){if(!this._hasPending)return;var e=this._inserts,i=this._changes,d=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],n._commitPendingChanges(e,i,d)},L}(),or=function(){function L(n,e,i,d,c){this.id=n,this.afterLineNumber=e,this.ordinal=i,this.height=d,this.minWidth=c,this.prefixSum=0}return L}(),rr=function(){function L(n,e){this._instanceId=Kn.L(++L.INSTANCE_COUNT),this._pendingChanges=new Mo,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=n,this._lineHeight=e}return L.findInsertionIndex=function(n,e,i){for(var d=0,c=n.length;d<c;){var M=d+c>>>1;e===n[M].afterLineNumber?i<n[M].ordinal?c=M:d=M+1:e<n[M].afterLineNumber?c=M:d=M+1}return d},L.prototype.setLineHeight=function(n){this._checkPendingChanges(),this._lineHeight=n},L.prototype.onFlushed=function(n){this._checkPendingChanges(),this._lineCount=n},L.prototype.changeWhitespace=function(n){var e=this;try{var i={insertWhitespace:function(c,M,ge,le){c=c|0,M=M|0,ge=ge|0,le=le|0;var He=e._instanceId+ ++e._lastWhitespaceId;return e._pendingChanges.insert(new or(He,c,M,ge,le)),He},changeOneWhitespace:function(c,M,ge){M=M|0,ge=ge|0,e._pendingChanges.change({id:c,newAfterLineNumber:M,newHeight:ge})},removeWhitespace:function(c){e._pendingChanges.remove({id:c})}};return n(i)}finally{this._pendingChanges.commit(this)}},L.prototype._commitPendingChanges=function(n,e,i){if((n.length>0||i.length>0)&&(this._minWidth=-1),n.length+e.length+i.length<=1){for(var d=0,c=n;d<c.length;d++){var M=c[d];this._insertWhitespace(M)}for(var ge=0,le=e;ge<le.length;ge++){var He=le[ge];this._changeOneWhitespace(He.id,He.newAfterLineNumber,He.newHeight)}for(var st=0,ht=i;st<ht.length;st++){var y=ht[st],u=this._findWhitespaceIndex(y.id);if(u===-1)continue;this._removeWhitespace(u)}return}for(var l=new Set,b=0,S=i;b<S.length;b++){var y=S[b];l.add(y.id)}for(var C=new Map,$=0,Be=e;$<Be.length;$++){var He=Be[$];C.set(He.id,He)}var ot=function(Nt){for(var qt=[],en=0,un=Nt;en<un.length;en++){var an=un[en];if(l.has(an.id))continue;if(C.has(an.id)){var Cn=C.get(an.id);an.afterLineNumber=Cn.newAfterLineNumber,an.height=Cn.newHeight}qt.push(an)}return qt},xe=ot(this._arr).concat(ot(n));xe.sort(function(dt,Nt){return dt.afterLineNumber===Nt.afterLineNumber?dt.ordinal-Nt.ordinal:dt.afterLineNumber-Nt.afterLineNumber}),this._arr=xe,this._prefixSumValidIndex=-1},L.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)},L.prototype._insertWhitespace=function(n){var e=L.findInsertionIndex(this._arr,n.afterLineNumber,n.ordinal);this._arr.splice(e,0,n),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)},L.prototype._findWhitespaceIndex=function(n){for(var e=this._arr,i=0,d=e.length;i<d;i++)if(e[i].id===n)return i;return-1},L.prototype._changeOneWhitespace=function(n,e,i){var d=this._findWhitespaceIndex(n);if(d===-1)return;if(this._arr[d].height!==i&&(this._arr[d].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,d-1)),this._arr[d].afterLineNumber!==e){var c=this._arr[d];this._removeWhitespace(d),c.afterLineNumber=e,this._insertWhitespace(c)}},L.prototype._removeWhitespace=function(n){this._arr.splice(n,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)},L.prototype.onLinesDeleted=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0,this._lineCount-=e-n+1;for(var i=0,d=this._arr.length;i<d;i++){var c=this._arr[i].afterLineNumber;n<=c&&c<=e?this._arr[i].afterLineNumber=n-1:c>e&&(this._arr[i].afterLineNumber-=e-n+1)}},L.prototype.onLinesInserted=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0,this._lineCount+=e-n+1;for(var i=0,d=this._arr.length;i<d;i++){var c=this._arr[i].afterLineNumber;n<=c&&(this._arr[i].afterLineNumber+=e-n+1)}},L.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),this._arr.length===0?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},L.prototype.getWhitespacesAccumulatedHeight=function(n){this._checkPendingChanges(),n=n|0;var e=Math.max(0,this._prefixSumValidIndex+1);e===0&&(this._arr[0].prefixSum=this._arr[0].height,e++);for(var i=e;i<=n;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,n),this._arr[n].prefixSum},L.prototype.getLinesTotalHeight=function(){this._checkPendingChanges();var n=this._lineHeight*this._lineCount,e=this.getWhitespacesTotalHeight();return n+e},L.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(n){this._checkPendingChanges(),n=n|0;var e=this._findLastWhitespaceBeforeLineNumber(n);return e===-1?0:this.getWhitespacesAccumulatedHeight(e)},L.prototype._findLastWhitespaceBeforeLineNumber=function(n){n=n|0;for(var e=this._arr,i=0,d=e.length-1;i<=d;){var c=d-i|0,M=c/2|0,ge=i+M|0;if(e[ge].afterLineNumber<n){if(ge+1>=e.length||e[ge+1].afterLineNumber>=n)return ge;i=ge+1|0}else d=ge-1|0}return-1},L.prototype._findFirstWhitespaceAfterLineNumber=function(n){n=n|0;var e=this._findLastWhitespaceBeforeLineNumber(n),i=e+1;return i<this._arr.length?i:-1},L.prototype.getFirstWhitespaceIndexAfterLineNumber=function(n){return this._checkPendingChanges(),n=n|0,this._findFirstWhitespaceAfterLineNumber(n)},L.prototype.getVerticalOffsetForLineNumber=function(n){this._checkPendingChanges(),n=n|0;var e;n>1?e=this._lineHeight*(n-1):e=0;var i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(n);return e+i},L.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),this._minWidth===-1){for(var n=0,e=0,i=this._arr.length;e<i;e++)n=Math.max(n,this._arr[e].minWidth);this._minWidth=n}return this._minWidth},L.prototype.isAfterLines=function(n){this._checkPendingChanges();var e=this.getLinesTotalHeight();return n>e},L.prototype.getLineNumberAtOrAfterVerticalOffset=function(n){if(this._checkPendingChanges(),n=n|0,n<0)return 1;for(var e=this._lineCount|0,i=this._lineHeight,d=1,c=e;d<c;){var M=(d+c)/2|0,ge=this.getVerticalOffsetForLineNumber(M)|0;if(n>=ge+i)d=M+1;else{if(n>=ge)return M;c=M}}return d>e?e:d},L.prototype.getLinesViewportData=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0;var i=this._lineHeight,d=this.getLineNumberAtOrAfterVerticalOffset(n)|0,c=this.getVerticalOffsetForLineNumber(d)|0,M=this._lineCount|0,ge=this.getFirstWhitespaceIndexAfterLineNumber(d)|0,le=this.getWhitespacesCount()|0,He,st;ge===-1?(ge=le,st=M+1,He=0):(st=this.getAfterLineNumberForWhitespaceIndex(ge)|0,He=this.getHeightForWhitespaceIndex(ge)|0);var ht=c,y=ht,u=5e5,l=0;c>=u&&(l=Math.floor(c/u)*u,l=Math.floor(l/i)*i,y-=l);for(var b=[],S=n+(e-n)/2,C=-1,$=d;$<=M;$++){if(C===-1){var Be=ht,ot=ht+i;(Be<=S&&S<ot||Be>S)&&(C=$)}for(ht+=i,b[$-d]=y,y+=i;st===$;)y+=He,ht+=He,ge++,ge>=le?st=M+1:(st=this.getAfterLineNumberForWhitespaceIndex(ge)|0,He=this.getHeightForWhitespaceIndex(ge)|0);if(ht>=e){M=$;break}}C===-1&&(C=M);var xe=this.getVerticalOffsetForLineNumber(M)|0,dt=d,Nt=M;return dt<Nt&&(c<n&&dt++),dt<Nt&&(xe+i>e&&Nt--),{bigNumbersDelta:l,startLineNumber:d,endLineNumber:M,relativeVerticalOffset:b,centeredLineNumber:C,completelyVisibleStartLineNumber:dt,completelyVisibleEndLineNumber:Nt}},L.prototype.getVerticalOffsetForWhitespaceIndex=function(n){this._checkPendingChanges(),n=n|0;var e=this.getAfterLineNumberForWhitespaceIndex(n),i;e>=1?i=this._lineHeight*e:i=0;var d;return n>0?d=this.getWhitespacesAccumulatedHeight(n-1):d=0,i+d},L.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(n){this._checkPendingChanges(),n=n|0;var e=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;var d=this.getVerticalOffsetForWhitespaceIndex(i),c=this.getHeightForWhitespaceIndex(i);if(n>=d+c)return-1;for(;e<i;){var M=Math.floor((e+i)/2),ge=this.getVerticalOffsetForWhitespaceIndex(M),le=this.getHeightForWhitespaceIndex(M);if(n>=ge+le)e=M+1;else{if(n>=ge)return M;i=M}}return e},L.prototype.getWhitespaceAtVerticalOffset=function(n){this._checkPendingChanges(),n=n|0;var e=this.getWhitespaceIndexAtOrAfterVerticallOffset(n);if(e<0)return null;if(e>=this.getWhitespacesCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(e);if(i>n)return null;var d=this.getHeightForWhitespaceIndex(e),c=this.getIdForWhitespaceIndex(e),M=this.getAfterLineNumberForWhitespaceIndex(e);return{id:c,afterLineNumber:M,verticalOffset:i,height:d}},L.prototype.getWhitespaceViewportData=function(n,e){this._checkPendingChanges(),n=n|0,e=e|0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(n),d=this.getWhitespacesCount()-1;if(i<0)return[];for(var c=[],M=i;M<=d;M++){var ge=this.getVerticalOffsetForWhitespaceIndex(M),le=this.getHeightForWhitespaceIndex(M);if(ge>=e)break;c.push({id:this.getIdForWhitespaceIndex(M),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(M),verticalOffset:ge,height:le})}return c},L.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},L.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},L.prototype.getIdForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].id},L.prototype.getAfterLineNumberForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].afterLineNumber},L.prototype.getHeightForWhitespaceIndex=function(n){return this._checkPendingChanges(),n=n|0,this._arr[n].height},L.INSTANCE_COUNT=0,L}(),no=r("khgB"),Co=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),wi=125,ki=function(){function L(n,e,i,d){n=n|0,e=e|0,i=i|0,d=d|0,n<0&&(n=0),e<0&&(e=0),i<0&&(i=0),d<0&&(d=0),this.width=n,this.contentWidth=e,this.scrollWidth=Math.max(n,e),this.height=i,this.contentHeight=d,this.scrollHeight=Math.max(i,d)}return L.prototype.equals=function(n){return this.width===n.width&&this.contentWidth===n.contentWidth&&this.height===n.height&&this.contentHeight===n.contentHeight},L}(),xr=function(L){Co(n,L);function n(e,i){var d=L.call(this)||this;return d._onDidContentSizeChange=d._register(new F.a),d.onDidContentSizeChange=d._onDidContentSizeChange.event,d._dimensions=new ki(0,0,0,0),d._scrollable=d._register(new na.a(e,i)),d.onDidScroll=d._scrollable.onScroll,d}return n.prototype.getScrollable=function(){return this._scrollable},n.prototype.setSmoothScrollDuration=function(e){this._scrollable.setSmoothScrollDuration(e)},n.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},n.prototype.getScrollDimensions=function(){return this._dimensions},n.prototype.setScrollDimensions=function(e){if(this._dimensions.equals(e))return;var i=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight});var d=i.contentWidth!==e.contentWidth,c=i.contentHeight!==e.contentHeight;(d||c)&&this._onDidContentSizeChange.fire({contentWidth:e.contentWidth,contentHeight:e.contentHeight,contentWidthChanged:d,contentHeightChanged:c})},n.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},n.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},n.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},n.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},n}(U.a),Ar=function(L){Co(n,L);function n(e,i,d){var c=L.call(this)||this;c._configuration=e;var M=c._configuration.options,ge=M.get(107);return c._linesLayout=new rr(i,M.get(49)),c._scrollable=c._register(new xr(0,d)),c._configureSmoothScrollDuration(),c._scrollable.setScrollDimensions(new ki(ge.contentWidth,0,ge.height,0)),c.onDidScroll=c._scrollable.onDidScroll,c.onDidContentSizeChange=c._scrollable.onDidContentSizeChange,c._updateHeight(),c}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype.getScrollable=function(){return this._scrollable.getScrollable()},n.prototype.onHeightMaybeChanged=function(){this._updateHeight()},n.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?wi:0)},n.prototype.onConfigurationChanged=function(e){var i=this._configuration.options;if(e.hasChanged(49)&&this._linesLayout.setLineHeight(i.get(49)),e.hasChanged(107)){var d=i.get(107),c=d.contentWidth,M=d.height,ge=this._scrollable.getScrollDimensions(),le=ge.scrollWidth;this._scrollable.setScrollDimensions(new ki(c,ge.contentWidth,M,this._getContentHeight(c,M,le)))}else this._updateHeight();e.hasChanged(87)&&this._configureSmoothScrollDuration()},n.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)},n.prototype.onLinesDeleted=function(e,i){this._linesLayout.onLinesDeleted(e,i)},n.prototype.onLinesInserted=function(e,i){this._linesLayout.onLinesInserted(e,i)},n.prototype._getHorizontalScrollbarHeight=function(e,i){var d=this._configuration.options,c=d.get(78);return c.horizontal===2||e>=i?0:c.horizontalScrollbarSize},n.prototype._getContentHeight=function(e,i,d){var c=this._configuration.options,M=this._linesLayout.getLinesTotalHeight();return c.get(80)?M+=i-c.get(49):M+=this._getHorizontalScrollbarHeight(e,d),M},n.prototype._updateHeight=function(){var e=this._scrollable.getScrollDimensions(),i=e.width,d=e.height,c=e.scrollWidth;this._scrollable.setScrollDimensions(new ki(i,e.contentWidth,d,this._getContentHeight(i,d,c)))},n.prototype.getCurrentViewport=function(){var e=this._scrollable.getScrollDimensions(),i=this._scrollable.getCurrentScrollPosition();return new no.f(i.scrollTop,i.scrollLeft,e.width,e.height)},n.prototype.getFutureViewport=function(){var e=this._scrollable.getScrollDimensions(),i=this._scrollable.getFutureScrollPosition();return new no.f(i.scrollTop,i.scrollLeft,e.width,e.height)},n.prototype._computeContentWidth=function(e){var i=this._configuration.options,d=i.get(108),c=i.get(34);if(d.isViewportWrapping){var M=i.get(107),ge=i.get(54);return e>M.contentWidth+c.typicalHalfwidthCharacterWidth&&(ge.enabled&&ge.side==="right")?e+M.verticalScrollbarWidth:e}else{var le=i.get(79)*c.typicalHalfwidthCharacterWidth,He=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+le,He)}},n.prototype.onMaxLineWidthChanged=function(e){var i=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new ki(i.width,this._computeContentWidth(e),i.height,i.contentHeight)),this._updateHeight()},n.prototype.saveState=function(){var e=this._scrollable.getFutureScrollPosition(),i=e.scrollTop,d=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i),c=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(d);return{scrollTop:i,scrollTopWithoutViewZones:i-c,scrollLeft:e.scrollLeft}},n.prototype.changeWhitespace=function(e){return this._linesLayout.changeWhitespace(e)},n.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},n.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},n.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},n.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},n.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},n.prototype.getLinesViewportDataAtScrollTop=function(e){var i=this._scrollable.getScrollDimensions();return e+i.height>i.scrollHeight&&(e=i.scrollHeight-i.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+i.height)},n.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},n.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},n.prototype.getContentWidth=function(){var e=this._scrollable.getScrollDimensions();return e.contentWidth},n.prototype.getScrollWidth=function(){var e=this._scrollable.getScrollDimensions();return e.scrollWidth},n.prototype.getContentHeight=function(){var e=this._scrollable.getScrollDimensions();return e.contentHeight},n.prototype.getScrollHeight=function(){var e=this._scrollable.getScrollDimensions();return e.scrollHeight},n.prototype.getCurrentScrollLeft=function(){var e=this._scrollable.getCurrentScrollPosition();return e.scrollLeft},n.prototype.getCurrentScrollTop=function(){var e=this._scrollable.getCurrentScrollPosition();return e.scrollTop},n.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},n.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},n.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},n.prototype.deltaScrollNow=function(e,i){var d=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:d.scrollLeft+e,scrollTop:d.scrollTop+i})},n}(U.a),sr=r("8ZZ4"),Kr=r("rXIE"),Nr=function(){function L(n,e){this.outputLineIndex=n,this.outputOffset=e}return L}(),ar=function(){function L(n,e,i){this.breakOffsets=n,this.breakOffsetsVisibleColumn=e,this.wrappedTextIndentLength=i}return L.getInputOffsetOfOutputPosition=function(n,e,i){return e===0?i:n[e-1]+i},L.getOutputPositionOfInputOffset=function(n,e){for(var i=0,d=n.length-1,c=0,M=0;i<=d;){c=i+(d-i)/2|0;var ge=n[c];if(M=c>0?n[c-1]:0,e<M)d=c-1;else if(e>=ge)i=c+1;else break}return new Nr(c,e-M)},L}(),_o=function(){function L(n){this._lines=n}return L.prototype.convertViewPositionToModelPosition=function(n){return this._lines.convertViewPositionToModelPosition(n.lineNumber,n.column)},L.prototype.convertViewRangeToModelRange=function(n){return this._lines.convertViewRangeToModelRange(n)},L.prototype.validateViewPosition=function(n,e){return this._lines.validateViewPosition(n.lineNumber,n.column,e)},L.prototype.validateViewRange=function(n,e){return this._lines.validateViewRange(n,e)},L.prototype.convertModelPositionToViewPosition=function(n){return this._lines.convertModelPositionToViewPosition(n.lineNumber,n.column)},L.prototype.convertModelRangeToViewRange=function(n){return this._lines.convertModelRangeToViewRange(n)},L.prototype.modelPositionIsVisible=function(n){return this._lines.modelPositionIsVisible(n.lineNumber,n.column)},L}(),Lo=function(){function L(n){this._counts=n,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}return L.prototype._invalidate=function(n){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,n-1)},L.prototype._ensureValid=function(){if(this._isValid)return;for(var n=this._validEndIndex+1,e=this._counts.length;n<e;n++){var i=this._counts[n],d=n>0?this._modelToView[n-1]:0;this._modelToView[n]=d+i;for(var c=0;c<i;c++)this._viewToModel[d+c]=n}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1},L.prototype.changeValue=function(n,e){if(this._counts[n]===e)return;this._counts[n]=e,this._invalidate(n)},L.prototype.removeValues=function(n,e){this._counts.splice(n,e),this._invalidate(n)},L.prototype.insertValues=function(n,e){this._counts=Fe.a(this._counts,n,e),this._invalidate(n)},L.prototype.getTotalValue=function(){return this._ensureValid(),this._viewToModel.length},L.prototype.getAccumulatedValue=function(n){return this._ensureValid(),this._modelToView[n]},L.prototype.getIndexOf=function(n){this._ensureValid();var e=this._viewToModel[n],i=e>0?this._modelToView[e-1]:0;return new Kr.b(e,n-i)},L}(),vs=function(){function L(n,e,i,d,c,M,ge,le){this.model=n,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=e,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=d,this.tabSize=c,this.wrappingStrategy=M,this.wrappingColumn=ge,this.wrappingIndent=le,this._constructLines(!0,null)}return L.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},L.prototype.createCoordinatesConverter=function(){return new _o(this)},L.prototype._constructLines=function(n,e){var i=this;this.lines=[],n&&(this.hiddenAreasIds=[]);for(var d=this.model.getLinesContent(),c=d.length,M=this.createLineBreaksComputer(),ge=0;ge<c;ge++)M.addRequest(d[ge],e?e[ge]:null);for(var le=M.finalize(),He=[],st=this.hiddenAreasIds.map(function($){return i.model.getDecorationRange($)}).sort(Te.a.compareRangesUsingStarts),ht=1,y=0,u=-1,l=u+1<st.length?y+1:c+2,ge=0;ge<c;ge++){var b=ge+1;b===l&&(u++,ht=st[u].startLineNumber,y=st[u].endLineNumber,l=u+1<st.length?y+1:c+2);var S=b>=ht&&b<=y,C=po(le[ge],!S);He[ge]=C.getViewLineCount(),this.lines[ge]=C}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Lo(He)},L.prototype.getHiddenAreas=function(){var n=this;return this.hiddenAreasIds.map(function(e){return n.model.getDecorationRange(e)})},L.prototype._reduceRanges=function(n){var e=this;if(n.length===0)return[];for(var i=n.map(function(st){return e.model.validateRange(st)}).sort(Te.a.compareRangesUsingStarts),d=[],c=i[0].startLineNumber,M=i[0].endLineNumber,ge=1,le=i.length;ge<le;ge++){var He=i[ge];He.startLineNumber>M+1?(d.push(new Te.a(c,1,M,1)),c=He.startLineNumber,M=He.endLineNumber):He.endLineNumber>M&&(M=He.endLineNumber)}return d.push(new Te.a(c,1,M,1)),d},L.prototype.setHiddenAreas=function(n){var e=this,i=this._reduceRanges(n),d=this.hiddenAreasIds.map(function(ot){return e.model.getDecorationRange(ot)}).sort(Te.a.compareRangesUsingStarts);if(i.length===d.length){for(var c=!1,M=0;M<i.length;M++)if(!i[M].equalsRange(d[M])){c=!0;break}if(!c)return!1}for(var ge=[],le=0,He=i;le<He.length;le++){var st=He[le];ge.push({range:st,options:sr.a.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,ge);for(var ht=i,y=1,u=0,l=-1,b=l+1<ht.length?u+1:this.lines.length+2,S=!1,M=0;M<this.lines.length;M++){var C=M+1;C===b&&(l++,y=ht[l].startLineNumber,u=ht[l].endLineNumber,b=l+1<ht.length?u+1:this.lines.length+2);var $=!1;if(C>=y&&C<=u?this.lines[M].isVisible()&&(this.lines[M]=this.lines[M].setVisible(!1),$=!0):(S=!0,this.lines[M].isVisible()||(this.lines[M]=this.lines[M].setVisible(!0),$=!0)),$){var Be=this.lines[M].getViewLineCount();this.prefixSumComputer.changeValue(M,Be)}}return S||this.setHiddenAreas([]),!0},L.prototype.modelPositionIsVisible=function(n,e){return n<1||n>this.lines.length?!1:this.lines[n-1].isVisible()},L.prototype.setTabSize=function(n){return this.tabSize===n?!1:(this.tabSize=n,this._constructLines(!1,null),!0)},L.prototype.setWrappingSettings=function(n,e,i,d){var c=this.fontInfo.equals(n),M=this.wrappingStrategy===e,ge=this.wrappingColumn===i,le=this.wrappingIndent===d;if(c&&M&&ge&&le)return!1;var He=c&&M&&!ge&≤this.fontInfo=n,this.wrappingStrategy=e,this.wrappingColumn=i,this.wrappingIndent=d;var st=null;if(He){st=[];for(var ht=0,y=this.lines.length;ht<y;ht++)st[ht]=this.lines[ht].getLineBreakData()}return this._constructLines(!1,st),!0},L.prototype.createLineBreaksComputer=function(){var n=this.wrappingStrategy==="advanced"?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory;return n.createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)},L.prototype.onModelFlushed=function(){this._constructLines(!0,null)},L.prototype.onModelLinesDeleted=function(n,e,i){if(n<=this._validModelVersionId)return null;var d=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,c=this.prefixSumComputer.getAccumulatedValue(i-1);return this.lines.splice(e-1,i-e+1),this.prefixSumComputer.removeValues(e-1,i-e+1),new Wi(d,c)},L.prototype.onModelLinesInserted=function(n,e,i,d){if(n<=this._validModelVersionId)return null;for(var c=this.getHiddenAreas(),M=!1,ge=new ve.a(e,1),le=0,He=c;le<He.length;le++){var st=He[le];if(st.containsPosition(ge)){M=!0;break}}for(var ht=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,y=0,u=[],l=[],b=0,S=d.length;b<S;b++){var C=po(d[b],!M);u.push(C);var $=C.getViewLineCount();y+=$,l[b]=$}return this.lines=this.lines.slice(0,e-1).concat(u).concat(this.lines.slice(e-1)),this.prefixSumComputer.insertValues(e-1,l),new Ti(ht,ht+y-1)},L.prototype.onModelLineChanged=function(n,e,i){if(n<=this._validModelVersionId)return[!1,null,null,null];var d=e-1,c=this.lines[d].getViewLineCount(),M=this.lines[d].isVisible(),ge=po(i,M);this.lines[d]=ge;var le=this.lines[d].getViewLineCount(),He=!1,st=0,ht=-1,y=0,u=-1,l=0,b=-1;c>le?(st=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,ht=st+le-1,l=ht+1,b=l+(c-le)-1,He=!0):c<le?(st=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,ht=st+c-1,y=ht+1,u=y+(le-c)-1,He=!0):(st=e===1?1:this.prefixSumComputer.getAccumulatedValue(e-2)+1,ht=st+le-1),this.prefixSumComputer.changeValue(d,le);var S=st<=ht?new Ci(st,ht):null,C=y<=u?new Ti(y,u):null,$=l<=b?new Wi(l,b):null;return[He,S,C,$]},L.prototype.acceptVersionId=function(n){this._validModelVersionId=n,this.lines.length===1&&!this.lines[0].isVisible()&&this.setHiddenAreas([])},L.prototype.getViewLineCount=function(){return this.prefixSumComputer.getTotalValue()},L.prototype._toValidViewLineNumber=function(n){if(n<1)return 1;var e=this.getViewLineCount();return n>e?e:n|0},L.prototype.getActiveIndentGuide=function(n,e,i){n=this._toValidViewLineNumber(n),e=this._toValidViewLineNumber(e),i=this._toValidViewLineNumber(i);var d=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),c=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),M=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),ge=this.model.getActiveIndentGuide(d.lineNumber,c.lineNumber,M.lineNumber),le=this.convertModelPositionToViewPosition(ge.startLineNumber,1),He=this.convertModelPositionToViewPosition(ge.endLineNumber,this.model.getLineMaxColumn(ge.endLineNumber));return{startLineNumber:le.lineNumber,endLineNumber:He.lineNumber,indent:ge.indent}},L.prototype.getViewLinesIndentGuides=function(n,e){n=this._toValidViewLineNumber(n),e=this._toValidViewLineNumber(e);for(var i=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),d=this.convertViewPositionToModelPosition(e,this.getViewLineMaxColumn(e)),c=[],M=[],ge=[],le=i.lineNumber-1,He=d.lineNumber-1,st=null,ht=le;ht<=He;ht++){var y=this.lines[ht];if(y.isVisible()){var u=y.getViewLineNumberOfModelPosition(0,ht===le?i.column:1),l=y.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(ht+1)),b=l-u+1,S=0;b>1&&y.getViewLineMinColumn(this.model,ht+1,l)===1&&(S=u===0?1:2),M.push(b),ge.push(S),st===null&&(st=new ve.a(ht+1,0))}else st!==null&&(c=c.concat(this.model.getLinesIndentGuides(st.lineNumber,ht)),st=null)}st!==null&&(c=c.concat(this.model.getLinesIndentGuides(st.lineNumber,d.lineNumber)),st=null);for(var C=e-n+1,$=new Array(C),Be=0,ot=0,xe=c.length;ot<xe;ot++){var dt=c[ot],b=Math.min(C-Be,M[ot]),S=ge[ot],Nt=void 0;S===2?Nt=0:S===1?Nt=1:Nt=b;for(var qt=0;qt<b;qt++)qt===Nt&&(dt=0),$[Be++]=dt}return $},L.prototype.getViewLineContent=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,d=e.remainder;return this.lines[i].getViewLineContent(this.model,i+1,d)},L.prototype.getViewLineLength=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,d=e.remainder;return this.lines[i].getViewLineLength(this.model,i+1,d)},L.prototype.getViewLineMinColumn=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,d=e.remainder;return this.lines[i].getViewLineMinColumn(this.model,i+1,d)},L.prototype.getViewLineMaxColumn=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,d=e.remainder;return this.lines[i].getViewLineMaxColumn(this.model,i+1,d)},L.prototype.getViewLineData=function(n){n=this._toValidViewLineNumber(n);var e=this.prefixSumComputer.getIndexOf(n-1),i=e.index,d=e.remainder;return this.lines[i].getViewLineData(this.model,i+1,d)},L.prototype.getViewLinesData=function(n,e,i){n=this._toValidViewLineNumber(n),e=this._toValidViewLineNumber(e);for(var d=this.prefixSumComputer.getIndexOf(n-1),c=n,M=d.index,ge=d.remainder,le=[],He=M,st=this.model.getLineCount();He<st;He++){var ht=this.lines[He];if(!ht.isVisible())continue;var y=He===M?ge:0,u=ht.getViewLineCount()-y,l=!1;c+u>e&&(l=!0,u=e-c+1);var b=y+u;if(ht.getViewLinesData(this.model,He+1,y,b,c-n,i,le),c+=u,l)break}return le},L.prototype.validateViewPosition=function(n,e,i){n=this._toValidViewLineNumber(n);var d=this.prefixSumComputer.getIndexOf(n-1),c=d.index,M=d.remainder,ge=this.lines[c],le=ge.getViewLineMinColumn(this.model,c+1,M),He=ge.getViewLineMaxColumn(this.model,c+1,M);e<le&&(e=le),e>He&&(e=He);var st=ge.getModelColumnOfViewPosition(M,e),ht=this.model.validatePosition(new ve.a(c+1,st));return ht.equals(i)?new ve.a(n,e):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},L.prototype.validateViewRange=function(n,e){var i=this.validateViewPosition(n.startLineNumber,n.startColumn,e.getStartPosition()),d=this.validateViewPosition(n.endLineNumber,n.endColumn,e.getEndPosition());return new Te.a(i.lineNumber,i.column,d.lineNumber,d.column)},L.prototype.convertViewPositionToModelPosition=function(n,e){n=this._toValidViewLineNumber(n);var i=this.prefixSumComputer.getIndexOf(n-1),d=i.index,c=i.remainder,M=this.lines[d].getModelColumnOfViewPosition(c,e);return this.model.validatePosition(new ve.a(d+1,M))},L.prototype.convertViewRangeToModelRange=function(n){var e=this.convertViewPositionToModelPosition(n.startLineNumber,n.startColumn),i=this.convertViewPositionToModelPosition(n.endLineNumber,n.endColumn);return new Te.a(e.lineNumber,e.column,i.lineNumber,i.column)},L.prototype.convertModelPositionToViewPosition=function(n,e){for(var i=this.model.validatePosition(new ve.a(n,e)),d=i.lineNumber,c=i.column,M=d-1,ge=!1;M>0&&!this.lines[M].isVisible();)M--,ge=!0;if(M===0&&!this.lines[M].isVisible())return new ve.a(1,1);var le=1+(M===0?0:this.prefixSumComputer.getAccumulatedValue(M-1)),He;return ge?He=this.lines[M].getViewPositionOfModelPosition(le,this.model.getLineMaxColumn(M+1)):He=this.lines[d-1].getViewPositionOfModelPosition(le,c),He},L.prototype.convertModelRangeToViewRange=function(n){var e=this.convertModelPositionToViewPosition(n.startLineNumber,n.startColumn),i=this.convertModelPositionToViewPosition(n.endLineNumber,n.endColumn);return n.startLineNumber===n.endLineNumber&&e.lineNumber!==i.lineNumber&&i.column===this.getViewLineMinColumn(i.lineNumber)?new Te.a(e.lineNumber,e.column,i.lineNumber-1,this.getViewLineMaxColumn(i.lineNumber-1)):new Te.a(e.lineNumber,e.column,i.lineNumber,i.column)},L.prototype._getViewLineNumberForModelPosition=function(n,e){var i=n-1;if(this.lines[i].isVisible()){var d=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(d,e)}for(;i>0&&!this.lines[i].isVisible();)i--;if(i===0&&!this.lines[i].isVisible())return 1;var c=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(c,this.model.getLineMaxColumn(i+1))},L.prototype.getAllOverviewRulerDecorations=function(n,e,i){for(var d=this.model.getOverviewRulerDecorations(n,e),c=new br,M=0,ge=d;M<ge.length;M++){var le=ge[M],He=le.options.overviewRuler,st=He?He.position:0;if(st===0)continue;var ht=He.getColor(i),y=this._getViewLineNumberForModelPosition(le.range.startLineNumber,le.range.startColumn),u=this._getViewLineNumberForModelPosition(le.range.endLineNumber,le.range.endColumn);c.accept(ht,y,u,st)}return c.result},L.prototype.getDecorationsInRange=function(n,e,i){var d=this.convertViewPositionToModelPosition(n.startLineNumber,n.startColumn),c=this.convertViewPositionToModelPosition(n.endLineNumber,n.endColumn);if(c.lineNumber-d.lineNumber<=n.endLineNumber-n.startLineNumber)return this.model.getDecorationsInRange(new Te.a(d.lineNumber,1,c.lineNumber,c.column),e,i);for(var M=[],ge=d.lineNumber-1,le=c.lineNumber-1,He=null,st=ge;st<=le;st++){var ht=this.lines[st];if(ht.isVisible())He===null&&(He=new ve.a(st+1,st===ge?d.column:1));else if(He!==null){var y=this.model.getLineMaxColumn(st);M=M.concat(this.model.getDecorationsInRange(new Te.a(He.lineNumber,He.column,st,y),e,i)),He=null}}He!==null&&(M=M.concat(this.model.getDecorationsInRange(new Te.a(He.lineNumber,He.column,c.lineNumber,c.column),e,i)),He=null),M.sort(function(ot,xe){var dt=Te.a.compareRangesUsingStarts(ot.range,xe.range);return dt===0?ot.id<xe.id?-1:ot.id>xe.id?1:0:dt});for(var u=[],l=0,b=null,S=0,C=M;S<C.length;S++){var $=C[S],Be=$.id;if(b===Be)continue;b=Be,u[l++]=$}return u},L}(),fo=function(){function L(){}return L.prototype.isVisible=function(){return!0},L.prototype.setVisible=function(n){return n?this:lr.INSTANCE},L.prototype.getLineBreakData=function(){return null},L.prototype.getViewLineCount=function(){return 1},L.prototype.getViewLineContent=function(n,e,i){return n.getLineContent(e)},L.prototype.getViewLineLength=function(n,e,i){return n.getLineLength(e)},L.prototype.getViewLineMinColumn=function(n,e,i){return n.getLineMinColumn(e)},L.prototype.getViewLineMaxColumn=function(n,e,i){return n.getLineMaxColumn(e)},L.prototype.getViewLineData=function(n,e,i){var d=n.getLineTokens(e),c=d.getLineContent();return new no.c(c,!1,1,c.length+1,0,d.inflate())},L.prototype.getViewLinesData=function(n,e,i,d,c,M,ge){if(!M[c]){ge[c]=null;return}ge[c]=this.getViewLineData(n,e,0)},L.prototype.getModelColumnOfViewPosition=function(n,e){return e},L.prototype.getViewPositionOfModelPosition=function(n,e){return new ve.a(n,e)},L.prototype.getViewLineNumberOfModelPosition=function(n,e){return n},L.INSTANCE=new L,L}(),lr=function(){function L(){}return L.prototype.isVisible=function(){return!1},L.prototype.setVisible=function(n){return n?fo.INSTANCE:this},L.prototype.getLineBreakData=function(){return null},L.prototype.getViewLineCount=function(){return 0},L.prototype.getViewLineContent=function(n,e,i){throw new Error("Not supported")},L.prototype.getViewLineLength=function(n,e,i){throw new Error("Not supported")},L.prototype.getViewLineMinColumn=function(n,e,i){throw new Error("Not supported")},L.prototype.getViewLineMaxColumn=function(n,e,i){throw new Error("Not supported")},L.prototype.getViewLineData=function(n,e,i){throw new Error("Not supported")},L.prototype.getViewLinesData=function(n,e,i,d,c,M,ge){throw new Error("Not supported")},L.prototype.getModelColumnOfViewPosition=function(n,e){throw new Error("Not supported")},L.prototype.getViewPositionOfModelPosition=function(n,e){throw new Error("Not supported")},L.prototype.getViewLineNumberOfModelPosition=function(n,e){throw new Error("Not supported")},L.INSTANCE=new L,L}(),Ws=function(){function L(n,e){this._lineBreakData=n,this._isVisible=e}return L.prototype.isVisible=function(){return this._isVisible},L.prototype.setVisible=function(n){return this._isVisible=n,this},L.prototype.getLineBreakData=function(){return this._lineBreakData},L.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},L.prototype.getInputStartOffsetOfOutputLineIndex=function(n){return ar.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n,0)},L.prototype.getInputEndOffsetOfOutputLineIndex=function(n,e,i){return i+1===this._lineBreakData.breakOffsets.length?n.getLineMaxColumn(e)-1:ar.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i+1,0)},L.prototype.getViewLineContent=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");var d=this.getInputStartOffsetOfOutputLineIndex(i),c=this.getInputEndOffsetOfOutputLineIndex(n,e,i),M=n.getValueInRange({startLineNumber:e,startColumn:d+1,endLineNumber:e,endColumn:c+1});return i>0&&(M=Eo(this._lineBreakData.wrappedTextIndentLength)+M),M},L.prototype.getViewLineLength=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");var d=this.getInputStartOffsetOfOutputLineIndex(i),c=this.getInputEndOffsetOfOutputLineIndex(n,e,i),M=c-d;return i>0&&(M=this._lineBreakData.wrappedTextIndentLength+M),M},L.prototype.getViewLineMinColumn=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");return i>0?this._lineBreakData.wrappedTextIndentLength+1:1},L.prototype.getViewLineMaxColumn=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(n,e,i).length+1},L.prototype.getViewLineData=function(n,e,i){if(!this._isVisible)throw new Error("Not supported");var d=this.getInputStartOffsetOfOutputLineIndex(i),c=this.getInputEndOffsetOfOutputLineIndex(n,e,i),M=n.getValueInRange({startLineNumber:e,startColumn:d+1,endLineNumber:e,endColumn:c+1});i>0&&(M=Eo(this._lineBreakData.wrappedTextIndentLength)+M);var ge=i>0?this._lineBreakData.wrappedTextIndentLength+1:1,le=M.length+1,He=i+1<this.getViewLineCount(),st=0;i>0&&(st=this._lineBreakData.wrappedTextIndentLength);var ht=n.getLineTokens(e),y=i===0?0:this._lineBreakData.breakOffsetsVisibleColumn[i-1];return new no.c(M,He,ge,le,y,ht.sliceAndInflate(d,c,st))},L.prototype.getViewLinesData=function(n,e,i,d,c,M,ge){if(!this._isVisible)throw new Error("Not supported");for(var le=i;le<d;le++){var He=c+le-i;if(!M[He]){ge[He]=null;continue}ge[He]=this.getViewLineData(n,e,le)}},L.prototype.getModelColumnOfViewPosition=function(n,e){if(!this._isVisible)throw new Error("Not supported");var i=e-1;return n>0&&(i<this._lineBreakData.wrappedTextIndentLength?i=0:i-=this._lineBreakData.wrappedTextIndentLength),ar.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n,i)+1},L.prototype.getViewPositionOfModelPosition=function(n,e){if(!this._isVisible)throw new Error("Not supported");var i=ar.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,e-1),d=i.outputLineIndex,c=i.outputOffset+1;return d>0&&(c+=this._lineBreakData.wrappedTextIndentLength),new ve.a(n+d,c)},L.prototype.getViewLineNumberOfModelPosition=function(n,e){if(!this._isVisible)throw new Error("Not supported");var i=ar.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,e-1);return n+i.outputLineIndex},L}(),Bo=[""];function Eo(L){if(L>=Bo.length)for(var n=1;n<=L;n++)Bo[n]=Bs(n);return Bo[L]}function Bs(L){return new Array(L+1).join(" ")}function po(L,n){return L===null?n?fo.INSTANCE:lr.INSTANCE:new Ws(L,n)}var dr=function(){function L(n){this._lines=n}return L.prototype._validPosition=function(n){return this._lines.model.validatePosition(n)},L.prototype._validRange=function(n){return this._lines.model.validateRange(n)},L.prototype.convertViewPositionToModelPosition=function(n){return this._validPosition(n)},L.prototype.convertViewRangeToModelRange=function(n){return this._validRange(n)},L.prototype.validateViewPosition=function(n,e){return this._validPosition(e)},L.prototype.validateViewRange=function(n,e){return this._validRange(e)},L.prototype.convertModelPositionToViewPosition=function(n){return this._validPosition(n)},L.prototype.convertModelRangeToViewRange=function(n){return this._validRange(n)},L.prototype.modelPositionIsVisible=function(n){var e=this._lines.model.getLineCount();return!(n.lineNumber<1||n.lineNumber>e)},L}(),Us=function(){function L(n){this.model=n}return L.prototype.dispose=function(){},L.prototype.createCoordinatesConverter=function(){return new dr(this)},L.prototype.getHiddenAreas=function(){return[]},L.prototype.setHiddenAreas=function(n){return!1},L.prototype.setTabSize=function(n){return!1},L.prototype.setWrappingSettings=function(n,e,i,d){return!1},L.prototype.createLineBreaksComputer=function(){var n=[];return{addRequest:function(i,d){n.push(null)},finalize:function(){return n}}},L.prototype.onModelFlushed=function(){},L.prototype.onModelLinesDeleted=function(n,e,i){return new Wi(e,i)},L.prototype.onModelLinesInserted=function(n,e,i,d){return new Ti(e,i)},L.prototype.onModelLineChanged=function(n,e,i){return[!1,new Ci(e,e),null,null]},L.prototype.acceptVersionId=function(n){},L.prototype.getViewLineCount=function(){return this.model.getLineCount()},L.prototype.getActiveIndentGuide=function(n,e,i){return{startLineNumber:n,endLineNumber:n,indent:0}},L.prototype.getViewLinesIndentGuides=function(n,e){for(var i=e-n+1,d=new Array(i),c=0;c<i;c++)d[c]=0;return d},L.prototype.getViewLineContent=function(n){return this.model.getLineContent(n)},L.prototype.getViewLineLength=function(n){return this.model.getLineLength(n)},L.prototype.getViewLineMinColumn=function(n){return this.model.getLineMinColumn(n)},L.prototype.getViewLineMaxColumn=function(n){return this.model.getLineMaxColumn(n)},L.prototype.getViewLineData=function(n){var e=this.model.getLineTokens(n),i=e.getLineContent();return new no.c(i,!1,1,i.length+1,0,e.inflate())},L.prototype.getViewLinesData=function(n,e,i){var d=this.model.getLineCount();n=Math.min(Math.max(1,n),d),e=Math.min(Math.max(1,e),d);for(var c=[],M=n;M<=e;M++){var ge=M-n;i[ge]||(c[ge]=null),c[ge]=this.getViewLineData(M)}return c},L.prototype.getAllOverviewRulerDecorations=function(n,e,i){for(var d=this.model.getOverviewRulerDecorations(n,e),c=new br,M=0,ge=d;M<ge.length;M++){var le=ge[M],He=le.options.overviewRuler,st=He?He.position:0;if(st===0)continue;var ht=He.getColor(i),y=le.range.startLineNumber,u=le.range.endLineNumber;c.accept(ht,y,u,st)}return c.result},L.prototype.getDecorationsInRange=function(n,e,i){return this.model.getDecorationsInRange(n,e,i)},L}(),br=function(){function L(){this.result=Object.create(null)}return L.prototype.accept=function(n,e,i,d){var c=this.result[n];if(c){var M=c[c.length-3],ge=c[c.length-1];if(M===d&&ge+1>=e){i>ge&&(c[c.length-1]=i);return}c.push(d,e,i)}else this.result[n]=[d,e,i]},L}(),Vs=function(){function L(n,e,i,d,c){this.editorId=n,this.model=e,this.configuration=i,this._linesCollection=d,this._coordinatesConverter=c,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return L.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},L.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},L.prototype._getOrCreateViewModelDecoration=function(n){var e=n.id,i=this._decorationsCache[e];if(!i){var d=n.range,c=n.options,M=void 0;if(c.isWholeLine){var ge=this._coordinatesConverter.convertModelPositionToViewPosition(new ve.a(d.startLineNumber,1)),le=this._coordinatesConverter.convertModelPositionToViewPosition(new ve.a(d.endLineNumber,this.model.getLineMaxColumn(d.endLineNumber)));M=new Te.a(ge.lineNumber,ge.column,le.lineNumber,le.column)}else M=this._coordinatesConverter.convertModelRangeToViewRange(d);i=new no.e(M,c),this._decorationsCache[e]=i}return i},L.prototype.getDecorationsViewportData=function(n){var e=this._cachedModelDecorationsResolver!==null;return e=e&&n.equalsRange(this._cachedModelDecorationsResolverViewRange),e||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(n),this._cachedModelDecorationsResolverViewRange=n),this._cachedModelDecorationsResolver},L.prototype._getDecorationsViewportData=function(n){for(var e=this._linesCollection.getDecorationsInRange(n,this.editorId,Object(_t.j)(this.configuration.options)),i=n.startLineNumber,d=n.endLineNumber,c=[],M=0,ge=[],le=i;le<=d;le++)ge[le-i]=[];for(var He=0,st=e.length;He<st;He++){var ht=e[He],y=ht.options,u=this._getOrCreateViewModelDecoration(ht),l=u.range;if(c[M++]=u,y.inlineClassName)for(var b=new no.a(l,y.inlineClassName,y.inlineClassNameAffectsLetterSpacing?3:0),S=Math.max(i,l.startLineNumber),C=Math.min(d,l.endLineNumber),le=S;le<=C;le++)ge[le-i].push(b);if(y.beforeContentClassName&&(i<=l.startLineNumber&&l.startLineNumber<=d)){var b=new no.a(new Te.a(l.startLineNumber,l.startColumn,l.startLineNumber,l.startColumn),y.beforeContentClassName,1);ge[l.startLineNumber-i].push(b)}if(y.afterContentClassName&&(i<=l.endLineNumber&&l.endLineNumber<=d)){var b=new no.a(new Te.a(l.endLineNumber,l.endColumn,l.endLineNumber,l.endColumn),y.afterContentClassName,2);ge[l.endLineNumber-i].push(b)}}return{decorations:c,inlineDecorations:ge}},L}(),Do=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),zs=!0,Uo=function(L){Do(n,L);function n(e,i,d,c,M,ge){var le=L.call(this)||this;if(le.editorId=e,le.configuration=i,le.model=d,le._tokenizeViewportSoon=le._register(new z.d(function(){return le.tokenizeViewport()},50)),le.hasFocus=!1,le.viewportStartLine=-1,le.viewportStartLineTrackedRange=null,le.viewportStartLineDelta=0,zs&&le.model.isTooLargeForTokenization())le.lines=new Us(le.model);else{var He=le.configuration.options,st=He.get(34),ht=He.get(103),y=He.get(108),u=He.get(102);le.lines=new vs(le.model,c,M,st,le.model.getOptions().tabSize,ht,y.wrappingColumn,u)}return le.coordinatesConverter=le.lines.createCoordinatesConverter(),le.viewLayout=le._register(new Ar(le.configuration,le.getLineCount(),ge)),le._register(le.viewLayout.onDidScroll(function(l){l.scrollTopChanged&&le._tokenizeViewportSoon.schedule();try{var b=le._beginEmit();b.emit(new Bi(l))}finally{le._endEmit()}})),le._register(le.viewLayout.onDidContentSizeChange(function(l){try{var b=le._beginEmit();b.emit(new zi(l))}finally{le._endEmit()}})),le.decorations=new Vs(le.editorId,le.model,le.configuration,le.lines,le.coordinatesConverter),le._registerModelEvents(),le._register(le.configuration.onDidChange(function(l){try{var b=le._beginEmit();le._onConfigurationChanged(b,l)}finally{le._endEmit()}})),le._register(zo.getInstance().onDidChange(function(){try{var l=le._beginEmit();l.emit(new ro)}finally{le._endEmit()}})),le}return n.prototype.dispose=function(){L.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.invalidateMinimapColorCache(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},n.prototype.tokenizeViewport=function(){var e=this.viewLayout.getLinesViewportData(),i=this.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(e.startLineNumber,1)),d=this.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(e.endLineNumber,1));this.model.tokenizeViewport(i.lineNumber,d.lineNumber)},n.prototype.setHasFocus=function(e){this.hasFocus=e},n.prototype._onConfigurationChanged=function(e,i){var d=null;if(this.viewportStartLine!==-1){var c=new ve.a(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));d=this.coordinatesConverter.convertViewPositionToModelPosition(c)}var M=!1,ge=this.configuration.options,le=ge.get(34),He=ge.get(103),st=ge.get(108),ht=ge.get(102);if(this.lines.setWrappingSettings(le,He,st.wrappingColumn,ht)&&(e.emit(new Ii),e.emit(new Un),e.emit(new Zn),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(M=!0)),i.hasChanged(68)&&(this.decorations.reset(),e.emit(new Zn)),e.emit(new ci(i)),this.viewLayout.onConfigurationChanged(i),M&&d){var y=this.coordinatesConverter.convertModelPositionToViewPosition(d),u=this.viewLayout.getVerticalOffsetForLineNumber(y.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:u+this.viewportStartLineDelta})}},n.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast(function(i){try{for(var d=e._beginEmit(),c=!1,M=!1,ge=i.changes,le=i.versionId,He=e.lines.createLineBreaksComputer(),st=0,ht=ge;st<ht.length;st++){var y=ht[st];switch(y.changeType){case 4:{for(var u=0,l=y.detail;u<l.length;u++){var b=l[u];He.addRequest(b,null)}break}case 2:{He.addRequest(y.detail,null);break}}}for(var S=He.finalize(),C=0,$=0,Be=ge;$<Be.length;$++){var y=Be[$];switch(y.changeType){case 1:{e.lines.onModelFlushed(),d.emit(new Ii),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),c=!0;break}case 3:{var ot=e.lines.onModelLinesDeleted(le,y.fromLineNumber,y.toLineNumber);ot!==null&&(d.emit(ot),e.viewLayout.onLinesDeleted(ot.fromLineNumber,ot.toLineNumber)),c=!0;break}case 4:{var xe=S.slice(C,C+y.detail.length);C+=y.detail.length;var dt=e.lines.onModelLinesInserted(le,y.fromLineNumber,y.toLineNumber,xe);dt!==null&&(d.emit(dt),e.viewLayout.onLinesInserted(dt.fromLineNumber,dt.toLineNumber)),c=!0;break}case 2:{var Nt=S[C];C++;var qt=e.lines.onModelLineChanged(le,y.lineNumber,Nt),en=qt[0],un=qt[1],dt=qt[2],ot=qt[3];M=en,un&&d.emit(un),dt&&(d.emit(dt),e.viewLayout.onLinesInserted(dt.fromLineNumber,dt.toLineNumber)),ot&&(d.emit(ot),e.viewLayout.onLinesDeleted(ot.fromLineNumber,ot.toLineNumber));break}case 5:break}}e.lines.acceptVersionId(le),e.viewLayout.onHeightMaybeChanged(),!c&&M&&(d.emit(new Un),d.emit(new Zn),e.decorations.onLineMappingChanged())}finally{e._endEmit()}if(e.viewportStartLine=-1,e.configuration.setMaxLineNumber(e.model.getLineCount()),!e.hasFocus&&e.model.getAttachedEditorCount()>=2&&e.viewportStartLineTrackedRange){var an=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(an){var Cn=e.coordinatesConverter.convertModelPositionToViewPosition(an.getStartPosition()),In=e.viewLayout.getVerticalOffsetForLineNumber(Cn.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:In+e.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(i){for(var d=[],c=0,M=i.ranges.length;c<M;c++){var ge=i.ranges[c],le=e.coordinatesConverter.convertModelPositionToViewPosition(new ve.a(ge.fromLineNumber,1)).lineNumber,He=e.coordinatesConverter.convertModelPositionToViewPosition(new ve.a(ge.toLineNumber,e.model.getLineMaxColumn(ge.toLineNumber))).lineNumber;d[c]={fromLineNumber:le,toLineNumber:He}}try{var st=e._beginEmit();st.emit(new qi(d))}finally{e._endEmit()}i.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(function(i){try{var d=e._beginEmit();d.emit(new ji)}finally{e._endEmit()}})),this._register(this.model.onDidChangeOptions(function(i){if(e.lines.setTabSize(e.model.getOptions().tabSize)){e.decorations.onLineMappingChanged(),e.viewLayout.onFlushed(e.getLineCount());try{var d=e._beginEmit();d.emit(new Ii),d.emit(new Un),d.emit(new Zn)}finally{e._endEmit()}}})),this._register(this.model.onDidChangeDecorations(function(i){e.decorations.onModelDecorationsChanged();try{var d=e._beginEmit();d.emit(new Zn)}finally{e._endEmit()}}))},n.prototype.setHiddenAreas=function(e){try{var i=this._beginEmit(),d=this.lines.setHiddenAreas(e);d&&(i.emit(new Ii),i.emit(new Un),i.emit(new Zn),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},n.prototype.getVisibleRanges=function(){var e=this.getCompletelyVisibleViewRange(),i=this.coordinatesConverter.convertViewRangeToModelRange(e),d=this.lines.getHiddenAreas();if(d.length===0)return[i];for(var c=[],M=0,ge=i.startLineNumber,le=i.startColumn,He=i.endLineNumber,st=i.endColumn,ht=0,y=d.length;ht<y;ht++){var u=d[ht].startLineNumber,l=d[ht].endLineNumber;if(l<ge)continue;if(u>He)continue;ge<u&&(c[M++]=new Te.a(ge,le,u-1,this.model.getLineMaxColumn(u-1))),ge=l+1,le=1}return(ge<He||ge===He&&le<st)&&(c[M++]=new Te.a(ge,le,He,st)),c},n.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),i=e.completelyVisibleStartLineNumber,d=e.completelyVisibleEndLineNumber;return new Te.a(i,this.getLineMinColumn(i),d,this.getLineMaxColumn(d))},n.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var i=this.viewLayout.getLinesViewportDataAtScrollTop(e),d=i.completelyVisibleStartLineNumber,c=i.completelyVisibleEndLineNumber;return new Te.a(d,this.getLineMinColumn(d),c,this.getLineMaxColumn(c))},n.prototype.saveState=function(){var e=this.viewLayout.saveState(),i=e.scrollTop,d=this.viewLayout.getLineNumberAtVerticalOffset(i),c=this.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(d,this.getLineMinColumn(d))),M=this.viewLayout.getVerticalOffsetForLineNumber(d)-i;return{scrollLeft:e.scrollLeft,firstPosition:c,firstPositionDeltaTop:M}},n.prototype.reduceRestoreState=function(e){if(typeof e.firstPosition=="undefined")return this._reduceRestoreStateCompatibility(e);var i=this.model.validatePosition(e.firstPosition),d=this.coordinatesConverter.convertModelPositionToViewPosition(i),c=this.viewLayout.getVerticalOffsetForLineNumber(d.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:c}},n.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}},n.prototype.getTabSize=function(){return this.model.getOptions().tabSize},n.prototype.getOptions=function(){return this.model.getOptions()},n.prototype.getLineCount=function(){return this.lines.getViewLineCount()},n.prototype.setViewport=function(e,i,d){this.viewportStartLine=e;var c=this.coordinatesConverter.convertViewPositionToModelPosition(new ve.a(e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new Te.a(c.lineNumber,c.column,c.lineNumber,c.column),1);var M=this.viewLayout.getVerticalOffsetForLineNumber(e),ge=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=ge-M},n.prototype.getActiveIndentGuide=function(e,i,d){return this.lines.getActiveIndentGuide(e,i,d)},n.prototype.getLinesIndentGuides=function(e,i){return this.lines.getViewLinesIndentGuides(e,i)},n.prototype.getLineContent=function(e){return this.lines.getViewLineContent(e)},n.prototype.getLineLength=function(e){return this.lines.getViewLineLength(e)},n.prototype.getLineMinColumn=function(e){return this.lines.getViewLineMinColumn(e)},n.prototype.getLineMaxColumn=function(e){return this.lines.getViewLineMaxColumn(e)},n.prototype.getLineFirstNonWhitespaceColumn=function(e){var i=Kn.q(this.getLineContent(e));return i===-1?0:i+1},n.prototype.getLineLastNonWhitespaceColumn=function(e){var i=Kn.D(this.getLineContent(e));return i===-1?0:i+2},n.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations},n.prototype.getViewLineRenderingData=function(e,i){var d=this.model.mightContainRTL(),c=this.model.mightContainNonBasicASCII(),M=this.getTabSize(),ge=this.lines.getViewLineData(i),le=this.decorations.getDecorationsViewportData(e).inlineDecorations,He=le[i-e.startLineNumber];return new no.d(ge.minColumn,ge.maxColumn,ge.content,ge.continuesWithWrappedLine,d,c,ge.tokens,He,M,ge.startVisibleColumn)},n.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)},n.prototype.getMinimapLinesRenderingData=function(e,i,d){var c=this.lines.getViewLinesData(e,i,d);return new no.b(this.getTabSize(),c)},n.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,Object(_t.j)(this.configuration.options),e)},n.prototype.invalidateOverviewRulerColorCache=function(){for(var e=this.model.getOverviewRulerDecorations(),i=0,d=e;i<d.length;i++){var c=d[i],M=c.options.overviewRuler;M&&M.invalidateCachedColor()}},n.prototype.invalidateMinimapColorCache=function(){for(var e=this.model.getAllDecorations(),i=0,d=e;i<d.length;i++){var c=d[i],M=c.options.minimap;M&&M.invalidateCachedColor()}},n.prototype.getValueInRange=function(e,i){var d=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(d,i)},n.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},n.prototype.validateModelPosition=function(e){return this.model.validatePosition(e)},n.prototype.validateModelRange=function(e){return this.model.validateRange(e)},n.prototype.deduceModelPositionRelativeToViewPosition=function(e,i,d){var c=this.coordinatesConverter.convertViewPositionToModelPosition(e);this.model.getEOL().length===2&&(i<0?i-=d:i+=d);var M=this.model.getOffsetAt(c),ge=M+i;return this.model.getPositionAt(ge)},n.prototype.getEOL=function(){return this.model.getEOL()},n.prototype.getPlainTextToCopy=function(e,i,d){var c=d?`\r
|
|
`:this.model.getEOL();e=e.slice(0),e.sort(Te.a.compareRangesUsingStarts);for(var M=!1,ge=!1,le=0,He=e;le<He.length;le++){var st=He[le];st.isEmpty()?M=!0:ge=!0}if(!ge){if(!i)return"";for(var ht=e.map(function(Nt){return Nt.startLineNumber}),y="",u=0;u<ht.length;u++){if(u>0&&ht[u-1]===ht[u])continue;y+=this.model.getLineContent(ht[u])+c}return y}if(M&&i){for(var l=[],b=0,S=0,C=e;S<C.length;S++){var $=C[S],Be=$.startLineNumber;$.isEmpty()?Be!==b&&l.push(this.model.getLineContent(Be)):l.push(this.model.getValueInRange($,d?2:0)),b=Be}return l.length===1?l[0]:l}for(var ot=[],xe=0,dt=e;xe<dt.length;xe++){var $=dt[xe];$.isEmpty()||ot.push(this.model.getValueInRange($,d?2:0))}return ot.length===1?ot[0]:ot},n.prototype.getRichTextToCopy=function(e,i){var d=this.model.getLanguageIdentifier();if(d.id===1)return null;if(e.length!==1)return null;var c=e[0];if(c.isEmpty()){if(!i)return null;var M=c.startLineNumber;c=new Te.a(M,this.model.getLineMinColumn(M),M,this.model.getLineMaxColumn(M))}var ge=this.configuration.options.get(34),le=this._getColorMap(),He=ge.fontFamily===_t.b.fontFamily?ge.fontFamily:"'"+ge.fontFamily+"', "+_t.b.fontFamily;return{mode:d.language,html:'<div style="'+("color: "+le[1]+";")+("background-color: "+le[2]+";")+("font-family: "+He+";")+("font-weight: "+ge.fontWeight+";")+("font-size: "+ge.fontSize+"px;")+("line-height: "+ge.lineHeight+"px;")+'white-space: pre;">'+this._getHTMLToCopy(c,le)+"</div>"}},n.prototype._getHTMLToCopy=function(e,i){for(var d=e.startLineNumber,c=e.startColumn,M=e.endLineNumber,ge=e.endColumn,le=this.getTabSize(),He="",st=d;st<=M;st++){var ht=this.model.getLineTokens(st),y=ht.getLineContent(),u=st===d?c-1:0,l=st===M?ge-1:y.length;y===""?He+="<br>":He+=Object(js.a)(y,ht.inflate(),i,u,l,le,K.h)}return He},n.prototype._getColorMap=function(){var e=zn.y.getColorMap(),i=["#000000"];if(e)for(var d=1,c=e.length;d<c;d++)i[d]=mr.a.Format.CSS.formatHex(e[d]);return i},n}(Di),ys=r("OJ8J"),bs=r("bBv/"),Gr=r("PoD0"),Vo=r("j0h8"),Cs=r("Ym/J"),$o=r("FTcp"),xo=r("yqRl"),Yi=r("3NxR"),Jo=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Xr=function(L){Jo(n,L);function n(e,i){for(var d=L.call(this,0)||this,c=0;c<e.length;c++)d.set(e.charCodeAt(c),1);for(var c=0;c<i.length;c++)d.set(i.charCodeAt(c),2);return d}return n.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue},n}(Yi.a),Ao=[],Yr=[],Qo=function(){function L(n,e){this.classifier=new Xr(n,e)}return L.create=function(n){return new L(n.get(99),n.get(98))},L.prototype.createLineBreaksComputer=function(n,e,i,d){var c=this;e=e|0,i=+i;var M=[],ge=[];return{addRequest:function(He,st){M.push(He),ge.push(st)},finalize:function(){for(var He=n.typicalFullwidthCharacterWidth/n.typicalHalfwidthCharacterWidth,st=[],ht=0,y=M.length;ht<y;ht++){var u=ge[ht];u?st[ht]=Oo(c.classifier,u,M[ht],e,i,He,d):st[ht]=Zr(c.classifier,M[ht],e,i,He,d)}return Ao.length=0,Yr.length=0,st}}},L}();function Oo(L,n,e,i,d,c,M){if(d===-1)return null;var ge=e.length;if(ge<=1)return null;var le=n.breakOffsets,He=n.breakOffsetsVisibleColumn,st=Ei(e,i,d,c,M),ht=d-st,y=Ao,u=Yr,l=0,b=d,S=le.length,C=0;if(C>=0)for(var $=Math.abs(He[C]-b);C+1<S;){var Be=Math.abs(He[C+1]-b);if(Be>=$)break;$=Be,C++}for(;C<S;){var ot=C<0?0:le[C],xe=C<0?0:He[C],dt=0,Nt=0,qt=0,en=0;if(xe<=b){for(var un=xe,an=e.charCodeAt(ot-1),Cn=L.get(an),In=!0,Nn=ot;Nn<ge;Nn++){var ti=Nn,Dn=e.charCodeAt(Nn),di=void 0,qn=void 0;if(Kn.z(Dn)?(Nn++,di=0,qn=2):(di=L.get(Dn),qn=qo(Dn,un,i,c)),go(an,Cn,Dn,di)&&(dt=ti,Nt=un),un+=qn,un>b){qt=ti,en=un-qn,un-Nt>ht&&(dt=0),In=!1;break}an=Dn,Cn=di}if(In){l>0&&(y[l]=le[le.length-1],u[l]=He[le.length-1],l++);break}}if(dt===0){for(var un=xe,Dn=e.charCodeAt(ot),di=L.get(Dn),Ri=!1,Nn=ot-1;Nn>=0;Nn--){var ti=Nn+1,an=e.charCodeAt(Nn);if(an===9){Ri=!0;break}var Cn=void 0,li=void 0;if(Kn.A(an)?(Nn--,Cn=0,li=2):(Cn=L.get(an),li=Kn.y(an)?c:1),un<=b){if(qt===0&&(qt=ti,en=un),un<=b-ht)break;if(go(an,Cn,Dn,di)){dt=ti,Nt=un;break}}un-=li,Dn=an,di=Cn}if(dt!==0){var mo=ht-(en-Nt);if(mo<=i){var Li=e.charCodeAt(qt),qn=void 0;Kn.z(Li)?qn=2:qn=qo(Li,en,i,c),mo-qn<0&&(dt=0)}}if(Ri){C--;continue}}for(dt===0&&(dt=qt,Nt=en),y[l]=dt,u[l]=Nt,l++,b=Nt+ht;C<0||C<S&&He[C]<Nt;)C++;for(var $=Math.abs(He[C]-b);C+1<S;){var Be=Math.abs(He[C+1]-b);if(Be>=$)break;$=Be,C++}}return l===0?null:(y.length=l,u.length=l,Ao=n.breakOffsets,Yr=n.breakOffsetsVisibleColumn,n.breakOffsets=y,n.breakOffsetsVisibleColumn=u,n.wrappedTextIndentLength=st,n)}function Zr(L,n,e,i,d,c){if(i===-1)return null;var M=n.length;if(M<=1)return null;var ge=Ei(n,e,i,d,c),le=i-ge,He=[],st=[],ht=0,y=0,u=0,l=i,b=n.charCodeAt(0),S=L.get(b),C=qo(b,0,e,d),$=1;Kn.z(b)&&(C+=1,b=n.charCodeAt(1),S=L.get(b),$++);for(var Be=$;Be<M;Be++){var ot=Be,xe=n.charCodeAt(Be),dt=void 0,Nt=void 0;Kn.z(xe)?(Be++,dt=0,Nt=2):(dt=L.get(xe),Nt=qo(xe,C,e,d)),go(b,S,xe,dt)&&(y=ot,u=C),C+=Nt,C>l&&((y===0||C-u>le)&&(y=ot,u=C-Nt),He[ht]=y,st[ht]=u,ht++,l=u+le,y=0),b=xe,S=dt}return ht===0?null:(He[ht]=M,st[ht]=C,new ar(He,st,ge))}function qo(L,n,e,i){return L===9?e-n%e:Kn.y(L)?i:1}function ur(L,n){return n-L%n}function go(L,n,e,i){return e!==32&&(n===2||n===3&&i!==2||i===1||i===3&&n!==1)}function Ei(L,n,e,i,d){var c=0;if(d!==0){var M=Kn.q(L);if(M!==-1){for(var ge=0;ge<M;ge++){var le=L.charCodeAt(ge)===9?ur(c,n):1;c+=le}for(var He=d===3?2:d===2?1:0,ge=0;ge<He;ge++){var le=ur(c,n);c+=le}c+i>e&&(c=0)}}return c}var Zi=function(){function L(){}return L.create=function(){return new L},L.prototype.createLineBreaksComputer=function(n,e,i,d){e=e|0,i=+i;var c=[];return{addRequest:function(ge,le){c.push(ge)},finalize:function(){return yo(c,n,e,i,d)}}},L}();function yo(L,n,e,i,d){if(i===-1){for(var c=[],M=0,ge=L.length;M<ge;M++)c[M]=null;return c}var le=Math.round(i*n.typicalHalfwidthCharacterWidth);(d===2||d===3)&&(d=1);var He=document.createElement("div");G.a.applyFontInfoSlow(He,n);for(var st=Object(xt.a)(1e4),ht=[],y=[],u=[],l=[],b=[],M=0;M<L.length;M++){var S=L[M],C=0,$=0,Be=le;if(d!==0)if(C=Kn.q(S),C===-1)C=0;else{for(var ot=0;ot<C;ot++){var xe=S.charCodeAt(ot)===9?e-$%e:1;$+=xe}var dt=Math.ceil(n.spaceWidth*$);dt+n.typicalFullwidthCharacterWidth>le?(C=0,$=0):Be=le-dt}var Nt=S.substr(C),qt=Cr(Nt,$,e,Be,st);ht[M]=C,y[M]=$,u[M]=Nt,l[M]=qt[0],b[M]=qt[1]}He.innerHTML=st.build(),He.style.position="absolute",He.style.top="10000",He.style.wordWrap="break-word",document.body.appendChild(He);for(var en=document.createRange(),un=Array.prototype.slice.call(He.children,0),an=[],M=0;M<L.length;M++){var Cn=un[M],In=_r(en,Cn,u[M],l[M]);if(In===null){an[M]=null;continue}for(var C=ht[M],$=y[M],Nn=b[M],ti=[],Dn=0,ge=In.length;Dn<ge;Dn++)ti[Dn]=Nn[In[Dn]];if(C!==0)for(var Dn=0,ge=In.length;Dn<ge;Dn++)In[Dn]+=C;an[M]=new ar(In,ti,$)}return document.body.removeChild(He),an}function Cr(L,n,e,i,d){d.appendASCIIString('<div style="width:'),d.appendASCIIString(String(i)),d.appendASCIIString('px;">');for(var c=L.length,M=n,ge=0,le=[],He=[],st=0<c?L.charCodeAt(0):0,ht=0;ht<c;ht++){le[ht]=ge,He[ht]=M;var y=st;st=ht+1<c?L.charCodeAt(ht+1):0;var u=1,l=1;switch(y){case 9:u=e-M%e,l=u;for(var b=1;b<=u;b++)b<u?d.write1(160):d.appendASCII(32);break;case 32:st===32?d.write1(160):d.appendASCII(32);break;case 60:d.appendASCIIString("<");break;case 62:d.appendASCIIString(">");break;case 38:d.appendASCIIString("&");break;case 0:d.appendASCIIString("�");break;case 65279:case 8232:d.write1(65533);break;default:Kn.y(y)&&l++,d.write1(y)}ge+=u,M+=l}return le[L.length]=ge,He[L.length]=M,d.appendASCIIString("</div>"),[le,He]}function _r(L,n,e,i){if(e.length<=1)return null;var d=n.firstChild,c=[];return ai(L,d,i,0,null,e.length-1,null,c),c.length===0?null:(c.push(e.length),c)}function ai(L,n,e,i,d,c,M,ge){if(i===c)return;if(d=d||Er(L,n,e[i],e[i+1]),M=M||Er(L,n,e[c],e[c+1]),Math.abs(d[0].top-M[0].top)<=.1)return;if(i+1===c){ge.push(c);return}var le=i+(c-i)/2|0,He=Er(L,n,e[le],e[le+1]);ai(L,n,e,i,d,le,He,ge),ai(L,n,e,le,He,c,M,ge)}function Er(L,n,e,i){return L.setStart(n,e),L.setEnd(n,i),L.getClientRects()}var er=function(){var L=function(e,i){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var M in c)c.hasOwnProperty(M)&&(d[M]=c[M])},L(e,i)};return function(n,e){L(n,e);function i(){this.constructor=n}n.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}(),Rr=function(L,n,e,i){var d=arguments.length,c=d<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,e):i,M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(L,n,e,i);else for(var ge=L.length-1;ge>=0;ge--)(M=L[ge])&&(c=(d<3?M(c):d>3?M(n,e,c):M(n,e))||c);return d>3&&c&&Object.defineProperty(n,e,c),c},No=function(L,n){return function(e,i){n(e,i,L)}},Ir=0,cr=function(){function L(n,e,i,d,c,M){this.model=n,this.viewModel=e,this.cursor=i,this.view=d,this.hasRealView=c,this.listenersToRemove=M}return L.prototype.dispose=function(){Object(U.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},L}(),Pr=function(L){er(n,L);function n(e,i,d,c,M,ge,le,He,st,ht){var y=L.call(this)||this;y._onDidDispose=y._register(new F.a),y.onDidDispose=y._onDidDispose.event,y._onDidChangeModelContent=y._register(new F.a),y.onDidChangeModelContent=y._onDidChangeModelContent.event,y._onDidChangeModelLanguage=y._register(new F.a),y.onDidChangeModelLanguage=y._onDidChangeModelLanguage.event,y._onDidChangeModelLanguageConfiguration=y._register(new F.a),y.onDidChangeModelLanguageConfiguration=y._onDidChangeModelLanguageConfiguration.event,y._onDidChangeModelOptions=y._register(new F.a),y.onDidChangeModelOptions=y._onDidChangeModelOptions.event,y._onDidChangeModelDecorations=y._register(new F.a),y.onDidChangeModelDecorations=y._onDidChangeModelDecorations.event,y._onDidChangeConfiguration=y._register(new F.a),y.onDidChangeConfiguration=y._onDidChangeConfiguration.event,y._onDidChangeModel=y._register(new F.a),y.onDidChangeModel=y._onDidChangeModel.event,y._onDidChangeCursorPosition=y._register(new F.a),y.onDidChangeCursorPosition=y._onDidChangeCursorPosition.event,y._onDidChangeCursorSelection=y._register(new F.a),y.onDidChangeCursorSelection=y._onDidChangeCursorSelection.event,y._onDidAttemptReadOnlyEdit=y._register(new F.a),y.onDidAttemptReadOnlyEdit=y._onDidAttemptReadOnlyEdit.event,y._onDidLayoutChange=y._register(new F.a),y.onDidLayoutChange=y._onDidLayoutChange.event,y._editorTextFocus=y._register(new $r),y.onDidFocusEditorText=y._editorTextFocus.onDidChangeToTrue,y.onDidBlurEditorText=y._editorTextFocus.onDidChangeToFalse,y._editorWidgetFocus=y._register(new $r),y.onDidFocusEditorWidget=y._editorWidgetFocus.onDidChangeToTrue,y.onDidBlurEditorWidget=y._editorWidgetFocus.onDidChangeToFalse,y._onWillType=y._register(new F.a),y.onWillType=y._onWillType.event,y._onDidType=y._register(new F.a),y.onDidType=y._onDidType.event,y._onDidCompositionStart=y._register(new F.a),y.onDidCompositionStart=y._onDidCompositionStart.event,y._onDidCompositionEnd=y._register(new F.a),y.onDidCompositionEnd=y._onDidCompositionEnd.event,y._onDidPaste=y._register(new F.a),y.onDidPaste=y._onDidPaste.event,y._onMouseUp=y._register(new F.a),y.onMouseUp=y._onMouseUp.event,y._onMouseDown=y._register(new F.a),y.onMouseDown=y._onMouseDown.event,y._onMouseDrag=y._register(new F.a),y.onMouseDrag=y._onMouseDrag.event,y._onMouseDrop=y._register(new F.a),y.onMouseDrop=y._onMouseDrop.event,y._onContextMenu=y._register(new F.a),y.onContextMenu=y._onContextMenu.event,y._onMouseMove=y._register(new F.a),y.onMouseMove=y._onMouseMove.event,y._onMouseLeave=y._register(new F.a),y.onMouseLeave=y._onMouseLeave.event,y._onMouseWheel=y._register(new F.a),y.onMouseWheel=y._onMouseWheel.event,y._onKeyUp=y._register(new F.a),y.onKeyUp=y._onKeyUp.event,y._onKeyDown=y._register(new F.a),y.onKeyDown=y._onKeyDown.event,y._onDidContentSizeChange=y._register(new F.a),y.onDidContentSizeChange=y._onDidContentSizeChange.event,y._onDidScrollChange=y._register(new F.a),y.onDidScrollChange=y._onDidScrollChange.event,y._onDidChangeViewZones=y._register(new F.a),y.onDidChangeViewZones=y._onDidChangeViewZones.event,y._domElement=e,y._id=++Ir,y._decorationTypeKeysToIds={},y._decorationTypeSubtypes={},y.isSimpleWidget=d.isSimpleWidget||!1,y._telemetryData=d.telemetryData,i=i||{},y._configuration=y._register(y._createConfiguration(i,ht)),y._register(y._configuration.onDidChange(function($){y._onDidChangeConfiguration.fire($);var Be=y._configuration.options;if($.hasChanged(107)){var ot=Be.get(107);y._onDidLayoutChange.fire(ot)}})),y._contextKeyService=y._register(le.createScoped(y._domElement)),y._notificationService=st,y._codeEditorService=M,y._commandService=ge,y._themeService=He,y._register(new _s(y,y._contextKeyService)),y._register(new Es(y,y._contextKeyService)),y._instantiationService=c.createChild(new Vo.a([bs.c,y._contextKeyService])),y._modelData=null,y._contributions={},y._actions={},y._focusTracker=new Jr(e),y._focusTracker.onChange(function(){y._editorWidgetFocus.setValue(y._focusTracker.hasFocus())}),y._contentWidgets={},y._overlayWidgets={};var u;Array.isArray(d.contributions)?u=d.contributions:u=R.d.getEditorContributions();for(var l=0,b=u;l<b.length;l++){var S=b[l];try{var C=y._instantiationService.createInstance(S.ctor,y);y._contributions[S.id]=C}catch($){Object(N.e)($)}}return R.d.getEditorActions().forEach(function($){var Be=new ks.a($.id,$.label,$.alias,Object(xo.n)($.precondition),function(){return y._instantiationService.invokeFunction(function(ot){return Promise.resolve($.runEditorCommand(ot,y,null))})},y._contextKeyService);y._actions[Be.id]=Be}),y._codeEditorService.addCodeEditor(y),y}return n.prototype._createConfiguration=function(e,i){return new G.a(this.isSimpleWidget,e,this._domElement,i)},n.prototype.getId=function(){return this.getEditorType()+":"+this._id},n.prototype.getEditorType=function(){return oi.a.ICodeEditor},n.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var e=Object.keys(this._contributions),i=0,d=e.length;i<d;i++){var c=e[i];this._contributions[c].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),L.prototype.dispose.call(this)},n.prototype.invokeWithinContext=function(e){return this._instantiationService.invokeFunction(e)},n.prototype.updateOptions=function(e){this._configuration.updateOptions(e)},n.prototype.getOptions=function(){return this._configuration.options},n.prototype.getOption=function(e){return this._configuration.options.get(e)},n.prototype.getRawOptions=function(){return this._configuration.getRawOptions()},n.prototype.getValue=function(e){if(e===void 0&&(e=null),!this._modelData)return"";var i=!!(e&&e.preserveBOM),d=0;return e&&e.lineEnding&&e.lineEnding===`
|
|
`?d=1:e&&e.lineEnding&&e.lineEnding===`\r
|
|
`&&(d=2),this._modelData.model.getValue(d,i)},n.prototype.setValue=function(e){if(!this._modelData)return;this._modelData.model.setValue(e)},n.prototype.getModel=function(){return this._modelData?this._modelData.model:null},n.prototype.setModel=function(e){e===void 0&&(e=null);var i=e;if(this._modelData===null&&i===null)return;if(this._modelData&&this._modelData.model===i)return;var d=this.hasTextFocus(),c=this._detachModel();this._attachModel(i),d&&this.hasModel()&&this.focus();var M={oldModelUrl:c?c.uri:null,newModelUrl:i?i.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(M),this._postDetachModelCleanup(c)},n.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes){var i=this._decorationTypeSubtypes[e];for(var d in i)this._removeDecorationType(e+"-"+d)}this._decorationTypeSubtypes={}}},n.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},n.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},n._getVerticalOffsetForPosition=function(e,i,d){var c=e.model.validatePosition({lineNumber:i,column:d}),M=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(c);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(M.lineNumber)},n.prototype.getTopForLineNumber=function(e){return this._modelData?n._getVerticalOffsetForPosition(this._modelData,e,1):-1},n.prototype.getTopForPosition=function(e,i){return this._modelData?n._getVerticalOffsetForPosition(this._modelData,e,i):-1},n.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map(function(i){return Te.a.lift(i)}))},n.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var i=this._modelData.model.validatePosition(e),d=this._modelData.model.getOptions().tabSize;return Ie.a.visibleColumnFromColumn(this._modelData.model.getLineContent(i.lineNumber),i.column,d)+1},n.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},n.prototype.setPosition=function(e){if(!this._modelData)return;if(!ve.a.isIPosition(e))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])},n.prototype._sendRevealRange=function(e,i,d,c){if(!this._modelData)return;if(!Te.a.isIRange(e))throw new Error("Invalid arguments");var M=this._modelData.model.validateRange(e),ge=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(M);this._modelData.cursor.emitCursorRevealRange("api",ge,i,d,c)},n.prototype.revealLine=function(e,i){i===void 0&&(i=0),this._revealLine(e,0,i)},n.prototype.revealLineInCenter=function(e,i){i===void 0&&(i=0),this._revealLine(e,1,i)},n.prototype.revealLineInCenterIfOutsideViewport=function(e,i){i===void 0&&(i=0),this._revealLine(e,2,i)},n.prototype._revealLine=function(e,i,d){if(typeof e!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Te.a(e,1,e,1),i,!1,d)},n.prototype.revealPosition=function(e,i){i===void 0&&(i=0),this._revealPosition(e,0,!0,i)},n.prototype.revealPositionInCenter=function(e,i){i===void 0&&(i=0),this._revealPosition(e,1,!0,i)},n.prototype.revealPositionInCenterIfOutsideViewport=function(e,i){i===void 0&&(i=0),this._revealPosition(e,2,!0,i)},n.prototype._revealPosition=function(e,i,d,c){if(!ve.a.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Te.a(e.lineNumber,e.column,e.lineNumber,e.column),i,d,c)},n.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},n.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},n.prototype.setSelection=function(e){var i=gt.a.isISelection(e),d=Te.a.isIRange(e);if(!i&&!d)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e);else if(d){var c={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(c)}},n.prototype._setSelectionImpl=function(e){if(!this._modelData)return;var i=new gt.a(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[i])},n.prototype.revealLines=function(e,i,d){d===void 0&&(d=0),this._revealLines(e,i,0,d)},n.prototype.revealLinesInCenter=function(e,i,d){d===void 0&&(d=0),this._revealLines(e,i,1,d)},n.prototype.revealLinesInCenterIfOutsideViewport=function(e,i,d){d===void 0&&(d=0),this._revealLines(e,i,2,d)},n.prototype._revealLines=function(e,i,d,c){if(typeof e!="number"||typeof i!="number")throw new Error("Invalid arguments");this._sendRevealRange(new Te.a(e,1,i,1),d,!1,c)},n.prototype.revealRange=function(e,i,d,c){i===void 0&&(i=0),d===void 0&&(d=!1),c===void 0&&(c=!0),this._revealRange(e,d?1:0,c,i)},n.prototype.revealRangeInCenter=function(e,i){i===void 0&&(i=0),this._revealRange(e,1,!0,i)},n.prototype.revealRangeInCenterIfOutsideViewport=function(e,i){i===void 0&&(i=0),this._revealRange(e,2,!0,i)},n.prototype.revealRangeAtTop=function(e,i){i===void 0&&(i=0),this._revealRange(e,3,!0,i)},n.prototype._revealRange=function(e,i,d,c){if(!Te.a.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Te.a.lift(e),i,d,c)},n.prototype.setSelections=function(e,i){if(i===void 0&&(i="api"),!this._modelData)return;if(!e||e.length===0)throw new Error("Invalid arguments");for(var d=0,c=e.length;d<c;d++)if(!gt.a.isISelection(e[d]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(i,e)},n.prototype.getContentWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1},n.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},n.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},n.prototype.getContentHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1},n.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},n.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},n.prototype.setScrollLeft=function(e){if(!this._modelData)return;if(typeof e!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})},n.prototype.setScrollTop=function(e){if(!this._modelData)return;if(typeof e!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})},n.prototype.setScrollPosition=function(e){if(!this._modelData)return;this._modelData.viewModel.viewLayout.setScrollPositionNow(e)},n.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},i=Object.keys(this._contributions),d=0,c=i;d<c.length;d++){var M=c[d],ge=this._contributions[M];typeof ge.saveViewState=="function"&&(e[M]=ge.saveViewState())}var le=this._modelData.cursor.saveState(),He=this._modelData.viewModel.saveState();return{cursorState:le,viewState:He,contributionsState:e}},n.prototype.restoreViewState=function(e){if(!this._modelData||!this._modelData.hasRealView)return;var i=e;if(i&&i.cursorState&&i.viewState){var d=i.cursorState;Array.isArray(d)?this._modelData.cursor.restoreState(d):this._modelData.cursor.restoreState([d]);for(var c=i.contributionsState||{},M=Object.keys(this._contributions),ge=0,le=M.length;ge<le;ge++){var He=M[ge],st=this._contributions[He];typeof st.restoreViewState=="function"&&st.restoreViewState(c[He])}var ht=this._modelData.viewModel.reduceRestoreState(i.viewState);this._modelData.view.restoreState(ht)}},n.prototype.getContribution=function(e){return this._contributions[e]||null},n.prototype.getActions=function(){for(var e=[],i=Object.keys(this._actions),d=0,c=i.length;d<c;d++){var M=i[d];e.push(this._actions[M])}return e},n.prototype.getSupportedActions=function(){var e=this.getActions();return e=e.filter(function(i){return i.isSupported()}),e},n.prototype.getAction=function(e){return this._actions[e]||null},n.prototype.trigger=function(e,i,d){if(d=d||{},i===oi.b.Type){if(!this._modelData||typeof d.text!="string"||d.text.length===0)return;e==="keyboard"&&this._onWillType.fire(d.text),this._modelData.cursor.trigger(e,i,d),e==="keyboard"&&this._onDidType.fire(d.text);return}if(i===oi.b.Paste){if(!this._modelData||typeof d.text!="string"||d.text.length===0)return;var c=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,i,d);var M=this._modelData.cursor.getSelection().getStartPosition();e==="keyboard"&&this._onDidPaste.fire({range:new Te.a(c.lineNumber,c.column,M.lineNumber,M.column),mode:d.mode});return}var ge=this.getAction(i);if(ge){Promise.resolve(ge.run()).then(void 0,N.e);return}if(!this._modelData)return;if(this._triggerEditorCommand(e,i,d))return;this._modelData.cursor.trigger(e,i,d),i===oi.b.CompositionStart&&this._onDidCompositionStart.fire(),i===oi.b.CompositionEnd&&this._onDidCompositionEnd.fire()},n.prototype._triggerEditorCommand=function(e,i,d){var c=this,M=R.d.getEditorCommand(i);return M?(d=d||{},d.source=e,this._instantiationService.invokeFunction(function(ge){Promise.resolve(M.runEditorCommand(ge,c,d)).then(void 0,N.e)}),!0):!1},n.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},n.prototype.pushUndoStop=function(){return this._modelData?this._configuration.options.get(68)?!1:(this._modelData.model.pushStackElement(),!0):!1},n.prototype.executeEdits=function(e,i,d){if(!this._modelData)return!1;if(this._configuration.options.get(68))return!1;var c;return d?Array.isArray(d)?c=function(){return d}:c=d:c=function(){return null},this._modelData.cursor.executeEdits(e,i,c),!0},n.prototype.executeCommand=function(e,i){if(!this._modelData)return;this._modelData.cursor.trigger(e,oi.b.ExecuteCommand,i)},n.prototype.executeCommands=function(e,i){if(!this._modelData)return;this._modelData.cursor.trigger(e,oi.b.ExecuteCommands,i)},n.prototype.changeDecorations=function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null},n.prototype.getLineDecorations=function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Object(_t.j)(this._configuration.options)):null},n.prototype.deltaDecorations=function(e,i){return this._modelData?e.length===0&&i.length===0?e:this._modelData.model.deltaDecorations(e,i,this._id):[]},n.prototype.removeDecorations=function(e){var i=this._decorationTypeKeysToIds[e];i&&this.deltaDecorations(i,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]},n.prototype.getLayoutInfo=function(){var e=this._configuration.options,i=e.get(107);return i},n.prototype.createOverviewRuler=function(e){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(e)},n.prototype.getContainerDomNode=function(){return this._domElement},n.prototype.getDomNode=function(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode},n.prototype.delegateVerticalScrollbarMouseDown=function(e){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.delegateVerticalScrollbarMouseDown(e)},n.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render()},n.prototype.focus=function(){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.focus()},n.prototype.hasTextFocus=function(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()},n.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},n.prototype.addContentWidget=function(e){var i={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(i)},n.prototype.layoutContentWidget=function(e){var i=e.getId();if(this._contentWidgets.hasOwnProperty(i)){var d=this._contentWidgets[i];d.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(d)}},n.prototype.removeContentWidget=function(e){var i=e.getId();if(this._contentWidgets.hasOwnProperty(i)){var d=this._contentWidgets[i];delete this._contentWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(d)}},n.prototype.addOverlayWidget=function(e){var i={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(i)},n.prototype.layoutOverlayWidget=function(e){var i=e.getId();if(this._overlayWidgets.hasOwnProperty(i)){var d=this._overlayWidgets[i];d.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(d)}},n.prototype.removeOverlayWidget=function(e){var i=e.getId();if(this._overlayWidgets.hasOwnProperty(i)){var d=this._overlayWidgets[i];delete this._overlayWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(d)}},n.prototype.changeViewZones=function(e){if(!this._modelData||!this._modelData.hasRealView)return;var i=this._modelData.view.change(e);i&&this._onDidChangeViewZones.fire()},n.prototype.getTargetAtClientPoint=function(e,i){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(e,i)},n.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var i=this._modelData.model.validatePosition(e),d=this._configuration.options,c=d.get(107),M=n._getVerticalOffsetForPosition(this._modelData,i.lineNumber,i.column)-this.getScrollTop(),ge=this._modelData.view.getOffsetForColumn(i.lineNumber,i.column)+c.glyphMarginWidth+c.lineNumbersWidth+c.decorationsWidth-this.getScrollLeft();return{top:M,left:ge,height:d.get(49)}},n.prototype.getOffsetForColumn=function(e,i){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(e,i)},n.prototype.render=function(e){if(e===void 0&&(e=!1),!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.render(!0,e)},n.prototype.setAriaOptions=function(e){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.setAriaOptions(e)},n.prototype.applyFontInfo=function(e){G.a.applyFontInfoSlow(e,this._configuration.options.get(34))},n.prototype._attachModel=function(e){var i=this;if(!e){this._modelData=null;return}var d=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();var c=new Uo(this._id,this._configuration,e,Zi.create(),Qo.create(this._configuration.options),function(l){return ne.V(l)});d.push(e.onDidChangeDecorations(function(l){return i._onDidChangeModelDecorations.fire(l)})),d.push(e.onDidChangeLanguage(function(l){i._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),i._onDidChangeModelLanguage.fire(l)})),d.push(e.onDidChangeLanguageConfiguration(function(l){return i._onDidChangeModelLanguageConfiguration.fire(l)})),d.push(e.onDidChangeContent(function(l){return i._onDidChangeModelContent.fire(l)})),d.push(e.onDidChangeOptions(function(l){return i._onDidChangeModelOptions.fire(l)})),d.push(e.onWillDispose(function(){return i.setModel(null)}));var M=new Fs(this._configuration,e,c);d.push(M.onDidReachMaxCursorCount(function(){i._notificationService.warn(oe.a("cursors.maximum","The number of cursors has been limited to {0}.",Fs.MAX_CURSOR_COUNT))})),d.push(M.onDidAttemptReadOnlyEdit(function(){i._onDidAttemptReadOnlyEdit.fire(void 0)})),d.push(M.onDidChange(function(l){for(var b=[],S=0,C=l.selections.length;S<C;S++)b[S]=l.selections[S].getPosition();var $={position:b[0],secondaryPositions:b.slice(1),reason:l.reason,source:l.source};i._onDidChangeCursorPosition.fire($);var Be={selection:l.selections[0],secondarySelections:l.selections.slice(1),modelVersionId:l.modelVersionId,oldSelections:l.oldSelections,oldModelVersionId:l.oldModelVersionId,source:l.source,reason:l.reason};i._onDidChangeCursorSelection.fire(Be)}));var ge=this._createView(c,M),le=ge[0],He=ge[1];if(He){this._domElement.appendChild(le.domNode.domNode);for(var st=Object.keys(this._contentWidgets),ht=0,y=st.length;ht<y;ht++){var u=st[ht];le.addContentWidget(this._contentWidgets[u])}st=Object.keys(this._overlayWidgets);for(var ht=0,y=st.length;ht<y;ht++){var u=st[ht];le.addOverlayWidget(this._overlayWidgets[u])}le.render(!1,!0),le.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new cr(e,c,M,le,He,d)},n.prototype._createView=function(e,i){var d=this,c;this.isSimpleWidget?c={executeEditorCommand:function(He,st){He.runCoreEditorCommand(i,st)},paste:function(He,st,ht,y,u){d.trigger(He,oi.b.Paste,{text:st,pasteOnNewLine:ht,multicursorText:y,mode:u})},type:function(He,st){d.trigger(He,oi.b.Type,{text:st})},replacePreviousChar:function(He,st,ht){d.trigger(He,oi.b.ReplacePreviousChar,{text:st,replaceCharCnt:ht})},compositionStart:function(He){d.trigger(He,oi.b.CompositionStart,void 0)},compositionEnd:function(He){d.trigger(He,oi.b.CompositionEnd,void 0)},cut:function(He){d.trigger(He,oi.b.Cut,void 0)}}:c={executeEditorCommand:function(He,st){He.runCoreEditorCommand(i,st)},paste:function(He,st,ht,y,u){d._commandService.executeCommand(oi.b.Paste,{text:st,pasteOnNewLine:ht,multicursorText:y,mode:u})},type:function(He,st){d._commandService.executeCommand(oi.b.Type,{text:st})},replacePreviousChar:function(He,st,ht){d._commandService.executeCommand(oi.b.ReplacePreviousChar,{text:st,replaceCharCnt:ht})},compositionStart:function(He){d._commandService.executeCommand(oi.b.CompositionStart,{})},compositionEnd:function(He){d._commandService.executeCommand(oi.b.CompositionEnd,{})},cut:function(He){d._commandService.executeCommand(oi.b.Cut,{})}};var M=new lt(e);M.onDidContentSizeChange=function(le){return d._onDidContentSizeChange.fire(le)},M.onDidScroll=function(le){return d._onDidScrollChange.fire(le)},M.onDidGainFocus=function(){return d._editorTextFocus.setValue(!0)},M.onDidLoseFocus=function(){return d._editorTextFocus.setValue(!1)},M.onContextMenu=function(le){return d._onContextMenu.fire(le)},M.onMouseDown=function(le){return d._onMouseDown.fire(le)},M.onMouseUp=function(le){return d._onMouseUp.fire(le)},M.onMouseDrag=function(le){return d._onMouseDrag.fire(le)},M.onMouseDrop=function(le){return d._onMouseDrop.fire(le)},M.onKeyUp=function(le){return d._onKeyUp.fire(le)},M.onMouseMove=function(le){return d._onMouseMove.fire(le)},M.onMouseLeave=function(le){return d._onMouseLeave.fire(le)},M.onMouseWheel=function(le){return d._onMouseWheel.fire(le)},M.onKeyDown=function(le){return d._onKeyDown.fire(le)};var ge=new Tr(c,this._configuration,this._themeService,e,i,M);return[ge,!0]},n.prototype._postDetachModelCleanup=function(e){e&&e.removeAllDecorationsWithOwnerId(this._id)},n.prototype._detachModel=function(){if(!this._modelData)return null;var e=this._modelData.model,i=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),i&&this._domElement.removeChild(i),e},n.prototype._removeDecorationType=function(e){this._codeEditorService.removeDecorationType(e)},n.prototype.hasModel=function(){return this._modelData!==null},n=Rr([No(3,Gr.a),No(4,E.a),No(5,ys.b),No(6,bs.c),No(7,tt.c),No(8,Cs.a),No(9,$o.b)],n),n}(U.a),$r=function(L){er(n,L);function n(){var e=L.call(this)||this;return e._onDidChangeToTrue=e._register(new F.a),e.onDidChangeToTrue=e._onDidChangeToTrue.event,e._onDidChangeToFalse=e._register(new F.a),e.onDidChangeToFalse=e._onDidChangeToFalse.event,e._value=0,e}return n.prototype.setValue=function(e){var i=e?2:1;if(this._value===i)return;this._value=i,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire()},n}(U.a),_s=function(L){er(n,L);function n(e,i){var d=L.call(this)||this;return d._editor=e,i.createKey("editorId",e.getId()),d._editorSimpleInput=si.a.editorSimpleInput.bindTo(i),d._editorFocus=si.a.focus.bindTo(i),d._textInputFocus=si.a.textInputFocus.bindTo(i),d._editorTextFocus=si.a.editorTextFocus.bindTo(i),d._editorTabMovesFocus=si.a.tabMovesFocus.bindTo(i),d._editorReadonly=si.a.readOnly.bindTo(i),d._hasMultipleSelections=si.a.hasMultipleSelections.bindTo(i),d._hasNonEmptySelection=si.a.hasNonEmptySelection.bindTo(i),d._canUndo=si.a.canUndo.bindTo(i),d._canRedo=si.a.canRedo.bindTo(i),d._register(d._editor.onDidChangeConfiguration(function(){return d._updateFromConfig()})),d._register(d._editor.onDidChangeCursorSelection(function(){return d._updateFromSelection()})),d._register(d._editor.onDidFocusEditorWidget(function(){return d._updateFromFocus()})),d._register(d._editor.onDidBlurEditorWidget(function(){return d._updateFromFocus()})),d._register(d._editor.onDidFocusEditorText(function(){return d._updateFromFocus()})),d._register(d._editor.onDidBlurEditorText(function(){return d._updateFromFocus()})),d._register(d._editor.onDidChangeModel(function(){return d._updateFromModel()})),d._register(d._editor.onDidChangeConfiguration(function(){return d._updateFromModel()})),d._updateFromConfig(),d._updateFromSelection(),d._updateFromFocus(),d._updateFromModel(),d._editorSimpleInput.set(d._editor.isSimpleWidget),d}return n.prototype._updateFromConfig=function(){var e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(106)),this._editorReadonly.set(e.get(68))},n.prototype._updateFromSelection=function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(function(i){return!i.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},n.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},n.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},n}(U.a),Es=function(L){er(n,L);function n(e,i){var d=L.call(this)||this;d._editor=e,d._contextKeyService=i,d._langId=si.a.languageId.bindTo(i),d._hasCompletionItemProvider=si.a.hasCompletionItemProvider.bindTo(i),d._hasCodeActionsProvider=si.a.hasCodeActionsProvider.bindTo(i),d._hasCodeLensProvider=si.a.hasCodeLensProvider.bindTo(i),d._hasDefinitionProvider=si.a.hasDefinitionProvider.bindTo(i),d._hasDeclarationProvider=si.a.hasDeclarationProvider.bindTo(i),d._hasImplementationProvider=si.a.hasImplementationProvider.bindTo(i),d._hasTypeDefinitionProvider=si.a.hasTypeDefinitionProvider.bindTo(i),d._hasHoverProvider=si.a.hasHoverProvider.bindTo(i),d._hasDocumentHighlightProvider=si.a.hasDocumentHighlightProvider.bindTo(i),d._hasDocumentSymbolProvider=si.a.hasDocumentSymbolProvider.bindTo(i),d._hasReferenceProvider=si.a.hasReferenceProvider.bindTo(i),d._hasRenameProvider=si.a.hasRenameProvider.bindTo(i),d._hasSignatureHelpProvider=si.a.hasSignatureHelpProvider.bindTo(i),d._hasDocumentFormattingProvider=si.a.hasDocumentFormattingProvider.bindTo(i),d._hasDocumentSelectionFormattingProvider=si.a.hasDocumentSelectionFormattingProvider.bindTo(i),d._hasMultipleDocumentFormattingProvider=si.a.hasMultipleDocumentFormattingProvider.bindTo(i),d._hasMultipleDocumentSelectionFormattingProvider=si.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(i),d._isInWalkThrough=si.a.isInEmbeddedEditor.bindTo(i);var c=function(){return d._update()};return d._register(e.onDidChangeModel(c)),d._register(e.onDidChangeModelLanguage(c)),d._register(zn.d.onDidChange(c)),d._register(zn.a.onDidChange(c)),d._register(zn.b.onDidChange(c)),d._register(zn.f.onDidChange(c)),d._register(zn.e.onDidChange(c)),d._register(zn.p.onDidChange(c)),d._register(zn.z.onDidChange(c)),d._register(zn.o.onDidChange(c)),d._register(zn.h.onDidChange(c)),d._register(zn.l.onDidChange(c)),d._register(zn.t.onDidChange(c)),d._register(zn.u.onDidChange(c)),d._register(zn.g.onDidChange(c)),d._register(zn.i.onDidChange(c)),d._register(zn.w.onDidChange(c)),c(),d}return n.prototype.dispose=function(){L.prototype.dispose.call(this)},n.prototype.reset=function(){var e=this;this._contextKeyService.bufferChangeEvents(function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()})},n.prototype._update=function(){var e=this,i=this._editor.getModel();if(!i){this.reset();return}this._contextKeyService.bufferChangeEvents(function(){e._langId.set(i.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(zn.d.has(i)),e._hasCodeActionsProvider.set(zn.a.has(i)),e._hasCodeLensProvider.set(zn.b.has(i)),e._hasDefinitionProvider.set(zn.f.has(i)),e._hasDeclarationProvider.set(zn.e.has(i)),e._hasImplementationProvider.set(zn.p.has(i)),e._hasTypeDefinitionProvider.set(zn.z.has(i)),e._hasHoverProvider.set(zn.o.has(i)),e._hasDocumentHighlightProvider.set(zn.h.has(i)),e._hasDocumentSymbolProvider.set(zn.l.has(i)),e._hasReferenceProvider.set(zn.t.has(i)),e._hasRenameProvider.set(zn.u.has(i)),e._hasSignatureHelpProvider.set(zn.w.has(i)),e._hasDocumentFormattingProvider.set(zn.g.has(i)||zn.i.has(i)),e._hasDocumentSelectionFormattingProvider.set(zn.i.has(i)),e._hasMultipleDocumentFormattingProvider.set(zn.g.all(i).length+zn.i.all(i).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(zn.i.all(i).length>1),e._isInWalkThrough.set(i.uri.scheme===j.b.walkThroughSnippet)})},n}(U.a),Jr=function(L){er(n,L);function n(e){var i=L.call(this)||this;return i._onChange=i._register(new F.a),i.onChange=i._onChange.event,i._hasFocus=!1,i._domFocusTracker=i._register(ne.Y(e)),i._register(i._domFocusTracker.onDidFocus(function(){i._hasFocus=!0,i._onChange.fire(void 0)})),i._register(i._domFocusTracker.onDidBlur(function(){i._hasFocus=!1,i._onChange.fire(void 0)})),i}return n.prototype.hasFocus=function(){return this._hasFocus},n}(U.a),Ss=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),Qr=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function Fr(L){return Ss+encodeURIComponent(L.toString())+Qr}var hr=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),kr=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');function qr(L){return hr+encodeURIComponent(L.toString())+kr}Object(tt.e)(function(L,n){var e=L.getColor(Oi.p);e&&n.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+e+"; }");var i=L.getColor(Oi.q);i&&n.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+Fr(i)+'") repeat-x bottom left; }');var d=L.getColor(Oi.N);d&&n.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+d+"; }");var c=L.getColor(Oi.O);c&&n.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+Fr(c)+'") repeat-x bottom left; }');var M=L.getColor(Oi.G);M&&n.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+M+"; }");var ge=L.getColor(Oi.H);ge&&n.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+Fr(ge)+'") repeat-x bottom left; }');var le=L.getColor(Oi.y);le&&n.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+le+"; }");var He=L.getColor(Oi.z);He&&n.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+qr(He)+'") no-repeat bottom left; }');var st=L.getColor(tn.n);st&&n.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+st.rgba.a+"; }");var ht=L.getColor(tn.m);ht&&n.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+ht+"; }");var y=L.getColor(Oi.x)||"inherit";n.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+y+"}")})},E6FT:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return r.e(227).then(r.bind(null,"whva"))}})},EAR2:function(wt,P,r){},ECuw:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return r.e(236).then(r.bind(null,"r5mX"))}})},"Eb/l":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return r.e(224).then(r.bind(null,"t0vp"))}})},EpLq:function(wt,P,r){"use strict";r.d(P,"a",function(){return F});var I=!1,oe=null;function ne(U){if(!U.parent||U.parent===U)return null;try{var j=U.location,G=U.parent.location;if(j.protocol!==G.protocol||j.hostname!==G.hostname||j.port!==G.port)return I=!0,null}catch(R){return I=!0,null}return U.parent}function N(U,j){for(var G=U.document.getElementsByTagName("iframe"),R,E=0,x=G.length;E<x;E++)if(R=G[E],R.contentWindow===j)return R;return null}var F=function(){function U(){}return U.getSameOriginWindowChain=function(){if(!oe){oe=[];var j=window,G;do G=ne(j),G?oe.push({window:j,iframeElement:N(G,j)}):oe.push({window:j,iframeElement:null}),j=G;while(j)}return oe.slice(0)},U.hasDifferentOriginAncestor=function(){return oe||this.getSameOriginWindowChain(),I},U.getPositionOfChildWindowRelativeToAncestorWindow=function(j,G){if(!G||j===G)return{top:0,left:0};for(var R=0,E=0,x=this.getSameOriginWindowChain(),K=0,D=x;K<D.length;K++){var A=D[K];if(A.window===G)break;if(!A.iframeElement)break;var te=A.iframeElement.getBoundingClientRect();R+=te.top,E+=te.left}return{top:R,left:E}},U}()},"Ez++":function(wt,P,r){},F5bH:function(wt,P,r){"use strict";r.d(P,"a",function(){return N});var I=r("V0RK"),oe=r("w9Cd"),ne=function(){var F=function(j,G){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,E){R.__proto__=E}||function(R,E){for(var x in E)E.hasOwnProperty(x)&&(R[x]=E[x])},F(j,G)};return function(U,j){F(U,j);function G(){this.constructor=U}U.prototype=j===null?Object.create(j):(G.prototype=j.prototype,new G)}}(),N=function(F){ne(U,F);function U(j,G,R,E){var x=F.call(this,j,G,R,E)||this;return x.selectionStartLineNumber=j,x.selectionStartColumn=G,x.positionLineNumber=R,x.positionColumn=E,x}return U.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},U.prototype.equalsSelection=function(j){return U.selectionsEqual(this,j)},U.selectionsEqual=function(j,G){return j.selectionStartLineNumber===G.selectionStartLineNumber&&j.selectionStartColumn===G.selectionStartColumn&&j.positionLineNumber===G.positionLineNumber&&j.positionColumn===G.positionColumn},U.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},U.prototype.setEndPosition=function(j,G){return this.getDirection()===0?new U(this.startLineNumber,this.startColumn,j,G):new U(j,G,this.startLineNumber,this.startColumn)},U.prototype.getPosition=function(){return new I.a(this.positionLineNumber,this.positionColumn)},U.prototype.setStartPosition=function(j,G){return this.getDirection()===0?new U(j,G,this.endLineNumber,this.endColumn):new U(this.endLineNumber,this.endColumn,j,G)},U.fromPositions=function(j,G){return G===void 0&&(G=j),new U(j.lineNumber,j.column,G.lineNumber,G.column)},U.liftSelection=function(j){return new U(j.selectionStartLineNumber,j.selectionStartColumn,j.positionLineNumber,j.positionColumn)},U.selectionsArrEqual=function(j,G){if(j&&!G||!j&&G)return!1;if(!j&&!G)return!0;if(j.length!==G.length)return!1;for(var R=0,E=j.length;R<E;R++)if(!this.selectionsEqual(j[R],G[R]))return!1;return!0},U.isISelection=function(j){return j&&typeof j.selectionStartLineNumber=="number"&&typeof j.selectionStartColumn=="number"&&typeof j.positionLineNumber=="number"&&typeof j.positionColumn=="number"},U.createWithDirection=function(j,G,R,E,x){return x===0?new U(j,G,R,E):new U(R,E,j,G)},U}(oe.a)},F5fd:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return r.e(205).then(r.bind(null,"bzgp"))}})},FCoH:function(wt,P,r){"use strict";r.d(P,"a",function(){return fe});var I=r("fF8p"),oe=r("mmaD"),ne=r("QqjT"),N=r("ZZiL"),F=r("PQix"),U;(function(ie){"use strict";var J={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:k,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:k,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:k,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};J._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,J._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,J.def=Ze(J.def).replace("label",J._label).replace("title",J._title).getRegex(),J.bullet=/(?:[*+-]|\d{1,9}\.)/,J.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,J.item=Ze(J.item,"gm").replace(/bull/g,J.bullet).getRegex(),J.list=Ze(J.list).replace(/bull/g,J.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+J.def.source+")").getRegex(),J._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",J._comment=/<!--(?!-?>)[\s\S]*?-->/,J.html=Ze(J.html,"i").replace("comment",J._comment).replace("tag",J._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),J.paragraph=Ze(J.paragraph).replace("hr",J.hr).replace("heading",J.heading).replace("lheading",J.lheading).replace("tag",J._tag).getRegex(),J.blockquote=Ze(J.blockquote).replace("paragraph",J.paragraph).getRegex(),J.normal=ee({},J),J.gfm=ee({},J.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),J.gfm.paragraph=Ze(J.paragraph).replace("(?!","(?!"+J.gfm.fences.source.replace("\\1","\\2")+"|"+J.list.source.replace("\\1","\\3")+"|").getRegex(),J.tables=ee({},J.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),J.pedantic=ee({},J.normal,{html:Ze(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",J._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/});function me(pe){this.tokens=[],this.tokens.links=Object.create(null),this.options=pe||Ie.defaults,this.rules=J.normal,this.options.pedantic?this.rules=J.pedantic:this.options.gfm&&(this.options.tables?this.rules=J.tables:this.rules=J.gfm)}me.rules=J,me.lex=function(pe,nt){var Et=new me(nt);return Et.lex(pe)},me.prototype.lex=function(pe){return pe=pe.replace(/\r\n|\r/g,`
|
|
`).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,`
|
|
`),this.token(pe,!0)},me.prototype.token=function(pe,nt){pe=pe.replace(/^ +$/gm,"");for(var Et,Rt,Tt,Ht,Gt,rn,Ln,yn,Tn,Ft,pt,gt,Dt,Lt,Vt,Qt;pe;){if((Tt=this.rules.newline.exec(pe))&&(pe=pe.substring(Tt[0].length),Tt[0].length>1&&this.tokens.push({type:"space"})),Tt=this.rules.code.exec(pe)){pe=pe.substring(Tt[0].length),Tt=Tt[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?Tt:ve(Tt,`
|
|
`)});continue}if(Tt=this.rules.fences.exec(pe)){pe=pe.substring(Tt[0].length),this.tokens.push({type:"code",lang:Tt[2]?Tt[2].trim():Tt[2],text:Tt[3]||""});continue}if(Tt=this.rules.heading.exec(pe)){pe=pe.substring(Tt[0].length),this.tokens.push({type:"heading",depth:Tt[1].length,text:Tt[2]});continue}if((Tt=this.rules.nptable.exec(pe))&&(rn={type:"table",header:Pe(Tt[1].replace(/^ *| *\| *$/g,"")),align:Tt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Tt[3]?Tt[3].replace(/\n$/,"").split(`
|
|
`):[]},rn.header.length===rn.align.length)){for(pe=pe.substring(Tt[0].length),pt=0;pt<rn.align.length;pt++)/^ *-+: *$/.test(rn.align[pt])?rn.align[pt]="right":/^ *:-+: *$/.test(rn.align[pt])?rn.align[pt]="center":/^ *:-+ *$/.test(rn.align[pt])?rn.align[pt]="left":rn.align[pt]=null;for(pt=0;pt<rn.cells.length;pt++)rn.cells[pt]=Pe(rn.cells[pt],rn.header.length);this.tokens.push(rn);continue}if(Tt=this.rules.hr.exec(pe)){pe=pe.substring(Tt[0].length),this.tokens.push({type:"hr"});continue}if(Tt=this.rules.blockquote.exec(pe)){pe=pe.substring(Tt[0].length),this.tokens.push({type:"blockquote_start"}),Tt=Tt[0].replace(/^ *> ?/gm,""),this.token(Tt,nt),this.tokens.push({type:"blockquote_end"});continue}if(Tt=this.rules.list.exec(pe)){for(pe=pe.substring(Tt[0].length),Ht=Tt[2],Lt=Ht.length>1,Ln={type:"list_start",ordered:Lt,start:Lt?+Ht:"",loose:!1},this.tokens.push(Ln),Tt=Tt[0].match(this.rules.item),yn=[],Et=!1,Dt=Tt.length,pt=0;pt<Dt;pt++)rn=Tt[pt],Ft=rn.length,rn=rn.replace(/^ *([*+-]|\d+\.) */,""),~rn.indexOf(`
|
|
`)&&(Ft-=rn.length,rn=this.options.pedantic?rn.replace(/^ {1,4}/gm,""):rn.replace(new RegExp("^ {1,"+Ft+"}","gm"),"")),pt!==Dt-1&&(Gt=J.bullet.exec(Tt[pt+1])[0],(Ht.length>1?Gt.length===1:Gt.length>1||this.options.smartLists&&Gt!==Ht)&&(pe=Tt.slice(pt+1).join(`
|
|
`)+pe,pt=Dt-1)),Rt=Et||/\n\n(?!\s*$)/.test(rn),pt!==Dt-1&&(Et=rn.charAt(rn.length-1)===`
|
|
`,Rt||(Rt=Et)),Rt&&(Ln.loose=!0),Vt=/^\[[ xX]\] /.test(rn),Qt=void 0,Vt&&(Qt=rn[1]!==" ",rn=rn.replace(/^\[[ xX]\] +/,"")),Tn={type:"list_item_start",task:Vt,checked:Qt,loose:Rt},yn.push(Tn),this.tokens.push(Tn),this.token(rn,!1),this.tokens.push({type:"list_item_end"});if(Ln.loose)for(Dt=yn.length,pt=0;pt<Dt;pt++)yn[pt].loose=!0;this.tokens.push({type:"list_end"});continue}if(Tt=this.rules.html.exec(pe)){pe=pe.substring(Tt[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(Tt[1]==="pre"||Tt[1]==="script"||Tt[1]==="style"),text:Tt[0]});continue}if(nt&&(Tt=this.rules.def.exec(pe))){pe=pe.substring(Tt[0].length),Tt[3]&&(Tt[3]=Tt[3].substring(1,Tt[3].length-1)),gt=Tt[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[gt]||(this.tokens.links[gt]={href:Tt[2],title:Tt[3]});continue}if((Tt=this.rules.table.exec(pe))&&(rn={type:"table",header:Pe(Tt[1].replace(/^ *| *\| *$/g,"")),align:Tt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Tt[3]?Tt[3].replace(/\n$/,"").split(`
|
|
`):[]},rn.header.length===rn.align.length)){for(pe=pe.substring(Tt[0].length),pt=0;pt<rn.align.length;pt++)/^ *-+: *$/.test(rn.align[pt])?rn.align[pt]="right":/^ *:-+: *$/.test(rn.align[pt])?rn.align[pt]="center":/^ *:-+ *$/.test(rn.align[pt])?rn.align[pt]="left":rn.align[pt]=null;for(pt=0;pt<rn.cells.length;pt++)rn.cells[pt]=Pe(rn.cells[pt].replace(/^ *\| *| *\| *$/g,""),rn.header.length);this.tokens.push(rn);continue}if(Tt=this.rules.lheading.exec(pe)){pe=pe.substring(Tt[0].length),this.tokens.push({type:"heading",depth:Tt[2]==="="?1:2,text:Tt[1]});continue}if(nt&&(Tt=this.rules.paragraph.exec(pe))){pe=pe.substring(Tt[0].length),this.tokens.push({type:"paragraph",text:Tt[1].charAt(Tt[1].length-1)===`
|
|
`?Tt[1].slice(0,-1):Tt[1]});continue}if(Tt=this.rules.text.exec(pe)){pe=pe.substring(Tt[0].length),this.tokens.push({type:"text",text:Tt[0]});continue}if(pe)throw new Error("Infinite loop on byte: "+pe.charCodeAt(0))}return this.tokens};var ye={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:k,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:k,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};ye._punctuation=`!"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~`,ye.em=Ze(ye.em).replace(/punctuation/g,ye._punctuation).getRegex(),ye._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ye._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ye._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,ye.autolink=Ze(ye.autolink).replace("scheme",ye._scheme).replace("email",ye._email).getRegex(),ye._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ye.tag=Ze(ye.tag).replace("comment",J._comment).replace("attribute",ye._attribute).getRegex(),ye._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,ye._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,ye._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ye.link=Ze(ye.link).replace("label",ye._label).replace("href",ye._href).replace("title",ye._title).getRegex(),ye.reflink=Ze(ye.reflink).replace("label",ye._label).getRegex(),ye.normal=ee({},ye),ye.pedantic=ee({},ye.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:Ze(/^!?\[(label)\]\((.*?)\)/).replace("label",ye._label).getRegex(),reflink:Ze(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ye._label).getRegex()}),ye.gfm=ee({},ye.normal,{escape:Ze(ye.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),ye.gfm.url=Ze(ye.gfm.url,"i").replace("email",ye.gfm._extended_email).getRegex(),ye.breaks=ee({},ye.gfm,{br:Ze(ye.br).replace("{2,}","*").getRegex(),text:Ze(ye.gfm.text).replace(/\{2,\}/g,"*").getRegex()});function ze(pe,nt){if(this.options=nt||Ie.defaults,this.links=pe,this.rules=ye.normal,this.renderer=this.options.renderer||new tt,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=ye.pedantic:this.options.gfm&&(this.options.breaks?this.rules=ye.breaks:this.rules=ye.gfm)}ze.rules=ye,ze.output=function(pe,nt,Et){var Rt=new ze(nt,Et);return Rt.output(pe)},ze.prototype.output=function(pe){for(var nt="",Et,Rt,Tt,Ht,Gt,rn;pe;){if(Gt=this.rules.escape.exec(pe)){pe=pe.substring(Gt[0].length),nt+=Ke(Gt[1]);continue}if(Gt=this.rules.tag.exec(pe)){!this.inLink&&/^<a /i.test(Gt[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(Gt[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Gt[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Gt[0])&&(this.inRawBlock=!1),pe=pe.substring(Gt[0].length),nt+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Gt[0]):Ke(Gt[0]):Gt[0];continue}if(Gt=this.rules.link.exec(pe)){var Ln=Te(Gt[2],"()");if(Ln>-1){var yn=Gt[0].length-(Gt[2].length-Ln)-(Gt[3]||"").length;Gt[2]=Gt[2].substring(0,Ln),Gt[0]=Gt[0].substring(0,yn).trim(),Gt[3]=""}pe=pe.substring(Gt[0].length),this.inLink=!0,Tt=Gt[2],this.options.pedantic?(Et=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Tt),Et?(Tt=Et[1],Ht=Et[3]):Ht=""):Ht=Gt[3]?Gt[3].slice(1,-1):"",Tt=Tt.trim().replace(/^<([\s\S]*)>$/,"$1"),nt+=this.outputLink(Gt,{href:ze.escapes(Tt),title:ze.escapes(Ht)}),this.inLink=!1;continue}if((Gt=this.rules.reflink.exec(pe))||(Gt=this.rules.nolink.exec(pe))){if(pe=pe.substring(Gt[0].length),Et=(Gt[2]||Gt[1]).replace(/\s+/g," "),Et=this.links[Et.toLowerCase()],!Et||!Et.href){nt+=Gt[0].charAt(0),pe=Gt[0].substring(1)+pe;continue}this.inLink=!0,nt+=this.outputLink(Gt,Et),this.inLink=!1;continue}if(Gt=this.rules.strong.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.strong(this.output(Gt[4]||Gt[3]||Gt[2]||Gt[1]));continue}if(Gt=this.rules.em.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.em(this.output(Gt[6]||Gt[5]||Gt[4]||Gt[3]||Gt[2]||Gt[1]));continue}if(Gt=this.rules.code.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.codespan(Ke(Gt[2].trim(),!0));continue}if(Gt=this.rules.br.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.br();continue}if(Gt=this.rules.del.exec(pe)){pe=pe.substring(Gt[0].length),nt+=this.renderer.del(this.output(Gt[1]));continue}if(Gt=this.rules.autolink.exec(pe)){pe=pe.substring(Gt[0].length),Gt[2]==="@"?(Rt=Ke(this.mangle(Gt[1])),Tt="mailto:"+Rt):(Rt=Ke(Gt[1]),Tt=Rt),nt+=this.renderer.link(Tt,null,Rt);continue}if(!this.inLink&&(Gt=this.rules.url.exec(pe))){if(Gt[2]==="@")Rt=Ke(Gt[0]),Tt="mailto:"+Rt;else{do rn=Gt[0],Gt[0]=this.rules._backpedal.exec(Gt[0])[0];while(rn!==Gt[0]);Rt=Ke(Gt[0]),Gt[1]==="www."?Tt="http://"+Rt:Tt=Rt}pe=pe.substring(Gt[0].length),nt+=this.renderer.link(Tt,null,Rt);continue}if(Gt=this.rules.text.exec(pe)){pe=pe.substring(Gt[0].length),this.inRawBlock?nt+=this.renderer.text(Gt[0]):nt+=this.renderer.text(Ke(this.smartypants(Gt[0])));continue}if(pe)throw new Error("Infinite loop on byte: "+pe.charCodeAt(0))}return nt},ze.escapes=function(pe){return pe&&pe.replace(ze.rules._escapes,"$1")},ze.prototype.outputLink=function(pe,nt){var Et=nt.href,Rt=nt.title?Ke(nt.title):null;return pe[0].charAt(0)!=="!"?this.renderer.link(Et,Rt,this.output(pe[1])):this.renderer.image(Et,Rt,Ke(pe[1]))},ze.prototype.smartypants=function(pe){return this.options.smartypants?pe.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026"):pe},ze.prototype.mangle=function(pe){if(!this.options.mangle)return pe;for(var nt="",Et=pe.length,Rt=0,Tt;Rt<Et;Rt++)Tt=pe.charCodeAt(Rt),Math.random()>.5&&(Tt="x"+Tt.toString(16)),nt+="&#"+Tt+";";return nt};function tt(pe){this.options=pe||Ie.defaults}tt.prototype.code=function(pe,nt,Et){var Rt=(nt||"").match(/\S*/)[0];if(this.options.highlight){var Tt=this.options.highlight(pe,Rt);Tt!=null&&Tt!==pe&&(Et=!0,pe=Tt)}return Rt?'<pre><code class="'+this.options.langPrefix+Ke(Rt,!0)+'">'+(Et?pe:Ke(pe,!0))+`</code></pre>
|
|
`:"<pre><code>"+(Et?pe:Ke(pe,!0))+"</code></pre>"},tt.prototype.blockquote=function(pe){return`<blockquote>
|
|
`+pe+`</blockquote>
|
|
`},tt.prototype.html=function(pe){return pe},tt.prototype.heading=function(pe,nt,Et,Rt){return this.options.headerIds?"<h"+nt+' id="'+this.options.headerPrefix+Rt.slug(Et)+'">'+pe+"</h"+nt+`>
|
|
`:"<h"+nt+">"+pe+"</h"+nt+`>
|
|
`},tt.prototype.hr=function(){return this.options.xhtml?`<hr/>
|
|
`:`<hr>
|
|
`},tt.prototype.list=function(pe,nt,Et){var Rt=nt?"ol":"ul",Tt=nt&&Et!==1?' start="'+Et+'"':"";return"<"+Rt+Tt+`>
|
|
`+pe+"</"+Rt+`>
|
|
`},tt.prototype.listitem=function(pe){return"<li>"+pe+`</li>
|
|
`},tt.prototype.checkbox=function(pe){return"<input "+(pe?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},tt.prototype.paragraph=function(pe){return"<p>"+pe+`</p>
|
|
`},tt.prototype.table=function(pe,nt){return nt&&(nt="<tbody>"+nt+"</tbody>"),`<table>
|
|
<thead>
|
|
`+pe+`</thead>
|
|
`+nt+`</table>
|
|
`},tt.prototype.tablerow=function(pe){return`<tr>
|
|
`+pe+`</tr>
|
|
`},tt.prototype.tablecell=function(pe,nt){var Et=nt.header?"th":"td",Rt=nt.align?"<"+Et+' align="'+nt.align+'">':"<"+Et+">";return Rt+pe+"</"+Et+`>
|
|
`},tt.prototype.strong=function(pe){return"<strong>"+pe+"</strong>"},tt.prototype.em=function(pe){return"<em>"+pe+"</em>"},tt.prototype.codespan=function(pe){return"<code>"+pe+"</code>"},tt.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},tt.prototype.del=function(pe){return"<del>"+pe+"</del>"},tt.prototype.link=function(pe,nt,Et){if(pe=Ye(this.options.sanitize,this.options.baseUrl,pe),pe===null)return Et;var Rt='<a href="'+Ke(pe)+'"';return nt&&(Rt+=' title="'+nt+'"'),Rt+=">"+Et+"</a>",Rt},tt.prototype.image=function(pe,nt,Et){if(pe=Ye(this.options.sanitize,this.options.baseUrl,pe),pe===null)return Et;var Rt='<img src="'+pe+'" alt="'+Et+'"';return nt&&(Rt+=' title="'+nt+'"'),Rt+=this.options.xhtml?"/>":">",Rt},tt.prototype.text=function(pe){return pe};function _t(){}_t.prototype.strong=_t.prototype.em=_t.prototype.codespan=_t.prototype.del=_t.prototype.text=function(pe){return pe},_t.prototype.link=_t.prototype.image=function(pe,nt,Et){return""+Et},_t.prototype.br=function(){return""};function Pt(pe){this.tokens=[],this.token=null,this.options=pe||Ie.defaults,this.options.renderer=this.options.renderer||new tt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Xt}Pt.parse=function(pe,nt){var Et=new Pt(nt);return Et.parse(pe)},Pt.prototype.parse=function(pe){this.inline=new ze(pe.links,this.options),this.inlineText=new ze(pe.links,ee({},this.options,{renderer:new _t})),this.tokens=pe.reverse();for(var nt="";this.next();)nt+=this.tok();return nt},Pt.prototype.next=function(){return this.token=this.tokens.pop()},Pt.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},Pt.prototype.parseText=function(){for(var pe=this.token.text;this.peek().type==="text";)pe+=`
|
|
`+this.next().text;return this.inline.output(pe)},Pt.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,Xe(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var pe="",nt="",Et,Rt,Tt,Ht;for(Tt="",Et=0;Et<this.token.header.length;Et++)Tt+=this.renderer.tablecell(this.inline.output(this.token.header[Et]),{header:!0,align:this.token.align[Et]});for(pe+=this.renderer.tablerow(Tt),Et=0;Et<this.token.cells.length;Et++){for(Rt=this.token.cells[Et],Tt="",Ht=0;Ht<Rt.length;Ht++)Tt+=this.renderer.tablecell(this.inline.output(Rt[Ht]),{header:!1,align:this.token.align[Ht]});nt+=this.renderer.tablerow(Tt)}return this.renderer.table(pe,nt)}case"blockquote_start":{for(nt="";this.next().type!=="blockquote_end";)nt+=this.tok();return this.renderer.blockquote(nt)}case"list_start":{nt="";for(var Gt=this.token.ordered,rn=this.token.start;this.next().type!=="list_end";)nt+=this.tok();return this.renderer.list(nt,Gt,rn)}case"list_item_start":{nt="";var Ln=this.token.loose,yn=this.token.checked,Tn=this.token.task;for(this.token.task&&(nt+=this.renderer.checkbox(yn));this.next().type!=="list_item_end";)nt+=!Ln&&this.token.type==="text"?this.parseText():this.tok();return this.renderer.listitem(nt,Tn,yn)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{var Ft='Token with "'+this.token.type+'" type was not found.';if(this.options.silent)console.log(Ft);else throw new Error(Ft)}}};function Xt(){this.seen={}}Xt.prototype.slug=function(pe){var nt=pe.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(nt)){var Et=nt;do this.seen[Et]++,nt=Et+"-"+this.seen[Et];while(this.seen.hasOwnProperty(nt))}return this.seen[nt]=0,nt};function Ke(pe,nt){if(nt){if(Ke.escapeTest.test(pe))return pe.replace(Ke.escapeReplace,function(Et){return Ke.replacements[Et]})}else if(Ke.escapeTestNoEncode.test(pe))return pe.replace(Ke.escapeReplaceNoEncode,function(Et){return Ke.replacements[Et]});return pe}Ke.escapeTest=/[&<>"']/,Ke.escapeReplace=/[&<>"']/g,Ke.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},Ke.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,Ke.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function Xe(pe){return pe.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(nt,Et){return Et=Et.toLowerCase(),Et==="colon"?":":Et.charAt(0)==="#"?Et.charAt(1)==="x"?String.fromCharCode(parseInt(Et.substring(2),16)):String.fromCharCode(+Et.substring(1)):""})}function Ze(pe,nt){return pe=pe.source||pe,nt=nt||"",{replace:function(Rt,Tt){return Tt=Tt.source||Tt,Tt=Tt.replace(/(^|[^\[])\^/g,"$1"),pe=pe.replace(Rt,Tt),this},getRegex:function(){return new RegExp(pe,nt)}}}function Ye(pe,nt,Et){if(pe){try{var Rt=decodeURIComponent(Xe(Et)).replace(/[^\w:]/g,"").toLowerCase()}catch(Tt){return null}if(Rt.indexOf("javascript:")===0||Rt.indexOf("vbscript:")===0||Rt.indexOf("data:")===0)return null}nt&&!we.test(Et)&&(Et=ke(nt,Et));try{Et=encodeURI(Et).replace(/%25/g,"%")}catch(Tt){return null}return Et}function ke(pe,nt){return $e[" "+pe]||(/^[^:]+:\/*[^/]*$/.test(pe)?$e[" "+pe]=pe+"/":$e[" "+pe]=ve(pe,"/",!0)),pe=$e[" "+pe],nt.slice(0,2)==="//"?pe.replace(/:[\s\S]*/,":")+nt:nt.charAt(0)==="/"?pe.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+nt:pe+nt}var $e={},we=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function k(){}k.exec=k;function ee(pe){for(var nt=1,Et,Rt;nt<arguments.length;nt++){Et=arguments[nt];for(Rt in Et)Object.prototype.hasOwnProperty.call(Et,Rt)&&(pe[Rt]=Et[Rt])}return pe}function Pe(pe,nt){var Et=pe.replace(/\|/g,function(Ht,Gt,rn){for(var Ln=!1,yn=Gt;--yn>=0&&rn[yn]==="\\";)Ln=!Ln;return Ln?"|":" |"}),Rt=Et.split(/ \|/),Tt=0;if(Rt.length>nt)Rt.splice(nt);else for(;Rt.length<nt;)Rt.push("");for(;Tt<Rt.length;Tt++)Rt[Tt]=Rt[Tt].trim().replace(/\\\|/g,"|");return Rt}function ve(pe,nt,Et){if(pe.length===0)return"";for(var Rt=0;Rt<pe.length;){var Tt=pe.charAt(pe.length-Rt-1);if(Tt===nt&&!Et)Rt++;else if(Tt!==nt&&Et)Rt++;else break}return pe.substr(0,pe.length-Rt)}function Te(pe,nt){if(pe.indexOf(nt[1])===-1)return-1;for(var Et=0,Rt=0;Rt<pe.length;Rt++)if(pe[Rt]==="\\")Rt++;else if(pe[Rt]===nt[0])Et++;else if(pe[Rt]===nt[1]&&(Et--,Et<0))return Rt;return-1}function Ie(pe,nt,Et){if(typeof pe=="undefined"||pe===null)throw new Error("marked(): input parameter is undefined or null");if(typeof pe!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(pe)+", string expected");if(Et||typeof nt=="function"){Et||(Et=nt,nt=null),nt=ee({},Ie.defaults,nt||{});var Rt=nt.highlight,Tt,Ht,Gt=0;try{Tt=me.lex(pe,nt)}catch(Ln){return Et(Ln)}Ht=Tt.length;var rn=function(yn){if(yn)return nt.highlight=Rt,Et(yn);var Tn;try{Tn=Pt.parse(Tt,nt)}catch(Ft){yn=Ft}return nt.highlight=Rt,yn?Et(yn):Et(null,Tn)};if(!Rt||Rt.length<3)return rn();if(delete nt.highlight,!Ht)return rn();for(;Gt<Tt.length;Gt++)(function(Ln){return Ln.type!=="code"?--Ht||rn():Rt(Ln.text,Ln.lang,function(yn,Tn){if(yn)return rn(yn);if(Tn==null||Tn===Ln.text)return--Ht||rn();Ln.text=Tn,Ln.escaped=!0,--Ht||rn()})})(Tt[Gt]);return}try{return nt&&(nt=ee({},Ie.defaults,nt)),Pt.parse(me.lex(pe,nt),nt)}catch(Ln){if(Ln.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,(nt||Ie.defaults).silent)return"<p>An error occurred:</p><pre>"+Ke(Ln.message+"",!0)+"</pre>";throw Ln}}Ie.options=Ie.setOptions=function(pe){return ee(Ie.defaults,pe),Ie},Ie.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new tt,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},Ie.defaults=Ie.getDefaults(),Ie.Parser=Pt,Ie.parser=Pt.parse,Ie.Renderer=tt,Ie.TextRenderer=_t,Ie.Lexer=me,Ie.lexer=me.lex,Ie.InlineLexer=ze,Ie.inlineLexer=ze.output,Ie.Slugger=Xt,Ie.parse=Ie,U=Ie}).call(void 0);var j=U,G=U.Parser,R=U.parser,E=U.Renderer,x=U.TextRenderer,K=U.Lexer,D=U.lexer,A=U.InlineLexer,te=U.inlineLexer,z=U.parse,_,_,f;(function(){function ie(J,me,ye){function ze(Pt,Xt){if(!me[Pt]){if(!J[Pt]){var Ke=typeof _=="function"&&_;if(!Xt&&Ke)return _(Pt,!0);if(tt)return tt(Pt,!0);var Xe=new Error("Cannot find module '"+Pt+"'");throw Xe.code="MODULE_NOT_FOUND",Xe}var Ze=me[Pt]={exports:{}};J[Pt][0].call(Ze.exports,function(Ye){var ke=J[Pt][1][Ye];return ze(ke||Ye)},Ze,Ze.exports,ie,J,me,ye)}return me[Pt].exports}for(var tt=typeof _=="function"&&_,_t=0;_t<ye.length;_t++)ze(ye[_t]);return ze}return ie})()({1:[function(ie,J,me){"use strict";var ye=ie("./toMap"),ze=["background","base","cite","href","longdesc","src","usemap"];J.exports={uris:ye(ze)}},{"./toMap":10}],2:[function(ie,J,me){"use strict";var ye={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null};J.exports=ye},{}],3:[function(ie,J,me){"use strict";var ye=ie("./toMap"),ze=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"];J.exports={voids:ye(ze)}},{"./toMap":10}],4:[function(ie,J,me){"use strict";var ye=ie("he"),ze=ie("assignment"),tt=ie("./parser"),_t=ie("./sanitizer"),Pt=ie("./defaults");function Xt(Ke,Xe,Ze){var Ye=[],ke=Ze===!0?Xe:ze({},Pt,Xe),$e=_t(Ye,ke);return tt(Ke,$e),Ye.join("")}Xt.defaults=Pt,J.exports=Xt,f=Xt},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(ie,J,me){"use strict";J.exports=function(ze){return typeof ze=="string"?ze.toLowerCase():ze}},{}],6:[function(ie,J,me){"use strict";function ye(ze){for(var tt=Array.prototype.slice.call(arguments,1),_t,Pt;tt.length;){_t=tt.shift();for(Pt in _t)_t.hasOwnProperty(Pt)&&(Object.prototype.toString.call(ze[Pt])==="[object Object]"?ze[Pt]=ye(ze[Pt],_t[Pt]):ze[Pt]=_t[Pt])}return ze}J.exports=ye},{}],7:[function(ie,J,me){"use strict";var ye=ie("he"),ze=ie("./lowercase"),tt=ie("./attributes"),_t=ie("./elements"),Pt=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,Xt=/^<\s*\/\s*([\w:-]+)[^>]*>/,Ke=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,Xe=/^</,Ze=/^<\s*\//;function Ye(){var $e=[];return $e.lastItem=function(){return $e[$e.length-1]},$e}function ke($e,we){for(var k=Ye(),ee=$e,Pe;$e;)ve();Rt();function ve(){Pe=!0,Te();var Tt=$e===ee;ee=$e,Tt&&($e="")}function Te(){$e.substr(0,4)==="<!--"?pe():Ze.test($e)?Ie(Xt,Rt):Xe.test($e)&&Ie(Pt,Et),nt()}function Ie(Tt,Ht){var Gt=$e.match(Tt);Gt&&($e=$e.substring(Gt[0].length),Gt[0].replace(Tt,Ht),Pe=!1)}function pe(){var Tt=$e.indexOf("-->");Tt>=0&&(we.comment&&we.comment($e.substring(4,Tt)),$e=$e.substring(Tt+3),Pe=!1)}function nt(){if(!Pe)return;var Tt,Ht=$e.indexOf("<");Ht>=0?(Tt=$e.substring(0,Ht),$e=$e.substring(Ht)):(Tt=$e,$e=""),we.chars&&we.chars(Tt)}function Et(Tt,Ht,Gt,rn){var Ln={},yn=ze(Ht),Tn=_t.voids[yn]||!!rn;Gt.replace(Ke,Ft),Tn||k.push(yn),we.start&&we.start(yn,Ln,Tn);function Ft(pt,gt,Dt,Lt,Vt){Dt===void 0&&Lt===void 0&&Vt===void 0?Ln[gt]=void 0:Ln[gt]=ye.decode(Dt||Lt||Vt||"")}}function Rt(Tt,Ht){var Gt,rn=0,Ln=ze(Ht);if(Ln)for(rn=k.length-1;rn>=0&&!(k[rn]===Ln);rn--);if(rn>=0){for(Gt=k.length-1;Gt>=rn;Gt--)we.end&&we.end(k[Gt]);k.length=rn}}}J.exports=ke},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(ie,J,me){"use strict";var ye=ie("he"),ze=ie("./lowercase"),tt=ie("./attributes"),_t=ie("./elements");function Pt(Xt,Ke){var Xe,Ze,Ye=Ke||{};return Te(),{start:$e,end:we,chars:ee};function ke(Ie){Xt.push(Ie)}function $e(Ie,pe,nt){var Et=ze(Ie);if(Ze.ignoring){Pe(Et);return}if((Ye.allowedTags||[]).indexOf(Et)===-1){Pe(Et);return}if(Ye.filter&&!Ye.filter({tag:Et,attrs:pe})){Pe(Et);return}ke("<"),ke(Et),Object.keys(pe).forEach(Rt),ke(nt?"/>":">");function Rt(Tt){var Ht=pe[Tt],Gt=(Ye.allowedClasses||{})[Et]||[],rn=(Ye.allowedAttributes||{})[Et]||[];rn=rn.concat((Ye.allowedAttributes||{})["*"]||[]);var Ln,yn=ze(Tt);yn==="class"&&rn.indexOf(yn)===-1?(Ht=Ht.split(" ").filter(Tn).join(" ").trim(),Ln=Ht.length):Ln=rn.indexOf(yn)!==-1&&(tt.uris[yn]!==!0||k(Ht)),Ln&&(ke(" "),ke(Tt),typeof Ht=="string"&&(ke('="'),ke(ye.encode(Ht)),ke('"')));function Tn(Ft){return Gt&&Gt.indexOf(Ft)!==-1}}}function we(Ie){var pe=ze(Ie),nt=(Ye.allowedTags||[]).indexOf(pe)!==-1;nt&&Ze.ignoring===!1?(ke("</"),ke(pe),ke(">")):ve(pe)}function k(Ie){var pe=Ie[0];if(pe==="#"||pe==="/")return!0;var nt=Ie.indexOf(":");if(nt===-1)return!0;var Et=Ie.indexOf("?");if(Et!==-1&&nt>Et)return!0;var Rt=Ie.indexOf("#");if(Rt!==-1&&nt>Rt)return!0;return Ye.allowedSchemes.some(Tt);function Tt(Ht){return Ie.indexOf(Ht+":")===0}}function ee(Ie){Ze.ignoring===!1&&ke(Ye.transformText?Ye.transformText(Ie):Ie)}function Pe(Ie){if(_t.voids[Ie])return;Ze.ignoring===!1?Ze={ignoring:Ie,depth:1}:Ze.ignoring===Ie&&Ze.depth++}function ve(Ie){Ze.ignoring===Ie&&(--Ze.depth<=0&&Te())}function Te(){Ze={ignoring:!1,depth:0}}}J.exports=Pt},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(ie,J,me){"use strict";var ye={"&":"&","<":"<",">":">",'"':""","'":"'"},ze={"&":"&","<":"<",">":">",""":'"',"'":"'"},tt=/(&|<|>|"|')/g,_t=/[&<>"']/g;function Pt(Ze){return ye[Ze]}function Xt(Ze){return ze[Ze]}function Ke(Ze){return Ze==null?"":String(Ze).replace(_t,Pt)}function Xe(Ze){return Ze==null?"":String(Ze).replace(tt,Xt)}Ke.options=Xe.options={},J.exports={encode:Ke,escape:Ke,decode:Xe,unescape:Xe,version:"1.0.0-browser"}},{}],10:[function(ie,J,me){"use strict";function ye(tt){return tt.reduce(ze,{})}function ze(tt,_t){return tt[_t]=!0,tt}J.exports=ye},{}]},{},[4]);var p=f,g=r("PXWS"),m=r("mucJ"),w=r("yBOt"),B=r("zOJ8"),H=r("Ojgo"),re=r("wzUm");function he(ie,J){J===void 0&&(J={});var me=Object(oe.a)(J),ye=function(ke){var $e;try{$e=Object(g.a)(decodeURIComponent(ke))}catch(we){}return $e?($e=Object(m.b)($e,function(we){return ie.uris&&ie.uris[we]?B.a.revive(ie.uris[we]):void 0}),encodeURIComponent(JSON.stringify($e))):ke},ze=function(ke,$e){var we=ie.uris&&ie.uris[ke];if(!we)return ke;var k=B.a.revive(we);return B.a.parse(ke).toString()===k.toString()?ke:($e&&(k=I.r(k)),k.query&&(k=k.with({query:ye(k.query)})),k.toString(!0))},tt,_t=new Promise(function(Ye){return tt=Ye}),Pt=new E;Pt.image=function(Ye,ke,$e){var we,k=[],ee=[];return Ye&&(we=Object(N.d)(Ye),Ye=we.href,k=we.dimensions,Ye=ze(Ye,!0),ee.push('src="'+Ye+'"')),$e&&ee.push('alt="'+$e+'"'),ke&&ee.push('title="'+ke+'"'),k.length&&(ee=ee.concat(k)),"<img "+ee.join(" ")+">"},Pt.link=function(Ye,ke,$e){return Ye===$e&&($e=Object(N.e)($e)),Ye=ze(Ye,!1),ke=Object(N.e)(ke),Ye=Object(N.e)(Ye),!Ye||Ye.match(/^data:|javascript:/i)||Ye.match(/^command:/i)&&!ie.isTrusted||Ye.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?$e:(Ye=Ye.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),'<a href="#" data-href="'+Ye+'" title="'+(ke||Ye)+'">'+$e+"</a>")},Pt.paragraph=function(Ye){return"<p>"+(ie.supportThemeIcons?Object(re.c)(Ye):Ye)+"</p>"},J.codeBlockRenderer&&(Pt.code=function(Ye,ke){var $e=J.codeBlockRenderer(ke,Ye),we=F.b.nextId(),k=Promise.all([$e,_t]).then(function(ee){var Pe=ee[0],ve=me.querySelector('div[data-code="'+we+'"]');ve&&(ve.innerHTML=Pe)}).catch(function(ee){});return J.codeBlockRenderCallback&&k.then(J.codeBlockRenderCallback),'<div class="code" data-code="'+we+'">'+Object(w.o)(Ye)+"</div>"});var Xt=J.actionHandler;Xt&&Xt.disposeables.add(I.n(me,"click",function(Ye){var ke=Ye.target;if(ke.tagName!=="A"&&(ke=ke.parentElement,!ke||ke.tagName!=="A"))return;try{var $e=ke.dataset.href;$e&&Xt.callback($e,Ye)}catch(we){Object(ne.e)(we)}finally{Ye.preventDefault()}}));var Ke={sanitize:!0,renderer:Pt},Xe=[H.b.http,H.b.https,H.b.mailto,H.b.data,H.b.file,H.b.vscodeRemote,H.b.vscodeRemoteResource];ie.isTrusted&&Xe.push(H.b.command);var Ze=z(ie.supportThemeIcons?Object(re.b)(ie.value):ie.value,Ke);return me.innerHTML=p(Ze,{allowedSchemes:Xe,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),tt(),me}var Ee=r("mWsY"),Se=r("rvt5"),q=r("/L4v"),Z=r("PoD0"),ce=r("YK2C"),Me=r("bN5T"),Ve=r("vqGt"),_e=function(){var ie=function(me,ye){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,tt){ze.__proto__=tt}||function(ze,tt){for(var _t in tt)tt.hasOwnProperty(_t)&&(ze[_t]=tt[_t])},ie(me,ye)};return function(J,me){ie(J,me);function ye(){this.constructor=J}J.prototype=me===null?Object.create(me):(ye.prototype=me.prototype,new ye)}}(),ue=function(ie,J,me,ye){var ze=arguments.length,tt=ze<3?J:ye===null?ye=Object.getOwnPropertyDescriptor(J,me):ye,_t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")tt=Reflect.decorate(ie,J,me,ye);else for(var Pt=ie.length-1;Pt>=0;Pt--)(_t=ie[Pt])&&(tt=(ze<3?_t(tt):ze>3?_t(J,me,tt):_t(J,me))||tt);return ze>3&&tt&&Object.defineProperty(J,me,tt),tt},se=function(ie,J){return function(me,ye){J(me,ye,ie)}},fe=function(ie){_e(J,ie);function J(me,ye,ze){ze===void 0&&(ze=Ee.b);var tt=ie.call(this)||this;return tt._editor=me,tt._modeService=ye,tt._openerService=ze,tt._onDidRenderCodeBlock=tt._register(new ce.a),tt.onDidRenderCodeBlock=tt._onDidRenderCodeBlock.event,tt}return J.prototype.getOptions=function(me){var ye=this;return{codeBlockRenderer:function(tt,_t){var Pt=null;if(tt)Pt=ye._modeService.getModeIdForLanguageName(tt);else{var Xt=ye._editor.getModel();Xt&&(Pt=Xt.getLanguageIdentifier().language)}return ye._modeService.triggerMode(Pt||""),Promise.resolve(!0).then(function(Ke){var Xe=Ve.y.getPromise(Pt||"");return Xe?Xe.then(function(Ze){return Object(q.b)(_t,Ze)}):Object(q.b)(_t,void 0)}).then(function(Ke){return'<span style="font-family: '+ye._editor.getOption(34).fontFamily+'">'+Ke+"</span>"})},codeBlockRenderCallback:function(){return ye._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(tt){ye._openerService.open(tt,{fromUserGesture:!0}).catch(ne.e)},disposeables:me}}},J.prototype.render=function(me){var ye=new Me.b,ze;return me?ze=he(me,this.getOptions(ye)):ze=document.createElement("span"),{element:ze,dispose:function(){return ye.dispose()}}},J=ue([se(1,Se.a),se(2,Object(Z.d)(Ee.a))],J),J}(Me.a)},FRK7:function(wt,P,r){"use strict";r.d(P,"b",function(){return I}),r.d(P,"a",function(){return oe});function I(ne){return ne<0?0:ne>255?255:ne|0}function oe(ne){return ne<0?0:ne>4294967295?4294967295:ne|0}},FTcp:function(wt,P,r){"use strict";r.d(P,"b",function(){return ne}),r.d(P,"a",function(){return N});var I=r("PoD0"),oe=r("bBv/"),ne=Object(I.c)("accessibilityService"),N=new oe.d("accessibilityModeEnabled",!1)},FdDt:function(wt,P,r){},G6m9:function(wt,P,r){"use strict";r.d(P,"a",function(){return U});var I=typeof monaco=="undefined"?self.monaco:monaco,oe={},ne={},N=function(){function j(G){var R=this;this._languageId=G,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(E,x){R._lazyLoadPromiseResolve=E,R._lazyLoadPromiseReject=x})}return j.getOrCreate=function(G){return ne[G]||(ne[G]=new j(G)),ne[G]},j.prototype.whenLoaded=function(){return this._lazyLoadPromise},j.prototype.load=function(){var G=this;return this._loadingTriggered||(this._loadingTriggered=!0,oe[this._languageId].loader().then(function(R){return G._lazyLoadPromiseResolve(R)},function(R){return G._lazyLoadPromiseReject(R)})),this._lazyLoadPromise},j}();function F(j){return N.getOrCreate(j).load()}function U(j){var G=j.id;oe[G]=j,I.languages.register(j);var R=N.getOrCreate(G);I.languages.setMonarchTokensProvider(G,R.whenLoaded().then(function(E){return E.language})),I.languages.onLanguage(G,function(){R.load().then(function(E){I.languages.setLanguageConfiguration(G,E.conf)})})}},GFIr:function(wt,P,r){},GIAr:function(wt,P,r){"use strict";r.d(P,"a",function(){return H}),r.d(P,"b",function(){return Se});var I=r("mucJ"),oe=r("bN5T"),ne=r("3HcJ"),N=r("fF8p"),F=r("YK2C"),U=r("6zAk"),j=r("AyeG"),G=r("eAZY");function R(q,Z){for(var ce=[],Me=0,Ve=Z;Me<Ve.length;Me++){var _e=Ve[Me];if(q.start>=_e.range.end)continue;if(q.end<_e.range.start)break;var ue=G.a.intersect(q,_e.range);if(G.a.isEmpty(ue))continue;ce.push({range:ue,size:_e.size})}return ce}function E(q,Z){var ce=q.start,Me=q.end;return{start:ce+Z,end:Me+Z}}function x(q){for(var Z=[],ce=null,Me=0,Ve=q;Me<Ve.length;Me++){var _e=Ve[Me],ue=_e.range.start,se=_e.range.end,fe=_e.size;if(ce&&fe===ce.size){ce.range.end=se;continue}ce={range:{start:ue,end:se},size:fe},Z.push(ce)}return Z}function K(){for(var q=[],Z=0;Z<arguments.length;Z++)q[Z]=arguments[Z];return x(q.reduce(function(ce,Me){return ce.concat(Me)},[]))}var D=function(){function q(){this.groups=[],this._size=0}return q.prototype.splice=function(Z,ce,Me){Me===void 0&&(Me=[]);var Ve=Me.length-ce,_e=R({start:0,end:Z},this.groups),ue=R({start:Z+ce,end:Number.POSITIVE_INFINITY},this.groups).map(function(fe){return{range:E(fe.range,Ve),size:fe.size}}),se=Me.map(function(fe,ie){return{range:{start:Z+ie,end:Z+ie+1},size:fe.size}});this.groups=K(_e,se,ue),this._size=this.groups.reduce(function(fe,ie){return fe+ie.size*(ie.range.end-ie.range.start)},0)},Object.defineProperty(q.prototype,"count",{get:function(){var ce=this.groups.length;return ce?this.groups[ce-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),q.prototype.indexAt=function(Z){if(Z<0)return-1;for(var ce=0,Me=0,Ve=0,_e=this.groups;Ve<_e.length;Ve++){var ue=_e[Ve],se=ue.range.end-ue.range.start,fe=Me+se*ue.size;if(Z<fe)return ce+Math.floor((Z-Me)/ue.size);ce+=se,Me=fe}return ce},q.prototype.indexAfter=function(Z){return Math.min(this.indexAt(Z)+1,this.count)},q.prototype.positionAt=function(Z){if(Z<0)return-1;for(var ce=0,Me=0,Ve=0,_e=this.groups;Ve<_e.length;Ve++){var ue=_e[Ve],se=ue.range.end-ue.range.start,fe=Me+se;if(Z<fe)return ce+(Z-Me)*ue.size;ce+=se*ue.size,Me=fe}return-1},q}();function A(q){try{q.parentElement&&q.parentElement.removeChild(q)}catch(Z){}}var te=function(){function q(Z){this.renderers=Z,this.cache=new Map}return q.prototype.alloc=function(Z){var ce=this.getTemplateCache(Z).pop();if(!ce){var Me=Object(N.a)(".monaco-list-row"),Ve=this.getRenderer(Z),_e=Ve.renderTemplate(Me);ce={domNode:Me,templateId:Z,templateData:_e}}return ce},q.prototype.release=function(Z){if(!Z)return;this.releaseRow(Z)},q.prototype.releaseRow=function(Z){var ce=Z.domNode,Me=Z.templateId;ce&&(Object(N.O)(ce,"scrolling"),A(ce));var Ve=this.getTemplateCache(Me);Ve.push(Z)},q.prototype.getTemplateCache=function(Z){var ce=this.cache.get(Z);return ce||(ce=[],this.cache.set(Z,ce)),ce},q.prototype.dispose=function(){var Z=this;this.cache.forEach(function(ce,Me){for(var Ve=0,_e=ce;Ve<_e.length;Ve++){var ue=_e[Ve],se=Z.getRenderer(Me);se.disposeTemplate(ue.templateData),ue.domNode=null,ue.templateData=null}}),this.cache.clear()},q.prototype.getRenderer=function(Z){var ce=this.renderers.get(Z);if(!ce)throw new Error("No renderer found for "+Z);return ce},q}(),z=r("2/w6"),_=r("Inmo"),f=r("9HM1"),p=r("dE3Z"),g=r("mTMv"),m=function(q,Z,ce,Me){var Ve=arguments.length,_e=Ve<3?Z:Me===null?Me=Object.getOwnPropertyDescriptor(Z,ce):Me,ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_e=Reflect.decorate(q,Z,ce,Me);else for(var se=q.length-1;se>=0;se--)(ue=q[se])&&(_e=(Ve<3?ue(_e):Ve>3?ue(Z,ce,_e):ue(Z,ce))||_e);return Ve>3&&_e&&Object.defineProperty(Z,ce,_e),_e},w=function(){for(var q=0,Z=0,ce=arguments.length;Z<ce;Z++)q+=arguments[Z].length;for(var Me=Array(q),Ve=0,Z=0;Z<ce;Z++)for(var _e=arguments[Z],ue=0,se=_e.length;ue<se;ue++,Ve++)Me[Ve]=_e[ue];return Me},B={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(Z){return[Z]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},H=function(){function q(Z){this.elements=Z}return q.prototype.update=function(){},q.prototype.getData=function(){return this.elements},q}(),re=function(){function q(Z){this.elements=Z}return q.prototype.update=function(){},q.prototype.getData=function(){return this.elements},q}(),he=function(){function q(){this.types=[],this.files=[]}return q.prototype.update=function(Z){var ce;if(Z.types&&(ce=this.types).splice.apply(ce,w([0,this.types.length],Z.types)),Z.files){this.files.splice(0,this.files.length);for(var Me=0;Me<Z.files.length;Me++){var Ve=Z.files.item(Me);Ve&&(Ve.size||Ve.type)&&this.files.push(Ve)}}},q.prototype.getData=function(){return{types:this.types,files:this.files}},q}();function Ee(q,Z){return Array.isArray(q)&&Array.isArray(Z)?Object(_.g)(q,Z):q===Z}var Se=function(){function q(Z,ce,Me,Ve){var _e=this;if(Ve===void 0&&(Ve=B),this.virtualDelegate=ce,this.domId="list_id_"+ ++q.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new p.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=oe.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=oe.a.None,this.onDragLeaveTimeout=oe.a.None,this.disposables=new oe.b,this._onDidChangeContentHeight=new F.a,Ve.horizontalScrolling&&Ve.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new D;for(var ue=0,se=Me;ue<se.length;ue++){var fe=se[ue];this.renderers.set(fe.templateId,fe)}this.cache=this.disposables.add(new te(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",N.e(this.domNode,this.domId),this.domNode.tabIndex=0,N.X(this.domNode,"mouse-support",typeof Ve.mouseSupport=="boolean"?Ve.mouseSupport:!0),this.horizontalScrolling=Object(I.f)(Ve,function(ie){return ie.horizontalScrolling},B.horizontalScrolling),N.X(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight=typeof Ve.additionalScrollHeight=="undefined"?0:Ve.additionalScrollHeight,this.ariaProvider=Ve.ariaProvider||{getSetSize:function(J,me,ye){return ye},getPosInSet:function(J,me){return me+1}},this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.disposables.add(ne.b.addTarget(this.rowsContainer)),this.scrollableElement=this.disposables.add(new j.b(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(I.f)(Ve,function(ie){return ie.verticalScrollMode},B.verticalScrollMode),useShadows:Object(I.f)(Ve,function(ie){return ie.useShadows},B.useShadows)})),this.domNode.appendChild(this.scrollableElement.getDomNode()),Z.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(U.a)(this.rowsContainer,ne.a.Change)(this.onTouchChange,this,this.disposables),Object(U.a)(this.scrollableElement.getDomNode(),"scroll")(function(ie){return ie.target.scrollTop=0},null,this.disposables),F.b.map(Object(U.a)(this.domNode,"dragover"),function(ie){return _e.toDragEvent(ie)})(this.onDragOver,this,this.disposables),F.b.map(Object(U.a)(this.domNode,"drop"),function(ie){return _e.toDragEvent(ie)})(this.onDrop,this,this.disposables),Object(U.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(U.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(I.f)(Ve,function(ie){return ie.setRowLineHeight},B.setRowLineHeight),this.supportDynamicHeights=Object(I.f)(Ve,function(ie){return ie.supportDynamicHeights},B.supportDynamicHeights),this.dnd=Object(I.f)(Ve,function(ie){return ie.dnd},B.dnd),this.layout()}return Object.defineProperty(q.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),q.prototype.splice=function(Z,ce,Me){if(Me===void 0&&(Me=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(Z,ce,Me)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},q.prototype._splice=function(Z,ce,Me){var Ve,_e=this;Me===void 0&&(Me=[]);for(var ue=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),se={start:Z,end:Z+ce},fe=G.a.intersect(ue,se),ie=fe.start;ie<fe.end;ie++)this.removeItemFromDOM(ie);var J={start:Z+ce,end:this.items.length},me=G.a.intersect(J,ue),ye=G.a.relativeComplement(J,ue),ze=Me.map(function(Te){return{id:String(_e.itemId++),element:Te,templateId:_e.virtualDelegate.getTemplateId(Te),size:_e.virtualDelegate.getHeight(Te),width:void 0,hasDynamicHeight:!!_e.virtualDelegate.hasDynamicHeight&&_e.virtualDelegate.hasDynamicHeight(Te),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:oe.a.None}}),tt;Z===0&&ce>=this.items.length?(this.rangeMap=new D,this.rangeMap.splice(0,0,ze),this.items=ze,tt=[]):(this.rangeMap.splice(Z,ce,ze),tt=(Ve=this.items).splice.apply(Ve,w([Z,ce],ze)));for(var _t=Me.length-ce,Pt=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Xt=E(me,_t),Ke=G.a.intersect(Pt,Xt),ie=Ke.start;ie<Ke.end;ie++)this.updateItemInDOM(this.items[ie],ie);for(var Xe=G.a.relativeComplement(Xt,Pt),Ze=0,Ye=Xe;Ze<Ye.length;Ze++)for(var ke=Ye[Ze],ie=ke.start;ie<ke.end;ie++)this.removeItemFromDOM(ie);for(var $e=ye.map(function(Te){return E(Te,_t)}),we={start:Z,end:Z+Me.length},k=w([we],$e).map(function(Te){return G.a.intersect(Pt,Te)}),ee=this.getNextToLastElement(k),Pe=0,ve=k;Pe<ve.length;Pe++)for(var ke=ve[Pe],ie=ke.start;ie<ke.end;ie++)this.insertItemInDOM(ie,ee);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),tt.map(function(Te){return Te.element})},q.prototype.eventuallyUpdateScrollDimensions=function(){var Z=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=N.V(function(){Z.scrollableElement.setScrollDimensions({scrollHeight:Z.scrollHeight}),Z.updateScrollWidth(),Z.scrollableElementUpdateDisposable=null}))},q.prototype.eventuallyUpdateScrollWidth=function(){var Z=this;if(!this.horizontalScrolling)return;this.scrollableElementWidthDelayer.trigger(function(){return Z.updateScrollWidth()})},q.prototype.updateScrollWidth=function(){if(!this.horizontalScrolling)return;this.items.length===0&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var Z=0,ce=0,Me=this.items;ce<Me.length;ce++){var Ve=Me[ce];typeof Ve.width!="undefined"&&(Z=Math.max(Z,Ve.width))}this.scrollWidth=Z,this.scrollableElement.setScrollDimensions({scrollWidth:Z+10})},q.prototype.rerender=function(){if(!this.supportDynamicHeights)return;for(var Z=0,ce=this.items;Z<ce.length;Z++){var Me=ce[Z];Me.lastDynamicHeightWidth=void 0}this._rerender(this.lastRenderTop,this.lastRenderHeight)},Object.defineProperty(q.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"renderHeight",{get:function(){var ce=this.scrollableElement.getScrollDimensions();return ce.height},enumerable:!0,configurable:!0}),q.prototype.element=function(Z){return this.items[Z].element},q.prototype.domElement=function(Z){var ce=this.items[Z].row;return ce&&ce.domNode},q.prototype.elementHeight=function(Z){return this.items[Z].size},q.prototype.elementTop=function(Z){return this.rangeMap.positionAt(Z)},q.prototype.indexAt=function(Z){return this.rangeMap.indexAt(Z)},q.prototype.indexAfter=function(Z){return this.rangeMap.indexAfter(Z)},q.prototype.layout=function(Z,ce){var Me={height:typeof Z=="number"?Z:N.z(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,Me.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(Me),typeof ce!="undefined"&&(this.renderWidth=ce,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof ce=="number"?ce:N.A(this.domNode)}))},q.prototype.render=function(Z,ce,Me,Ve){for(var _e=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),ue=this.getRenderRange(Z,ce),se=G.a.relativeComplement(ue,_e),fe=G.a.relativeComplement(_e,ue),ie=this.getNextToLastElement(se),J=0,me=se;J<me.length;J++)for(var ye=me[J],ze=ye.start;ze<ye.end;ze++)this.insertItemInDOM(ze,ie);for(var tt=0,_t=fe;tt<_t.length;tt++)for(var ye=_t[tt],ze=ye.start;ze<ye.end;ze++)this.removeItemFromDOM(ze);this.rowsContainer.style.left="-"+Me+"px",this.rowsContainer.style.top="-"+Z+"px",this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(Ve,this.renderWidth)+"px"),this.lastRenderTop=Z,this.lastRenderHeight=ce},q.prototype.insertItemInDOM=function(Z,ce){var Me=this,Ve=this.items[Z];if(!Ve.row){Ve.row=this.cache.alloc(Ve.templateId);var _e=this.ariaProvider.getRole?this.ariaProvider.getRole(Ve.element):"treeitem";Ve.row.domNode.setAttribute("role",_e);var ue=this.ariaProvider.isChecked?this.ariaProvider.isChecked(Ve.element):void 0;typeof ue!="undefined"&&Ve.row.domNode.setAttribute("aria-checked",String(ue))}Ve.row.domNode.parentElement||(ce?this.rowsContainer.insertBefore(Ve.row.domNode,ce):this.rowsContainer.appendChild(Ve.row.domNode)),this.updateItemInDOM(Ve,Z);var se=this.renderers.get(Ve.templateId);if(!se)throw new Error("No renderer found for template id "+Ve.templateId);se&&se.renderElement(Ve.element,Z,Ve.row.templateData,Ve.size);var fe=this.dnd.getDragURI(Ve.element);if(Ve.dragStartDisposable.dispose(),Ve.row.domNode.draggable=!!fe,fe){var ie=Object(U.a)(Ve.row.domNode,"dragstart");Ve.dragStartDisposable=ie(function(J){return Me.onDragStart(Ve.element,fe,J)})}this.horizontalScrolling&&(this.measureItemWidth(Ve),this.eventuallyUpdateScrollWidth())},q.prototype.measureItemWidth=function(Z){if(!Z.row||!Z.row.domNode)return;Z.row.domNode.style.width=g.h?"-moz-fit-content":"fit-content",Z.width=N.A(Z.row.domNode);var ce=window.getComputedStyle(Z.row.domNode);ce.paddingLeft&&(Z.width+=parseFloat(ce.paddingLeft)),ce.paddingRight&&(Z.width+=parseFloat(ce.paddingRight)),Z.row.domNode.style.width=""},q.prototype.updateItemInDOM=function(Z,ce){Z.row.domNode.style.top=this.elementTop(ce)+"px",Z.row.domNode.style.height=Z.size+"px",this.setRowLineHeight&&(Z.row.domNode.style.lineHeight=Z.size+"px"),Z.row.domNode.setAttribute("data-index",""+ce),Z.row.domNode.setAttribute("data-last-element",ce===this.length-1?"true":"false"),Z.row.domNode.setAttribute("aria-setsize",String(this.ariaProvider.getSetSize(Z.element,ce,this.length))),Z.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(Z.element,ce))),Z.row.domNode.setAttribute("id",this.getElementDomId(ce)),N.X(Z.row.domNode,"drop-target",Z.dropTarget)},q.prototype.removeItemFromDOM=function(Z){var ce=this.items[Z];ce.dragStartDisposable.dispose();var Me=this.renderers.get(ce.templateId);Me&&Me.disposeElement&&Me.disposeElement(ce.element,Z,ce.row.templateData,ce.size),this.cache.release(ce.row),ce.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},q.prototype.getScrollTop=function(){var Z=this.scrollableElement.getScrollPosition();return Z.scrollTop},q.prototype.setScrollTop=function(Z){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:Z})},Object.defineProperty(q.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(ce){this.setScrollTop(ce)},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onMouseClick",{get:function(){var ce=this;return F.b.map(Object(U.a)(this.domNode,"click"),function(Me){return ce.toMouseEvent(Me)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onMouseDblClick",{get:function(){var ce=this;return F.b.map(Object(U.a)(this.domNode,"dblclick"),function(Me){return ce.toMouseEvent(Me)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onMouseMiddleClick",{get:function(){var ce=this;return F.b.filter(F.b.map(Object(U.a)(this.domNode,"auxclick"),function(Me){return ce.toMouseEvent(Me)}),function(Me){return Me.browserEvent.button===1})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onMouseDown",{get:function(){var ce=this;return F.b.map(Object(U.a)(this.domNode,"mousedown"),function(Me){return ce.toMouseEvent(Me)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onContextMenu",{get:function(){var ce=this;return F.b.map(Object(U.a)(this.domNode,"contextmenu"),function(Me){return ce.toMouseEvent(Me)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onTouchStart",{get:function(){var ce=this;return F.b.map(Object(U.a)(this.domNode,"touchstart"),function(Me){return ce.toTouchEvent(Me)})},enumerable:!0,configurable:!0}),Object.defineProperty(q.prototype,"onTap",{get:function(){var ce=this;return F.b.map(Object(U.a)(this.rowsContainer,ne.a.Tap),function(Me){return ce.toGestureEvent(Me)})},enumerable:!0,configurable:!0}),q.prototype.toMouseEvent=function(Z){var ce=this.getItemIndexFromEventTarget(Z.target||null),Me=typeof ce=="undefined"?void 0:this.items[ce],Ve=Me&&Me.element;return{browserEvent:Z,index:ce,element:Ve}},q.prototype.toTouchEvent=function(Z){var ce=this.getItemIndexFromEventTarget(Z.target||null),Me=typeof ce=="undefined"?void 0:this.items[ce],Ve=Me&&Me.element;return{browserEvent:Z,index:ce,element:Ve}},q.prototype.toGestureEvent=function(Z){var ce=this.getItemIndexFromEventTarget(Z.initialTarget||null),Me=typeof ce=="undefined"?void 0:this.items[ce],Ve=Me&&Me.element;return{browserEvent:Z,index:ce,element:Ve}},q.prototype.toDragEvent=function(Z){var ce=this.getItemIndexFromEventTarget(Z.target||null),Me=typeof ce=="undefined"?void 0:this.items[ce],Ve=Me&&Me.element;return{browserEvent:Z,index:ce,element:Ve}},q.prototype.onScroll=function(Z){try{this.render(Z.scrollTop,Z.height,Z.scrollLeft,Z.scrollWidth),this.supportDynamicHeights&&this._rerender(Z.scrollTop,Z.height)}catch(ce){throw console.error("Got bad scroll event:",Z),ce}},q.prototype.onTouchChange=function(Z){Z.preventDefault(),Z.stopPropagation(),this.scrollTop-=Z.translationY},q.prototype.onDragStart=function(Z,ce,Me){if(!Me.dataTransfer)return;var Ve=this.dnd.getDragElements(Z);if(Me.dataTransfer.effectAllowed="copyMove",Me.dataTransfer.setData(f.a.RESOURCES,JSON.stringify([ce])),Me.dataTransfer.setDragImage){var _e=void 0;this.dnd.getDragLabel&&(_e=this.dnd.getDragLabel(Ve,Me)),typeof _e=="undefined"&&(_e=String(Ve.length));var ue=N.a(".monaco-drag-image");ue.textContent=_e,document.body.appendChild(ue),Me.dataTransfer.setDragImage(ue,-10,-10),setTimeout(function(){return document.body.removeChild(ue)},0)}this.currentDragData=new H(Ve),f.c.CurrentDragAndDropData=new re(Ve),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,Me)},q.prototype.onDragOver=function(Z){var ce=this;if(Z.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),f.c.CurrentDragAndDropData&&f.c.CurrentDragAndDropData.getData()==="vscode-ui")return!1;if(this.setupDragAndDropScrollTopAnimation(Z.browserEvent),!Z.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(f.c.CurrentDragAndDropData)this.currentDragData=f.c.CurrentDragAndDropData;else{if(!Z.browserEvent.dataTransfer.types)return!1;this.currentDragData=new he}var Me=this.dnd.onDragOver(this.currentDragData,Z.element,Z.index,Z.browserEvent);if(this.canDrop=typeof Me=="boolean"?Me:Me.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;Z.browserEvent.dataTransfer.dropEffect=typeof Me!="boolean"&&Me.effect===0?"copy":"move";var Ve;if(typeof Me!="boolean"&&Me.feedback?Ve=Me.feedback:typeof Z.index=="undefined"?Ve=[-1]:Ve=[Z.index],Ve=Object(_.e)(Ve).filter(function(ie){return ie>=-1&&ie<ce.length}).sort(function(ie,J){return ie-J}),Ve=Ve[0]===-1?[-1]:Ve,Ee(this.currentDragFeedback,Ve))return!0;if(this.currentDragFeedback=Ve,this.currentDragFeedbackDisposable.dispose(),Ve[0]===-1)N.e(this.domNode,"drop-target"),N.e(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(oe.h)(function(){N.O(ce.domNode,"drop-target"),N.O(ce.rowsContainer,"drop-target")});else{for(var _e=0,ue=Ve;_e<ue.length;_e++){var se=ue[_e],fe=this.items[se];fe.dropTarget=!0,fe.row&&fe.row.domNode&&N.e(fe.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(oe.h)(function(){for(var ie=0,J=Ve;ie<J.length;ie++){var me=J[ie],ye=ce.items[me];ye.dropTarget=!1,ye.row&&ye.row.domNode&&N.O(ye.row.domNode,"drop-target")}})}return!0},q.prototype.onDragLeave=function(){var Z=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(p.g)(function(){return Z.clearDragOverFeedback()},100)},q.prototype.onDrop=function(Z){if(!this.canDrop)return;var ce=this.currentDragData;if(this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,f.c.CurrentDragAndDropData=void 0,!ce||!Z.browserEvent.dataTransfer)return;Z.browserEvent.preventDefault(),ce.update(Z.browserEvent.dataTransfer),this.dnd.drop(ce,Z.element,Z.index,Z.browserEvent)},q.prototype.onDragEnd=function(Z){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,f.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(Z)},q.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=oe.a.None},q.prototype.setupDragAndDropScrollTopAnimation=function(Z){var ce=this;if(!this.dragOverAnimationDisposable){var Me=N.E(this.domNode).top;this.dragOverAnimationDisposable=N.o(this.animateDragAndDropScrollTop.bind(this,Me))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(p.g)(function(){ce.dragOverAnimationDisposable&&(ce.dragOverAnimationDisposable.dispose(),ce.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=Z.pageY},q.prototype.animateDragAndDropScrollTop=function(Z){if(this.dragOverMouseY===void 0)return;var ce=this.dragOverMouseY-Z,Me=this.renderHeight-35;ce<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(ce-35))):ce>Me&&(this.scrollTop+=Math.min(14,Math.floor(.3*(ce-Me))))},q.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},q.prototype.getItemIndexFromEventTarget=function(Z){for(var ce=Z;ce instanceof HTMLElement&&ce!==this.rowsContainer;){var Me=ce.getAttribute("data-index");if(Me){var Ve=Number(Me);if(!isNaN(Ve))return Ve}ce=ce.parentElement}return},q.prototype.getRenderRange=function(Z,ce){return{start:this.rangeMap.indexAt(Z),end:this.rangeMap.indexAfter(Z+ce-1)}},q.prototype._rerender=function(Z,ce){var Me=this.getRenderRange(Z,ce),Ve,_e;Z===this.elementTop(Me.start)?(Ve=Me.start,_e=0):Me.end-Me.start>1&&(Ve=Me.start+1,_e=this.elementTop(Ve)-Z);for(var ue=0;;){for(var se=this.getRenderRange(Z,ce),fe=!1,ie=se.start;ie<se.end;ie++){var J=this.probeDynamicHeight(ie);J!==0&&this.rangeMap.splice(ie,1,[this.items[ie]]),ue+=J,fe=fe||J!==0}if(!fe){ue!==0&&this.eventuallyUpdateScrollDimensions();for(var me=G.a.relativeComplement(Me,se),ye=0,ze=me;ye<ze.length;ye++)for(var tt=ze[ye],ie=tt.start;ie<tt.end;ie++)this.items[ie].row&&this.removeItemFromDOM(ie);for(var _t=G.a.relativeComplement(se,Me),Pt=0,Xt=_t;Pt<Xt.length;Pt++)for(var tt=Xt[Pt],ie=tt.start;ie<tt.end;ie++){var Ke=ie+1,Xe=Ke<this.items.length?this.items[Ke].row:null,Ze=Xe?Xe.domNode:null;this.insertItemInDOM(ie,Ze)}for(var ie=se.start;ie<se.end;ie++)this.items[ie].row&&this.updateItemInDOM(this.items[ie],ie);typeof Ve=="number"&&(this.scrollTop=this.elementTop(Ve)-_e),this._onDidChangeContentHeight.fire(this.contentHeight);return}}},q.prototype.probeDynamicHeight=function(Z){var ce=this.items[Z];if(!ce.hasDynamicHeight||ce.lastDynamicHeightWidth===this.renderWidth)return 0;var Me=ce.size,Ve=this.cache.alloc(ce.templateId);Ve.domNode.style.height="",this.rowsContainer.appendChild(Ve.domNode);var _e=this.renderers.get(ce.templateId);return _e&&(_e.renderElement(ce.element,Z,Ve.templateData,void 0),_e.disposeElement&&_e.disposeElement(ce.element,Z,Ve.templateData,void 0)),ce.size=Ve.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(ce.element,ce.size),ce.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(Ve.domNode),this.cache.release(Ve),ce.size-Me},q.prototype.getNextToLastElement=function(Z){var ce=Z[Z.length-1];if(!ce)return null;var Me=this.items[ce.end];return Me&&Me.row?Me.row.domNode:null},q.prototype.getElementDomId=function(Z){return this.domId+"_"+Z},q.prototype.dispose=function(){if(this.items){for(var Z=0,ce=this.items;Z<ce.length;Z++){var Me=ce[Z];if(Me.row){var Ve=this.renderers.get(Me.row.templateId);Ve&&Ve.disposeTemplate(Me.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(oe.f)(this.disposables)},q.InstanceCount=0,m([z.a],q.prototype,"onMouseClick",null),m([z.a],q.prototype,"onMouseDblClick",null),m([z.a],q.prototype,"onMouseMiddleClick",null),m([z.a],q.prototype,"onMouseDown",null),m([z.a],q.prototype,"onContextMenu",null),m([z.a],q.prototype,"onTouchStart",null),m([z.a],q.prototype,"onTap",null),q}()},"Gt+Q":function(wt,P,r){},HPzl:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return r.e(199).then(r.bind(null,"dstw"))}})},"HTM+":function(wt,P,r){},HfEf:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return r.e(211).then(r.bind(null,"ZGv0"))}})},"I+kL":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("yBOt"),oe;typeof TextDecoder!="undefined"?oe=function(U){return new ne(U)}:oe=function(U){return new N};var ne=function(){function F(U){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=U|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return F.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},F.prototype.build=function(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},F.prototype._buildBuffer=function(){if(this._bufferLength===0)return"";var U=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(U)},F.prototype._flushBuffer=function(){var U=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[U]:this._completedStrings[this._completedStrings.length]=U},F.prototype.write1=function(U){var j=this._capacity-this._bufferLength;j<=1&&((j===0||I.z(U))&&this._flushBuffer()),this._buffer[this._bufferLength++]=U},F.prototype.appendASCII=function(U){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=U},F.prototype.appendASCIIString=function(U){var j=U.length;if(this._bufferLength+j>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=U;return}for(var G=0;G<j;G++)this._buffer[this._bufferLength++]=U.charCodeAt(G)},F}(),N=function(){function F(){this._pieces=[],this._piecesLen=0}return F.prototype.reset=function(){this._pieces=[],this._piecesLen=0},F.prototype.build=function(){return this._pieces.join("")},F.prototype.write1=function(U){this._pieces[this._piecesLen++]=String.fromCharCode(U)},F.prototype.appendASCII=function(U){this._pieces[this._piecesLen++]=String.fromCharCode(U)},F.prototype.appendASCIIString=function(U){this._pieces[this._piecesLen++]=U},F}()},In1f:function(wt,P,r){"use strict";r.r(P),r.d(P,"BracketMatchingController",function(){return w});var I=r("O6p8"),oe=r.n(I),ne=r("g9ht"),N=r("dE3Z"),F=r("bN5T"),U=r("Whdu"),j=r("V0RK"),G=r("w9Cd"),R=r("F5bH"),E=r("2GBI"),x=r("/l9y"),K=r("8ZZ4"),D=r("4u7V"),A=r("0BkX"),te=r("TwZP"),z=r("1OsU"),_=function(){var B=function(re,he){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ee,Se){Ee.__proto__=Se}||function(Ee,Se){for(var q in Se)Se.hasOwnProperty(q)&&(Ee[q]=Se[q])},B(re,he)};return function(H,re){B(H,re);function he(){this.constructor=H}H.prototype=re===null?Object.create(re):(he.prototype=re.prototype,new he)}}(),f=Object(A.Rb)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},ne.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),p=function(B){_(H,B);function H(){return B.call(this,{id:"editor.action.jumpToBracket",label:ne.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:E.a.editorTextFocus,primary:2048|1024|88,weight:100}})||this}return H.prototype.run=function(re,he){var Ee=w.get(he);if(!Ee)return;Ee.jumpToBracket()},H}(U.b),g=function(B){_(H,B);function H(){return B.call(this,{id:"editor.action.selectToBracket",label:ne.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})||this}return H.prototype.run=function(re,he,Ee){var Se=w.get(he);if(!Se)return;var q=!0;Ee&&Ee.selectBrackets===!1&&(q=!1),Se.selectToBracket(q)},H}(U.b),m=function(){function B(H,re,he){this.position=H,this.brackets=re,this.options=he}return B}(),w=function(B){_(H,B);function H(re){var he=B.call(this)||this;return he._editor=re,he._lastBracketsData=[],he._lastVersionId=0,he._decorations=[],he._updateBracketsSoon=he._register(new N.d(function(){return he._updateBrackets()},50)),he._matchBrackets=he._editor.getOption(53),he._updateBracketsSoon.schedule(),he._register(re.onDidChangeCursorPosition(function(Ee){if(he._matchBrackets==="never")return;he._updateBracketsSoon.schedule()})),he._register(re.onDidChangeModelContent(function(Ee){he._updateBracketsSoon.schedule()})),he._register(re.onDidChangeModel(function(Ee){he._lastBracketsData=[],he._decorations=[],he._updateBracketsSoon.schedule()})),he._register(re.onDidChangeModelLanguageConfiguration(function(Ee){he._lastBracketsData=[],he._updateBracketsSoon.schedule()})),he._register(re.onDidChangeConfiguration(function(Ee){Ee.hasChanged(53)&&(he._matchBrackets=he._editor.getOption(53),he._decorations=he._editor.deltaDecorations(he._decorations,[]),he._lastBracketsData=[],he._lastVersionId=0,he._updateBracketsSoon.schedule())})),he}return H.get=function(re){return re.getContribution(H.ID)},H.prototype.jumpToBracket=function(){if(!this._editor.hasModel())return;var re=this._editor.getModel(),he=this._editor.getSelections().map(function(Ee){var Se=Ee.getStartPosition(),q=re.matchBracket(Se),Z=null;if(q)q[0].containsPosition(Se)?Z=q[1].getStartPosition():q[1].containsPosition(Se)&&(Z=q[0].getStartPosition());else{var ce=re.findEnclosingBrackets(Se);if(ce)Z=ce[0].getStartPosition();else{var Me=re.findNextBracket(Se);Me&&Me.range&&(Z=Me.range.getStartPosition())}}return Z?new R.a(Z.lineNumber,Z.column,Z.lineNumber,Z.column):new R.a(Se.lineNumber,Se.column,Se.lineNumber,Se.column)});this._editor.setSelections(he),this._editor.revealRange(he[0])},H.prototype.selectToBracket=function(re){if(!this._editor.hasModel())return;var he=this._editor.getModel(),Ee=[];this._editor.getSelections().forEach(function(Se){var q=Se.getStartPosition(),Z=he.matchBracket(q);if(!Z&&(Z=he.findEnclosingBrackets(q),!Z)){var ce=he.findNextBracket(q);ce&&ce.range&&(Z=he.matchBracket(ce.range.getStartPosition()))}var Me=null,Ve=null;if(Z){Z.sort(G.a.compareRangesUsingStarts);var _e=Z[0],ue=Z[1];Me=re?_e.getStartPosition():_e.getEndPosition(),Ve=re?ue.getEndPosition():ue.getStartPosition()}Me&&Ve&&Ee.push(new R.a(Me.lineNumber,Me.column,Ve.lineNumber,Ve.column))}),Ee.length>0&&(this._editor.setSelections(Ee),this._editor.revealRange(Ee[0]))},H.prototype._updateBrackets=function(){if(this._matchBrackets==="never")return;this._recomputeBrackets();for(var re=[],he=0,Ee=0,Se=this._lastBracketsData;Ee<Se.length;Ee++){var q=Se[Ee],Z=q.brackets;Z&&(re[he++]={range:Z[0],options:q.options},re[he++]={range:Z[1],options:q.options})}this._decorations=this._editor.deltaDecorations(this._decorations,re)},H.prototype._recomputeBrackets=function(){if(!this._editor.hasModel()){this._lastBracketsData=[],this._lastVersionId=0;return}var re=this._editor.getSelections();if(re.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}var he=this._editor.getModel(),Ee=he.getVersionId(),Se=[];this._lastVersionId===Ee&&(Se=this._lastBracketsData);for(var q=[],Z=0,ce=0,Me=re.length;ce<Me;ce++){var Ve=re[ce];Ve.isEmpty()&&(q[Z++]=Ve.getStartPosition())}q.length>1&&q.sort(j.a.compare);for(var _e=[],ue=0,se=0,fe=Se.length,ce=0,Me=q.length;ce<Me;ce++){for(var ie=q[ce];se<fe&&Se[se].position.isBefore(ie);)se++;if(se<fe&&Se[se].position.equals(ie))_e[ue++]=Se[se];else{var J=he.matchBracket(ie),me=H._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!J&&this._matchBrackets==="always"&&(J=he.findEnclosingBrackets(ie,20),me=H._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),_e[ue++]=new m(ie,J,me)}}this._lastBracketsData=_e,this._lastVersionId=Ee},H.ID="editor.contrib.bracketMatchingController",H._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=K.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(te.f)(f),position:x.d.Center}}),H._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=K.a.register({stickiness:1,className:"bracket-match"}),H}(F.a);Object(U.h)(w.ID,w),Object(U.f)(g),Object(U.f)(p),Object(te.e)(function(B,H){var re=B.getColor(D.c);re&&H.addRule(".monaco-editor .bracket-match { background-color: "+re+"; }");var he=B.getColor(D.d);he&&H.addRule(".monaco-editor .bracket-match { border: 1px solid "+he+"; }")}),z.c.appendMenuItem(19,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:ne.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},Inmo:function(wt,P,r){"use strict";r.d(P,"v",function(){return I}),r.d(P,"w",function(){return oe}),r.d(P,"g",function(){return ne}),r.d(P,"c",function(){return N}),r.d(P,"i",function(){return F}),r.d(P,"r",function(){return U}),r.d(P,"o",function(){return R}),r.d(P,"d",function(){return E}),r.d(P,"p",function(){return x}),r.d(P,"q",function(){return K}),r.d(P,"e",function(){return D}),r.d(P,"f",function(){return A}),r.d(P,"n",function(){return te}),r.d(P,"k",function(){return z}),r.d(P,"j",function(){return _}),r.d(P,"l",function(){return f}),r.d(P,"m",function(){return p}),r.d(P,"u",function(){return g}),r.d(P,"a",function(){return m}),r.d(P,"t",function(){return w}),r.d(P,"s",function(){return B}),r.d(P,"h",function(){return H}),r.d(P,"b",function(){return re});function I(he,Ee){return Ee===void 0&&(Ee=0),he[he.length-(1+Ee)]}function oe(he){if(he.length===0)throw new Error("Invalid tail call");return[he.slice(0,he.length-1),he[he.length-1]]}function ne(he,Ee,Se){if(Se===void 0&&(Se=function(Me,Ve){return Me===Ve}),he===Ee)return!0;if(!he||!Ee)return!1;if(he.length!==Ee.length)return!1;for(var q=0,Z=he.length;q<Z;q++)if(!Se(he[q],Ee[q]))return!1;return!0}function N(he,Ee,Se){for(var q=0,Z=he.length-1;q<=Z;){var ce=(q+Z)/2|0,Me=Se(he[ce],Ee);if(Me<0)q=ce+1;else if(Me>0)Z=ce-1;else return ce}return-(q+1)}function F(he,Ee){var Se=0,q=he.length;if(q===0)return 0;for(;Se<q;){var Z=Math.floor((Se+q)/2);Ee(he[Z])?q=Z:Se=Z+1}return Se}function U(he,Ee){return G(he,Ee,0,he.length-1,[]),he}function j(he,Ee,Se,q,Z,ce){for(var Me=Se,Ve=q+1,_e=Se;_e<=Z;_e++)ce[_e]=he[_e];for(var _e=Se;_e<=Z;_e++)Me>q?he[_e]=ce[Ve++]:Ve>Z?he[_e]=ce[Me++]:Ee(ce[Ve],ce[Me])<0?he[_e]=ce[Ve++]:he[_e]=ce[Me++]}function G(he,Ee,Se,q,Z){if(q<=Se)return;var ce=Se+(q-Se)/2|0;if(G(he,Ee,Se,ce,Z),G(he,Ee,ce+1,q,Z),Ee(he[ce],he[ce+1])<=0)return;j(he,Ee,Se,ce,q,Z)}function R(he,Ee){for(var Se=[],q=void 0,Z=0,ce=U(he.slice(0),Ee);Z<ce.length;Z++){var Me=ce[Z];!q||Ee(q[0],Me)!==0?(q=[Me],Se.push(q)):q.push(Me)}return Se}function E(he){return he.filter(function(Ee){return!!Ee})}function x(he){return!Array.isArray(he)||he.length===0}function K(he){return Array.isArray(he)&&he.length>0}function D(he,Ee){if(!Ee)return he.filter(function(q,Z){return he.indexOf(q)===Z});var Se=Object.create(null);return he.filter(function(q){var Z=Ee(q);return Se[Z]?!1:(Se[Z]=!0,!0)})}function A(he){var Ee=new Set;return he.filter(function(Se){return Ee.has(Se)?!1:(Ee.add(Se),!0)})}function te(he){var Ee=[];return he.forEach(function(Se){return Ee.push(Se)}),Ee}function z(he,Ee){for(var Se=0;Se<he.length;Se++){var q=he[Se];if(Ee(q))return Se}return-1}function _(he,Ee,Se){Se===void 0&&(Se=void 0);var q=z(he,Ee);return q<0?Se:he[q]}function f(he,Ee){return he.length>0?he[0]:Ee}function p(he){var Ee;return(Ee=[]).concat.apply(Ee,he)}function g(he,Ee){var Se=typeof Ee=="number"?he:0;typeof Ee=="number"?Se=he:(Se=0,Ee=he);var q=[];if(Se<=Ee)for(var Z=Se;Z<Ee;Z++)q.push(Z);else for(var Z=Se;Z>Ee;Z--)q.push(Z);return q}function m(he,Ee,Se){var q=he.slice(0,Ee),Z=he.slice(Ee);return q.concat(Se,Z)}function w(he,Ee){var Se=he.indexOf(Ee);Se>-1&&(he.splice(Se,1),he.unshift(Ee))}function B(he,Ee){var Se=he.indexOf(Ee);Se>-1&&(he.splice(Se,1),he.push(Ee))}function H(he,Ee){for(var Se=0;Se<he.length;Se++){var q=he[Se];if(Ee(q,Se,he))return q}return}function re(he){return Array.isArray(he)?he:[he]}},Jghq:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return r.e(257).then(r.bind(null,"VxcK"))}})},KPjc:function(wt,P,r){"use strict";r.r(P),r.d(P,"LanguageServiceDefaultsImpl",function(){return N});var I=r("1lNs"),oe="3.7.5";"use strict";var ne=monaco.Emitter,N=function(){function z(_,f){this._onDidChange=new ne,this._onDidExtraLibsChange=new ne,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(_),this.setDiagnosticsOptions(f),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(z.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),z.prototype.getExtraLibs=function(){return this._extraLibs},z.prototype.addExtraLib=function(_,f){var p=this,g;if(typeof f=="undefined"?g="ts:extralib-"+Math.random().toString(36).substring(2,15):g=f,this._extraLibs[g]&&this._extraLibs[g].content===_)return{dispose:function(){}};var m=1;return this._extraLibs[g]&&(m=this._extraLibs[g].version+1),this._extraLibs[g]={content:_,version:m},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var B=p._extraLibs[g];if(!B)return;if(B.version!==m)return;delete p._extraLibs[g],p._fireOnDidExtraLibsChangeSoon()}}},z.prototype.setExtraLibs=function(_){if(this._extraLibs=Object.create(null),_&&_.length>0)for(var f=0,p=_;f<p.length;f++){var g=p[f],m=g.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),w=g.content;this._extraLibs[m]={content:w,version:1}}this._fireOnDidExtraLibsChangeSoon()},z.prototype._fireOnDidExtraLibsChangeSoon=function(){var _=this;if(this._onDidExtraLibsChangeTimeout!==-1)return;this._onDidExtraLibsChangeTimeout=setTimeout(function(){_._onDidExtraLibsChangeTimeout=-1,_._onDidExtraLibsChange.fire(void 0)},0)},z.prototype.getCompilerOptions=function(){return this._compilerOptions},z.prototype.setCompilerOptions=function(_){this._compilerOptions=_||Object.create(null),this._onDidChange.fire(void 0)},z.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},z.prototype.setDiagnosticsOptions=function(_){this._diagnosticsOptions=_||Object.create(null),this._onDidChange.fire(void 0)},z.prototype.setMaximumWorkerIdleTime=function(_){},z.prototype.setEagerModelSync=function(_){this._eagerModelSync=_},z.prototype.getEagerModelSync=function(){return this._eagerModelSync},z}(),F;(function(z){z[z.None=0]="None",z[z.CommonJS=1]="CommonJS",z[z.AMD=2]="AMD",z[z.UMD=3]="UMD",z[z.System=4]="System",z[z.ES2015=5]="ES2015",z[z.ESNext=99]="ESNext"})(F||(F={}));var U;(function(z){z[z.None=0]="None",z[z.Preserve=1]="Preserve",z[z.React=2]="React",z[z.ReactNative=3]="ReactNative"})(U||(U={}));var j;(function(z){z[z.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",z[z.LineFeed=1]="LineFeed"})(j||(j={}));var G;(function(z){z[z.ES3=0]="ES3",z[z.ES5=1]="ES5",z[z.ES2015=2]="ES2015",z[z.ES2016=3]="ES2016",z[z.ES2017=4]="ES2017",z[z.ES2018=5]="ES2018",z[z.ES2019=6]="ES2019",z[z.ES2020=7]="ES2020",z[z.ESNext=99]="ESNext",z[z.JSON=100]="JSON",z[z.Latest=99]="Latest"})(G||(G={}));var R;(function(z){z[z.Classic=1]="Classic",z[z.NodeJs=2]="NodeJs"})(R||(R={}));var E=new N({allowNonTsExtensions:!0,target:G.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),x=new N({allowNonTsExtensions:!0,allowJs:!0,target:G.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function K(){return te().then(function(z){return z.getTypeScriptWorker()})}function D(){return te().then(function(z){return z.getJavaScriptWorker()})}function A(){return{ModuleKind:F,JsxEmit:U,NewLineKind:j,ScriptTarget:G,ModuleResolutionKind:R,typescriptVersion:oe,typescriptDefaults:E,javascriptDefaults:x,getTypeScriptWorker:K,getJavaScriptWorker:D}}monaco.languages.typescript=A();function te(){return r.e(261).then(r.bind(null,"Dxy8"))}monaco.languages.onLanguage("typescript",function(){return te().then(function(z){return z.setupTypeScript(E)})}),monaco.languages.onLanguage("javascript",function(){return te().then(function(z){return z.setupJavaScript(x)})})},KQl8:function(wt,P,r){},L4jf:function(wt,P,r){"use strict";r.r(P),r.d(P,"CoreEditorCommand",function(){return re}),r.d(P,"EditorScroll_",function(){return he}),r.d(P,"RevealLine_",function(){return Ee}),r.d(P,"CoreNavigationCommands",function(){return Se}),r.d(P,"CoreEditingCommands",function(){return q});var I=r("g9ht"),oe=r("yqRl"),ne=r("Whdu"),N=r("vQ3m"),F=r("g2LA"),U=r("V0RK"),j=r("w9Cd"),G=function(){function _e(){}return _e.columnSelect=function(ue,se,fe,ie,J,me){for(var ye=Math.abs(J-fe)+1,ze=fe>J,tt=ie>me,_t=ie<me,Pt=[],Xt=0;Xt<ye;Xt++){var Ke=fe+(ze?-Xt:Xt),Xe=F.a.columnFromVisibleColumn2(ue,se,Ke,ie),Ze=F.a.columnFromVisibleColumn2(ue,se,Ke,me),Ye=F.a.visibleColumnFromColumn2(ue,se,new U.a(Ke,Xe)),ke=F.a.visibleColumnFromColumn2(ue,se,new U.a(Ke,Ze));if(_t){if(Ye>me)continue;if(ke<ie)continue}if(tt){if(ke>ie)continue;if(Ye<me)continue}Pt.push(new F.f(new j.a(Ke,Xe,Ke,Xe),0,new U.a(Ke,Ze),0))}if(Pt.length===0)for(var Xt=0;Xt<ye;Xt++){var Ke=fe+(ze?-Xt:Xt),$e=se.getLineMaxColumn(Ke);Pt.push(new F.f(new j.a(Ke,$e,Ke,$e),0,new U.a(Ke,$e),0))}return{viewStates:Pt,reversed:ze,fromLineNumber:fe,fromVisualColumn:ie,toLineNumber:J,toVisualColumn:me}},_e.columnSelectLeft=function(ue,se,fe){var ie=fe.toViewVisualColumn;return ie>1&&ie--,_e.columnSelect(ue,se,fe.fromViewLineNumber,fe.fromViewVisualColumn,fe.toViewLineNumber,ie)},_e.columnSelectRight=function(ue,se,fe){for(var ie=0,J=Math.min(fe.fromViewLineNumber,fe.toViewLineNumber),me=Math.max(fe.fromViewLineNumber,fe.toViewLineNumber),ye=J;ye<=me;ye++){var ze=se.getLineMaxColumn(ye),tt=F.a.visibleColumnFromColumn2(ue,se,new U.a(ye,ze));ie=Math.max(ie,tt)}var _t=fe.toViewVisualColumn;return _t<ie&&_t++,this.columnSelect(ue,se,fe.fromViewLineNumber,fe.fromViewVisualColumn,fe.toViewLineNumber,_t)},_e.columnSelectUp=function(ue,se,fe,ie){var J=ie?ue.pageSize:1,me=Math.max(1,fe.toViewLineNumber-J);return this.columnSelect(ue,se,fe.fromViewLineNumber,fe.fromViewVisualColumn,me,fe.toViewVisualColumn)},_e.columnSelectDown=function(ue,se,fe,ie){var J=ie?ue.pageSize:1,me=Math.min(se.getLineCount(),fe.toViewLineNumber+J);return this.columnSelect(ue,se,fe.fromViewLineNumber,fe.fromViewVisualColumn,me,fe.toViewVisualColumn)},_e}(),R=r("prEm"),E=r("B6aB"),x=r("yBOt"),K=r("ATqw"),D=function(){var _e=function(se,fe){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,J){ie.__proto__=J}||function(ie,J){for(var me in J)J.hasOwnProperty(me)&&(ie[me]=J[me])},_e(se,fe)};return function(ue,se){_e(ue,se);function fe(){this.constructor=ue}ue.prototype=se===null?Object.create(se):(fe.prototype=se.prototype,new fe)}}(),A=function(){function _e(){}return _e._createWord=function(ue,se,fe,ie,J){return{start:ie,end:J,wordType:se,nextCharClass:fe}},_e._findPreviousWordOnLine=function(ue,se,fe){var ie=se.getLineContent(fe.lineNumber);return this._doFindPreviousWordOnLine(ie,ue,fe)},_e._doFindPreviousWordOnLine=function(ue,se,fe){for(var ie=0,J=fe.column-2;J>=0;J--){var me=ue.charCodeAt(J),ye=se.get(me);if(ye===0){if(ie===2)return this._createWord(ue,ie,ye,J+1,this._findEndOfWord(ue,se,ie,J+1));ie=1}else if(ye===2){if(ie===1)return this._createWord(ue,ie,ye,J+1,this._findEndOfWord(ue,se,ie,J+1));ie=2}else if(ye===1&&ie!==0)return this._createWord(ue,ie,ye,J+1,this._findEndOfWord(ue,se,ie,J+1))}return ie!==0?this._createWord(ue,ie,1,0,this._findEndOfWord(ue,se,ie,0)):null},_e._findEndOfWord=function(ue,se,fe,ie){for(var J=ue.length,me=ie;me<J;me++){var ye=ue.charCodeAt(me),ze=se.get(ye);if(ze===1)return me;if(fe===1&&ze===2)return me;if(fe===2&&ze===0)return me}return J},_e._findNextWordOnLine=function(ue,se,fe){var ie=se.getLineContent(fe.lineNumber);return this._doFindNextWordOnLine(ie,ue,fe)},_e._doFindNextWordOnLine=function(ue,se,fe){for(var ie=0,J=ue.length,me=fe.column-1;me<J;me++){var ye=ue.charCodeAt(me),ze=se.get(ye);if(ze===0){if(ie===2)return this._createWord(ue,ie,ze,this._findStartOfWord(ue,se,ie,me-1),me);ie=1}else if(ze===2){if(ie===1)return this._createWord(ue,ie,ze,this._findStartOfWord(ue,se,ie,me-1),me);ie=2}else if(ze===1&&ie!==0)return this._createWord(ue,ie,ze,this._findStartOfWord(ue,se,ie,me-1),me)}return ie!==0?this._createWord(ue,ie,1,this._findStartOfWord(ue,se,ie,J-1),J):null},_e._findStartOfWord=function(ue,se,fe,ie){for(var J=ie;J>=0;J--){var me=ue.charCodeAt(J),ye=se.get(me);if(ye===1)return J+1;if(fe===1&&ye===2)return J+1;if(fe===2&&ye===0)return J+1}return 0},_e.moveWordLeft=function(ue,se,fe,ie){var J=fe.lineNumber,me=fe.column,ye=!1;me===1&&(J>1&&(ye=!0,J=J-1,me=se.getLineMaxColumn(J)));var ze=_e._findPreviousWordOnLine(ue,se,new U.a(J,me));if(ie===0){if(ze&&!ye){var tt=se.getLineLastNonWhitespaceColumn(J);if(tt<me)return new U.a(J,ze.end+1)}return new U.a(J,ze?ze.start+1:1)}if(ie===1)return ze&&ze.wordType===2&&ze.end-ze.start===1&&ze.nextCharClass===0&&(ze=_e._findPreviousWordOnLine(ue,se,new U.a(J,ze.start+1))),new U.a(J,ze?ze.start+1:1);if(ie===3){for(;ze&&ze.wordType===2;)ze=_e._findPreviousWordOnLine(ue,se,new U.a(J,ze.start+1));return new U.a(J,ze?ze.start+1:1)}return ze&&me<=ze.end+1&&(ze=_e._findPreviousWordOnLine(ue,se,new U.a(J,ze.start+1))),new U.a(J,ze?ze.end+1:1)},_e._moveWordPartLeft=function(ue,se){var fe=se.lineNumber,ie=ue.getLineMaxColumn(fe);if(se.column===1)return fe>1?new U.a(fe-1,ue.getLineMaxColumn(fe-1)):se;for(var J=ue.getLineContent(fe),me=se.column-1;me>1;me--){var ye=J.charCodeAt(me-2),ze=J.charCodeAt(me-1);if(ye!==95&&ze===95)return new U.a(fe,me);if(x.B(ye)&&x.C(ze))return new U.a(fe,me);if(x.C(ye)&&x.C(ze)&&me+1<ie){var tt=J.charCodeAt(me);if(x.B(tt))return new U.a(fe,me)}}return new U.a(fe,1)},_e.moveWordRight=function(ue,se,fe,ie){var J=fe.lineNumber,me=fe.column,ye=!1;me===se.getLineMaxColumn(J)&&(J<se.getLineCount()&&(ye=!0,J=J+1,me=1));var ze=_e._findNextWordOnLine(ue,se,new U.a(J,me));if(ie===2)ze&&ze.wordType===2&&(ze.end-ze.start===1&&ze.nextCharClass===0&&(ze=_e._findNextWordOnLine(ue,se,new U.a(J,ze.end+1)))),ze?me=ze.end+1:me=se.getLineMaxColumn(J);else if(ie===3){for(ye&&(me=0);ze&&(ze.wordType===2||ze.start+1<=me);)ze=_e._findNextWordOnLine(ue,se,new U.a(J,ze.end+1));ze?me=ze.start+1:me=se.getLineMaxColumn(J)}else ze&&!ye&&me>=ze.start+1&&(ze=_e._findNextWordOnLine(ue,se,new U.a(J,ze.end+1))),ze?me=ze.start+1:me=se.getLineMaxColumn(J);return new U.a(J,me)},_e._moveWordPartRight=function(ue,se){var fe=se.lineNumber,ie=ue.getLineMaxColumn(fe);if(se.column===ie)return fe<ue.getLineCount()?new U.a(fe+1,1):se;for(var J=ue.getLineContent(fe),me=se.column+1;me<ie;me++){var ye=J.charCodeAt(me-2),ze=J.charCodeAt(me-1);if(ye===95&&ze!==95)return new U.a(fe,me);if(x.B(ye)&&x.C(ze))return new U.a(fe,me);if(x.C(ye)&&x.C(ze)&&me+1<ie){var tt=J.charCodeAt(me);if(x.B(tt))return new U.a(fe,me)}}return new U.a(fe,ie)},_e._deleteWordLeftWhitespace=function(ue,se){var fe=ue.getLineContent(se.lineNumber),ie=se.column-2,J=x.D(fe,ie);return J+1<ie?new j.a(se.lineNumber,J+2,se.lineNumber,se.column):null},_e.deleteWordLeft=function(ue,se,fe,ie,J){if(!fe.isEmpty())return fe;var me=new U.a(fe.positionLineNumber,fe.positionColumn),ye=me.lineNumber,ze=me.column;if(ye===1&&ze===1)return null;if(ie){var tt=this._deleteWordLeftWhitespace(se,me);if(tt)return tt}var _t=_e._findPreviousWordOnLine(ue,se,me);return J===0?_t?ze=_t.start+1:ze>1?ze=1:(ye--,ze=se.getLineMaxColumn(ye)):(_t&&ze<=_t.end+1&&(_t=_e._findPreviousWordOnLine(ue,se,new U.a(ye,_t.start+1))),_t?ze=_t.end+1:ze>1?ze=1:(ye--,ze=se.getLineMaxColumn(ye))),new j.a(ye,ze,me.lineNumber,me.column)},_e._deleteWordPartLeft=function(ue,se){if(!se.isEmpty())return se;var fe=se.getPosition(),ie=_e._moveWordPartLeft(ue,fe);return new j.a(fe.lineNumber,fe.column,ie.lineNumber,ie.column)},_e._findFirstNonWhitespaceChar=function(ue,se){for(var fe=ue.length,ie=se;ie<fe;ie++){var J=ue.charAt(ie);if(J!==" "&&J!==" ")return ie}return fe},_e._deleteWordRightWhitespace=function(ue,se){var fe=ue.getLineContent(se.lineNumber),ie=se.column-1,J=this._findFirstNonWhitespaceChar(fe,ie);return ie+1<J?new j.a(se.lineNumber,se.column,se.lineNumber,J+1):null},_e.deleteWordRight=function(ue,se,fe,ie,J){if(!fe.isEmpty())return fe;var me=new U.a(fe.positionLineNumber,fe.positionColumn),ye=me.lineNumber,ze=me.column,tt=se.getLineCount(),_t=se.getLineMaxColumn(ye);if(ye===tt&&ze===_t)return null;if(ie){var Pt=this._deleteWordRightWhitespace(se,me);if(Pt)return Pt}var Xt=_e._findNextWordOnLine(ue,se,me);return J===2?Xt?ze=Xt.end+1:ze<_t||ye===tt?ze=_t:(ye++,Xt=_e._findNextWordOnLine(ue,se,new U.a(ye,1)),Xt?ze=Xt.start+1:ze=se.getLineMaxColumn(ye)):(Xt&&ze>=Xt.start+1&&(Xt=_e._findNextWordOnLine(ue,se,new U.a(ye,Xt.end+1))),Xt?ze=Xt.start+1:ze<_t||ye===tt?ze=_t:(ye++,Xt=_e._findNextWordOnLine(ue,se,new U.a(ye,1)),Xt?ze=Xt.start+1:ze=se.getLineMaxColumn(ye))),new j.a(ye,ze,me.lineNumber,me.column)},_e._deleteWordPartRight=function(ue,se){if(!se.isEmpty())return se;var fe=se.getPosition(),ie=_e._moveWordPartRight(ue,fe);return new j.a(fe.lineNumber,fe.column,ie.lineNumber,ie.column)},_e.word=function(ue,se,fe,ie,J){var me=Object(K.a)(ue.wordSeparators),ye=_e._findPreviousWordOnLine(me,se,J),ze=_e._findNextWordOnLine(me,se,J);if(!ie){var tt,_t;return ye&&ye.wordType===1&&ye.start<=J.column-1&&J.column-1<=ye.end?(tt=ye.start+1,_t=ye.end+1):ze&&ze.wordType===1&&ze.start<=J.column-1&&J.column-1<=ze.end?(tt=ze.start+1,_t=ze.end+1):(ye?tt=ye.end+1:tt=1,ze?_t=ze.start+1:_t=se.getLineMaxColumn(J.lineNumber)),new F.f(new j.a(J.lineNumber,tt,J.lineNumber,_t),0,new U.a(J.lineNumber,_t),0)}var Pt,Xt;ye&&ye.wordType===1&&ye.start<J.column-1&&J.column-1<ye.end?(Pt=ye.start+1,Xt=ye.end+1):ze&&ze.wordType===1&&ze.start<J.column-1&&J.column-1<ze.end?(Pt=ze.start+1,Xt=ze.end+1):(Pt=J.column,Xt=J.column);var Ke=J.lineNumber,Xe;if(fe.selectionStart.containsPosition(J))Xe=fe.selectionStart.endColumn;else if(J.isBeforeOrEqual(fe.selectionStart.getStartPosition())){Xe=Pt;var Ze=new U.a(Ke,Xe);fe.selectionStart.containsPosition(Ze)&&(Xe=fe.selectionStart.endColumn)}else{Xe=Xt;var Ze=new U.a(Ke,Xe);fe.selectionStart.containsPosition(Ze)&&(Xe=fe.selectionStart.startColumn)}return fe.move(!0,Ke,Xe,0)},_e}(),te=function(_e){D(ue,_e);function ue(){return _e!==null&&_e.apply(this,arguments)||this}return ue.deleteWordPartLeft=function(se,fe,ie,J){var me=z([A.deleteWordLeft(se,fe,ie,J,0),A.deleteWordLeft(se,fe,ie,J,2),A._deleteWordPartLeft(fe,ie)]);return me.sort(j.a.compareRangesUsingEnds),me[2]},ue.deleteWordPartRight=function(se,fe,ie,J){var me=z([A.deleteWordRight(se,fe,ie,J,0),A.deleteWordRight(se,fe,ie,J,2),A._deleteWordPartRight(fe,ie)]);return me.sort(j.a.compareRangesUsingStarts),me[0]},ue.moveWordPartLeft=function(se,fe,ie){var J=z([A.moveWordLeft(se,fe,ie,0),A.moveWordLeft(se,fe,ie,2),A._moveWordPartLeft(fe,ie)]);return J.sort(U.a.compare),J[2]},ue.moveWordPartRight=function(se,fe,ie){var J=z([A.moveWordRight(se,fe,ie,0),A.moveWordRight(se,fe,ie,2),A._moveWordPartRight(fe,ie)]);return J.sort(U.a.compare),J[0]},ue}(A);function z(_e){return _e.filter(function(ue){return Boolean(ue)})}var _=function(){function _e(){}return _e.addCursorDown=function(ue,se,fe){for(var ie=[],J=0,me=0,ye=se.length;me<ye;me++){var ze=se[me];ie[J++]=new F.d(ze.modelState,ze.viewState),fe?ie[J++]=F.d.fromModelState(E.a.translateDown(ue.config,ue.model,ze.modelState)):ie[J++]=F.d.fromViewState(E.a.translateDown(ue.config,ue.viewModel,ze.viewState))}return ie},_e.addCursorUp=function(ue,se,fe){for(var ie=[],J=0,me=0,ye=se.length;me<ye;me++){var ze=se[me];ie[J++]=new F.d(ze.modelState,ze.viewState),fe?ie[J++]=F.d.fromModelState(E.a.translateUp(ue.config,ue.model,ze.modelState)):ie[J++]=F.d.fromViewState(E.a.translateUp(ue.config,ue.viewModel,ze.viewState))}return ie},_e.moveToBeginningOfLine=function(ue,se,fe){for(var ie=[],J=0,me=se.length;J<me;J++){var ye=se[J];ie[J]=this._moveToLineStart(ue,ye,fe)}return ie},_e._moveToLineStart=function(ue,se,fe){var ie=se.viewState.position.column,J=se.modelState.position.column,me=ie===J,ye=se.viewState.position.lineNumber,ze=ue.viewModel.getLineFirstNonWhitespaceColumn(ye),tt=ie===ze;return!me&&!tt?this._moveToLineStartByView(ue,se,fe):this._moveToLineStartByModel(ue,se,fe)},_e._moveToLineStartByView=function(ue,se,fe){return F.d.fromViewState(E.a.moveToBeginningOfLine(ue.config,ue.viewModel,se.viewState,fe))},_e._moveToLineStartByModel=function(ue,se,fe){return F.d.fromModelState(E.a.moveToBeginningOfLine(ue.config,ue.model,se.modelState,fe))},_e.moveToEndOfLine=function(ue,se,fe){for(var ie=[],J=0,me=se.length;J<me;J++){var ye=se[J];ie[J]=this._moveToLineEnd(ue,ye,fe)}return ie},_e._moveToLineEnd=function(ue,se,fe){var ie=se.viewState.position,J=ue.viewModel.getLineMaxColumn(ie.lineNumber),me=ie.column===J,ye=se.modelState.position,ze=ue.model.getLineMaxColumn(ye.lineNumber),tt=J-ie.column===ze-ye.column;return me||tt?this._moveToLineEndByModel(ue,se,fe):this._moveToLineEndByView(ue,se,fe)},_e._moveToLineEndByView=function(ue,se,fe){return F.d.fromViewState(E.a.moveToEndOfLine(ue.config,ue.viewModel,se.viewState,fe))},_e._moveToLineEndByModel=function(ue,se,fe){return F.d.fromModelState(E.a.moveToEndOfLine(ue.config,ue.model,se.modelState,fe))},_e.expandLineSelection=function(ue,se){for(var fe=[],ie=0,J=se.length;ie<J;ie++){var me=se[ie],ye=me.modelState.selection.startLineNumber,ze=ue.model.getLineCount(),tt=me.modelState.selection.endLineNumber,_t=void 0;tt===ze?_t=ue.model.getLineMaxColumn(ze):(tt++,_t=1),fe[ie]=F.d.fromModelState(new F.f(new j.a(ye,1,ye,1),0,new U.a(tt,_t),0))}return fe},_e.moveToBeginningOfBuffer=function(ue,se,fe){for(var ie=[],J=0,me=se.length;J<me;J++){var ye=se[J];ie[J]=F.d.fromModelState(E.a.moveToBeginningOfBuffer(ue.config,ue.model,ye.modelState,fe))}return ie},_e.moveToEndOfBuffer=function(ue,se,fe){for(var ie=[],J=0,me=se.length;J<me;J++){var ye=se[J];ie[J]=F.d.fromModelState(E.a.moveToEndOfBuffer(ue.config,ue.model,ye.modelState,fe))}return ie},_e.selectAll=function(ue,se){var fe=ue.model.getLineCount(),ie=ue.model.getLineMaxColumn(fe);return F.d.fromModelState(new F.f(new j.a(1,1,1,1),0,new U.a(fe,ie),0))},_e.line=function(ue,se,fe,ie,J){var me=ue.model.validatePosition(ie),ye=J?ue.validateViewPosition(new U.a(J.lineNumber,J.column),me):ue.convertModelPositionToViewPosition(me);if(!fe||!se.modelState.hasSelection()){var ze=ue.model.getLineCount(),tt=me.lineNumber+1,_t=1;return tt>ze&&(tt=ze,_t=ue.model.getLineMaxColumn(tt)),F.d.fromModelState(new F.f(new j.a(me.lineNumber,1,tt,_t),0,new U.a(tt,_t),0))}var Pt=se.modelState.selectionStart.getStartPosition().lineNumber;if(me.lineNumber<Pt)return F.d.fromViewState(se.viewState.move(se.modelState.hasSelection(),ye.lineNumber,1,0));if(me.lineNumber>Pt){var ze=ue.viewModel.getLineCount(),Xt=ye.lineNumber+1,Ke=1;return Xt>ze&&(Xt=ze,Ke=ue.viewModel.getLineMaxColumn(Xt)),F.d.fromViewState(se.viewState.move(se.modelState.hasSelection(),Xt,Ke,0))}else{var Xe=se.modelState.selectionStart.getEndPosition();return F.d.fromModelState(se.modelState.move(se.modelState.hasSelection(),Xe.lineNumber,Xe.column,0))}},_e.word=function(ue,se,fe,ie){var J=ue.model.validatePosition(ie);return F.d.fromModelState(A.word(ue.config,ue.model,se.modelState,fe,J))},_e.cancelSelection=function(ue,se){if(!se.modelState.hasSelection())return new F.d(se.modelState,se.viewState);var fe=se.viewState.position.lineNumber,ie=se.viewState.position.column;return F.d.fromViewState(new F.f(new j.a(fe,ie,fe,ie),0,new U.a(fe,ie),0))},_e.moveTo=function(ue,se,fe,ie,J){var me=ue.model.validatePosition(ie),ye=J?ue.validateViewPosition(new U.a(J.lineNumber,J.column),me):ue.convertModelPositionToViewPosition(me);return F.d.fromViewState(se.viewState.move(fe,ye.lineNumber,ye.column,0))},_e.move=function(ue,se,fe){var ie=fe.select,J=fe.value;switch(fe.direction){case 0:return fe.unit===4?this._moveHalfLineLeft(ue,se,ie):this._moveLeft(ue,se,ie,J);case 1:return fe.unit===4?this._moveHalfLineRight(ue,se,ie):this._moveRight(ue,se,ie,J);case 2:return fe.unit===2?this._moveUpByViewLines(ue,se,ie,J):this._moveUpByModelLines(ue,se,ie,J);case 3:return fe.unit===2?this._moveDownByViewLines(ue,se,ie,J):this._moveDownByModelLines(ue,se,ie,J);case 4:return this._moveToViewMinColumn(ue,se,ie);case 5:return this._moveToViewFirstNonWhitespaceColumn(ue,se,ie);case 6:return this._moveToViewCenterColumn(ue,se,ie);case 7:return this._moveToViewMaxColumn(ue,se,ie);case 8:return this._moveToViewLastNonWhitespaceColumn(ue,se,ie);case 9:{var me=se[0],ye=ue.getCompletelyVisibleModelRange(),ze=this._firstLineNumberInRange(ue.model,ye,J),tt=ue.model.getLineFirstNonWhitespaceColumn(ze);return[this._moveToModelPosition(ue,me,ie,ze,tt)]}case 11:{var me=se[0],ye=ue.getCompletelyVisibleModelRange(),ze=this._lastLineNumberInRange(ue.model,ye,J),tt=ue.model.getLineFirstNonWhitespaceColumn(ze);return[this._moveToModelPosition(ue,me,ie,ze,tt)]}case 10:{var me=se[0],ye=ue.getCompletelyVisibleModelRange(),ze=Math.round((ye.startLineNumber+ye.endLineNumber)/2),tt=ue.model.getLineFirstNonWhitespaceColumn(ze);return[this._moveToModelPosition(ue,me,ie,ze,tt)]}case 12:{for(var _t=ue.getCompletelyVisibleViewRange(),Pt=[],Xt=0,Ke=se.length;Xt<Ke;Xt++){var me=se[Xt];Pt[Xt]=this.findPositionInViewportIfOutside(ue,me,_t,ie)}return Pt}}return null},_e.findPositionInViewportIfOutside=function(ue,se,fe,ie){var J=se.viewState.position.lineNumber;if(fe.startLineNumber<=J&&J<=fe.endLineNumber-1)return new F.d(se.modelState,se.viewState);J>fe.endLineNumber-1&&(J=fe.endLineNumber-1),J<fe.startLineNumber&&(J=fe.startLineNumber);var me=ue.viewModel.getLineFirstNonWhitespaceColumn(J);return this._moveToViewPosition(ue,se,ie,J,me)},_e._firstLineNumberInRange=function(ue,se,fe){var ie=se.startLineNumber;return se.startColumn!==ue.getLineMinColumn(ie)&&ie++,Math.min(se.endLineNumber,ie+fe-1)},_e._lastLineNumberInRange=function(ue,se,fe){var ie=se.startLineNumber;return se.startColumn!==ue.getLineMinColumn(ie)&&ie++,Math.max(ie,se.endLineNumber-fe+1)},_e._moveLeft=function(ue,se,fe,ie){for(var J=[],me=0,ye=se.length;me<ye;me++){var ze=se[me],tt=E.a.moveLeft(ue.config,ue.viewModel,ze.viewState,fe,ie);if(ie===1&&tt.position.lineNumber!==ze.viewState.position.lineNumber){var _t=ue.viewModel.coordinatesConverter.convertViewPositionToModelPosition(tt.position);_t.lineNumber===ze.modelState.position.lineNumber&&(tt=E.a.moveLeft(ue.config,ue.viewModel,tt,fe,1))}J[me]=F.d.fromViewState(tt)}return J},_e._moveHalfLineLeft=function(ue,se,fe){for(var ie=[],J=0,me=se.length;J<me;J++){var ye=se[J],ze=ye.viewState.position.lineNumber,tt=Math.round(ue.viewModel.getLineContent(ze).length/2);ie[J]=F.d.fromViewState(E.a.moveLeft(ue.config,ue.viewModel,ye.viewState,fe,tt))}return ie},_e._moveRight=function(ue,se,fe,ie){for(var J=[],me=0,ye=se.length;me<ye;me++){var ze=se[me],tt=E.a.moveRight(ue.config,ue.viewModel,ze.viewState,fe,ie);if(ie===1&&tt.position.lineNumber!==ze.viewState.position.lineNumber){var _t=ue.viewModel.coordinatesConverter.convertViewPositionToModelPosition(tt.position);_t.lineNumber===ze.modelState.position.lineNumber&&(tt=E.a.moveRight(ue.config,ue.viewModel,tt,fe,1))}J[me]=F.d.fromViewState(tt)}return J},_e._moveHalfLineRight=function(ue,se,fe){for(var ie=[],J=0,me=se.length;J<me;J++){var ye=se[J],ze=ye.viewState.position.lineNumber,tt=Math.round(ue.viewModel.getLineContent(ze).length/2);ie[J]=F.d.fromViewState(E.a.moveRight(ue.config,ue.viewModel,ye.viewState,fe,tt))}return ie},_e._moveDownByViewLines=function(ue,se,fe,ie){for(var J=[],me=0,ye=se.length;me<ye;me++){var ze=se[me];J[me]=F.d.fromViewState(E.a.moveDown(ue.config,ue.viewModel,ze.viewState,fe,ie))}return J},_e._moveDownByModelLines=function(ue,se,fe,ie){for(var J=[],me=0,ye=se.length;me<ye;me++){var ze=se[me];J[me]=F.d.fromModelState(E.a.moveDown(ue.config,ue.model,ze.modelState,fe,ie))}return J},_e._moveUpByViewLines=function(ue,se,fe,ie){for(var J=[],me=0,ye=se.length;me<ye;me++){var ze=se[me];J[me]=F.d.fromViewState(E.a.moveUp(ue.config,ue.viewModel,ze.viewState,fe,ie))}return J},_e._moveUpByModelLines=function(ue,se,fe,ie){for(var J=[],me=0,ye=se.length;me<ye;me++){var ze=se[me];J[me]=F.d.fromModelState(E.a.moveUp(ue.config,ue.model,ze.modelState,fe,ie))}return J},_e._moveToViewPosition=function(ue,se,fe,ie,J){return F.d.fromViewState(se.viewState.move(fe,ie,J,0))},_e._moveToModelPosition=function(ue,se,fe,ie,J){return F.d.fromModelState(se.modelState.move(fe,ie,J,0))},_e._moveToViewMinColumn=function(ue,se,fe){for(var ie=[],J=0,me=se.length;J<me;J++){var ye=se[J],ze=ye.viewState.position.lineNumber,tt=ue.viewModel.getLineMinColumn(ze);ie[J]=this._moveToViewPosition(ue,ye,fe,ze,tt)}return ie},_e._moveToViewFirstNonWhitespaceColumn=function(ue,se,fe){for(var ie=[],J=0,me=se.length;J<me;J++){var ye=se[J],ze=ye.viewState.position.lineNumber,tt=ue.viewModel.getLineFirstNonWhitespaceColumn(ze);ie[J]=this._moveToViewPosition(ue,ye,fe,ze,tt)}return ie},_e._moveToViewCenterColumn=function(ue,se,fe){for(var ie=[],J=0,me=se.length;J<me;J++){var ye=se[J],ze=ye.viewState.position.lineNumber,tt=Math.round((ue.viewModel.getLineMaxColumn(ze)+ue.viewModel.getLineMinColumn(ze))/2);ie[J]=this._moveToViewPosition(ue,ye,fe,ze,tt)}return ie},_e._moveToViewMaxColumn=function(ue,se,fe){for(var ie=[],J=0,me=se.length;J<me;J++){var ye=se[J],ze=ye.viewState.position.lineNumber,tt=ue.viewModel.getLineMaxColumn(ze);ie[J]=this._moveToViewPosition(ue,ye,fe,ze,tt)}return ie},_e._moveToViewLastNonWhitespaceColumn=function(ue,se,fe){for(var ie=[],J=0,me=se.length;J<me;J++){var ye=se[J],ze=ye.viewState.position.lineNumber,tt=ue.viewModel.getLineLastNonWhitespaceColumn(ze);ie[J]=this._moveToViewPosition(ue,ye,fe,ze,tt)}return ie},_e}(),f;(function(_e){var ue=function(ie){if(!oe.i(ie))return!1;var J=ie;return oe.j(J.to)?!oe.k(J.select)&&!oe.e(J.select)||!oe.k(J.by)&&!oe.j(J.by)?!1:!(!oe.k(J.value)&&!oe.h(J.value)):!1};_e.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:`Property-value pairs that can be passed through this argument:
|
|
* 'to': A mandatory logical position value providing where to move the cursor.
|
|
\`\`\`
|
|
'left', 'right', 'up', 'down'
|
|
'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'
|
|
'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'
|
|
'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'
|
|
\`\`\`
|
|
* 'by': Unit to move. Default is computed based on 'to' value.
|
|
\`\`\`
|
|
'line', 'wrappedLine', 'character', 'halfLine'
|
|
\`\`\`
|
|
* 'value': Number of units to move. Default is '1'.
|
|
* 'select': If 'true' makes the selection. Default is 'false'.
|
|
`,constraint:ue,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},_e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},_e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function se(fe){if(!fe.to)return null;var ie;switch(fe.to){case _e.RawDirection.Left:ie=0;break;case _e.RawDirection.Right:ie=1;break;case _e.RawDirection.Up:ie=2;break;case _e.RawDirection.Down:ie=3;break;case _e.RawDirection.WrappedLineStart:ie=4;break;case _e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:ie=5;break;case _e.RawDirection.WrappedLineColumnCenter:ie=6;break;case _e.RawDirection.WrappedLineEnd:ie=7;break;case _e.RawDirection.WrappedLineLastNonWhitespaceCharacter:ie=8;break;case _e.RawDirection.ViewPortTop:ie=9;break;case _e.RawDirection.ViewPortBottom:ie=11;break;case _e.RawDirection.ViewPortCenter:ie=10;break;case _e.RawDirection.ViewPortIfOutside:ie=12;break;default:return null}var J=0;switch(fe.by){case _e.RawUnit.Line:J=1;break;case _e.RawUnit.WrappedLine:J=2;break;case _e.RawUnit.Character:J=3;break;case _e.RawUnit.HalfLine:J=4;break}return{direction:ie,unit:J,select:!!fe.select,value:fe.value||1}}_e.parse=se})(f||(f={}));var p=r("XGV8"),g=r("/W++"),m=r("2GBI"),w=r("bBv/"),B=function(){var _e=function(se,fe){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,J){ie.__proto__=J}||function(ie,J){for(var me in J)J.hasOwnProperty(me)&&(ie[me]=J[me])},_e(se,fe)};return function(ue,se){_e(ue,se);function fe(){this.constructor=ue}ue.prototype=se===null?Object.create(se):(fe.prototype=se.prototype,new fe)}}(),H=0,re=function(_e){B(ue,_e);function ue(){return _e!==null&&_e.apply(this,arguments)||this}return ue.prototype.runEditorCommand=function(se,fe,ie){var J=fe._getCursors();if(!J)return;this.runCoreEditorCommand(J,ie||{})},ue}(ne.c),he;(function(_e){var ue=function(ie){if(!oe.i(ie))return!1;var J=ie;return oe.j(J.to)?!oe.k(J.by)&&!oe.j(J.by)||!oe.k(J.value)&&!oe.h(J.value)?!1:!(!oe.k(J.revealCursor)&&!oe.e(J.revealCursor)):!1};_e.description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n * 'to': A mandatory direction value.\n ```\n 'up', 'down'\n ```\n * 'by': Unit to move. Default is computed based on 'to' value.\n ```\n 'line', 'wrappedLine', 'page', 'halfPage'\n ```\n * 'value': Number of units to move. Default is '1'.\n * 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n ",constraint:ue,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},_e.RawDirection={Up:"up",Down:"down"},_e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"};function se(fe){var ie;switch(fe.to){case _e.RawDirection.Up:ie=1;break;case _e.RawDirection.Down:ie=2;break;default:return null}var J;switch(fe.by){case _e.RawUnit.Line:J=1;break;case _e.RawUnit.WrappedLine:J=2;break;case _e.RawUnit.Page:J=3;break;case _e.RawUnit.HalfPage:J=4;break;default:J=2}var me=Math.floor(fe.value||1),ye=!!fe.revealCursor;return{direction:ie,unit:J,value:me,revealCursor:ye,select:!!fe.select}}_e.parse=se})(he||(he={}));var Ee;(function(_e){var ue=function(fe){if(!oe.i(fe))return!1;var ie=fe;return oe.h(ie.lineNumber)?!(!oe.k(ie.at)&&!oe.j(ie.at)):!1};_e.description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n * 'lineNumber': A mandatory line number value.\n * 'at': Logical position at which line has to be revealed .\n ```\n 'top', 'center', 'bottom'\n ```\n ",constraint:ue,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},_e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(Ee||(Ee={}));var Se;(function(_e){var ue=function(Ze){B(Ye,Ze);function Ye(ke){var $e=Ze.call(this,ke)||this;return $e._inSelectionMode=ke.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,[_.moveTo(ke.context,ke.getPrimaryCursor(),this._inSelectionMode,$e.position,$e.viewPosition)]),ke.reveal($e.source,!0,0,0)},Ye}(re);_e.MoveTo=Object(ne.g)(new ue({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),_e.MoveToSelect=Object(ne.g)(new ue({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var se=function(Ze){B(Ye,Ze);function Ye(){return Ze!==null&&Ze.apply(this,arguments)||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement();var we=this._getColumnSelectResult(ke.context,ke.getPrimaryCursor(),ke.getColumnSelectData(),$e);ke.setStates($e.source,3,we.viewStates.map(function(k){return F.d.fromViewState(k)})),ke.setColumnSelectData({isReal:!0,fromViewLineNumber:we.fromLineNumber,fromViewVisualColumn:we.fromVisualColumn,toViewLineNumber:we.toLineNumber,toViewVisualColumn:we.toVisualColumn}),ke.reveal($e.source,!0,we.reversed?1:2,0)},Ye}(re);_e.ColumnSelect=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"columnSelect",precondition:void 0})||this}return Ye.prototype._getColumnSelectResult=function(ke,$e,we,k){var ee=ke.model.validatePosition(k.position),Pe=ke.validateViewPosition(new U.a(k.viewPosition.lineNumber,k.viewPosition.column),ee),ve=k.doColumnSelect?we.fromViewLineNumber:Pe.lineNumber,Te=k.doColumnSelect?we.fromViewVisualColumn:k.mouseColumn-1;return G.columnSelect(ke.config,ke.viewModel,ve,Te,Pe.lineNumber,k.mouseColumn-1)},Ye}(se))),_e.CursorColumnSelectLeft=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|1024|512|15,linux:{primary:0}}})||this}return Ye.prototype._getColumnSelectResult=function(ke,$e,we,k){return G.columnSelectLeft(ke.config,ke.viewModel,we)},Ye}(se))),_e.CursorColumnSelectRight=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|1024|512|17,linux:{primary:0}}})||this}return Ye.prototype._getColumnSelectResult=function(ke,$e,we,k){return G.columnSelectRight(ke.config,ke.viewModel,we)},Ye}(se)));var fe=function(Ze){B(Ye,Ze);function Ye(ke){var $e=Ze.call(this,ke)||this;return $e._isPaged=ke.isPaged,$e}return Ye.prototype._getColumnSelectResult=function(ke,$e,we,k){return G.columnSelectUp(ke.config,ke.viewModel,we,this._isPaged)},Ye}(se);_e.CursorColumnSelectUp=Object(ne.g)(new fe({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|1024|512|16,linux:{primary:0}}})),_e.CursorColumnSelectPageUp=Object(ne.g)(new fe({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|1024|512|11,linux:{primary:0}}}));var ie=function(Ze){B(Ye,Ze);function Ye(ke){var $e=Ze.call(this,ke)||this;return $e._isPaged=ke.isPaged,$e}return Ye.prototype._getColumnSelectResult=function(ke,$e,we,k){return G.columnSelectDown(ke.config,ke.viewModel,we,this._isPaged)},Ye}(se);_e.CursorColumnSelectDown=Object(ne.g)(new ie({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|1024|512|18,linux:{primary:0}}})),_e.CursorColumnSelectPageDown=Object(ne.g)(new ie({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|1024|512|12,linux:{primary:0}}}));var J=function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cursorMove",precondition:void 0,description:f.description})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){var we=f.parse($e);if(!we)return;this._runCursorMove(ke,$e.source,we)},Ye.prototype._runCursorMove=function(ke,$e,we){ke.context.model.pushStackElement(),ke.setStates($e,3,_.move(ke.context,ke.getAll(),we)),ke.reveal($e,!0,0,0)},Ye}(re);_e.CursorMoveImpl=J,_e.CursorMove=Object(ne.g)(new J);var me=function(Ze){B(Ye,Ze);function Ye(ke){var $e=Ze.call(this,ke)||this;return $e._staticArgs=ke.args,$e}return Ye.prototype.runCoreEditorCommand=function(ke,$e){var we=this._staticArgs;this._staticArgs.value===-1&&(we={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:ke.context.config.pageSize}),_e.CursorMove._runCursorMove(ke,$e.source,we)},Ye}(re);_e.CursorLeft=Object(ne.g)(new me({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:15,mac:{primary:15,secondary:[256|32]}}})),_e.CursorLeftSelect=Object(ne.g)(new me({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:1024|15}})),_e.CursorRight=Object(ne.g)(new me({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:17,mac:{primary:17,secondary:[256|36]}}})),_e.CursorRightSelect=Object(ne.g)(new me({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:1024|17}})),_e.CursorUp=Object(ne.g)(new me({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:16,mac:{primary:16,secondary:[256|46]}}})),_e.CursorUpSelect=Object(ne.g)(new me({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:1024|16,secondary:[2048|1024|16],mac:{primary:1024|16},linux:{primary:1024|16}}})),_e.CursorPageUp=Object(ne.g)(new me({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:11}})),_e.CursorPageUpSelect=Object(ne.g)(new me({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:1024|11}})),_e.CursorDown=Object(ne.g)(new me({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:18,mac:{primary:18,secondary:[256|44]}}})),_e.CursorDownSelect=Object(ne.g)(new me({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:1024|18,secondary:[2048|1024|18],mac:{primary:1024|18},linux:{primary:1024|18}}})),_e.CursorPageDown=Object(ne.g)(new me({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:12}})),_e.CursorPageDownSelect=Object(ne.g)(new me({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:1024|12}})),_e.CreateCursor=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"createCursor",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){var we=ke.context,k;$e.wholeLine?k=_.line(we,ke.getPrimaryCursor(),!1,$e.position,$e.viewPosition):k=_.moveTo(we,ke.getPrimaryCursor(),!1,$e.position,$e.viewPosition);var ee=ke.getAll();if(ee.length>1)for(var Pe=k.modelState?k.modelState.position:null,ve=k.viewState?k.viewState.position:null,Te=0,Ie=ee.length;Te<Ie;Te++){var pe=ee[Te];if(Pe&&!pe.modelState.selection.containsPosition(Pe))continue;if(ve&&!pe.viewState.selection.containsPosition(ve))continue;ee.splice(Te,1),ke.context.model.pushStackElement(),ke.setStates($e.source,3,ee);return}ee.push(k),ke.context.model.pushStackElement(),ke.setStates($e.source,3,ee)},Ye}(re))),_e.LastCursorMoveToSelect=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){var we=ke.context,k=ke.getLastAddedCursorIndex(),ee=ke.getAll(),Pe=ee.slice(0);Pe[k]=_.moveTo(we,ee[k],!0,$e.position,$e.viewPosition),ke.context.model.pushStackElement(),ke.setStates($e.source,3,Pe)},Ye}(re)));var ye=function(Ze){B(Ye,Ze);function Ye(ke){var $e=Ze.call(this,ke)||this;return $e._inSelectionMode=ke.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,_.moveToBeginningOfLine(ke.context,ke.getAll(),this._inSelectionMode)),ke.reveal($e.source,!0,0,0)},Ye}(re);_e.CursorHome=Object(ne.g)(new ye({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2048|15]}}})),_e.CursorHomeSelect=Object(ne.g)(new ye({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:1024|14,mac:{primary:1024|14,secondary:[2048|1024|15]}}})),_e.CursorLineStart=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:256|31}}})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,this._exec(ke.context,ke.getAll())),ke.reveal($e.source,!0,0,0)},Ye.prototype._exec=function(ke,$e){for(var we=[],k=0,ee=$e.length;k<ee;k++){var Pe=$e[k],ve=Pe.modelState.position.lineNumber;we[k]=F.d.fromModelState(Pe.modelState.move(!1,ve,1,0))}return we},Ye}(re)));var ze=function(Ze){B(Ye,Ze);function Ye(ke){var $e=Ze.call(this,ke)||this;return $e._inSelectionMode=ke.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,_.moveToEndOfLine(ke.context,ke.getAll(),this._inSelectionMode)),ke.reveal($e.source,!0,0,0)},Ye}(re);_e.CursorEnd=Object(ne.g)(new ze({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2048|17]}}})),_e.CursorEndSelect=Object(ne.g)(new ze({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:1024|13,mac:{primary:1024|13,secondary:[2048|1024|17]}}})),_e.CursorLineEnd=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:256|35}}})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,this._exec(ke.context,ke.getAll())),ke.reveal($e.source,!0,0,0)},Ye.prototype._exec=function(ke,$e){for(var we=[],k=0,ee=$e.length;k<ee;k++){var Pe=$e[k],ve=Pe.modelState.position.lineNumber,Te=ke.model.getLineMaxColumn(ve);we[k]=F.d.fromModelState(Pe.modelState.move(!1,ve,Te,0))}return we},Ye}(re)));var tt=function(Ze){B(Ye,Ze);function Ye(ke){var $e=Ze.call(this,ke)||this;return $e._inSelectionMode=ke.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,_.moveToBeginningOfBuffer(ke.context,ke.getAll(),this._inSelectionMode)),ke.reveal($e.source,!0,0,0)},Ye}(re);_e.CursorTop=Object(ne.g)(new tt({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|14,mac:{primary:2048|16}}})),_e.CursorTopSelect=Object(ne.g)(new tt({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|1024|14,mac:{primary:2048|1024|16}}}));var _t=function(Ze){B(Ye,Ze);function Ye(ke){var $e=Ze.call(this,ke)||this;return $e._inSelectionMode=ke.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,_.moveToEndOfBuffer(ke.context,ke.getAll(),this._inSelectionMode)),ke.reveal($e.source,!0,0,0)},Ye}(re);_e.CursorBottom=Object(ne.g)(new _t({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|13,mac:{primary:2048|18}}})),_e.CursorBottomSelect=Object(ne.g)(new _t({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|1024|13,mac:{primary:2048|1024|18}}}));var Pt=function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"editorScroll",precondition:void 0,description:he.description})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){var we=he.parse($e);if(!we)return;this._runEditorScroll(ke,$e.source,we)},Ye.prototype._runEditorScroll=function(ke,$e,we){var k=this._computeDesiredScrollTop(ke.context,we);if(we.revealCursor){var ee=ke.context.getCompletelyVisibleViewRangeAtScrollTop(k);ke.setStates($e,3,[_.findPositionInViewportIfOutside(ke.context,ke.getPrimaryCursor(),ee,we.select)])}ke.scrollTo(k)},Ye.prototype._computeDesiredScrollTop=function(ke,$e){if($e.unit===1){var we=ke.getCompletelyVisibleModelRange(),k=void 0;$e.direction===1?k=Math.max(1,we.startLineNumber-$e.value):k=Math.min(ke.model.getLineCount(),we.startLineNumber+$e.value);var ee=ke.convertModelPositionToViewPosition(new U.a(k,1));return ke.getVerticalOffsetForViewLine(ee.lineNumber)}var Pe;$e.unit===3?Pe=ke.config.pageSize*$e.value:$e.unit===4?Pe=Math.round(ke.config.pageSize/2)*$e.value:Pe=$e.value;var ve=($e.direction===1?-1:1)*Pe;return ke.getCurrentScrollTop()+ve*ke.config.lineHeight},Ye}(re);_e.EditorScrollImpl=Pt,_e.EditorScroll=Object(ne.g)(new Pt),_e.ScrollLineUp=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|16,mac:{primary:256|11}}})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){_e.EditorScroll._runEditorScroll(ke,$e.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},Ye}(re))),_e.ScrollPageUp=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|11,win:{primary:512|11},linux:{primary:512|11}}})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){_e.EditorScroll._runEditorScroll(ke,$e.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},Ye}(re))),_e.ScrollLineDown=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|18,mac:{primary:256|12}}})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){_e.EditorScroll._runEditorScroll(ke,$e.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},Ye}(re))),_e.ScrollPageDown=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|12,win:{primary:512|12},linux:{primary:512|12}}})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){_e.EditorScroll._runEditorScroll(ke,$e.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},Ye}(re)));var Xt=function(Ze){B(Ye,Ze);function Ye(ke){var $e=Ze.call(this,ke)||this;return $e._inSelectionMode=ke.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,[_.word(ke.context,ke.getPrimaryCursor(),this._inSelectionMode,$e.position)]),ke.reveal($e.source,!0,0,0)},Ye}(re);_e.WordSelect=Object(ne.g)(new Xt({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),_e.WordSelectDrag=Object(ne.g)(new Xt({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),_e.LastCursorWordSelect=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){var we=ke.context,k=ke.getLastAddedCursorIndex(),ee=ke.getAll(),Pe=ee.slice(0),ve=ee[k];Pe[k]=_.word(we,ve,ve.modelState.hasSelection(),$e.position),we.model.pushStackElement(),ke.setStates($e.source,3,Pe)},Ye}(re)));var Ke=function(Ze){B(Ye,Ze);function Ye(ke){var $e=Ze.call(this,ke)||this;return $e._inSelectionMode=ke.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,[_.line(ke.context,ke.getPrimaryCursor(),this._inSelectionMode,$e.position,$e.viewPosition)]),ke.reveal($e.source,!1,0,0)},Ye}(re);_e.LineSelect=Object(ne.g)(new Ke({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),_e.LineSelectDrag=Object(ne.g)(new Ke({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var Xe=function(Ze){B(Ye,Ze);function Ye(ke){var $e=Ze.call(this,ke)||this;return $e._inSelectionMode=ke.inSelectionMode,$e}return Ye.prototype.runCoreEditorCommand=function(ke,$e){var we=ke.getLastAddedCursorIndex(),k=ke.getAll(),ee=k.slice(0);ee[we]=_.line(ke.context,k[we],this._inSelectionMode,$e.position,$e.viewPosition),ke.context.model.pushStackElement(),ke.setStates($e.source,3,ee)},Ye}(re);_e.LastCursorLineSelect=Object(ne.g)(new Xe({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),_e.LastCursorLineSelectDrag=Object(ne.g)(new Xe({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),_e.ExpandLineSelection=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|42}})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,_.expandLineSelection(ke.context,ke.getAll())),ke.reveal($e.source,!0,0,0)},Ye}(re))),_e.CancelSelection=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"cancelSelection",precondition:m.a.hasNonEmptySelection,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,[_.cancelSelection(ke.context,ke.getPrimaryCursor())]),ke.reveal($e.source,!0,0,0)},Ye}(re))),_e.RemoveSecondaryCursors=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"removeSecondaryCursors",precondition:m.a.hasMultipleSelections,kbOpts:{weight:H+1,kbExpr:m.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,[ke.getPrimaryCursor()]),ke.reveal($e.source,!0,0,0)},Ye}(re))),_e.RevealLine=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"revealLine",precondition:void 0,description:Ee.description})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){var we=$e,k=(we.lineNumber||0)+1;k<1&&(k=1);var ee=ke.context.model.getLineCount();k>ee&&(k=ee);var Pe=new j.a(k,1,k,ke.context.model.getLineMaxColumn(k)),ve=0;if(we.at)switch(we.at){case Ee.RawAtArgument.Top:ve=3;break;case Ee.RawAtArgument.Center:ve=1;break;case Ee.RawAtArgument.Bottom:ve=4;break;default:break}var Te=ke.context.convertModelRangeToViewRange(Pe);ke.revealRange($e.source,!1,Te,ve,0)},Ye}(re))),_e.SelectAll=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"selectAll",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,[_.selectAll(ke.context,ke.getPrimaryCursor())])},Ye}(re))),_e.SetSelection=Object(ne.g)(new(function(Ze){B(Ye,Ze);function Ye(){return Ze.call(this,{id:"setSelection",precondition:void 0})||this}return Ye.prototype.runCoreEditorCommand=function(ke,$e){ke.context.model.pushStackElement(),ke.setStates($e.source,3,[F.d.fromModelSelection($e.selection)])},Ye}(re)))})(Se||(Se={}));var q;(function(_e){var ue=function(se){B(fe,se);function fe(){return se!==null&&se.apply(this,arguments)||this}return fe.prototype.runEditorCommand=function(ie,J,me){var ye=J._getCursors();if(!ye)return;this.runCoreEditingCommand(J,ye,me||{})},fe}(ne.c);_e.CoreEditingCommand=ue,_e.LineBreakInsert=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"lineBreakInsert",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:0,mac:{primary:256|45}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.lineBreakInsert(J.context.config,J.context.model,J.getAll().map(function(ye){return ye.modelState.selection})))},fe}(ue))),_e.Outdent=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"outdent",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:w.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:1024|2}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.outdent(J.context.config,J.context.model,J.getAll().map(function(ye){return ye.modelState.selection}))),ie.pushUndoStop()},fe}(ue))),_e.Tab=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"tab",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:w.a.and(m.a.editorTextFocus,m.a.tabDoesNotMoveFocus),primary:2}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){ie.pushUndoStop(),ie.executeCommands(this.id,p.a.tab(J.context.config,J.context.model,J.getAll().map(function(ye){return ye.modelState.selection}))),ie.pushUndoStop()},fe}(ue))),_e.DeleteLeft=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"deleteLeft",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:1,secondary:[1024|1],mac:{primary:1,secondary:[1024|1,256|38,256|1]}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){var ye=R.a.deleteLeft(J.getPrevEditOperationType(),J.context.config,J.context.model,J.getAll().map(function(_t){return _t.modelState.selection})),ze=ye[0],tt=ye[1];ze&&ie.pushUndoStop(),ie.executeCommands(this.id,tt),J.setPrevEditOperationType(2)},fe}(ue))),_e.DeleteRight=Object(ne.g)(new(function(se){B(fe,se);function fe(){return se.call(this,{id:"deleteRight",precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:20,mac:{primary:20,secondary:[256|34,256|20]}}})||this}return fe.prototype.runCoreEditingCommand=function(ie,J,me){var ye=R.a.deleteRight(J.getPrevEditOperationType(),J.context.config,J.context.model,J.getAll().map(function(_t){return _t.modelState.selection})),ze=ye[0],tt=ye[1];ze&&ie.pushUndoStop(),ie.executeCommands(this.id,tt),J.setPrevEditOperationType(3)},fe}(ue)))})(q||(q={}));function Z(_e){_e.register()}var ce=function(_e){B(ue,_e);function ue(se){var fe=_e.call(this,se)||this;return fe._editorHandler=se.editorHandler,fe._inputHandler=se.inputHandler,fe}return ue.prototype.runCommand=function(se,fe){var ie=se.get(N.a).getFocusedCodeEditor();if(ie&&ie.hasTextFocus())return this._runEditorHandler(se,ie,fe);var J=document.activeElement;if(J&&["input","textarea"].indexOf(J.tagName.toLowerCase())>=0){document.execCommand(this._inputHandler);return}var me=se.get(N.a).getActiveCodeEditor();if(me)return me.focus(),this._runEditorHandler(se,me,fe)},ue.prototype._runEditorHandler=function(se,fe,ie){var J=this._editorHandler;typeof J=="string"?fe.trigger("keyboard",J,ie):(ie=ie||{},ie.source="keyboard",J.runEditorCommand(se,fe,ie))},ue}(ne.a),Me=function(_e){B(ue,_e);function ue(se,fe,ie){var J=_e.call(this,{id:se,precondition:void 0,description:ie})||this;return J._handlerId=fe,J}return ue.prototype.runCommand=function(se,fe){var ie=se.get(N.a).getFocusedCodeEditor();if(!ie)return;ie.trigger("keyboard",this._handlerId,fe)},ue}(ne.a);Z(new ce({editorHandler:Se.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:m.a.textInputFocus,kbOpts:{weight:H,kbExpr:null,primary:2048|31},menuOpts:{menuId:25,group:"1_basic",title:I.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),Z(new ce({editorHandler:g.b.Undo,inputHandler:"undo",id:g.b.Undo,precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|56},menuOpts:{menuId:17,group:"1_do",title:I.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),Z(new Me("default:"+g.b.Undo,g.b.Undo)),Z(new ce({editorHandler:g.b.Redo,inputHandler:"redo",id:g.b.Redo,precondition:m.a.writable,kbOpts:{weight:H,kbExpr:m.a.textInputFocus,primary:2048|55,secondary:[2048|1024|56],mac:{primary:2048|1024|56}},menuOpts:{menuId:17,group:"1_do",title:I.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),Z(new Me("default:"+g.b.Redo,g.b.Redo));function Ve(_e,ue){Z(new Me("default:"+_e,_e)),Z(new Me(_e,_e,ue))}Ve(g.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),Ve(g.b.ReplacePreviousChar),Ve(g.b.CompositionStart),Ve(g.b.CompositionEnd),Ve(g.b.Paste),Ve(g.b.Cut)},LLZ0:function(wt,P,r){},LrZB:function(wt,P,r){},LzG9:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return r.e(249).then(r.bind(null,"i7BE"))}})},MgSW:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return r.e(233).then(r.bind(null,"kBTG"))}})},Mn97:function(wt,P,r){"use strict";r.d(P,"a",function(){return U}),r.d(P,"b",function(){return j});var I=r("bN5T"),oe=r("YK2C"),ne=function(){var G=function(E,x){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var A in D)D.hasOwnProperty(A)&&(K[A]=D[A])},G(E,x)};return function(R,E){G(R,E);function x(){this.constructor=R}R.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}}(),N=function(G,R,E,x){function K(D){return D instanceof E?D:new E(function(A){A(D)})}return new(E||(E=Promise))(function(D,A){function te(f){try{_(x.next(f))}catch(p){A(p)}}function z(f){try{_(x.throw(f))}catch(p){A(p)}}function _(f){f.done?D(f.value):K(f.value).then(te,z)}_((x=x.apply(G,R||[])).next())})},F=function(G,R){var E={label:0,sent:function(){if(D[0]&1)throw D[1];return D[1]},trys:[],ops:[]},x,K,D,A;return A={next:te(0),throw:te(1),return:te(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function te(_){return function(f){return z([_,f])}}function z(_){if(x)throw new TypeError("Generator is already executing.");for(;E;)try{if(x=1,K&&(D=_[0]&2?K.return:_[0]?K.throw||((D=K.return)&&D.call(K),0):K.next)&&!(D=D.call(K,_[1])).done)return D;(K=0,D)&&(_=[_[0]&2,D.value]);switch(_[0]){case 0:case 1:D=_;break;case 4:return E.label++,{value:_[1],done:!1};case 5:E.label++,K=_[1],_=[0];continue;case 7:_=E.ops.pop(),E.trys.pop();continue;default:if(!(D=E.trys,D=D.length>0&&D[D.length-1])&&(_[0]===6||_[0]===2)){E=0;continue}if(_[0]===3&&(!D||_[1]>D[0]&&_[1]<D[3])){E.label=_[1];break}if(_[0]===6&&E.label<D[1]){E.label=D[1],D=_;break}if(D&&E.label<D[2]){E.label=D[2],E.ops.push(_);break}D[2]&&E.ops.pop(),E.trys.pop();continue}_=R.call(G,E)}catch(f){_=[6,f],K=0}finally{x=D=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},U=function(G){ne(R,G);function R(E,x,K,D,A){x===void 0&&(x=""),K===void 0&&(K=""),D===void 0&&(D=!0);var te=G.call(this)||this;return te._onDidChange=te._register(new oe.a),te.onDidChange=te._onDidChange.event,te._enabled=!0,te._checked=!1,te._id=E,te._label=x,te._cssClass=K,te._enabled=D,te._actionCallback=A,te}return Object.defineProperty(R.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(R.prototype,"label",{get:function(){return this._label},set:function(x){this._setLabel(x)},enumerable:!0,configurable:!0}),R.prototype._setLabel=function(E){this._label!==E&&(this._label=E,this._onDidChange.fire({label:E}))},Object.defineProperty(R.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(x){this._setTooltip(x)},enumerable:!0,configurable:!0}),R.prototype._setTooltip=function(E){this._tooltip!==E&&(this._tooltip=E,this._onDidChange.fire({tooltip:E}))},Object.defineProperty(R.prototype,"class",{get:function(){return this._cssClass},set:function(x){this._setClass(x)},enumerable:!0,configurable:!0}),R.prototype._setClass=function(E){this._cssClass!==E&&(this._cssClass=E,this._onDidChange.fire({class:E}))},Object.defineProperty(R.prototype,"enabled",{get:function(){return this._enabled},set:function(x){this._setEnabled(x)},enumerable:!0,configurable:!0}),R.prototype._setEnabled=function(E){this._enabled!==E&&(this._enabled=E,this._onDidChange.fire({enabled:E}))},Object.defineProperty(R.prototype,"checked",{get:function(){return this._checked},set:function(x){this._setChecked(x)},enumerable:!0,configurable:!0}),R.prototype._setChecked=function(E){this._checked!==E&&(this._checked=E,this._onDidChange.fire({checked:E}))},R.prototype.run=function(E,x){return this._actionCallback?this._actionCallback(E):Promise.resolve(!0)},R}(I.a),j=function(G){ne(R,G);function R(){var E=G!==null&&G.apply(this,arguments)||this;return E._onDidBeforeRun=E._register(new oe.a),E.onDidBeforeRun=E._onDidBeforeRun.event,E._onDidRun=E._register(new oe.a),E.onDidRun=E._onDidRun.event,E}return R.prototype.run=function(E,x){return N(this,void 0,void 0,function(){var K,D;return F(this,function(A){switch(A.label){case 0:if(!E.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:E}),A.label=1;case 1:return A.trys.push([1,3,,4]),[4,this.runAction(E,x)];case 2:return K=A.sent(),this._onDidRun.fire({action:E,result:K}),[3,4];case 3:return D=A.sent(),this._onDidRun.fire({action:E,error:D}),[3,4];case 4:return[2]}})})},R.prototype.runAction=function(E,x){var K=x?E.run(x):E.run();return Promise.resolve(K)},R}(I.a)},N7KK:function(wt,P,r){"use strict";r.d(P,"a",function(){return Ve}),r.d(P,"f",function(){return se}),r.d(P,"e",function(){return fe}),r.d(P,"d",function(){return ye}),r.d(P,"b",function(){return ze}),r.d(P,"c",function(){return $e});var I=r("mMfk"),oe=r("g9ht"),ne=r("bN5T"),N=r("yqRl"),F=r("Inmo"),U=r("2/w6"),j=r("fF8p"),G=r("S7i+"),R=r("3HcJ"),E=r("/RM0"),x=r("YK2C"),K=r("6zAk"),D=function(){var we=function(ee,Pe){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,Te){ve.__proto__=Te}||function(ve,Te){for(var Ie in Te)Te.hasOwnProperty(Ie)&&(ve[Ie]=Te[Ie])},we(ee,Pe)};return function(k,ee){we(k,ee);function Pe(){this.constructor=k}k.prototype=ee===null?Object.create(ee):(Pe.prototype=ee.prototype,new Pe)}}(),A;(function(we){we.TREE="tree",we.FORM="form"})(A||(A={}));var te=function(we){D(k,we);function k(ee,Pe){return we.call(this,"ListError ["+ee+"] "+Pe)||this}return k}(Error),z=r("GIAr"),_=r("Ytku"),f=r("mucJ"),p=function(){function we(k){this.spliceables=k}return we.prototype.splice=function(k,ee,Pe){this.spliceables.forEach(function(ve){return ve.splice(k,ee,Pe)})},we}(),g=r("epcv"),m=r("VV9f"),w=function(){var we=function(ee,Pe){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,Te){ve.__proto__=Te}||function(ve,Te){for(var Ie in Te)Te.hasOwnProperty(Ie)&&(ve[Ie]=Te[Ie])},we(ee,Pe)};return function(k,ee){we(k,ee);function Pe(){this.constructor=k}k.prototype=ee===null?Object.create(ee):(Pe.prototype=ee.prototype,new Pe)}}(),B=function(){return B=Object.assign||function(we){for(var k,ee=1,Pe=arguments.length;ee<Pe;ee++){k=arguments[ee];for(var ve in k)Object.prototype.hasOwnProperty.call(k,ve)&&(we[ve]=k[ve])}return we},B.apply(this,arguments)},H=function(we,k,ee,Pe){var ve=arguments.length,Te=ve<3?k:Pe===null?Pe=Object.getOwnPropertyDescriptor(k,ee):Pe,Ie;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Te=Reflect.decorate(we,k,ee,Pe);else for(var pe=we.length-1;pe>=0;pe--)(Ie=we[pe])&&(Te=(ve<3?Ie(Te):ve>3?Ie(k,ee,Te):Ie(k,ee))||Te);return ve>3&&Te&&Object.defineProperty(k,ee,Te),Te},re=function(){for(var we=0,k=0,ee=arguments.length;k<ee;k++)we+=arguments[k].length;for(var Pe=Array(we),ve=0,k=0;k<ee;k++)for(var Te=arguments[k],Ie=0,pe=Te.length;Ie<pe;Ie++,ve++)Pe[ve]=Te[Ie];return Pe},he=function(){function we(k){this.trait=k,this.renderedElements=[]}return Object.defineProperty(we.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),we.prototype.renderTemplate=function(k){return k},we.prototype.renderElement=function(k,ee,Pe){var ve=Object(F.k)(this.renderedElements,function(Ie){return Ie.templateData===Pe});if(ve>=0){var Te=this.renderedElements[ve];this.trait.unrender(Pe),Te.index=ee}else{var Te={index:ee,templateData:Pe};this.renderedElements.push(Te)}this.trait.renderIndex(ee,Pe)},we.prototype.splice=function(k,ee,Pe){for(var ve=[],Te=0,Ie=this.renderedElements;Te<Ie.length;Te++){var pe=Ie[Te];pe.index<k?ve.push(pe):pe.index>=k+ee&&ve.push({index:pe.index+Pe-ee,templateData:pe.templateData})}this.renderedElements=ve},we.prototype.renderIndexes=function(k){for(var ee=0,Pe=this.renderedElements;ee<Pe.length;ee++){var ve=Pe[ee],Te=ve.index,Ie=ve.templateData;k.indexOf(Te)>-1&&this.trait.renderIndex(Te,Ie)}},we.prototype.disposeTemplate=function(k){var ee=Object(F.k)(this.renderedElements,function(Pe){return Pe.templateData===k});if(ee<0)return;this.renderedElements.splice(ee,1)},we}(),Ee=function(){function we(k){this._trait=k,this.indexes=[],this.sortedIndexes=[],this._onChange=new x.a,this.onChange=this._onChange.event}return Object.defineProperty(we.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"renderer",{get:function(){return new he(this)},enumerable:!0,configurable:!0}),we.prototype.splice=function(k,ee,Pe){var ve=Pe.length-ee,Te=k+ee,Ie=re(this.sortedIndexes.filter(function(pe){return pe<k}),Pe.map(function(pe,nt){return pe?nt+k:-1}).filter(function(pe){return pe!==-1}),this.sortedIndexes.filter(function(pe){return pe>=Te}).map(function(pe){return pe+ve}));this.renderer.splice(k,ee,Pe.length),this._set(Ie,Ie)},we.prototype.renderIndex=function(k,ee){j.X(ee,this._trait,this.contains(k))},we.prototype.unrender=function(k){j.O(k,this._trait)},we.prototype.set=function(k,ee){return this._set(k,re(k).sort(Xe),ee)},we.prototype._set=function(k,ee,Pe){var ve=this.indexes,Te=this.sortedIndexes;this.indexes=k,this.sortedIndexes=ee;var Ie=Xt(Te,k);return this.renderer.renderIndexes(Ie),this._onChange.fire({indexes:k,browserEvent:Pe}),ve},we.prototype.get=function(){return this.indexes},we.prototype.contains=function(k){return Object(F.c)(this.sortedIndexes,k,Xe)>=0},we.prototype.dispose=function(){Object(ne.f)(this._onChange)},H([U.a],we.prototype,"renderer",null),we}(),Se=function(we){w(k,we);function k(){return we.call(this,"focused")||this}return k.prototype.renderIndex=function(ee,Pe){we.prototype.renderIndex.call(this,ee,Pe),this.contains(ee)?Pe.setAttribute("aria-selected","true"):Pe.removeAttribute("aria-selected")},k}(Ee),q=function(){function we(k,ee,Pe){this.trait=k,this.view=ee,this.identityProvider=Pe}return we.prototype.splice=function(k,ee,Pe){var ve=this;if(!this.identityProvider)return this.trait.splice(k,ee,Pe.map(function(){return!1}));var Te=this.trait.get().map(function(pe){return ve.identityProvider.getId(ve.view.element(pe)).toString()}),Ie=Pe.map(function(pe){return Te.indexOf(ve.identityProvider.getId(pe).toString())>-1});this.trait.splice(k,ee,Ie)},we}();function Z(we){return we.tagName==="INPUT"||we.tagName==="TEXTAREA"}var ce=function(){function we(k,ee,Pe){this.list=k,this.view=ee,this.disposables=new ne.b;var ve=Pe.multipleSelectionSupport!==!1;this.openController=Pe.openController||me;var Te=x.b.chain(Object(K.a)(ee.domNode,"keydown")).filter(function(Ie){return!Z(Ie.target)}).map(function(Ie){return new E.a(Ie)});Te.filter(function(Ie){return Ie.keyCode===3}).on(this.onEnter,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===16}).on(this.onUpArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===18}).on(this.onDownArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===11}).on(this.onPageUpArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===12}).on(this.onPageDownArrow,this,this.disposables),Te.filter(function(Ie){return Ie.keyCode===9}).on(this.onEscape,this,this.disposables),ve&&Te.filter(function(Ie){return(G.e?Ie.metaKey:Ie.ctrlKey)&&Ie.keyCode===31}).on(this.onCtrlA,this,this.disposables)}return we.prototype.onEnter=function(k){k.preventDefault(),k.stopPropagation(),this.list.setSelection(this.list.getFocus(),k.browserEvent),this.openController.shouldOpen(k.browserEvent)&&this.list.open(this.list.getFocus(),k.browserEvent)},we.prototype.onUpArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusPrevious(1,!1,k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onDownArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusNext(1,!1,k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onPageUpArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusPreviousPage(k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onPageDownArrow=function(k){k.preventDefault(),k.stopPropagation(),this.list.focusNextPage(k.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},we.prototype.onCtrlA=function(k){k.preventDefault(),k.stopPropagation(),this.list.setSelection(Object(F.u)(this.list.length),k.browserEvent),this.view.domNode.focus()},we.prototype.onEscape=function(k){k.preventDefault(),k.stopPropagation(),this.list.setSelection([],k.browserEvent),this.view.domNode.focus()},we.prototype.dispose=function(){this.disposables.dispose()},we}(),Me;(function(we){we[we.Idle=0]="Idle",we[we.Typing=1]="Typing"})(Me||(Me={}));var Ve=new(function(){function we(){}return we.prototype.mightProducePrintableCharacter=function(k){return k.ctrlKey||k.metaKey||k.altKey?!1:k.keyCode>=31&&k.keyCode<=56||k.keyCode>=21&&k.keyCode<=30||k.keyCode>=93&&k.keyCode<=102||k.keyCode>=80&&k.keyCode<=90},we}()),_e=function(){function we(k,ee,Pe,ve){this.list=k,this.view=ee,this.keyboardNavigationLabelProvider=Pe,this.delegate=ve,this.enabled=!1,this.state=Me.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new ne.b,this.disposables=new ne.b,this.updateOptions(k.options)}return we.prototype.updateOptions=function(k){var ee=typeof k.enableKeyboardNavigation=="undefined"?!0:!!k.enableKeyboardNavigation;ee?this.enable():this.disable(),typeof k.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=k.automaticKeyboardNavigation)},we.prototype.enable=function(){var k=this;if(this.enabled)return;var ee=x.b.chain(Object(K.a)(this.view.domNode,"keydown")).filter(function(Te){return!Z(Te.target)}).filter(function(){return k.automaticKeyboardNavigation||k.triggered}).map(function(Te){return new E.a(Te)}).filter(function(Te){return k.delegate.mightProducePrintableCharacter(Te)}).forEach(function(Te){Te.stopPropagation(),Te.preventDefault()}).map(function(Te){return Te.browserEvent.key}).event,Pe=x.b.debounce(ee,function(){return null},800),ve=x.b.reduce(x.b.any(ee,Pe),function(Te,Ie){return Ie===null?null:(Te||"")+Ie});ve(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1},we.prototype.disable=function(){if(!this.enabled)return;this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1},we.prototype.onInput=function(k){if(!k){this.state=Me.Idle,this.triggered=!1;return}var ee=this.list.getFocus(),Pe=ee.length>0?ee[0]:0,ve=this.state===Me.Idle?1:0;this.state=Me.Typing;for(var Te=0;Te<this.list.length;Te++){var Ie=(Pe+Te+ve)%this.list.length,pe=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(Ie)),nt=pe&&pe.toString();if(typeof nt=="undefined"||Object(m.f)(k,nt)){this.list.setFocus([Ie]),this.list.reveal(Ie);return}}},we.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},we}(),ue=function(){function we(k,ee){this.list=k,this.view=ee,this.disposables=new ne.b;var Pe=x.b.chain(Object(K.a)(ee.domNode,"keydown")).filter(function(ve){return!Z(ve.target)}).map(function(ve){return new E.a(ve)});Pe.filter(function(ve){return ve.keyCode===2&&!ve.ctrlKey&&!ve.metaKey&&!ve.shiftKey&&!ve.altKey}).on(this.onTab,this,this.disposables)}return we.prototype.onTab=function(k){if(k.target!==this.view.domNode)return;var ee=this.list.getFocus();if(ee.length===0)return;var Pe=this.view.domElement(ee[0]);if(!Pe)return;var ve=Pe.querySelector("[tabIndex]");if(!ve||!(ve instanceof HTMLElement)||ve.tabIndex===-1)return;var Te=window.getComputedStyle(ve);if(Te.visibility==="hidden"||Te.display==="none")return;k.preventDefault(),k.stopPropagation(),ve.focus()},we.prototype.dispose=function(){this.disposables.dispose()},we}();function se(we){return G.e?we.browserEvent.metaKey:we.browserEvent.ctrlKey}function fe(we){return we.browserEvent.shiftKey}function ie(we){return we instanceof MouseEvent&&we.button===2}var J={isSelectionSingleChangeEvent:se,isSelectionRangeChangeEvent:fe},me={shouldOpen:function(k){return k instanceof MouseEvent?!ie(k):!0}},ye=function(){function we(k){this.list=k,this.disposables=new ne.b,this.multipleSelectionSupport=!(k.options.multipleSelectionSupport===!1),this.multipleSelectionSupport&&(this.multipleSelectionController=k.options.multipleSelectionController||J),this.openController=k.options.openController||me,this.mouseSupport=typeof k.options.mouseSupport=="undefined"||!!k.options.mouseSupport,this.mouseSupport&&(k.onMouseDown(this.onMouseDown,this,this.disposables),k.onContextMenu(this.onContextMenu,this,this.disposables),k.onMouseDblClick(this.onDoubleClick,this,this.disposables),k.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(R.b.addTarget(k.getHTMLElement()))),k.onMouseClick(this.onPointer,this,this.disposables),k.onMouseMiddleClick(this.onPointer,this,this.disposables),k.onTap(this.onPointer,this,this.disposables)}return we.prototype.isSelectionSingleChangeEvent=function(k){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(k):G.e?k.browserEvent.metaKey:k.browserEvent.ctrlKey},we.prototype.isSelectionRangeChangeEvent=function(k){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(k):k.browserEvent.shiftKey},we.prototype.isSelectionChangeEvent=function(k){return this.isSelectionSingleChangeEvent(k)||this.isSelectionRangeChangeEvent(k)},we.prototype.onMouseDown=function(k){document.activeElement!==k.browserEvent.target&&this.list.domFocus()},we.prototype.onContextMenu=function(k){var ee=typeof k.index=="undefined"?[]:[k.index];this.list.setFocus(ee,k.browserEvent)},we.prototype.onPointer=function(k){if(!this.mouseSupport)return;if(Z(k.browserEvent.target))return;var ee=this.list.getFocus()[0],Pe=this.list.getSelection();ee=ee===void 0?Pe[0]:ee;var ve=k.index;if(typeof ve=="undefined"){this.list.setFocus([],k.browserEvent),this.list.setSelection([],k.browserEvent);return}if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(k))return this.changeSelection(k,ee);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(k))return this.changeSelection(k,ee);this.list.setFocus([ve],k.browserEvent),ie(k.browserEvent)||(this.list.setSelection([ve],k.browserEvent),this.openController.shouldOpen(k.browserEvent)&&this.list.open([ve],k.browserEvent))},we.prototype.onDoubleClick=function(k){if(Z(k.browserEvent.target))return;if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(k))return;var ee=this.list.getFocus();this.list.setSelection(ee,k.browserEvent),this.list.pin(ee)},we.prototype.changeSelection=function(k,ee){var Pe=k.index;if(this.isSelectionRangeChangeEvent(k)&&ee!==void 0){var ve=Math.min(ee,Pe),Te=Math.max(ee,Pe),Ie=Object(F.u)(ve,Te+1),pe=this.list.getSelection(),nt=Pt(Xt(pe,[ee]),ee);if(nt.length===0)return;var Et=Xt(Ie,Ke(pe,nt));this.list.setSelection(Et,k.browserEvent)}else if(this.isSelectionSingleChangeEvent(k)){var pe=this.list.getSelection(),Et=pe.filter(function(Ht){return Ht!==Pe});this.list.setFocus([Pe]),pe.length===Et.length?this.list.setSelection(re(Et,[Pe]),k.browserEvent):this.list.setSelection(Et,k.browserEvent)}},we.prototype.dispose=function(){this.disposables.dispose()},we}(),ze=function(){function we(k,ee){this.styleElement=k,this.selectorSuffix=ee}return we.prototype.style=function(k){var ee=this.selectorSuffix&&"."+this.selectorSuffix,Pe=[];k.listBackground&&(k.listBackground.isOpaque()?Pe.push(".monaco-list"+ee+" .monaco-list-rows { background: "+k.listBackground+"; }"):G.e||console.warn("List with id '"+this.selectorSuffix+"' was styled with a non-opaque background color. This will break sub-pixel antialiasing.")),k.listFocusBackground&&(Pe.push(".monaco-list"+ee+":focus .monaco-list-row.focused { background-color: "+k.listFocusBackground+"; }"),Pe.push(".monaco-list"+ee+":focus .monaco-list-row.focused:hover { background-color: "+k.listFocusBackground+"; }")),k.listFocusForeground&&Pe.push(".monaco-list"+ee+":focus .monaco-list-row.focused { color: "+k.listFocusForeground+"; }"),k.listActiveSelectionBackground&&(Pe.push(".monaco-list"+ee+":focus .monaco-list-row.selected { background-color: "+k.listActiveSelectionBackground+"; }"),Pe.push(".monaco-list"+ee+":focus .monaco-list-row.selected:hover { background-color: "+k.listActiveSelectionBackground+"; }")),k.listActiveSelectionForeground&&Pe.push(".monaco-list"+ee+":focus .monaco-list-row.selected { color: "+k.listActiveSelectionForeground+"; }"),k.listFocusAndSelectionBackground&&Pe.push(`
|
|
.monaco-drag-image,
|
|
.monaco-list`+ee+":focus .monaco-list-row.selected.focused { background-color: "+k.listFocusAndSelectionBackground+`; }
|
|
`),k.listFocusAndSelectionForeground&&Pe.push(`
|
|
.monaco-drag-image,
|
|
.monaco-list`+ee+":focus .monaco-list-row.selected.focused { color: "+k.listFocusAndSelectionForeground+`; }
|
|
`),k.listInactiveFocusBackground&&(Pe.push(".monaco-list"+ee+" .monaco-list-row.focused { background-color: "+k.listInactiveFocusBackground+"; }"),Pe.push(".monaco-list"+ee+" .monaco-list-row.focused:hover { background-color: "+k.listInactiveFocusBackground+"; }")),k.listInactiveSelectionBackground&&(Pe.push(".monaco-list"+ee+" .monaco-list-row.selected { background-color: "+k.listInactiveSelectionBackground+"; }"),Pe.push(".monaco-list"+ee+" .monaco-list-row.selected:hover { background-color: "+k.listInactiveSelectionBackground+"; }")),k.listInactiveSelectionForeground&&Pe.push(".monaco-list"+ee+" .monaco-list-row.selected { color: "+k.listInactiveSelectionForeground+"; }"),k.listHoverBackground&&Pe.push(".monaco-list"+ee+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+k.listHoverBackground+"; }"),k.listHoverForeground&&Pe.push(".monaco-list"+ee+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+k.listHoverForeground+"; }"),k.listSelectionOutline&&Pe.push(".monaco-list"+ee+" .monaco-list-row.selected { outline: 1px dotted "+k.listSelectionOutline+"; outline-offset: -1px; }"),k.listFocusOutline&&Pe.push(`
|
|
.monaco-drag-image,
|
|
.monaco-list`+ee+":focus .monaco-list-row.focused { outline: 1px solid "+k.listFocusOutline+`; outline-offset: -1px; }
|
|
`),k.listInactiveFocusOutline&&Pe.push(".monaco-list"+ee+" .monaco-list-row.focused { outline: 1px dotted "+k.listInactiveFocusOutline+"; outline-offset: -1px; }"),k.listHoverOutline&&Pe.push(".monaco-list"+ee+" .monaco-list-row:hover { outline: 1px dashed "+k.listHoverOutline+"; outline-offset: -1px; }"),k.listDropBackground&&Pe.push(`
|
|
.monaco-list`+ee+`.drop-target,
|
|
.monaco-list`+ee+` .monaco-list-rows.drop-target,
|
|
.monaco-list`+ee+" .monaco-list-row.drop-target { background-color: "+k.listDropBackground+` !important; color: inherit !important; }
|
|
`),k.listFilterWidgetBackground&&Pe.push(".monaco-list-type-filter { background-color: "+k.listFilterWidgetBackground+" }"),k.listFilterWidgetOutline&&Pe.push(".monaco-list-type-filter { border: 1px solid "+k.listFilterWidgetOutline+"; }"),k.listFilterWidgetNoMatchesOutline&&Pe.push(".monaco-list-type-filter.no-matches { border: 1px solid "+k.listFilterWidgetNoMatchesOutline+"; }"),k.listMatchesShadow&&Pe.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+k.listMatchesShadow+"; }");var ve=Pe.join(`
|
|
`);ve!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=ve)},we}(),tt={listFocusBackground:_.a.fromHex("#7FB0D0"),listActiveSelectionBackground:_.a.fromHex("#0E639C"),listActiveSelectionForeground:_.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:_.a.fromHex("#094771"),listFocusAndSelectionForeground:_.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:_.a.fromHex("#3F3F46"),listHoverBackground:_.a.fromHex("#2A2D2E"),listDropBackground:_.a.fromHex("#383B3D"),treeIndentGuidesStroke:_.a.fromHex("#a9a9a9")},_t={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:A.TREE};function Pt(we,k){var ee=we.indexOf(k);if(ee===-1)return[];for(var Pe=[],ve=ee-1;ve>=0&&we[ve]===k-(ee-ve);)Pe.push(we[ve--]);for(Pe.reverse(),ve=ee;ve<we.length&&we[ve]===k+(ve-ee);)Pe.push(we[ve++]);return Pe}function Xt(we,k){for(var ee=[],Pe=0,ve=0;Pe<we.length||ve<k.length;)if(Pe>=we.length)ee.push(k[ve++]);else if(ve>=k.length)ee.push(we[Pe++]);else if(we[Pe]===k[ve]){ee.push(we[Pe]),Pe++,ve++;continue}else we[Pe]<k[ve]?ee.push(we[Pe++]):ee.push(k[ve++]);return ee}function Ke(we,k){for(var ee=[],Pe=0,ve=0;Pe<we.length||ve<k.length;)if(Pe>=we.length)ee.push(k[ve++]);else if(ve>=k.length)ee.push(we[Pe++]);else if(we[Pe]===k[ve]){Pe++,ve++;continue}else we[Pe]<k[ve]?ee.push(we[Pe++]):ve++;return ee}var Xe=function(k,ee){return k-ee},Ze=function(){function we(k,ee){this._templateId=k,this.renderers=ee}return Object.defineProperty(we.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),we.prototype.renderTemplate=function(k){return this.renderers.map(function(ee){return ee.renderTemplate(k)})},we.prototype.renderElement=function(k,ee,Pe,ve){for(var Te=0,Ie=0,pe=this.renderers;Ie<pe.length;Ie++){var nt=pe[Ie];nt.renderElement(k,ee,Pe[Te++],ve)}},we.prototype.disposeElement=function(k,ee,Pe,ve){for(var Te=0,Ie=0,pe=this.renderers;Ie<pe.length;Ie++){var nt=pe[Ie];nt.disposeElement&&nt.disposeElement(k,ee,Pe[Te],ve),Te+=1}},we.prototype.disposeTemplate=function(k){for(var ee=0,Pe=0,ve=this.renderers;Pe<ve.length;Pe++){var Te=ve[Pe];Te.disposeTemplate(k[ee++])}},we}(),Ye=function(){function we(k){this.accessibilityProvider=k,this.templateId="a18n"}return we.prototype.renderTemplate=function(k){return k},we.prototype.renderElement=function(k,ee,Pe){var ve=this.accessibilityProvider.getAriaLabel(k);ve?Pe.setAttribute("aria-label",ve):Pe.removeAttribute("aria-label");var Te=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(k);typeof Te=="number"?Pe.setAttribute("aria-level",""+Te):Pe.removeAttribute("aria-level")},we.prototype.disposeTemplate=function(k){},we}(),ke=function(){function we(k,ee){this.list=k,this.dnd=ee}return we.prototype.getDragElements=function(k){var ee=this.list.getSelectedElements(),Pe=ee.indexOf(k)>-1?ee:[k];return Pe},we.prototype.getDragURI=function(k){return this.dnd.getDragURI(k)},we.prototype.getDragLabel=function(k,ee){return this.dnd.getDragLabel?this.dnd.getDragLabel(k,ee):void 0},we.prototype.onDragStart=function(k,ee){this.dnd.onDragStart&&this.dnd.onDragStart(k,ee)},we.prototype.onDragOver=function(k,ee,Pe,ve){return this.dnd.onDragOver(k,ee,Pe,ve)},we.prototype.onDragEnd=function(k){this.dnd.onDragEnd&&this.dnd.onDragEnd(k)},we.prototype.drop=function(k,ee,Pe,ve){this.dnd.drop(k,ee,Pe,ve)},we}(),$e=function(){function we(k,ee,Pe,ve,Te){Te===void 0&&(Te=_t),this.user=k,this._options=Te,this.eventBufferer=new x.c,this.disposables=new ne.b,this._onDidOpen=new x.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new x.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new x.a,this.onDidDispose=this._onDidDispose.event,this.focus=new Se,this.selection=new Ee("selected"),Object(f.g)(Te,tt,!1);var Ie=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=Te.accessibilityProvider,this.accessibilityProvider&&(Ie.push(new Ye(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),ve=ve.map(function(Tt){return new Ze(Tt.templateId,re(Ie,[Tt]))});var pe=B(B({},Te),{dnd:Te.dnd&&new ke(this,Te.dnd)});if(this.view=new z.b(ee,Pe,ve,pe),typeof Te.ariaRole!="string"?this.view.domNode.setAttribute("role",A.TREE):this.view.domNode.setAttribute("role",Te.ariaRole),Te.styleController)this.styleController=Te.styleController(this.view.domId);else{var nt=j.v(this.view.domNode);this.styleController=new ze(nt,this.view.domId)}if(this.spliceable=new p([new q(this.focus,this.view,Te.identityProvider),new q(this.selection,this.view,Te.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=x.b.map(Object(K.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=x.b.map(Object(K.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new ue(this,this.view)),typeof Te.keyboardSupport!="boolean"||Te.keyboardSupport){var Et=new ce(this,this.view,Te);this.disposables.add(Et)}if(Te.keyboardNavigationLabelProvider){var Rt=Te.keyboardNavigationDelegate||Ve;this.typeLabelController=new _e(this,this.view,Te.keyboardNavigationLabelProvider,Rt),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(Te)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),Te.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(oe.a)("aria list","{0}. Use the navigation keys to navigate.",Te.ariaLabel))}return Object.defineProperty(we.prototype,"onFocusChange",{get:function(){var ee=this;return x.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(Pe){return ee.toListEvent(Pe)})},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onSelectionChange",{get:function(){var ee=this;return x.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(Pe){return ee.toListEvent(Pe)})},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onContextMenu",{get:function(){var ee=this,Pe=x.b.chain(Object(K.a)(this.view.domNode,"keydown")).map(function(Ie){return new E.a(Ie)}).filter(function(Ie){return ee.didJustPressContextMenuKey=Ie.keyCode===58||Ie.shiftKey&&Ie.keyCode===68}).filter(function(Ie){return Ie.preventDefault(),Ie.stopPropagation(),!1}).event,ve=x.b.chain(Object(K.a)(this.view.domNode,"keyup")).filter(function(){var Ie=ee.didJustPressContextMenuKey;return ee.didJustPressContextMenuKey=!1,Ie}).filter(function(){return ee.getFocus().length>0&&!!ee.view.domElement(ee.getFocus()[0])}).map(function(Ie){var pe=ee.getFocus()[0],nt=ee.view.element(pe),Et=ee.view.domElement(pe);return{index:pe,element:nt,anchor:Et,browserEvent:Ie}}).event,Te=x.b.chain(this.view.onContextMenu).filter(function(){return!ee.didJustPressContextMenuKey}).map(function(Ie){var pe=Ie.element,nt=Ie.index,Et=Ie.browserEvent;return{element:pe,index:nt,anchor:{x:Et.clientX+1,y:Et.clientY},browserEvent:Et}}).event;return x.b.any(Pe,ve,Te)},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"onKeyDown",{get:function(){return Object(K.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),we.prototype.createMouseController=function(k){return new ye(this)},we.prototype.updateOptions=function(k){k===void 0&&(k={}),this._options=B(B({},this._options),k),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(we.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),we.prototype.splice=function(k,ee,Pe){var ve=this;if(Pe===void 0&&(Pe=[]),k<0||k>this.view.length)throw new te(this.user,"Invalid start index: "+k);if(ee<0)throw new te(this.user,"Invalid delete count: "+ee);if(ee===0&&Pe.length===0)return;this.eventBufferer.bufferEvents(function(){return ve.spliceable.splice(k,ee,Pe)})},we.prototype.rerender=function(){this.view.rerender()},we.prototype.element=function(k){return this.view.element(k)},Object.defineProperty(we.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(we.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(ee){this.view.setScrollTop(ee)},enumerable:!0,configurable:!0}),we.prototype.domFocus=function(){this.view.domNode.focus()},we.prototype.layout=function(k,ee){this.view.layout(k,ee)},we.prototype.setSelection=function(k,ee){for(var Pe=0,ve=k;Pe<ve.length;Pe++){var Te=ve[Pe];if(Te<0||Te>=this.length)throw new te(this.user,"Invalid index "+Te)}this.selection.set(k,ee)},we.prototype.getSelection=function(){return this.selection.get()},we.prototype.getSelectedElements=function(){var k=this;return this.getSelection().map(function(ee){return k.view.element(ee)})},we.prototype.setFocus=function(k,ee){for(var Pe=0,ve=k;Pe<ve.length;Pe++){var Te=ve[Pe];if(Te<0||Te>=this.length)throw new te(this.user,"Invalid index "+Te)}this.focus.set(k,ee)},we.prototype.focusNext=function(k,ee,Pe,ve){if(k===void 0&&(k=1),ee===void 0&&(ee=!1),this.length===0)return;var Te=this.focus.get(),Ie=this.findNextIndex(Te.length>0?Te[0]+k:0,ee,ve);Ie>-1&&this.setFocus([Ie],Pe)},we.prototype.focusPrevious=function(k,ee,Pe,ve){if(k===void 0&&(k=1),ee===void 0&&(ee=!1),this.length===0)return;var Te=this.focus.get(),Ie=this.findPreviousIndex(Te.length>0?Te[0]-k:0,ee,ve);Ie>-1&&this.setFocus([Ie],Pe)},we.prototype.focusNextPage=function(k,ee){var Pe=this,ve=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);ve=ve===0?0:ve-1;var Te=this.view.element(ve),Ie=this.getFocusedElements()[0];if(Ie!==Te){var pe=this.findPreviousIndex(ve,!1,ee);pe>-1&&Ie!==this.view.element(pe)?this.setFocus([pe],k):this.setFocus([ve],k)}else{var nt=this.view.getScrollTop();this.view.setScrollTop(nt+this.view.renderHeight-this.view.elementHeight(ve)),this.view.getScrollTop()!==nt&&setTimeout(function(){return Pe.focusNextPage(k,ee)},0)}},we.prototype.focusPreviousPage=function(k,ee){var Pe=this,ve,Te=this.view.getScrollTop();Te===0?ve=this.view.indexAt(Te):ve=this.view.indexAfter(Te-1);var Ie=this.view.element(ve),pe=this.getFocusedElements()[0];if(pe!==Ie){var nt=this.findNextIndex(ve,!1,ee);nt>-1&&pe!==this.view.element(nt)?this.setFocus([nt],k):this.setFocus([ve],k)}else{var Et=Te;this.view.setScrollTop(Te-this.view.renderHeight),this.view.getScrollTop()!==Et&&setTimeout(function(){return Pe.focusPreviousPage(k,ee)},0)}},we.prototype.focusLast=function(k,ee){if(this.length===0)return;var Pe=this.findPreviousIndex(this.length-1,!1,ee);Pe>-1&&this.setFocus([Pe],k)},we.prototype.focusFirst=function(k,ee){if(this.length===0)return;var Pe=this.findNextIndex(0,!1,ee);Pe>-1&&this.setFocus([Pe],k)},we.prototype.findNextIndex=function(k,ee,Pe){ee===void 0&&(ee=!1);for(var ve=0;ve<this.length;ve++){if(k>=this.length&&!ee)return-1;if(k=k%this.length,!Pe||Pe(this.element(k)))return k;k++}return-1},we.prototype.findPreviousIndex=function(k,ee,Pe){ee===void 0&&(ee=!1);for(var ve=0;ve<this.length;ve++){if(k<0&&!ee)return-1;if(k=(this.length+k%this.length)%this.length,!Pe||Pe(this.element(k)))return k;k--}return-1},we.prototype.getFocus=function(){return this.focus.get()},we.prototype.getFocusedElements=function(){var k=this;return this.getFocus().map(function(ee){return k.view.element(ee)})},we.prototype.reveal=function(k,ee){if(k<0||k>=this.length)throw new te(this.user,"Invalid index "+k);var Pe=this.view.getScrollTop(),ve=this.view.elementTop(k),Te=this.view.elementHeight(k);if(Object(N.h)(ee)){var Ie=Te-this.view.renderHeight;this.view.setScrollTop(Ie*Object(g.a)(ee,0,1)+ve)}else{var pe=ve+Te,nt=Pe+this.view.renderHeight;ve<Pe&&pe>=nt||(ve<Pe?this.view.setScrollTop(ve):pe>=nt&&this.view.setScrollTop(pe-this.view.renderHeight))}},we.prototype.getRelativeTop=function(k){if(k<0||k>=this.length)throw new te(this.user,"Invalid index "+k);var ee=this.view.getScrollTop(),Pe=this.view.elementTop(k),ve=this.view.elementHeight(k);if(Pe<ee||Pe+ve>ee+this.view.renderHeight)return null;var Te=ve-this.view.renderHeight;return Math.abs((ee-Pe)/Te)},we.prototype.getHTMLElement=function(){return this.view.domNode},we.prototype.open=function(k,ee){for(var Pe=this,ve=0,Te=k;ve<Te.length;ve++){var Ie=Te[ve];if(Ie<0||Ie>=this.length)throw new te(this.user,"Invalid index "+Ie)}this._onDidOpen.fire({indexes:k,elements:k.map(function(pe){return Pe.view.element(pe)}),browserEvent:ee})},we.prototype.pin=function(k,ee){for(var Pe=this,ve=0,Te=k;ve<Te.length;ve++){var Ie=Te[ve];if(Ie<0||Ie>=this.length)throw new te(this.user,"Invalid index "+Ie)}this._onDidPin.fire({indexes:k,elements:k.map(function(pe){return Pe.view.element(pe)}),browserEvent:ee})},we.prototype.style=function(k){this.styleController.style(k)},we.prototype.toListEvent=function(k){var ee=this,Pe=k.indexes,ve=k.browserEvent;return{indexes:Pe,elements:Pe.map(function(Te){return ee.view.element(Te)}),browserEvent:ve}},we.prototype._onFocusChange=function(){var k=this.focus.get();j.X(this.view.domNode,"element-focused",k.length>0),this.onDidChangeActiveDescendant()},we.prototype.onDidChangeActiveDescendant=function(){var k,ee=this.focus.get();if(ee.length>0){var Pe=void 0;((k=this.accessibilityProvider)===null||k===void 0?void 0:k.getActiveDescendantId)&&(Pe=this.accessibilityProvider.getActiveDescendantId(this.view.element(ee[0]))),this.view.domNode.setAttribute("aria-activedescendant",Pe||this.view.getElementDomId(ee[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},we.prototype._onSelectionChange=function(){var k=this.selection.get();j.X(this.view.domNode,"selection-none",k.length===0),j.X(this.view.domNode,"selection-single",k.length===1),j.X(this.view.domNode,"selection-multiple",k.length>1)},we.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},H([U.a],we.prototype,"onFocusChange",null),H([U.a],we.prototype,"onSelectionChange",null),H([U.a],we.prototype,"onContextMenu",null),we}()},NCja:function(wt,P,r){},NFtf:function(wt,P,r){"use strict";r.r(P),r.d(P,"LanguageServiceDefaultsImpl",function(){return N});var I=r("1lNs"),oe=r.n(I);"use strict";var ne=monaco.Emitter,N=function(){function E(x,K,D){this._onDidChange=new ne,this._languageId=x,this.setDiagnosticsOptions(K),this.setModeConfiguration(D)}return Object.defineProperty(E.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),E.prototype.setDiagnosticsOptions=function(x){this._diagnosticsOptions=x||Object.create(null),this._onDidChange.fire(this)},E.prototype.setModeConfiguration=function(x){this._modeConfiguration=x||Object.create(null),this._onDidChange.fire(this)},E}(),F={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},U={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},j=new N("json",F,U);function G(){return{jsonDefaults:j}}monaco.languages.json=G();function R(){return r.e(202).then(r.bind(null,"cm7A"))}monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){R().then(function(E){return E.setupMode(j)})})},NIjb:function(wt,P,r){"use strict";r.d(P,"a",function(){return I}),r.d(P,"b",function(){return N});function I(j,G){G===void 0&&(G=0);switch(typeof j){case"object":return j===null?oe(349,G):Array.isArray(j)?F(j,G):U(j,G);case"string":return N(j,G);case"boolean":return ne(j,G);case"number":return oe(j,G);case"undefined":return oe(0,937);default:return oe(0,617)}}function oe(j,G){return(G<<5)-G+j|0}function ne(j,G){return oe(j?433:863,G)}function N(j,G){G=oe(149417,G);for(var R=0,E=j.length;R<E;R++)G=oe(j.charCodeAt(R),G);return G}function F(j,G){return G=oe(104579,G),j.reduce(function(R,E){return I(E,R)},G)}function U(j,G){return G=oe(181387,G),Object.keys(j).sort().reduce(function(R,E){return R=N(E,R),I(j[E],R)},G)}},Ndl5:function(wt,P,r){"use strict";r.d(P,"a",function(){return j}),r.d(P,"b",function(){return f});var I=r("g9ht"),oe=r("YK2C"),ne=r("E+fE"),N=r("yqRl"),F=r("4Hnn"),U=r("emi/"),j={Configuration:"base.contributions.configuration"},G={properties:{},patternProperties:{}},R={properties:{},patternProperties:{}},E={properties:{},patternProperties:{}},x={properties:{},patternProperties:{}},K={properties:{},patternProperties:{}},D={properties:{},patternProperties:{}},A="vscode://schemas/settings/resourceLanguage",te=ne.a.as(F.a.JSONContribution),z=function(){function w(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new oe.a,this._onDidUpdateConfiguration=new oe.a,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:I.a("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},te.registerSchema(A,this.resourceLanguageSettingsSchema)}return w.prototype.registerConfiguration=function(B,H){H===void 0&&(H=!0),this.registerConfigurations([B],H)},w.prototype.registerConfigurations=function(B,H){var re=this;H===void 0&&(H=!0);var he=[];B.forEach(function(Ee){he.push.apply(he,re.validateAndRegisterProperties(Ee,H)),re.configurationContributors.push(Ee),re.registerJSONConfiguration(Ee)}),te.registerSchema(A,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(he)},w.prototype.registerOverrideIdentifiers=function(B){for(var H=0,re=B;H<re.length;H++){var he=re[H];this.overrideIdentifiers.add(he)}this.updateOverridePropertyPatternKey()},w.prototype.validateAndRegisterProperties=function(B,H,re){H===void 0&&(H=!0),re===void 0&&(re=3),re=N.l(B.scope)?re:B.scope;var he=[],Ee=B.properties;if(Ee)for(var Se in Ee){if(H&&m(Se)){delete Ee[Se];continue}var q=Ee[Se],Z=q.default;if(N.k(Z)&&(q.default=p(q.type)),f.test(Se)?q.scope=void 0:q.scope=N.l(q.scope)?re:q.scope,Ee[Se].hasOwnProperty("included")&&!Ee[Se].included){this.excludedConfigurationProperties[Se]=Ee[Se],delete Ee[Se];continue}else this.configurationProperties[Se]=Ee[Se];he.push(Se)}var ce=B.allOf;if(ce)for(var Me=0,Ve=ce;Me<Ve.length;Me++){var _e=Ve[Me];he.push.apply(he,this.validateAndRegisterProperties(_e,H,re))}return he},w.prototype.getConfigurationProperties=function(){return this.configurationProperties},w.prototype.registerJSONConfiguration=function(B){var H=this,re=function he(Ee){var Se=Ee.properties;if(Se)for(var q in Se){G.properties[q]=Se[q];switch(Se[q].scope){case 1:R.properties[q]=Se[q];break;case 2:E.properties[q]=Se[q];break;case 6:x.properties[q]=Se[q];break;case 3:K.properties[q]=Se[q];break;case 4:D.properties[q]=Se[q];break;case 5:D.properties[q]=Se[q],H.resourceLanguageSettingsSchema.properties[q]=Se[q];break}}var Z=Ee.allOf;Z&&Z.forEach(he)};re(B)},w.prototype.updateOverridePropertyPatternKey=function(){for(var B,H=0,re=Object(U.e)(this.overrideIdentifiers);H<re.length;H++){var he=re[H],Ee="["+he+"]",Se={type:"object",description:I.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:I.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:A,default:(B=this.defaultOverridesConfigurationNode.properties[Ee])===null||B===void 0?void 0:B.default};G.properties[Ee]=Se,R.properties[Ee]=Se,E.properties[Ee]=Se,x.properties[Ee]=Se,K.properties[Ee]=Se,D.properties[Ee]=Se}this._onDidSchemaChange.fire()},w}(),_="\\[.*\\]$",f=new RegExp(_);function p(w){var B=Array.isArray(w)?w[0]:w;switch(B){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var g=new z;ne.a.add(j.Configuration,g);function m(w){return f.test(w)?I.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",w):g.getConfigurationProperties()[w]!==void 0?I.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",w):null}},O6p8:function(wt,P,r){},OJ8J:function(wt,P,r){"use strict";r.d(P,"b",function(){return G}),r.d(P,"a",function(){return R});var I=r("bN5T"),oe=r("yqRl"),ne=r("PoD0"),N=r("YK2C"),F=r("XAYP"),U=r("emi/"),j=function(){for(var E=0,x=0,K=arguments.length;x<K;x++)E+=arguments[x].length;for(var D=Array(E),A=0,x=0;x<K;x++)for(var te=arguments[x],z=0,_=te.length;z<_;z++,A++)D[A]=te[z];return D},G=Object(ne.c)("commandService"),R=new(function(){function E(){this._commands=new Map,this._onDidRegisterCommand=new N.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return E.prototype.registerCommand=function(x,K){var D=this;if(!x)throw new Error("invalid command");if(typeof x=="string"){if(!K)throw new Error("invalid command");return this.registerCommand({id:x,handler:K})}if(x.description){for(var A=[],te=0,z=x.description.args;te<z.length;te++){var _=z[te];A.push(_.constraint)}var f=x.handler;x.handler=function(B){for(var H=[],re=1;re<arguments.length;re++)H[re-1]=arguments[re];return Object(oe.m)(H,A),f.apply(void 0,j([B],H))}}var p=x.id,g=this._commands.get(p);g||(g=new F.a,this._commands.set(p,g));var m=g.unshift(x),w=Object(I.h)(function(){m();var B=D._commands.get(p);(B==null?void 0:B.isEmpty())&&D._commands.delete(p)});return this._onDidRegisterCommand.fire(p),w},E.prototype.registerCommandAlias=function(x,K){return R.registerCommand(x,function(D){for(var A,te=[],z=1;z<arguments.length;z++)te[z-1]=arguments[z];return(A=D.get(G)).executeCommand.apply(A,j([K],te))})},E.prototype.getCommand=function(x){var K=this._commands.get(x);return!K||K.isEmpty()?void 0:K.iterator().next().value},E.prototype.getCommands=function(){for(var x=new Map,K=0,D=Object(U.d)(this._commands);K<D.length;K++){var A=D[K],te=this.getCommand(A);te&&x.set(A,te)}return x},E}())},Oa5o:function(wt,P,r){},OciR:function(wt,P,r){},Ojgo:function(wt,P,r){"use strict";r.d(P,"b",function(){return ne}),r.d(P,"a",function(){return F});var I=r("zOJ8"),oe=r("S7i+"),ne;(function(U){U.inMemory="inmemory",U.vscode="vscode",U.internal="private",U.walkThrough="walkThrough",U.walkThroughSnippet="walkThroughSnippet",U.http="http",U.https="https",U.file="file",U.mailto="mailto",U.untitled="untitled",U.data="data",U.command="command",U.vscodeRemote="vscode-remote",U.vscodeRemoteResource="vscode-remote-resource",U.userData="vscode-userdata"})(ne||(ne={}));var N=function(){function U(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}return U.prototype.setPreferredWebSchema=function(j){this._preferredWebSchema=j},U.prototype.rewrite=function(j){if(this._delegate)return this._delegate(j);var G=j.authority,R=this._hosts[G];R&&R.indexOf(":")!==-1&&(R="["+R+"]");var E=this._ports[G],x=this._connectionTokens[G],K="path="+encodeURIComponent(j.path);return typeof x=="string"&&(K+="&tkn="+encodeURIComponent(x)),I.a.from({scheme:oe.g?this._preferredWebSchema:ne.vscodeRemoteResource,authority:R+":"+E,path:"/vscode-remote-resource",query:K})},U}(),F=new N},PQix:function(wt,P,r){"use strict";r.d(P,"a",function(){return I}),r.d(P,"b",function(){return oe});var I=function(){function ne(N){this._prefix=N,this._lastId=0}return ne.prototype.nextId=function(){return this._prefix+ ++this._lastId},ne}(),oe=new I("id#")},PXWS:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("zOJ8");function oe(N){var F=JSON.parse(N);return F=ne(F),F}function ne(N,F){if(F===void 0&&(F=0),!N||F>200)return N;if(typeof N=="object"){switch(N.$mid){case 1:return I.a.revive(N);case 2:return new RegExp(N.source,N.flags)}for(var U in N)Object.hasOwnProperty.call(N,U)&&(N[U]=ne(N[U],F+1))}return N}},PoD0:function(wt,P,r){"use strict";r.d(P,"b",function(){return I}),r.d(P,"a",function(){return oe}),r.d(P,"c",function(){return N}),r.d(P,"d",function(){return F});var I;(function(U){U.serviceIds=new Map,U.DI_TARGET="$di$target",U.DI_DEPENDENCIES="$di$dependencies";function j(G){return G[U.DI_DEPENDENCIES]||[]}U.getServiceDependencies=j})(I||(I={}));var oe=N("instantiationService");function ne(U,j,G,R){j[I.DI_TARGET]===j?j[I.DI_DEPENDENCIES].push({id:U,index:G,optional:R}):(j[I.DI_DEPENDENCIES]=[{id:U,index:G,optional:R}],j[I.DI_TARGET]=j)}function N(U){if(I.serviceIds.has(U))return I.serviceIds.get(U);var j=function G(R,E,x){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ne(G,R,x,!1)};return j.toString=function(){return U},I.serviceIds.set(U,j),j}function F(U){return function(j,G,R){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ne(U,j,R,!0)}}},Q5rX:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("vqGt"),oe=function(){function N(F,U){this._tokens=F,this._tokensCount=this._tokens.length>>>1,this._text=U}return N.prototype.equals=function(F){return F instanceof N?this.slicedEquals(F,0,this._tokensCount):!1},N.prototype.slicedEquals=function(F,U,j){if(this._text!==F._text)return!1;if(this._tokensCount!==F._tokensCount)return!1;for(var G=U<<1,R=G+(j<<1),E=G;E<R;E++)if(this._tokens[E]!==F._tokens[E])return!1;return!0},N.prototype.getLineContent=function(){return this._text},N.prototype.getCount=function(){return this._tokensCount},N.prototype.getStartOffset=function(F){return F>0?this._tokens[F-1<<1]:0},N.prototype.getMetadata=function(F){var U=this._tokens[(F<<1)+1];return U},N.prototype.getLanguageId=function(F){var U=this._tokens[(F<<1)+1];return I.x.getLanguageId(U)},N.prototype.getStandardTokenType=function(F){var U=this._tokens[(F<<1)+1];return I.x.getTokenType(U)},N.prototype.getForeground=function(F){var U=this._tokens[(F<<1)+1];return I.x.getForeground(U)},N.prototype.getClassName=function(F){var U=this._tokens[(F<<1)+1];return I.x.getClassNameFromMetadata(U)},N.prototype.getInlineStyle=function(F,U){var j=this._tokens[(F<<1)+1];return I.x.getInlineStyleFromMetadata(j,U)},N.prototype.getEndOffset=function(F){return this._tokens[F<<1]},N.prototype.findTokenIndexAtOffset=function(F){return N.findIndexInTokensArray(this._tokens,F)},N.prototype.inflate=function(){return this},N.prototype.sliceAndInflate=function(F,U,j){return new ne(this,F,U,j)},N.convertToEndOffset=function(F,U){for(var j=F.length>>>1,G=j-1,R=0;R<G;R++)F[R<<1]=F[R+1<<1];F[G<<1]=U},N.findIndexInTokensArray=function(F,U){if(F.length<=2)return 0;for(var j=0,G=(F.length>>>1)-1;j<G;){var R=j+Math.floor((G-j)/2),E=F[R<<1];if(E===U)return R+1;E<U?j=R+1:E>U&&(G=R)}return j},N}(),ne=function(){function N(F,U,j,G){this._source=F,this._startOffset=U,this._endOffset=j,this._deltaOffset=G,this._firstTokenIndex=F.findTokenIndexAtOffset(U),this._tokensCount=0;for(var R=this._firstTokenIndex,E=F.getCount();R<E;R++){var x=F.getStartOffset(R);if(x>=j)break;this._tokensCount++}}return N.prototype.equals=function(F){return F instanceof N?this._startOffset===F._startOffset&&this._endOffset===F._endOffset&&this._deltaOffset===F._deltaOffset&&this._source.slicedEquals(F._source,this._firstTokenIndex,this._tokensCount):!1},N.prototype.getCount=function(){return this._tokensCount},N.prototype.getForeground=function(F){return this._source.getForeground(this._firstTokenIndex+F)},N.prototype.getEndOffset=function(F){var U=this._source.getEndOffset(this._firstTokenIndex+F);return Math.min(this._endOffset,U)-this._startOffset+this._deltaOffset},N.prototype.getClassName=function(F){return this._source.getClassName(this._firstTokenIndex+F)},N.prototype.getInlineStyle=function(F,U){return this._source.getInlineStyle(this._firstTokenIndex+F,U)},N.prototype.findTokenIndexAtOffset=function(F){return this._source.findTokenIndexAtOffset(F+this._startOffset-this._deltaOffset)-this._firstTokenIndex},N}()},QHMs:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return r.e(241).then(r.bind(null,"FJ/h"))}})},QMTm:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return r.e(204).then(r.bind(null,"z260"))}})},QWes:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return r.e(215).then(r.bind(null,"vi59"))}})},QqjT:function(wt,P,r){"use strict";r.d(P,"e",function(){return ne}),r.d(P,"f",function(){return N}),r.d(P,"g",function(){return F}),r.d(P,"d",function(){return j}),r.d(P,"a",function(){return G}),r.d(P,"b",function(){return R}),r.d(P,"c",function(){return E});var I=function(){function x(){this.listeners=[],this.unexpectedErrorHandler=function(K){setTimeout(function(){throw K.stack?new Error(K.message+`
|
|
|
|
`+K.stack):K},0)}}return x.prototype.emit=function(K){this.listeners.forEach(function(D){D(K)})},x.prototype.onUnexpectedError=function(K){this.unexpectedErrorHandler(K),this.emit(K)},x.prototype.onUnexpectedExternalError=function(K){this.unexpectedErrorHandler(K)},x}(),oe=new I;function ne(x){j(x)||oe.onUnexpectedError(x);return}function N(x){j(x)||oe.onUnexpectedExternalError(x);return}function F(x){if(x instanceof Error){var K=x.name,D=x.message,A=x.stacktrace||x.stack;return{$isError:!0,name:K,message:D,stack:A}}return x}var U="Canceled";function j(x){return x instanceof Error&&x.name===U&&x.message===U}function G(){var x=new Error(U);return x.name=x.message,x}function R(x){return x?new Error("Illegal argument: "+x):new Error("Illegal argument")}function E(x){return x?new Error("Illegal state: "+x):new Error("Illegal state")}},"Qr/v":function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("keybindingService")},Qun0:function(wt,P,r){"use strict";r.d(P,"b",function(){return U}),r.d(P,"a",function(){return j}),r.d(P,"f",function(){return G}),r.d(P,"e",function(){return E}),r.d(P,"d",function(){return K}),r.d(P,"c",function(){return D});var I=r("QqjT"),oe=function(){function A(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return A.prototype.define=function(te,z){this._keyCodeToStr[te]=z,this._strToKeyCode[z.toLowerCase()]=te},A.prototype.keyCodeToStr=function(te){return this._keyCodeToStr[te]},A.prototype.strToKeyCode=function(te){return this._strToKeyCode[te.toLowerCase()]||0},A}(),ne=new oe,N=new oe,F=new oe;(function(){function A(te,z,_,f){_===void 0&&(_=z),f===void 0&&(f=_),ne.define(te,z),N.define(te,_),F.define(te,f)}A(0,"unknown"),A(1,"Backspace"),A(2,"Tab"),A(3,"Enter"),A(4,"Shift"),A(5,"Ctrl"),A(6,"Alt"),A(7,"PauseBreak"),A(8,"CapsLock"),A(9,"Escape"),A(10,"Space"),A(11,"PageUp"),A(12,"PageDown"),A(13,"End"),A(14,"Home"),A(15,"LeftArrow","Left"),A(16,"UpArrow","Up"),A(17,"RightArrow","Right"),A(18,"DownArrow","Down"),A(19,"Insert"),A(20,"Delete"),A(21,"0"),A(22,"1"),A(23,"2"),A(24,"3"),A(25,"4"),A(26,"5"),A(27,"6"),A(28,"7"),A(29,"8"),A(30,"9"),A(31,"A"),A(32,"B"),A(33,"C"),A(34,"D"),A(35,"E"),A(36,"F"),A(37,"G"),A(38,"H"),A(39,"I"),A(40,"J"),A(41,"K"),A(42,"L"),A(43,"M"),A(44,"N"),A(45,"O"),A(46,"P"),A(47,"Q"),A(48,"R"),A(49,"S"),A(50,"T"),A(51,"U"),A(52,"V"),A(53,"W"),A(54,"X"),A(55,"Y"),A(56,"Z"),A(57,"Meta"),A(58,"ContextMenu"),A(59,"F1"),A(60,"F2"),A(61,"F3"),A(62,"F4"),A(63,"F5"),A(64,"F6"),A(65,"F7"),A(66,"F8"),A(67,"F9"),A(68,"F10"),A(69,"F11"),A(70,"F12"),A(71,"F13"),A(72,"F14"),A(73,"F15"),A(74,"F16"),A(75,"F17"),A(76,"F18"),A(77,"F19"),A(78,"NumLock"),A(79,"ScrollLock"),A(80,";",";","OEM_1"),A(81,"=","=","OEM_PLUS"),A(82,",",",","OEM_COMMA"),A(83,"-","-","OEM_MINUS"),A(84,".",".","OEM_PERIOD"),A(85,"/","/","OEM_2"),A(86,"`","`","OEM_3"),A(110,"ABNT_C1"),A(111,"ABNT_C2"),A(87,"[","[","OEM_4"),A(88,"\\","\\","OEM_5"),A(89,"]","]","OEM_6"),A(90,"'","'","OEM_7"),A(91,"OEM_8"),A(92,"OEM_102"),A(93,"NumPad0"),A(94,"NumPad1"),A(95,"NumPad2"),A(96,"NumPad3"),A(97,"NumPad4"),A(98,"NumPad5"),A(99,"NumPad6"),A(100,"NumPad7"),A(101,"NumPad8"),A(102,"NumPad9"),A(103,"NumPad_Multiply"),A(104,"NumPad_Add"),A(105,"NumPad_Separator"),A(106,"NumPad_Subtract"),A(107,"NumPad_Decimal"),A(108,"NumPad_Divide")})();var U;(function(A){function te(g){return ne.keyCodeToStr(g)}A.toString=te;function z(g){return ne.strToKeyCode(g)}A.fromString=z;function _(g){return N.keyCodeToStr(g)}A.toUserSettingsUS=_;function f(g){return F.keyCodeToStr(g)}A.toUserSettingsGeneral=f;function p(g){return N.strToKeyCode(g)||F.strToKeyCode(g)}A.fromUserSettings=p})(U||(U={}));function j(A,te){var z=(te&65535)<<16>>>0;return(A|z)>>>0}function G(A,te){if(A===0)return null;var z=(A&65535)>>>0,_=(A&4294901760)>>>16;return _!==0?new x([R(z,te),R(_,te)]):new x([R(z,te)])}function R(A,te){var z=!!(A&2048),_=!!(A&256),f=te===2?_:z,p=!!(A&1024),g=!!(A&512),m=te===2?z:_,w=A&255;return new E(f,p,g,m,w)}var E=function(){function A(te,z,_,f,p){this.ctrlKey=te,this.shiftKey=z,this.altKey=_,this.metaKey=f,this.keyCode=p}return A.prototype.equals=function(te){return this.ctrlKey===te.ctrlKey&&this.shiftKey===te.shiftKey&&this.altKey===te.altKey&&this.metaKey===te.metaKey&&this.keyCode===te.keyCode},A.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},A.prototype.toChord=function(){return new x([this])},A.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},A}(),x=function(){function A(te){if(te.length===0)throw Object(I.b)("parts");this.parts=te}return A.prototype.equals=function(te){if(te===null)return!1;if(this.parts.length!==te.parts.length)return!1;for(var z=0;z<this.parts.length;z++)if(!this.parts[z].equals(te.parts[z]))return!1;return!0},A}(),K=function(){function A(te,z,_,f,p,g){this.ctrlKey=te,this.shiftKey=z,this.altKey=_,this.metaKey=f,this.keyLabel=p,this.keyAriaLabel=g}return A}(),D=function(){function A(){}return A}()},R8yv:function(wt,P,r){},"S7i+":function(wt,P,r){"use strict";(function(I,oe){r.d(P,"h",function(){return p}),r.d(P,"e",function(){return g}),r.d(P,"d",function(){return m}),r.d(P,"f",function(){return w}),r.d(P,"g",function(){return B}),r.d(P,"c",function(){return H}),r.d(P,"b",function(){return he}),r.d(P,"i",function(){return Ee}),r.d(P,"a",function(){return Se});var ne="en",N=!1,F=!1,U=!1,j=!1,G=!1,R=!1,E=void 0,x=ne,K=void 0,D=void 0,A=typeof I!="undefined"&&typeof I.versions!="undefined"&&typeof I.versions.electron!="undefined"&&I.type==="renderer";if(typeof navigator=="object"&&!A)D=navigator.userAgent,N=D.indexOf("Windows")>=0,F=D.indexOf("Macintosh")>=0,R=D.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U=D.indexOf("Linux")>=0,G=!0,E=navigator.language,x=E;else if(typeof I=="object"){N=I.platform==="win32",F=I.platform==="darwin",U=I.platform==="linux",E=ne,x=ne;var te=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(te)try{var z=JSON.parse(te),_=z.availableLanguages["*"];E=z.locale,x=_||ne,K=z._translationsConfigFile}catch(q){}j=!0}var f=0;F?f=1:N?f=3:U&&(f=2);var p=N,g=F,m=U,w=j,B=G,H=R,re=typeof self=="object"?self:typeof oe=="object"?oe:{},he=re,Ee=function(){if(he.setImmediate)return he.setImmediate.bind(he);if(typeof he.postMessage=="function"&&!he.importScripts){var Z=[];he.addEventListener("message",function(Ve){if(Ve.data&&Ve.data.vscodeSetImmediateId)for(var _e=0,ue=Z.length;_e<ue;_e++){var se=Z[_e];if(se.id===Ve.data.vscodeSetImmediateId){Z.splice(_e,1),se.callback();return}}});var ce=0;return function(Ve){var _e=++ce;Z.push({id:_e,callback:Ve}),he.postMessage({vscodeSetImmediateId:_e},"*")}}if(typeof I!="undefined"&&typeof I.nextTick=="function")return I.nextTick.bind(I);var Me=Promise.resolve();return function(Ve){return Me.then(Ve)}}(),Se=F?2:N?1:3}).call(this,r("7vYp"),r("UywP"))},SF7Y:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return r.e(223).then(r.bind(null,"Npd3"))}})},SPtt:function(wt,P,r){"use strict";r.d(P,"c",function(){return te}),r.d(P,"d",function(){return z}),r.d(P,"b",function(){return _}),r.d(P,"a",function(){return p});var I=r("gmBr"),oe=r.n(I),ne=r("S7i+"),N=r("g9ht"),F=r("bN5T"),U=r("Mn97"),j=r("fF8p"),G=r("yqRl"),R=r("3HcJ"),E=r("/RM0"),x=r("YK2C"),K=r("9HM1"),D=r("mTMv"),A=function(){var g=function(w,B){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,re){H.__proto__=re}||function(H,re){for(var he in re)re.hasOwnProperty(he)&&(H[he]=re[he])},g(w,B)};return function(m,w){g(m,w);function B(){this.constructor=m}m.prototype=w===null?Object.create(w):(B.prototype=w.prototype,new B)}}(),te=function(g){A(m,g);function m(w,B,H){var re=g.call(this)||this;return re.options=H,re._context=w||re,re._action=B,B instanceof U.a&&re._register(B.onDidChange(function(he){if(!re.element)return;re.handleActionChangeEvent(he)})),re}return m.prototype.handleActionChangeEvent=function(w){w.enabled!==void 0&&this.updateEnabled(),w.checked!==void 0&&this.updateChecked(),w.class!==void 0&&this.updateClass(),w.label!==void 0&&(this.updateLabel(),this.updateTooltip()),w.tooltip!==void 0&&this.updateTooltip()},Object.defineProperty(m.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new U.b)),this._actionRunner},set:function(B){this._actionRunner=B},enumerable:!0,configurable:!0}),m.prototype.getAction=function(){return this._action},m.prototype.isEnabled=function(){return this._action.enabled},m.prototype.setActionContext=function(w){this._context=w},m.prototype.render=function(w){var B=this,H=this.element=w;this._register(R.b.addTarget(w));var re=this.options&&this.options.draggable;re&&(w.draggable=!0,D.h&&this._register(j.i(w,j.c.DRAG_START,function(he){var Ee;return(Ee=he.dataTransfer)===null||Ee===void 0?void 0:Ee.setData(K.a.TEXT,B._action.label)}))),this._register(j.i(H,R.a.Tap,function(he){return B.onClick(he)})),this._register(j.i(H,j.c.MOUSE_DOWN,function(he){re||j.b.stop(he,!0),B._action.enabled&&he.button===0&&j.e(H,"active")})),this._register(j.i(H,j.c.CLICK,function(he){j.b.stop(he,!0),B.options&&B.options.isMenu?B.onClick(he):ne.i(function(){return B.onClick(he)})})),this._register(j.i(H,j.c.DBLCLICK,function(he){j.b.stop(he,!0)})),[j.c.MOUSE_UP,j.c.MOUSE_OUT].forEach(function(he){B._register(j.i(H,he,function(Ee){j.b.stop(Ee),j.O(H,"active")}))})},m.prototype.onClick=function(w){j.b.stop(w,!0);var B;G.l(this._context)?B=w:(B=this._context,G.i(B)&&(B.event=w)),this.actionRunner.run(this._action,B)},m.prototype.focus=function(){this.element&&(this.element.focus(),j.e(this.element,"focused"))},m.prototype.blur=function(){this.element&&(this.element.blur(),j.O(this.element,"focused"))},m.prototype.updateEnabled=function(){},m.prototype.updateLabel=function(){},m.prototype.updateTooltip=function(){},m.prototype.updateClass=function(){},m.prototype.updateChecked=function(){},m.prototype.dispose=function(){this.element&&(j.Q(this.element),this.element=void 0),g.prototype.dispose.call(this)},m}(F.a),z=function(g){A(m,g);function m(w){var B=g.call(this,m.ID,w,w?"separator text":"separator")||this;return B.checked=!1,B.enabled=!1,B}return m.ID="vs.actions.separator",m}(U.a),_=function(g){A(m,g);function m(w,B,H){H===void 0&&(H={});var re=g.call(this,w,B,H)||this;return re.options=H,re.options.icon=H.icon!==void 0?H.icon:!1,re.options.label=H.label!==void 0?H.label:!0,re.cssClass="",re}return m.prototype.render=function(w){g.prototype.render.call(this,w),this.element&&(this.label=j.p(this.element,j.a("a.action-label"))),this.label&&(this._action.id===z.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(j.p(this.element,j.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},m.prototype.focus=function(){g.prototype.focus.call(this),this.label&&this.label.focus()},m.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},m.prototype.updateTooltip=function(){var w=null;this.getAction().tooltip?w=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(w=this.getAction().label,this.options.keybinding&&(w=N.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",w,this.options.keybinding))),w&&this.label&&(this.label.title=w)},m.prototype.updateClass=function(){this.cssClass&&this.label&&j.P(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(j.e(this.label,"codicon"),this.cssClass&&j.f(this.label,this.cssClass)),this.updateEnabled()):this.label&&j.O(this.label,"codicon")},m.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),j.O(this.label,"disabled"),this.label.tabIndex=0),this.element&&j.O(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),j.e(this.label,"disabled"),j.R(this.label)),this.element&&j.e(this.element,"disabled"))},m.prototype.updateChecked=function(){this.label&&(this.getAction().checked?j.e(this.label,"checked"):j.O(this.label,"checked"))},m}(te),f={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},p=function(g){A(m,g);function m(w,B){B===void 0&&(B=f);var H=g.call(this)||this;H._onDidBlur=H._register(new x.a),H.onDidBlur=H._onDidBlur.event,H._onDidCancel=H._register(new x.a),H.onDidCancel=H._onDidCancel.event,H._onDidRun=H._register(new x.a),H.onDidRun=H._onDidRun.event,H._onDidBeforeRun=H._register(new x.a),H.onDidBeforeRun=H._onDidBeforeRun.event,H.options=B,H._context=B.context,H.options.triggerKeys||(H.options.triggerKeys=f.triggerKeys),H.options.actionRunner?H._actionRunner=H.options.actionRunner:(H._actionRunner=new U.b,H._register(H._actionRunner)),H._register(H._actionRunner.onDidRun(function(Ee){return H._onDidRun.fire(Ee)})),H._register(H._actionRunner.onDidBeforeRun(function(Ee){return H._onDidBeforeRun.fire(Ee)})),H.viewItems=[],H.focusedItem=void 0,H.domNode=document.createElement("div"),H.domNode.className="monaco-action-bar",B.animated!==!1&&j.e(H.domNode,"animated");var re,he;switch(H.options.orientation){case 0:re=15,he=17;break;case 1:re=17,he=15,H.domNode.className+=" reverse";break;case 2:re=16,he=18,H.domNode.className+=" vertical";break;case 3:re=18,he=16,H.domNode.className+=" vertical reverse";break}return H._register(j.i(H.domNode,j.c.KEY_DOWN,function(Ee){var Se=new E.a(Ee),q=!0;Se.equals(re)?H.focusPrevious():Se.equals(he)?H.focusNext():Se.equals(9)?H.cancel():H.isTriggerKeyEvent(Se)?H.options.triggerKeys&&H.options.triggerKeys.keyDown&&H.doTrigger(Se):q=!1,q&&(Se.preventDefault(),Se.stopPropagation())})),H._register(j.i(H.domNode,j.c.KEY_UP,function(Ee){var Se=new E.a(Ee);H.isTriggerKeyEvent(Se)?(H.options.triggerKeys&&!H.options.triggerKeys.keyDown&&H.doTrigger(Se),Se.preventDefault(),Se.stopPropagation()):(Se.equals(2)||Se.equals(1024|2))&&H.updateFocusedItem()})),H.focusTracker=H._register(j.Y(H.domNode)),H._register(H.focusTracker.onDidBlur(function(){(document.activeElement===H.domNode||!j.J(document.activeElement,H.domNode))&&(H._onDidBlur.fire(),H.focusedItem=void 0)})),H._register(H.focusTracker.onDidFocus(function(){return H.updateFocusedItem()})),H.actionsList=document.createElement("ul"),H.actionsList.className="actions-container",H.actionsList.setAttribute("role","toolbar"),H.options.ariaLabel&&H.actionsList.setAttribute("aria-label",H.options.ariaLabel),H.domNode.appendChild(H.actionsList),w.appendChild(H.domNode),H}return m.prototype.isTriggerKeyEvent=function(w){var B=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(H){B=B||w.equals(H)}),B},m.prototype.updateFocusedItem=function(){for(var w=0;w<this.actionsList.children.length;w++){var B=this.actionsList.children[w];if(j.J(document.activeElement,B)){this.focusedItem=w;break}}},Object.defineProperty(m.prototype,"context",{get:function(){return this._context},set:function(B){this._context=B,this.viewItems.forEach(function(H){return H.setActionContext(B)})},enumerable:!0,configurable:!0}),m.prototype.getContainer=function(){return this.domNode},m.prototype.push=function(w,B){var H=this;B===void 0&&(B={});var re=Array.isArray(w)?w:[w],he=G.h(B.index)?B.index:null;re.forEach(function(Ee){var Se=document.createElement("li");Se.className="action-item",Se.setAttribute("role","presentation"),H._register(j.i(Se,j.c.CONTEXT_MENU,function(Z){Z.preventDefault(),Z.stopPropagation()}));var q;H.options.actionViewItemProvider&&(q=H.options.actionViewItemProvider(Ee)),q||(q=new _(H.context,Ee,B)),q.actionRunner=H._actionRunner,q.setActionContext(H.context),q.render(Se),he===null||he<0||he>=H.actionsList.children.length?(H.actionsList.appendChild(Se),H.viewItems.push(q)):(H.actionsList.insertBefore(Se,H.actionsList.children[he]),H.viewItems.splice(he,0,q),he++)})},m.prototype.clear=function(){this.viewItems=Object(F.f)(this.viewItems),j.s(this.actionsList)},m.prototype.isEmpty=function(){return this.viewItems.length===0},m.prototype.focus=function(w){var B=!1,H=void 0;w===void 0?B=!0:typeof w=="number"?H=w:typeof w=="boolean"&&(B=w),B&&typeof this.focusedItem=="undefined"?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(H!==void 0&&(this.focusedItem=H),this.updateFocus())},m.prototype.focusNext=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=this.viewItems.length-1);var w=this.focusedItem,B;do this.focusedItem=(this.focusedItem+1)%this.viewItems.length,B=this.viewItems[this.focusedItem];while(this.focusedItem!==w&&!B.isEnabled());this.focusedItem===w&&!B.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},m.prototype.focusPrevious=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=0);var w=this.focusedItem,B;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),B=this.viewItems[this.focusedItem];while(this.focusedItem!==w&&!B.isEnabled());this.focusedItem===w&&!B.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},m.prototype.updateFocus=function(w,B){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:B});for(var H=0;H<this.viewItems.length;H++){var re=this.viewItems[H],he=re;H===this.focusedItem?G.g(he.isEnabled)&&(he.isEnabled()&&G.g(he.focus)?he.focus(w):this.actionsList.focus({preventScroll:B})):G.g(he.blur)&&he.blur()}},m.prototype.doTrigger=function(w){if(typeof this.focusedItem=="undefined")return;var B=this.viewItems[this.focusedItem];if(B instanceof te){var H=B._context===null||B._context===void 0?w:B._context;this.run(B._action,H)}},m.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},m.prototype.run=function(w,B){return this._actionRunner.run(w,B)},m.prototype.dispose=function(){Object(F.f)(this.viewItems),this.viewItems=[],j.Q(this.getContainer()),g.prototype.dispose.call(this)},m}(F.a)},Scml:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return r.e(212).then(r.bind(null,"1kog"))}})},Sn7V:function(wt,P,r){"use strict";r.d(P,"b",function(){return A}),r.d(P,"a",function(){return z}),r.d(P,"c",function(){return f}),r.d(P,"e",function(){return p}),r.d(P,"d",function(){return H}),r.d(P,"f",function(){return he});var I=r("dE3Z"),oe=r("mucJ"),ne=r("QqjT"),N=r("Whdu"),F=r("vqGt"),U=r("V0RK"),j=r("bBv/"),G=r("l+zK"),R=r("w9Cd"),E=r("VV9f"),x=r("bN5T"),K=function(Ee,Se,q,Z){function ce(Me){return Me instanceof q?Me:new q(function(Ve){Ve(Me)})}return new(q||(q=Promise))(function(Me,Ve){function _e(fe){try{se(Z.next(fe))}catch(ie){Ve(ie)}}function ue(fe){try{se(Z.throw(fe))}catch(ie){Ve(ie)}}function se(fe){fe.done?Me(fe.value):ce(fe.value).then(_e,ue)}se((Z=Z.apply(Ee,Se||[])).next())})},D=function(Ee,Se){var q={label:0,sent:function(){if(Me[0]&1)throw Me[1];return Me[1]},trys:[],ops:[]},Z,ce,Me,Ve;return Ve={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function _e(se){return function(fe){return ue([se,fe])}}function ue(se){if(Z)throw new TypeError("Generator is already executing.");for(;q;)try{if(Z=1,ce&&(Me=se[0]&2?ce.return:se[0]?ce.throw||((Me=ce.return)&&Me.call(ce),0):ce.next)&&!(Me=Me.call(ce,se[1])).done)return Me;(ce=0,Me)&&(se=[se[0]&2,Me.value]);switch(se[0]){case 0:case 1:Me=se;break;case 4:return q.label++,{value:se[1],done:!1};case 5:q.label++,ce=se[1],se=[0];continue;case 7:se=q.ops.pop(),q.trys.pop();continue;default:if(!(Me=q.trys,Me=Me.length>0&&Me[Me.length-1])&&(se[0]===6||se[0]===2)){q=0;continue}if(se[0]===3&&(!Me||se[1]>Me[0]&&se[1]<Me[3])){q.label=se[1];break}if(se[0]===6&&q.label<Me[1]){q.label=Me[1],Me=se;break}if(Me&&q.label<Me[2]){q.label=Me[2],q.ops.push(se);break}Me[2]&&q.ops.pop(),q.trys.pop();continue}se=Se.call(Ee,q)}catch(fe){se=[6,fe],ce=0}finally{Z=Me=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}},A={Visible:new j.d("suggestWidgetVisible",!1),MultipleSuggestions:new j.d("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new j.d("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new j.d("acceptSuggestionOnEnter",!0)},te=function(){function Ee(Se,q,Z,ce,Me){var Ve=this;this.position=Se,this.completion=q,this.container=Z,this.provider=ce,this.isResolved=!1,this.score=E.a.Default,this.distance=0,this.textLabel=typeof q.label=="string"?q.label:q.label.name,this.labelLow=this.textLabel.toLowerCase(),this.sortTextLow=q.sortText&&q.sortText.toLowerCase(),this.filterTextLow=q.filterText&&q.filterText.toLowerCase(),R.a.isIRange(q.range)?(this.editStart=new U.a(q.range.startLineNumber,q.range.startColumn),this.editInsertEnd=new U.a(q.range.endLineNumber,q.range.endColumn),this.editReplaceEnd=new U.a(q.range.endLineNumber,q.range.endColumn)):(this.editStart=new U.a(q.range.insert.startLineNumber,q.range.insert.startColumn),this.editInsertEnd=new U.a(q.range.insert.endLineNumber,q.range.insert.endColumn),this.editReplaceEnd=new U.a(q.range.replace.endLineNumber,q.range.replace.endColumn));var _e=ce.resolveCompletionItem;if(typeof _e!="function")this.resolve=function(){return Promise.resolve()},this.isResolved=!0;else{var ue;this.resolve=function(se){return ue||(ue=Promise.resolve(_e.call(ce,Me,Se,q,se)).then(function(fe){Object(oe.a)(q,fe),Ve.isResolved=!0},function(fe){Object(ne.d)(fe)&&(ue=void 0)}),se.onCancellationRequested(function(){Ve.isResolved||(ue=void 0)})),ue}}}return Ee}(),z=function(){function Ee(Se,q,Z){Se===void 0&&(Se=2),q===void 0&&(q=new Set),Z===void 0&&(Z=new Set),this.snippetSortOrder=Se,this.kindFilter=q,this.providerFilter=Z}return Ee.default=new Ee,Ee}(),_;function f(){return _}function p(Ee,Se,q,Z,ce){q===void 0&&(q=z.default),Z===void 0&&(Z={triggerKind:0}),ce===void 0&&(ce=G.a.None);var Me=Ee.getWordAtPosition(Se),Ve=Me?new R.a(Se.lineNumber,Me.startColumn,Se.lineNumber,Me.endColumn):R.a.fromPositions(Se),_e=Ve.setEndPosition(Se.lineNumber,Se.column);Se=Se.clone();var ue=F.d.orderedGroups(Ee);!q.kindFilter.has(25)&&_&&ue.unshift([_]);var se=[],fe=new x.b,ie=!1,J=ue.map(function(ye){return function(){return Promise.all(ye.map(function(ze){return q.providerFilter.size>0&&!q.providerFilter.has(ze)?void 0:Promise.resolve(ze.provideCompletionItems(Ee,Se,Z,ce)).then(function(tt){var _t=se.length;if(tt){for(var Pt=0,Xt=tt.suggestions||[];Pt<Xt.length;Pt++){var Ke=Xt[Pt];q.kindFilter.has(Ke.kind)||(Ke.range||(Ke.range={insert:_e,replace:Ve}),Ke.sortText||(Ke.sortText=typeof Ke.label=="string"?Ke.label:Ke.label.name),se.push(new te(Se,Ke,tt,ze,Ee)))}Object(x.g)(tt)&&fe.add(tt)}_t!==se.length&&ze!==_&&(ie=!0)},ne.f)}))}}),me=Object(I.h)(J,function(){return ie||ce.isCancellationRequested}).then(function(){return ce.isCancellationRequested?(fe.dispose(),Promise.reject(Object(ne.a)())):se.sort(H(q.snippetSortOrder))});return me}function g(Ee,Se){if(Ee.sortTextLow&&Se.sortTextLow){if(Ee.sortTextLow<Se.sortTextLow)return-1;if(Ee.sortTextLow>Se.sortTextLow)return 1}return Ee.completion.label<Se.completion.label?-1:Ee.completion.label>Se.completion.label?1:Ee.completion.kind-Se.completion.kind}function m(Ee,Se){if(Ee.completion.kind!==Se.completion.kind){if(Ee.completion.kind===25)return-1;if(Se.completion.kind===25)return 1}return g(Ee,Se)}function w(Ee,Se){if(Ee.completion.kind!==Se.completion.kind){if(Ee.completion.kind===25)return 1;if(Se.completion.kind===25)return-1}return g(Ee,Se)}var B=new Map;B.set(0,m),B.set(2,w),B.set(1,g);function H(Ee){return B.get(Ee)}Object(N.e)("_executeCompletionItemProvider",function(Ee,Se,q){return K(void 0,void 0,void 0,function(){var Z,ce,Me,Ve,_e,ue,se,fe;return D(this,function(ie){switch(ie.label){case 0:return Z={incomplete:!1,suggestions:[]},ce=new x.b,Me=[],Ve=q.maxItemsToResolve||0,[4,p(Ee,Se)];case 1:for(_e=ie.sent(),ue=0,se=_e;ue<se.length;ue++)fe=se[ue],Me.length<Ve&&Me.push(fe.resolve(G.a.None)),Z.incomplete=Z.incomplete||fe.container.incomplete,Z.suggestions.push(fe.completion),Object(x.g)(fe.container)&&ce.add(fe.container);ie.label=2;case 2:return ie.trys.push([2,,4,5]),[4,Promise.all(Me)];case 3:return ie.sent(),[2,Z];case 4:return setTimeout(function(){return ce.dispose()},100),[7];case 5:return[2]}})})});var re=new(function(){function Ee(){this.onlyOnceSuggestions=[]}return Ee.prototype.provideCompletionItems=function(){var Se=this.onlyOnceSuggestions.slice(0),q={suggestions:Se};return this.onlyOnceSuggestions.length=0,q},Ee}());F.d.register("*",re);function he(Ee,Se){setTimeout(function(){var q;(q=re.onlyOnceSuggestions).push.apply(q,Se),Ee.getContribution("editor.contrib.suggestController").triggerSuggest(new Set().add(re))},0)}},SvGJ:function(wt,P,r){},T8Yj:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return r.e(242).then(r.bind(null,"Y8uL"))}})},TitK:function(wt,P,r){},TwZP:function(wt,P,r){"use strict";r.d(P,"c",function(){return F}),r.d(P,"f",function(){return U}),r.d(P,"b",function(){return G}),r.d(P,"d",function(){return R}),r.d(P,"a",function(){return E}),r.d(P,"e",function(){return D});var I=r("PoD0"),oe=r("bN5T"),ne=r("E+fE"),N=r("YK2C"),F=Object(I.c)("themeService");function U(A){return{id:A}}var j="dark",G="hc";function R(A){switch(A){case j:return"vs-dark";case G:return"hc-black";default:return"vs"}}var E={ThemingContribution:"base.contributions.theming"},x=function(){function A(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new N.a}return A.prototype.onThemeChange=function(te){var z=this;return this.themingParticipants.push(te),this.onThemingParticipantAddedEmitter.fire(te),Object(oe.h)(function(){var _=z.themingParticipants.indexOf(te);z.themingParticipants.splice(_,1)})},A.prototype.getThemingParticipants=function(){return this.themingParticipants},A}(),K=new x;ne.a.add(E.ThemingContribution,K);function D(A){return K.onThemeChange(A)}},"U9+s":function(wt,P,r){"use strict";r.d(P,"c",function(){return ne}),r.d(P,"a",function(){return N}),r.d(P,"b",function(){return F});var I=r("yBOt"),oe=r("xFpO");function ne(U){return U.replace(/[\\/]/g,oe.posix.sep)}function N(U,j,G,R){if(R===void 0&&(R=oe.sep),U===j)return!0;if(!U||!j)return!1;if(j.length>U.length)return!1;if(G){var E=Object(I.N)(U,j);if(!E)return!1;if(j.length===U.length)return!0;var x=j.length;return j.charAt(j.length-1)===R&&x--,U.charAt(x)===R}return j.charAt(j.length-1)!==R&&(j+=R),U.indexOf(j)===0}function F(U){return U>=65&&U<=90||U>=97&&U<=122}},UFql:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return F});var I=r("yBOt"),oe=function(){function U(j,G,R,E){this.startColumn=j,this.endColumn=G,this.className=R,this.type=E}return U._equals=function(j,G){return j.startColumn===G.startColumn&&j.endColumn===G.endColumn&&j.className===G.className&&j.type===G.type},U.equalsArr=function(j,G){var R=j.length,E=G.length;if(R!==E)return!1;for(var x=0;x<R;x++)if(!U._equals(j[x],G[x]))return!1;return!0},U.filter=function(j,G,R,E){if(j.length===0)return[];for(var x=[],K=0,D=0,A=j.length;D<A;D++){var te=j[D],z=te.range;if(z.endLineNumber<G||z.startLineNumber>G)continue;if(z.isEmpty()&&(te.type===0||te.type===3))continue;var _=z.startLineNumber===G?z.startColumn:R,f=z.endLineNumber===G?z.endColumn:E;x[K++]=new U(_,f,te.inlineClassName,te.type)}return x},U.compare=function(j,G){return j.startColumn===G.startColumn?j.endColumn===G.endColumn?j.className<G.className?-1:j.className>G.className?1:0:j.endColumn-G.endColumn:j.startColumn-G.startColumn},U}(),ne=function(){function U(j,G,R){this.startOffset=j,this.endOffset=G,this.className=R}return U}(),N=function(){function U(){this.stopOffsets=[],this.classNames=[],this.count=0}return U.prototype.consumeLowerThan=function(j,G,R){for(;this.count>0&&this.stopOffsets[0]<j;){for(var E=0;E+1<this.count&&this.stopOffsets[E]===this.stopOffsets[E+1];)E++;R.push(new ne(G,this.stopOffsets[E],this.classNames.join(" "))),G=this.stopOffsets[E]+1,this.stopOffsets.splice(0,E+1),this.classNames.splice(0,E+1),this.count-=E+1}return this.count>0&&G<j&&(R.push(new ne(G,j-1,this.classNames.join(" "))),G=j),G},U.prototype.insert=function(j,G){if(this.count===0||this.stopOffsets[this.count-1]<=j)this.stopOffsets.push(j),this.classNames.push(G);else for(var R=0;R<this.count;R++)if(this.stopOffsets[R]>=j){this.stopOffsets.splice(R,0,j),this.classNames.splice(R,0,G);break}this.count++;return},U}(),F=function(){function U(){}return U.normalize=function(j,G){if(G.length===0)return[];for(var R=[],E=new N,x=0,K=0,D=G.length;K<D;K++){var A=G[K],te=A.startColumn,z=A.endColumn,_=A.className;if(te>1){var f=j.charCodeAt(te-2);I.z(f)&&te--}if(z>1){var f=j.charCodeAt(z-2);I.z(f)&&z--}var p=te-1,g=z-2;x=E.consumeLowerThan(p,x,R),E.count===0&&(x=p),E.insert(g,_)}return E.consumeLowerThan(1073741824,x,R),R},U}()},UJ5a:function(wt,P,r){},UO9b:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("/W++");function oe(ne){return ne&&typeof ne.getEditorType=="function"?ne.getEditorType()===I.a.ICodeEditor:!1}},UgoW:function(wt,P,r){},Uq4v:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("mTMv"),oe=r("S7i+"),ne={clipboard:{writeText:oe.f||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:oe.f||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(I.i)return!1;if(I.e){var N=navigator.userAgent.indexOf("Edge/"),F=parseInt(navigator.userAgent.substring(N+5,navigator.userAgent.indexOf(".",N)),10);if(!F||F>=12&&F<=16)return!1}return!0}()},keyboard:function(){return oe.f||I.l?0:navigator.keyboard||I.k?1:2}(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},V0RK:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});var I=function(){function oe(ne,N){this.lineNumber=ne,this.column=N}return oe.prototype.with=function(ne,N){return ne===void 0&&(ne=this.lineNumber),N===void 0&&(N=this.column),ne===this.lineNumber&&N===this.column?this:new oe(ne,N)},oe.prototype.delta=function(ne,N){return ne===void 0&&(ne=0),N===void 0&&(N=0),this.with(this.lineNumber+ne,this.column+N)},oe.prototype.equals=function(ne){return oe.equals(this,ne)},oe.equals=function(ne,N){return!ne&&!N?!0:!!ne&&!!N&&ne.lineNumber===N.lineNumber&&ne.column===N.column},oe.prototype.isBefore=function(ne){return oe.isBefore(this,ne)},oe.isBefore=function(ne,N){return ne.lineNumber<N.lineNumber?!0:N.lineNumber<ne.lineNumber?!1:ne.column<N.column},oe.prototype.isBeforeOrEqual=function(ne){return oe.isBeforeOrEqual(this,ne)},oe.isBeforeOrEqual=function(ne,N){return ne.lineNumber<N.lineNumber?!0:N.lineNumber<ne.lineNumber?!1:ne.column<=N.column},oe.compare=function(ne,N){var F=ne.lineNumber|0,U=N.lineNumber|0;if(F===U){var j=ne.column|0,G=N.column|0;return j-G}return F-U},oe.prototype.clone=function(){return new oe(this.lineNumber,this.column)},oe.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},oe.lift=function(ne){return new oe(ne.lineNumber,ne.column)},oe.isIPosition=function(ne){return ne&&typeof ne.lineNumber=="number"&&typeof ne.column=="number"},oe}()},V3SD:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});var I=function(){function oe(ne,N,F){N===void 0&&(N=[]),F===void 0&&(F=!1),this.ctor=ne,this.staticArguments=N,this.supportsDelayedInstantiation=F}return oe}()},VKfd:function(wt,P,r){"use strict";r.d(P,"a",function(){return A}),r.d(P,"b",function(){return te}),r.d(P,"d",function(){return z}),r.d(P,"c",function(){return _});var I=r("yBOt"),oe=r("l+zK"),ne=r("bN5T"),N=r("Whdu"),F=r("bBv/"),U=r("XAYP"),j=r("PoD0"),G=r("qJsm"),R=function(){var f=function(g,m){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,B){w.__proto__=B}||function(w,B){for(var H in B)B.hasOwnProperty(H)&&(w[H]=B[H])},f(g,m)};return function(p,g){f(p,g);function m(){this.constructor=p}p.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}}(),E=Object(j.c)("IEditorCancelService"),x=new F.d("cancellableOperation",!1);Object(G.b)(E,function(){function f(){this._tokens=new WeakMap}return f.prototype.add=function(p,g){var m=this._tokens.get(p);m||(m=p.invokeWithinContext(function(B){var H=x.bindTo(B.get(F.c)),re=new U.a;return{key:H,tokens:re}}),this._tokens.set(p,m));var w;return m.key.set(!0),w=m.tokens.push(g),function(){w&&(w(),m.key.set(!m.tokens.isEmpty()),w=void 0)}},f.prototype.cancel=function(p){var g=this._tokens.get(p);if(!g)return;var m=g.tokens.pop();m&&(m.cancel(),g.key.set(!g.tokens.isEmpty()))},f}(),!0);var K=function(f){R(p,f);function p(g,m){var w=f.call(this,m)||this;return w.editor=g,w._unregister=g.invokeWithinContext(function(B){return B.get(E).add(g,w)}),w}return p.prototype.dispose=function(){this._unregister(),f.prototype.dispose.call(this)},p}(oe.b);Object(N.g)(new(function(f){R(p,f);function p(){return f.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:x})||this}return p.prototype.runEditorCommand=function(g,m){g.get(E).cancel(m)},p}(N.c)));var D=function(){var f=function(g,m){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,B){w.__proto__=B}||function(w,B){for(var H in B)B.hasOwnProperty(H)&&(w[H]=B[H])},f(g,m)};return function(p,g){f(p,g);function m(){this.constructor=p}p.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}}(),A=function(){function f(p,g){if(this.flags=g,(this.flags&1)!==0){var m=p.getModel();this.modelVersionId=m?I.r("{0}#{1}",m.uri.toString(),m.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=p.getPosition():this.position=null,(this.flags&2)!==0?this.selection=p.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=p.getScrollLeft(),this.scrollTop=p.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return f.prototype._equals=function(p){if(!(p instanceof f))return!1;var g=p;return this.modelVersionId!==g.modelVersionId||(this.scrollLeft!==g.scrollLeft||this.scrollTop!==g.scrollTop||(!this.position&&g.position||this.position&&!g.position||this.position&&g.position&&!this.position.equals(g.position)))?!1:!(!this.selection&&g.selection||this.selection&&!g.selection||this.selection&&g.selection&&!this.selection.equalsRange(g.selection))},f.prototype.validate=function(p){return this._equals(new f(p,this.flags))},f}(),te=function(f){D(p,f);function p(g,m,w){var B=f.call(this,g,w)||this;return B.editor=g,B._listener=new ne.b,m&4&&B._listener.add(g.onDidChangeCursorPosition(function(H){return B.cancel()})),m&2&&B._listener.add(g.onDidChangeCursorSelection(function(H){return B.cancel()})),m&8&&B._listener.add(g.onDidScrollChange(function(H){return B.cancel()})),m&1&&(B._listener.add(g.onDidChangeModel(function(H){return B.cancel()})),B._listener.add(g.onDidChangeModelContent(function(H){return B.cancel()}))),B}return p.prototype.dispose=function(){this._listener.dispose(),f.prototype.dispose.call(this)},p}(K),z=function(f){D(p,f);function p(g,m){var w=f.call(this,m)||this;return w._listener=g.onDidChangeContent(function(){return w.cancel()}),w}return p.prototype.dispose=function(){this._listener.dispose(),f.prototype.dispose.call(this)},p}(oe.b),_=function(){function f(p,g){this._visiblePosition=p,this._visiblePositionScrollDelta=g}return f.capture=function(p){var g=null,m=0;if(p.getScrollTop()!==0){var w=p.getVisibleRanges();if(w.length>0){g=w[0].getStartPosition();var B=p.getTopForPosition(g.lineNumber,g.column);m=p.getScrollTop()-B}}return new f(g,m)},f.prototype.restore=function(p){if(this._visiblePosition){var g=p.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);p.setScrollTop(g+this._visiblePositionScrollDelta)}},f}()},VV9f:function(wt,P,r){"use strict";r.d(P,"f",function(){return N}),r.d(P,"b",function(){return Ee}),r.d(P,"c",function(){return Se}),r.d(P,"a",function(){return ye}),r.d(P,"d",function(){return ze}),r.d(P,"e",function(){return Ye});var I=r("emi/"),oe=r("yBOt");function ne(){for(var we=[],k=0;k<arguments.length;k++)we[k]=arguments[k];return function(ee,Pe){for(var ve=0,Te=we.length;ve<Te;ve++){var Ie=we[ve](ee,Pe);if(Ie)return Ie}return null}}var N=F.bind(void 0,!0);function F(we,k,ee){if(!ee||ee.length<k.length)return null;var Pe;return we?Pe=oe.N(ee,k):Pe=ee.indexOf(k)===0,Pe?k.length>0?[{start:0,end:k.length}]:[]:null}function U(we,k){var ee=k.toLowerCase().indexOf(we.toLowerCase());return ee===-1?null:[{start:ee,end:ee+we.length}]}function j(we,k){return G(we.toLowerCase(),k.toLowerCase(),0,0)}function G(we,k,ee,Pe){if(ee===we.length)return[];if(Pe===k.length)return null;if(we[ee]===k[Pe]){var ve=null;return(ve=G(we,k,ee+1,Pe+1))?te({start:Pe,end:Pe+1},ve):null}return G(we,k,ee,Pe+1)}function R(we){return 97<=we&&we<=122}function E(we){return 65<=we&&we<=90}function x(we){return 48<=we&&we<=57}function K(we){return we===32||we===9||we===10||we===13}var D=new Set;"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(function(we){return D.add(we.charCodeAt(0))});function A(we){return R(we)||E(we)||x(we)}function te(we,k){return k.length===0?k=[we]:we.end===k[0].start?k[0].start=we.start:k.unshift(we),k}function z(we,k){for(var ee=k;ee<we.length;ee++){var Pe=we.charCodeAt(ee);if(E(Pe)||x(Pe)||ee>0&&!A(we.charCodeAt(ee-1)))return ee}return we.length}function _(we,k,ee,Pe){if(ee===we.length)return[];if(Pe===k.length)return null;if(we[ee]!==k[Pe].toLowerCase())return null;var ve=null,Te=Pe+1;for(ve=_(we,k,ee+1,Pe+1);!ve&&(Te=z(k,Te))<k.length;)ve=_(we,k,ee+1,Te),Te++;return ve===null?null:te({start:Pe,end:Pe+1},ve)}function f(we){for(var k=0,ee=0,Pe=0,ve=0,Te=0,Ie=0;Ie<we.length;Ie++)Te=we.charCodeAt(Ie),E(Te)&&k++,R(Te)&&ee++,A(Te)&&Pe++,x(Te)&&ve++;var pe=k/we.length,nt=ee/we.length,Et=Pe/we.length,Rt=ve/we.length;return{upperPercent:pe,lowerPercent:nt,alphaPercent:Et,numericPercent:Rt}}function p(we){var k=we.upperPercent,ee=we.lowerPercent;return ee===0&&k>.6}function g(we){var k=we.upperPercent,ee=we.lowerPercent,Pe=we.alphaPercent,ve=we.numericPercent;return ee>.2&&k<.8&&Pe>.6&&ve<.2}function m(we){for(var k=0,ee=0,Pe=0,ve=0,Te=0;Te<we.length;Te++)Pe=we.charCodeAt(Te),E(Pe)&&k++,R(Pe)&&ee++,K(Pe)&&ve++;return(k===0||ee===0)&&ve===0?we.length<=30:k<=5}function w(we,k){if(!k)return null;if(k=k.trim(),k.length===0)return null;if(!m(we))return null;if(k.length>60)return null;var ee=f(k);if(!g(ee)){if(!p(ee))return null;k=k.toLowerCase()}var Pe=null,ve=0;for(we=we.toLowerCase();ve<k.length&&(Pe=_(we,k,0,ve))===null;)ve=z(k,ve+1);return Pe}var B=ne(N,w,U),H=ne(N,w,j),re=new I.a(1e4);function he(we,k,ee){if(ee===void 0&&(ee=!1),typeof we!="string"||typeof k!="string")return null;var Pe=re.get(we);Pe||(Pe=new RegExp(oe.k(we),"i"),re.set(we,Pe));var ve=Pe.exec(k);return ve?[{start:ve.index,end:ve.index+ve[0].length}]:ee?H(we,k):B(we,k)}function Ee(we,k,ee,Pe,ve,Te){var Ie=ze(we,k,0,Pe,ve,0,!0);if(Ie)return Ie;for(var pe=0,nt=0,Et=Te,Rt=0;Rt<k.length&&Rt<q;++Rt){var Tt=ve.indexOf(k.charAt(Rt),Et);if(Tt>=0)nt+=1,pe+=Math.pow(2,Tt),Et=Tt+1;else if(pe!==0)break}return[nt,pe,Te]}function Se(we){if(typeof we=="undefined")return[];for(var k=we[1].toString(2),ee=we[2],Pe=[],ve=ee;ve<q;ve++)if(k[k.length-(ve+1)]==="1"){var Te=Pe[Pe.length-1];Te&&Te.end===ve?Te.end=ve+1:Pe.push({start:ve,end:ve+1})}return Pe}var q=128;function Z(){for(var we=[],k=[0],ee=1;ee<=q;ee++)k.push(-ee);for(var ee=0;ee<=q;ee++){var Pe=k.slice(0);Pe[0]=-ee,we.push(Pe)}return we}var ce=Z(),Me=Z(),Ve=Z(),_e=!1;function ue(we,k,ee,Pe,ve){function Te(nt,Et,Rt){for(Rt===void 0&&(Rt=" ");nt.length<Et;)nt=Rt+nt;return nt}for(var Ie=" | |"+Pe.split("").map(function(nt){return Te(nt,3)}).join("|")+`
|
|
`,pe=0;pe<=ee;pe++)pe===0?Ie+=" |":Ie+=k[pe-1]+"|",Ie+=we[pe].slice(0,ve+1).map(function(nt){return Te(nt.toString(),3)}).join("|")+`
|
|
`;return Ie}function se(we,k,ee,Pe){we=we.substr(k),ee=ee.substr(Pe),console.log(ue(ce,we,we.length,ee,ee.length)),console.log(ue(Ve,we,we.length,ee,ee.length)),console.log(ue(Me,we,we.length,ee,ee.length))}function fe(we,k){if(k<0||k>=we.length)return!1;var ee=we.charCodeAt(k);switch(ee){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function ie(we,k){if(k<0||k>=we.length)return!1;var ee=we.charCodeAt(k);switch(ee){case 32:case 9:return!0;default:return!1}}function J(we,k,ee){return k[we]!==ee[we]}function me(we,k,ee,Pe,ve,Te){for(;k<ee&&ve<Te;)we[k]===Pe[ve]&&(k+=1),ve+=1;return k===ee}var ye;(function(we){we.Default=Object.freeze([-100,0,0]);function k(ee){return!ee||ee[0]===-100&&ee[1]===0&&ee[2]===0}we.isDefault=k})(ye||(ye={}));function ze(we,k,ee,Pe,ve,Te,Ie){var pe=we.length>q?q:we.length,nt=Pe.length>q?q:Pe.length;if(ee>=pe||Te>=nt||pe-ee>nt-Te)return;if(!me(k,ee,pe,ve,Te,nt))return;var Et=1,Rt=1,Tt=ee,Ht=Te;for(Et=1,Tt=ee;Tt<pe;Et++,Tt++)for(Rt=1,Ht=Te;Ht<nt;Rt++,Ht++){var Gt=tt(we,k,Tt,ee,Pe,ve,Ht);Me[Et][Rt]=Gt;var rn=ce[Et-1][Rt-1]+(Gt>1?1:Gt),Ln=ce[Et-1][Rt]+-1,yn=ce[Et][Rt-1]+-1;yn>=Ln?yn>rn?(ce[Et][Rt]=yn,Ve[Et][Rt]=4):yn===rn?(ce[Et][Rt]=yn,Ve[Et][Rt]=4|2):(ce[Et][Rt]=rn,Ve[Et][Rt]=2):Ln>rn?(ce[Et][Rt]=Ln,Ve[Et][Rt]=1):Ln===rn?(ce[Et][Rt]=Ln,Ve[Et][Rt]=1|2):(ce[Et][Rt]=rn,Ve[Et][Rt]=2)}return _e&&se(we,ee,Pe,Te),_t=0,Xt=-100,Ke=Te,Xe=Ie,Ze(Et-1,Rt-1,pe===nt?1:0,0,!1),_t===0?void 0:[Xt,Pt,Te]}function tt(we,k,ee,Pe,ve,Te,Ie){return k[ee]!==Te[Ie]?-1:Ie===ee-Pe||J(Ie,ve,Te)&&(Ie===0||!J(Ie-1,ve,Te))?we[ee]===ve[Ie]?7:5:fe(Te,Ie)&&(Ie===0||!fe(Te,Ie-1))||(fe(Te,Ie-1)||ie(Te,Ie-1))?5:1}var _t=0,Pt=0,Xt=0,Ke=0,Xe=!1;function Ze(we,k,ee,Pe,ve){if(_t>=10||ee<-25)return;for(var Te=0;we>0&&k>0;){var Ie=Me[we][k],pe=Ve[we][k];if(pe===4)k-=1,ve?ee-=5:Pe!==0&&(ee-=1),ve=!1,Te=0;else if(pe&2)if(pe&4&&Ze(we,k-1,Pe!==0?ee-1:ee,Pe,ve),ee+=Ie,we-=1,k-=1,ve=!0,Pe+=Math.pow(2,k+Ke),Ie===1){if(Te+=1,we===0&&!Xe)return}else ee+=1+Te*(Ie-1),Te=0;else return}ee-=k>=3?9:k*3,_t+=1,ee>Xt&&(Xt=ee,Pt=Pe)}function Ye(we,k,ee,Pe,ve,Te,Ie){return ke(we,k,ee,Pe,ve,Te,!0,Ie)}function ke(we,k,ee,Pe,ve,Te,Ie,pe){var nt=ze(we,k,ee,Pe,ve,Te,pe);if(nt&&!Ie)return nt;if(we.length>=3)for(var Et=Math.min(7,we.length-1),Rt=ee+1;Rt<Et;Rt++){var Tt=$e(we,Rt);if(Tt){var Ht=ze(Tt,Tt.toLowerCase(),ee,Pe,ve,Te,pe);Ht&&(Ht[0]-=3,(!nt||Ht[0]>nt[0])&&(nt=Ht))}}return nt}function $e(we,k){if(k+1>=we.length)return;var ee=we[k],Pe=we[k+1];return ee===Pe?void 0:we.slice(0,k)+Pe+ee+we.slice(k+2)}},VoE1:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return r.e(251).then(r.bind(null,"rbDI"))}})},W03H:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("IWorkspaceEditService")},WKDz:function(wt,P,r){"use strict";r.d(P,"a",function(){return E});var I=r("jSiy"),oe=r.n(I),ne=r("fF8p"),N=r("WWv/"),F=r("bN5T"),U=r("eAZY"),j=r("mucJ"),G=function(){var A=function(z,_){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var g in p)p.hasOwnProperty(g)&&(f[g]=p[g])},A(z,_)};return function(te,z){A(te,z);function _(){this.constructor=te}te.prototype=z===null?Object.create(z):(_.prototype=z.prototype,new _)}}(),R=function(){function A(te){this._element=te}return Object.defineProperty(A.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"textContent",{set:function(z){if(this.disposed||z===this._textContent)return;this._textContent=z,this._element.textContent=z},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"className",{set:function(z){if(this.disposed||z===this._className)return;this._className=z,this._element.className=z},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"title",{set:function(z){if(this.disposed||z===this._title)return;this._title=z,this._title?this._element.title=z:this._element.removeAttribute("title")},enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"empty",{set:function(z){if(this.disposed||z===this._empty)return;this._empty=z,this._element.style.marginLeft=z?"0":""},enumerable:!0,configurable:!0}),A.prototype.dispose=function(){this.disposed=!0},A}(),E=function(A){G(te,A);function te(z,_){var f=A.call(this)||this;f.domNode=f._register(new R(ne.p(z,ne.a(".monaco-icon-label"))));var p=ne.p(f.domNode.element,ne.a(".monaco-icon-label-container")),g=ne.p(p,ne.a("span.monaco-icon-name-container"));return f.descriptionContainer=f._register(new R(ne.p(p,ne.a("span.monaco-icon-description-container")))),(_==null?void 0:_.supportHighlights)?f.nameNode=new D(g,!!_.supportCodicons):f.nameNode=new x(g),(_==null?void 0:_.supportDescriptionHighlights)?f.descriptionNodeFactory=function(){return new N.a(ne.p(f.descriptionContainer.element,ne.a("span.label-description")),!!_.supportCodicons)}:f.descriptionNodeFactory=function(){return f._register(new R(ne.p(f.descriptionContainer.element,ne.a("span.label-description"))))},f}return te.prototype.setLabel=function(z,_,f){var p=["monaco-icon-label"];f&&(f.extraClasses&&p.push.apply(p,f.extraClasses),f.italic&&p.push("italic")),this.domNode.className=p.join(" "),this.domNode.title=(f==null?void 0:f.title)||"",this.nameNode.setLabel(z,f),(_||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof N.a?(this.descriptionNode.set(_||"",f?f.descriptionMatches:void 0),(f==null?void 0:f.descriptionTitle)?this.descriptionNode.element.title=f.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=_||"",this.descriptionNode.title=(f==null?void 0:f.descriptionTitle)||"",this.descriptionNode.empty=!_))},te}(F.a),x=function(){function A(te){this.container=te,this.label=void 0,this.singleLabel=void 0}return A.prototype.setLabel=function(te,z){if(this.label===te&&Object(j.e)(this.options,z))return;if(this.label=te,this.options=z,typeof te=="string")this.singleLabel||(this.container.innerHTML="",ne.O(this.container,"multiple"),this.singleLabel=ne.p(this.container,ne.a("a.label-name",{id:z==null?void 0:z.domId}))),this.singleLabel.textContent=te;else{this.container.innerHTML="",ne.e(this.container,"multiple"),this.singleLabel=void 0;for(var _=0;_<te.length;_++){var f=te[_],p=(z==null?void 0:z.domId)&&(z==null?void 0:z.domId)+"_"+_;ne.p(this.container,ne.a("a.label-name",{id:p,"data-icon-label-count":te.length,"data-icon-label-index":_},f)),_<te.length-1&&ne.p(this.container,ne.a("span.label-separator",void 0,(z==null?void 0:z.separator)||"/"))}}},A}();function K(A,te,z){if(!z)return;var _=0;return A.map(function(f){var p={start:_,end:_+f.length},g=z.map(function(m){return U.a.intersect(p,m)}).filter(function(m){return!U.a.isEmpty(m)}).map(function(m){var w=m.start,B=m.end;return{start:w-_,end:B-_}});return _=p.end+te.length,g})}var D=function(){function A(te,z){this.container=te,this.supportCodicons=z,this.label=void 0,this.singleLabel=void 0}return A.prototype.setLabel=function(te,z){if(this.label===te&&Object(j.e)(this.options,z))return;if(this.label=te,this.options=z,typeof te=="string")this.singleLabel||(this.container.innerHTML="",ne.O(this.container,"multiple"),this.singleLabel=new N.a(ne.p(this.container,ne.a("a.label-name",{id:z==null?void 0:z.domId})),this.supportCodicons)),this.singleLabel.set(te,z==null?void 0:z.matches,z==null?void 0:z.title,z==null?void 0:z.labelEscapeNewLines);else{this.container.innerHTML="",ne.e(this.container,"multiple"),this.singleLabel=void 0;for(var _=(z==null?void 0:z.separator)||"/",f=K(te,_,z==null?void 0:z.matches),p=0;p<te.length;p++){var g=te[p],m=f?f[p]:void 0,w=(z==null?void 0:z.domId)&&(z==null?void 0:z.domId)+"_"+p,B=ne.a("a.label-name",{id:w,"data-icon-label-count":te.length,"data-icon-label-index":p}),H=new N.a(ne.p(this.container,B),this.supportCodicons);H.set(g,m,z==null?void 0:z.title,z==null?void 0:z.labelEscapeNewLines),p<te.length-1&&ne.p(B,ne.a("span.label-separator",void 0,_))}}},A}()},WO5T:function(wt,P,r){"use strict";r.d(P,"a",function(){return F});var I=r("YK2C"),oe=r("bN5T"),ne=function(){var K=function(A,te){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,_){z.__proto__=_}||function(z,_){for(var f in _)_.hasOwnProperty(f)&&(z[f]=_[f])},K(A,te)};return function(D,A){K(D,A);function te(){this.constructor=D}D.prototype=A===null?Object.create(A):(te.prototype=A.prototype,new te)}}(),N=function(){function K(D,A,te,z,_,f){D=D|0,A=A|0,te=te|0,z=z|0,_=_|0,f=f|0,D<0&&(D=0),te+D>A&&(te=A-D),te<0&&(te=0),z<0&&(z=0),f+z>_&&(f=_-z),f<0&&(f=0),this.width=D,this.scrollWidth=A,this.scrollLeft=te,this.height=z,this.scrollHeight=_,this.scrollTop=f}return K.prototype.equals=function(D){return this.width===D.width&&this.scrollWidth===D.scrollWidth&&this.scrollLeft===D.scrollLeft&&this.height===D.height&&this.scrollHeight===D.scrollHeight&&this.scrollTop===D.scrollTop},K.prototype.withScrollDimensions=function(D){return new K(typeof D.width!="undefined"?D.width:this.width,typeof D.scrollWidth!="undefined"?D.scrollWidth:this.scrollWidth,this.scrollLeft,typeof D.height!="undefined"?D.height:this.height,typeof D.scrollHeight!="undefined"?D.scrollHeight:this.scrollHeight,this.scrollTop)},K.prototype.withScrollPosition=function(D){return new K(this.width,this.scrollWidth,typeof D.scrollLeft!="undefined"?D.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof D.scrollTop!="undefined"?D.scrollTop:this.scrollTop)},K.prototype.createScrollEvent=function(D){var A=this.width!==D.width,te=this.scrollWidth!==D.scrollWidth,z=this.scrollLeft!==D.scrollLeft,_=this.height!==D.height,f=this.scrollHeight!==D.scrollHeight,p=this.scrollTop!==D.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:A,scrollWidthChanged:te,scrollLeftChanged:z,heightChanged:_,scrollHeightChanged:f,scrollTopChanged:p}},K}(),F=function(K){ne(D,K);function D(A,te){var z=K.call(this)||this;return z._onScroll=z._register(new I.a),z.onScroll=z._onScroll.event,z._smoothScrollDuration=A,z._scheduleAtNextAnimationFrame=te,z._state=new N(0,0,0,0,0,0),z._smoothScrolling=null,z}return D.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),K.prototype.dispose.call(this)},D.prototype.setSmoothScrollDuration=function(A){this._smoothScrollDuration=A},D.prototype.validateScrollPosition=function(A){return this._state.withScrollPosition(A)},D.prototype.getScrollDimensions=function(){return this._state},D.prototype.setScrollDimensions=function(A){var te=this._state.withScrollDimensions(A);this._setState(te),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},D.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},D.prototype.getCurrentScrollPosition=function(){return this._state},D.prototype.setScrollPositionNow=function(A){var te=this._state.withScrollPosition(A);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(te)},D.prototype.setScrollPositionSmooth=function(A){var te=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(A);if(this._smoothScrolling){A={scrollLeft:typeof A.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:A.scrollLeft,scrollTop:typeof A.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:A.scrollTop};var z=this._state.withScrollPosition(A);if(this._smoothScrolling.to.scrollLeft===z.scrollLeft&&this._smoothScrolling.to.scrollTop===z.scrollTop)return;var _=this._smoothScrolling.combine(this._state,z,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=_}else{var z=this._state.withScrollPosition(A);this._smoothScrolling=R.start(this._state,z,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!te._smoothScrolling)return;te._smoothScrolling.animationFrameDisposable=null,te._performSmoothScrolling()})},D.prototype._performSmoothScrolling=function(){var A=this;if(!this._smoothScrolling)return;var te=this._smoothScrolling.tick(),z=this._state.withScrollPosition(te);if(this._setState(z),te.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!A._smoothScrolling)return;A._smoothScrolling.animationFrameDisposable=null,A._performSmoothScrolling()})},D.prototype._setState=function(A){var te=this._state;if(te.equals(A))return;this._state=A,this._onScroll.fire(this._state.createScrollEvent(te))},D}(oe.a),U=function(){function K(D,A,te){this.scrollLeft=D,this.scrollTop=A,this.isDone=te}return K}();function j(K,D){var A=D-K;return function(te){return K+A*x(te)}}function G(K,D,A){return function(te){return te<A?K(te/A):D((te-A)/(1-A))}}var R=function(){function K(D,A,te,z){this.from=D,this.to=A,this.duration=z,this._startTime=te,this.animationFrameDisposable=null,this._initAnimations()}return K.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},K.prototype._initAnimation=function(D,A,te){var z=Math.abs(D-A);if(z>2.5*te){var _=void 0,f=void 0;return D<A?(_=D+.75*te,f=A-.75*te):(_=D-.75*te,f=A+.75*te),G(j(D,_),j(f,A),.33)}return j(D,A)},K.prototype.dispose=function(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},K.prototype.acceptScrollDimensions=function(D){this.to=D.withScrollPosition(this.to),this._initAnimations()},K.prototype.tick=function(){return this._tick(Date.now())},K.prototype._tick=function(D){var A=(D-this._startTime)/this.duration;if(A<1){var te=this.scrollLeft(A),z=this.scrollTop(A);return new U(te,z,!1)}return new U(this.to.scrollLeft,this.to.scrollTop,!0)},K.prototype.combine=function(D,A,te){return K.start(D,A,te)},K.start=function(D,A,te){te=te+10;var z=Date.now()-10;return new K(D,A,z,te)},K}();function E(K){return Math.pow(K,3)}function x(K){return 1-E(1-K)}},WWf0:function(wt,P,r){},"WWv/":function(wt,P,r){"use strict";r.d(P,"a",function(){return N});var I=r("mucJ"),oe=r("wzUm"),ne=r("yBOt"),N=function(){function F(U,j){this.supportCodicons=j,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",U.appendChild(this.domNode)}return Object.defineProperty(F.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),F.prototype.set=function(U,j,G,R){if(j===void 0&&(j=[]),G===void 0&&(G=""),U||(U=""),R&&(U=F.escapeNewLines(U,j)),this.didEverRender&&this.text===U&&this.title===G&&I.e(this.highlights,j))return;Array.isArray(j)||(j=[]),this.text=U,this.title=G,this.highlights=j,this.render()},F.prototype.render=function(){for(var U="",j=0,G=0,R=this.highlights;G<R.length;G++){var E=R[G];if(E.end===E.start)continue;if(j<E.start){U+="<span>";var x=this.text.substring(j,E.start);U+=this.supportCodicons?Object(oe.c)(Object(ne.o)(x)):Object(ne.o)(x),U+="</span>",j=E.end}E.extraClasses?U+='<span class="highlight '+E.extraClasses+'">':U+='<span class="highlight">';var K=this.text.substring(E.start,E.end);U+=this.supportCodicons?Object(oe.c)(Object(ne.o)(K)):Object(ne.o)(K),U+="</span>",j=E.end}if(j<this.text.length){U+="<span>";var K=this.text.substring(j);U+=this.supportCodicons?Object(oe.c)(Object(ne.o)(K)):Object(ne.o)(K),U+="</span>"}this.domNode.innerHTML=U,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},F.escapeNewLines=function(U,j){var G=0,R=0;return U.replace(/\r\n|\r|\n/g,function(E,x){R=E===`\r
|
|
`?-1:0,x+=G;for(var K=0,D=j;K<D.length;K++){var A=D[K];if(A.end<=x)continue;A.start>=x&&(A.start+=R),A.end>=x&&(A.end+=R)}return G+=R,"\u23CE"})},F}()},WcJl:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});function I(oe){var ne=this,N=!1,F;return function(){return N||(N=!0,F=oe.apply(ne,arguments)),F}}},Whdu:function(wt,P,r){"use strict";r.d(P,"a",function(){return te}),r.d(P,"c",function(){return z}),r.d(P,"b",function(){return _}),r.d(P,"j",function(){return f}),r.d(P,"e",function(){return p}),r.d(P,"k",function(){return g}),r.d(P,"g",function(){return w}),r.d(P,"f",function(){return B}),r.d(P,"i",function(){return H}),r.d(P,"h",function(){return re}),r.d(P,"d",function(){return he});var I=r("QqjT"),oe=r("zOJ8"),ne=r("vQ3m"),N=r("V0RK"),F=r("1Ylb"),U=r("AhSp"),j=r("1OsU"),G=r("OJ8J"),R=r("bBv/"),E=r("sobA"),x=r("E+fE"),K=r("yimU"),D=r("yqRl"),A=function(){var q=function(ce,Me){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ve,_e){Ve.__proto__=_e}||function(Ve,_e){for(var ue in _e)_e.hasOwnProperty(ue)&&(Ve[ue]=_e[ue])},q(ce,Me)};return function(Z,ce){q(Z,ce);function Me(){this.constructor=Z}Z.prototype=ce===null?Object.create(ce):(Me.prototype=ce.prototype,new Me)}}(),te=function(){function q(Z){this.id=Z.id,this.precondition=Z.precondition,this._kbOpts=Z.kbOpts,this._menuOpts=Z.menuOpts,this._description=Z.description}return q.prototype.register=function(){var Z=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var ce=this._kbOpts.kbExpr;this.precondition&&(ce?ce=R.a.and(ce,this.precondition):ce=this.precondition),E.a.registerCommandAndKeybindingRule({id:this.id,handler:function(Ve,_e){return Z.runCommand(Ve,_e)},weight:this._kbOpts.weight,when:ce,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else G.a.registerCommand({id:this.id,handler:function(Ve,_e){return Z.runCommand(Ve,_e)},description:this._description})},q.prototype._registerMenuItem=function(Z){j.c.appendMenuItem(Z.menuId,{group:Z.group,command:{id:this.id,title:Z.title},when:Z.when,order:Z.order})},q}(),z=function(q){A(Z,q);function Z(){return q!==null&&q.apply(this,arguments)||this}return Z.bindToContribution=function(ce){return function(Me){A(Ve,Me);function Ve(_e){var ue=Me.call(this,_e)||this;return ue._callback=_e.handler,ue}return Ve.prototype.runEditorCommand=function(_e,ue,se){var fe=ce(ue);fe&&this._callback(ce(ue),se)},Ve}(Z)},Z.prototype.runCommand=function(ce,Me){var Ve=this,_e=ce.get(ne.a),ue=_e.getFocusedCodeEditor()||_e.getActiveCodeEditor();return ue?ue.invokeWithinContext(function(se){var fe=se.get(R.c);return fe.contextMatchesRules(Object(D.n)(Ve.precondition))?Ve.runEditorCommand(se,ue,Me):void 0}):void 0},Z}(te),_=function(q){A(Z,q);function Z(ce){var Me=q.call(this,Z.convertOptions(ce))||this;return Me.label=ce.label,Me.alias=ce.alias,Me}return Z.convertOptions=function(ce){var Me;Array.isArray(ce.menuOpts)?Me=ce.menuOpts:ce.menuOpts?Me=[ce.menuOpts]:Me=[];function Ve(_e){return _e.menuId||(_e.menuId=7),_e.title||(_e.title=ce.label),_e.when=R.a.and(ce.precondition,_e.when),_e}return Array.isArray(ce.contextMenuOpts)?Me.push.apply(Me,ce.contextMenuOpts.map(Ve)):ce.contextMenuOpts&&Me.push(Ve(ce.contextMenuOpts)),ce.menuOpts=Me,ce},Z.prototype.runEditorCommand=function(ce,Me,Ve){return this.reportTelemetry(ce,Me),this.run(ce,Me,Ve||{})},Z.prototype.reportTelemetry=function(ce,Me){ce.get(K.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},Z}(z);function f(q,Z){G.a.registerCommand(q,function(ce,Me){return Z(ce,Me||{})})}function p(q,Z){f(q,function(ce,Me){var Ve=Me.resource,_e=Me.position;if(!(Ve instanceof oe.a))throw Object(I.b)("resource");if(!N.a.isIPosition(_e))throw Object(I.b)("position");var ue=ce.get(F.a).getModel(Ve);if(ue){var se=N.a.lift(_e);return Z(ue,se,Me)}return ce.get(U.a).createModelReference(Ve).then(function(fe){return new Promise(function(ie,J){try{var me=Z(fe.object.textEditorModel,N.a.lift(_e),Me);ie(me)}catch(ye){J(ye)}}).finally(function(){fe.dispose()})})})}function g(q,Z){G.a.registerCommand(q,function(ce){for(var Me=[],Ve=1;Ve<arguments.length;Ve++)Me[Ve-1]=arguments[Ve];var _e=Me[0],ue=Me[1];Object(D.a)(oe.a.isUri(_e)),Object(D.a)(N.a.isIPosition(ue));var se=ce.get(F.a).getModel(_e);if(se){var fe=N.a.lift(ue);return Z(se,fe,Me.slice(2))}return ce.get(U.a).createModelReference(_e).then(function(ie){return new Promise(function(J,me){try{var ye=Z(ie.object.textEditorModel,N.a.lift(ue),Me.slice(2));J(ye)}catch(ze){me(ze)}}).finally(function(){ie.dispose()})})})}function m(q,Z){G.a.registerCommand(q,function(ce){for(var Me=[],Ve=1;Ve<arguments.length;Ve++)Me[Ve-1]=arguments[Ve];var _e=Me[0];Object(D.a)(oe.a.isUri(_e));var ue=ce.get(F.a).getModel(_e);return ue?Z(ue,Me.slice(1)):ce.get(U.a).createModelReference(_e).then(function(se){return new Promise(function(fe,ie){try{var J=Z(se.object.textEditorModel,Me.slice(1));fe(J)}catch(me){ie(me)}}).finally(function(){se.dispose()})})})}function w(q){return Se.INSTANCE.registerEditorCommand(q),q}function B(q){Se.INSTANCE.registerEditorAction(new q)}function H(q){Se.INSTANCE.registerEditorAction(q)}function re(q,Z){Se.INSTANCE.registerEditorContribution(q,Z)}var he;(function(q){function Z(ue){return Se.INSTANCE.getEditorCommand(ue)}q.getEditorCommand=Z;function ce(){return Se.INSTANCE.getEditorActions()}q.getEditorActions=ce;function Me(){return Se.INSTANCE.getEditorContributions()}q.getEditorContributions=Me;function Ve(ue){return Se.INSTANCE.getEditorContributions().filter(function(se){return ue.indexOf(se.id)>=0})}q.getSomeEditorContributions=Ve;function _e(){return Se.INSTANCE.getDiffEditorContributions()}q.getDiffEditorContributions=_e})(he||(he={}));var Ee={EditorCommonContributions:"editor.contributions"},Se=function(){function q(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return q.prototype.registerEditorContribution=function(Z,ce){this.editorContributions.push({id:Z,ctor:ce})},q.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},q.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},q.prototype.registerEditorAction=function(Z){Z.register(),this.editorActions.push(Z)},q.prototype.getEditorActions=function(){return this.editorActions.slice(0)},q.prototype.registerEditorCommand=function(Z){Z.register(),this.editorCommands[Z.id]=Z},q.prototype.getEditorCommand=function(Z){return this.editorCommands[Z]||null},q.INSTANCE=new q,q}();x.a.add(Ee.EditorCommonContributions,Se.INSTANCE)},XAYP:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("ywU6"),oe=function(){function N(F){this.element=F,this.next=N.Undefined,this.prev=N.Undefined}return N.Undefined=new N(void 0),N}(),ne=function(){function N(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}return Object.defineProperty(N.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),N.prototype.isEmpty=function(){return this._first===oe.Undefined},N.prototype.clear=function(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0},N.prototype.unshift=function(F){return this._insert(F,!1)},N.prototype.push=function(F){return this._insert(F,!0)},N.prototype._insert=function(F,U){var j=this,G=new oe(F);if(this._first===oe.Undefined)this._first=G,this._last=G;else if(U){var R=this._last;this._last=G,G.prev=R,R.next=G}else{var E=this._first;this._first=G,G.next=E,E.prev=G}this._size+=1;var x=!1;return function(){x||(x=!0,j._remove(G))}},N.prototype.shift=function(){if(this._first===oe.Undefined)return;var F=this._first.element;return this._remove(this._first),F},N.prototype.pop=function(){if(this._last===oe.Undefined)return;var F=this._last.element;return this._remove(this._last),F},N.prototype._remove=function(F){if(F.prev!==oe.Undefined&&F.next!==oe.Undefined){var U=F.prev;U.next=F.next,F.next.prev=U}else F.prev===oe.Undefined&&F.next===oe.Undefined?(this._first=oe.Undefined,this._last=oe.Undefined):F.next===oe.Undefined?(this._last=this._last.prev,this._last.next=oe.Undefined):F.prev===oe.Undefined&&(this._first=this._first.next,this._first.prev=oe.Undefined);this._size-=1},N.prototype.iterator=function(){var F,U=this._first;return{next:function(){return U===oe.Undefined?I.b:(F?F.value=U.element:F={done:!1,value:U.element},U=U.next,F)}}},N.prototype.toArray=function(){for(var F=[],U=this._first;U!==oe.Undefined;U=U.next)F.push(U.element);return F},N}()},XGV8:function(wt,P,r){"use strict";r.d(P,"a",function(){return te}),r.d(P,"b",function(){return z});var I=r("QqjT"),oe=r("yBOt"),ne=r("i14n"),N=r("g2LA"),F=r("w9Cd"),U=r("F5bH"),j=r("tkZS"),G=Object.create(null);function R(_,f){G[_]||(G[_]=["",_]);for(var p=G[_],g=p.length;g<=f;g++)p[g]=p[g-1]+_;return p[f]}var E=function(){function _(f,p){this._opts=p,this._selection=f,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return _.unshiftIndent=function(f,p,g,m,w){var B=N.a.visibleColumnFromColumn(f,p,g);if(w){var H=R(" ",m),re=N.a.prevIndentTabStop(B,m),he=re/m;return R(H,he)}else{var H=" ",re=N.a.prevRenderTabStop(B,g),he=re/g;return R(H,he)}},_.shiftIndent=function(f,p,g,m,w){var B=N.a.visibleColumnFromColumn(f,p,g);if(w){var H=R(" ",m),re=N.a.nextIndentTabStop(B,m),he=re/m;return R(H,he)}else{var H=" ",re=N.a.nextRenderTabStop(B,g),he=re/g;return R(H,he)}},_.prototype._addEditOperation=function(f,p,g){this._useLastEditRangeForCursorEndPosition?f.addTrackedEditOperation(p,g):f.addEditOperation(p,g)},_.prototype.getEditOperations=function(f,p){var g=this._selection.startLineNumber,m=this._selection.endLineNumber;this._selection.endColumn===1&&g!==m&&(m=m-1);var w=this._opts,B=w.tabSize,H=w.indentSize,re=w.insertSpaces,he=g===m;if(this._selection.isEmpty()&&(/^\s*$/.test(f.getLineContent(g))&&(this._useLastEditRangeForCursorEndPosition=!0)),this._opts.useTabStops)for(var Ee=0,Se=0,q=g;q<=m;q++,Ee=Se){Se=0;var Z=f.getLineContent(q),ce=oe.q(Z);if(this._opts.isUnshift&&(Z.length===0||ce===0))continue;if(!he&&!this._opts.isUnshift&&Z.length===0)continue;if(ce===-1&&(ce=Z.length),q>1){var Me=N.a.visibleColumnFromColumn(Z,ce+1,B);if(Me%H!==0&&f.isCheapToTokenize(q-1)){var Ve=j.a.getEnterAction(this._opts.autoIndent,f,new F.a(q-1,f.getLineMaxColumn(q-1),q-1,f.getLineMaxColumn(q-1)));if(Ve){if(Se=Ee,Ve.appendText)for(var _e=0,ue=Ve.appendText.length;_e<ue&&Se<H&&Ve.appendText.charCodeAt(_e)===32;_e++)Se++;Ve.removeText&&(Se=Math.max(0,Se-Ve.removeText));for(var _e=0;_e<Se&&!(ce===0||Z.charCodeAt(ce-1)!==32);_e++)ce--}}}if(this._opts.isUnshift&&ce===0)continue;var se=void 0;this._opts.isUnshift?se=_.unshiftIndent(Z,ce+1,B,H,re):se=_.shiftIndent(Z,ce+1,B,H,re),this._addEditOperation(p,new F.a(q,1,q,ce+1),se),q===g&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=ce+1)}else for(var fe=re?R(" ",H):" ",q=g;q<=m;q++){var Z=f.getLineContent(q),ce=oe.q(Z);if(this._opts.isUnshift&&(Z.length===0||ce===0))continue;if(!he&&!this._opts.isUnshift&&Z.length===0)continue;if(ce===-1&&(ce=Z.length),this._opts.isUnshift&&ce===0)continue;if(this._opts.isUnshift){ce=Math.min(ce,H);for(var ie=0;ie<ce;ie++){var J=Z.charCodeAt(ie);if(J===9){ce=ie+1;break}}this._addEditOperation(p,new F.a(q,1,q,ce+1),"")}else this._addEditOperation(p,new F.a(q,1,q,1),fe),q===g&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}this._selectionId=p.trackSelection(this._selection)},_.prototype.computeCursorState=function(f,p){if(this._useLastEditRangeForCursorEndPosition){var g=p.getInverseEditOperations()[0];return new U.a(g.range.endLineNumber,g.range.endColumn,g.range.endLineNumber,g.range.endColumn)}var m=p.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var w=this._selection.startColumn,B=m.startColumn;return B<=w?m:m.getDirection()===0?new U.a(m.startLineNumber,w,m.endLineNumber,m.endColumn):new U.a(m.endLineNumber,m.endColumn,m.startLineNumber,w)}return m},_}(),x=function(){function _(f,p,g){this._range=f,this._charBeforeSelection=p,this._charAfterSelection=g}return _.prototype.getEditOperations=function(f,p){p.addTrackedEditOperation(new F.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),p.addTrackedEditOperation(new F.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},_.prototype.computeCursorState=function(f,p){var g=p.getInverseEditOperations(),m=g[0].range,w=g[1].range;return new U.a(m.endLineNumber,m.endColumn,w.endLineNumber,w.endColumn-this._charAfterSelection.length)},_}(),K=r("ATqw"),D=r("2Wy8"),A=function(){var _=function(p,g){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var B in w)w.hasOwnProperty(B)&&(m[B]=w[B])},_(p,g)};return function(f,p){_(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),te=function(){function _(){}return _.indent=function(f,p,g){if(p===null||g===null)return[];for(var m=[],w=0,B=g.length;w<B;w++)m[w]=new E(g[w],{isUnshift:!1,tabSize:f.tabSize,indentSize:f.indentSize,insertSpaces:f.insertSpaces,useTabStops:f.useTabStops,autoIndent:f.autoIndent});return m},_.outdent=function(f,p,g){for(var m=[],w=0,B=g.length;w<B;w++)m[w]=new E(g[w],{isUnshift:!0,tabSize:f.tabSize,indentSize:f.indentSize,insertSpaces:f.insertSpaces,useTabStops:f.useTabStops,autoIndent:f.autoIndent});return m},_.shiftIndent=function(f,p,g){return g=g||1,E.shiftIndent(p,p.length+g,f.tabSize,f.indentSize,f.insertSpaces)},_.unshiftIndent=function(f,p,g){return g=g||1,E.unshiftIndent(p,p.length+g,f.tabSize,f.indentSize,f.insertSpaces)},_._distributedPaste=function(f,p,g,m){for(var w=[],B=0,H=g.length;B<H;B++)w[B]=new ne.a(g[B],m[B]);return new N.e(0,w,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},_._simplePaste=function(f,p,g,m,w){for(var B=[],H=0,re=g.length;H<re;H++){var he=g[H],Ee=he.getPosition();if(w&&!he.isEmpty()&&(w=!1),w&&m.indexOf(`
|
|
`)!==m.length-1&&(w=!1),w){var Se=new F.a(Ee.lineNumber,1,Ee.lineNumber,1);B[H]=new ne.b(Se,m,he,!0)}else B[H]=new ne.a(he,m)}return new N.e(0,B,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},_._distributePasteToCursors=function(f,p,g,m,w){if(m)return null;if(p.length===1)return null;if(w&&w.length===p.length)return w;if(f.multiCursorPaste==="spread"){g.charCodeAt(g.length-1)===10&&(g=g.substr(0,g.length-1)),g.charCodeAt(g.length-1)===13&&(g=g.substr(0,g.length-1));var B=g.split(/\r\n|\r|\n/);if(B.length===p.length)return B}return null},_.paste=function(f,p,g,m,w,B){var H=this._distributePasteToCursors(f,g,m,w,B);return H?(g=g.sort(F.a.compareRangesUsingStarts),this._distributedPaste(f,p,g,H)):this._simplePaste(f,p,g,m,w)},_._goodIndentForLine=function(f,p,g){var m=null,w="",B=j.a.getInheritIndentForLine(f.autoIndent,p,g,!1);if(B)m=B.action,w=B.indentation;else if(g>1){var H=void 0;for(H=g-1;H>=1;H--){var re=p.getLineContent(H),he=oe.D(re);if(he>=0)break}if(H<1)return null;var Ee=p.getLineMaxColumn(H),Se=j.a.getEnterAction(f.autoIndent,p,new F.a(H,Ee,H,Ee));Se&&(w=Se.indentation+Se.appendText)}return m&&(m===D.a.Indent&&(w=_.shiftIndent(f,w)),m===D.a.Outdent&&(w=_.unshiftIndent(f,w)),w=f.normalizeIndentation(w)),w||null},_._replaceJumpToNextIndent=function(f,p,g,m){var w="",B=g.getStartPosition();if(f.insertSpaces)for(var H=N.a.visibleColumnFromColumn2(f,p,B),re=f.indentSize,he=re-H%re,Ee=0;Ee<he;Ee++)w+=" ";else w=" ";return new ne.a(g,w,m)},_.tab=function(f,p,g){for(var m=[],w=0,B=g.length;w<B;w++){var H=g[w];if(H.isEmpty()){var re=p.getLineContent(H.startLineNumber);if(/^\s*$/.test(re)&&p.isCheapToTokenize(H.startLineNumber)){var he=this._goodIndentForLine(f,p,H.startLineNumber);he=he||" ";var Ee=f.normalizeIndentation(he);if(!oe.M(re,Ee)){m[w]=new ne.a(new F.a(H.startLineNumber,1,H.startLineNumber,re.length+1),Ee,!0);continue}}m[w]=this._replaceJumpToNextIndent(f,p,H,!0)}else{if(H.startLineNumber===H.endLineNumber){var Se=p.getLineMaxColumn(H.startLineNumber);if(H.startColumn!==1||H.endColumn!==Se){m[w]=this._replaceJumpToNextIndent(f,p,H,!1);continue}}m[w]=new E(H,{isUnshift:!1,tabSize:f.tabSize,indentSize:f.indentSize,insertSpaces:f.insertSpaces,useTabStops:f.useTabStops,autoIndent:f.autoIndent})}}return m},_.replacePreviousChar=function(f,p,g,m,w,B){for(var H=[],re=0,he=m.length;re<he;re++){var Ee=m[re];if(!Ee.isEmpty()){H[re]=null;continue}var Se=Ee.getPosition(),q=Math.max(1,Se.column-B),Z=new F.a(Se.lineNumber,q,Se.lineNumber,Se.column);H[re]=new ne.a(Z,w)}return new N.e(1,H,{shouldPushStackElementBefore:f!==1,shouldPushStackElementAfter:!1})},_._typeCommand=function(f,p,g){return g?new ne.d(f,p,!0):new ne.a(f,p,!0)},_._enter=function(f,p,g,m){if(f.autoIndent===0)return _._typeCommand(m,`
|
|
`,g);if(!p.isCheapToTokenize(m.getStartPosition().lineNumber)||f.autoIndent===1){var w=p.getLineContent(m.startLineNumber),B=oe.t(w).substring(0,m.startColumn-1);return _._typeCommand(m,`
|
|
`+f.normalizeIndentation(B),g)}var H=j.a.getEnterAction(f.autoIndent,p,m);if(H){if(H.indentAction===D.a.None)return _._typeCommand(m,`
|
|
`+f.normalizeIndentation(H.indentation+H.appendText),g);if(H.indentAction===D.a.Indent)return _._typeCommand(m,`
|
|
`+f.normalizeIndentation(H.indentation+H.appendText),g);if(H.indentAction===D.a.IndentOutdent){var re=f.normalizeIndentation(H.indentation),he=f.normalizeIndentation(H.indentation+H.appendText),Ee=`
|
|
`+he+`
|
|
`+re;return g?new ne.d(m,Ee,!0):new ne.c(m,Ee,-1,he.length-re.length,!0)}else if(H.indentAction===D.a.Outdent){var Se=_.unshiftIndent(f,H.indentation);return _._typeCommand(m,`
|
|
`+f.normalizeIndentation(Se+H.appendText),g)}}var q=p.getLineContent(m.startLineNumber),Z=oe.t(q).substring(0,m.startColumn-1);if(f.autoIndent>=4){var ce=j.a.getIndentForEnter(f.autoIndent,p,m,{unshiftIndent:function(J){return _.unshiftIndent(f,J)},shiftIndent:function(J){return _.shiftIndent(f,J)},normalizeIndentation:function(J){return f.normalizeIndentation(J)}});if(ce){var Me=N.a.visibleColumnFromColumn2(f,p,m.getEndPosition()),Ve=m.endColumn,_e=`
|
|
`;Z!==f.normalizeIndentation(ce.beforeEnter)&&(_e=f.normalizeIndentation(ce.beforeEnter)+q.substring(Z.length,m.startColumn-1)+`
|
|
`,m=new F.a(m.startLineNumber,1,m.endLineNumber,m.endColumn));var ue=p.getLineContent(m.endLineNumber),se=oe.q(ue);if(se>=0?m=m.setEndPosition(m.endLineNumber,Math.max(m.endColumn,se+1)):m=m.setEndPosition(m.endLineNumber,p.getLineMaxColumn(m.endLineNumber)),g)return new ne.d(m,_e+f.normalizeIndentation(ce.afterEnter),!0);var fe=0;return Ve<=se+1&&(f.insertSpaces||(Me=Math.ceil(Me/f.indentSize)),fe=Math.min(Me+1-f.normalizeIndentation(ce.afterEnter).length-1,0)),new ne.c(m,_e+f.normalizeIndentation(ce.afterEnter),0,fe,!0)}}return _._typeCommand(m,`
|
|
`+f.normalizeIndentation(Z),g)},_._isAutoIndentType=function(f,p,g){if(f.autoIndent<4)return!1;for(var m=0,w=g.length;m<w;m++)if(!p.isCheapToTokenize(g[m].getEndPosition().lineNumber))return!1;return!0},_._runAutoIndentType=function(f,p,g,m){var w=j.a.getIndentationAtPosition(p,g.startLineNumber,g.startColumn),B=j.a.getIndentActionForType(f.autoIndent,p,g,m,{shiftIndent:function(he){return _.shiftIndent(f,he)},unshiftIndent:function(he){return _.unshiftIndent(f,he)}});if(B===null)return null;if(B!==f.normalizeIndentation(w)){var H=p.getLineFirstNonWhitespaceColumn(g.startLineNumber);return H===0?_._typeCommand(new F.a(g.startLineNumber,0,g.endLineNumber,g.endColumn),f.normalizeIndentation(B)+m,!1):_._typeCommand(new F.a(g.startLineNumber,0,g.endLineNumber,g.endColumn),f.normalizeIndentation(B)+p.getLineContent(g.startLineNumber).substring(H-1,g.startColumn-1)+m,!1)}return null},_._isAutoClosingOvertype=function(f,p,g,m,w){if(f.autoClosingOvertype==="never")return!1;if(!f.autoClosingPairsClose2.has(w))return!1;for(var B=0,H=g.length;B<H;B++){var re=g[B];if(!re.isEmpty())return!1;var he=re.getPosition(),Ee=p.getLineContent(he.lineNumber),Se=Ee.charAt(he.column-1);if(Se!==w)return!1;var q=Object(N.g)(w),Z=he.column>2?Ee.charCodeAt(he.column-2):0;if(Z===92&&q)return!1;if(f.autoClosingOvertype==="auto"){for(var ce=!1,Me=0,Ve=m.length;Me<Ve;Me++){var _e=m[Me];if(he.lineNumber===_e.startLineNumber&&he.column===_e.startColumn){ce=!0;break}}if(!ce)return!1}}return!0},_._runAutoClosingOvertype=function(f,p,g,m,w){for(var B=[],H=0,re=m.length;H<re;H++){var he=m[H],Ee=he.getPosition(),Se=new F.a(Ee.lineNumber,Ee.column,Ee.lineNumber,Ee.column+1);B[H]=new ne.a(Se,w)}return new N.e(1,B,{shouldPushStackElementBefore:f!==1,shouldPushStackElementAfter:!1})},_._autoClosingPairIsSymmetric=function(f){var p=f.open,g=f.close;return p.indexOf(g)>=0||g.indexOf(p)>=0},_._isBeforeClosingBrace=function(f,p,g){var m=f.autoClosingPairsClose2.get(g);if(!m)return!1;for(var w=_._autoClosingPairIsSymmetric(p),B=0,H=m;B<H.length;B++){var re=H[B],he=_._autoClosingPairIsSymmetric(re);if(!w&&he)continue;return!0}return!1},_._findAutoClosingPairOpen=function(f,p,g,m){var w=f.autoClosingPairsOpen2.get(m);if(!w)return null;for(var B=null,H=0,re=w;H<re.length;H++){var he=re[H];if(B===null||he.open.length>B.open.length){for(var Ee=!0,Se=0,q=g;Se<q.length;Se++){var Z=q[Se],ce=p.getValueInRange(new F.a(Z.lineNumber,Z.column-he.open.length+1,Z.lineNumber,Z.column));if(ce+m!==he.open){Ee=!1;break}}Ee&&(B=he)}}return B},_._isAutoClosingOpenCharType=function(f,p,g,m,w){var B=Object(N.g)(m),H=B?f.autoClosingQuotes:f.autoClosingBrackets;if(H==="never")return null;var re=this._findAutoClosingPairOpen(f,p,g.map(function(fe){return fe.getPosition()}),m);if(!re)return null;for(var he=B?f.shouldAutoCloseBefore.quote:f.shouldAutoCloseBefore.bracket,Ee=0,Se=g.length;Ee<Se;Ee++){var q=g[Ee];if(!q.isEmpty())return null;var Z=q.getPosition(),ce=p.getLineContent(Z.lineNumber);if(ce.length>Z.column-1){var Me=ce.charAt(Z.column-1),Ve=_._isBeforeClosingBrace(f,re,Me);if(!Ve&&!he(Me))return null}if(!p.isCheapToTokenize(Z.lineNumber))return null;if(re.open.length===1&&B&&H!=="always"){var _e=Object(K.a)(f.wordSeparators);if(w&&Z.column>1&&_e.get(ce.charCodeAt(Z.column-2))===0)return null;if(!w&&Z.column>2&&_e.get(ce.charCodeAt(Z.column-3))===0)return null}p.forceTokenization(Z.lineNumber);var ue=p.getLineTokens(Z.lineNumber),se=!1;try{se=j.a.shouldAutoClosePair(re,ue,w?Z.column:Z.column-1)}catch(fe){Object(I.e)(fe)}if(!se)return null}return re},_._runAutoClosingOpenCharType=function(f,p,g,m,w,B,H){for(var re=[],he=0,Ee=m.length;he<Ee;he++){var Se=m[he];re[he]=new z(Se,w,B,H.close)}return new N.e(1,re,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},_._shouldSurroundChar=function(f,p){return Object(N.g)(p)?f.autoSurround==="quotes"||f.autoSurround==="languageDefined":f.autoSurround==="brackets"||f.autoSurround==="languageDefined"},_._isSurroundSelectionType=function(f,p,g,m){if(!_._shouldSurroundChar(f,m)||!f.surroundingPairs.hasOwnProperty(m))return!1;for(var w=Object(N.g)(m),B=0,H=g.length;B<H;B++){var re=g[B];if(re.isEmpty())return!1;for(var he=!0,Ee=re.startLineNumber;Ee<=re.endLineNumber;Ee++){var Se=p.getLineContent(Ee),q=Ee===re.startLineNumber?re.startColumn-1:0,Z=Ee===re.endLineNumber?re.endColumn-1:Se.length,ce=Se.substring(q,Z);if(/[^ \t]/.test(ce)){he=!1;break}}if(he)return!1;if(w&&re.startLineNumber===re.endLineNumber&&re.startColumn+1===re.endColumn){var Me=p.getValueInRange(re);if(Object(N.g)(Me))return!1}}return!0},_._runSurroundSelectionType=function(f,p,g,m,w){for(var B=[],H=0,re=m.length;H<re;H++){var he=m[H],Ee=p.surroundingPairs[w];B[H]=new x(he,w,Ee)}return new N.e(0,B,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},_._isTypeInterceptorElectricChar=function(f,p,g){return!!(g.length===1&&p.isCheapToTokenize(g[0].getEndPosition().lineNumber))},_._typeInterceptorElectricChar=function(f,p,g,m,w){if(!p.electricChars.hasOwnProperty(w)||!m.isEmpty())return null;var B=m.getPosition();g.forceTokenization(B.lineNumber);var H=g.getLineTokens(B.lineNumber),re;try{re=j.a.onElectricCharacter(w,H,B.column)}catch(fe){return Object(I.e)(fe),null}if(!re)return null;if(re.matchOpenBracket){var he=(H.getLineContent()+w).lastIndexOf(re.matchOpenBracket)+1,Ee=g.findMatchingBracketUp(re.matchOpenBracket,{lineNumber:B.lineNumber,column:he});if(Ee){if(Ee.startLineNumber===B.lineNumber)return null;var Se=g.getLineContent(Ee.startLineNumber),q=oe.t(Se),Z=p.normalizeIndentation(q),ce=g.getLineContent(B.lineNumber),Me=g.getLineFirstNonWhitespaceColumn(B.lineNumber)||B.column,Ve=ce.substring(Me-1,B.column-1),_e=Z+Ve+w,ue=new F.a(B.lineNumber,1,B.lineNumber,B.column),se=new ne.a(ue,_e);return new N.e(1,[se],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},_.compositionEndWithInterceptors=function(f,p,g,m,w,B){if(!m||U.a.selectionsArrEqual(m,w))return null;for(var H=null,re=0,he=w;re<he.length;re++){var Ee=he[re];if(!Ee.isEmpty())return null;var Se=Ee.getPosition(),q=g.getValueInRange(new F.a(Se.lineNumber,Se.column-1,Se.lineNumber,Se.column));if(H===null)H=q;else if(H!==q)return null}if(!H)return null;if(this._isAutoClosingOvertype(p,g,w,B,H)){var Z=w.map(function(Me){return new ne.a(new F.a(Me.positionLineNumber,Me.positionColumn,Me.positionLineNumber,Me.positionColumn+1),"",!1)});return new N.e(1,Z,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var ce=this._isAutoClosingOpenCharType(p,g,w,H,!1);return ce?this._runAutoClosingOpenCharType(f,p,g,w,H,!1,ce):null},_.typeWithInterceptors=function(f,p,g,m,w,B){if(B===`
|
|
`){for(var H=[],re=0,he=m.length;re<he;re++)H[re]=_._enter(p,g,!1,m[re]);return new N.e(1,H,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(p,g,m)){for(var Ee=[],Se=!1,re=0,he=m.length;re<he;re++)if(Ee[re]=this._runAutoIndentType(p,g,m[re],B),!Ee[re]){Se=!0;break}if(!Se)return new N.e(1,Ee,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(p,g,m,w,B))return this._runAutoClosingOvertype(f,p,g,m,B);var q=this._isAutoClosingOpenCharType(p,g,m,B,!0);if(q)return this._runAutoClosingOpenCharType(f,p,g,m,B,!0,q);if(this._isSurroundSelectionType(p,g,m,B))return this._runSurroundSelectionType(f,p,g,m,B);if(this._isTypeInterceptorElectricChar(p,g,m)){var Z=this._typeInterceptorElectricChar(f,p,g,m[0],B);if(Z)return Z}for(var ce=[],re=0,he=m.length;re<he;re++)ce[re]=new ne.a(m[re],B);var Me=f!==1;return B===" "&&(Me=!0),new N.e(1,ce,{shouldPushStackElementBefore:Me,shouldPushStackElementAfter:!1})},_.typeWithoutInterceptors=function(f,p,g,m,w){for(var B=[],H=0,re=m.length;H<re;H++)B[H]=new ne.a(m[H],w);return new N.e(1,B,{shouldPushStackElementBefore:f!==1,shouldPushStackElementAfter:!1})},_.lineInsertBefore=function(f,p,g){if(p===null||g===null)return[];for(var m=[],w=0,B=g.length;w<B;w++){var H=g[w].positionLineNumber;if(H===1)m[w]=new ne.d(new F.a(1,1,1,1),`
|
|
`);else{H--;var re=p.getLineMaxColumn(H);m[w]=this._enter(f,p,!1,new F.a(H,re,H,re))}}return m},_.lineInsertAfter=function(f,p,g){if(p===null||g===null)return[];for(var m=[],w=0,B=g.length;w<B;w++){var H=g[w].positionLineNumber,re=p.getLineMaxColumn(H);m[w]=this._enter(f,p,!1,new F.a(H,re,H,re))}return m},_.lineBreakInsert=function(f,p,g){for(var m=[],w=0,B=g.length;w<B;w++)m[w]=this._enter(f,p,!0,g[w]);return m},_}(),z=function(_){A(f,_);function f(p,g,m,w){var B=_.call(this,p,(m?g:"")+w,0,-w.length)||this;return B._openCharacter=g,B._closeCharacter=w,B.closeCharacterRange=null,B.enclosingRange=null,B}return f.prototype.computeCursorState=function(p,g){var m=g.getInverseEditOperations(),w=m[0].range;return this.closeCharacterRange=new F.a(w.startLineNumber,w.endColumn-this._closeCharacter.length,w.endLineNumber,w.endColumn),this.enclosingRange=new F.a(w.startLineNumber,w.endColumn-this._openCharacter.length-this._closeCharacter.length,w.endLineNumber,w.endColumn),_.prototype.computeCursorState.call(this,p,g)},f}(ne.c)},XfmC:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("markerDecorationsService")},Y0JX:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return r.e(255).then(r.bind(null,"o8L2"))}})},YK2C:function(wt,P,r){"use strict";r.d(P,"b",function(){return U}),r.d(P,"a",function(){return R}),r.d(P,"d",function(){return E}),r.d(P,"c",function(){return K}),r.d(P,"e",function(){return D});var I=r("QqjT"),oe=r("WcJl"),ne=r("bN5T"),N=r("XAYP"),F=function(){var A=function(z,_){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,p){f.__proto__=p}||function(f,p){for(var g in p)p.hasOwnProperty(g)&&(f[g]=p[g])},A(z,_)};return function(te,z){A(te,z);function _(){this.constructor=te}te.prototype=z===null?Object.create(z):(_.prototype=z.prototype,new _)}}(),U;(function(A){A.None=function(){return ne.a.None};function te(Ve){return function(_e,ue,se){ue===void 0&&(ue=null);var fe=!1,ie;return ie=Ve(function(J){return fe?void 0:(ie?ie.dispose():fe=!0,_e.call(ue,J))},null,se),fe&&ie.dispose(),ie}}A.once=te;function z(Ve,_e){return w(function(ue,se,fe){return se===void 0&&(se=null),Ve(function(ie){return ue.call(se,_e(ie))},null,fe)})}A.map=z;function _(Ve,_e){return w(function(ue,se,fe){return se===void 0&&(se=null),Ve(function(ie){_e(ie),ue.call(se,ie)},null,fe)})}A.forEach=_;function f(Ve,_e){return w(function(ue,se,fe){return se===void 0&&(se=null),Ve(function(ie){return _e(ie)&&ue.call(se,ie)},null,fe)})}A.filter=f;function p(Ve){return Ve}A.signal=p;function g(){for(var Ve=[],_e=0;_e<arguments.length;_e++)Ve[_e]=arguments[_e];return function(ue,se,fe){return se===void 0&&(se=null),ne.e.apply(void 0,Ve.map(function(ie){return ie(function(J){return ue.call(se,J)},null,fe)}))}}A.any=g;function m(Ve,_e,ue){var se=ue;return z(Ve,function(fe){return se=_e(se,fe),se})}A.reduce=m;function w(Ve){var _e,ue=new R({onFirstListenerAdd:function(){_e=Ve(ue.fire,ue)},onLastListenerRemove:function(){_e.dispose()}});return ue.event}A.snapshot=w;function B(Ve,_e,ue,se,fe){ue===void 0&&(ue=100),se===void 0&&(se=!1);var ie,J=void 0,me=void 0,ye=0,ze=new R({leakWarningThreshold:fe,onFirstListenerAdd:function(){ie=Ve(function(_t){ye++,J=_e(J,_t),se&&!me&&(ze.fire(J),J=void 0),clearTimeout(me),me=setTimeout(function(){var Pt=J;J=void 0,me=void 0,(!se||ye>1)&&ze.fire(Pt),ye=0},ue)})},onLastListenerRemove:function(){ie.dispose()}});return ze.event}A.debounce=B;function H(Ve){var _e=new Date().getTime();return z(te(Ve),function(ue){return new Date().getTime()-_e})}A.stopwatch=H;function re(Ve){var _e=!0,ue;return f(Ve,function(se){var fe=_e||se!==ue;return _e=!1,ue=se,fe})}A.latch=re;function he(Ve,_e,ue){_e===void 0&&(_e=!1),ue===void 0&&(ue=[]);var se=ue.slice(),fe=Ve(function(me){se?se.push(me):J.fire(me)}),ie=function(){se&&se.forEach(function(ye){return J.fire(ye)}),se=null},J=new R({onFirstListenerAdd:function(){fe||(fe=Ve(function(ye){return J.fire(ye)}))},onFirstListenerDidAdd:function(){se&&(_e?setTimeout(ie):ie())},onLastListenerRemove:function(){fe&&fe.dispose(),fe=null}});return J.event}A.buffer=he;var Ee=function(){function Ve(_e){this.event=_e}return Ve.prototype.map=function(_e){return new Ve(z(this.event,_e))},Ve.prototype.forEach=function(_e){return new Ve(_(this.event,_e))},Ve.prototype.filter=function(_e){return new Ve(f(this.event,_e))},Ve.prototype.reduce=function(_e,ue){return new Ve(m(this.event,_e,ue))},Ve.prototype.latch=function(){return new Ve(re(this.event))},Ve.prototype.debounce=function(_e,ue,se,fe){return ue===void 0&&(ue=100),se===void 0&&(se=!1),new Ve(B(this.event,_e,ue,se,fe))},Ve.prototype.on=function(_e,ue,se){return this.event(_e,ue,se)},Ve.prototype.once=function(_e,ue,se){return te(this.event)(_e,ue,se)},Ve}();function Se(Ve){return new Ee(Ve)}A.chain=Se;function q(Ve,_e,ue){ue===void 0&&(ue=function(ye){return ye});var se=function(){for(var ye=[],ze=0;ze<arguments.length;ze++)ye[ze]=arguments[ze];return J.fire(ue.apply(void 0,ye))},fe=function(){return Ve.on(_e,se)},ie=function(){return Ve.removeListener(_e,se)},J=new R({onFirstListenerAdd:fe,onLastListenerRemove:ie});return J.event}A.fromNodeEventEmitter=q;function Z(Ve,_e,ue){ue===void 0&&(ue=function(ye){return ye});var se=function(){for(var ye=[],ze=0;ze<arguments.length;ze++)ye[ze]=arguments[ze];return J.fire(ue.apply(void 0,ye))},fe=function(){return Ve.addEventListener(_e,se)},ie=function(){return Ve.removeEventListener(_e,se)},J=new R({onFirstListenerAdd:fe,onLastListenerRemove:ie});return J.event}A.fromDOMEventEmitter=Z;function ce(Ve){var _e=new R,ue=!1;return Ve.then(void 0,function(){return null}).then(function(){ue?_e.fire(void 0):setTimeout(function(){return _e.fire(void 0)},0)}),ue=!0,_e.event}A.fromPromise=ce;function Me(Ve){return new Promise(function(_e){return te(Ve)(_e)})}A.toPromise=Me})(U||(U={}));var j=-1,G=function(){function A(te,z){z===void 0&&(z=Math.random().toString(18).slice(2,5)),this.customThreshold=te,this.name=z,this._warnCountdown=0}return A.prototype.dispose=function(){this._stacks&&this._stacks.clear()},A.prototype.check=function(te){var z=this,_=j;if(typeof this.customThreshold=="number"&&(_=this.customThreshold),_<=0||te<_)return;this._stacks||(this._stacks=new Map);var f=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),p=this._stacks.get(f)||0;if(this._stacks.set(f,p+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=_*.5;var g,m=0;this._stacks.forEach(function(w,B){(!g||m<w)&&(g=B,m=w)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+te+" listeners already. MOST frequent listener ("+m+"):"),console.warn(g)}return function(){var w=z._stacks.get(f)||0;z._stacks.set(f,w-1)}},A}(),R=function(){function A(te){this._disposed=!1,this._options=te,this._leakageMon=j>0?new G(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(A.prototype,"event",{get:function(){var z=this;return this._event||(this._event=function(_,f,p){z._listeners||(z._listeners=new N.a);var g=z._listeners.isEmpty();g&&z._options&&z._options.onFirstListenerAdd&&z._options.onFirstListenerAdd(z);var m=z._listeners.push(f?[_,f]:_);g&&z._options&&z._options.onFirstListenerDidAdd&&z._options.onFirstListenerDidAdd(z),z._options&&z._options.onListenerDidAdd&&z._options.onListenerDidAdd(z,_,f);var w;z._leakageMon&&(w=z._leakageMon.check(z._listeners.size));var B;return B={dispose:function(){if(w&&w(),B.dispose=A._noop,!z._disposed&&(m(),z._options&&z._options.onLastListenerRemove)){var re=z._listeners&&!z._listeners.isEmpty();re||z._options.onLastListenerRemove(z)}}},p instanceof ne.b?p.add(B):Array.isArray(p)&&p.push(B),B}),this._event},enumerable:!0,configurable:!0}),A.prototype.fire=function(te){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new N.a);for(var z=this._listeners.iterator(),_=z.next();!_.done;_=z.next())this._deliveryQueue.push([_.value,te]);for(;this._deliveryQueue.size>0;){var f=this._deliveryQueue.shift(),p=f[0],g=f[1];try{typeof p=="function"?p.call(void 0,g):p[0].call(p[1],g)}catch(m){Object(I.e)(m)}}}},A.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},A._noop=function(){},A}(),E=function(A){F(te,A);function te(z){var _=A.call(this,z)||this;return _._isPaused=0,_._eventQueue=new N.a,_._mergeFn=z&&z.merge,_}return te.prototype.pause=function(){this._isPaused++},te.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var z=this._eventQueue.toArray();this._eventQueue.clear(),A.prototype.fire.call(this,this._mergeFn(z))}else for(;!this._isPaused&&this._eventQueue.size!==0;)A.prototype.fire.call(this,this._eventQueue.shift())},te.prototype.fire=function(z){this._listeners&&(this._isPaused!==0?this._eventQueue.push(z):A.prototype.fire.call(this,z))},te}(R),x=function(){function A(){var te=this;this.hasListeners=!1,this.events=[],this.emitter=new R({onFirstListenerAdd:function(){return te.onFirstListenerAdd()},onLastListenerRemove:function(){return te.onLastListenerRemove()}})}return Object.defineProperty(A.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),A.prototype.add=function(te){var z=this,_={event:te,listener:null};this.events.push(_),this.hasListeners&&this.hook(_);var f=function(){z.hasListeners&&z.unhook(_);var g=z.events.indexOf(_);z.events.splice(g,1)};return Object(ne.h)(Object(oe.a)(f))},A.prototype.onFirstListenerAdd=function(){var te=this;this.hasListeners=!0,this.events.forEach(function(z){return te.hook(z)})},A.prototype.onLastListenerRemove=function(){var te=this;this.hasListeners=!1,this.events.forEach(function(z){return te.unhook(z)})},A.prototype.hook=function(te){var z=this;te.listener=te.event(function(_){return z.emitter.fire(_)})},A.prototype.unhook=function(te){te.listener&&te.listener.dispose(),te.listener=null},A.prototype.dispose=function(){this.emitter.dispose()},A}(),K=function(){function A(){this.buffers=[]}return A.prototype.wrapEvent=function(te){var z=this;return function(_,f,p){return te(function(g){var m=z.buffers[z.buffers.length-1];m?m.push(function(){return _.call(f,g)}):_.call(f,g)},void 0,p)}},A.prototype.bufferEvents=function(te){var z=[];this.buffers.push(z);var _=te();return this.buffers.pop(),z.forEach(function(f){return f()}),_},A}(),D=function(){function A(){var te=this;this.listening=!1,this.inputEvent=U.None,this.inputEventListener=ne.a.None,this.emitter=new R({onFirstListenerDidAdd:function(){te.listening=!0,te.inputEventListener=te.inputEvent(te.emitter.fire,te.emitter)},onLastListenerRemove:function(){te.listening=!1,te.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(A.prototype,"input",{set:function(z){this.inputEvent=z,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=z(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),A.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},A}()},YWAb:function(wt,P,r){},"Ym/J":function(wt,P,r){"use strict";r.d(P,"a",function(){return N}),r.d(P,"b",function(){return F});var I=r("/epU"),oe=r("PoD0"),ne=I.a,N=Object(oe.c)("notificationService"),F=function(){function U(){}return U}()},YrLJ:function(wt,P,r){},Ytku:function(wt,P,r){"use strict";r.d(P,"c",function(){return oe}),r.d(P,"b",function(){return N}),r.d(P,"a",function(){return F});function I(U,j){var G=Math.pow(10,j);return Math.round(U*G)/G}var oe=function(){function U(j,G,R,E){E===void 0&&(E=1),this.r=Math.min(255,Math.max(0,j))|0,this.g=Math.min(255,Math.max(0,G))|0,this.b=Math.min(255,Math.max(0,R))|0,this.a=I(Math.max(Math.min(1,E),0),3)}return U.equals=function(j,G){return j.r===G.r&&j.g===G.g&&j.b===G.b&&j.a===G.a},U}(),ne=function(){function U(j,G,R,E){this.h=Math.max(Math.min(360,j),0)|0,this.s=I(Math.max(Math.min(1,G),0),3),this.l=I(Math.max(Math.min(1,R),0),3),this.a=I(Math.max(Math.min(1,E),0),3)}return U.equals=function(j,G){return j.h===G.h&&j.s===G.s&&j.l===G.l&&j.a===G.a},U.fromRGBA=function(j){var G=j.r/255,R=j.g/255,E=j.b/255,x=j.a,K=Math.max(G,R,E),D=Math.min(G,R,E),A=0,te=0,z=(D+K)/2,_=K-D;if(_>0){te=Math.min(z<=.5?_/(2*z):_/(2-2*z),1);switch(K){case G:A=(R-E)/_+(R<E?6:0);break;case R:A=(E-G)/_+2;break;case E:A=(G-R)/_+4;break}A*=60,A=Math.round(A)}return new U(A,te,z,x)},U._hue2rgb=function(j,G,R){return R<0&&(R+=1),R>1&&(R-=1),R<1/6?j+(G-j)*6*R:R<1/2?G:R<2/3?j+(G-j)*(2/3-R)*6:j},U.toRGBA=function(j){var G=j.h/360,R=j.s,E=j.l,x=j.a,K,D,A;if(R===0)K=D=A=E;else{var te=E<.5?E*(1+R):E+R-E*R,z=2*E-te;K=U._hue2rgb(z,te,G+1/3),D=U._hue2rgb(z,te,G),A=U._hue2rgb(z,te,G-1/3)}return new oe(Math.round(K*255),Math.round(D*255),Math.round(A*255),x)},U}(),N=function(){function U(j,G,R,E){this.h=Math.max(Math.min(360,j),0)|0,this.s=I(Math.max(Math.min(1,G),0),3),this.v=I(Math.max(Math.min(1,R),0),3),this.a=I(Math.max(Math.min(1,E),0),3)}return U.equals=function(j,G){return j.h===G.h&&j.s===G.s&&j.v===G.v&&j.a===G.a},U.fromRGBA=function(j){var G=j.r/255,R=j.g/255,E=j.b/255,x=Math.max(G,R,E),K=Math.min(G,R,E),D=x-K,A=x===0?0:D/x,te;return D===0?te=0:x===G?te=((R-E)/D%6+6)%6:x===R?te=(E-G)/D+2:te=(G-R)/D+4,new U(Math.round(te*60),A,x,j.a)},U.toRGBA=function(j){var G=j.h,R=j.s,E=j.v,x=j.a,K=E*R,D=K*(1-Math.abs(G/60%2-1)),A=E-K,te=[0,0,0],z=te[0],_=te[1],f=te[2];return G<60?(z=K,_=D):G<120?(z=D,_=K):G<180?(_=K,f=D):G<240?(_=D,f=K):G<300?(z=D,f=K):G<360&&(z=K,f=D),z=Math.round((z+A)*255),_=Math.round((_+A)*255),f=Math.round((f+A)*255),new oe(z,_,f,x)},U}(),F=function(){function U(j){if(j)if(j instanceof oe)this.rgba=j;else if(j instanceof ne)this._hsla=j,this.rgba=ne.toRGBA(j);else if(j instanceof N)this._hsva=j,this.rgba=N.toRGBA(j);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return U.fromHex=function(j){return U.Format.CSS.parseHex(j)||U.red},Object.defineProperty(U.prototype,"hsla",{get:function(){return this._hsla?this._hsla:ne.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"hsva",{get:function(){return this._hsva?this._hsva:N.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),U.prototype.equals=function(j){return!!j&&oe.equals(this.rgba,j.rgba)&&ne.equals(this.hsla,j.hsla)&&N.equals(this.hsva,j.hsva)},U.prototype.getRelativeLuminance=function(){var j=U._relativeLuminanceForComponent(this.rgba.r),G=U._relativeLuminanceForComponent(this.rgba.g),R=U._relativeLuminanceForComponent(this.rgba.b),E=.2126*j+.7152*G+.0722*R;return I(E,4)},U._relativeLuminanceForComponent=function(j){var G=j/255;return G<=.03928?G/12.92:Math.pow((G+.055)/1.055,2.4)},U.prototype.isLighter=function(){var j=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return j>=128},U.prototype.isLighterThan=function(j){var G=this.getRelativeLuminance(),R=j.getRelativeLuminance();return G>R},U.prototype.isDarkerThan=function(j){var G=this.getRelativeLuminance(),R=j.getRelativeLuminance();return G<R},U.prototype.lighten=function(j){return new U(new ne(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*j,this.hsla.a))},U.prototype.darken=function(j){return new U(new ne(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*j,this.hsla.a))},U.prototype.transparent=function(j){var G=this.rgba,R=G.r,E=G.g,x=G.b,K=G.a;return new U(new oe(R,E,x,K*j))},U.prototype.isTransparent=function(){return this.rgba.a===0},U.prototype.isOpaque=function(){return this.rgba.a===1},U.prototype.opposite=function(){return new U(new oe(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},U.prototype.toString=function(){return""+U.Format.CSS.format(this)},U.getLighterColor=function(j,G,R){if(j.isLighterThan(G))return j;R=R||.5;var E=j.getRelativeLuminance(),x=G.getRelativeLuminance();return R=R*(x-E)/x,j.lighten(R)},U.getDarkerColor=function(j,G,R){if(j.isDarkerThan(G))return j;R=R||.5;var E=j.getRelativeLuminance(),x=G.getRelativeLuminance();return R=R*(E-x)/E,j.darken(R)},U.white=new U(new oe(255,255,255,1)),U.black=new U(new oe(0,0,0,1)),U.red=new U(new oe(255,0,0,1)),U.blue=new U(new oe(0,0,255,1)),U.cyan=new U(new oe(0,255,255,1)),U.lightgrey=new U(new oe(211,211,211,1)),U.transparent=new U(new oe(0,0,0,0)),U}();(function(U){var j;(function(G){var R;(function(E){function x(m){return m.rgba.a===1?"rgb("+m.rgba.r+", "+m.rgba.g+", "+m.rgba.b+")":U.Format.CSS.formatRGBA(m)}E.formatRGB=x;function K(m){return"rgba("+m.rgba.r+", "+m.rgba.g+", "+m.rgba.b+", "+ +m.rgba.a.toFixed(2)+")"}E.formatRGBA=K;function D(m){return m.hsla.a===1?"hsl("+m.hsla.h+", "+(m.hsla.s*100).toFixed(2)+"%, "+(m.hsla.l*100).toFixed(2)+"%)":U.Format.CSS.formatHSLA(m)}E.formatHSL=D;function A(m){return"hsla("+m.hsla.h+", "+(m.hsla.s*100).toFixed(2)+"%, "+(m.hsla.l*100).toFixed(2)+"%, "+m.hsla.a.toFixed(2)+")"}E.formatHSLA=A;function te(m){var w=m.toString(16);return w.length!==2?"0"+w:w}function z(m){return"#"+te(m.rgba.r)+te(m.rgba.g)+te(m.rgba.b)}E.formatHex=z;function _(m,w){return w===void 0&&(w=!1),w&&m.rgba.a===1?U.Format.CSS.formatHex(m):"#"+te(m.rgba.r)+te(m.rgba.g)+te(m.rgba.b)+te(Math.round(m.rgba.a*255))}E.formatHexA=_;function f(m){return m.isOpaque()?U.Format.CSS.formatHex(m):U.Format.CSS.formatRGBA(m)}E.format=f;function p(m){var w=m.length;if(w===0)return null;if(m.charCodeAt(0)!==35)return null;if(w===7){var B=16*g(m.charCodeAt(1))+g(m.charCodeAt(2)),H=16*g(m.charCodeAt(3))+g(m.charCodeAt(4)),re=16*g(m.charCodeAt(5))+g(m.charCodeAt(6));return new U(new oe(B,H,re,1))}if(w===9){var B=16*g(m.charCodeAt(1))+g(m.charCodeAt(2)),H=16*g(m.charCodeAt(3))+g(m.charCodeAt(4)),re=16*g(m.charCodeAt(5))+g(m.charCodeAt(6)),he=16*g(m.charCodeAt(7))+g(m.charCodeAt(8));return new U(new oe(B,H,re,he/255))}if(w===4){var B=g(m.charCodeAt(1)),H=g(m.charCodeAt(2)),re=g(m.charCodeAt(3));return new U(new oe(16*B+B,16*H+H,16*re+re))}if(w===5){var B=g(m.charCodeAt(1)),H=g(m.charCodeAt(2)),re=g(m.charCodeAt(3)),he=g(m.charCodeAt(4));return new U(new oe(16*B+B,16*H+H,16*re+re,(16*he+he)/255))}return null}E.parseHex=p;function g(m){switch(m){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(R=G.CSS||(G.CSS={}))})(j=U.Format||(U.Format={}))})(F||(F={}))},"ZE/v":function(wt,P,r){},ZHO3:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return r.e(246).then(r.bind(null,"axYn"))}})},ZOck:function(wt,P,r){},ZZiL:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne}),r.d(P,"b",function(){return N}),r.d(P,"c",function(){return U}),r.d(P,"e",function(){return G}),r.d(P,"d",function(){return R});var I=r("Inmo"),oe=r("wzUm"),ne=function(){function E(x,K){x===void 0&&(x=""),K===void 0&&(K=!1);var D,A;this._value=x,typeof K=="boolean"?(this._isTrusted=K,this._supportThemeIcons=!1):(this._isTrusted=(D=K.isTrusted)!==null&&D!==void 0?D:!1,this._supportThemeIcons=(A=K.supportThemeIcons)!==null&&A!==void 0?A:!1)}return Object.defineProperty(E.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"supportThemeIcons",{get:function(){return this._supportThemeIcons},enumerable:!0,configurable:!0}),E.prototype.appendText=function(x){return this._value+=(this._supportThemeIcons?Object(oe.a)(x):x).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace(`
|
|
`,`
|
|
|
|
`),this},E.prototype.appendMarkdown=function(x){return this._value+=x,this},E.prototype.appendCodeblock=function(x,K){return this._value+="\n```",this._value+=x,this._value+=`
|
|
`,this._value+=K,this._value+="\n```\n",this},E}();function N(E){return F(E)?!E.value:Array.isArray(E)?E.every(N):!0}function F(E){return E instanceof ne?!0:E&&typeof E=="object"?typeof E.value=="string"&&(typeof E.isTrusted=="boolean"||E.isTrusted===void 0)&&(typeof E.supportThemeIcons=="boolean"||E.supportThemeIcons===void 0):!1}function U(E,x){return!E&&!x?!0:!E||!x?!1:Array.isArray(E)&&Array.isArray(x)?Object(I.g)(E,x,j):F(E)&&F(x)?j(E,x):!1}function j(E,x){return E===x?!0:!E||!x?!1:E.value===x.value&&E.isTrusted===x.isTrusted&&E.supportThemeIcons===x.supportThemeIcons}function G(E){return E&&E.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function R(E){var x=[],K=E.split("|").map(function(g){return g.trim()});E=K[0];var D=K[1];if(D){var A=/height=(\d+)/.exec(D),te=/width=(\d+)/.exec(D),z=A?A[1]:"",_=te?te[1]:"",f=isFinite(parseInt(_)),p=isFinite(parseInt(z));f&&x.push('width="'+_+'"'),p&&x.push('height="'+z+'"')}return{href:E,dimensions:x}}},ZiB8:function(wt,P,r){"use strict";r.d(P,"d",function(){return U}),r.d(P,"b",function(){return G}),r.d(P,"a",function(){return R}),r.d(P,"c",function(){return te});var I=function(){var z=function(f,p){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var w in m)m.hasOwnProperty(w)&&(g[w]=m[w])},z(f,p)};return function(_,f){z(_,f);function p(){this.constructor=_}_.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}(),oe=function(){for(var z=0,_=0,f=arguments.length;_<f;_++)z+=arguments[_].length;for(var p=Array(z),g=0,_=0;_<f;_++)for(var m=arguments[_],w=0,B=m.length;w<B;w++,g++)p[g]=m[w];return p},ne,N=function(){function z(){this.value="",this.pos=0}return z.isDigitCharacter=function(_){return _>=48&&_<=57},z.isVariableCharacter=function(_){return _===95||_>=97&&_<=122||_>=65&&_<=90},z.prototype.text=function(_){this.value=_,this.pos=0},z.prototype.tokenText=function(_){return this.value.substr(_.pos,_.len)},z.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var _=this.pos,f=0,p=this.value.charCodeAt(_),g;if(g=z._table[p],typeof g=="number")return this.pos+=1,{type:g,pos:_,len:1};if(z.isDigitCharacter(p)){g=8;do f+=1,p=this.value.charCodeAt(_+f);while(z.isDigitCharacter(p));return this.pos+=f,{type:g,pos:_,len:f}}if(z.isVariableCharacter(p)){g=9;do p=this.value.charCodeAt(_+ ++f);while(z.isVariableCharacter(p)||z.isDigitCharacter(p));return this.pos+=f,{type:g,pos:_,len:f}}g=10;do f+=1,p=this.value.charCodeAt(_+f);while(!isNaN(p)&&typeof z._table[p]=="undefined"&&!z.isDigitCharacter(p)&&!z.isVariableCharacter(p));return this.pos+=f,{type:g,pos:_,len:f}},z._table=(ne={},ne[36]=0,ne[58]=1,ne[44]=2,ne[123]=3,ne[125]=4,ne[92]=5,ne[47]=6,ne[124]=7,ne[43]=11,ne[45]=12,ne[63]=13,ne),z}(),F=function(){function z(){this._children=[]}return z.prototype.appendChild=function(_){return _ instanceof U&&this._children[this._children.length-1]instanceof U?this._children[this._children.length-1].value+=_.value:(_.parent=this,this._children.push(_)),this},z.prototype.replace=function(_,f){var p=_.parent,g=p.children.indexOf(_),m=p.children.slice(0);m.splice.apply(m,oe([g,1],f)),p._children=m,function w(B,H){for(var re=0,he=B;re<he.length;re++){var Ee=he[re];Ee.parent=H,w(Ee.children,Ee)}}(f,p)},Object.defineProperty(z.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"snippet",{get:function(){for(var f=this;;){if(!f)return;if(f instanceof A)return f;f=f.parent}},enumerable:!0,configurable:!0}),z.prototype.toString=function(){return this.children.reduce(function(_,f){return _+f.toString()},"")},z.prototype.len=function(){return 0},z}(),U=function(z){I(_,z);function _(f){var p=z.call(this)||this;return p.value=f,p}return _.prototype.toString=function(){return this.value},_.prototype.len=function(){return this.value.length},_.prototype.clone=function(){return new _(this.value)},_}(F),j=function(z){I(_,z);function _(){return z!==null&&z.apply(this,arguments)||this}return _}(F),G=function(z){I(_,z);function _(f){var p=z.call(this)||this;return p.index=f,p}return _.compareByIndex=function(f,p){return f.index===p.index?0:f.isFinalTabstop?1:p.isFinalTabstop||f.index<p.index?-1:f.index>p.index?1:0},Object.defineProperty(_.prototype,"isFinalTabstop",{get:function(){return this.index===0},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"choice",{get:function(){return this._children.length===1&&this._children[0]instanceof R?this._children[0]:void 0},enumerable:!0,configurable:!0}),_.prototype.clone=function(){var f=new _(this.index);return this.transform&&(f.transform=this.transform.clone()),f._children=this.children.map(function(p){return p.clone()}),f},_}(j),R=function(z){I(_,z);function _(){var f=z!==null&&z.apply(this,arguments)||this;return f.options=[],f}return _.prototype.appendChild=function(f){return f instanceof U&&(f.parent=this,this.options.push(f)),this},_.prototype.toString=function(){return this.options[0].value},_.prototype.len=function(){return this.options[0].len()},_.prototype.clone=function(){var f=new _;return this.options.forEach(f.appendChild,f),f},_}(F),E=function(z){I(_,z);function _(){var f=z!==null&&z.apply(this,arguments)||this;return f.regexp=new RegExp(""),f}return _.prototype.resolve=function(f){var p=this,g=!1,m=f.replace(this.regexp,function(){return g=!0,p._replace(Array.prototype.slice.call(arguments,0,-2))});return!g&&this._children.some(function(w){return w instanceof x&&Boolean(w.elseValue)})&&(m=this._replace([])),m},_.prototype._replace=function(f){for(var p="",g=0,m=this._children;g<m.length;g++){var w=m[g];if(w instanceof x){var B=f[w.index]||"";B=w.resolve(B),p+=B}else p+=w.toString()}return p},_.prototype.toString=function(){return""},_.prototype.clone=function(){var f=new _;return f.regexp=new RegExp(this.regexp.source,""+(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),f._children=this.children.map(function(p){return p.clone()}),f},_}(F),x=function(z){I(_,z);function _(f,p,g,m){var w=z.call(this)||this;return w.index=f,w.shorthandName=p,w.ifValue=g,w.elseValue=m,w}return _.prototype.resolve=function(f){return this.shorthandName==="upcase"?f?f.toLocaleUpperCase():"":this.shorthandName==="downcase"?f?f.toLocaleLowerCase():"":this.shorthandName==="capitalize"?f?f[0].toLocaleUpperCase()+f.substr(1):"":this.shorthandName==="pascalcase"?f?this._toPascalCase(f):"":Boolean(f)&&typeof this.ifValue=="string"?this.ifValue:!Boolean(f)&&typeof this.elseValue=="string"?this.elseValue:f||""},_.prototype._toPascalCase=function(f){var p=f.match(/[a-z]+/gi);return p?p.map(function(g){return g.charAt(0).toUpperCase()+g.substr(1).toLowerCase()}).join(""):f},_.prototype.clone=function(){var f=new _(this.index,this.shorthandName,this.ifValue,this.elseValue);return f},_}(F),K=function(z){I(_,z);function _(f){var p=z.call(this)||this;return p.name=f,p}return _.prototype.resolve=function(f){var p=f.resolve(this);return this.transform&&(p=this.transform.resolve(p||"")),p!==void 0?(this._children=[new U(p)],!0):!1},_.prototype.clone=function(){var f=new _(this.name);return this.transform&&(f.transform=this.transform.clone()),f._children=this.children.map(function(p){return p.clone()}),f},_}(j);function D(z,_){for(var f=oe(z);f.length>0;){var p=f.shift(),g=_(p);if(!g)break;f.unshift.apply(f,p.children)}}var A=function(z){I(_,z);function _(){return z!==null&&z.apply(this,arguments)||this}return Object.defineProperty(_.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var p=[],g;this.walk(function(m){return m instanceof G&&(p.push(m),g=!g||g.index<m.index?m:g),!0}),this._placeholders={all:p,last:g}}return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"placeholders",{get:function(){var p=this.placeholderInfo.all;return p},enumerable:!0,configurable:!0}),_.prototype.offset=function(f){var p=0,g=!1;return this.walk(function(m){return m===f?(g=!0,!1):(p+=m.len(),!0)}),g?p:-1},_.prototype.fullLen=function(f){var p=0;return D([f],function(g){return p+=g.len(),!0}),p},_.prototype.enclosingPlaceholders=function(f){for(var p=[],g=f.parent;g;)g instanceof G&&p.push(g),g=g.parent;return p},_.prototype.resolveVariables=function(f){var p=this;return this.walk(function(g){return g instanceof K&&(g.resolve(f)&&(p._placeholders=void 0)),!0}),this},_.prototype.appendChild=function(f){return this._placeholders=void 0,z.prototype.appendChild.call(this,f)},_.prototype.replace=function(f,p){return this._placeholders=void 0,z.prototype.replace.call(this,f,p)},_.prototype.clone=function(){var f=new _;return this._children=this.children.map(function(p){return p.clone()}),f},_.prototype.walk=function(f){D(this.children,f)},_}(F),te=function(){function z(){this._scanner=new N,this._token={type:14,pos:0,len:0}}return z.escape=function(_){return _.replace(/\$|}|\\/g,"\\$&")},z.prototype.parse=function(_,f,p){this._scanner.text(_),this._token=this._scanner.next();for(var g=new A;this._parse(g););var m=new Map,w=[],B=0;g.walk(function(Me){return Me instanceof G&&(B+=1,Me.isFinalTabstop?m.set(0,void 0):!m.has(Me.index)&&Me.children.length>0?m.set(Me.index,Me.children):w.push(Me)),!0});for(var H=0,re=w;H<re.length;H++){var he=re[H],Ee=m.get(he.index);if(Ee){var Se=new G(he.index);Se.transform=he.transform;for(var q=0,Z=Ee;q<Z.length;q++){var ce=Z[q];Se.appendChild(ce.clone())}g.replace(he,[Se])}}return p||(p=B>0&&f),!m.has(0)&&p&&g.appendChild(new G(0)),g},z.prototype._accept=function(_,f){if(_===void 0||this._token.type===_){var p=f?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),p}return!1},z.prototype._backTo=function(_){return this._scanner.pos=_.pos+_.len,this._token=_,!1},z.prototype._until=function(_){for(var f=this._token;this._token.type!==_;){if(this._token.type===14)return!1;if(this._token.type===5){var p=this._scanner.next();if(p.type!==0&&p.type!==4&&p.type!==5)return!1}this._token=this._scanner.next()}var g=this._scanner.value.substring(f.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),g},z.prototype._parse=function(_){return this._parseEscaped(_)||this._parseTabstopOrVariableName(_)||this._parseComplexPlaceholder(_)||this._parseComplexVariable(_)||this._parseAnything(_)},z.prototype._parseEscaped=function(_){var f;return(f=this._accept(5,!0))?(f=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||f,_.appendChild(new U(f)),!0):!1},z.prototype._parseTabstopOrVariableName=function(_){var f,p=this._token,g=this._accept(0)&&(f=this._accept(9,!0)||this._accept(8,!0));return g?(_.appendChild(/^\d+$/.test(f)?new G(Number(f)):new K(f)),!0):this._backTo(p)},z.prototype._parseComplexPlaceholder=function(_){var f,p=this._token,g=this._accept(0)&&this._accept(3)&&(f=this._accept(8,!0));if(!g)return this._backTo(p);var m=new G(Number(f));if(this._accept(1))for(;;){if(this._accept(4))return _.appendChild(m),!0;if(this._parse(m))continue;return _.appendChild(new U("${"+f+":")),m.children.forEach(_.appendChild,_),!0}else if(m.index>0&&this._accept(7))for(var w=new R;;){if(this._parseChoiceElement(w)){if(this._accept(2))continue;if(this._accept(7)&&(m.appendChild(w),this._accept(4)))return _.appendChild(m),!0}return this._backTo(p),!1}else return this._accept(6)?this._parseTransform(m)?(_.appendChild(m),!0):(this._backTo(p),!1):this._accept(4)?(_.appendChild(m),!0):this._backTo(p)},z.prototype._parseChoiceElement=function(_){for(var f=this._token,p=[];!(this._token.type===2||this._token.type===7);){var g=void 0;if((g=this._accept(5,!0))?g=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||g:g=this._accept(void 0,!0),!g)return this._backTo(f),!1;p.push(g)}return p.length===0?(this._backTo(f),!1):(_.appendChild(new U(p.join(""))),!0)},z.prototype._parseComplexVariable=function(_){var f,p=this._token,g=this._accept(0)&&this._accept(3)&&(f=this._accept(9,!0));if(!g)return this._backTo(p);var m=new K(f);if(this._accept(1))for(;;){if(this._accept(4))return _.appendChild(m),!0;if(this._parse(m))continue;return _.appendChild(new U("${"+f+":")),m.children.forEach(_.appendChild,_),!0}else return this._accept(6)?this._parseTransform(m)?(_.appendChild(m),!0):(this._backTo(p),!1):this._accept(4)?(_.appendChild(m),!0):this._backTo(p)},z.prototype._parseTransform=function(_){for(var f=new E,p="",g="";!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(6,!0)||m,p+=m;continue}if(this._token.type!==14){p+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(5,!0)||this._accept(6,!0)||m,f.appendChild(new U(m));continue}if(this._parseFormatString(f)||this._parseAnything(f))continue;return!1}for(;!this._accept(4);){if(this._token.type!==14){g+=this._accept(void 0,!0);continue}return!1}try{f.regexp=new RegExp(p,g)}catch(w){return!1}return _.transform=f,!0},z.prototype._parseFormatString=function(_){var f=this._token;if(!this._accept(0))return!1;var p=!1;this._accept(3)&&(p=!0);var g=this._accept(8,!0);if(g)if(p){if(this._accept(4))return _.appendChild(new x(Number(g))),!0;if(!this._accept(1))return this._backTo(f),!1}else return _.appendChild(new x(Number(g))),!0;else return this._backTo(f),!1;if(this._accept(6)){var m=this._accept(9,!0);return!m||!this._accept(4)?(this._backTo(f),!1):(_.appendChild(new x(Number(g),m)),!0)}else if(this._accept(11)){var w=this._until(4);if(w)return _.appendChild(new x(Number(g),void 0,w,void 0)),!0}else if(this._accept(12)){var B=this._until(4);if(B)return _.appendChild(new x(Number(g),void 0,void 0,B)),!0}else if(this._accept(13)){var w=this._until(1);if(w){var B=this._until(4);if(B)return _.appendChild(new x(Number(g),void 0,w,B)),!0}}else{var B=this._until(4);if(B)return _.appendChild(new x(Number(g),void 0,void 0,B)),!0}return this._backTo(f),!1},z.prototype._parseAnything=function(_){return this._token.type!==14?(_.appendChild(new U(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1},z}()},aar3:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("S7i+"),oe=I.b.performance&&typeof I.b.performance.now=="function",ne=function(){function N(F){this._highResolution=oe&&F,this._startTime=this._now(),this._stopTime=-1}return N.create=function(F){return F===void 0&&(F=!0),new N(F)},N.prototype.stop=function(){this._stopTime=this._now()},N.prototype.elapsed=function(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime},N.prototype._now=function(){return this._highResolution?I.b.performance.now():new Date().getTime()},N}()},"ab6+":function(wt,P,r){},astx:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return r.e(219).then(r.bind(null,"buUZ"))}})},awj8:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return r.e(240).then(r.bind(null,"Ywaa"))}})},b0bP:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return r.e(213).then(r.bind(null,"mzqm"))}})},"bBv/":function(wt,P,r){"use strict";r.d(P,"a",function(){return N}),r.d(P,"b",function(){return D}),r.d(P,"d",function(){return A}),r.d(P,"c",function(){return te}),r.d(P,"e",function(){return z});var I=r("yBOt"),oe=r("PoD0"),ne=function(){var _=function(p,g){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,w){m.__proto__=w}||function(m,w){for(var B in w)w.hasOwnProperty(B)&&(m[B]=w[B])},_(p,g)};return function(f,p){_(f,p);function g(){this.constructor=f}f.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)}}(),N=function(){function _(){}return _.has=function(f){return U.create(f)},_.equals=function(f,p){return j.create(f,p)},_.regex=function(f,p){return E.create(f,p)},_.not=function(f){return R.create(f)},_.and=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return K.create(f)},_.or=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return D.create(f)},_.deserialize=function(f,p){return p===void 0&&(p=!1),f?this._deserializeOrExpression(f,p):void 0},_._deserializeOrExpression=function(f,p){var g=this,m=f.split("||");return D.create(m.map(function(w){return g._deserializeAndExpression(w,p)}))},_._deserializeAndExpression=function(f,p){var g=this,m=f.split("&&");return K.create(m.map(function(w){return g._deserializeOne(w,p)}))},_._deserializeOne=function(f,p){if(f=f.trim(),f.indexOf("!=")>=0){var g=f.split("!=");return G.create(g[0].trim(),this._deserializeValue(g[1],p))}if(f.indexOf("==")>=0){var g=f.split("==");return j.create(g[0].trim(),this._deserializeValue(g[1],p))}if(f.indexOf("=~")>=0){var g=f.split("=~");return E.create(g[0].trim(),this._deserializeRegexValue(g[1],p))}return/^\!\s*/.test(f)?R.create(f.substr(1).trim()):U.create(f)},_._deserializeValue=function(f,p){if(f=f.trim(),f==="true")return!0;if(f==="false")return!1;var g=/^'([^']*)'$/.exec(f);return g?g[1].trim():f},_._deserializeRegexValue=function(f,p){if(Object(I.x)(f)){if(p)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var g=f.indexOf("/"),m=f.lastIndexOf("/");if(g===m||g<0){if(p)throw new Error("bad regexp-value '"+f+"', missing /-enclosure");return console.warn("bad regexp-value '"+f+"', missing /-enclosure"),null}var w=f.slice(g+1,m),B=f[m+1]==="i"?"i":"";try{return new RegExp(w,B)}catch(H){if(p)throw new Error("bad regexp-value '"+f+"', parse error: "+H);return console.warn("bad regexp-value '"+f+"', parse error: "+H),null}},_}();function F(_,f){var p=_.getType(),g=f.getType();if(p!==g)return p-g;switch(p){case 1:return _.cmp(f);case 2:return _.cmp(f);case 3:return _.cmp(f);case 4:return _.cmp(f);case 6:return _.cmp(f);case 7:return _.cmp(f);case 5:return _.cmp(f);default:throw new Error("Unknown ContextKeyExpr!")}}var U=function(){function _(f){this.key=f}return _.create=function(f){return new _(f)},_.prototype.getType=function(){return 1},_.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key:!1},_.prototype.evaluate=function(f){return!!f.getValue(this.key)},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return R.create(this.key)},_}(),j=function(){function _(f,p){this.key=f,this.value=p}return _.create=function(f,p){return typeof p=="boolean"?p?U.create(f):R.create(f):new _(f,p)},_.prototype.getType=function(){return 3},_.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:this.value<f.value?-1:this.value>f.value?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key&&this.value===f.value:!1},_.prototype.evaluate=function(f){return f.getValue(this.key)==this.value},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return G.create(this.key,this.value)},_}(),G=function(){function _(f,p){this.key=f,this.value=p}return _.create=function(f,p){return typeof p=="boolean"?p?R.create(f):U.create(f):new _(f,p)},_.prototype.getType=function(){return 4},_.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:this.value<f.value?-1:this.value>f.value?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key&&this.value===f.value:!1},_.prototype.evaluate=function(f){return f.getValue(this.key)!=this.value},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return j.create(this.key,this.value)},_}(),R=function(){function _(f){this.key=f}return _.create=function(f){return new _(f)},_.prototype.getType=function(){return 2},_.prototype.cmp=function(f){return this.key<f.key?-1:this.key>f.key?1:0},_.prototype.equals=function(f){return f instanceof _?this.key===f.key:!1},_.prototype.evaluate=function(f){return!f.getValue(this.key)},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return U.create(this.key)},_}(),E=function(){function _(f,p){this.key=f,this.regexp=p}return _.create=function(f,p){return new _(f,p)},_.prototype.getType=function(){return 6},_.prototype.cmp=function(f){if(this.key<f.key)return-1;if(this.key>f.key)return 1;var p=this.regexp?this.regexp.source:"",g=f.regexp?f.regexp.source:"";return p<g?-1:p>g?1:0},_.prototype.equals=function(f){if(f instanceof _){var p=this.regexp?this.regexp.source:"",g=f.regexp?f.regexp.source:"";return this.key===f.key&&p===g}return!1},_.prototype.evaluate=function(f){var p=f.getValue(this.key);return this.regexp?this.regexp.test(p):!1},_.prototype.keys=function(){return[this.key]},_.prototype.negate=function(){return x.create(this)},_}(),x=function(){function _(f){this._actual=f}return _.create=function(f){return new _(f)},_.prototype.getType=function(){return 7},_.prototype.cmp=function(f){return this._actual.cmp(f._actual)},_.prototype.equals=function(f){return f instanceof _?this._actual.equals(f._actual):!1},_.prototype.evaluate=function(f){return!this._actual.evaluate(f)},_.prototype.keys=function(){return this._actual.keys()},_.prototype.negate=function(){return this._actual},_}(),K=function(){function _(f){this.expr=f}return _.create=function(f){var p=_._normalizeArr(f);return p.length===0?void 0:p.length===1?p[0]:new _(p)},_.prototype.getType=function(){return 5},_.prototype.cmp=function(f){if(this.expr.length<f.expr.length)return-1;if(this.expr.length>f.expr.length)return 1;for(var p=0,g=this.expr.length;p<g;p++){var m=F(this.expr[p],f.expr[p]);if(m!==0)return m}return 0},_.prototype.equals=function(f){if(f instanceof _){if(this.expr.length!==f.expr.length)return!1;for(var p=0,g=this.expr.length;p<g;p++)if(!this.expr[p].equals(f.expr[p]))return!1;return!0}return!1},_.prototype.evaluate=function(f){for(var p=0,g=this.expr.length;p<g;p++)if(!this.expr[p].evaluate(f))return!1;return!0},_._normalizeArr=function(f){var p=[];if(f){for(var g=0,m=f.length;g<m;g++){var w=f[g];if(!w)continue;if(w instanceof _){p=p.concat(w.expr);continue}if(w instanceof D)throw new Error('It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.');p.push(w)}p.sort(F)}return p},_.prototype.keys=function(){for(var f=[],p=0,g=this.expr;p<g.length;p++){var m=g[p];f.push.apply(f,m.keys())}return f},_.prototype.negate=function(){for(var f=[],p=0,g=this.expr;p<g.length;p++){var m=g[p];f.push(m.negate())}return D.create(f)},_}(),D=function(){function _(f){this.expr=f}return _.create=function(f){var p=_._normalizeArr(f);return p.length===0?void 0:p.length===1?p[0]:new _(p)},_.prototype.getType=function(){return 8},_.prototype.equals=function(f){if(f instanceof _){if(this.expr.length!==f.expr.length)return!1;for(var p=0,g=this.expr.length;p<g;p++)if(!this.expr[p].equals(f.expr[p]))return!1;return!0}return!1},_.prototype.evaluate=function(f){for(var p=0,g=this.expr.length;p<g;p++)if(this.expr[p].evaluate(f))return!0;return!1},_._normalizeArr=function(f){var p=[];if(f){for(var g=0,m=f.length;g<m;g++){var w=f[g];if(!w)continue;if(w instanceof _){p=p.concat(w.expr);continue}p.push(w)}p.sort(F)}return p},_.prototype.keys=function(){for(var f=[],p=0,g=this.expr;p<g.length;p++){var m=g[p];f.push.apply(f,m.keys())}return f},_.prototype.negate=function(){for(var f=[],p=0,g=this.expr;p<g.length;p++){var m=g[p];f.push(m.negate())}for(var w=function(Ve){return Ve instanceof _?Ve.expr:[Ve]};f.length>1;){for(var B=f.shift(),H=f.shift(),re=[],he=0,Ee=w(B);he<Ee.length;he++)for(var Se=Ee[he],q=0,Z=w(H);q<Z.length;q++){var ce=Z[q];re.push(N.and(Se,ce))}f.unshift(N.or.apply(N,re))}return f[0]},_}(),A=function(_){ne(f,_);function f(p,g){var m=_.call(this,p)||this;return m._defaultValue=g,m}return f.prototype.bindTo=function(p){return p.createKey(this.key,this._defaultValue)},f.prototype.getValue=function(p){return p.getContextKeyValue(this.key)},f.prototype.toNegated=function(){return N.not(this.key)},f}(U),te=Object(oe.c)("contextKeyService"),z="setContext"},bN5T:function(wt,P,r){"use strict";r.d(P,"g",function(){return F}),r.d(P,"f",function(){return U}),r.d(P,"e",function(){return j}),r.d(P,"h",function(){return G}),r.d(P,"b",function(){return R}),r.d(P,"a",function(){return E}),r.d(P,"d",function(){return x}),r.d(P,"c",function(){return K});var I=!1,oe="__is_disposable_tracked__";function ne(D){if(!I)return;if(D&&D!==E.None)try{D[oe]=!0}catch(A){}}function N(D){if(!I)return D;var A=new Error("Potentially leaked disposable").stack;return setTimeout(function(){D[oe]||console.log(A)},3e3),D}function F(D){return typeof D.dispose=="function"&&D.dispose.length===0}function U(D){return Array.isArray(D)?(D.forEach(function(A){A&&(ne(A),A.dispose())}),[]):D?(ne(D),D.dispose(),D):void 0}function j(){for(var D=[],A=0;A<arguments.length;A++)D[A]=arguments[A];return D.forEach(ne),N({dispose:function(){return U(D)}})}function G(D){var A=N({dispose:function(){ne(A),D()}});return A}var R=function(){function D(){this._toDispose=new Set,this._isDisposed=!1}return D.prototype.dispose=function(){if(this._isDisposed)return;ne(this),this._isDisposed=!0,this.clear()},D.prototype.clear=function(){this._toDispose.forEach(function(A){return A.dispose()}),this._toDispose.clear()},D.prototype.add=function(A){if(!A)return A;if(A===this)throw new Error("Cannot register a disposable on itself!");return ne(A),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(A),A},D}(),E=function(){function D(){this._store=new R,N(this)}return D.prototype.dispose=function(){ne(this),this._store.dispose()},D.prototype._register=function(A){if(A===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(A)},D.None=Object.freeze({dispose:function(){}}),D}(),x=function(){function D(){this._isDisposed=!1,N(this)}return Object.defineProperty(D.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(te){if(this._isDisposed||te===this._value)return;this._value&&this._value.dispose(),te&&ne(te),this._value=te},enumerable:!0,configurable:!0}),D.prototype.clear=function(){this.value=void 0},D.prototype.dispose=function(){this._isDisposed=!0,ne(this),this._value&&this._value.dispose(),this._value=void 0},D}(),K=function(){function D(A){this.object=A}return D.prototype.dispose=function(){},D}()},bndW:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});function I(oe,ne){if(!oe)throw new Error(ne?"Assertion failed ("+ne+")":"Assertion Failed")}},bq0d:function(wt,P,r){},cH1I:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return r.e(237).then(r.bind(null,"eyLi"))}})},cWK8:function(wt,P,r){},carD:function(wt,P,r){"use strict";r.d(P,"a",function(){return te});var I=r("20Dg"),oe=r.n(I),ne=r("bN5T"),N=r("mTMv"),F=r("S7i+"),U=r("yqRl"),j=r("3HcJ"),G=r("oBNp"),R=r("YK2C"),E=r("fF8p"),x=r("6zAk"),K=function(){var z=function(f,p){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var w in m)m.hasOwnProperty(w)&&(g[w]=m[w])},z(f,p)};return function(_,f){z(_,f);function p(){this.constructor=_}_.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}(),D=function(){for(var z=0,_=0,f=arguments.length;_<f;_++)z+=arguments[_].length;for(var p=Array(z),g=0,_=0;_<f;_++)for(var m=arguments[_],w=0,B=m.length;w<B;w++,g++)p[g]=m[w];return p},A=!1,te=function(z){K(_,z);function _(f,p,g){g===void 0&&(g={});var m=z.call(this)||this;return m._state=3,m._onDidEnablementChange=m._register(new R.a),m.onDidEnablementChange=m._onDidEnablementChange.event,m._onDidStart=m._register(new R.a),m.onDidStart=m._onDidStart.event,m._onDidChange=m._register(new R.a),m.onDidChange=m._onDidChange.event,m._onDidReset=m._register(new R.a),m.onDidReset=m._onDidReset.event,m._onDidEnd=m._register(new R.a),m.onDidEnd=m._onDidEnd.event,m.linkedSash=void 0,m.orthogonalStartSashDisposables=m._register(new ne.b),m.orthogonalEndSashDisposables=m._register(new ne.b),m.el=Object(E.p)(f,Object(E.a)(".monaco-sash")),F.e&&Object(E.e)(m.el,"mac"),m._register(Object(x.a)(m.el,"mousedown")(m.onMouseDown,m)),m._register(Object(x.a)(m.el,"dblclick")(m.onMouseDoubleClick,m)),m._register(j.b.addTarget(m.el)),m._register(Object(x.a)(m.el,j.a.Start)(m.onTouchStart,m)),N.j&&Object(E.e)(m.el,"touch"),m.setOrientation(g.orientation||0),m.hidden=!1,m.layoutProvider=p,m.orthogonalStartSash=g.orthogonalStartSash,m.orthogonalEndSash=g.orthogonalEndSash,Object(E.X)(m.el,"debug",A),m}return Object.defineProperty(_.prototype,"state",{get:function(){return this._state},set:function(p){if(this._state===p)return;Object(E.X)(this.el,"disabled",p===0),Object(E.X)(this.el,"minimum",p===1),Object(E.X)(this.el,"maximum",p===2),this._state=p,this._onDidEnablementChange.fire(p)},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(p){this.orthogonalStartSashDisposables.clear(),p?(this.orthogonalStartSashDisposables.add(p.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(p.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=p},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(p){this.orthogonalEndSashDisposables.clear(),p?(this.orthogonalEndSashDisposables.add(p.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(p.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=p},enumerable:!0,configurable:!0}),_.prototype.setOrientation=function(f){this.orientation=f,this.orientation===1?(Object(E.e)(this.el,"horizontal"),Object(E.O)(this.el,"vertical")):(Object(E.O)(this.el,"horizontal"),Object(E.e)(this.el,"vertical")),this.layoutProvider&&this.layout()},_.prototype.onMouseDown=function(f){var p=this;E.b.stop(f,!1);var g=!1;if(!f.__orthogonalSashEvent){var m=this.getOrthogonalSash(f);m&&(g=!0,f.__orthogonalSashEvent=!0,m.onMouseDown(f))}if(this.linkedSash&&!f.__linkedSashEvent&&(f.__linkedSashEvent=!0,this.linkedSash.onMouseDown(f)),!this.state)return;for(var w=D(Object(E.C)("iframe"),Object(E.C)("webview")),B=0,H=w;B<H.length;B++){var re=H[B];re.style.pointerEvents="none"}var he=new G.a(f),Ee=he.posx,Se=he.posy,q=he.altKey,Z={startX:Ee,currentX:Ee,startY:Se,currentY:Se,altKey:q};Object(E.e)(this.el,"active"),this._onDidStart.fire(Z);var ce=Object(E.v)(this.el),Me=function(){var fe="";g?fe="all-scroll":p.orientation===1?p.state===1?fe="s-resize":p.state===2?fe="n-resize":fe=F.e?"row-resize":"ns-resize":p.state===1?fe="e-resize":p.state===2?fe="w-resize":fe=F.e?"col-resize":"ew-resize",ce.innerHTML="* { cursor: "+fe+" !important; }"},Ve=new ne.b;Me(),g||this.onDidEnablementChange(Me,null,Ve);var _e=function(fe){E.b.stop(fe,!1);var ie=new G.a(fe),J={startX:Ee,currentX:ie.posx,startY:Se,currentY:ie.posy,altKey:q};p._onDidChange.fire(J)},ue=function(fe){E.b.stop(fe,!1),p.el.removeChild(ce),Object(E.O)(p.el,"active"),p._onDidEnd.fire(),Ve.dispose();for(var ie=0,J=w;ie<J.length;ie++){var me=J[ie];me.style.pointerEvents="auto"}};Object(x.a)(window,"mousemove")(_e,null,Ve),Object(x.a)(window,"mouseup")(ue,null,Ve)},_.prototype.onMouseDoubleClick=function(f){var p=this.getOrthogonalSash(f);p&&p._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},_.prototype.onTouchStart=function(f){var p=this;E.b.stop(f);var g=[],m=f.pageX,w=f.pageY,B=f.altKey;this._onDidStart.fire({startX:m,currentX:m,startY:w,currentY:w,altKey:B}),g.push(Object(E.i)(this.el,j.a.Change,function(H){U.h(H.pageX)&&U.h(H.pageY)&&p._onDidChange.fire({startX:m,currentX:H.pageX,startY:w,currentY:H.pageY,altKey:B})})),g.push(Object(E.i)(this.el,j.a.End,function(H){p._onDidEnd.fire(),Object(ne.f)(g)}))},_.prototype.layout=function(){var f=N.j?20:4;if(this.orientation===0){var p=this.layoutProvider;this.el.style.left=p.getVerticalSashLeft(this)-f/2+"px",p.getVerticalSashTop&&(this.el.style.top=p.getVerticalSashTop(this)+"px"),p.getVerticalSashHeight&&(this.el.style.height=p.getVerticalSashHeight(this)+"px")}else{var g=this.layoutProvider;this.el.style.top=g.getHorizontalSashTop(this)-f/2+"px",g.getHorizontalSashLeft&&(this.el.style.left=g.getHorizontalSashLeft(this)+"px"),g.getHorizontalSashWidth&&(this.el.style.width=g.getHorizontalSashWidth(this)+"px")}},_.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},_.prototype.onOrthogonalStartSashEnablementChange=function(f){Object(E.X)(this.el,"orthogonal-start",f!==0)},_.prototype.onOrthogonalEndSashEnablementChange=function(f){Object(E.X)(this.el,"orthogonal-end",f!==0)},_.prototype.getOrthogonalSash=function(f){if(this.orientation===0){if(f.offsetY<=4)return this.orthogonalStartSash;if(f.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(f.offsetX<=4)return this.orthogonalStartSash;if(f.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}return},_.prototype.dispose=function(){z.prototype.dispose.call(this),this.el.remove()},_}(ne.a)},clE0:function(wt,P,r){"use strict";r.r(P),r.d(P,"SnippetController2",function(){return Pt});var I=r("bN5T"),oe=r("yBOt"),ne=r("Whdu"),N=r("w9Cd"),F=r("F5bH"),U=r("2GBI"),j=r("Sn7V"),G=r("bBv/"),R=r("lgEJ"),E=r("Inmo"),x=r("KQl8"),K=r("qz6B"),D=r("8ZZ4"),A=r("0ytw"),te=r("dEFY"),z=r("PoD0"),_=r("ZiB8"),f=r("g9ht"),p=r("xFpO"),g=r("67Fg"),m=r("tkZS"),w=r("zOJ8"),B="code-workspace";function H(Ke){return Ke instanceof w.a}function re(Ke){return Ke.configuration?{configPath:Ke.configuration,id:Ke.id}:Ke.folders.length===1?Ke.folders[0].uri:void 0}var he=r("ekSf"),Ee=function(){function Ke(Xe){this._delegates=Xe}return Ke.prototype.resolve=function(Xe){for(var Ze=0,Ye=this._delegates;Ze<Ye.length;Ze++){var ke=Ye[Ze],$e=ke.resolve(Xe);if($e!==void 0)return $e}return},Ke}(),Se=function(){function Ke(Xe,Ze){this._model=Xe,this._selection=Ze}return Ke.prototype.resolve=function(Xe){var Ze=Xe.name;if(Ze==="SELECTION"||Ze==="TM_SELECTED_TEXT"){var Ye=this._model.getValueInRange(this._selection)||void 0;if(Ye&&this._selection.startLineNumber!==this._selection.endLineNumber&&Xe.snippet){var ke=this._model.getLineContent(this._selection.startLineNumber),$e=Object(oe.t)(ke,0,this._selection.startColumn-1),we=$e;Xe.snippet.walk(function(Pe){return Pe===Xe?!1:(Pe instanceof _.d&&(we=Object(oe.t)(Pe.value.split(/\r\n|\r|\n/).pop())),!0)});var k=Object(oe.c)(we,$e);Ye=Ye.replace(/(\r\n|\r|\n)(.*)/g,function(Pe,ve,Te){return""+ve+we.substr(k)+Te})}return Ye}else{if(Ze==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(Ze==="TM_CURRENT_WORD"){var ee=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return ee&&ee.word||void 0}else{if(Ze==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(Ze==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber)}}return},Ke}(),q=function(){function Ke(Xe,Ze){this._labelService=Xe,this._model=Ze}return Ke.prototype.resolve=function(Xe){var Ze=Xe.name;if(Ze==="TM_FILENAME")return p.basename(this._model.uri.fsPath);if(Ze==="TM_FILENAME_BASE"){var Ye=p.basename(this._model.uri.fsPath),ke=Ye.lastIndexOf(".");return ke<=0?Ye:Ye.slice(0,ke)}else{if(Ze==="TM_DIRECTORY"&&this._labelService)return p.dirname(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(Object(g.d)(this._model.uri));if(Ze==="TM_FILEPATH"&&this._labelService)return this._labelService.getUriLabel(this._model.uri)}return},Ke}(),Z=function(){function Ke(Xe,Ze,Ye,ke){this._readClipboardText=Xe,this._selectionIdx=Ze,this._selectionCount=Ye,this._spread=ke}return Ke.prototype.resolve=function(Xe){if(Xe.name!=="CLIPBOARD")return;var Ze=this._readClipboardText();if(!Ze)return;if(this._spread){var Ye=Ze.split(/\r\n|\n|\r/).filter(function(ke){return!Object(oe.x)(ke)});if(Ye.length===this._selectionCount)return Ye[this._selectionIdx]}return Ze},Ke}(),ce=function(){function Ke(Xe){this._model=Xe}return Ke.prototype.resolve=function(Xe){var Ze=Xe.name,Ye=this._model.getLanguageIdentifier(),ke=m.a.getComments(Ye.id);return ke?Ze==="LINE_COMMENT"?ke.lineCommentToken||void 0:Ze==="BLOCK_COMMENT_START"?ke.blockCommentStartToken||void 0:Ze==="BLOCK_COMMENT_END"&&ke.blockCommentEndToken||void 0:void 0},Ke}(),Me=function(){function Ke(){}return Ke.prototype.resolve=function(Xe){var Ze=Xe.name;return Ze==="CURRENT_YEAR"?String(new Date().getFullYear()):Ze==="CURRENT_YEAR_SHORT"?String(new Date().getFullYear()).slice(-2):Ze==="CURRENT_MONTH"?Object(oe.F)(new Date().getMonth().valueOf()+1,2):Ze==="CURRENT_DATE"?Object(oe.F)(new Date().getDate().valueOf(),2):Ze==="CURRENT_HOUR"?Object(oe.F)(new Date().getHours().valueOf(),2):Ze==="CURRENT_MINUTE"?Object(oe.F)(new Date().getMinutes().valueOf(),2):Ze==="CURRENT_SECOND"?Object(oe.F)(new Date().getSeconds().valueOf(),2):Ze==="CURRENT_DAY_NAME"?Ke.dayNames[new Date().getDay()]:Ze==="CURRENT_DAY_NAME_SHORT"?Ke.dayNamesShort[new Date().getDay()]:Ze==="CURRENT_MONTH_NAME"?Ke.monthNames[new Date().getMonth()]:Ze==="CURRENT_MONTH_NAME_SHORT"?Ke.monthNamesShort[new Date().getMonth()]:Ze==="CURRENT_SECONDS_UNIX"?String(Math.floor(Date.now()/1e3)):void 0},Ke.dayNames=[f.a("Sunday","Sunday"),f.a("Monday","Monday"),f.a("Tuesday","Tuesday"),f.a("Wednesday","Wednesday"),f.a("Thursday","Thursday"),f.a("Friday","Friday"),f.a("Saturday","Saturday")],Ke.dayNamesShort=[f.a("SundayShort","Sun"),f.a("MondayShort","Mon"),f.a("TuesdayShort","Tue"),f.a("WednesdayShort","Wed"),f.a("ThursdayShort","Thu"),f.a("FridayShort","Fri"),f.a("SaturdayShort","Sat")],Ke.monthNames=[f.a("January","January"),f.a("February","February"),f.a("March","March"),f.a("April","April"),f.a("May","May"),f.a("June","June"),f.a("July","July"),f.a("August","August"),f.a("September","September"),f.a("October","October"),f.a("November","November"),f.a("December","December")],Ke.monthNamesShort=[f.a("JanuaryShort","Jan"),f.a("FebruaryShort","Feb"),f.a("MarchShort","Mar"),f.a("AprilShort","Apr"),f.a("MayShort","May"),f.a("JuneShort","Jun"),f.a("JulyShort","Jul"),f.a("AugustShort","Aug"),f.a("SeptemberShort","Sep"),f.a("OctoberShort","Oct"),f.a("NovemberShort","Nov"),f.a("DecemberShort","Dec")],Ke}(),Ve=function(){function Ke(Xe){this._workspaceService=Xe}return Ke.prototype.resolve=function(Xe){if(!this._workspaceService)return;var Ze=re(this._workspaceService.getWorkspace());return Ze?Xe.name==="WORKSPACE_NAME"?this._resolveWorkspaceName(Ze):Xe.name==="WORKSPACE_FOLDER"?this._resoveWorkspacePath(Ze):void 0:void 0},Ke.prototype._resolveWorkspaceName=function(Xe){if(H(Xe))return p.basename(Xe.path);var Ze=p.basename(Xe.configPath.path);return Object(oe.m)(Ze,B)&&(Ze=Ze.substr(0,Ze.length-B.length-1)),Ze},Ke.prototype._resoveWorkspacePath=function(Xe){if(H(Xe))return Object(he.c)(Xe.fsPath);var Ze=p.basename(Xe.configPath.path),Ye=Xe.configPath.fsPath;return Object(oe.m)(Ye,Ze)&&(Ye=Ye.substr(0,Ye.length-Ze.length-1)),Ye?Object(he.c)(Ye):"/"},Ke}(),_e=function(){function Ke(){}return Ke.prototype.resolve=function(Xe){var Ze=Xe.name;return Ze==="RANDOM"?Math.random().toString().slice(-6):Ze==="RANDOM_HEX"?Math.random().toString(16).slice(-6):void 0},Ke}(),ue=r("TwZP"),se=r("0BkX"),fe=r("zqsH");Object(ue.e)(function(Ke,Xe){function Ze(Ye){var ke=Ke.getColor(Ye);return ke?ke.toString():"transparent"}Xe.addRule(".monaco-editor .snippet-placeholder { background-color: "+Ze(se.Zb)+"; outline-color: "+Ze(se.ac)+"; }"),Xe.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+Ze(se.Xb)+"; outline-color: "+Ze(se.Yb)+"; }")});var ie=function(){function Ke(Xe,Ze,Ye){this._nestingLevel=1,this._editor=Xe,this._snippet=Ze,this._offset=Ye,this._placeholderGroups=Object(E.o)(Ze.placeholders,_.b.compareByIndex),this._placeholderGroupsIdx=-1}return Ke.prototype.dispose=function(){if(this._placeholderDecorations){var Xe=[];this._placeholderDecorations.forEach(function(Ze){return Xe.push(Ze)}),this._editor.deltaDecorations(Xe,[])}this._placeholderGroups.length=0},Ke.prototype._initDecorations=function(){var Xe=this;if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;var Ze=this._editor.getModel();this._editor.changeDecorations(function(Ye){for(var ke=0,$e=Xe._snippet.placeholders;ke<$e.length;ke++){var we=$e[ke],k=Xe._snippet.offset(we),ee=Xe._snippet.fullLen(we),Pe=N.a.fromPositions(Ze.getPositionAt(Xe._offset+k),Ze.getPositionAt(Xe._offset+k+ee)),ve=we.isFinalTabstop?Ke._decor.inactiveFinal:Ke._decor.inactive,Te=Ye.addDecoration(Pe,ve);Xe._placeholderDecorations.set(we,Te)}})},Ke.prototype.move=function(Xe){var Ze=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){for(var Ye=[],ke=0,$e=this._placeholderGroups[this._placeholderGroupsIdx];ke<$e.length;ke++){var we=$e[ke];if(we.transform){var k=this._placeholderDecorations.get(we),ee=this._editor.getModel().getDecorationRange(k),Pe=this._editor.getModel().getValueInRange(ee);Ye.push(K.a.replaceMove(ee,we.transform.resolve(Pe)))}}Ye.length>0&&this._editor.executeEdits("snippet.placeholderTransform",Ye)}var ve=!1;Xe===!0&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,ve=!0):Xe===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,ve=!0);var Te=this._editor.getModel().changeDecorations(function(Ie){for(var pe=new Set,nt=[],Et=0,Rt=Ze._placeholderGroups[Ze._placeholderGroupsIdx];Et<Rt.length;Et++){var Tt=Rt[Et],Ht=Ze._placeholderDecorations.get(Tt),Gt=Ze._editor.getModel().getDecorationRange(Ht);nt.push(new F.a(Gt.startLineNumber,Gt.startColumn,Gt.endLineNumber,Gt.endColumn)),ve=ve&&Ze._hasPlaceholderBeenCollapsed(Tt),Ie.changeDecorationOptions(Ht,Tt.isFinalTabstop?Ke._decor.activeFinal:Ke._decor.active),pe.add(Tt);for(var rn=0,Ln=Ze._snippet.enclosingPlaceholders(Tt);rn<Ln.length;rn++){var yn=Ln[rn],Tn=Ze._placeholderDecorations.get(yn);Ie.changeDecorationOptions(Tn,yn.isFinalTabstop?Ke._decor.activeFinal:Ke._decor.active),pe.add(yn)}}return Ze._placeholderDecorations.forEach(function(Ft,pt){pe.has(pt)||Ie.changeDecorationOptions(Ft,pt.isFinalTabstop?Ke._decor.inactiveFinal:Ke._decor.inactive)}),nt});return ve?this.move(Xe):Te},Ke.prototype._hasPlaceholderBeenCollapsed=function(Xe){for(var Ze=Xe;Ze;){if(Ze instanceof _.b){var Ye=this._placeholderDecorations.get(Ze),ke=this._editor.getModel().getDecorationRange(Ye);if(ke.isEmpty()&&Ze.toString().length>0)return!0}Ze=Ze.parent}return!1},Object.defineProperty(Ke.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),Ke.prototype.computePossibleSelections=function(){for(var Xe=new Map,Ze=0,Ye=this._placeholderGroups;Ze<Ye.length;Ze++)for(var ke=Ye[Ze],$e=void 0,we=0,k=ke;we<k.length;we++){var ee=k[we];if(ee.isFinalTabstop)break;$e||($e=[],Xe.set(ee.index,$e));var Pe=this._placeholderDecorations.get(ee),ve=this._editor.getModel().getDecorationRange(Pe);if(!ve){Xe.delete(ee.index);break}$e.push(ve)}return Xe},Object.defineProperty(Ke.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),Ke.prototype.merge=function(Xe){var Ze=this,Ye=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(function(ke){for(var $e=0,we=Ze._placeholderGroups[Ze._placeholderGroupsIdx];$e<we.length;$e++){var k=we[$e],ee=Xe.shift();console.assert(!ee._placeholderDecorations);for(var Pe=ee._snippet.placeholderInfo.last.index,ve=0,Te=ee._snippet.placeholderInfo.all;ve<Te.length;ve++){var Ie=Te[ve];Ie.isFinalTabstop?Ie.index=k.index+(Pe+1)/Ze._nestingLevel:Ie.index=k.index+Ie.index/Ze._nestingLevel}Ze._snippet.replace(k,ee._snippet.children);var pe=Ze._placeholderDecorations.get(k);ke.removeDecoration(pe),Ze._placeholderDecorations.delete(k);for(var nt=0,Et=ee._snippet.placeholders;nt<Et.length;nt++){var Rt=Et[nt],Tt=ee._snippet.offset(Rt),Ht=ee._snippet.fullLen(Rt),Gt=N.a.fromPositions(Ye.getPositionAt(ee._offset+Tt),Ye.getPositionAt(ee._offset+Tt+Ht)),rn=ke.addDecoration(Gt,Ke._decor.inactive);Ze._placeholderDecorations.set(Rt,rn)}}Ze._placeholderGroups=Object(E.o)(Ze._snippet.placeholders,_.b.compareByIndex)})},Ke._decor={active:D.a.register({stickiness:0,className:"snippet-placeholder"}),inactive:D.a.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:D.a.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:D.a.register({stickiness:1,className:"finish-snippet-placeholder"})},Ke}(),J={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},me=function(){function Ke(Xe,Ze,Ye){Ye===void 0&&(Ye=J),this._templateMerges=[],this._snippets=[],this._editor=Xe,this._template=Ze,this._options=Ye}return Ke.adjustWhitespace=function(Xe,Ze,Ye,ke,$e){var we=Xe.getLineContent(Ze.lineNumber),k=Object(oe.t)(we,0,Ze.column-1);Ye.walk(function(ee){if(ee instanceof _.d&&!(ee.parent instanceof _.a)){var Pe=ee.value.split(/\r\n|\r|\n/);if(ke)for(var ve=1;ve<Pe.length;ve++){var Te=Object(oe.t)(Pe[ve]);Pe[ve]=Xe.normalizeIndentation(k+Te)+Pe[ve].substr(Te.length)}if($e){var Ie=Pe.join(Xe.getEOL());Ie!==ee.value&&ee.parent.replace(ee,[new _.d(Ie)])}}return!0})},Ke.adjustSelection=function(Xe,Ze,Ye,ke){if(Ye!==0||ke!==0){var $e=Ze.positionLineNumber,we=Ze.positionColumn,k=we-Ye,ee=we+ke,Pe=Xe.validateRange({startLineNumber:$e,startColumn:k,endLineNumber:$e,endColumn:ee});Ze=F.a.createWithDirection(Pe.startLineNumber,Pe.startColumn,Pe.endLineNumber,Pe.endColumn,Ze.getDirection())}return Ze},Ke.createEditsAndSnippets=function(Xe,Ze,Ye,ke,$e,we,k){var ee=[],Pe=[];if(!Xe.hasModel())return{edits:ee,snippets:Pe};for(var ve=Xe.getModel(),Te=Xe.invokeWithinContext(function(nn){return nn.get(te.a,z.d)}),Ie=Xe.invokeWithinContext(function(nn){return new q(nn.get(fe.a,z.d),ve)}),pe=Xe.invokeWithinContext(function(nn){return nn.get(A.a,z.d)}),nt=function(){return k||pe&&pe.readTextSync()},Et=0,Rt=ve.getValueInRange(Ke.adjustSelection(ve,Xe.getSelection(),Ye,0)),Tt=ve.getValueInRange(Ke.adjustSelection(ve,Xe.getSelection(),0,ke)),Ht=ve.getLineFirstNonWhitespaceColumn(Xe.getSelection().positionLineNumber),Gt=Xe.getSelections().map(function(nn,sn){return{selection:nn,idx:sn}}).sort(function(nn,sn){return N.a.compareRangesUsingStarts(nn.selection,sn.selection)}),rn=0,Ln=Gt;rn<Ln.length;rn++){var yn=Ln[rn],Tn=yn.selection,Ft=yn.idx,pt=Ke.adjustSelection(ve,Tn,Ye,0),gt=Ke.adjustSelection(ve,Tn,0,ke);Rt!==ve.getValueInRange(pt)&&(pt=Tn),Tt!==ve.getValueInRange(gt)&&(gt=Tn);var Dt=Tn.setStartPosition(pt.startLineNumber,pt.startColumn).setEndPosition(gt.endLineNumber,gt.endColumn),Lt=new _.c().parse(Ze,!0,$e),Vt=Dt.getStartPosition();Ke.adjustWhitespace(ve,Vt,Lt,we||Ft>0&&Ht!==ve.getLineFirstNonWhitespaceColumn(Tn.positionLineNumber),!0),Lt.resolveVariables(new Ee([Ie,new Z(nt,Ft,Gt.length,Xe.getOption(60)==="spread"),new Se(ve,Tn),new ce(ve),new Me,new Ve(Te),new _e]));var Qt=ve.getOffsetAt(Vt)+Et;Et+=Lt.toString().length-ve.getValueLengthInRange(Dt),ee[Ft]=K.a.replace(Dt,Lt.toString()),Pe[Ft]=new ie(Xe,Lt,Qt)}return{edits:ee,snippets:Pe}},Ke.prototype.dispose=function(){Object(I.f)(this._snippets)},Ke.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},Ke.prototype.insert=function(){var Xe=this;if(!this._editor.hasModel())return;var Ze=Ke.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),Ye=Ze.edits,ke=Ze.snippets;this._snippets=ke,this._editor.executeEdits("snippet",Ye,function($e){return Xe._snippets[0].hasPlaceholder?Xe._move(!0):$e.map(function(we){return F.a.fromPositions(we.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])},Ke.prototype.merge=function(Xe,Ze){var Ye=this;if(Ze===void 0&&(Ze=J),!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,Xe]);var ke=Ke.createEditsAndSnippets(this._editor,Xe,Ze.overwriteBefore,Ze.overwriteAfter,!0,Ze.adjustWhitespace,Ze.clipboardText),$e=ke.edits,we=ke.snippets;this._editor.executeEdits("snippet",$e,function(k){for(var ee=0,Pe=Ye._snippets;ee<Pe.length;ee++){var ve=Pe[ee];ve.merge(we)}return console.assert(we.length===0),Ye._snippets[0].hasPlaceholder?Ye._move(void 0):k.map(function(Te){return F.a.fromPositions(Te.range.getEndPosition())})})},Ke.prototype.next=function(){var Xe=this._move(!0);this._editor.setSelections(Xe),this._editor.revealPositionInCenterIfOutsideViewport(Xe[0].getPosition())},Ke.prototype.prev=function(){var Xe=this._move(!1);this._editor.setSelections(Xe),this._editor.revealPositionInCenterIfOutsideViewport(Xe[0].getPosition())},Ke.prototype._move=function(Xe){for(var Ze=[],Ye=0,ke=this._snippets;Ye<ke.length;Ye++){var $e=ke[Ye],we=$e.move(Xe);Ze.push.apply(Ze,we)}return Ze},Object.defineProperty(Ke.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(Ke.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),Ke.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var Xe=this._editor.getSelections();if(Xe.length<this._snippets.length)return!1;for(var Ze=new Map,Ye=function(Pe){var ve=Pe.computePossibleSelections();if(Ze.size===0&&ve.forEach(function(Te,Ie){Te.sort(N.a.compareRangesUsingStarts);for(var pe=0,nt=Xe;pe<nt.length;pe++){var Et=nt[pe];if(Te[0].containsRange(Et)){Ze.set(Ie,[]);break}}}),Ze.size===0)return{value:!1};Ze.forEach(function(Te,Ie){Te.push.apply(Te,ve.get(Ie))})},ke=0,$e=this._snippets;ke<$e.length;ke++){var we=$e[ke],k=Ye(we);if(typeof k=="object")return k.value}return Xe.sort(N.a.compareRangesUsingStarts),Ze.forEach(function(ee,Pe){if(ee.length!==Xe.length){Ze.delete(Pe);return}ee.sort(N.a.compareRangesUsingStarts);for(var ve=0;ve<ee.length;ve++)if(!ee[ve].containsRange(Xe[ve])){Ze.delete(Pe);return}}),Ze.size>0},Ke}(),ye=function(){return ye=Object.assign||function(Ke){for(var Xe,Ze=1,Ye=arguments.length;Ze<Ye;Ze++){Xe=arguments[Ze];for(var ke in Xe)Object.prototype.hasOwnProperty.call(Xe,ke)&&(Ke[ke]=Xe[ke])}return Ke},ye.apply(this,arguments)},ze=function(Ke,Xe,Ze,Ye){var ke=arguments.length,$e=ke<3?Xe:Ye===null?Ye=Object.getOwnPropertyDescriptor(Xe,Ze):Ye,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$e=Reflect.decorate(Ke,Xe,Ze,Ye);else for(var k=Ke.length-1;k>=0;k--)(we=Ke[k])&&($e=(ke<3?we($e):ke>3?we(Xe,Ze,$e):we(Xe,Ze))||$e);return ke>3&&$e&&Object.defineProperty(Xe,Ze,$e),$e},tt=function(Ke,Xe){return function(Ze,Ye){Xe(Ze,Ye,Ke)}},_t={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},Pt=function(){function Ke(Xe,Ze,Ye){this._editor=Xe,this._logService=Ze,this._snippetListener=new I.b,this._modelVersionId=-1,this._inSnippet=Ke.InSnippetMode.bindTo(Ye),this._hasNextTabstop=Ke.HasNextTabstop.bindTo(Ye),this._hasPrevTabstop=Ke.HasPrevTabstop.bindTo(Ye)}return Ke.get=function(Xe){return Xe.getContribution(Ke.ID)},Ke.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(I.f)(this._session),this._snippetListener.dispose()},Ke.prototype.insert=function(Xe,Ze){try{this._doInsert(Xe,typeof Ze=="undefined"?_t:ye(ye({},_t),Ze))}catch(Ye){this.cancel(),this._logService.error(Ye),this._logService.error("snippet_error"),this._logService.error("insert_template=",Xe),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},Ke.prototype._doInsert=function(Xe,Ze){var Ye=this;if(!this._editor.hasModel())return;this._snippetListener.clear(),Ze.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(Xe,Ze):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new me(this._editor,Xe,Ze),this._session.insert()),Ze.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(function(ke){return ke.isFlush&&Ye.cancel()})),this._snippetListener.add(this._editor.onDidChangeModel(function(){return Ye.cancel()})),this._snippetListener.add(this._editor.onDidChangeCursorSelection(function(){return Ye._updateState()}))},Ke.prototype._updateState=function(){if(!this._session||!this._editor.hasModel())return;if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()},Ke.prototype._handleChoice=function(){var Xe=this;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}var Ze=this._session.choice;if(!Ze){this._currentChoice=void 0;return}if(this._currentChoice!==Ze){this._currentChoice=Ze,this._editor.setSelections(this._editor.getSelections().map(function(ke){return F.a.fromPositions(ke.getStartPosition())}));var Ye=Ze.options[0];Object(j.f)(this._editor,Ze.options.map(function(ke,$e){return{kind:13,label:ke.value,insertText:ke.value,sortText:Object(oe.J)("a",$e+1),range:N.a.fromPositions(Xe._editor.getPosition(),Xe._editor.getPosition().delta(0,Ye.value.length))}}))}},Ke.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},Ke.prototype.cancel=function(Xe){Xe===void 0&&(Xe=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(I.f)(this._session),this._session=void 0,this._modelVersionId=-1,Xe&&this._editor.setSelections([this._editor.getSelection()])},Ke.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},Ke.prototype.next=function(){this._session&&this._session.next(),this._updateState()},Ke.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},Ke.ID="snippetController2",Ke.InSnippetMode=new G.d("inSnippetMode",!1),Ke.HasNextTabstop=new G.d("hasNextTabstop",!1),Ke.HasPrevTabstop=new G.d("hasPrevTabstop",!1),Ke=ze([tt(1,R.a),tt(2,G.c)],Ke),Ke}();Object(ne.h)(Pt.ID,Pt);var Xt=ne.c.bindToContribution(Pt.get);Object(ne.g)(new Xt({id:"jumpToNextSnippetPlaceholder",precondition:G.a.and(Pt.InSnippetMode,Pt.HasNextTabstop),handler:function(Xe){return Xe.next()},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:2}})),Object(ne.g)(new Xt({id:"jumpToPrevSnippetPlaceholder",precondition:G.a.and(Pt.InSnippetMode,Pt.HasPrevTabstop),handler:function(Xe){return Xe.prev()},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:1024|2}})),Object(ne.g)(new Xt({id:"leaveSnippet",precondition:Pt.InSnippetMode,handler:function(Xe){return Xe.cancel(!0)},kbOpts:{weight:100+30,kbExpr:U.a.editorTextFocus,primary:9,secondary:[1024|9]}})),Object(ne.g)(new Xt({id:"acceptSnippet",precondition:Pt.InSnippetMode,handler:function(Xe){return Xe.finish()}}))},cqUj:function(wt,P,r){"use strict";r.d(P,"c",function(){return N}),r.d(P,"b",function(){return F}),r.d(P,"a",function(){return U}),r.d(P,"d",function(){return j}),r.d(P,"e",function(){return G});var I=r("v4mt"),oe=r("vqGt"),ne=function(){function R(){}return R.prototype.clone=function(){return this},R.prototype.equals=function(E){return this===E},R}(),N=new ne,F="vs.editor.nullMode",U=new oe.q(F,0);function j(R,E,x,K){return new I.b([new I.a(K,"",R)],x)}function G(R,E,x,K){var D=new Uint32Array(2);return D[0]=K,D[1]=(R<<0|0<<8|0<<11|1<<14|2<<23)>>>0,new I.c(D,x===null?N:x)}},d3Gc:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return r.e(253).then(r.bind(null,"X66W"))}})},dBuo:function(wt,P,r){"use strict";r.r(P),r.d(P,"SuggestController",function(){return X}),r.d(P,"TriggerSuggestAction",function(){return Ue});var I=r("5xAg"),oe=r("Inmo"),ne=r("QqjT"),N=r("Qun0"),F=r("bN5T"),U=r("Whdu"),j=r("qz6B"),G=r("w9Cd"),R=r("2GBI"),E=r("clE0"),x=r("ZiB8"),K=r("emi/"),D=r("41id"),A=r("vqGt"),te=r("dE3Z"),z=r("PoD0"),_=r("gC1f"),f=r("qJsm"),p=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),g=function(Q,Ce,Oe,it){var Qe=arguments.length,je=Qe<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(Q,Ce,Oe,it);else for(var Ot=Q.length-1;Ot>=0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},m=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},w=function(){function Q(){}return Q.prototype.select=function(Ce,Oe,it){if(it.length===0)return 0;for(var Qe=it[0].score[0],je=1;je<it.length;je++){var Ct=it[je],Ot=Ct.score,Jt=Ct.completion;if(Ot[0]!==Qe)break;if(Jt.preselect)return je}return 0},Q}(),B=function(Q){p(Ce,Q);function Ce(){return Q!==null&&Q.apply(this,arguments)||this}return Ce.prototype.memorize=function(Oe,it,Qe){},Ce.prototype.toJSON=function(){return},Ce.prototype.fromJSON=function(){},Ce}(w),H=function(Q){p(Ce,Q);function Ce(){var Oe=Q!==null&&Q.apply(this,arguments)||this;return Oe._cache=new K.a(300,.66),Oe._seq=0,Oe}return Ce.prototype.memorize=function(Oe,it,Qe){var je=Qe.completion.label,Ct=Oe.getLanguageIdentifier().language+"/"+je;this._cache.set(Ct,{touch:this._seq++,type:Qe.completion.kind,insertText:Qe.completion.insertText})},Ce.prototype.select=function(Oe,it,Qe){if(Qe.length===0)return 0;var je=Oe.getLineContent(it.lineNumber).substr(it.column-10,it.column-1);if(/\s$/.test(je))return Q.prototype.select.call(this,Oe,it,Qe);for(var Ct=Qe[0].score[0],Ot=-1,Jt=-1,At=-1,jt=0;jt<Qe.length&&!(Qe[jt].score[0]!==Ct);jt++){var hn=Oe.getLanguageIdentifier().language+"/"+Qe[jt].completion.label,bn=this._cache.peek(hn);if(bn&&bn.touch>At&&bn.type===Qe[jt].completion.kind&&bn.insertText===Qe[jt].completion.insertText&&(At=bn.touch,Jt=jt),Qe[jt].completion.preselect&&Ot===-1)return Ot=jt}return Jt!==-1?Jt:Ot!==-1?Ot:0},Ce.prototype.toJSON=function(){var Oe=[];return this._cache.forEach(function(it,Qe){Oe.push([Qe,it])}),Oe},Ce.prototype.fromJSON=function(Oe){this._cache.clear();for(var it=0,Qe=0,je=Oe;Qe<je.length;Qe++){var Ct=je[Qe],Ot=Ct[0],Jt=Ct[1];Jt.touch=it,Jt.type=typeof Jt.type=="number"?Jt.type:Object(A.B)(Jt.type),this._cache.set(Ot,Jt)}this._seq=this._cache.size},Ce}(w),re=function(Q){p(Ce,Q);function Ce(){var Oe=Q!==null&&Q.apply(this,arguments)||this;return Oe._trie=K.c.forStrings(),Oe._seq=0,Oe}return Ce.prototype.memorize=function(Oe,it,Qe){var je=Oe.getWordUntilPosition(it).word,Ct=Oe.getLanguageIdentifier().language+"/"+je;this._trie.set(Ct,{type:Qe.completion.kind,insertText:Qe.completion.insertText,touch:this._seq++})},Ce.prototype.select=function(Oe,it,Qe){var je=Oe.getWordUntilPosition(it).word;if(!je)return Q.prototype.select.call(this,Oe,it,Qe);var Ct=Oe.getLanguageIdentifier().language+"/"+je,Ot=this._trie.get(Ct);if(Ot||(Ot=this._trie.findSubstr(Ct)),Ot)for(var Jt=0;Jt<Qe.length;Jt++){var At=Qe[Jt].completion,jt=At.kind,hn=At.insertText;if(jt===Ot.type&&hn===Ot.insertText)return Jt}return Q.prototype.select.call(this,Oe,it,Qe)},Ce.prototype.toJSON=function(){var Oe=[];return this._trie.forEach(function(it,Qe){return Oe.push([Qe,it])}),Oe.sort(function(it,Qe){return-(it[1].touch-Qe[1].touch)}).forEach(function(it,Qe){return it[1].touch=Qe}),Oe.slice(0,200)},Ce.prototype.fromJSON=function(Oe){if(this._trie.clear(),Oe.length>0){this._seq=Oe[0][1].touch+1;for(var it=0,Qe=Oe;it<Qe.length;it++){var je=Qe[it],Ct=je[0],Ot=je[1];Ot.type=typeof Ot.type=="number"?Ot.type:Object(A.B)(Ot.type),this._trie.set(Ct,Ot)}}},Ce}(w),he=function(Q){p(Ce,Q);function Ce(Oe,it){var Qe=Q.call(this)||this;Qe._storageService=Oe,Qe._configService=it,Qe._storagePrefix="suggest/memories";var je=function(){var Ot=Qe._configService.getValue("editor.suggestSelection"),Jt=Qe._configService.getValue("editor.suggest.shareSuggestSelections");Qe._update(Ot,Jt,!1)};return Qe._persistSoon=Qe._register(new te.d(function(){return Qe._saveState()},500)),Qe._register(Oe.onWillSaveState(function(Ct){Ct.reason===D.c.SHUTDOWN&&Qe._saveState()})),Qe._register(Qe._configService.onDidChangeConfiguration(function(Ct){(Ct.affectsConfiguration("editor.suggestSelection")||Ct.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&je()})),Qe._register(Qe._storageService.onDidChangeStorage(function(Ct){Ct.scope===0&&Ct.key.indexOf(Qe._storagePrefix)===0&&(document.hasFocus()||Qe._update(Qe._mode,Qe._shareMem,!0))})),je(),Qe}return Ce.prototype._update=function(Oe,it,Qe){if(!Qe&&this._mode===Oe&&this._shareMem===it)return;this._shareMem=it,this._mode=Oe,this._strategy=Oe==="recentlyUsedByPrefix"?new re:Oe==="recentlyUsed"?new H:new B;try{var je=it?0:1,Ct=this._storageService.get(this._storagePrefix+"/"+this._mode,je);Ct&&this._strategy.fromJSON(JSON.parse(Ct))}catch(Ot){}},Ce.prototype.memorize=function(Oe,it,Qe){this._strategy.memorize(Oe,it,Qe),this._persistSoon.schedule()},Ce.prototype.select=function(Oe,it,Qe){return this._strategy.select(Oe,it,Qe)},Ce.prototype._saveState=function(){var Oe=JSON.stringify(this._strategy),it=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,Oe,it)},Ce=g([m(0,D.a),m(1,_.a)],Ce),Ce}(F.a),Ee=Object(z.c)("ISuggestMemories");Object(f.b)(Ee,he,!0);var Se=r("g9ht"),q=r("OJ8J"),Z=r("bBv/"),ce=r("sobA"),Me=r("Sn7V"),Ve=function(Q,Ce,Oe,it){var Qe=arguments.length,je=Qe<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(Q,Ce,Oe,it);else for(var Ot=Q.length-1;Ot>=0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},_e=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},ue=function(){function Q(Ce,Oe){this._editor=Ce,this._index=0,this._ckOtherSuggestions=Q.OtherSuggestions.bindTo(Oe)}return Q.prototype.dispose=function(){this.reset()},Q.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(F.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},Q.prototype.set=function(Ce,Oe){var it=this,Qe=Ce.model,je=Ce.index;if(Qe.items.length===0){this.reset();return}var Ct=Q._moveIndex(!0,Qe,je);if(Ct===je){this.reset();return}this._acceptNext=Oe,this._model=Qe,this._index=je,this._listener=this._editor.onDidChangeCursorPosition(function(){it._ignore||it.reset()}),this._ckOtherSuggestions.set(!0)},Q._moveIndex=function(Ce,Oe,it){for(var Qe=it;!(Qe=(Qe+Oe.items.length+(Ce?1:-1))%Oe.items.length,Qe===it);)if(!Oe.items[Qe].completion.additionalTextEdits)break;return Qe},Q.prototype.next=function(){this._move(!0)},Q.prototype.prev=function(){this._move(!1)},Q.prototype._move=function(Ce){if(!this._model)return;try{this._ignore=!0,this._index=Q._moveIndex(Ce,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},Q.OtherSuggestions=new Z.d("hasOtherSuggestions",!1),Q=Ve([_e(1,Z.c)],Q),Q}(),se=r("YK2C"),fe=r("F5bH"),ie=r("VV9f"),J=r("yBOt"),me=function(){function Q(Ce,Oe){this.leadingLineContent=Ce,this.characterCountDelta=Oe}return Q}(),ye=function(){function Q(Ce,Oe,it,Qe,je,Ct){this._snippetCompareFn=Q._compareCompletionItems,this._items=Ce,this._column=Oe,this._wordDistance=Qe,this._options=je,this._refilterKind=1,this._lineContext=it,Ct==="top"?this._snippetCompareFn=Q._compareCompletionItemsSnippetsUp:Ct==="bottom"&&(this._snippetCompareFn=Q._compareCompletionItemsSnippetsDown)}return Object.defineProperty(Q.prototype,"lineContext",{get:function(){return this._lineContext},set:function(Oe){(this._lineContext.leadingLineContent!==Oe.leadingLineContent||this._lineContext.characterCountDelta!==Oe.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta<Oe.characterCountDelta&&this._filteredItems?2:1,this._lineContext=Oe)},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),Q.prototype.adopt=function(Ce){for(var Oe=new Array,it=0;it<this._items.length;)Ce.has(this._items[it].provider)?it++:(Oe.push(this._items[it]),this._items[it]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,Oe},Object.defineProperty(Q.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),Q.prototype._ensureCachedState=function(){this._refilterKind!==0&&this._createCachedState()},Q.prototype._createCachedState=function(){this._isIncomplete=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};for(var Ce=this._lineContext,Oe=Ce.leadingLineContent,it=Ce.characterCountDelta,Qe="",je="",Ct=this._refilterKind===1?this._items:this._filteredItems,Ot=[],Jt=!this._options.filterGraceful||Ct.length>2e3?ie.d:ie.e,At=0;At<Ct.length;At++){var jt=Ct[At];jt.container.incomplete&&this._isIncomplete.add(jt.provider);var hn=jt.position.column-jt.editStart.column,bn=hn+it-(jt.position.column-this._column);if(Qe.length!==bn&&(Qe=bn===0?"":Oe.slice(-bn),je=Qe.toLowerCase()),jt.word=Qe,bn===0)jt.score=ie.a.Default;else{for(var mn=0;mn<hn;){var Vn=Qe.charCodeAt(mn);if(Vn===32||Vn===9)mn+=1;else break}var Xn=typeof jt.completion.label=="string"?jt.completion.label:jt.completion.label.name;if(mn>=bn)jt.score=ie.a.Default;else if(typeof jt.completion.filterText=="string"){var Yn=Jt(Qe,je,mn,jt.completion.filterText,jt.filterTextLow,0,!1);if(!Yn)continue;Object(J.f)(jt.completion.filterText,Xn)===0?jt.score=Yn:(jt.score=Object(ie.b)(Qe,je,mn,Xn,jt.labelLow,0),jt.score[0]=Yn[0])}else{var Yn=Jt(Qe,je,mn,Xn,jt.labelLow,0,!1);if(!Yn)continue;jt.score=Yn}}jt.idx=At,jt.distance=this._wordDistance.distance(jt.position,jt.completion),Ot.push(jt),this._stats.suggestionCount++;switch(jt.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=Ot.sort(this._snippetCompareFn),this._refilterKind=0},Q._compareCompletionItems=function(Ce,Oe){return Ce.score[0]>Oe.score[0]?-1:Ce.score[0]<Oe.score[0]?1:Ce.distance<Oe.distance?-1:Ce.distance>Oe.distance?1:Ce.idx<Oe.idx?-1:Ce.idx>Oe.idx?1:0},Q._compareCompletionItemsSnippetsDown=function(Ce,Oe){if(Ce.completion.kind!==Oe.completion.kind){if(Ce.completion.kind===25)return 1;if(Oe.completion.kind===25)return-1}return Q._compareCompletionItems(Ce,Oe)},Q._compareCompletionItemsSnippetsUp=function(Ce,Oe){if(Ce.completion.kind!==Oe.completion.kind){if(Ce.completion.kind===25)return-1;if(Oe.completion.kind===25)return 1}return Q._compareCompletionItems(Ce,Oe)},Q}(),ze=r("l+zK"),tt=r("V0RK"),_t=r("XAYP"),Pt=function(Q,Ce,Oe,it){function Qe(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Jt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Qe(jt.value).then(Ot,Jt)}At((it=it.apply(Q,Ce||[])).next())})},Xt=function(Q,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Qe,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Jt([At,jt])}}function Jt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Qe&&(je=At[0]&2?Qe.return:At[0]?Qe.throw||((je=Qe.return)&&je.call(Qe),0):Qe.next)&&!(je=je.call(Qe,At[1])).done)return je;(Qe=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Qe=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1]<je[3])){Oe.label=At[1];break}if(At[0]===6&&Oe.label<je[1]){Oe.label=je[1],je=At;break}if(je&&Oe.label<je[2]){Oe.label=je[2],Oe.ops.push(At);break}je[2]&&Oe.ops.pop(),Oe.trys.pop();continue}At=Ce.call(Q,Oe)}catch(jt){At=[6,jt],Qe=0}finally{it=je=0}if(At[0]&5)throw At[1];return{value:At[0]?At[1]:void 0,done:!0}}},Ke=function(){function Q(){}return Q.prototype.provideSelectionRanges=function(Ce,Oe){return Pt(this,void 0,void 0,function(){var it,Qe,je,Ct,Ot;return Xt(this,function(Jt){switch(Jt.label){case 0:it=[],Qe=function(jt){var hn,bn;return Xt(this,function(mn){switch(mn.label){case 0:return hn=[],it.push(hn),bn=new Map,[4,new Promise(function(Vn){return Q._bracketsRightYield(Vn,0,Ce,jt,bn)})];case 1:return mn.sent(),[4,new Promise(function(Vn){return Q._bracketsLeftYield(Vn,0,Ce,jt,bn,hn)})];case 2:return mn.sent(),[2]}})},je=0,Ct=Oe,Jt.label=1;case 1:return je<Ct.length?(Ot=Ct[je],[5,Qe(Ot)]):[3,4];case 2:Jt.sent(),Jt.label=3;case 3:return je++,[3,1];case 4:return[2,it]}})})},Q._bracketsRightYield=function(Ce,Oe,it,Qe,je){for(var Ct=new Map,Ot=Date.now();;){if(Oe>=Q._maxRounds){Ce();break}if(!Qe){Ce();break}var Jt=it.findNextBracket(Qe);if(!Jt){Ce();break}var At=Date.now()-Ot;if(At>Q._maxDuration){setTimeout(function(){return Q._bracketsRightYield(Ce,Oe+1,it,Qe,je)});break}var jt=Jt.close[0];if(Jt.isOpen){var hn=Ct.has(jt)?Ct.get(jt):0;Ct.set(jt,hn+1)}else{var hn=Ct.has(jt)?Ct.get(jt):0;if(hn-=1,Ct.set(jt,Math.max(0,hn)),hn<0){var bn=je.get(jt);bn||(bn=new _t.a,je.set(jt,bn)),bn.push(Jt.range)}}Qe=Jt.range.getEndPosition()}},Q._bracketsLeftYield=function(Ce,Oe,it,Qe,je,Ct){for(var Ot=new Map,Jt=Date.now();;){if(Oe>=Q._maxRounds&&je.size===0){Ce();break}if(!Qe){Ce();break}var At=it.findPrevBracket(Qe);if(!At){Ce();break}var jt=Date.now()-Jt;if(jt>Q._maxDuration){setTimeout(function(){return Q._bracketsLeftYield(Ce,Oe+1,it,Qe,je,Ct)});break}var hn=At.close[0];if(At.isOpen){var bn=Ot.has(hn)?Ot.get(hn):0;if(bn-=1,Ot.set(hn,Math.max(0,bn)),bn<0){var mn=je.get(hn);if(mn){var Vn=mn.shift();mn.size===0&&je.delete(hn);var Xn=G.a.fromPositions(At.range.getEndPosition(),Vn.getStartPosition()),Yn=G.a.fromPositions(At.range.getStartPosition(),Vn.getEndPosition());Ct.push({range:Xn}),Ct.push({range:Yn}),Q._addBracketLeading(it,Yn,Ct)}}}else{var bn=Ot.has(hn)?Ot.get(hn):0;Ot.set(hn,bn+1)}Qe=At.range.getStartPosition()}},Q._addBracketLeading=function(Ce,Oe,it){if(Oe.startLineNumber===Oe.endLineNumber)return;var Qe=Oe.startLineNumber,je=Ce.getLineFirstNonWhitespaceColumn(Qe);je!==0&&je!==Oe.startColumn&&(it.push({range:G.a.fromPositions(new tt.a(Qe,je),Oe.getEndPosition())}),it.push({range:G.a.fromPositions(new tt.a(Qe,1),Oe.getEndPosition())}));var Ct=Qe-1;if(Ct>0){var Ot=Ce.getLineFirstNonWhitespaceColumn(Ct);Ot===Oe.startColumn&&Ot!==Ce.getLineLastNonWhitespaceColumn(Ct)&&(it.push({range:G.a.fromPositions(new tt.a(Ct,Ot),Oe.getEndPosition())}),it.push({range:G.a.fromPositions(new tt.a(Ct,1),Oe.getEndPosition())}))}},Q._maxDuration=30,Q._maxRounds=2,Q}(),Xe=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),Ze=function(Q,Ce,Oe,it){function Qe(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Jt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Qe(jt.value).then(Ot,Jt)}At((it=it.apply(Q,Ce||[])).next())})},Ye=function(Q,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Qe,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Jt([At,jt])}}function Jt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Qe&&(je=At[0]&2?Qe.return:At[0]?Qe.throw||((je=Qe.return)&&je.call(Qe),0):Qe.next)&&!(je=je.call(Qe,At[1])).done)return je;(Qe=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Qe=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1]<je[3])){Oe.label=At[1];break}if(At[0]===6&&Oe.label<je[1]){Oe.label=je[1],je=At;break}if(je&&Oe.label<je[2]){Oe.label=je[2],Oe.ops.push(At);break}je[2]&&Oe.ops.pop(),Oe.trys.pop();continue}At=Ce.call(Q,Oe)}catch(jt){At=[6,jt],Qe=0}finally{it=je=0}if(At[0]&5)throw At[1];return{value:At[0]?At[1]:void 0,done:!0}}},ke=function(){function Q(){}return Q.create=function(Ce,Oe){return Ze(this,void 0,void 0,function(){var it,Qe,je,Ct;return Ye(this,function(Ot){switch(Ot.label){case 0:return Oe.getOption(89).localityBonus?Oe.hasModel()?(it=Oe.getModel(),Qe=Oe.getPosition(),Ce.canComputeWordRanges(it.uri)?[4,new Ke().provideSelectionRanges(it,[Qe])]:[2,Q.None]):[2,Q.None]:[2,Q.None];case 1:return je=Ot.sent(),!je||je.length===0||je[0].length===0?[2,Q.None]:[4,Ce.computeWordRanges(it.uri,je[0][0].range)];case 2:return Ct=Ot.sent(),[2,new(function(Jt){Xe(At,Jt);function At(){return Jt!==null&&Jt.apply(this,arguments)||this}return At.prototype.distance=function(jt,hn){if(!Ct||!Qe.equals(Oe.getPosition()))return 0;if(hn.kind===17)return 2<<20;var bn=typeof hn.label=="string"?hn.label:hn.label.name,mn=Ct[bn];if(Object(oe.p)(mn))return 2<<20;for(var Vn=Object(oe.c)(mn,G.a.fromPositions(jt),G.a.compareRangesUsingStarts),Xn=Vn>=0?mn[Vn]:mn[Math.max(0,~Vn-1)],Yn=je.length,Ui=0,ii=je[0];Ui<ii.length;Ui++){var Pi=ii[Ui];if(!G.a.containsRange(Pi.range,Xn))break;Yn-=1}return Yn},At}(Q))]}})})},Q.None=new(function(Ce){Xe(Oe,Ce);function Oe(){return Ce!==null&&Ce.apply(this,arguments)||this}return Oe.prototype.distance=function(){return 0},Oe}(Q)),Q}(),$e=function(){function Q(Ce,Oe,it,Qe){this.leadingLineContent=Ce.getLineContent(Oe.lineNumber).substr(0,Oe.column-1),this.leadingWord=Ce.getWordUntilPosition(Oe),this.lineNumber=Oe.lineNumber,this.column=Oe.column,this.auto=it,this.shy=Qe}return Q.shouldAutoTrigger=function(Ce){if(!Ce.hasModel())return!1;var Oe=Ce.getModel(),it=Ce.getPosition();Oe.tokenizeIfCheap(it.lineNumber);var Qe=Oe.getWordAtPosition(it);return Qe?Qe.endColumn!==it.column?!1:!!isNaN(Number(Qe.word)):!1},Q}(),we=function(){function Q(Ce,Oe){var it=this;this._editor=Ce,this._editorWorker=Oe,this._toDispose=new F.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new F.b,this._triggerQuickSuggest=new te.e,this._state=0,this._completionDisposables=new F.b,this._onDidCancel=new se.a,this._onDidTrigger=new se.a,this._onDidSuggest=new se.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new fe.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(function(){it._updateTriggerCharacters(),it.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(function(){it._updateTriggerCharacters(),it.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(function(){it._updateTriggerCharacters(),it._updateQuickSuggest()})),this._toDispose.add(A.d.onDidChange(function(){it._updateTriggerCharacters(),it._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(function(je){it._onCursorChange(je)}));var Qe=!1;this._toDispose.add(this._editor.onDidCompositionStart(function(){Qe=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(function(){Qe=!1,it._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(function(){Qe||it._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}return Q.prototype.dispose=function(){Object(F.f)(this._triggerCharacterListener),Object(F.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},Q.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getOption(67),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&this._quickSuggestDelay!==0||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},Q.prototype._updateTriggerCharacters=function(){var Ce=this;if(this._triggerCharacterListener.clear(),this._editor.getOption(68)||!this._editor.hasModel()||!this._editor.getOption(92))return;for(var Oe=new Map,it=0,Qe=A.d.all(this._editor.getModel());it<Qe.length;it++)for(var je=Qe[it],Ct=0,Ot=je.triggerCharacters||[];Ct<Ot.length;Ct++){var Jt=Ot[Ct],At=Oe.get(Jt);At||(At=new Set,At.add(Object(Me.c)()),Oe.set(Jt,At)),At.add(je)}var jt=function(bn){if(!bn){var mn=Ce._editor.getPosition(),Vn=Ce._editor.getModel();bn=Vn.getLineContent(mn.lineNumber).substr(0,mn.column-1)}var Xn="";Object(J.A)(bn.charCodeAt(bn.length-1))?Object(J.z)(bn.charCodeAt(bn.length-2))&&(Xn=bn.substr(bn.length-2)):Xn=bn.charAt(bn.length-1);var Yn=Oe.get(Xn);if(Yn){var Ui=Ce._completionModel?Ce._completionModel.adopt(Yn):void 0;Ce.trigger({auto:!0,shy:!1,triggerCharacter:Xn},Boolean(Ce._completionModel),Yn,Ui)}};this._triggerCharacterListener.add(this._editor.onDidType(jt)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(jt))},Object.defineProperty(Q.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),Q.prototype.cancel=function(Ce){Ce===void 0&&(Ce=!1),this._state!==0&&(this._triggerQuickSuggest.cancel(),this._requestToken&&(this._requestToken.cancel(),this._requestToken=void 0),this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:Ce}))},Q.prototype.clear=function(){this._completionDisposables.clear()},Q.prototype._updateActiveSuggestSession=function(){this._state!==0&&(!this._editor.hasModel()||!A.d.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._state===2,shy:!1},!0))},Q.prototype._onCursorChange=function(Ce){var Oe=this;if(!this._editor.hasModel())return;var it=this._editor.getModel(),Qe=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!Ce.selection.isEmpty()||Ce.reason!==0||Ce.source!=="keyboard"&&Ce.source!=="deleteLeft"){this.cancel();return}if(!A.d.has(it))return;if(this._state===0){if(this._editor.getOption(66)===!1)return;if(!Qe.containsRange(this._currentSelection)&&!Qe.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(89).snippetsPreventQuickSuggestions&&E.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(function(){if(Oe._state!==0)return;if(!$e.shouldAutoTrigger(Oe._editor))return;if(!Oe._editor.hasModel())return;var je=Oe._editor.getModel(),Ct=Oe._editor.getPosition(),Ot=Oe._editor.getOption(66);if(Ot===!1)return;if(!(Ot===!0)){je.tokenizeIfCheap(Ct.lineNumber);var Jt=je.getLineTokens(Ct.lineNumber),At=Jt.getStandardTokenType(Jt.findTokenIndexAtOffset(Math.max(Ct.column-1-1,0))),jt=Ot.other&&At===0||Ot.comments&&At===1||Ot.strings&&At===2;if(!jt)return}Oe.trigger({auto:!0,shy:!1})},this._quickSuggestDelay)}},Q.prototype._refilterCompletionItems=function(){var Ce=this;Promise.resolve().then(function(){if(Ce._state===0)return;if(!Ce._editor.hasModel())return;var Oe=Ce._editor.getModel(),it=Ce._editor.getPosition(),Qe=new $e(Oe,it,Ce._state===2,!1);Ce._onNewContext(Qe)})},Q.prototype.trigger=function(Ce,Oe,it,Qe){var je=this;if(Oe===void 0&&(Oe=!1),!this._editor.hasModel())return;var Ct=this._editor.getModel(),Ot=Ce.auto,Jt=new $e(Ct,this._editor.getPosition(),Ot,Ce.shy);this.cancel(Oe),this._state=Ot?2:1,this._onDidTrigger.fire({auto:Ot,shy:Ce.shy,position:this._editor.getPosition()}),this._context=Jt;var At;Ce.triggerCharacter?At={triggerKind:1,triggerCharacter:Ce.triggerCharacter}:it&&it.size>0?At={triggerKind:2}:At={triggerKind:0},this._requestToken=new ze.b;var jt=this._editor.getOption(86),hn=1;switch(jt){case"top":hn=0;break;case"bottom":hn=2;break}var bn=Q._createItemKindFilter(this._editor),mn=ke.create(this._editorWorker,this._editor),Vn=Object(Me.e)(Ct,this._editor.getPosition(),new Me.a(hn,bn,it),At,this._requestToken.token);Promise.all([Vn,mn]).then(function(Xn){var Yn=Xn[0],Ui=Xn[1];if(Object(F.f)(je._requestToken),je._state===0)return;if(!je._editor.hasModel())return;var ii=je._editor.getModel();if(Object(oe.q)(Qe)){var Pi=Object(Me.d)(hn);Yn=Yn.concat(Qe).sort(Pi)}var uo=new $e(ii,je._editor.getPosition(),Ot,Ce.shy);je._completionModel=new ye(Yn,je._context.column,{leadingLineContent:uo.leadingLineContent,characterCountDelta:uo.column-je._context.column},Ui,je._editor.getOption(89),je._editor.getOption(86));for(var eo=0,to=Yn;eo<to.length;eo++){var zn=to[eo];Object(F.g)(zn.container)&&je._completionDisposables.add(zn.container)}je._onNewContext(uo)}).catch(ne.e)},Q._createItemKindFilter=function(Ce){var Oe=new Set,it=Ce.getOption(86);it==="none"&&Oe.add(25);var Qe=Ce.getOption(89);return Qe.showMethods||Oe.add(0),Qe.showFunctions||Oe.add(1),Qe.showConstructors||Oe.add(2),Qe.showFields||Oe.add(3),Qe.showVariables||Oe.add(4),Qe.showClasses||Oe.add(5),Qe.showStructs||Oe.add(6),Qe.showInterfaces||Oe.add(7),Qe.showModules||Oe.add(8),Qe.showProperties||Oe.add(9),Qe.showEvents||Oe.add(10),Qe.showOperators||Oe.add(11),Qe.showUnits||Oe.add(12),Qe.showValues||Oe.add(13),Qe.showConstants||Oe.add(14),Qe.showEnums||Oe.add(15),Qe.showEnumMembers||Oe.add(16),Qe.showKeywords||Oe.add(17),Qe.showWords||Oe.add(18),Qe.showColors||Oe.add(19),Qe.showFiles||Oe.add(20),Qe.showReferences||Oe.add(21),Qe.showColors||Oe.add(22),Qe.showFolders||Oe.add(23),Qe.showTypeParameters||Oe.add(24),Qe.showSnippets||Oe.add(25),Oe},Q.prototype._onNewContext=function(Ce){if(!this._context)return;if(Ce.lineNumber!==this._context.lineNumber){this.cancel();return}if(Ce.leadingWord.startColumn<this._context.leadingWord.startColumn){this.cancel();return}if(Ce.column<this._context.column){Ce.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();return}if(!this._completionModel)return;if(Ce.column>this._context.column&&this._completionModel.incomplete.size>0&&Ce.leadingWord.word.length!==0){var Oe=this._completionModel.incomplete,it=this._completionModel.adopt(Oe);this.trigger({auto:this._state===2,shy:!1},!0,Oe,it)}else{var Qe=this._completionModel.lineContext,je=!1;if(this._completionModel.lineContext={leadingLineContent:Ce.leadingLineContent,characterCountDelta:Ce.column-this._context.column},this._completionModel.items.length===0){if($e.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<Ce.leadingWord.startColumn){this.trigger({auto:this._context.auto,shy:!1},!0);return}if(this._context.auto){this.cancel();return}else if(this._completionModel.lineContext=Qe,je=this._completionModel.items.length>0,je&&Ce.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:je})}},Q}(),k=r("htSr"),ee=r("SvGJ"),Pe=r("R8yv"),ve=r("WWf0"),Te=r("03vC"),Ie=r("UJ5a"),pe=r("TwZP"),nt=r("0BkX"),Et=Object(nt.Rb)("symbolIcon.arrayForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Rt=Object(nt.Rb)("symbolIcon.booleanForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Tt=Object(nt.Rb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ht=Object(nt.Rb)("symbolIcon.colorForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gt=Object(nt.Rb)("symbolIcon.constantForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),rn=Object(nt.Rb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ln=Object(nt.Rb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yn=Object(nt.Rb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Tn=Object(nt.Rb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(Se.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ft=Object(nt.Rb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pt=Object(nt.Rb)("symbolIcon.fileForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gt=Object(nt.Rb)("symbolIcon.folderForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Dt=Object(nt.Rb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Lt=Object(nt.Rb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Vt=Object(nt.Rb)("symbolIcon.keyForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qt=Object(nt.Rb)("symbolIcon.keywordForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nn=Object(nt.Rb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(Se.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),sn=Object(nt.Rb)("symbolIcon.moduleForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ln=Object(nt.Rb)("symbolIcon.namespaceForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),En=Object(nt.Rb)("symbolIcon.nullForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),On=Object(nt.Rb)("symbolIcon.numberForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pn=Object(nt.Rb)("symbolIcon.objectForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Gn=Object(nt.Rb)("symbolIcon.operatorForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Qn=Object(nt.Rb)("symbolIcon.packageForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Jn=Object(nt.Rb)("symbolIcon.propertyForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gi=Object(nt.Rb)("symbolIcon.referenceForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Kn=Object(nt.Rb)("symbolIcon.snippetForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yi=Object(nt.Rb)("symbolIcon.stringForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),mi=Object(nt.Rb)("symbolIcon.structForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),vt=Object(nt.Rb)("symbolIcon.textForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Mt=Object(nt.Rb)("symbolIcon.typeParameterForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),zt=Object(nt.Rb)("symbolIcon.unitForeground",{dark:nt.V,light:nt.V,hc:nt.V},Object(Se.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),tn=Object(nt.Rb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(Se.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(pe.e)(function(Q,Ce){var Oe=Q.getColor(Et);Oe&&Ce.addRule(".codicon-symbol-array { color: "+Oe+" !important; }");var it=Q.getColor(Rt);it&&Ce.addRule(".codicon-symbol-boolean { color: "+it+" !important; }");var Qe=Q.getColor(Tt);Qe&&Ce.addRule(".codicon-symbol-class { color: "+Qe+" !important; }");var je=Q.getColor(nn);je&&Ce.addRule(".codicon-symbol-method { color: "+je+" !important; }");var Ct=Q.getColor(Ht);Ct&&Ce.addRule(".codicon-symbol-color { color: "+Ct+" !important; }");var Ot=Q.getColor(Gt);Ot&&Ce.addRule(".codicon-symbol-constant { color: "+Ot+" !important; }");var Jt=Q.getColor(rn);Jt&&Ce.addRule(".codicon-symbol-constructor { color: "+Jt+" !important; }");var At=Q.getColor(Ln);At&&Ce.addRule(`
|
|
.codicon-symbol-value,.codicon-symbol-enum { color: `+At+" !important; }");var jt=Q.getColor(yn);jt&&Ce.addRule(".codicon-symbol-enum-member { color: "+jt+" !important; }");var hn=Q.getColor(Tn);hn&&Ce.addRule(".codicon-symbol-event { color: "+hn+" !important; }");var bn=Q.getColor(Ft);bn&&Ce.addRule(".codicon-symbol-field { color: "+bn+" !important; }");var mn=Q.getColor(pt);mn&&Ce.addRule(".codicon-symbol-file { color: "+mn+" !important; }");var Vn=Q.getColor(gt);Vn&&Ce.addRule(".codicon-symbol-folder { color: "+Vn+" !important; }");var Xn=Q.getColor(Dt);Xn&&Ce.addRule(".codicon-symbol-function { color: "+Xn+" !important; }");var Yn=Q.getColor(Lt);Yn&&Ce.addRule(".codicon-symbol-interface { color: "+Yn+" !important; }");var Ui=Q.getColor(Vt);Ui&&Ce.addRule(".codicon-symbol-key { color: "+Ui+" !important; }");var ii=Q.getColor(Qt);ii&&Ce.addRule(".codicon-symbol-keyword { color: "+ii+" !important; }");var Pi=Q.getColor(sn);Pi&&Ce.addRule(".codicon-symbol-module { color: "+Pi+" !important; }");var uo=Q.getColor(ln);uo&&Ce.addRule(".codicon-symbol-namespace { color: "+uo+" !important; }");var eo=Q.getColor(En);eo&&Ce.addRule(".codicon-symbol-null { color: "+eo+" !important; }");var to=Q.getColor(On);to&&Ce.addRule(".codicon-symbol-number { color: "+to+" !important; }");var zn=Q.getColor(Pn);zn&&Ce.addRule(".codicon-symbol-object { color: "+zn+" !important; }");var zo=Q.getColor(Gn);zo&&Ce.addRule(".codicon-symbol-operator { color: "+zo+" !important; }");var Oi=Q.getColor(Qn);Oi&&Ce.addRule(".codicon-symbol-package { color: "+Oi+" !important; }");var wr=Q.getColor(Jn);wr&&Ce.addRule(".codicon-symbol-property { color: "+wr+" !important; }");var Po=Q.getColor(gi);Po&&Ce.addRule(".codicon-symbol-reference { color: "+Po+" !important; }");var Ho=Q.getColor(Kn);Ho&&Ce.addRule(".codicon-symbol-snippet { color: "+Ho+" !important; }");var Fo=Q.getColor(yi);Fo&&Ce.addRule(".codicon-symbol-string { color: "+Fo+" !important; }");var tr=Q.getColor(mi);tr&&Ce.addRule(".codicon-symbol-struct { color: "+tr+" !important; }");var pr=Q.getColor(vt);pr&&Ce.addRule(".codicon-symbol-text { color: "+pr+" !important; }");var co=Q.getColor(Mt);co&&Ce.addRule(".codicon-symbol-type-parameter { color: "+co+" !important; }");var So=Q.getColor(zt);So&&Ce.addRule(".codicon-symbol-unit { color: "+So+" !important; }");var gr=Q.getColor(tn);gr&&Ce.addRule(".codicon-symbol-variable { color: "+gr+" !important; }")});var Ut=r("fF8p"),Sn=r("N7KK"),Rn=r("AyeG"),Bn=r("Qr/v"),Fn=r("yimU"),ri=r("7wrl"),ci=r("FCoH"),zi=r("rvt5"),oo=r("mWsY"),Zn=r("WKDz"),Ii=r("Ojgo"),Si=r("67Fg"),ji=r("jyJ4"),Un;(function(Q){Q[Q.FILE=0]="FILE",Q[Q.FOLDER=1]="FOLDER",Q[Q.ROOT_FOLDER=2]="ROOT_FOLDER"})(Un||(Un={}));function Ci(Q,Ce,Oe,it){var Qe=it===Un.ROOT_FOLDER?["rootfolder-icon"]:it===Un.FOLDER?["folder-icon"]:["file-icon"];if(Oe){var je;if(Oe.scheme===Ii.b.data){var Ct=Si.a.parseMetaData(Oe);je=Ct.get(Si.a.META_DATA_LABEL)}else je=Ti(Object(Si.c)(Oe).toLowerCase());if(it===Un.FOLDER)Qe.push(je+"-name-folder-icon");else{if(je){Qe.push(je+"-name-file-icon");for(var Ot=je.split("."),Jt=1;Jt<Ot.length;Jt++)Qe.push(Ot.slice(Jt).join(".")+"-ext-file-icon");Qe.push("ext-file-icon")}var At=Wi(Q,Ce,Oe);At&&Qe.push(Ti(At)+"-lang-file-icon")}}return Qe}function Wi(Q,Ce,Oe){if(!Oe)return null;var it=null;if(Oe.scheme===Ii.b.data){var Qe=Si.a.parseMetaData(Oe),je=Qe.get(Si.a.META_DATA_MIME);je&&(it=Ce.getModeId(je))}else{var Ct=Q.getModel(Oe);Ct&&(it=Ct.getModeId())}return it&&it!==ji.c?it:Ce.getModeIdByFilepathOrFirstLine(Oe)}function Ti(Q){return Q.replace(/\s/g,"\\$&")}var Gi=r("1Ylb"),Bi=r("zOJ8"),vi=r("ZZiL"),qi=function(){return qi=Object.assign||function(Q){for(var Ce,Oe=1,it=arguments.length;Oe<it;Oe++){Ce=arguments[Oe];for(var Qe in Ce)Object.prototype.hasOwnProperty.call(Ce,Qe)&&(Q[Qe]=Ce[Qe])}return Q},qi.apply(this,arguments)},ro=function(Q,Ce,Oe,it){var Qe=arguments.length,je=Qe<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(Q,Ce,Oe,it);else for(var Ot=Q.length-1;Ot>=0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},bi=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},Di=function(Q,Ce,Oe,it){function Qe(je){return je instanceof Oe?je:new Oe(function(Ct){Ct(je)})}return new(Oe||(Oe=Promise))(function(je,Ct){function Ot(jt){try{At(it.next(jt))}catch(hn){Ct(hn)}}function Jt(jt){try{At(it.throw(jt))}catch(hn){Ct(hn)}}function At(jt){jt.done?je(jt.value):Qe(jt.value).then(Ot,Jt)}At((it=it.apply(Q,Ce||[])).next())})},Xi=function(Q,Ce){var Oe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},it,Qe,je,Ct;return Ct={next:Ot(0),throw:Ot(1),return:Ot(2)},typeof Symbol=="function"&&(Ct[Symbol.iterator]=function(){return this}),Ct;function Ot(At){return function(jt){return Jt([At,jt])}}function Jt(At){if(it)throw new TypeError("Generator is already executing.");for(;Oe;)try{if(it=1,Qe&&(je=At[0]&2?Qe.return:At[0]?Qe.throw||((je=Qe.return)&&je.call(Qe),0):Qe.next)&&!(je=je.call(Qe,At[1])).done)return je;(Qe=0,je)&&(At=[At[0]&2,je.value]);switch(At[0]){case 0:case 1:je=At;break;case 4:return Oe.label++,{value:At[1],done:!1};case 5:Oe.label++,Qe=At[1],At=[0];continue;case 7:At=Oe.ops.pop(),Oe.trys.pop();continue;default:if(!(je=Oe.trys,je=je.length>0&&je[je.length-1])&&(At[0]===6||At[0]===2)){Oe=0;continue}if(At[0]===3&&(!je||At[1]>je[0]&&At[1]<je[3])){Oe.label=At[1];break}if(At[0]===6&&Oe.label<je[1]){Oe.label=je[1],je=At;break}if(je&&Oe.label<je[2]){Oe.label=je[2],Oe.ops.push(At);break}je[2]&&Oe.ops.pop(),Oe.trys.pop();continue}At=Ce.call(Q,Oe)}catch(jt){At=[6,jt],Qe=0}finally{it=je=0}if(At[0]&5)throw At[1];return{value:At[0]?At[1]:void 0,done:!0}}},lo=!1,Mi=Object(nt.Rb)("editorSuggestWidget.background",{dark:nt.P,light:nt.P,hc:nt.P},Se.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),so=Object(nt.Rb)("editorSuggestWidget.border",{dark:nt.Q,light:nt.Q,hc:nt.Q},Se.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),Je=Object(nt.Rb)("editorSuggestWidget.foreground",{dark:nt.x,light:nt.x,hc:nt.x},Se.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),O=Object(nt.Rb)("editorSuggestWidget.selectedBackground",{dark:nt.qb,light:nt.qb,hc:nt.qb},Se.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),T=Object(nt.Rb)("editorSuggestWidget.highlightForeground",{dark:nt.sb,light:nt.sb,hc:nt.sb},Se.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),Y=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i;function De(Q,Ce){var Oe=typeof Q.completion.label=="string"?Q.completion.label:Q.completion.label.name;return Oe.match(Y)?(Ce[0]=Oe,!0):typeof Q.completion.documentation=="string"&&Q.completion.documentation.match(Y)?(Ce[0]=Q.completion.documentation,!0):!1}function Re(Q){if(!Q)return!1;var Ce=Q.completion;return Ce.documentation?!0:Ce.detail&&Ce.detail!==Ce.label}function We(Q){return"suggest-aria-id:"+Q}var ft=function(){function Q(Ce,Oe,it,Qe,je,Ct){this.widget=Ce,this.editor=Oe,this.triggerKeybindingLabel=it,this._modelService=Qe,this._modeService=je,this._themeService=Ct}return Object.defineProperty(Q.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),Q.prototype.renderTemplate=function(Ce){var Oe=this,it=Object.create(null);it.disposables=new F.b,it.root=Ce,Object(Ut.e)(it.root,"show-file-icons"),it.icon=Object(Ut.p)(Ce,Object(Ut.a)(".icon")),it.colorspan=Object(Ut.p)(it.icon,Object(Ut.a)("span.colorspan"));var Qe=Object(Ut.p)(Ce,Object(Ut.a)(".contents")),je=Object(Ut.p)(Qe,Object(Ut.a)(".main"));it.left=Object(Ut.p)(je,Object(Ut.a)("span.left")),it.right=Object(Ut.p)(je,Object(Ut.a)("span.right")),it.iconContainer=Object(Ut.p)(it.left,Object(Ut.a)(".icon-label.codicon")),it.iconLabel=new Zn.a(it.left,{supportHighlights:!0,supportCodicons:!0}),it.disposables.add(it.iconLabel),it.signatureLabel=Object(Ut.p)(it.left,Object(Ut.a)("span.signature-label")),it.qualifierLabel=Object(Ut.p)(it.left,Object(Ut.a)("span.qualifier-label")),it.detailsLabel=Object(Ut.p)(it.right,Object(Ut.a)("span.details-label")),it.readMore=Object(Ut.p)(it.right,Object(Ut.a)("span.readMore.codicon.codicon-info")),it.readMore.title=Se.a("readMore","Read More...{0}",this.triggerKeybindingLabel);var Ct=function(){var Jt=Oe.editor.getOptions(),At=Jt.get(34),jt=At.fontFamily,hn=At.fontFeatureSettings,bn=Jt.get(90)||At.fontSize,mn=Jt.get(91)||At.lineHeight,Vn=At.fontWeight,Xn=bn+"px",Yn=mn+"px";it.root.style.fontSize=Xn,it.root.style.fontWeight=Vn,je.style.fontFamily=jt,je.style.fontFeatureSettings=hn,je.style.lineHeight=Yn,it.icon.style.height=Yn,it.icon.style.width=Yn,it.readMore.style.height=Yn,it.readMore.style.width=Yn};return Ct(),it.disposables.add(se.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Ot){return Ot.hasChanged(34)||Ot.hasChanged(90)||Ot.hasChanged(91)}).on(Ct,null)),it},Q.prototype.renderElement=function(Ce,Oe,it){var Qe=this,je=it,Ct=Ce.completion,Ot=typeof Ct.label=="string"?Ct.label:Ct.label.name;je.root.id=We(Oe),je.icon.className="icon "+Object(A.C)(Ct.kind),je.colorspan.style.backgroundColor="";var Jt={labelEscapeNewLines:!0,matches:Object(ie.c)(Ce.score)},At=[];if(Ct.kind===19&&De(Ce,At))je.icon.className="icon customcolor",je.iconContainer.className="icon hide",je.colorspan.style.backgroundColor=At[0];else if(Ct.kind===20&&this._themeService.getIconTheme().hasFileIcons){je.icon.className="icon hide",je.iconContainer.className="icon hide";var jt=Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ot}),Un.FILE),hn=Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ct.detail}),Un.FILE);Jt.extraClasses=jt.length>hn.length?jt:hn}else Ct.kind===23&&this._themeService.getIconTheme().hasFolderIcons?(je.icon.className="icon hide",je.iconContainer.className="icon hide",Jt.extraClasses=Object(oe.m)([Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ot}),Un.FOLDER),Ci(this._modelService,this._modeService,Bi.a.from({scheme:"fake",path:Ct.detail}),Un.FOLDER)])):(je.icon.className="icon hide",je.iconContainer.className="",Object(Ut.f)(je.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(A.C)(Ct.kind)));Ct.tags&&Ct.tags.indexOf(1)>=0&&(Jt.extraClasses=(Jt.extraClasses||[]).concat(["deprecated"]),Jt.matches=[]),je.iconLabel.setLabel(Ot,void 0,Jt),typeof Ct.label=="string"?(je.signatureLabel.textContent="",je.qualifierLabel.textContent="",je.detailsLabel.textContent=(Ct.detail||"").replace(/\n.*$/m,""),Object(Ut.O)(je.right,"always-show-details")):(je.signatureLabel.textContent=(Ct.label.signature||"").replace(/\n.*$/m,""),je.qualifierLabel.textContent=(Ct.label.qualifier||"").replace(/\n.*$/m,""),je.detailsLabel.textContent=(Ct.label.type||"").replace(/\n.*$/m,""),Object(Ut.e)(je.right,"always-show-details")),Re(Ce)?(Object(Ut.e)(je.right,"can-expand-details"),Object(Ut.W)(je.readMore),je.readMore.onmousedown=function(bn){bn.stopPropagation(),bn.preventDefault()},je.readMore.onclick=function(bn){bn.stopPropagation(),bn.preventDefault(),Qe.widget.toggleDetails()}):(Object(Ut.O)(je.right,"can-expand-details"),Object(Ut.I)(je.readMore),je.readMore.onmousedown=null,je.readMore.onclick=null)},Q.prototype.disposeTemplate=function(Ce){Ce.disposables.dispose()},Q=ro([bi(3,Gi.a),bi(4,zi.a),bi(5,pe.c)],Q),Q}(),lt=function(){function Q(Ce,Oe,it,Qe,je){var Ct=this;this.widget=Oe,this.editor=it,this.markdownRenderer=Qe,this.kbToggleDetails=je,this.borderWidth=1,this.disposables=new F.b,this.el=Object(Ut.p)(Ce,Object(Ut.a)(".details")),this.disposables.add(Object(F.h)(function(){return Ce.removeChild(Ct.el)})),this.body=Object(Ut.a)(".body"),this.scrollbar=new Rn.a(this.body,{}),Object(Ut.p)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(Ut.p)(this.body,Object(Ut.a)(".header")),this.close=Object(Ut.p)(this.header,Object(Ut.a)("span.codicon.codicon-close")),this.close.title=Se.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(Ut.p)(this.header,Object(Ut.a)("p.type")),this.docs=Object(Ut.p)(this.body,Object(Ut.a)("p.docs")),this.configureFont(),se.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Ot){return Ot.hasChanged(34)}).on(this.configureFont,this,this.disposables),Qe.onDidRenderCodeBlock(function(){return Ct.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(Q.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),Q.prototype.renderLoading=function(){this.type.textContent=Se.a("loading","Loading..."),this.docs.textContent=""},Q.prototype.renderItem=function(Ce,Oe){var it=this;this.renderDisposeable=Object(F.f)(this.renderDisposeable);var Qe=Ce.completion,je=Qe.documentation,Ct=Qe.detail;if(Oe){var Ot="";Ot+="score: "+Ce.score[0]+(Ce.word?", compared '"+(Ce.completion.filterText&&Ce.completion.filterText+" (filterText)"||Ce.completion.label)+"' with '"+Ce.word+"'":" (no prefix)")+`
|
|
`,Ot+="distance: "+Ce.distance+`, see localityBonus-setting
|
|
`,Ot+="index: "+Ce.idx+", based on "+(Ce.completion.sortText&&'sortText: "'+Ce.completion.sortText+'"'||"label")+`
|
|
`,je=new vi.a().appendCodeblock("empty",Ot),Ct="Provider: "+Ce.provider._debugDisplayName}if(!Oe&&!Re(Ce)){this.type.textContent="",this.docs.textContent="",Object(Ut.e)(this.el,"no-docs");return}if(Object(Ut.O)(this.el,"no-docs"),typeof je=="string")Object(Ut.O)(this.docs,"markdown-docs"),this.docs.textContent=je;else{Object(Ut.e)(this.docs,"markdown-docs"),this.docs.innerHTML="";var Jt=this.markdownRenderer.render(je);this.renderDisposeable=Jt,this.docs.appendChild(Jt.element)}Ct?(this.type.innerText=Ct,Object(Ut.W)(this.type)):(this.type.innerText="",Object(Ut.I)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+this.borderWidth*2+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=function(At){At.preventDefault(),At.stopPropagation()},this.close.onclick=function(At){At.preventDefault(),At.stopPropagation(),it.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},Q.prototype.scrollDown=function(Ce){Ce===void 0&&(Ce=8),this.body.scrollTop+=Ce},Q.prototype.scrollUp=function(Ce){Ce===void 0&&(Ce=8),this.body.scrollTop-=Ce},Q.prototype.scrollTop=function(){this.body.scrollTop=0},Q.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},Q.prototype.pageDown=function(){this.scrollDown(80)},Q.prototype.pageUp=function(){this.scrollUp(80)},Q.prototype.setBorderWidth=function(Ce){this.borderWidth=Ce},Q.prototype.configureFont=function(){var Ce=this.editor.getOptions(),Oe=Ce.get(34),it=Oe.fontFamily,Qe=Ce.get(90)||Oe.fontSize,je=Ce.get(91)||Oe.lineHeight,Ct=Oe.fontWeight,Ot=Qe+"px",Jt=je+"px";this.el.style.fontSize=Ot,this.el.style.fontWeight=Ct,this.el.style.fontFeatureSettings=Oe.fontFeatureSettings,this.type.style.fontFamily=it,this.close.style.height=Jt,this.close.style.width=Jt},Q.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(F.f)(this.renderDisposeable)},Q}(),yt=function(){function Q(Ce,Oe,it,Qe,je,Ct,Ot,Jt,At){var jt=this,hn,bn;this.editor=Ce,this.telemetryService=Oe,this.keybindingService=it,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=F.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new te.e,this.toDispose=new F.b,this.onDidSelectEmitter=new se.a,this.onDidFocusEmitter=new se.a,this.onDidHideEmitter=new se.a,this.onDidShowEmitter=new se.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new se.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var mn=this.toDispose.add(new ci.a(Ce,Ot,Jt)),Vn=(bn=(hn=it.lookupKeybinding("toggleSuggestionDetails"))===null||hn===void 0?void 0:hn.getLabel())!==null&&bn!==void 0?bn:"";this.msgDetailsLess=Se.a("detail.less","{0} for less...",Vn),this.msgDetailMore=Se.a("detail.more","{0} for more...",Vn),this.isAuto=!1,this.focusedItem=null,this.storageService=Ct,this.element=Object(Ut.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(Ut.i)(this.element,"click",function(ii){ii.target===jt.element&&jt.hideWidget()})),this.messageElement=Object(Ut.p)(this.element,Object(Ut.a)(".message")),this.listElement=Object(Ut.p)(this.element,Object(Ut.a)(".tree"));var Xn=function(){return Object(Ut.X)(jt.element,"with-status-bar",!jt.editor.getOption(89).hideStatusBar)};Xn(),this.statusBarElement=Object(Ut.p)(this.element,Object(Ut.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(Ut.p)(this.statusBarElement,Object(Ut.a)("span")),this.statusBarRightSpan=Object(Ut.p)(this.statusBarElement,Object(Ut.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=At.createInstance(lt,this.element,this,this.editor,mn,Vn);var Yn=function(){return Object(Ut.X)(jt.element,"no-icons",!jt.editor.getOption(89).showIcons)};Yn();var Ui=At.createInstance(ft,this,this.editor,Vn);this.list=new Sn.c("SuggestWidget",this.listElement,this,[Ui],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(Pi){var uo=typeof Pi.completion.label=="string"?Pi.completion.label:Pi.completion.label.name;if(Pi.isResolved&&jt.expandDocsSettingFromStorage()){var eo=Pi.completion,to=eo.documentation,zn=eo.detail,zo=J.r("{0}{1}",zn||"",to?typeof to=="string"?to:to.value:"");return Se.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",uo,zo)}else return uo}}}),this.toDispose.add(Object(ri.b)(this.list,je,{listInactiveFocusBackground:O,listInactiveFocusOutline:nt.b})),this.toDispose.add(je.onThemeChange(function(ii){return jt.onThemeChange(ii)})),this.toDispose.add(Ce.onDidLayoutChange(function(){return jt.onEditorLayoutChange()})),this.toDispose.add(this.list.onMouseDown(function(ii){return jt.onListMouseDownOrTap(ii)})),this.toDispose.add(this.list.onTap(function(ii){return jt.onListMouseDownOrTap(ii)})),this.toDispose.add(this.list.onSelectionChange(function(ii){return jt.onListSelection(ii)})),this.toDispose.add(this.list.onFocusChange(function(ii){return jt.onListFocus(ii)})),this.toDispose.add(this.editor.onDidChangeCursorSelection(function(){return jt.onCursorSelectionChanged()})),this.toDispose.add(this.editor.onDidChangeConfiguration(function(ii){ii.hasChanged(89)&&(Xn(),Yn())})),this.suggestWidgetVisible=Me.b.Visible.bindTo(Qe),this.suggestWidgetMultipleSuggestions=Me.b.MultipleSuggestions.bindTo(Qe),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(je.getTheme()),this.toDispose.add(Object(Ut.n)(this.details.element,"keydown",function(ii){jt._onDetailsKeydown.fire(ii)})),this.toDispose.add(this.editor.onMouseDown(function(ii){return jt.onEditorMouseDown(ii)}))}return Q.prototype.onEditorMouseDown=function(Ce){this.details.element.contains(Ce.target.element)?this.details.element.focus():this.element.contains(Ce.target.element)&&this.editor.focus()},Q.prototype.onCursorSelectionChanged=function(){if(this.state===0)return;this.editor.layoutContentWidget(this)},Q.prototype.onEditorLayoutChange=function(){(this.state===3||this.state===5)&&this.expandDocsSettingFromStorage()&&this.expandSideOrBelow()},Q.prototype.onListMouseDownOrTap=function(Ce){if(typeof Ce.element=="undefined"||typeof Ce.index=="undefined")return;Ce.browserEvent.preventDefault(),Ce.browserEvent.stopPropagation(),this.select(Ce.element,Ce.index)},Q.prototype.onListSelection=function(Ce){if(!Ce.elements.length)return;this.select(Ce.elements[0],Ce.indexes[0])},Q.prototype.select=function(Ce,Oe){var it=this.completionModel;if(!it)return;this.onDidSelectEmitter.fire({item:Ce,index:Oe,model:it}),this.editor.focus()},Q.prototype.onThemeChange=function(Ce){var Oe=Ce.getColor(Mi);Oe&&(this.listElement.style.backgroundColor=Oe.toString(),this.statusBarElement.style.backgroundColor=Oe.toString(),this.details.element.style.backgroundColor=Oe.toString(),this.messageElement.style.backgroundColor=Oe.toString());var it=Ce.getColor(so);it&&(this.listElement.style.borderColor=it.toString(),this.statusBarElement.style.borderColor=it.toString(),this.details.element.style.borderColor=it.toString(),this.messageElement.style.borderColor=it.toString(),this.detailsBorderColor=it.toString());var Qe=Ce.getColor(nt.U);Qe&&(this.detailsFocusBorderColor=Qe.toString()),this.details.setBorderWidth(Ce.type==="hc"?2:1)},Q.prototype.onListFocus=function(Ce){var Oe=this,it,Qe;if(this.ignoreFocusEvents)return;if(!Ce.elements.length){this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),this.editor.setAriaOptions({activeDescendant:void 0});return}if(!this.completionModel)return;var je=Ce.elements[0],Ct=Ce.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,je!==this.focusedItem){var Ot=this.editor.getOption(89).insertMode==="insert",Jt=(it=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))===null||it===void 0?void 0:it.getLabel(),At=(Qe=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))===null||Qe===void 0?void 0:Qe.getLabel();tt.a.equals(je.editInsertEnd,je.editReplaceEnd)?this.setStatusBarLeftText(Se.a("accept","{0} to accept",Jt)):Ot?this.setStatusBarLeftText(Se.a("insert","{0} to insert, {1} to replace",Jt,At)):this.setStatusBarLeftText(Se.a("replace","{0} to replace, {1} to insert",Jt,At)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=je,this.list.reveal(Ct),this.currentSuggestionDetails=Object(te.f)(function(jt){return Di(Oe,void 0,void 0,function(){var hn,bn,mn=this;return Xi(this,function(Vn){switch(Vn.label){case 0:return hn=Object(te.g)(function(){return mn.showDetails(!0)},250),jt.onCancellationRequested(function(){return hn.dispose()}),[4,je.resolve(jt)];case 1:return bn=Vn.sent(),hn.dispose(),[2,bn]}})})}),this.currentSuggestionDetails.then(function(){if(Ct>=Oe.list.length||je!==Oe.list.element(Ct))return;Oe.ignoreFocusEvents=!0,Oe.list.splice(Ct,1,[je]),Oe.list.setFocus([Ct]),Oe.ignoreFocusEvents=!1,Oe.expandDocsSettingFromStorage()?Oe.showDetails(!1):Object(Ut.O)(Oe.element,"docs-side"),Re(Oe.focusedItem)?Oe.expandDocsSettingFromStorage()?Oe.setStatusBarRightText(Oe.msgDetailsLess):Oe.setStatusBarRightText(Oe.msgDetailMore):Oe.statusBarRightSpan.innerText="",Oe.editor.setAriaOptions({activeDescendant:We(Ct)})}).catch(ne.e)}this.onDidFocusEmitter.fire({item:je,index:Ct,model:this.completionModel})},Q.prototype.setState=function(Ce){if(!this.element)return;var Oe=this.state!==Ce;this.state=Ce,Object(Ut.X)(this.element,"frozen",Ce===4);switch(Ce){case 0:Object(Ut.I)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,Oe&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=Q.LOADING_MESSAGE,Object(Ut.I)(this.listElement,this.details.element,this.statusBarElement),Object(Ut.W)(this.messageElement),Object(Ut.O)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=Q.NO_SUGGESTIONS_MESSAGE,Object(Ut.I)(this.listElement,this.details.element,this.statusBarElement),Object(Ut.W)(this.messageElement),Object(Ut.O)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.listElement),this.show();break;case 5:Object(Ut.I)(this.messageElement),Object(Ut.W)(this.details.element,this.listElement,this.statusBarElement),this.show();break}},Q.prototype.showTriggered=function(Ce,Oe){var it=this;if(this.state!==0)return;this.isAuto=!!Ce,this.isAuto||(this.loadingTimeout=Object(te.g)(function(){return it.setState(1)},Oe))},Q.prototype.showSuggestions=function(Ce,Oe,it,Qe){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==Ce&&(this.completionModel=Ce),it&&this.state!==2&&this.state!==0){this.setState(4);return}var je=this.completionModel.items.length,Ct=je===0;if(this.suggestWidgetMultipleSuggestions.set(je>1),Ct)Qe?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){var Ot=this.completionModel.stats;Ot.wasAutomaticallyTriggered=!!Qe,this.telemetryService.publicLog("suggestWidget",qi({},Ot))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),it?this.setState(4):this.setState(3),this.list.reveal(Oe,0),this.list.setFocus([Oe]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}},Q.prototype.selectNextPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}},Q.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},Q.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}},Q.prototype.selectPreviousPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}},Q.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},Q.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},Q.prototype.getFocusedItem=function(){return this.state!==0&&this.state!==2&&this.state!==1&&this.completionModel?{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}:void 0},Q.prototype.toggleDetailsFocus=function(){this.state===5?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):this.state===3&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")},Q.prototype.toggleDetails=function(){if(!Re(this.list.getFocusedElements()[0]))return;if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(Ut.I)(this.details.element),Object(Ut.O)(this.element,"docs-side"),Object(Ut.O)(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(this.state!==3&&this.state!==5&&this.state!==4)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},Q.prototype.showDetails=function(Ce){Ce||this.expandSideOrBelow(),Object(Ut.W)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",Ce?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},Q.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},Q.prototype.show=function(){var Ce=this,Oe=this.updateListHeight();Oe!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=Oe),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(Ut.e)(Ce.element,"visible"),Ce.onDidShowEmitter.fire(Ce)},100)},Q.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(Ut.O)(this.element,"visible")},Q.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},Q.prototype.getPosition=function(){if(this.state===0)return null;var Ce=[2,1];return this.preferDocPositionTop&&(Ce=[1]),{position:this.editor.getPosition(),preference:Ce}},Q.prototype.getDomNode=function(){return this.element},Q.prototype.getId=function(){return Q.ID},Q.prototype.isFrozen=function(){return this.state===4},Q.prototype.updateListHeight=function(){var Ce=0;if(this.state===2||this.state===1)Ce=this.unfocusedHeight;else{var Oe=this.list.contentHeight/this.unfocusedHeight,it=this.editor.getOption(89).maxVisibleSuggestions;Ce=Math.min(Oe,it)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=Ce+"px",this.statusBarElement.style.top=Ce+"px",this.list.layout(Ce),Ce},Q.prototype.adjustDocsPosition=function(){if(!this.editor.hasModel())return;var Ce=this.editor.getOption(49),Oe=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),it=Object(Ut.B)(this.editor.getDomNode()),Qe=it.left+Oe.left,je=it.top+Oe.top+Oe.height,Ct=Object(Ut.B)(this.element),Ot=Ct.left,Jt=Ct.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<Jt&&!this.preferDocPositionTop){this.preferDocPositionTop=!0,this.adjustDocsPosition();return}this.docsPositionPreviousWidgetY=Jt,Ot<Qe-this.listWidth?Object(Ut.e)(this.element,"list-right"):Object(Ut.O)(this.element,"list-right"),Object(Ut.H)(this.element,"docs-side")&&je-Ce>Jt&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},Q.prototype.expandSideOrBelow=function(){if(!Re(this.focusedItem)&&this.firstFocusInCurrentList){Object(Ut.O)(this.element,"docs-side"),Object(Ut.O)(this.element,"docs-below");return}var Ce=this.element.style.maxWidth.match(/(\d+)px/);!Ce||Number(Ce[1])<this.maxWidgetWidth?(Object(Ut.e)(this.element,"docs-below"),Object(Ut.O)(this.element,"docs-side")):Re(this.focusedItem)&&(Object(Ut.e)(this.element,"docs-side"),Object(Ut.O)(this.element,"docs-below"))},Object.defineProperty(Q.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getOption(89).maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"unfocusedHeight",{get:function(){var Oe=this.editor.getOptions();return Oe.get(91)||Oe.get(34).lineHeight},enumerable:!0,configurable:!0}),Q.prototype.getHeight=function(Ce){return this.unfocusedHeight},Q.prototype.getTemplateId=function(Ce){return"suggestion"},Q.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,lo)},Q.prototype.updateExpandDocsSetting=function(Ce){this.storageService.store("expandSuggestionDocs",Ce,0)},Q.prototype.setStatusBarLeftText=function(Ce){this.statusBarLeftSpan.innerText=Ce},Q.prototype.setStatusBarRightText=function(Ce){this.statusBarRightSpan.innerText=Ce},Q.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},Q.ID="editor.widget.suggestWidget",Q.LOADING_MESSAGE=Se.a("suggestWidget.loading","Loading..."),Q.NO_SUGGESTIONS_MESSAGE=Se.a("suggestWidget.noSuggestions","No suggestions."),Q=ro([bi(1,Fn.a),bi(2,Bn.a),bi(3,Z.c),bi(4,pe.c),bi(5,D.a),bi(6,zi.a),bi(7,oo.a),bi(8,z.a)],Q),Q}();Object(pe.e)(function(Q,Ce){var Oe=Q.getColor(T);Oe&&Ce.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+Oe+"; }");var it=Q.getColor(Je);it&&Ce.addRule(".monaco-editor .suggest-widget { color: "+it+"; }");var Qe=Q.getColor(nt.cc);Qe&&Ce.addRule(".monaco-editor .suggest-widget a { color: "+Qe+"; }");var je=Q.getColor(nt.bc);je&&Ce.addRule(".monaco-editor .suggest-widget code { background-color: "+je+"; }")});var xt=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),It=function(Q,Ce,Oe,it){var Qe=arguments.length,je=Qe<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(Q,Ce,Oe,it);else for(var Ot=Q.length-1;Ot>=0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},kt=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},Yt=function(Q){xt(Ce,Q);function Ce(Oe,it){var Qe=Q.call(this)||this;return Qe._editor=Oe,Qe._enabled=!1,Qe._ckAtEnd=Ce.AtEnd.bindTo(it),Qe._register(Qe._editor.onDidChangeConfiguration(function(je){return je.hasChanged(94)&&Qe._update()})),Qe._update(),Qe}return Ce.prototype.dispose=function(){Q.prototype.dispose.call(this),Object(F.f)(this._selectionListener),this._ckAtEnd.reset()},Ce.prototype._update=function(){var Oe=this,it=this._editor.getOption(94)==="on";if(this._enabled===it)return;if(this._enabled=it,this._enabled){var Qe=function(){if(!Oe._editor.hasModel()){Oe._ckAtEnd.set(!1);return}var Ct=Oe._editor.getModel(),Ot=Oe._editor.getSelection(),Jt=Ct.getWordAtPosition(Ot.getStartPosition());if(!Jt){Oe._ckAtEnd.set(!1);return}Oe._ckAtEnd.set(Jt.endColumn===Ot.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(Qe),Qe()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},Ce.AtEnd=new Z.d("atEndOfWord",!1),Ce=It([kt(1,Z.c)],Ce),Ce}(F.a),Zt=r("mRZz"),dn=r("yqRl"),fn=r("3NxR"),An=function(){function Q(Ce,Oe,it){var Qe=this;this._disposables=new F.b,this._disposables.add(Oe.onDidShow(function(){return Qe._onItem(Oe.getFocusedItem())})),this._disposables.add(Oe.onDidFocus(this._onItem,this)),this._disposables.add(Oe.onDidHide(this.reset,this)),this._disposables.add(Ce.onWillType(function(je){if(Qe._active&&!Oe.isFrozen()){var Ct=je.charCodeAt(je.length-1);Qe._active.acceptCharacters.has(Ct)&&Ce.getOption(0)&&it(Qe._active.item)}}))}return Q.prototype._onItem=function(Ce){if(!Ce||!Object(oe.q)(Ce.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===Ce.item)return;for(var Oe=new fn.b,it=0,Qe=Ce.item.completion.commitCharacters;it<Qe.length;it++){var je=Qe[it];je.length>0&&Oe.add(je.charCodeAt(0))}this._active={acceptCharacters:Oe,item:Ce}},Q.prototype.reset=function(){this._active=void 0},Q.prototype.dispose=function(){this._disposables.dispose()},Q}(),gn=r("S7i+"),Mn=r("6zAk"),xn=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),Le=function(){function Q(Ce){var Oe=this;this._controller=Ce,this._disposables=new F.b,this._decorations=[],this._disposables.add(Ce.model.onDidSuggest(function(it){if(!it.shy){var Qe=Oe._controller.widget.getValue(),je=Qe.getFocusedItem();je&&Oe._highlight(je.item),Oe._widgetListener||(Oe._widgetListener=Qe.onDidFocus(function(Ct){return Oe._highlight(Ct.item)}))}})),this._disposables.add(Ce.model.onDidCancel(function(){Oe._reset()}))}return Q.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(F.f)(this._widgetListener),Object(F.f)(this._shiftKeyListener)},Q.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},Q.prototype._highlight=function(Ce){var Oe=this,it;this._currentItem=Ce;var Qe=this._controller.editor.getOption(89),je=[];if(Qe.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=W.event(function(){return Oe._highlight(Oe._currentItem)}));var Ct=this._controller.getOverwriteInfo(Ce,W.isPressed),Ot=this._controller.editor.getPosition();if(Qe.insertMode==="insert"&&Ct.overwriteAfter>0)je=[{range:new G.a(Ot.lineNumber,Ot.column,Ot.lineNumber,Ot.column+Ct.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if(Qe.insertMode==="replace"&&Ct.overwriteAfter===0){var Jt=(it=this._controller.editor.getModel())===null||it===void 0?void 0:it.getWordAtPosition(Ot);Jt&&Jt.endColumn>Ot.column&&(je=[{range:new G.a(Ot.lineNumber,Ot.column,Ot.lineNumber,Jt.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,je)},Q}(),W=new(function(Q){xn(Ce,Q);function Ce(){var Oe=Q.call(this)||this;return Oe._subscriptions=new F.b,Oe._isPressed=!1,Oe._subscriptions.add(Object(Mn.a)(document.body,"keydown")(function(it){return Oe.isPressed=it.shiftKey})),Oe._subscriptions.add(Object(Mn.a)(document.body,"keyup")(function(){return Oe.isPressed=!1})),Oe._subscriptions.add(Object(Mn.a)(document.body,"mouseleave")(function(){return Oe.isPressed=!1})),Oe._subscriptions.add(Object(Mn.a)(document.body,"blur")(function(){return Oe.isPressed=!1})),Oe}return Object.defineProperty(Ce.prototype,"isPressed",{get:function(){return this._isPressed},set:function(it){this._isPressed!==it&&(this._isPressed=it,this.fire(it))},enumerable:!0,configurable:!0}),Ce.prototype.dispose=function(){this._subscriptions.dispose(),Q.prototype.dispose.call(this)},Ce}(se.a)),ae=function(){var Q=function(Oe,it){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,je){Qe.__proto__=je}||function(Qe,je){for(var Ct in je)je.hasOwnProperty(Ct)&&(Qe[Ct]=je[Ct])},Q(Oe,it)};return function(Ce,Oe){Q(Ce,Oe);function it(){this.constructor=Ce}Ce.prototype=Oe===null?Object.create(Oe):(it.prototype=Oe.prototype,new it)}}(),Fe=function(){return Fe=Object.assign||function(Q){for(var Ce,Oe=1,it=arguments.length;Oe<it;Oe++){Ce=arguments[Oe];for(var Qe in Ce)Object.prototype.hasOwnProperty.call(Ce,Qe)&&(Q[Qe]=Ce[Qe])}return Q},Fe.apply(this,arguments)},qe=function(Q,Ce,Oe,it){var Qe=arguments.length,je=Qe<3?Ce:it===null?it=Object.getOwnPropertyDescriptor(Ce,Oe):it,Ct;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")je=Reflect.decorate(Q,Ce,Oe,it);else for(var Ot=Q.length-1;Ot>=0;Ot--)(Ct=Q[Ot])&&(je=(Qe<3?Ct(je):Qe>3?Ct(Ce,Oe,je):Ct(Ce,Oe))||je);return Qe>3&&je&&Object.defineProperty(Ce,Oe,je),je},ct=function(Q,Ce){return function(Oe,it){Ce(Oe,it,Q)}},St=function(){for(var Q=0,Ce=0,Oe=arguments.length;Ce<Oe;Ce++)Q+=arguments[Ce].length;for(var it=Array(Q),Qe=0,Ce=0;Ce<Oe;Ce++)for(var je=arguments[Ce],Ct=0,Ot=je.length;Ct<Ot;Ct++,Qe++)it[Qe]=je[Ct];return it},Ge=!1,de=function(){function Q(Ce,Oe){this._model=Ce,this._position=Oe;var it=Ce.getLineMaxColumn(Oe.lineNumber);if(it!==Oe.column){var Qe=Ce.getOffsetAt(Oe),je=Ce.getPositionAt(Qe+1);this._marker=Ce.deltaDecorations([],[{range:G.a.fromPositions(Oe,je),options:{stickiness:1}}])}}return Q.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},Q.prototype.delta=function(Ce){if(this._model.isDisposed()||this._position.lineNumber!==Ce.lineNumber)return 0;if(this._marker){var Oe=this._model.getDecorationRange(this._marker[0]),it=this._model.getOffsetAt(Oe.getStartPosition());return it-this._model.getOffsetAt(Ce)}else return this._model.getLineMaxColumn(Ce.lineNumber)-Ce.column},Q}(),X=function(){function Q(Ce,Oe,it,Qe,je,Ct){var Ot=this;this._memoryService=it,this._commandService=Qe,this._contextKeyService=je,this._instantiationService=Ct,this._lineSuffix=new F.d,this._toDispose=new F.b,this.editor=Ce,this.model=new we(this.editor,Oe),this.widget=this._toDispose.add(new te.b(function(){var jt=Ot._instantiationService.createInstance(yt,Ot.editor);Ot._toDispose.add(jt),Ot._toDispose.add(jt.onDidSelect(function(mn){return Ot._insertSuggestion(mn,0)},Ot));var hn=new An(Ot.editor,jt,function(mn){return Ot._insertSuggestion(mn,2)});Ot._toDispose.add(hn),Ot._toDispose.add(Ot.model.onDidSuggest(function(mn){mn.completionModel.items.length===0&&hn.reset()}));var bn=Me.b.MakesTextEdit.bindTo(Ot._contextKeyService);return Ot._toDispose.add(jt.onDidFocus(function(mn){var Vn=mn.item,Xn=Ot.editor.getPosition(),Yn=Vn.editStart.column,Ui=Xn.column,ii=!0;if(Ot.editor.getOption(1)==="smart"&&Ot.model.state===2&&!Vn.completion.command&&!Vn.completion.additionalTextEdits&&!(Vn.completion.insertTextRules&4)&&Ui-Yn===Vn.completion.insertText.length){var Pi=Ot.editor.getModel().getValueInRange({startLineNumber:Xn.lineNumber,startColumn:Yn,endLineNumber:Xn.lineNumber,endColumn:Ui});ii=Pi!==Vn.completion.insertText}bn.set(ii)})),Ot._toDispose.add(Object(F.h)(function(){return bn.reset()})),Ot._toDispose.add(jt.onDetailsKeyDown(function(mn){if(mn.toKeybinding().equals(new N.e(!0,!1,!1,!1,33))||gn.e&&mn.toKeybinding().equals(new N.e(!1,!1,!1,!0,33))){mn.stopPropagation();return}mn.toKeybinding().isModifierKey()||Ot.editor.focus()})),jt})),this._alternatives=this._toDispose.add(new te.b(function(){return Ot._toDispose.add(new ue(Ot.editor,Ot._contextKeyService))})),this._toDispose.add(Ct.createInstance(Yt,Ce)),this._toDispose.add(this.model.onDidTrigger(function(jt){Ot.widget.getValue().showTriggered(jt.auto,jt.shy?250:50),Ot._lineSuffix.value=new de(Ot.editor.getModel(),jt.position)})),this._toDispose.add(this.model.onDidSuggest(function(jt){if(!jt.shy){var hn=Ot._memoryService.select(Ot.editor.getModel(),Ot.editor.getPosition(),jt.completionModel.items);Ot.widget.getValue().showSuggestions(jt.completionModel,hn,jt.isFrozen,jt.auto)}})),this._toDispose.add(this.model.onDidCancel(function(jt){jt.retrigger||Ot.widget.getValue().hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(function(){Ge||(Ot.model.cancel(),Ot.model.clear())}));var Jt=Me.b.AcceptSuggestionsOnEnter.bindTo(je),At=function(){var hn=Ot.editor.getOption(1);Jt.set(hn==="on"||hn==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(function(){return At()})),At(),this._toDispose.add(new Le(this))}return Q.get=function(Ce){return Ce.getContribution(Q.ID)},Q.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()},Q.prototype._insertSuggestion=function(Ce,Oe){var it,Qe=this;if(!Ce||!Ce.item){this._alternatives.getValue().reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;var je=this.editor.getModel(),Ct=je.getAlternativeVersionId(),Ot=Ce.item,Jt=Ot.completion;Oe&1||this.editor.pushUndoStop();var At=this.getOverwriteInfo(Ot,Boolean(Oe&8));this._memoryService.memorize(je,this.editor.getPosition(),Ot),Array.isArray(Jt.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",Jt.additionalTextEdits.map(function(hn){return j.a.replace(G.a.lift(hn.range),hn.text)}));var jt=Jt.insertText;Jt.insertTextRules&4||(jt=x.c.escape(jt)),E.SnippetController2.get(this.editor).insert(jt,{overwriteBefore:At.overwriteBefore,overwriteAfter:At.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(Jt.insertTextRules&1)}),Oe&2||this.editor.pushUndoStop(),Jt.command?Jt.command.id===Ue.id?this.model.trigger({auto:!0,shy:!1},!0):((it=this._commandService).executeCommand.apply(it,St([Jt.command.id],Jt.command.arguments?St(Jt.command.arguments):[])).catch(ne.e).finally(function(){return Qe.model.clear()}),this.model.cancel()):(this.model.cancel(),this.model.clear()),Oe&4&&this._alternatives.getValue().set(Ce,function(hn){for(;je.canUndo();){Ct!==je.getAlternativeVersionId()&&je.undo(),Qe._insertSuggestion(hn,1|2|(Oe&8?8:0));break}}),this._alertCompletionItem(Ce.item)},Q.prototype.getOverwriteInfo=function(Ce,Oe){Object(dn.a)(this.editor.hasModel());var it=this.editor.getOption(89).insertMode==="replace";Oe&&(it=!it);var Qe=Ce.position.column-Ce.editStart.column,je=(it?Ce.editReplaceEnd.column:Ce.editInsertEnd.column)-Ce.position.column,Ct=this.editor.getPosition().column-Ce.position.column,Ot=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:Qe+Ct,overwriteAfter:je+Ot}},Q.prototype._alertCompletionItem=function(Ce){var Oe=Ce.completion,it=typeof Oe.label=="string"?Oe.label:Oe.label.name;if(Object(oe.q)(Oe.additionalTextEdits)){var Qe=Se.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",it,Oe.additionalTextEdits.length);Object(I.a)(Qe)}},Q.prototype.triggerSuggest=function(Ce){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,Ce),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())},Q.prototype.triggerSuggestAndAcceptBest=function(Ce){var Oe=this;if(!this.editor.hasModel())return;var it=this.editor.getPosition(),Qe=function(){it.equals(Oe.editor.getPosition())&&Oe._commandService.executeCommand(Ce.fallback)},je=function(Ot){if(Ot.completion.insertTextRules&4||Ot.completion.additionalTextEdits)return!0;var Jt=Oe.editor.getPosition(),At=Ot.editStart.column,jt=Jt.column;if(jt-At!==Ot.completion.insertText.length)return!0;var hn=Oe.editor.getModel().getValueInRange({startLineNumber:Jt.lineNumber,startColumn:At,endLineNumber:Jt.lineNumber,endColumn:jt});return hn!==Ot.completion.insertText};se.b.once(this.model.onDidTrigger)(function(Ct){var Ot=[];se.b.any(Oe.model.onDidTrigger,Oe.model.onDidCancel)(function(){Object(F.f)(Ot),Qe()},void 0,Ot),Oe.model.onDidSuggest(function(Jt){var At=Jt.completionModel;if(Object(F.f)(Ot),At.items.length===0){Qe();return}var jt=Oe._memoryService.select(Oe.editor.getModel(),Oe.editor.getPosition(),At.items),hn=At.items[jt];if(!je(hn)){Qe();return}Oe.editor.pushUndoStop(),Oe._insertSuggestion({index:jt,item:hn,model:At},4|1|2)},void 0,Ot)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(it.lineNumber,0),this.editor.focus()},Q.prototype.acceptSelectedSuggestion=function(Ce,Oe){var it=this.widget.getValue().getFocusedItem(),Qe=0;Ce&&(Qe|=4),Oe&&(Qe|=8),this._insertSuggestion(it,Qe)},Q.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},Q.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},Q.prototype.cancelSuggestWidget=function(){this.model.cancel(),this.model.clear(),this.widget.getValue().hideWidget()},Q.prototype.selectNextSuggestion=function(){this.widget.getValue().selectNext()},Q.prototype.selectNextPageSuggestion=function(){this.widget.getValue().selectNextPage()},Q.prototype.selectLastSuggestion=function(){this.widget.getValue().selectLast()},Q.prototype.selectPrevSuggestion=function(){this.widget.getValue().selectPrevious()},Q.prototype.selectPrevPageSuggestion=function(){this.widget.getValue().selectPreviousPage()},Q.prototype.selectFirstSuggestion=function(){this.widget.getValue().selectFirst()},Q.prototype.toggleSuggestionDetails=function(){this.widget.getValue().toggleDetails()},Q.prototype.toggleExplainMode=function(){this.widget.getValue().toggleExplainMode()},Q.prototype.toggleSuggestionFocus=function(){this.widget.getValue().toggleDetailsFocus()},Q.ID="editor.contrib.suggestController",Q=qe([ct(1,Zt.a),ct(2,Ee),ct(3,q.b),ct(4,Z.c),ct(5,z.a)],Q),Q}(),Ue=function(Q){ae(Ce,Q);function Ce(){return Q.call(this,{id:Ce.id,label:Se.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:Z.a.and(R.a.writable,R.a.hasCompletionItemProvider),kbOpts:{kbExpr:R.a.textInputFocus,primary:2048|10,mac:{primary:256|10,secondary:[512|9]},weight:100}})||this}return Ce.prototype.run=function(Oe,it){var Qe=X.get(it);if(!Qe)return;Qe.triggerSuggest()},Ce.id="editor.action.triggerSuggest",Ce}(U.b);Object(U.h)(X.ID,X),Object(U.f)(Ue);var at=100+90,et=U.c.bindToContribution(X.get);Object(U.g)(new et({id:"acceptSelectedSuggestion",precondition:Me.b.Visible,handler:function(Ce){Ce.acceptSelectedSuggestion(!0,!1)}})),ce.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:Z.a.and(Me.b.Visible,R.a.textInputFocus),primary:2,weight:at}),ce.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:Z.a.and(Me.b.Visible,R.a.textInputFocus,Me.b.AcceptSuggestionsOnEnter,Me.b.MakesTextEdit),primary:3,weight:at}),Object(U.g)(new et({id:"acceptAlternativeSelectedSuggestion",precondition:Z.a.and(Me.b.Visible,R.a.textInputFocus),kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:1024|3,secondary:[1024|2]},handler:function(Ce){Ce.acceptSelectedSuggestion(!1,!0)}})),q.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(U.g)(new et({id:"hideSuggestWidget",precondition:Me.b.Visible,handler:function(Ce){return Ce.cancelSuggestWidget()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:9,secondary:[1024|9]}})),Object(U.g)(new et({id:"selectNextSuggestion",precondition:Z.a.and(Me.b.Visible,Me.b.MultipleSuggestions),handler:function(Ce){return Ce.selectNextSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:18,secondary:[2048|18],mac:{primary:18,secondary:[2048|18,256|44]}}})),Object(U.g)(new et({id:"selectNextPageSuggestion",precondition:Z.a.and(Me.b.Visible,Me.b.MultipleSuggestions),handler:function(Ce){return Ce.selectNextPageSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:12,secondary:[2048|12]}})),Object(U.g)(new et({id:"selectLastSuggestion",precondition:Z.a.and(Me.b.Visible,Me.b.MultipleSuggestions),handler:function(Ce){return Ce.selectLastSuggestion()}})),Object(U.g)(new et({id:"selectPrevSuggestion",precondition:Z.a.and(Me.b.Visible,Me.b.MultipleSuggestions),handler:function(Ce){return Ce.selectPrevSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:16,secondary:[2048|16],mac:{primary:16,secondary:[2048|16,256|46]}}})),Object(U.g)(new et({id:"selectPrevPageSuggestion",precondition:Z.a.and(Me.b.Visible,Me.b.MultipleSuggestions),handler:function(Ce){return Ce.selectPrevPageSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:11,secondary:[2048|11]}})),Object(U.g)(new et({id:"selectFirstSuggestion",precondition:Z.a.and(Me.b.Visible,Me.b.MultipleSuggestions),handler:function(Ce){return Ce.selectFirstSuggestion()}})),Object(U.g)(new et({id:"toggleSuggestionDetails",precondition:Me.b.Visible,handler:function(Ce){return Ce.toggleSuggestionDetails()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:2048|10,mac:{primary:256|10}}})),Object(U.g)(new et({id:"toggleExplainMode",precondition:Me.b.Visible,handler:function(Ce){return Ce.toggleExplainMode()},kbOpts:{weight:100,primary:2048|85}})),Object(U.g)(new et({id:"toggleSuggestionFocus",precondition:Me.b.Visible,handler:function(Ce){return Ce.toggleSuggestionFocus()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:2048|512|10,mac:{primary:256|512|10}}})),Object(U.g)(new et({id:"insertBestCompletion",precondition:Z.a.and(Z.a.equals("config.editor.tabCompletion","on"),Yt.AtEnd,Me.b.Visible.toNegated(),ue.OtherSuggestions.toNegated(),E.SnippetController2.InSnippetMode.toNegated()),handler:function(Ce,Oe){Ce.triggerSuggestAndAcceptBest(Object(dn.i)(Oe)?Fe({fallback:"tab"},Oe):{fallback:"tab"})},kbOpts:{weight:at,primary:2}})),Object(U.g)(new et({id:"insertNextSuggestion",precondition:Z.a.and(Z.a.equals("config.editor.tabCompletion","on"),ue.OtherSuggestions,Me.b.Visible.toNegated(),E.SnippetController2.InSnippetMode.toNegated()),handler:function(Ce){return Ce.acceptNextSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:2}})),Object(U.g)(new et({id:"insertPrevSuggestion",precondition:Z.a.and(Z.a.equals("config.editor.tabCompletion","on"),ue.OtherSuggestions,Me.b.Visible.toNegated(),E.SnippetController2.InSnippetMode.toNegated()),handler:function(Ce){return Ce.acceptPrevSuggestion()},kbOpts:{weight:at,kbExpr:R.a.textInputFocus,primary:1024|2}}))},dE3Z:function(wt,P,r){"use strict";r.d(P,"i",function(){return N}),r.d(P,"f",function(){return F}),r.d(P,"j",function(){return U}),r.d(P,"a",function(){return j}),r.d(P,"k",function(){return G}),r.d(P,"g",function(){return R}),r.d(P,"h",function(){return E}),r.d(P,"e",function(){return x}),r.d(P,"c",function(){return K}),r.d(P,"d",function(){return D}),r.d(P,"b",function(){return te});var I=r("l+zK"),oe=r("QqjT"),ne=r("bN5T");function N(z){return z&&typeof z.then=="function"}function F(z){var _=new I.b,f=z(_.token),p=new Promise(function(g,m){_.token.onCancellationRequested(function(){m(oe.a())}),Promise.resolve(f).then(function(w){_.dispose(),g(w)},function(w){_.dispose(),m(w)})});return new(function(){function g(){}return g.prototype.cancel=function(){_.cancel()},g.prototype.then=function(m,w){return p.then(m,w)},g.prototype.catch=function(m){return this.then(void 0,m)},g.prototype.finally=function(m){return p.finally(m)},g}())}function U(z,_,f){return Promise.race([z,new Promise(function(p){return _.onCancellationRequested(function(){return p(f)})})])}var j=function(){function z(_){this.defaultDelay=_,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return z.prototype.trigger=function(_,f){var p=this;return f===void 0&&(f=this.defaultDelay),this.task=_,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(g,m){p.doResolve=g,p.doReject=m}).then(function(){if(p.completionPromise=null,p.doResolve=null,p.task){var g=p.task;return p.task=null,g()}return})),this.timeout=setTimeout(function(){p.timeout=null,p.doResolve&&p.doResolve(null)},f),this.completionPromise},z.prototype.isTriggered=function(){return this.timeout!==null},z.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(oe.a()),this.completionPromise=null)},z.prototype.cancelTimeout=function(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)},z.prototype.dispose=function(){this.cancelTimeout()},z}();function G(z,_){return _?new Promise(function(f,p){var g=setTimeout(f,z);_.onCancellationRequested(function(){clearTimeout(g),p(oe.a())})}):F(function(f){return G(z,f)})}function R(z,_){_===void 0&&(_=0);var f=setTimeout(z,_);return Object(ne.h)(function(){return clearTimeout(f)})}function E(z,_,f){_===void 0&&(_=function(B){return!!B}),f===void 0&&(f=null);var p=0,g=z.length,m=function w(){if(p>=g)return Promise.resolve(f);var B=z[p++],H=Promise.resolve(B());return H.then(function(re){return _(re)?Promise.resolve(re):w()})};return m()}var x=function(){function z(_,f){this._token=-1,typeof _=="function"&&typeof f=="number"&&this.setIfNotSet(_,f)}return z.prototype.dispose=function(){this.cancel()},z.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},z.prototype.cancelAndSet=function(_,f){var p=this;this.cancel(),this._token=setTimeout(function(){p._token=-1,_()},f)},z.prototype.setIfNotSet=function(_,f){var p=this;if(this._token!==-1)return;this._token=setTimeout(function(){p._token=-1,_()},f)},z}(),K=function(){function z(){this._token=-1}return z.prototype.dispose=function(){this.cancel()},z.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},z.prototype.cancelAndSet=function(_,f){this.cancel(),this._token=setInterval(function(){_()},f)},z}(),D=function(){function z(_,f){this.timeoutToken=-1,this.runner=_,this.timeout=f,this.timeoutHandler=this.onTimeout.bind(this)}return z.prototype.dispose=function(){this.cancel(),this.runner=null},z.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},z.prototype.schedule=function(_){_===void 0&&(_=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,_)},z.prototype.isScheduled=function(){return this.timeoutToken!==-1},z.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},z.prototype.doRun=function(){this.runner&&this.runner()},z}(),A;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var z=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});A=function(f){var p=setTimeout(function(){return f(z)}),g=!1;return{dispose:function(){if(g)return;g=!0,clearTimeout(p)}}}}else A=function(f,p){var g=requestIdleCallback(f,typeof p=="number"?{timeout:p}:void 0),m=!1;return{dispose:function(){if(m)return;m=!0,cancelIdleCallback(g)}}}})();var te=function(){function z(_){var f=this;this._didRun=!1,this._executor=function(){try{f._value=_()}catch(p){f._error=p}finally{f._didRun=!0}},this._handle=A(function(){return f._executor()})}return z.prototype.dispose=function(){this._handle.dispose()},z.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},z}()},dEFY:function(wt,P,r){"use strict";r.d(P,"a",function(){return F}),r.d(P,"b",function(){return R});var I=r("zOJ8"),oe=r("67Fg"),ne=r("PoD0"),N=r("emi/"),F=Object(ne.c)("contextService"),U;(function(E){function x(K){return K&&typeof K=="object"&&typeof K.id=="string"&&Array.isArray(K.folders)}E.isIWorkspace=x})(U||(U={}));var j;(function(E){function x(K){return K&&typeof K=="object"&&I.a.isUri(K.uri)&&typeof K.name=="string"&&typeof K.toResource=="function"}E.isIWorkspaceFolder=x})(j||(j={}));var G=function(){function E(x,K,D){K===void 0&&(K=[]),D===void 0&&(D=null),this._id=x,this._configuration=D,this._foldersMap=N.c.forPaths(),this.folders=K}return Object.defineProperty(E.prototype,"folders",{get:function(){return this._folders},set:function(K){this._folders=K,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"configuration",{get:function(){return this._configuration},set:function(K){this._configuration=K},enumerable:!0,configurable:!0}),E.prototype.getFolder=function(x){return x&&this._foldersMap.findSubstr(x.with({scheme:x.scheme,authority:x.authority,path:x.path}).toString())||null},E.prototype.updateFoldersMap=function(){this._foldersMap=N.c.forPaths();for(var x=0,K=this.folders;x<K.length;x++){var D=K[x];this._foldersMap.set(D.uri.toString(),D)}},E.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}},E}(),R=function(){function E(x,K){this.raw=K,this.uri=x.uri,this.index=x.index,this.name=x.name}return E.prototype.toResource=function(x){return oe.f(this.uri,x)},E.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},E}()},dJQc:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return r.e(245).then(r.bind(null,"EQUq"))}})},"dZ+3":function(wt,P,r){},djTL:function(wt,P,r){},e1pu:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return r.e(239).then(r.bind(null,"4171"))}})},eAZY:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});var I;(function(oe){function ne(j,G){if(j.start>=G.end||G.start>=j.end)return{start:0,end:0};var R=Math.max(j.start,G.start),E=Math.min(j.end,G.end);return E-R<=0?{start:0,end:0}:{start:R,end:E}}oe.intersect=ne;function N(j){return j.end-j.start<=0}oe.isEmpty=N;function F(j,G){return!N(ne(j,G))}oe.intersects=F;function U(j,G){var R=[],E={start:j.start,end:Math.min(G.start,j.end)},x={start:Math.max(G.end,j.start),end:j.end};return N(E)||R.push(E),N(x)||R.push(x),R}oe.relativeComplement=U})(I||(I={}))},ekSf:function(wt,P,r){"use strict";r.d(P,"b",function(){return j}),r.d(P,"a",function(){return G}),r.d(P,"c",function(){return E});var I=r("zOJ8"),oe=r("xFpO"),ne=r("yBOt"),N=r("Ojgo"),F=r("S7i+"),U=r("67Fg");function j(D,A,te){if(typeof D=="string"&&(D=I.a.file(D)),te){var z=te.getWorkspaceFolder(D);if(z){var _=te.getWorkspace().folders.length>1,f=void 0;if(Object(U.e)(z.uri,D)?f="":f=Object(U.h)(z.uri,D),_){var p=z.name?z.name:Object(U.b)(z.uri);f=f?p+" \u2022 "+f:p}return f}}if(D.scheme!==N.b.file&&D.scheme!==N.b.untitled)return D.with({query:null,fragment:null}).toString(!0);if(R(D.fsPath))return Object(oe.normalize)(E(D.fsPath));var g=Object(oe.normalize)(D.fsPath);return!F.h&&A&&(g=K(g,A.userHome)),g}function G(D){if(!D)return;typeof D=="string"&&(D=I.a.file(D));var A=Object(U.b)(D)||(D.scheme===N.b.file?D.fsPath:D.path);return R(A)?E(A):A}function R(D){return!!(F.h&&D&&D[1]===":")}function E(D){return R(D)?D.charAt(0).toUpperCase()+D.slice(1):D}var x=Object.create(null);function K(D,A){if(F.h||!D||!A)return D;var te=x.original===A?x.normalized:void 0;return te||(te=""+Object(ne.K)(A,oe.posix.sep)+oe.posix.sep,x={original:A,normalized:te}),(F.d?Object(ne.M)(D,te):Object(ne.N)(D,te))&&(D="~/"+D.substr(te.length)),D}},"emi/":function(wt,P,r){"use strict";r.d(P,"e",function(){return oe}),r.d(P,"d",function(){return ne}),r.d(P,"c",function(){return j}),r.d(P,"b",function(){return G}),r.d(P,"a",function(){return E});var I=function(){var x=function(D,A){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,z){te.__proto__=z}||function(te,z){for(var _ in z)z.hasOwnProperty(_)&&(te[_]=z[_])},x(D,A)};return function(K,D){x(K,D);function A(){this.constructor=K}K.prototype=D===null?Object.create(D):(A.prototype=D.prototype,new A)}}();function oe(x){var K=[];return x.forEach(function(D){return K.push(D)}),K}function ne(x){var K=[];return x.forEach(function(D,A){return K.push(A)}),K}var N=function(){function x(){this._value="",this._pos=0}return x.prototype.reset=function(K){return this._value=K,this._pos=0,this},x.prototype.next=function(){return this._pos+=1,this},x.prototype.hasNext=function(){return this._pos<this._value.length-1},x.prototype.cmp=function(K){var D=K.charCodeAt(0),A=this._value.charCodeAt(this._pos);return D-A},x.prototype.value=function(){return this._value[this._pos]},x}(),F=function(){function x(K){K===void 0&&(K=!0),this._splitOnBackslash=K}return x.prototype.reset=function(K){return this._value=K.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},x.prototype.hasNext=function(){return this._to<this._value.length},x.prototype.next=function(){this._from=this._to;for(var K=!0;this._to<this._value.length;this._to++){var D=this._value.charCodeAt(this._to);if(D===47||this._splitOnBackslash&&D===92)if(K)this._from++;else break;else K=!1}return this},x.prototype.cmp=function(K){for(var D=0,A=K.length,te=this._from;D<A&&te<this._to;){var z=K.charCodeAt(D)-this._value.charCodeAt(te);if(z!==0)return z;D+=1,te+=1}return A===this._to-this._from?0:D<A?-1:1},x.prototype.value=function(){return this._value.substring(this._from,this._to)},x}(),U=function(){function x(){}return x}(),j=function(){function x(K){this._iter=K}return x.forPaths=function(){return new x(new F)},x.forStrings=function(){return new x(new N)},x.prototype.clear=function(){this._root=void 0},x.prototype.set=function(K,D){var A=this._iter.reset(K),te;for(this._root||(this._root=new U,this._root.segment=A.value()),te=this._root;;){var z=A.cmp(te.segment);if(z>0)te.left||(te.left=new U,te.left.segment=A.value()),te=te.left;else if(z<0)te.right||(te.right=new U,te.right.segment=A.value()),te=te.right;else if(A.hasNext())A.next(),te.mid||(te.mid=new U,te.mid.segment=A.value()),te=te.mid;else break}var _=te.value;return te.value=D,te.key=K,_},x.prototype.get=function(K){for(var D=this._iter.reset(K),A=this._root;A;){var te=D.cmp(A.segment);if(te>0)A=A.left;else if(te<0)A=A.right;else if(D.hasNext())D.next(),A=A.mid;else break}return A?A.value:void 0},x.prototype.findSubstr=function(K){for(var D=this._iter.reset(K),A=this._root,te=void 0;A;){var z=D.cmp(A.segment);if(z>0)A=A.left;else if(z<0)A=A.right;else if(D.hasNext())D.next(),te=A.value||te,A=A.mid;else break}return A&&A.value||te},x.prototype.forEach=function(K){this._forEach(this._root,K)},x.prototype._forEach=function(K,D){K&&(this._forEach(K.left,D),K.value&&D(K.value,K.key),this._forEach(K.mid,D),this._forEach(K.right,D))},x}(),G=function(){function x(){this.map=new Map,this.ignoreCase=!1}return x.prototype.set=function(K,D){this.map.set(this.toKey(K),D)},x.prototype.get=function(K){return this.map.get(this.toKey(K))},x.prototype.toKey=function(K){var D=K.toString();return this.ignoreCase&&(D=D.toLowerCase()),D},x}(),R=function(){function x(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return x.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(x.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),x.prototype.get=function(K,D){D===void 0&&(D=0);var A=this._map.get(K);return A?(D!==0&&this.touch(A,D),A.value):void 0},x.prototype.set=function(K,D,A){A===void 0&&(A=0);var te=this._map.get(K);if(te)te.value=D,A!==0&&this.touch(te,A);else{te={key:K,value:D,next:void 0,previous:void 0};switch(A){case 0:this.addItemLast(te);break;case 1:this.addItemFirst(te);break;case 2:this.addItemLast(te);break;default:this.addItemLast(te);break}this._map.set(K,te),this._size++}},x.prototype.delete=function(K){return!!this.remove(K)},x.prototype.remove=function(K){var D=this._map.get(K);return D?(this._map.delete(K),this.removeItem(D),this._size--,D.value):void 0},x.prototype.forEach=function(K,D){for(var A=this._head;A;)D?K.bind(D)(A.value,A.key,this):K(A.value,A.key,this),A=A.next},x.prototype.trimOld=function(K){if(K>=this.size)return;if(K===0){this.clear();return}for(var D=this._head,A=this.size;D&&A>K;)this._map.delete(D.key),D=D.next,A--;this._head=D,this._size=A,D&&(D.previous=void 0)},x.prototype.addItemFirst=function(K){if(!this._head&&!this._tail)this._tail=K;else if(this._head)K.next=this._head,this._head.previous=K;else throw new Error("Invalid list");this._head=K},x.prototype.addItemLast=function(K){if(!this._head&&!this._tail)this._head=K;else if(this._tail)K.previous=this._tail,this._tail.next=K;else throw new Error("Invalid list");this._tail=K},x.prototype.removeItem=function(K){if(K===this._head&&K===this._tail)this._head=void 0,this._tail=void 0;else if(K===this._head){if(!K.next)throw new Error("Invalid list");K.next.previous=void 0,this._head=K.next}else if(K===this._tail){if(!K.previous)throw new Error("Invalid list");K.previous.next=void 0,this._tail=K.previous}else{var D=K.next,A=K.previous;if(!D||!A)throw new Error("Invalid list");D.previous=A,A.next=D}K.next=void 0,K.previous=void 0},x.prototype.touch=function(K,D){if(!this._head||!this._tail)throw new Error("Invalid list");if(D!==1&&D!==2)return;if(D===1){if(K===this._head)return;var A=K.next,te=K.previous;K===this._tail?(te.next=void 0,this._tail=te):(A.previous=te,te.next=A),K.previous=void 0,K.next=this._head,this._head.previous=K,this._head=K}else if(D===2){if(K===this._tail)return;var A=K.next,te=K.previous;K===this._head?(A.previous=void 0,this._head=A):(A.previous=te,te.next=A),K.next=void 0,K.previous=this._tail,this._tail.next=K,this._tail=K}},x.prototype.toJSON=function(){var K=[];return this.forEach(function(D,A){K.push([A,D])}),K},x}(),E=function(x){I(K,x);function K(D,A){A===void 0&&(A=1);var te=x.call(this)||this;return te._limit=D,te._ratio=Math.min(Math.max(0,A),1),te}return K.prototype.get=function(D){return x.prototype.get.call(this,D,2)},K.prototype.peek=function(D){return x.prototype.get.call(this,D,0)},K.prototype.set=function(D,A){x.prototype.set.call(this,D,A,2),this.checkTrim()},K.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},K}(R)},epcv:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});function I(oe,ne,N){return Math.min(Math.max(oe,ne),N)}},fF8p:function(wt,P,r){"use strict";r.d(P,"s",function(){return z}),r.d(P,"Q",function(){return _}),r.d(P,"L",function(){return f}),r.d(P,"H",function(){return w}),r.d(P,"e",function(){return B}),r.d(P,"f",function(){return H}),r.d(P,"O",function(){return re}),r.d(P,"P",function(){return he}),r.d(P,"X",function(){return Ee}),r.d(P,"i",function(){return q}),r.d(P,"n",function(){return Me}),r.d(P,"m",function(){return Ve}),r.d(P,"g",function(){return _e}),r.d(P,"h",function(){return ue}),r.d(P,"j",function(){return se}),r.d(P,"k",function(){return fe}),r.d(P,"T",function(){return me}),r.d(P,"V",function(){return ye}),r.d(P,"l",function(){return Xt}),r.d(P,"y",function(){return Ke}),r.d(P,"x",function(){return Xe}),r.d(P,"E",function(){return ke}),r.d(P,"B",function(){return $e}),r.d(P,"d",function(){return we}),r.d(P,"G",function(){return k}),r.d(P,"A",function(){return ee}),r.d(P,"z",function(){return Pe}),r.d(P,"F",function(){return ve}),r.d(P,"J",function(){return Te}),r.d(P,"w",function(){return Ie}),r.d(P,"M",function(){return nt}),r.d(P,"D",function(){return Et}),r.d(P,"v",function(){return Rt}),r.d(P,"u",function(){return rn}),r.d(P,"N",function(){return Ln}),r.d(P,"K",function(){return yn}),r.d(P,"c",function(){return Tn}),r.d(P,"b",function(){return Ft}),r.d(P,"U",function(){return pt}),r.d(P,"S",function(){return gt}),r.d(P,"Y",function(){return Lt}),r.d(P,"p",function(){return Vt}),r.d(P,"a",function(){return ln}),r.d(P,"W",function(){return En}),r.d(P,"I",function(){return On}),r.d(P,"R",function(){return Gn}),r.d(P,"C",function(){return Qn}),r.d(P,"t",function(){return Jn}),r.d(P,"Z",function(){return gi}),r.d(P,"o",function(){return Kn}),r.d(P,"r",function(){return yi}),r.d(P,"q",function(){return mi});var I=r("mTMv"),oe=r("6zAk"),ne=r("/RM0"),N=r("oBNp"),F=r("dE3Z"),U=r("QqjT"),j=r("YK2C"),G=r("bN5T"),R=r("S7i+"),E=r("Inmo"),x=r("Ojgo"),K=r("Uq4v"),D=function(){var vt=function(zt,tn){return vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ut,Sn){Ut.__proto__=Sn}||function(Ut,Sn){for(var Rn in Sn)Sn.hasOwnProperty(Rn)&&(Ut[Rn]=Sn[Rn])},vt(zt,tn)};return function(Mt,zt){vt(Mt,zt);function tn(){this.constructor=Mt}Mt.prototype=zt===null?Object.create(zt):(tn.prototype=zt.prototype,new tn)}}(),A=function(){return A=Object.assign||function(vt){for(var Mt,zt=1,tn=arguments.length;zt<tn;zt++){Mt=arguments[zt];for(var Ut in Mt)Object.prototype.hasOwnProperty.call(Mt,Ut)&&(vt[Ut]=Mt[Ut])}return vt},A.apply(this,arguments)},te=function(){for(var vt=0,Mt=0,zt=arguments.length;Mt<zt;Mt++)vt+=arguments[Mt].length;for(var tn=Array(vt),Ut=0,Mt=0;Mt<zt;Mt++)for(var Sn=arguments[Mt],Rn=0,Bn=Sn.length;Rn<Bn;Rn++,Ut++)tn[Ut]=Sn[Rn];return tn};function z(vt){for(;vt.firstChild;)vt.removeChild(vt.firstChild)}function _(vt){vt.parentNode&&vt.parentNode.removeChild(vt)}function f(vt){for(;vt;){if(vt===document.body)return!0;vt=vt.parentNode||vt.host}return!1}var p=new(function(){function vt(){this._lastStart=-1,this._lastEnd=-1}return vt.prototype._findClassName=function(Mt,zt){var tn=Mt.className;if(!tn){this._lastStart=-1;return}zt=zt.trim();var Ut=tn.length,Sn=zt.length;if(Sn===0){this._lastStart=-1;return}if(Ut<Sn){this._lastStart=-1;return}if(tn===zt){this._lastStart=0,this._lastEnd=Ut;return}for(var Rn=-1,Bn;(Rn=tn.indexOf(zt,Rn+1))>=0;){if(Bn=Rn+Sn,(Rn===0||tn.charCodeAt(Rn-1)===32)&&tn.charCodeAt(Bn)===32){this._lastStart=Rn,this._lastEnd=Bn+1;return}if(Rn>0&&tn.charCodeAt(Rn-1)===32&&Bn===Ut){this._lastStart=Rn-1,this._lastEnd=Bn;return}if(Rn===0&&Bn===Ut){this._lastStart=0,this._lastEnd=Bn;return}}this._lastStart=-1},vt.prototype.hasClass=function(Mt,zt){return this._findClassName(Mt,zt),this._lastStart!==-1},vt.prototype.addClasses=function(Mt){for(var zt=this,tn=[],Ut=1;Ut<arguments.length;Ut++)tn[Ut-1]=arguments[Ut];tn.forEach(function(Sn){return Sn.split(" ").forEach(function(Rn){return zt.addClass(Mt,Rn)})})},vt.prototype.addClass=function(Mt,zt){Mt.className?(this._findClassName(Mt,zt),this._lastStart===-1&&(Mt.className=Mt.className+" "+zt)):Mt.className=zt},vt.prototype.removeClass=function(Mt,zt){if(this._findClassName(Mt,zt),this._lastStart===-1)return;Mt.className=Mt.className.substring(0,this._lastStart)+Mt.className.substring(this._lastEnd)},vt.prototype.removeClasses=function(Mt){for(var zt=this,tn=[],Ut=1;Ut<arguments.length;Ut++)tn[Ut-1]=arguments[Ut];tn.forEach(function(Sn){return Sn.split(" ").forEach(function(Rn){return zt.removeClass(Mt,Rn)})})},vt.prototype.toggleClass=function(Mt,zt,tn){this._findClassName(Mt,zt),this._lastStart!==-1&&(tn===void 0||!tn)&&this.removeClass(Mt,zt),this._lastStart===-1&&(tn===void 0||tn)&&this.addClass(Mt,zt)},vt}()),g=new(function(){function vt(){}return vt.prototype.hasClass=function(Mt,zt){return Boolean(zt)&&Mt.classList&&Mt.classList.contains(zt)},vt.prototype.addClasses=function(Mt){for(var zt=this,tn=[],Ut=1;Ut<arguments.length;Ut++)tn[Ut-1]=arguments[Ut];tn.forEach(function(Sn){return Sn.split(" ").forEach(function(Rn){return zt.addClass(Mt,Rn)})})},vt.prototype.addClass=function(Mt,zt){zt&&Mt.classList&&Mt.classList.add(zt)},vt.prototype.removeClass=function(Mt,zt){zt&&Mt.classList&&Mt.classList.remove(zt)},vt.prototype.removeClasses=function(Mt){for(var zt=this,tn=[],Ut=1;Ut<arguments.length;Ut++)tn[Ut-1]=arguments[Ut];tn.forEach(function(Sn){return Sn.split(" ").forEach(function(Rn){return zt.removeClass(Mt,Rn)})})},vt.prototype.toggleClass=function(Mt,zt,tn){Mt.classList&&Mt.classList.toggle(zt,tn)},vt}()),m=I.i?p:g,w=m.hasClass.bind(m),B=m.addClass.bind(m),H=m.addClasses.bind(m),re=m.removeClass.bind(m),he=m.removeClasses.bind(m),Ee=m.toggleClass.bind(m),Se=function(){function vt(Mt,zt,tn,Ut){this._node=Mt,this._type=zt,this._handler=tn,this._options=Ut||!1,this._node.addEventListener(this._type,this._handler,this._options)}return vt.prototype.dispose=function(){if(!this._handler)return;this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null},vt}();function q(vt,Mt,zt,tn){return new Se(vt,Mt,zt,tn)}function Z(vt){return function(Mt){return vt(new N.a(Mt))}}function ce(vt){return function(Mt){return vt(new ne.a(Mt))}}var Me=function(Mt,zt,tn,Ut){var Sn=tn;return zt==="click"||zt==="mousedown"?Sn=Z(tn):(zt==="keydown"||zt==="keypress"||zt==="keyup")&&(Sn=ce(tn)),q(Mt,zt,Sn,Ut)},Ve=function(Mt,zt,tn){var Ut=Z(zt);return _e(Mt,Ut,tn)};function _e(vt,Mt,zt){return q(vt,R.c&&K.a.pointerEvents?Tn.POINTER_DOWN:Tn.MOUSE_DOWN,Mt,zt)}function ue(vt,Mt,zt){return q(vt,R.c&&K.a.pointerEvents?Tn.POINTER_UP:Tn.MOUSE_UP,Mt,zt)}function se(vt,Mt){return q(vt,"mouseout",function(zt){for(var tn=zt.relatedTarget;tn&&tn!==vt;)tn=tn.parentNode;if(tn===vt)return;Mt(zt)})}function fe(vt,Mt){return q(vt,"pointerout",function(zt){for(var tn=zt.relatedTarget;tn&&tn!==vt;)tn=tn.parentNode;if(tn===vt)return;Mt(zt)})}var ie=null;function J(vt){if(!ie){var Mt=function(tn){return setTimeout(function(){return tn(new Date().getTime())},0)};ie=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||Mt}return ie.call(self,vt)}var me,ye,ze=function(){function vt(Mt,zt){zt===void 0&&(zt=0),this._runner=Mt,this.priority=zt,this._canceled=!1}return vt.prototype.dispose=function(){this._canceled=!0},vt.prototype.execute=function(){if(this._canceled)return;try{this._runner()}catch(Mt){Object(U.e)(Mt)}},vt.sort=function(Mt,zt){return zt.priority-Mt.priority},vt}();(function(){var vt=[],Mt=null,zt=!1,tn=!1,Ut=function(){for(zt=!1,Mt=vt,vt=[],tn=!0;Mt.length>0;){Mt.sort(ze.sort);var Rn=Mt.shift();Rn.execute()}tn=!1};ye=function(Rn,Bn){Bn===void 0&&(Bn=0);var Fn=new ze(Rn,Bn);return vt.push(Fn),zt||(zt=!0,J(Ut)),Fn},me=function(Rn,Bn){if(tn){var Fn=new ze(Rn,Bn);return Mt.push(Fn),Fn}else return ye(Rn,Bn)}})();var tt=16,_t=function(Mt,zt){return zt},Pt=function(vt){D(Mt,vt);function Mt(zt,tn,Ut,Sn,Rn){Sn===void 0&&(Sn=_t),Rn===void 0&&(Rn=tt);var Bn=vt.call(this)||this,Fn=null,ri=0,ci=Bn._register(new F.e),zi=function(){ri=new Date().getTime(),Ut(Fn),Fn=null};return Bn._register(q(zt,tn,function(oo){Fn=Sn(Fn,oo);var Zn=new Date().getTime()-ri;Zn>=Rn?(ci.cancel(),zi()):ci.setIfNotSet(zi,Rn-Zn)})),Bn}return Mt}(G.a);function Xt(vt,Mt,zt,tn,Ut){return new Pt(vt,Mt,zt,tn,Ut)}function Ke(vt){return document.defaultView.getComputedStyle(vt,null)}function Xe(vt){if(vt!==document.body)return new Ye(vt.clientWidth,vt.clientHeight);if(R.c&&window.visualViewport){var Mt=window.visualViewport.width,zt=window.visualViewport.height-(I.l?20+4:0);return new Ye(Mt,zt)}if(window.innerWidth&&window.innerHeight)return new Ye(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Ye(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Ye(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var Ze=function(){function vt(){}return vt.convertToPixels=function(Mt,zt){return parseFloat(zt)||0},vt.getDimension=function(Mt,zt,tn){var Ut=Ke(Mt),Sn="0";return Ut&&(Ut.getPropertyValue?Sn=Ut.getPropertyValue(zt):Sn=Ut.getAttribute(tn)),vt.convertToPixels(Mt,Sn)},vt.getBorderLeftWidth=function(Mt){return vt.getDimension(Mt,"border-left-width","borderLeftWidth")},vt.getBorderRightWidth=function(Mt){return vt.getDimension(Mt,"border-right-width","borderRightWidth")},vt.getBorderTopWidth=function(Mt){return vt.getDimension(Mt,"border-top-width","borderTopWidth")},vt.getBorderBottomWidth=function(Mt){return vt.getDimension(Mt,"border-bottom-width","borderBottomWidth")},vt.getPaddingLeft=function(Mt){return vt.getDimension(Mt,"padding-left","paddingLeft")},vt.getPaddingRight=function(Mt){return vt.getDimension(Mt,"padding-right","paddingRight")},vt.getPaddingTop=function(Mt){return vt.getDimension(Mt,"padding-top","paddingTop")},vt.getPaddingBottom=function(Mt){return vt.getDimension(Mt,"padding-bottom","paddingBottom")},vt.getMarginLeft=function(Mt){return vt.getDimension(Mt,"margin-left","marginLeft")},vt.getMarginTop=function(Mt){return vt.getDimension(Mt,"margin-top","marginTop")},vt.getMarginRight=function(Mt){return vt.getDimension(Mt,"margin-right","marginRight")},vt.getMarginBottom=function(Mt){return vt.getDimension(Mt,"margin-bottom","marginBottom")},vt}(),Ye=function(){function vt(Mt,zt){this.width=Mt,this.height=zt}return vt}();function ke(vt){for(var Mt=vt.offsetParent,zt=vt.offsetTop,tn=vt.offsetLeft;(vt=vt.parentNode)!==null&&vt!==document.body&&vt!==document.documentElement;){zt-=vt.scrollTop;var Ut=pe(vt)?null:Ke(vt);Ut&&(tn-=Ut.direction!=="rtl"?vt.scrollLeft:-vt.scrollLeft),vt===Mt&&(tn+=Ze.getBorderLeftWidth(vt),zt+=Ze.getBorderTopWidth(vt),zt+=vt.offsetTop,tn+=vt.offsetLeft,Mt=vt.offsetParent)}return{left:tn,top:zt}}function $e(vt){var Mt=vt.getBoundingClientRect();return{left:Mt.left+we.scrollX,top:Mt.top+we.scrollY,width:Mt.width,height:Mt.height}}var we=new(function(){function vt(){}return Object.defineProperty(vt.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),vt}());function k(vt){var Mt=Ze.getMarginLeft(vt)+Ze.getMarginRight(vt);return vt.offsetWidth+Mt}function ee(vt){var Mt=Ze.getBorderLeftWidth(vt)+Ze.getBorderRightWidth(vt),zt=Ze.getPaddingLeft(vt)+Ze.getPaddingRight(vt);return vt.offsetWidth-Mt-zt}function Pe(vt){var Mt=Ze.getBorderTopWidth(vt)+Ze.getBorderBottomWidth(vt),zt=Ze.getPaddingTop(vt)+Ze.getPaddingBottom(vt);return vt.offsetHeight-Mt-zt}function ve(vt){var Mt=Ze.getMarginTop(vt)+Ze.getMarginBottom(vt);return vt.offsetHeight+Mt}function Te(vt,Mt){for(;vt;){if(vt===Mt)return!0;vt=vt.parentNode}return!1}function Ie(vt,Mt,zt){for(;vt&&vt.nodeType===vt.ELEMENT_NODE;){if(w(vt,Mt))return vt;if(zt){if(typeof zt=="string"){if(w(vt,zt))return null}else if(vt===zt)return null}vt=vt.parentNode}return null}function pe(vt){return vt&&!!vt.host&&!!vt.mode}function nt(vt){return!!Et(vt)}function Et(vt){for(;vt.parentNode;){if(vt===document.body)return null;vt=vt.parentNode}return pe(vt)?vt:null}function Rt(vt){vt===void 0&&(vt=document.getElementsByTagName("head")[0]);var Mt=document.createElement("style");return Mt.type="text/css",Mt.media="screen",vt.appendChild(Mt),Mt}var Tt=null;function Ht(){return Tt||(Tt=Rt()),Tt}function Gt(vt){return vt&&vt.sheet&&vt.sheet.rules?vt.sheet.rules:vt&&vt.sheet&&vt.sheet.cssRules?vt.sheet.cssRules:[]}function rn(vt,Mt,zt){if(zt===void 0&&(zt=Ht()),!zt||!Mt)return;zt.sheet.insertRule(vt+"{"+Mt+"}",0)}function Ln(vt,Mt){if(Mt===void 0&&(Mt=Ht()),!Mt)return;for(var zt=Gt(Mt),tn=[],Ut=0;Ut<zt.length;Ut++){var Sn=zt[Ut];Sn.selectorText.indexOf(vt)!==-1&&tn.push(Ut)}for(var Ut=tn.length-1;Ut>=0;Ut--)Mt.sheet.deleteRule(tn[Ut])}function yn(vt){return typeof HTMLElement=="object"?vt instanceof HTMLElement:vt&&typeof vt=="object"&&vt.nodeType===1&&typeof vt.nodeName=="string"}var Tn={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:I.m?"webkitAnimationStart":"animationstart",ANIMATION_END:I.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:I.m?"webkitAnimationIteration":"animationiteration"},Ft={stop:function(Mt,zt){Mt.preventDefault?Mt.preventDefault():Mt.returnValue=!1,zt&&(Mt.stopPropagation?Mt.stopPropagation():Mt.cancelBubble=!0)}};function pt(vt){for(var Mt=[],zt=0;vt&&vt.nodeType===vt.ELEMENT_NODE;zt++)Mt[zt]=vt.scrollTop,vt=vt.parentNode;return Mt}function gt(vt,Mt){for(var zt=0;vt&&vt.nodeType===vt.ELEMENT_NODE;zt++)vt.scrollTop!==Mt[zt]&&(vt.scrollTop=Mt[zt]),vt=vt.parentNode}var Dt=function(vt){D(Mt,vt);function Mt(zt){var tn=vt.call(this)||this;tn._onDidFocus=tn._register(new j.a),tn.onDidFocus=tn._onDidFocus.event,tn._onDidBlur=tn._register(new j.a),tn.onDidBlur=tn._onDidBlur.event;var Ut=Te(document.activeElement,zt),Sn=!1,Rn=function(){Sn=!1,Ut||(Ut=!0,tn._onDidFocus.fire())},Bn=function(){Ut&&(Sn=!0,window.setTimeout(function(){Sn&&(Sn=!1,Ut=!1,tn._onDidBlur.fire())},0))};return tn._refreshStateHandler=function(){var Fn=Te(document.activeElement,zt);Fn!==Ut&&(Ut?Bn():Rn())},tn._register(Object(oe.a)(zt,Tn.FOCUS,!0)(Rn)),tn._register(Object(oe.a)(zt,Tn.BLUR,!0)(Bn)),tn}return Mt}(G.a);function Lt(vt){return new Dt(vt)}function Vt(vt){for(var Mt=[],zt=1;zt<arguments.length;zt++)Mt[zt-1]=arguments[zt];return Mt.forEach(function(tn){return vt.appendChild(tn)}),Mt[Mt.length-1]}var Qt=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/,nn;(function(vt){vt.HTML="http://www.w3.org/1999/xhtml",vt.SVG="http://www.w3.org/2000/svg"})(nn||(nn={}));function sn(vt,Mt,zt){for(var tn=[],Ut=3;Ut<arguments.length;Ut++)tn[Ut-3]=arguments[Ut];var Sn=Qt.exec(Mt);if(!Sn)throw new Error("Bad use of emmet");zt=A({},zt||{});var Rn=Sn[1]||"div",Bn;return vt!==nn.HTML?Bn=document.createElementNS(vt,Rn):Bn=document.createElement(Rn),Sn[3]&&(Bn.id=Sn[3]),Sn[4]&&(Bn.className=Sn[4].replace(/\./g," ").trim()),Object.keys(zt).forEach(function(Fn){var ri=zt[Fn];if(typeof ri=="undefined")return;/^on\w+$/.test(Fn)?Bn[Fn]=ri:Fn==="selected"?ri&&Bn.setAttribute(Fn,"true"):Bn.setAttribute(Fn,ri)}),Object(E.d)(tn).forEach(function(Fn){Fn instanceof Node?Bn.appendChild(Fn):Bn.appendChild(document.createTextNode(Fn))}),Bn}function ln(vt,Mt){for(var zt=[],tn=2;tn<arguments.length;tn++)zt[tn-2]=arguments[tn];return sn.apply(void 0,te([nn.HTML,vt,Mt],zt))}ln.SVG=function(vt,Mt){for(var zt=[],tn=2;tn<arguments.length;tn++)zt[tn-2]=arguments[tn];return sn.apply(void 0,te([nn.SVG,vt,Mt],zt))};function En(){for(var vt=[],Mt=0;Mt<arguments.length;Mt++)vt[Mt]=arguments[Mt];for(var zt=0,tn=vt;zt<tn.length;zt++){var Ut=tn[zt];Ut.style.display="",Ut.removeAttribute("aria-hidden")}}function On(){for(var vt=[],Mt=0;Mt<arguments.length;Mt++)vt[Mt]=arguments[Mt];for(var zt=0,tn=vt;zt<tn.length;zt++){var Ut=tn[zt];Ut.style.display="none",Ut.setAttribute("aria-hidden","true")}}function Pn(vt,Mt){for(;vt&&vt.nodeType===vt.ELEMENT_NODE;){if(vt instanceof HTMLElement&&vt.hasAttribute(Mt))return vt;vt=vt.parentNode}return null}function Gn(vt){if(!vt||!vt.hasAttribute("tabIndex"))return;if(document.activeElement===vt){var Mt=Pn(vt.parentElement,"tabIndex");Mt&&Mt.focus()}vt.removeAttribute("tabindex")}function Qn(vt){return Array.prototype.slice.call(document.getElementsByTagName(vt),0)}function Jn(vt){var Mt=window.devicePixelRatio*vt;return Math.max(1,Math.floor(Mt))/window.devicePixelRatio}function gi(vt){if(R.f||I.g)window.open(vt);else{var Mt=window.open();Mt&&(Mt.opener=null,Mt.location.href=vt)}}function Kn(vt){var Mt=function tn(){vt(),zt=ye(tn)},zt=ye(Mt);return Object(G.h)(function(){return zt.dispose()})}x.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function yi(vt){return vt&&(x.b.vscodeRemote===vt.scheme?x.a.rewrite(vt):vt)}function mi(vt){return vt?"url('"+yi(vt).toString(!0).replace(/'/g,"%27")+"')":"url('')"}},fL8t:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return r.e(252).then(r.bind(null,"rkyD"))}})},fptj:function(wt,P,r){},fyb1:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return r.e(221).then(r.bind(null,"dUiO"))}})},g2LA:function(wt,P,r){"use strict";r.d(P,"b",function(){return K}),r.d(P,"f",function(){return D}),r.d(P,"c",function(){return A}),r.d(P,"d",function(){return _}),r.d(P,"e",function(){return f}),r.d(P,"a",function(){return p}),r.d(P,"g",function(){return g});var I=r("QqjT"),oe=r("yBOt"),ne=r("V0RK"),N=r("w9Cd"),F=r("F5bH"),U=r("8ZZ4"),j=r("tkZS"),G=function(){return!0},R=function(){return!1},E=function(w){return w===" "||w===" "};function x(m,w,B){m.has(w)?m.get(w).push(B):m.set(w,[B])}var K=function(){function m(w,B,H){this._languageIdentifier=w;var re=H.options,he=re.get(107);this.readOnly=re.get(68),this.tabSize=B.tabSize,this.indentSize=B.indentSize,this.insertSpaces=B.insertSpaces,this.lineHeight=re.get(49),this.pageSize=Math.max(1,Math.floor(he.height/this.lineHeight)-2),this.useTabStops=re.get(95),this.wordSeparators=re.get(96),this.emptySelectionClipboard=re.get(25),this.copyWithSyntaxHighlighting=re.get(15),this.multiCursorMergeOverlapping=re.get(58),this.multiCursorPaste=re.get(60),this.autoClosingBrackets=re.get(5),this.autoClosingQuotes=re.get(7),this.autoClosingOvertype=re.get(6),this.autoSurround=re.get(10),this.autoIndent=re.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:m._getShouldAutoClose(w,this.autoClosingQuotes),bracket:m._getShouldAutoClose(w,this.autoClosingBrackets)};var Ee=m._getAutoClosingPairs(w);if(Ee)for(var Se=0,q=Ee;Se<q.length;Se++){var Z=q[Se];x(this.autoClosingPairsOpen2,Z.open.charAt(Z.open.length-1),Z),Z.close.length===1&&x(this.autoClosingPairsClose2,Z.close,Z)}var ce=m._getSurroundingPairs(w);if(ce)for(var Me=0,Ve=ce;Me<Ve.length;Me++){var Z=Ve[Me];this.surroundingPairs[Z.open]=Z.close}}return m.shouldRecreate=function(w){return w.hasChanged(107)||w.hasChanged(96)||w.hasChanged(25)||w.hasChanged(58)||w.hasChanged(60)||w.hasChanged(5)||w.hasChanged(7)||w.hasChanged(6)||w.hasChanged(10)||w.hasChanged(95)||w.hasChanged(49)||w.hasChanged(68)},Object.defineProperty(m.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var B=m._getElectricCharacters(this._languageIdentifier);if(B)for(var H=0,re=B;H<re.length;H++){var he=re[H];this._electricChars[he]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),m.prototype.normalizeIndentation=function(w){return U.b.normalizeIndentation(w,this.indentSize,this.insertSpaces)},m._getElectricCharacters=function(w){try{return j.a.getElectricCharacters(w.id)}catch(B){return Object(I.e)(B),null}},m._getAutoClosingPairs=function(w){try{return j.a.getAutoClosingPairs(w.id)}catch(B){return Object(I.e)(B),null}},m._getShouldAutoClose=function(w,B){switch(B){case"beforeWhitespace":return E;case"languageDefined":return m._getLanguageDefinedShouldAutoClose(w);case"always":return G;case"never":return R}},m._getLanguageDefinedShouldAutoClose=function(w){try{var B=j.a.getAutoCloseBeforeSet(w.id);return function(H){return B.indexOf(H)!==-1}}catch(H){return Object(I.e)(H),R}},m._getSurroundingPairs=function(w){try{return j.a.getSurroundingPairs(w.id)}catch(B){return Object(I.e)(B),null}},m}(),D=function(){function m(w,B,H,re){this.selectionStart=w,this.selectionStartLeftoverVisibleColumns=B,this.position=H,this.leftoverVisibleColumns=re,this.selection=m._computeSelection(this.selectionStart,this.position)}return m.prototype.equals=function(w){return this.selectionStartLeftoverVisibleColumns===w.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===w.leftoverVisibleColumns&&this.position.equals(w.position)&&this.selectionStart.equalsRange(w.selectionStart)},m.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},m.prototype.move=function(w,B,H,re){return w?new m(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new ne.a(B,H),re):new m(new N.a(B,H,B,H),re,new ne.a(B,H),re)},m._computeSelection=function(w,B){var H,re,he,Ee;return w.isEmpty()?(H=w.startLineNumber,re=w.startColumn,he=B.lineNumber,Ee=B.column):B.isBeforeOrEqual(w.getStartPosition())?(H=w.endLineNumber,re=w.endColumn,he=B.lineNumber,Ee=B.column):(H=w.startLineNumber,re=w.startColumn,he=B.lineNumber,Ee=B.column),new F.a(H,re,he,Ee)},m}(),A=function(){function m(w,B,H){this.model=B,this.viewModel=H,this.config=new K(this.model.getLanguageIdentifier(),this.model.getOptions(),w)}return m.prototype.validateViewPosition=function(w,B){return this.viewModel.coordinatesConverter.validateViewPosition(w,B)},m.prototype.validateViewRange=function(w,B){return this.viewModel.coordinatesConverter.validateViewRange(w,B)},m.prototype.convertViewRangeToModelRange=function(w){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(w)},m.prototype.convertViewPositionToModelPosition=function(w,B){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(w,B))},m.prototype.convertModelPositionToViewPosition=function(w){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(w)},m.prototype.convertModelRangeToViewRange=function(w){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(w)},m.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},m.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},m.prototype.getCompletelyVisibleModelRange=function(){var w=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(w)},m.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(w){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(w)},m.prototype.getVerticalOffsetForViewLine=function(w){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(w)},m}(),te=function(){function m(w){this.modelState=w,this.viewState=null}return m}(),z=function(){function m(w){this.modelState=null,this.viewState=w}return m}(),_=function(){function m(w,B){this.modelState=w,this.viewState=B}return m.fromModelState=function(w){return new te(w)},m.fromViewState=function(w){return new z(w)},m.fromModelSelection=function(w){var B=w.selectionStartLineNumber,H=w.selectionStartColumn,re=w.positionLineNumber,he=w.positionColumn,Ee=new D(new N.a(B,H,B,H),0,new ne.a(re,he),0);return m.fromModelState(Ee)},m.fromModelSelections=function(w){for(var B=[],H=0,re=w.length;H<re;H++)B[H]=this.fromModelSelection(w[H]);return B},m.prototype.equals=function(w){return this.viewState.equals(w.viewState)&&this.modelState.equals(w.modelState)},m}(),f=function(){function m(w,B,H){this.type=w,this.commands=B,this.shouldPushStackElementBefore=H.shouldPushStackElementBefore,this.shouldPushStackElementAfter=H.shouldPushStackElementAfter}return m}(),p=function(){function m(){}return m.visibleColumnFromColumn=function(w,B,H){for(var re=w.length,he=B-1<re?B-1:re,Ee=0,Se=0;Se<he;){var q=oe.u(w,he,Se);if(Se+=q>=65536?2:1,q===9)Ee=m.nextRenderTabStop(Ee,H);else{for(var Z=oe.s(q);Se<he;){var ce=oe.u(w,he,Se),Me=oe.s(ce);if(oe.b(Z,Me))break;Se+=ce>=65536?2:1,Z=Me}oe.y(q)||oe.w(q)?Ee=Ee+2:Ee=Ee+1}}return Ee},m.visibleColumnFromColumn2=function(w,B,H){return this.visibleColumnFromColumn(B.getLineContent(H.lineNumber),H.column,w.tabSize)},m.columnFromVisibleColumn=function(w,B,H){if(B<=0)return 1;for(var re=w.length,he=0,Ee=1,Se=0;Se<re;){var q=oe.u(w,re,Se);Se+=q>=65536?2:1;var Z=void 0;if(q===9)Z=m.nextRenderTabStop(he,H);else{for(var ce=oe.s(q);Se<re;){var Me=oe.u(w,re,Se),Ve=oe.s(Me);if(oe.b(ce,Ve))break;Se+=Me>=65536?2:1,ce=Ve}oe.y(q)||oe.w(q)?Z=he+2:Z=he+1}var _e=Se+1;if(Z>=B){var ue=B-he,se=Z-B;return se<ue?_e:Ee}he=Z,Ee=_e}return re+1},m.columnFromVisibleColumn2=function(w,B,H,re){var he=this.columnFromVisibleColumn(B.getLineContent(H),re,w.tabSize),Ee=B.getLineMinColumn(H);if(he<Ee)return Ee;var Se=B.getLineMaxColumn(H);return he>Se?Se:he},m.nextRenderTabStop=function(w,B){return w+B-w%B},m.nextIndentTabStop=function(w,B){return w+B-w%B},m.prevRenderTabStop=function(w,B){return w-1-(w-1)%B},m.prevIndentTabStop=function(w,B){return w-1-(w-1)%B},m}();function g(m){return m==="'"||m==='"'||m==="`"}},g9ht:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});function I(ne,N){var F;return N.length===0?F=ne:F=ne.replace(/\{(\d+)\}/g,function(U,j){var G=j[0];return typeof N[G]!="undefined"?N[G]:U}),F}function oe(ne,N){for(var F=[],U=2;U<arguments.length;U++)F[U-2]=arguments[U];return I(N,F)}},gC1f:function(wt,P,r){"use strict";r.d(P,"a",function(){return N}),r.d(P,"i",function(){return F}),r.d(P,"b",function(){return U}),r.d(P,"h",function(){return j}),r.d(P,"d",function(){return R}),r.d(P,"c",function(){return E}),r.d(P,"e",function(){return x}),r.d(P,"g",function(){return K}),r.d(P,"f",function(){return D});var I=r("E+fE"),oe=r("PoD0"),ne=r("Ndl5"),N=Object(oe.c)("configurationService");function F(A,te){var z=Object.create(null);for(var _ in A)U(z,_,A[_],te);return z}function U(A,te,z,_){for(var f=te.split("."),p=f.pop(),g=A,m=0;m<f.length;m++){var w=f[m],B=g[w];switch(typeof B){case"undefined":B=g[w]=Object.create(null);break;case"object":break;default:_("Ignoring "+te+" as "+f.slice(0,m+1).join(".")+" is "+JSON.stringify(B));return}g=B}typeof g=="object"?g[p]=z:_("Ignoring "+te+" as "+f.join(".")+" is "+JSON.stringify(g))}function j(A,te){var z=te.split(".");G(A,z)}function G(A,te){var z=te.shift();if(te.length===0){delete A[z];return}if(Object.keys(A).indexOf(z)!==-1){var _=A[z];typeof _=="object"&&!Array.isArray(_)&&(G(_,te),Object.keys(_).length===0&&delete A[z])}}function R(A,te,z){function _(g,m){for(var w=g,B=0,H=m;B<H.length;B++){var re=H[B];if(typeof w!="object"||w===null)return;w=w[re]}return w}var f=te.split("."),p=_(A,f);return typeof p=="undefined"?z:p}function E(){var A=I.a.as(ne.a.Configuration).getConfigurationProperties();return Object.keys(A)}function x(){var A=Object.create(null),te=I.a.as(ne.a.Configuration).getConfigurationProperties();for(var z in te){var _=te[z].default;U(A,z,_,function(f){return console.error("Conflict in default settings: "+f)})}return A}function K(A){return A.substring(1,A.length-1)}function D(A,te,z){var _=A.inspect(te),f=A.inspect(z);return typeof _.userValue!="undefined"||typeof _.workspaceValue!="undefined"||typeof _.workspaceFolderValue!="undefined"?_.value:typeof f.userValue!="undefined"||typeof f.workspaceValue!="undefined"||typeof f.workspaceFolderValue!="undefined"?f.value:_.defaultValue}},gmBr:function(wt,P,r){},h0Mq:function(wt,P,r){"use strict";r.r(P),r.d(P,"ModesHoverController",function(){return He});var I=r("YrLJ"),oe=r("g9ht"),ne=r("Qun0"),N=r("bN5T"),F=r("Whdu"),U=r("w9Cd"),j=r("2GBI"),G=r("rvt5"),R=r("fF8p"),E=r("l+zK"),x=r("Ytku"),K=r("ZZiL"),D=r("V0RK"),A=r("8ZZ4"),te=r("vqGt"),z=r("QqjT"),_=r("zOJ8"),f=r("1Ylb");function p(y,u){var l=[],b=te.c.ordered(y).reverse(),S=b.map(function(C){return Promise.resolve(C.provideDocumentColors(y,u)).then(function($){if(Array.isArray($))for(var Be=0,ot=$;Be<ot.length;Be++){var xe=ot[Be];l.push({colorInfo:xe,provider:C})}})});return Promise.all(S).then(function(){return l})}function g(y,u,l,b){return Promise.resolve(l.provideColorPresentations(y,u,b))}Object(F.j)("_executeDocumentColorProvider",function(y,u){var l=u.resource;if(!(l instanceof _.a))throw Object(z.b)();var b=y.get(f.a).getModel(l);if(!b)throw Object(z.b)();var S=[],C=te.c.ordered(b).reverse(),$=C.map(function(Be){return Promise.resolve(Be.provideDocumentColors(b,E.a.None)).then(function(ot){if(Array.isArray(ot))for(var xe=0,dt=ot;xe<dt.length;xe++){var Nt=dt[xe];S.push({range:Nt.range,color:[Nt.color.red,Nt.color.green,Nt.color.blue,Nt.color.alpha]})}})});return Promise.all($).then(function(){return S})}),Object(F.j)("_executeColorPresentationProvider",function(y,u){var l=u.resource,b=u.color,S=u.range;if(!(l instanceof _.a)||!Array.isArray(b)||b.length!==4||!U.a.isIRange(S))throw Object(z.b)();var C=b[0],$=b[1],Be=b[2],ot=b[3],xe=y.get(f.a).getModel(l);if(!xe)throw Object(z.b)();var dt={range:S,color:{red:C,green:$,blue:Be,alpha:ot}},Nt=[],qt=te.c.ordered(xe).reverse(),en=qt.map(function(un){return Promise.resolve(un.provideColorPresentations(xe,dt,E.a.None)).then(function(an){Array.isArray(an)&&Nt.push.apply(Nt,an)})});return Promise.all(en).then(function(){return Nt})});var m=r("dE3Z"),w=r("NIjb"),B=r("vQ3m"),H=r("gC1f"),re=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),he=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Ee=function(y,u){return function(l,b){u(l,b,y)}},Se=500,q=function(y){re(u,y);function u(l,b,S){var C=y.call(this)||this;return C._editor=l,C._codeEditorService=b,C._configurationService=S,C._localToDispose=C._register(new N.b),C._decorationsIds=[],C._colorDatas=new Map,C._colorDecoratorIds=[],C._decorationsTypes=new Set,C._register(l.onDidChangeModel(function($){C._isEnabled=C.isEnabled(),C.onModelChanged()})),C._register(l.onDidChangeModelLanguage(function($){return C.onModelChanged()})),C._register(te.c.onDidChange(function($){return C.onModelChanged()})),C._register(l.onDidChangeConfiguration(function($){var Be=C._isEnabled;C._isEnabled=C.isEnabled(),Be!==C._isEnabled&&(C._isEnabled?C.onModelChanged():C.removeAllDecorations())})),C._timeoutTimer=null,C._computePromise=null,C._isEnabled=C.isEnabled(),C.onModelChanged(),C}return u.prototype.isEnabled=function(){var l=this._editor.getModel();if(!l)return!1;var b=l.getLanguageIdentifier(),S=this._configurationService.getValue(b.language);if(S){var C=S.colorDecorators;if(C&&C.enable!==void 0&&!C.enable)return C.enable}return this._editor.getOption(12)},u.get=function(l){return l.getContribution(this.ID)},u.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),y.prototype.dispose.call(this)},u.prototype.onModelChanged=function(){var l=this;if(this.stop(),!this._isEnabled)return;var b=this._editor.getModel();if(!b||!te.c.has(b))return;this._localToDispose.add(this._editor.onDidChangeModelContent(function(S){l._timeoutTimer||(l._timeoutTimer=new m.e,l._timeoutTimer.cancelAndSet(function(){l._timeoutTimer=null,l.beginCompute()},u.RECOMPUTE_TIME))})),this.beginCompute()},u.prototype.beginCompute=function(){var l=this;this._computePromise=Object(m.f)(function(b){var S=l._editor.getModel();return S?p(S,b):Promise.resolve([])}),this._computePromise.then(function(b){l.updateDecorations(b),l.updateColorDecorators(b),l._computePromise=null},z.e)},u.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},u.prototype.updateDecorations=function(l){var b=this,S=l.map(function(C){return{range:{startLineNumber:C.colorInfo.range.startLineNumber,startColumn:C.colorInfo.range.startColumn,endLineNumber:C.colorInfo.range.endLineNumber,endColumn:C.colorInfo.range.endColumn},options:A.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,S),this._colorDatas=new Map,this._decorationsIds.forEach(function(C,$){return b._colorDatas.set(C,l[$])})},u.prototype.updateColorDecorators=function(l){for(var b=this,S=[],C={},$=0;$<l.length&&S.length<Se;$++){var Be=l[$].colorInfo.color,ot=Be.red,xe=Be.green,dt=Be.blue,Nt=Be.alpha,qt=new x.c(Math.round(ot*255),Math.round(xe*255),Math.round(dt*255),Nt),en=Object(w.a)(qt).toString(16),un="rgba("+qt.r+", "+qt.g+", "+qt.b+", "+qt.a+")",an="colorBox-"+en;!this._decorationsTypes.has(an)&&!C[an]&&this._codeEditorService.registerDecorationType(an,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:un},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),C[an]=!0,S.push({range:{startLineNumber:l[$].colorInfo.range.startLineNumber,startColumn:l[$].colorInfo.range.startColumn,endLineNumber:l[$].colorInfo.range.endLineNumber,endColumn:l[$].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(an,!0)})}this._decorationsTypes.forEach(function(Cn){C[Cn]||b._codeEditorService.removeDecorationType(Cn)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,S)},u.prototype.removeAllDecorations=function(){var l=this;this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(function(b){l._codeEditorService.removeDecorationType(b)})},u.prototype.getColorData=function(l){var b=this,S=this._editor.getModel();if(!S)return null;var C=S.getDecorationsInRange(U.a.fromPositions(l,l)).filter(function($){return b._colorDatas.has($.id)});return C.length===0?null:this._colorDatas.get(C[0].id)},u.ID="editor.contrib.colorDetector",u.RECOMPUTE_TIME=1e3,u=he([Ee(1,B.a),Ee(2,H.a)],u),u}(N.a);Object(F.h)(q.ID,q);var Z=r("YK2C"),ce=function(){function y(u,l,b){this.presentationIndex=b,this._onColorFlushed=new Z.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new Z.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new Z.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=u,this._color=u,this._colorPresentations=l}return Object.defineProperty(y.prototype,"color",{get:function(){return this._color},set:function(l){if(this._color.equals(l))return;this._color=l,this._onDidChangeColor.fire(l)},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"colorPresentations",{get:function(){return this._colorPresentations},set:function(l){this._colorPresentations=l,this.presentationIndex>l.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),y.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},y.prototype.guessColorPresentation=function(u,l){for(var b=0;b<this.colorPresentations.length;b++)if(l===this.colorPresentations[b].label){this.presentationIndex=b,this._onDidChangePresentation.fire(this.presentation);break}},y.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},y}(),Me=r("5vbK"),Ve=r("mTMv"),_e=r("pfH9"),ue=r("AMt9"),se=r("0BkX"),fe=r("TwZP"),ie=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),J=R.a,me=function(y){ie(u,y);function u(l,b,S){var C=y.call(this)||this;C.model=b,C.domNode=J(".colorpicker-header"),R.p(l,C.domNode),C.pickedColorNode=R.p(C.domNode,J(".picked-color"));var $=R.p(C.domNode,J(".original-color"));return $.style.backgroundColor=x.a.Format.CSS.format(C.model.originalColor)||"",C.backgroundColor=S.getTheme().getColor(se.A)||x.a.white,C._register(Object(fe.e)(function(Be,ot){C.backgroundColor=Be.getColor(se.A)||x.a.white})),C._register(R.i(C.pickedColorNode,R.c.CLICK,function(){return C.model.selectNextColorPresentation()})),C._register(R.i($,R.c.CLICK,function(){C.model.color=C.model.originalColor,C.model.flushColor()})),C._register(b.onDidChangeColor(C.onDidChangeColor,C)),C._register(b.onDidChangePresentation(C.onDidChangePresentation,C)),C.pickedColorNode.style.backgroundColor=x.a.Format.CSS.format(b.color)||"",R.X(C.pickedColorNode,"light",b.color.rgba.a<.5?C.backgroundColor.isLighter():b.color.isLighter()),C}return u.prototype.onDidChangeColor=function(l){this.pickedColorNode.style.backgroundColor=x.a.Format.CSS.format(l)||"",R.X(this.pickedColorNode,"light",l.rgba.a<.5?this.backgroundColor.isLighter():l.isLighter()),this.onDidChangePresentation()},u.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},u}(N.a),ye=function(y){ie(u,y);function u(l,b,S){var C=y.call(this)||this;return C.model=b,C.pixelRatio=S,C.domNode=J(".colorpicker-body"),R.p(l,C.domNode),C.saturationBox=new ze(C.domNode,C.model,C.pixelRatio),C._register(C.saturationBox),C._register(C.saturationBox.onDidChange(C.onDidSaturationValueChange,C)),C._register(C.saturationBox.onColorFlushed(C.flushColor,C)),C.opacityStrip=new _t(C.domNode,C.model),C._register(C.opacityStrip),C._register(C.opacityStrip.onDidChange(C.onDidOpacityChange,C)),C._register(C.opacityStrip.onColorFlushed(C.flushColor,C)),C.hueStrip=new Pt(C.domNode,C.model),C._register(C.hueStrip),C._register(C.hueStrip.onDidChange(C.onDidHueChange,C)),C._register(C.hueStrip.onColorFlushed(C.flushColor,C)),C}return u.prototype.flushColor=function(){this.model.flushColor()},u.prototype.onDidSaturationValueChange=function(l){var b=l.s,S=l.v,C=this.model.color.hsva;this.model.color=new x.a(new x.b(C.h,b,S,C.a))},u.prototype.onDidOpacityChange=function(l){var b=this.model.color.hsva;this.model.color=new x.a(new x.b(b.h,b.s,b.v,l))},u.prototype.onDidHueChange=function(l){var b=this.model.color.hsva,S=(1-l)*360;this.model.color=new x.a(new x.b(S===360?0:S,b.s,b.v,b.a))},u.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},u}(N.a),ze=function(y){ie(u,y);function u(l,b,S){var C=y.call(this)||this;return C.model=b,C.pixelRatio=S,C._onDidChange=new Z.a,C.onDidChange=C._onDidChange.event,C._onColorFlushed=new Z.a,C.onColorFlushed=C._onColorFlushed.event,C.domNode=J(".saturation-wrap"),R.p(l,C.domNode),C.canvas=document.createElement("canvas"),C.canvas.className="saturation-box",R.p(C.domNode,C.canvas),C.selection=J(".saturation-selection"),R.p(C.domNode,C.selection),C.layout(),C._register(R.g(C.domNode,function($){return C.onMouseDown($)})),C._register(C.model.onDidChangeColor(C.onDidChangeColor,C)),C.monitor=null,C}return u.prototype.onMouseDown=function(l){var b=this;this.monitor=this._register(new _e.a);var S=R.B(this.domNode);l.target!==this.selection&&this.onDidChangePosition(l.offsetX,l.offsetY),this.monitor.startMonitoring(l.target,l.buttons,_e.b,function($){return b.onDidChangePosition($.posx-S.left,$.posy-S.top)},function(){return null});var C=R.h(document,function(){b._onColorFlushed.fire(),C.dispose(),b.monitor&&(b.monitor.stopMonitoring(!0),b.monitor=null)},!0)},u.prototype.onDidChangePosition=function(l,b){var S=Math.max(0,Math.min(1,l/this.width)),C=Math.max(0,Math.min(1,1-b/this.height));this.paintSelection(S,C),this._onDidChange.fire({s:S,v:C})},u.prototype.layout=function(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();var l=this.model.color.hsva;this.paintSelection(l.s,l.v)},u.prototype.paint=function(){var l=this.model.color.hsva,b=new x.a(new x.b(l.h,1,1,1)),S=this.canvas.getContext("2d"),C=S.createLinearGradient(0,0,this.canvas.width,0);C.addColorStop(0,"rgba(255, 255, 255, 1)"),C.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),C.addColorStop(1,"rgba(255, 255, 255, 0)");var $=S.createLinearGradient(0,0,0,this.canvas.height);$.addColorStop(0,"rgba(0, 0, 0, 0)"),$.addColorStop(1,"rgba(0, 0, 0, 1)"),S.rect(0,0,this.canvas.width,this.canvas.height),S.fillStyle=x.a.Format.CSS.format(b),S.fill(),S.fillStyle=C,S.fill(),S.fillStyle=$,S.fill()},u.prototype.paintSelection=function(l,b){this.selection.style.left=l*this.width+"px",this.selection.style.top=this.height-b*this.height+"px"},u.prototype.onDidChangeColor=function(){if(this.monitor&&this.monitor.isMonitoring())return;this.paint()},u}(N.a),tt=function(y){ie(u,y);function u(l,b){var S=y.call(this)||this;return S.model=b,S._onDidChange=new Z.a,S.onDidChange=S._onDidChange.event,S._onColorFlushed=new Z.a,S.onColorFlushed=S._onColorFlushed.event,S.domNode=R.p(l,J(".strip")),S.overlay=R.p(S.domNode,J(".overlay")),S.slider=R.p(S.domNode,J(".slider")),S.slider.style.top="0px",S._register(R.g(S.domNode,function(C){return S.onMouseDown(C)})),S.layout(),S}return u.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var l=this.getValue(this.model.color);this.updateSliderPosition(l)},u.prototype.onMouseDown=function(l){var b=this,S=this._register(new _e.a),C=R.B(this.domNode);R.e(this.domNode,"grabbing"),l.target!==this.slider&&this.onDidChangeTop(l.offsetY),S.startMonitoring(l.target,l.buttons,_e.b,function(Be){return b.onDidChangeTop(Be.posy-C.top)},function(){return null});var $=R.h(document,function(){b._onColorFlushed.fire(),$.dispose(),S.stopMonitoring(!0),R.O(b.domNode,"grabbing")},!0)},u.prototype.onDidChangeTop=function(l){var b=Math.max(0,Math.min(1,1-l/this.height));this.updateSliderPosition(b),this._onDidChange.fire(b)},u.prototype.updateSliderPosition=function(l){this.slider.style.top=(1-l)*this.height+"px"},u}(N.a),_t=function(y){ie(u,y);function u(l,b){var S=y.call(this,l,b)||this;return R.e(S.domNode,"opacity-strip"),S._register(b.onDidChangeColor(S.onDidChangeColor,S)),S.onDidChangeColor(S.model.color),S}return u.prototype.onDidChangeColor=function(l){var b=l.rgba,S=b.r,C=b.g,$=b.b,Be=new x.a(new x.c(S,C,$,1)),ot=new x.a(new x.c(S,C,$,0));this.overlay.style.background="linear-gradient(to bottom, "+Be+" 0%, "+ot+" 100%)"},u.prototype.getValue=function(l){return l.hsva.a},u}(tt),Pt=function(y){ie(u,y);function u(l,b){var S=y.call(this,l,b)||this;return R.e(S.domNode,"hue-strip"),S}return u.prototype.getValue=function(l){return 1-l.hsva.h/360},u}(tt),Xt=function(y){ie(u,y);function u(l,b,S,C){var $=y.call(this)||this;$.model=b,$.pixelRatio=S,$._register(Object(Ve.o)(function(){return $.layout()}));var Be=J(".colorpicker-widget");l.appendChild(Be);var ot=new me(Be,$.model,C);return $.body=new ye(Be,$.model,$.pixelRatio),$._register(ot),$._register($.body),$}return u.prototype.layout=function(){this.body.layout()},u}(ue.a),Ke=r("Inmo");function Xe(y,u,l){var b=te.o.ordered(y),S=b.map(function(C){return Promise.resolve(C.provideHover(y,u,l)).then(function($){return $&&Ze($)?$:void 0},function($){Object(z.f)($);return})});return Promise.all(S).then(Ke.d)}Object(F.k)("_executeHoverProvider",function(y,u){return Xe(y,u,E.a.None)});function Ze(y){var u=typeof y.range!="undefined",l=typeof y.contents!="undefined"&&y.contents&&y.contents.length>0;return u&&l}var Ye=function(){function y(u,l,b,S,C){var $=this;this._computer=u,this._state=0,this._hoverTime=C,this._firstWaitScheduler=new m.d(function(){return $._triggerAsyncComputation()},0),this._secondWaitScheduler=new m.d(function(){return $._triggerSyncComputation()},0),this._loadingMessageScheduler=new m.d(function(){return $._showLoadingMessage()},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=l,this._errorCallback=b,this._progressCallback=S}return y.prototype.setHoverTime=function(u){this._hoverTime=u},y.prototype._firstWaitTime=function(){return this._hoverTime/2},y.prototype._secondWaitTime=function(){return this._hoverTime/2},y.prototype._loadingMessageTime=function(){return 3*this._hoverTime},y.prototype._triggerAsyncComputation=function(){var u=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(m.f)(function(l){return u._computer.computeAsync(l)}),this._asyncComputationPromise.then(function(l){u._asyncComputationPromiseDone=!0,u._withAsyncResult(l)},function(l){return u._onError(l)})):this._asyncComputationPromiseDone=!0},y.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},y.prototype._showLoadingMessage=function(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())},y.prototype._withAsyncResult=function(u){u&&this._computer.onResult(u,!1),this._state===3&&(this._state=0,this._onComplete(this._computer.getResult()))},y.prototype._onComplete=function(u){this._completeCallback&&this._completeCallback(u)},y.prototype._onError=function(u){this._errorCallback?this._errorCallback(u):Object(z.e)(u)},y.prototype._onProgress=function(u){this._progressCallback&&this._progressCallback(u)},y.prototype.start=function(u){if(u===0)this._state===0&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}},y.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),this._state===1&&this._firstWaitScheduler.cancel(),this._state===2&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state===3&&(this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state=0},y}(),ke=r("AyeG"),$e=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),we=function(){for(var y=0,u=0,l=arguments.length;u<l;u++)y+=arguments[u].length;for(var b=Array(y),S=0,u=0;u<l;u++)for(var C=arguments[u],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b},k=function(y){$e(u,y);function u(l,b){var S=y.call(this)||this;return S.allowEditorOverflow=!0,S._id=l,S._editor=b,S._isVisible=!1,S._stoleFocus=!1,S._containerDomNode=document.createElement("div"),S._containerDomNode.className="monaco-editor-hover hidden",S._containerDomNode.tabIndex=0,S._domNode=document.createElement("div"),S._domNode.className="monaco-editor-hover-content",S.scrollbar=new ke.a(S._domNode,{}),S._register(S.scrollbar),S._containerDomNode.appendChild(S.scrollbar.getDomNode()),S.onkeydown(S._containerDomNode,function(C){C.equals(9)&&S.hide()}),S._register(S._editor.onDidChangeConfiguration(function(C){C.hasChanged(34)&&S.updateFont()})),S._editor.onDidLayoutChange(function(C){return S.layout()}),S.layout(),S._editor.addContentWidget(S),S._showAtPosition=null,S._showAtRange=null,S._stoleFocus=!1,S}return Object.defineProperty(u.prototype,"isVisible",{get:function(){return this._isVisible},set:function(b){this._isVisible=b,Object(R.X)(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),u.prototype.getId=function(){return this._id},u.prototype.getDomNode=function(){return this._containerDomNode},u.prototype.showAt=function(l,b,S){this._showAtPosition=l,this._showAtRange=b,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=S,S&&this._containerDomNode.focus()},u.prototype.hide=function(){if(!this.isVisible)return;this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus()},u.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null},u.prototype.dispose=function(){this._editor.removeContentWidget(this),y.prototype.dispose.call(this)},u.prototype.updateFont=function(){var l=this,b=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));b.forEach(function(S){return l._editor.applyFontInfo(S)})},u.prototype.updateContents=function(l){this._domNode.textContent="",this._domNode.appendChild(l),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},u.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},u.prototype.layout=function(){var l=Math.max(this._editor.getLayoutInfo().height/4,250),b=this._editor.getOption(34),S=b.fontSize,C=b.lineHeight;this._domNode.style.fontSize=S+"px",this._domNode.style.lineHeight=C+"px",this._domNode.style.maxHeight=l+"px",this._domNode.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px"},u}(ue.a),ee=function(y){$e(u,y);function u(l,b){var S=y.call(this)||this;return S._id=l,S._editor=b,S._isVisible=!1,S._domNode=document.createElement("div"),S._domNode.className="monaco-editor-hover hidden",S._domNode.setAttribute("aria-hidden","true"),S._domNode.setAttribute("role","presentation"),S._showAtLineNumber=-1,S._register(S._editor.onDidChangeConfiguration(function(C){C.hasChanged(34)&&S.updateFont()})),S._editor.addOverlayWidget(S),S}return Object.defineProperty(u.prototype,"isVisible",{get:function(){return this._isVisible},set:function(b){this._isVisible=b,Object(R.X)(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),u.prototype.getId=function(){return this._id},u.prototype.getDomNode=function(){return this._domNode},u.prototype.showAt=function(l){this._showAtLineNumber=l,this.isVisible||(this.isVisible=!0);var b=this._editor.getLayoutInfo(),S=this._editor.getTopForLineNumber(this._showAtLineNumber),C=this._editor.getScrollTop(),$=this._editor.getOption(49),Be=this._domNode.clientHeight,ot=S-C-(Be-$)/2;this._domNode.style.left=b.glyphMarginLeft+b.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(ot),0)+"px"},u.prototype.hide=function(){if(!this.isVisible)return;this.isVisible=!1},u.prototype.getPosition=function(){return null},u.prototype.dispose=function(){this._editor.removeOverlayWidget(this),y.prototype.dispose.call(this)},u.prototype.updateFont=function(){var l=this,b=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),S=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));we(b,S).forEach(function(C){return l._editor.applyFontInfo(C)})},u.prototype.updateContents=function(l){this._domNode.textContent="",this._domNode.appendChild(l),this.updateFont()},u}(ue.a),Pe=r("FCoH"),ve=r("y9P2"),Te=r("67Fg"),Ie=r("mWsY"),pe=r("bBv/"),nt=r("hoHP"),Et=r("ekSf"),Rt=r("ab6+"),Tt=r("SPtt"),Ht=r("Mn97"),Gt=r("mucJ"),rn=r("yBOt"),Ln=r("E2Od"),yn=r("OJ8J"),Tn=r("PoD0"),Ft=r("Ym/J"),pt=r("FTcp"),gt=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Dt=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Lt=function(y,u){return function(l,b){u(l,b,y)}},Vt=function(y){gt(u,y);function u(l,b,S,C,$,Be,ot,xe,dt,Nt){var qt=y.call(this,l,S.getRawOptions(),{},C,$,Be,ot,xe,dt,Nt)||this;return qt._parentEditor=S,qt._overwriteOptions=b,y.prototype.updateOptions.call(qt,qt._overwriteOptions),qt._register(S.onDidChangeConfiguration(function(en){return qt._onParentConfigurationChanged(en)})),qt}return u.prototype.getParentEditor=function(){return this._parentEditor},u.prototype._onParentConfigurationChanged=function(l){y.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),y.prototype.updateOptions.call(this,this._overwriteOptions)},u.prototype.updateOptions=function(l){Gt.g(this._overwriteOptions,l,!0),y.prototype.updateOptions.call(this,this._overwriteOptions)},u=Dt([Lt(3,Tn.a),Lt(4,B.a),Lt(5,yn.b),Lt(6,pe.c),Lt(7,fe.c),Lt(8,Ft.a),Lt(9,pt.b)],u),u}(Ln.a),Qt=r("LLZ0"),nn=r("carD"),sn=r("PQix"),ln=new x.a(new x.c(0,122,204)),En={showArrow:!0,showFrame:!0,className:"",frameColor:ln,arrowColor:ln,keepEditorSelection:!1},On="vs.editor.contrib.zoneWidget",Pn=function(){function y(u,l,b,S,C,$){this.id="",this.domNode=u,this.afterLineNumber=l,this.afterColumn=b,this.heightInLines=S,this._onDomNodeTop=C,this._onComputedHeight=$}return y.prototype.onDomNodeTop=function(u){this._onDomNodeTop(u)},y.prototype.onComputedHeight=function(u){this._onComputedHeight(u)},y}(),Gn=function(){function y(u,l){this._id=u,this._domNode=l}return y.prototype.getId=function(){return this._id},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return null},y}(),Qn=function(){function y(u){this._editor=u,this._ruleName=y._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}return y.prototype.dispose=function(){this.hide(),R.N(this._ruleName)},Object.defineProperty(y.prototype,"color",{set:function(l){this._color!==l&&(this._color=l,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"height",{set:function(l){this._height!==l&&(this._height=l,this._updateStyle())},enumerable:!0,configurable:!0}),y.prototype._updateStyle=function(){R.N(this._ruleName),R.u(".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},y.prototype.show=function(u){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:U.a.fromPositions(u),options:{className:this._ruleName,stickiness:1}}])},y.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},y._IdGenerator=new sn.a(".arrow-decoration-"),y}(),Jn=function(){function y(u,l){var b=this;l===void 0&&(l={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new N.b,this.container=null,this._isShowing=!1,this.editor=u,this.options=Gt.c(l),Gt.g(this.options,En,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(function(S){var C=b._getWidth(S);b.domNode.style.width=C+"px",b.domNode.style.left=b._getLeft(S)+"px",b._onWidth(C)}))}return y.prototype.dispose=function(){var u=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(l){u._viewZone&&l.removeZone(u._viewZone.id),u._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},y.prototype.create=function(){R.e(this.domNode,"zone-widget"),this.options.className&&R.e(this.domNode,this.options.className),this.container=document.createElement("div"),R.e(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new Qn(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},y.prototype.style=function(u){u.frameColor&&(this.options.frameColor=u.frameColor),u.arrowColor&&(this.options.arrowColor=u.arrowColor),this._applyStyles()},y.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var u=this.options.frameColor.toString();this.container.style.borderTopColor=u,this.container.style.borderBottomColor=u}if(this._arrow&&this.options.arrowColor){var l=this.options.arrowColor.toString();this._arrow.color=l}},y.prototype._getWidth=function(u){return u.width-u.minimapWidth-u.verticalScrollbarWidth},y.prototype._getLeft=function(u){return u.minimapWidth>0&&u.minimapLeft===0?u.minimapWidth:0},y.prototype._onViewZoneTop=function(u){this.domNode.style.top=u+"px"},y.prototype._onViewZoneHeight=function(u){if(this.domNode.style.height=u+"px",this.container){var l=u-this._decoratingElementsHeight();this.container.style.height=l+"px";var b=this.editor.getLayoutInfo();this._doLayout(l,this._getWidth(b))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(y.prototype,"position",{get:function(){var l=this._positionMarkerId[0];if(!l)return;var b=this.editor.getModel();if(!b)return;var S=b.getDecorationRange(l);return S?S.getStartPosition():void 0},enumerable:!0,configurable:!0}),y.prototype.show=function(u,l){var b=U.a.isIRange(u)?U.a.lift(u):U.a.fromPositions(u);this._isShowing=!0,this._showImpl(b,l),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:b,options:A.a.EMPTY}])},y.prototype.hide=function(){var u=this;this._viewZone&&(this.editor.changeViewZones(function(l){u._viewZone&&l.removeZone(u._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},y.prototype._decoratingElementsHeight=function(){var u=this.editor.getOption(49),l=0;if(this.options.showArrow){var b=Math.round(u/3);l+=2*b}if(this.options.showFrame){var S=Math.round(u/9);l+=2*S}return l},y.prototype._showImpl=function(u,l){var b=this,S=u.getStartPosition(),C=this.editor.getLayoutInfo(),$=this._getWidth(C);this.domNode.style.width=$+"px",this.domNode.style.left=this._getLeft(C)+"px";var Be=document.createElement("div");Be.style.overflow="hidden";var ot=this.editor.getOption(49),xe=this.editor.getLayoutInfo().height/ot*.8;l>=xe&&(l=xe);var dt=0,Nt=0;if(this._arrow&&this.options.showArrow&&(dt=Math.round(ot/3),this._arrow.height=dt,this._arrow.show(S)),this.options.showFrame&&(Nt=Math.round(ot/9)),this.editor.changeViewZones(function(Cn){b._viewZone&&Cn.removeZone(b._viewZone.id),b._overlayWidget&&(b.editor.removeOverlayWidget(b._overlayWidget),b._overlayWidget=null),b.domNode.style.top="-1000px",b._viewZone=new Pn(Be,S.lineNumber,S.column,l,function(In){return b._onViewZoneTop(In)},function(In){return b._onViewZoneHeight(In)}),b._viewZone.id=Cn.addZone(b._viewZone),b._overlayWidget=new Gn(On+b._viewZone.id,b.domNode),b.editor.addOverlayWidget(b._overlayWidget)}),this.container&&this.options.showFrame){var qt=this.options.frameWidth?this.options.frameWidth:Nt;this.container.style.borderTopWidth=qt+"px",this.container.style.borderBottomWidth=qt+"px"}var en=l*ot-this._decoratingElementsHeight();this.container&&(this.container.style.top=dt+"px",this.container.style.height=en+"px",this.container.style.overflow="hidden"),this._doLayout(en,$),this.options.keepEditorSelection||this.editor.setSelection(u);var un=this.editor.getModel();if(un){var an=u.endLineNumber+1;an<=un.getLineCount()?this.revealLine(an,!1):this.revealLine(un.getLineCount(),!0)}},y.prototype.revealLine=function(u,l){l?this.editor.revealLineInCenter(u,0):this.editor.revealLine(u,0)},y.prototype.setCssClass=function(u,l){if(!this.container)return;l&&this.container.classList.remove(l),R.e(this.container,u)},y.prototype._onWidth=function(u){},y.prototype._doLayout=function(u,l){},y.prototype._relayout=function(u){var l=this;this._viewZone&&this._viewZone.heightInLines!==u&&this.editor.changeViewZones(function(b){l._viewZone&&(l._viewZone.heightInLines=u,b.layoutZone(l._viewZone.id))})},y.prototype._initSash=function(){var u=this;if(this._resizeSash)return;this._resizeSash=this._disposables.add(new nn.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0);var l;this._disposables.add(this._resizeSash.onDidStart(function(b){u._viewZone&&(l={startY:b.startY,heightInLines:u._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){l=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(b){if(l){var S=(b.currentY-l.startY)/u.editor.getOption(49),C=S<0?Math.ceil(S):Math.floor(S),$=l.heightInLines+C;$>5&&$<35&&u._relayout($)}}))},y.prototype.getHorizontalSashLeft=function(){return 0},y.prototype.getHorizontalSashTop=function(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},y.prototype.getHorizontalSashWidth=function(){var u=this.editor.getLayoutInfo();return u.width-u.minimapWidth},y}(),gi=r("qJsm"),Kn=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),yi=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},mi=function(y,u){return function(l,b){u(l,b,y)}},vt=Object(Tn.c)("IPeekViewService");Object(gi.b)(vt,function(){function y(){this._widgets=new Map}return y.prototype.addExclusiveWidget=function(u,l){var b=this,S=this._widgets.get(u);S&&(S.listener.dispose(),S.widget.dispose());var C=function(){var Be=b._widgets.get(u);Be&&Be.widget===l&&(Be.listener.dispose(),b._widgets.delete(u))};this._widgets.set(u,{widget:l,listener:l.onDidClose(C)})},y}());var Mt;(function(y){y.inPeekEditor=new pe.d("inReferenceSearchEditor",!0),y.notInPeekEditor=y.inPeekEditor.toNegated()})(Mt||(Mt={}));var zt=function(){function y(u,l){u instanceof Vt&&Mt.inPeekEditor.bindTo(l)}return y.prototype.dispose=function(){},y.ID="editor.contrib.referenceController",y=yi([mi(1,pe.c)],y),y}();Object(F.h)(zt.ID,zt);function tn(y){var u=y.get(B.a).getFocusedCodeEditor();return u instanceof Vt?u.getParentEditor():u}var Ut={headerBackgroundColor:x.a.white,primaryHeadingColor:x.a.fromHex("#333333"),secondaryHeadingColor:x.a.fromHex("#6c6c6cb3")},Sn=function(y){Kn(u,y);function u(l,b){b===void 0&&(b={});var S=y.call(this,l,b)||this;return S._onDidClose=new Z.a,S.onDidClose=S._onDidClose.event,Gt.g(S.options,Ut,!1),S}return u.prototype.dispose=function(){y.prototype.dispose.call(this),this._onDidClose.fire(this)},u.prototype.style=function(l){var b=this.options;l.headerBackgroundColor&&(b.headerBackgroundColor=l.headerBackgroundColor),l.primaryHeadingColor&&(b.primaryHeadingColor=l.primaryHeadingColor),l.secondaryHeadingColor&&(b.secondaryHeadingColor=l.secondaryHeadingColor),y.prototype.style.call(this,l)},u.prototype._applyStyles=function(){y.prototype._applyStyles.call(this);var l=this.options;this._headElement&&l.headerBackgroundColor&&(this._headElement.style.backgroundColor=l.headerBackgroundColor.toString()),this._primaryHeading&&l.primaryHeadingColor&&(this._primaryHeading.style.color=l.primaryHeadingColor.toString()),this._secondaryHeading&&l.secondaryHeadingColor&&(this._secondaryHeading.style.color=l.secondaryHeadingColor.toString()),this._bodyElement&&l.frameColor&&(this._bodyElement.style.borderColor=l.frameColor.toString())},u.prototype._fillContainer=function(l){this.setCssClass("peekview-widget"),this._headElement=R.a(".head"),this._bodyElement=R.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),l.appendChild(this._headElement),l.appendChild(this._bodyElement)},u.prototype._fillHead=function(l){var b=this,S=R.a(".peekview-title");R.p(this._headElement,S),R.n(S,"click",function(Be){return b._onTitleClick(Be)}),this._fillTitleIcon(S),this._primaryHeading=R.a("span.filename"),this._secondaryHeading=R.a("span.dirname"),this._metaHeading=R.a("span.meta"),R.p(S,this._primaryHeading,this._secondaryHeading,this._metaHeading);var C=R.a(".peekview-actions");R.p(this._headElement,C);var $=this._getActionBarOptions();this._actionbarWidget=new Tt.a(C,$),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new Ht.a("peekview.close",oe.a("label.close","Close"),"codicon-close",!0,function(){return b.dispose(),Promise.resolve()}),{label:!1,icon:!0})},u.prototype._fillTitleIcon=function(l){},u.prototype._getActionBarOptions=function(){return{}},u.prototype._onTitleClick=function(l){},u.prototype.setTitle=function(l,b){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=rn.o(l),this._primaryHeading.setAttribute("aria-label",l),b?this._secondaryHeading.innerHTML=rn.o(b):R.s(this._secondaryHeading))},u.prototype.setMetaTitle=function(l){this._metaHeading&&(l?(this._metaHeading.innerHTML=rn.o(l),R.W(this._metaHeading)):R.I(this._metaHeading))},u.prototype._doLayout=function(l,b){if(!this._isShowing&&l<0){this.dispose();return}var S=Math.ceil(this.editor.getOption(49)*1.2),C=Math.round(l-(S+2));this._doLayoutHead(S,b),this._doLayoutBody(C,b)},u.prototype._doLayoutHead=function(l,b){this._headElement&&(this._headElement.style.height=l+"px",this._headElement.style.lineHeight=this._headElement.style.height)},u.prototype._doLayoutBody=function(l,b){this._bodyElement&&(this._bodyElement.style.height=l+"px")},u}(Jn),Rn=Object(se.Rb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},oe.a("peekViewTitleBackground","Background color of the peek view title area.")),Bn=Object(se.Rb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},oe.a("peekViewTitleForeground","Color of the peek view title.")),Fn=Object(se.Rb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},oe.a("peekViewTitleInfoForeground","Color of the peek view title info.")),ri=Object(se.Rb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:se.e},oe.a("peekViewBorder","Color of the peek view borders and arrow.")),ci=Object(se.Rb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:x.a.black},oe.a("peekViewResultsBackground","Background color of the peek view result list.")),zi=Object(se.Rb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:x.a.white},oe.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),oo=Object(se.Rb)("peekViewResult.fileForeground",{dark:x.a.white,light:"#1E1E1E",hc:x.a.white},oe.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Zn=Object(se.Rb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},oe.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Ii=Object(se.Rb)("peekViewResult.selectionForeground",{dark:x.a.white,light:"#6C6C6C",hc:x.a.white},oe.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Si=Object(se.Rb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:x.a.black},oe.a("peekViewEditorBackground","Background color of the peek view editor.")),ji=Object(se.Rb)("peekViewEditorGutter.background",{dark:Si,light:Si,hc:Si},oe.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Un=Object(se.Rb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},oe.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ci=Object(se.Rb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},oe.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Wi=Object(se.Rb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:se.b},oe.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor.")),Ti=r("/epU"),Gi;(function(y){function u(l){switch(l){case Ti.a.Ignore:return"severity-ignore codicon-info";case Ti.a.Info:return"codicon-info";case Ti.a.Warning:return"codicon-warning";case Ti.a.Error:return"codicon-error"}return""}y.className=u})(Gi||(Gi={})),Object(fe.e)(function(y,u){var l=y.getColor(se.Nb);l&&u.addRule(`
|
|
.monaco-editor .zone-widget .codicon-error,
|
|
.markers-panel .marker-icon.codicon-error,
|
|
.extensions-viewlet > .extensions .codicon-error,
|
|
.monaco-dialog-box .dialog-message-row .codicon-error {
|
|
color: `+l+`;
|
|
}
|
|
`);var b=y.getColor(se.Pb);l&&u.addRule(`
|
|
.monaco-editor .zone-widget .codicon-warning,
|
|
.markers-panel .marker-icon.codicon-warning,
|
|
.extensions-viewlet > .extensions .codicon-warning,
|
|
.extension-editor .codicon-warning,
|
|
.monaco-dialog-box .dialog-message-row .codicon-warning {
|
|
color: `+b+`;
|
|
}
|
|
`);var S=y.getColor(se.Ob);l&&u.addRule(`
|
|
.monaco-editor .zone-widget .codicon-info,
|
|
.markers-panel .marker-icon.codicon-info,
|
|
.extensions-viewlet > .extensions .codicon-info,
|
|
.extension-editor .codicon-info,
|
|
.monaco-dialog-box .dialog-message-row .codicon-info {
|
|
color: `+S+`;
|
|
}
|
|
`)});var Bi=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),vi=function(){function y(u,l,b,S){var C=this;this._openerService=S,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new N.b,this._editor=l;var $=document.createElement("div");$.className="descriptioncontainer",$.setAttribute("aria-live","assertive"),$.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),R.e(this._messageBlock,"message"),$.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),$.appendChild(this._relatedBlock),this._disposables.add(R.n(this._relatedBlock,"click",function(Be){Be.preventDefault();var ot=C._relatedDiagnostics.get(Be.target);ot&&b(ot)})),this._scrollable=new ke.b($,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),u.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(function(Be){$.style.left="-"+Be.scrollLeft+"px",$.style.top="-"+Be.scrollTop+"px"})),this._disposables.add(this._scrollable)}return y.prototype.dispose=function(){Object(N.f)(this._disposables)},y.prototype.update=function(u){var l=this,b=u.source,S=u.message,C=u.relatedInformation,$=u.code,Be=((b==null?void 0:b.length)||0)+"()".length;$&&(typeof $=="string"?Be+=$.length:Be+=$.value.length);var ot=S.split(/\r\n|\r|\n/g);this._lines=ot.length,this._longestLineLength=0;for(var xe=0,dt=ot;xe<dt.length;xe++){var Nt=dt[xe];this._longestLineLength=Math.max(Nt.length+Be,this._longestLineLength)}R.s(this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var qt=this._messageBlock,en=0,un=ot;en<un.length;en++){var Nt=un[en];qt=document.createElement("div"),qt.innerText=Nt,Nt===""&&(qt.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(qt)}if(b||$){var an=document.createElement("span");if(R.e(an,"details"),qt.appendChild(an),b){var Cn=document.createElement("span");Cn.innerText=b,R.e(Cn,"source"),an.appendChild(Cn)}if($)if(typeof $=="string"){var In=document.createElement("span");In.innerText="("+$+")",R.e(In,"code"),an.appendChild(In)}else{this._codeLink=R.a("a.code-link"),this._codeLink.setAttribute("href",""+$.link.toString()),this._codeLink.onclick=function($i){l._openerService.open($.link),$i.preventDefault(),$i.stopPropagation()};var In=R.p(this._codeLink,R.a("span"));In.innerText=$.value,an.appendChild(this._codeLink)}}if(R.s(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(Ke.q)(C)){var Nn=this._relatedBlock.appendChild(document.createElement("div"));Nn.style.paddingTop=Math.floor(this._editor.getOption(49)*.66)+"px",this._lines+=1;for(var ti=0,Dn=C;ti<Dn.length;ti++){var di=Dn[ti],qn=document.createElement("div"),Ri=document.createElement("a");R.e(Ri,"filename"),Ri.innerHTML=Object(Et.a)(di.resource)+"("+di.startLineNumber+", "+di.startColumn+"): ",Ri.title=Object(Et.b)(di.resource,void 0),this._relatedDiagnostics.set(Ri,di);var li=document.createElement("span");li.innerText=di.message,qn.appendChild(Ri),qn.appendChild(li),this._lines+=1,Nn.appendChild(qn)}}var mo=this._editor.getOption(34),Li=Math.ceil(mo.typicalFullwidthCharacterWidth*this._longestLineLength*.75),ui=mo.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:Li,scrollHeight:ui})},y.prototype.layout=function(u,l){this._scrollable.getDomNode().style.height=u+"px",this._scrollable.getDomNode().style.width=l+"px",this._scrollable.setScrollDimensions({width:l,height:u})},y.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},y}(),qi=function(y){Bi(u,y);function u(l,b,S,C){var $=y.call(this,l,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return $.actions=b,$._themeService=S,$._openerService=C,$._callOnDispose=new N.b,$._onDidSelectRelatedInformation=new Z.a,$.onDidSelectRelatedInformation=$._onDidSelectRelatedInformation.event,$._severity=ve.c.Warning,$._backgroundColor=x.a.white,$._applyTheme(S.getTheme()),$._callOnDispose.add(S.onThemeChange($._applyTheme.bind($))),$.create(),$}return u.prototype._applyTheme=function(l){this._backgroundColor=l.getColor(so);var b=Xi;this._severity===ve.c.Warning?b=lo:this._severity===ve.c.Info&&(b=Mi);var S=l.getColor(b);this.style({arrowColor:S,frameColor:S,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:l.getColor(Bn),secondaryHeadingColor:l.getColor(Fn)})},u.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),y.prototype._applyStyles.call(this)},u.prototype.dispose=function(){this._callOnDispose.dispose(),y.prototype.dispose.call(this)},u.prototype._fillHead=function(l){y.prototype._fillHead.call(this,l),this._actionbarWidget.push(this.actions,{label:!1,icon:!0,index:0})},u.prototype._fillTitleIcon=function(l){this._icon=R.p(l,R.a(""))},u.prototype._getActionBarOptions=function(){return{orientation:0}},u.prototype._fillBody=function(l){var b=this;this._parentContainer=l,R.e(l,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),l.appendChild(this._container),this._message=new vi(this._container,this.editor,function(S){return b._onDidSelectRelatedInformation.fire(S)},this._openerService),this._disposables.add(this._message)},u.prototype.show=function(l,b){throw new Error("call showAtMarker")},u.prototype.showAtMarker=function(l,b,S){this._container.classList.remove("stale"),this._message.update(l),this._severity=l.severity,this._applyTheme(this._themeService.getTheme());var C=U.a.lift(l),$=this.editor.getPosition(),Be=$&&C.containsPosition($)?$:C.getStartPosition();y.prototype.show.call(this,Be,this.computeRequiredHeight());var ot=this.editor.getModel();if(ot){var xe=S>1?oe.a("problems","{0} of {1} problems",b,S):oe.a("change","{0} of {1} problem",b,S);this.setTitle(Object(Te.b)(ot.uri),xe)}this._icon.className="codicon "+Gi.className(ve.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(Be,0),this.editor.focus()},u.prototype.updateMarker=function(l){this._container.classList.remove("stale"),this._message.update(l)},u.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},u.prototype._doLayoutBody=function(l,b){y.prototype._doLayoutBody.call(this,l,b),this._heightInPixel=l,this._message.layout(l,b),this._container.style.height=l+"px"},u.prototype._onWidth=function(l){this._message.layout(this._heightInPixel,l)},u.prototype._relayout=function(){y.prototype._relayout.call(this,this.computeRequiredHeight())},u.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},u}(Sn),ro=Object(se.Jb)(se.q,se.p),bi=Object(se.Jb)(se.O,se.N),Di=Object(se.Jb)(se.H,se.G),Xi=Object(se.Rb)("editorMarkerNavigationError.background",{dark:ro,light:ro,hc:ro},oe.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),lo=Object(se.Rb)("editorMarkerNavigationWarning.background",{dark:bi,light:bi,hc:bi},oe.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Mi=Object(se.Rb)("editorMarkerNavigationInfo.background",{dark:Di,light:Di,hc:Di},oe.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),so=Object(se.Rb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:x.a.white,hc:"#0C141F"},oe.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(fe.e)(function(y,u){var l=y.getColor(se.cc);l&&(u.addRule(".monaco-editor .marker-widget a { color: "+l+"; }"),u.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+l+"; }"))});var Je=r("1OsU"),O=r("Qr/v"),T=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Y=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},De=function(y,u){return function(l,b){u(l,b,y)}},Re=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},We=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=u.call(y,l)}catch(dt){xe=[6,dt],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},ft=function(){function y(u,l){var b=this;this._toUnbind=new N.b,this._editor=u,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new Z.a,this._onMarkerSetChanged=new Z.a,this.setMarkers(l),this._toUnbind.add(this._editor.onDidDispose(function(){return b.dispose()})),this._toUnbind.add(this._editor.onDidChangeCursorPosition(function(){if(b._ignoreSelectionChange)return;if(b.currentMarker&&b._editor.getPosition()&&U.a.containsPosition(b.currentMarker,b._editor.getPosition()))return;b._nextIdx=-1}))}return Object.defineProperty(y.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event},enumerable:!0,configurable:!0}),y.prototype.setMarkers=function(u){var l=this._nextIdx>=0?this._markers[this._nextIdx]:void 0;this._markers=u||[],this._markers.sort(yt.compareMarker),l?this._nextIdx=Math.max(-1,Object(Ke.c)(this._markers,l,yt.compareMarker)):this._nextIdx=-1,this._onMarkerSetChanged.fire(this)},y.prototype.withoutWatchingEditorPosition=function(u){this._ignoreSelectionChange=!0;try{u()}finally{this._ignoreSelectionChange=!1}},y.prototype._initIdx=function(u){for(var l=!1,b=this._editor.getPosition(),S=0;S<this._markers.length;S++){var C=U.a.lift(this._markers[S]);if(C.isEmpty()&&this._editor.getModel()){var $=this._editor.getModel().getWordAtPosition(C.getStartPosition());$&&(C=new U.a(C.startLineNumber,$.startColumn,C.startLineNumber,$.endColumn))}if(b&&(C.containsPosition(b)||b.isBeforeOrEqual(C.getStartPosition()))){this._nextIdx=S,l=!0;break}}l||(this._nextIdx=u?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)},Object.defineProperty(y.prototype,"currentMarker",{get:function(){return this.canNavigate()?this._markers[this._nextIdx]:void 0},set:function(l){var b=this._nextIdx;this._nextIdx=-1,l&&(this._nextIdx=this.indexOf(l)),this._nextIdx!==b&&this._onCurrentMarkerChanged.fire(l)},enumerable:!0,configurable:!0}),y.prototype.move=function(u,l){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!l;var b=this._nextIdx,S=!1;if(this._nextIdx===-1?this._initIdx(u):u?l||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:S=!0:u||(l||this._nextIdx>0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:S=!0),b!==this._nextIdx){var C=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(C)}return S},y.prototype.canNavigate=function(){return this._markers.length>0},y.prototype.findMarkerAtPosition=function(u){return Object(Ke.h)(this._markers,function(l){return U.a.containsPosition(l,u)})},Object.defineProperty(y.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),y.prototype.indexOf=function(u){return 1+this._markers.indexOf(u)},y.prototype.dispose=function(){this._toUnbind.dispose()},y}(),lt=function(){function y(u,l,b,S,C,$,Be){this._markerService=l,this._contextKeyService=b,this._themeService=S,this._editorService=C,this._keybindingService=$,this._openerService=Be,this._model=null,this._widget=null,this._disposeOnClose=new N.b,this._editor=u,this._widgetVisible=Zt.bindTo(this._contextKeyService)}return y.get=function(u){return u.getContribution(y.ID)},y.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},y.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},y.prototype.getOrCreateModel=function(){var u=this;if(this._model)return this._model;var l=this._getMarkers();this._model=new ft(this._editor,l),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var b=this._keybindingService.lookupKeybinding(It.ID),S=this._keybindingService.lookupKeybinding(xt.ID),C=[new Ht.a(xt.ID,xt.LABEL+(S?" ("+S.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),function(){return Re(u,void 0,void 0,function(){return We(this,function(xe){return this._model&&this._model.move(!0,!0),[2]})})}),new Ht.a(It.ID,It.LABEL+(b?" ("+b.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),function(){return Re(u,void 0,void 0,function(){return We(this,function(xe){return this._model&&this._model.move(!1,!0),[2]})})})];this._widget=new qi(this._editor,C,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose(function(){return u.closeMarkersNavigation()},this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var $=0,Be=C;$<Be.length;$++){var ot=Be[$];this._disposeOnClose.add(ot)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation(function(xe){u._editorService.openCodeEditor({resource:xe.resource,options:{pinned:!0,revealIfOpened:!0,selection:U.a.lift(xe).collapseToStart()}},u._editor).then(void 0,z.e),u.closeMarkersNavigation(!1)})),this._disposeOnClose.add(this._editor.onDidChangeModel(function(){return u._cleanUp()})),this._disposeOnClose.add(this._model.onCurrentMarkerChanged(function(xe){!xe||!u._model?u._cleanUp():u._model.withoutWatchingEditorPosition(function(){if(!u._widget||!u._model)return;u._widget.showAtMarker(xe,u._model.indexOf(xe),u._model.total)})})),this._disposeOnClose.add(this._model.onMarkerSetChanged(function(){if(!u._widget||!u._widget.position||!u._model)return;var xe=u._model.findMarkerAtPosition(u._widget.position);xe?u._widget.updateMarker(xe):u._widget.showStale()})),this._model},y.prototype.closeMarkersNavigation=function(u){u===void 0&&(u=!0),this._cleanUp(),u&&this._editor.focus()},y.prototype.show=function(u){var l=this.getOrCreateModel();l.currentMarker=u},y.prototype._onMarkerChanged=function(u){var l=this._editor.getModel();if(!l)return;if(!this._model)return;if(!u.some(function(b){return Object(Te.e)(l.uri,b)}))return;this._model.setMarkers(this._getMarkers())},y.prototype._getMarkers=function(){var u=this._editor.getModel();return u?this._markerService.read({resource:u.uri,severities:ve.c.Error|ve.c.Warning|ve.c.Info}):[]},y.ID="editor.contrib.markerController",y=Y([De(1,ve.b),De(2,pe.c),De(3,fe.c),De(4,B.a),De(5,O.a),De(6,Ie.a)],y),y}(),yt=function(y){T(u,y);function u(l,b,S){var C=y.call(this,S)||this;return C._isNext=l,C._multiFile=b,C}return u.prototype.run=function(l,b){var S=this,C=l.get(ve.b),$=l.get(B.a),Be=lt.get(b);if(!Be)return Promise.resolve(void 0);var ot=Be.getOrCreateModel(),xe=ot.move(this._isNext,!this._multiFile);if(!xe||!this._multiFile)return Promise.resolve(void 0);var dt=C.read({severities:ve.c.Error|ve.c.Warning|ve.c.Info}).sort(u.compareMarker);if(dt.length===0)return Promise.resolve(void 0);var Nt=b.getModel();if(!Nt)return Promise.resolve(void 0);var qt=ot.currentMarker||{resource:Nt.uri,severity:ve.c.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},en=Object(Ke.c)(dt,qt,u.compareMarker);en<0?(en=~en,en%=dt.length):this._isNext?en=(en+1)%dt.length:en=(en+dt.length-1)%dt.length;var un=dt[en];return Object(Te.e)(un.resource,Nt.uri)?(ot.move(this._isNext,!0),Promise.resolve(void 0)):(Be.closeMarkersNavigation(),$.openCodeEditor({resource:un.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:un}},b).then(function(an){return an?an.getAction(S.id).run():void 0}))},u.compareMarker=function(l,b){var S=Object(rn.e)(l.resource.toString(),b.resource.toString());return S===0&&(S=ve.c.compare(l.severity,b.severity)),S===0&&(S=U.a.compareRangesUsingStarts(l,b)),S},u}(F.b),xt=function(y){T(u,y);function u(){return y.call(this,!0,!1,{id:u.ID,label:u.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:j.a.writable,kbOpts:{kbExpr:j.a.focus,primary:512|66,weight:100}})||this}return u.ID="editor.action.marker.next",u.LABEL=oe.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),u}(yt),It=function(y){T(u,y);function u(){return y.call(this,!1,!1,{id:u.ID,label:u.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:j.a.writable,kbOpts:{kbExpr:j.a.focus,primary:1024|512|66,weight:100}})||this}return u.ID="editor.action.marker.prev",u.LABEL=oe.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),u}(yt),kt=function(y){T(u,y);function u(){return y.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:oe.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:j.a.writable,kbOpts:{kbExpr:j.a.focus,primary:66,weight:100}})||this}return u}(yt),Yt=function(y){T(u,y);function u(){return y.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:oe.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:j.a.writable,kbOpts:{kbExpr:j.a.focus,primary:1024|66,weight:100}})||this}return u}(yt);Object(F.h)(lt.ID,lt),Object(F.f)(xt),Object(F.f)(It),Object(F.f)(kt),Object(F.f)(Yt);var Zt=new pe.d("markersNavigationVisible",!1),dn=F.c.bindToContribution(lt.get);Object(F.g)(new dn({id:"closeMarkersNavigation",precondition:Zt,handler:function(u){return u.closeMarkersNavigation()},kbOpts:{weight:100+50,kbExpr:j.a.focus,primary:9,secondary:[1024|9]}})),Je.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.nextInFiles",title:oe.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem")},order:1}),Je.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.prevInFiles",title:oe.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem")},order:2});var fn=r("VKfd"),An=r("F5bH"),gn=function(){function y(u){this.value=u}return y.prototype.equals=function(u){return this.value===u.value},y.prototype.contains=function(u){return this.equals(u)||this.value===""||Object(rn.M)(u.value,this.value+y.sep)},y.prototype.intersects=function(u){return this.contains(u)||u.contains(this)},y.prototype.append=function(u){return new y(this.value+y.sep+u)},y.sep=".",y.None=new y("@@none@@"),y.Empty=new y(""),y.QuickFix=new y("quickfix"),y.Refactor=new y("refactor"),y.Source=new y("source"),y.SourceOrganizeImports=y.Source.append("organizeImports"),y.SourceFixAll=y.Source.append("fixAll"),y}();function Mn(y,u){return y.include&&!y.include.intersects(u)||y.excludes&&y.excludes.some(function(l){return Le(u,l,y.include)})?!1:!(!y.includeSourceActions&&gn.Source.contains(u))}function xn(y,u){var l=u.kind?new gn(u.kind):void 0;return y.include&&(!l||!y.include.contains(l))||(y.excludes&&(l&&y.excludes.some(function(b){return Le(l,b,y.include)}))||!y.includeSourceActions&&(l&&gn.Source.contains(l)))?!1:!(y.onlyIncludePreferredActions&&!u.isPreferred)}function Le(y,u,l){return u.contains(y)?!(l&&u.contains(l)):!1}var W=function(){function y(u,l,b){this.kind=u,this.apply=l,this.preferred=b}return y.fromUser=function(u,l){return!u||typeof u!="object"?new y(l.kind,l.apply,!1):new y(y.getKindFromUser(u,l.kind),y.getApplyFromUser(u,l.apply),y.getPreferredUser(u))},y.getApplyFromUser=function(u,l){switch(typeof u.apply=="string"?u.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return l}},y.getKindFromUser=function(u,l){return typeof u.kind=="string"?new gn(u.kind):l},y.getPreferredUser=function(u){return typeof u.preferred=="boolean"?u.preferred:!1},y}(),ae=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Fe=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},qe=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=u.call(y,l)}catch(dt){xe=[6,dt],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},ct=function(){for(var y=0,u=0,l=arguments.length;u<l;u++)y+=arguments[u].length;for(var b=Array(y),S=0,u=0;u<l;u++)for(var C=arguments[u],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b},St="editor.action.codeAction",Ge="editor.action.refactor",de="editor.action.sourceAction",X="editor.action.organizeImports",Ue="editor.action.fixAll",at=function(y){ae(u,y);function u(l,b){var S=y.call(this)||this;return S._register(b),S.allActions=Object(Ke.r)(ct(l),u.codeActionsComparator),S.validActions=S.allActions.filter(function(C){return!C.disabled}),S}return u.codeActionsComparator=function(l,b){return Object(Ke.q)(l.diagnostics)?Object(Ke.q)(b.diagnostics)?l.diagnostics[0].message.localeCompare(b.diagnostics[0].message):-1:Object(Ke.q)(b.diagnostics)?1:0},Object.defineProperty(u.prototype,"hasAutoFix",{get:function(){return this.validActions.some(function(b){return!!b.kind&&gn.QuickFix.contains(new gn(b.kind))&&!!b.isPreferred})},enumerable:!0,configurable:!0}),u}(N.a);function et(y,u,l,b){var S=this,C,$=l.filter||{},Be={only:(C=$.include)===null||C===void 0?void 0:C.value,trigger:l.type},ot=new fn.d(y,b),xe=Q(y,$),dt=new N.b,Nt=xe.map(function(en){return Fe(S,void 0,void 0,function(){var un,an;return qe(this,function(Cn){switch(Cn.label){case 0:return Cn.trys.push([0,2,,3]),[4,en.provideCodeActions(y,u,Be,ot.token)];case 1:return un=Cn.sent(),ot.token.isCancellationRequested||!un?[2,[]]:(dt.add(un),[2,un.actions.filter(function(In){return In&&xn($,In)})]);case 2:if(an=Cn.sent(),Object(z.d)(an))throw an;return Object(z.f)(an),[2,[]];case 3:return[2]}})})}),qt=te.a.onDidChange(function(){var en=te.a.all(y);Object(Ke.g)(en,xe)||ot.cancel()});return Promise.all(Nt).then(Ke.m).then(function(en){return new at(en,dt)}).finally(function(){qt.dispose(),ot.dispose()})}function Q(y,u){return te.a.all(y).filter(function(l){return l.providedCodeActionKinds?l.providedCodeActionKinds.some(function(b){return Mn(u,new gn(b))}):!0})}Object(F.j)("_executeCodeActionProvider",function(y,u){return Fe(this,void 0,void 0,function(){var l,b,S,C,$,Be;return qe(this,function(ot){switch(ot.label){case 0:if(l=u.resource,b=u.rangeOrSelection,S=u.kind,!(l instanceof _.a))throw Object(z.b)();if(C=y.get(f.a).getModel(l),!C)throw Object(z.b)();if($=An.a.isISelection(b)?An.a.liftSelection(b):U.a.isIRange(b)?C.validateRange(b):void 0,!$)throw Object(z.b)();return[4,et(C,$,{type:2,filter:{includeSourceActions:!0,include:S&&S.value?new gn(S.value):void 0}},E.a.None)];case 1:return Be=ot.sent(),setTimeout(function(){return Be.dispose()},100),[2,Be.validActions]}})})});var Ce=function(){function y(u){this.executor=u,this._didRun=!1}return y.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(u){this._error=u}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(y.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),y}(),Oe=r("W03H"),it=r("6FOB"),Qe=r("5xAg"),je=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Ct=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Ot=function(y,u){return function(l,b){u(l,b,y)}},Jt=function(y){je(u,y);function u(l,b){var S=y.call(this)||this;return S.closeTimeout=3e3,S._messageWidget=S._register(new N.d),S._messageListeners=S._register(new N.b),S._editor=l,S._visible=u.MESSAGE_VISIBLE.bindTo(b),S._register(S._editor.onDidAttemptReadOnlyEdit(function(){return S._onDidAttemptReadOnlyEdit()})),S}return u.get=function(l){return l.getContribution(u.ID)},u.prototype.dispose=function(){y.prototype.dispose.call(this),this._visible.reset()},u.prototype.showMessage=function(l,b){var S=this;Object(Qe.a)(l),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new jt(this._editor,b,l),this._messageListeners.add(this._editor.onDidBlurEditorText(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidDispose(function(){return S.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeModel(function(){return S.closeMessage()})),this._messageListeners.add(new m.e(function(){return S.closeMessage()},this.closeTimeout));var C;this._messageListeners.add(this._editor.onMouseMove(function($){if(!$.target.position)return;C?C.containsPosition($.target.position)||S.closeMessage():C=new U.a(b.lineNumber-3,1,$.target.position.lineNumber+3,1)}))},u.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(jt.fadeOut(this._messageWidget.value))},u.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(oe.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},u.ID="editor.contrib.messageController",u.MESSAGE_VISIBLE=new pe.d("messageVisible",!1),u=Ct([Ot(1,pe.c)],u),u}(N.a),At=F.c.bindToContribution(Jt.get);Object(F.g)(new At({id:"leaveEditorMessage",precondition:Jt.MESSAGE_VISIBLE,handler:function(u){return u.closeMessage()},kbOpts:{weight:100+30,primary:9}}));var jt=function(){function y(u,l,b){var S=l.lineNumber,C=l.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=u,this._editor.revealLinesInCenterIfOutsideViewport(S,S,0),this._position={lineNumber:S,column:C-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var $=document.createElement("div");$.classList.add("message"),$.textContent=b,this._domNode.appendChild($);var Be=document.createElement("div");Be.classList.add("anchor"),this._domNode.appendChild(Be),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return y.fadeOut=function(u){var l,b=function S(){u.dispose(),clearTimeout(l),u.getDomNode().removeEventListener("animationend",S)};return l=setTimeout(b,110),u.getDomNode().addEventListener("animationend",b),u.getDomNode().classList.add("fadeOut"),{dispose:b}},y.prototype.dispose=function(){this._editor.removeContentWidget(this)},y.prototype.getId=function(){return"messageoverlay"},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},y}();Object(F.h)(Jt.ID,Jt),Object(fe.e)(function(y,u){var l=y.getColor(se.fb);if(l){var b=y.type===fe.b?2:1;u.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+l+"; }"),u.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+b+"px solid "+l+"; }")}var S=y.getColor(se.eb);S&&u.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+S+"; }");var C=y.getColor(se.gb);C&&u.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+C+"; }")});var hn=r("sjWa"),bn=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),mn=function(){return mn=Object.assign||function(y){for(var u,l=1,b=arguments.length;l<b;l++){u=arguments[l];for(var S in u)Object.prototype.hasOwnProperty.call(u,S)&&(y[S]=u[S])}return y},mn.apply(this,arguments)},Vn=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Xn=function(y,u){return function(l,b){u(l,b,y)}},Yn=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Ui=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=u.call(y,l)}catch(dt){xe=[6,dt],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},ii=function(){for(var y=0,u=0,l=arguments.length;u<l;u++)y+=arguments[u].length;for(var b=Array(y),S=0,u=0;u<l;u++)for(var C=arguments[u],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b},Pi=function(y){bn(u,y);function u(l,b){var S=y.call(this,l.command?l.command.id:l.title,l.title,void 0,!l.disabled,b)||this;return S.action=l,S}return u}(Ht.a),uo=function(y){bn(u,y);function u(l,b,S,C){var $=y.call(this)||this;return $._editor=l,$._delegate=b,$._contextMenuService=S,$._visible=!1,$._showingActions=$._register(new N.d),$._keybindingResolver=new eo({getKeybindings:function(){return C.getKeybindings()}}),$}return Object.defineProperty(u.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),u.prototype.show=function(l,b,S,C){return Yn(this,void 0,void 0,function(){var $,Be,ot,xe,dt=this;return Ui(this,function(Nt){if($=C.includeDisabledActions?b.allActions:b.validActions,!$.length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(z.a)();return this._visible=!0,this._showingActions.value=b,Be=this.getMenuActions(l,$),ot=D.a.isIPosition(S)?this._toCoords(S):S||{x:0,y:0},xe=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return ot},getActions:function(){return Be},onHide:function(){dt._visible=!1,dt._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(en){return en instanceof Pi?xe(en.action):void 0}}),[2]})})},u.prototype.getMenuActions=function(l,b){var S=this,C,$,Be=function(an){return new Pi(an,function(){return S._delegate.onSelectCodeAction(an)})},ot=b.map(Be),xe=this._editor.getModel();if(xe&&ot.length)for(var dt=0,Nt=te.a.all(xe);dt<Nt.length;dt++){var qt=Nt[dt];if(qt._getAdditionalMenuItems){var en=qt._getAdditionalMenuItems({trigger:l.type,only:($=(C=l.filter)===null||C===void 0?void 0:C.include)===null||$===void 0?void 0:$.value},b);en.length&&ot.push.apply(ot,ii([new Tt.d],en.map(function(un){return Be({title:un.title,command:un})})))}}return ot},u.prototype._toCoords=function(l){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(l,1),this._editor.render();var b=this._editor.getScrolledVisiblePosition(l),S=Object(R.B)(this._editor.getDomNode()),C=S.left+b.left,$=S.top+b.top+b.height;return{x:C,y:$}},u=Vn([Xn(2,hn.a),Xn(3,O.a)],u),u}(N.a),eo=function(){function y(u){this._keybindingProvider=u}return y.prototype.getResolver=function(){var u=this,l=new Ce(function(){return u._keybindingProvider.getKeybindings().filter(function(b){return y.codeActionCommands.indexOf(b.command)>=0}).filter(function(b){return b.resolvedKeybinding}).map(function(b){var S=b.commandArgs;return b.command===X?S={kind:gn.SourceOrganizeImports.value}:b.command===Ue&&(S={kind:gn.SourceFixAll.value}),mn({resolvedKeybinding:b.resolvedKeybinding},W.fromUser(S,{kind:gn.None,apply:"never"}))})});return function(b){if(b.kind){var S=u.bestKeybindingForCodeAction(b,l.getValue());return S==null?void 0:S.resolvedKeybinding}return}},y.prototype.bestKeybindingForCodeAction=function(u,l){if(!u.kind)return;var b=new gn(u.kind);return l.filter(function(S){return S.kind.contains(b)}).filter(function(S){return S.preferred?u.isPreferred:!0}).reduceRight(function(S,C){return S?S.kind.contains(C.kind)?C:S:C},void 0)},y.codeActionCommands=[Ge,St,de,X,Ue],y}(),to=r("ux5E"),zn=r("3HcJ"),zo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Oi=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},wr=function(y,u){return function(l,b){u(l,b,y)}},Po;(function(y){y.Hidden={type:0};var u=function(){function l(b,S,C,$){this.actions=b,this.trigger=S,this.editorPosition=C,this.widgetPosition=$,this.type=1}return l}();y.Showing=u})(Po||(Po={}));var Ho=function(y){zo(u,y);function u(l,b,S,C){var $=y.call(this)||this;return $._editor=l,$._quickFixActionId=b,$._preferredFixActionId=S,$._keybindingService=C,$._onClick=$._register(new Z.a),$.onClick=$._onClick.event,$._state=Po.Hidden,$._domNode=document.createElement("div"),$._domNode.className="codicon codicon-lightbulb",$._editor.addContentWidget($),$._register($._editor.onDidChangeModelContent(function(Be){var ot=$._editor.getModel();($.state.type!==1||!ot||$.state.editorPosition.lineNumber>=ot.getLineCount())&&$.hide()})),zn.b.ignoreTarget($._domNode),$._register(R.m($._domNode,function(Be){if($.state.type!==1)return;$._editor.focus(),Be.preventDefault();var ot=R.B($._domNode),xe=ot.top,dt=ot.height,Nt=$._editor.getOption(49),qt=Math.floor(Nt/3);$.state.widgetPosition.position!==null&&$.state.widgetPosition.position.lineNumber<$.state.editorPosition.lineNumber&&(qt+=Nt),$._onClick.fire({x:Be.posx,y:xe+dt+qt,actions:$.state.actions,trigger:$.state.trigger})})),$._register(R.i($._domNode,"mouseenter",function(Be){if((Be.buttons&1)!==1)return;$.hide();var ot=new _e.a;ot.startMonitoring(Be.target,Be.buttons,_e.b,function(){},function(){ot.dispose()})})),$._register($._editor.onDidChangeConfiguration(function(Be){Be.hasChanged(47)&&!$._editor.getOption(47).enabled&&$.hide()})),$._updateLightBulbTitle(),$._register($._keybindingService.onDidUpdateKeybindings($._updateLightBulbTitle,$)),$}return u.prototype.dispose=function(){y.prototype.dispose.call(this),this._editor.removeContentWidget(this)},u.prototype.getId=function(){return"LightBulbWidget"},u.prototype.getDomNode=function(){return this._domNode},u.prototype.getPosition=function(){return this._state.type===1?this._state.widgetPosition:null},u.prototype.update=function(l,b,S){var C=this;if(l.validActions.length<=0)return this.hide();var $=this._editor.getOptions();if(!$.get(47).enabled)return this.hide();var Be=S.lineNumber,ot=S.column,xe=this._editor.getModel();if(!xe)return this.hide();var dt=xe.getOptions().tabSize,Nt=$.get(34),qt=xe.getLineContent(Be),en=A.b.computeIndentLevel(qt,dt),un=Nt.spaceWidth*en>22,an=function(Nn){return Nn>2&&C._editor.getTopForLineNumber(Nn)===C._editor.getTopForLineNumber(Nn-1)},Cn=Be;if(!un){if(Be>1&&!an(Be-1))Cn-=1;else if(!an(Be+1))Cn+=1;else if(ot*Nt.spaceWidth<22)return this.hide()}this.state=new Po.Showing(l,b,S,{position:{lineNumber:Cn,column:1},preference:u._posPref}),R.X(this._domNode,"codicon-lightbulb-autofix",l.hasAutoFix),this._editor.layoutContentWidget(this)},u.prototype.hide=function(){this.state=Po.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(u.prototype,"state",{get:function(){return this._state},set:function(b){this._state=b,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),u.prototype._updateLightBulbTitle=function(){if(this.state.type===1&&this.state.actions.hasAutoFix){var l=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(l){this.title=oe.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",l.getLabel());return}}var b=this._keybindingService.lookupKeybinding(this._quickFixActionId);b?this.title=oe.a("quickFixWithKb","Show Fixes ({0})",b.getLabel()):this.title=oe.a("quickFix","Show Fixes")},Object.defineProperty(u.prototype,"title",{set:function(b){this._domNode.title=b},enumerable:!0,configurable:!0}),u._posPref=[0],u=Oi([wr(3,O.a)],u),u}(N.a);Object(fe.e)(function(y,u){var l=y.getColor(se.J);l&&u.addRule(`
|
|
.monaco-editor .contentWidgets .codicon-lightbulb {
|
|
color: `+l+`;
|
|
}`);var b=y.getColor(se.I);b&&u.addRule(`
|
|
.monaco-editor .contentWidgets .codicon-lightbulb-autofix {
|
|
color: `+b+`;
|
|
}`)});var Fo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),tr=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},pr=function(y,u){return function(l,b){u(l,b,y)}},co=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},So=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=u.call(y,l)}catch(dt){xe=[6,dt],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},gr=function(y){Fo(u,y);function u(l,b,S,C,$){var Be=y.call(this)||this;return Be._editor=l,Be.delegate=C,Be._activeCodeActions=Be._register(new N.d),Be._codeActionWidget=new Ce(function(){return Be._register($.createInstance(uo,Be._editor,{onSelectCodeAction:function(xe){return co(Be,void 0,void 0,function(){return So(this,function(dt){return this.delegate.applyCodeAction(xe,!0),[2]})})}}))}),Be._lightBulbWidget=new Ce(function(){var ot=Be._register($.createInstance(Ho,Be._editor,b,S));return Be._register(ot.onClick(function(xe){return Be.showCodeActionList(xe.trigger,xe.actions,xe,{includeDisabledActions:!1})})),ot}),Be}return u.prototype.update=function(l){var b,S,C;return co(this,void 0,void 0,function(){var $,Be,ot,xe,dt;return So(this,function(Nt){switch(Nt.label){case 0:if(l.type!==1)return(b=this._lightBulbWidget.rawValue)===null||b===void 0||b.hide(),[2];Nt.label=1;case 1:return Nt.trys.push([1,3,,4]),[4,l.actions];case 2:return $=Nt.sent(),[3,4];case 3:return Be=Nt.sent(),Object(z.e)(Be),[2];case 4:if(this._lightBulbWidget.getValue().update($,l.trigger,l.position),!(l.trigger.type===2))return[3,11];if(!((S=l.trigger.filter)===null||S===void 0?void 0:S.include))return[3,10];if(ot=this.tryGetValidActionToApply(l.trigger,$),!ot)return[3,9];Nt.label=5;case 5:return Nt.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(ot,!1)];case 6:return Nt.sent(),[3,8];case 7:return $.dispose(),[7];case 8:return[2];case 9:if(l.trigger.context&&(xe=this.getInvalidActionThatWouldHaveBeenApplied(l.trigger,$),xe&&xe.disabled))return Jt.get(this._editor).showMessage(xe.disabled,l.trigger.context.position),$.dispose(),[2];Nt.label=10;case 10:return dt=!!((C=l.trigger.filter)===null||C===void 0?void 0:C.include),l.trigger.context&&(!$.allActions.length||!dt&&!$.validActions.length)?(Jt.get(this._editor).showMessage(l.trigger.context.notAvailableMessage,l.trigger.context.position),this._activeCodeActions.value=$,$.dispose(),[2]):(this._activeCodeActions.value=$,this._codeActionWidget.getValue().show(l.trigger,$,l.position,{includeDisabledActions:dt}),[3,12]);case 11:this._codeActionWidget.getValue().isVisible?$.dispose():this._activeCodeActions.value=$,Nt.label=12;case 12:return[2]}})})},u.prototype.getInvalidActionThatWouldHaveBeenApplied=function(l,b){return b.allActions.length&&(l.autoApply==="first"&&b.validActions.length===0||l.autoApply==="ifSingle"&&b.allActions.length===1)?Object(Ke.h)(b.allActions,function(S){return S.disabled}):void 0},u.prototype.tryGetValidActionToApply=function(l,b){return b.validActions.length&&(l.autoApply==="first"&&b.validActions.length>0||l.autoApply==="ifSingle"&&b.validActions.length===1)?b.validActions[0]:void 0},u.prototype.showCodeActionList=function(l,b,S,C){return co(this,void 0,void 0,function(){return So(this,function($){return this._codeActionWidget.getValue().show(l,b,S,C),[2]})})},u=tr([pr(4,Tn.a)],u),u}(N.a),Br=r("z5rs"),Lr=r("yimU"),Ai=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Ko=new pe.d("supportedCodeAction",""),is=function(y){Ai(u,y);function u(l,b,S,C){C===void 0&&(C=250);var $=y.call(this)||this;return $._editor=l,$._markerService=b,$._signalChange=S,$._delay=C,$._autoTriggerTimer=$._register(new m.e),$._register($._markerService.onMarkerChanged(function(Be){return $._onMarkerChanges(Be)})),$._register($._editor.onDidChangeCursorPosition(function(){return $._onCursorChange()})),$}return u.prototype.trigger=function(l){var b=this._getRangeOfSelectionUnlessWhitespaceEnclosed(l);return this._createEventAndSignalChange(l,b)},u.prototype._onMarkerChanges=function(l){var b=this,S=this._editor.getModel();if(!S)return;l.some(function(C){return Object(Te.e)(C,S.uri)})&&this._autoTriggerTimer.cancelAndSet(function(){b.trigger({type:1})},this._delay)},u.prototype._onCursorChange=function(){var l=this;this._autoTriggerTimer.cancelAndSet(function(){l.trigger({type:1})},this._delay)},u.prototype._getRangeOfMarker=function(l){var b=this._editor.getModel();if(!b)return;for(var S=0,C=this._markerService.read({resource:b.uri});S<C.length;S++){var $=C[S],Be=b.validateRange($);if(U.a.intersectRanges(Be,l))return U.a.lift(Be)}return},u.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(l){if(!this._editor.hasModel())return;var b=this._editor.getModel(),S=this._editor.getSelection();if(S.isEmpty()&&l.type===1){var C=S.getPosition(),$=C.lineNumber,Be=C.column,ot=b.getLineContent($);if(ot.length===0)return;if(Be===1){if(/\s/.test(ot[0]))return}else if(Be===b.getLineMaxColumn($)){if(/\s/.test(ot[ot.length-1]))return}else if(/\s/.test(ot[Be-2])&&/\s/.test(ot[Be-1]))return}return S},u.prototype._createEventAndSignalChange=function(l,b){var S=this._editor.getModel();if(!b||!S){this._signalChange(void 0);return}var C=this._getRangeOfMarker(b),$=C?C.getStartPosition():b.getStartPosition(),Be={trigger:l,selection:b,position:$};return this._signalChange(Be),Be},u}(N.a),ko;(function(y){y.Empty={type:0};var u=function(){function l(b,S,C,$){this.trigger=b,this.rangeOrSelection=S,this.position=C,this.actions=$,this.type=1}return l}();y.Triggered=u})(ko||(ko={}));var os=function(y){Ai(u,y);function u(l,b,S,C){var $=y.call(this)||this;return $._editor=l,$._markerService=b,$._progressService=C,$._codeActionOracle=$._register(new N.d),$._state=ko.Empty,$._onDidChangeState=$._register(new Z.a),$.onDidChangeState=$._onDidChangeState.event,$._supportedCodeActions=Ko.bindTo(S),$._register($._editor.onDidChangeModel(function(){return $._update()})),$._register($._editor.onDidChangeModelLanguage(function(){return $._update()})),$._register(te.a.onDidChange(function(){return $._update()})),$._update(),$}return u.prototype.dispose=function(){y.prototype.dispose.call(this),this.setState(ko.Empty,!0)},u.prototype._update=function(){var l=this;this._codeActionOracle.value=void 0,this.setState(ko.Empty);var b=this._editor.getModel();if(b&&te.a.has(b)&&!this._editor.getOption(68)){for(var S=[],C=0,$=te.a.all(b);C<$.length;C++){var Be=$[C];Array.isArray(Be.providedCodeActionKinds)&&S.push.apply(S,Be.providedCodeActionKinds)}this._supportedCodeActions.set(S.join(" ")),this._codeActionOracle.value=new is(this._editor,this._markerService,function(ot){if(!ot){l.setState(ko.Empty);return}var xe=Object(m.f)(function(dt){return et(b,ot.selection,ot.trigger,dt)});l._progressService&&ot.trigger.type===2&&l._progressService.showWhile(xe,250),l.setState(new ko.Triggered(ot.trigger,ot.selection,ot.position,xe))},void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()},u.prototype.trigger=function(l){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(l)},u.prototype.setState=function(l,b){if(l===this._state)return;this._state.type===1&&this._state.actions.cancel(),this._state=l,b||this._onDidChangeState.fire(l)},u}(N.a),ao=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),rs=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Dr=function(y,u){return function(l,b){u(l,b,y)}},pn=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Os=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=u.call(y,l)}catch(dt){xe=[6,dt],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},Ts=function(){for(var y=0,u=0,l=arguments.length;u<l;u++)y+=arguments[u].length;for(var b=Array(y),S=0,u=0;u<l;u++)for(var C=arguments[u],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b};function _i(y){return pe.a.regex(Ko.keys()[0],new RegExp("(\\s|^)"+Object(rn.p)(y.value)+"\\b"))}var mr={type:"object",required:["kind"],defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:oe.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:oe.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[oe.a("args.schema.apply.first","Always apply the first returned code action."),oe.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),oe.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:oe.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},ss=function(y){ao(u,y);function u(l,b,S,C,$){var Be=y.call(this)||this;return Be._instantiationService=$,Be._editor=l,Be._model=Be._register(new os(Be._editor,b,S,C)),Be._register(Be._model.onDidChangeState(function(ot){return Be.update(ot)})),Be._ui=new Ce(function(){return Be._register(new gr(l,ls.Id,ds.Id,{applyCodeAction:function(xe,dt){return pn(Be,void 0,void 0,function(){return Os(this,function(Nt){switch(Nt.label){case 0:return Nt.trys.push([0,,2,3]),[4,this._applyCodeAction(xe)];case 1:return Nt.sent(),[3,3];case 2:return dt&&this._trigger({type:1,filter:{}}),[7];case 3:return[2]}})})}},Be._instantiationService))}),Be}return u.get=function(l){return l.getContribution(u.ID)},u.prototype.update=function(l){this._ui.getValue().update(l)},u.prototype.showCodeActions=function(l,b,S){return this._ui.getValue().showCodeActionList(l,b,S,{includeDisabledActions:!1})},u.prototype.manualTriggerAtCurrentPosition=function(l,b,S){if(!this._editor.hasModel())return;Jt.get(this._editor).closeMessage();var C=this._editor.getPosition();this._trigger({type:2,filter:b,autoApply:S,context:{notAvailableMessage:l,position:C}})},u.prototype._trigger=function(l){return this._model.trigger(l)},u.prototype._applyCodeAction=function(l){return this._instantiationService.invokeFunction(as,l,this._editor)},u.ID="editor.contrib.quickFixController",u=rs([Dr(1,ve.b),Dr(2,pe.c),Dr(3,Br.a),Dr(4,Tn.a)],u),u}(N.a);function as(y,u,l){return pn(this,void 0,void 0,function(){var b,S,C,$,Be,ot;return Os(this,function(xe){switch(xe.label){case 0:return b=y.get(Oe.a),S=y.get(yn.b),C=y.get(Lr.a),$=y.get(Ft.a),C.publicLog2("codeAction.applyCodeAction",{codeActionTitle:u.title,codeActionKind:u.kind,codeActionIsPreferred:!!u.isPreferred}),u.edit?[4,b.apply(u.edit,{editor:l})]:[3,2];case 1:xe.sent(),xe.label=2;case 2:if(!u.command)return[3,6];xe.label=3;case 3:return xe.trys.push([3,5,,6]),[4,S.executeCommand.apply(S,Ts([u.command.id],u.command.arguments||[]))];case 4:return xe.sent(),[3,6];case 5:return Be=xe.sent(),ot=Ms(Be),$.error(typeof ot=="string"?ot:oe.a("applyCodeActionFailed","An unknown error occurred while applying the code action")),[3,6];case 6:return[2]}})})}function Ms(y){return typeof y=="string"?y:y instanceof Error&&typeof y.message=="string"?y.message:void 0}function jo(y,u,l,b){if(y.hasModel()){var S=ss.get(y);S&&S.manualTriggerAtCurrentPosition(u,l,b)}}var ls=function(y){ao(u,y);function u(){return y.call(this,{id:u.Id,label:oe.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:pe.a.and(j.a.writable,j.a.hasCodeActionsProvider),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|84,weight:100}})||this}return u.prototype.run=function(l,b){return jo(b,oe.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},u.Id="editor.action.quickFix",u}(F.b),$s=function(y){ao(u,y);function u(){return y.call(this,{id:St,precondition:pe.a.and(j.a.writable,j.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:mr}]}})||this}return u.prototype.runEditorCommand=function(l,b,S){var C=W.fromUser(S,{kind:gn.Empty,apply:"ifSingle"});return jo(b,typeof(S==null?void 0:S.kind)=="string"?C.preferred?oe.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",S.kind):oe.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",S.kind):C.preferred?oe.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):oe.a("editor.action.codeAction.noneMessage","No code actions available"),{include:C.kind,includeSourceActions:!0,onlyIncludePreferredActions:C.preferred},C.apply)},u}(F.c),da=function(y){ao(u,y);function u(){return y.call(this,{id:Ge,label:oe.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:pe.a.and(j.a.writable,j.a.hasCodeActionsProvider),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|1024|48,mac:{primary:256|1024|48},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:pe.a.and(j.a.writable,_i(gn.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:mr}]}})||this}return u.prototype.run=function(l,b,S){var C=W.fromUser(S,{kind:gn.Refactor,apply:"never"});return jo(b,typeof(S==null?void 0:S.kind)=="string"?C.preferred?oe.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",S.kind):oe.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",S.kind):C.preferred?oe.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):oe.a("editor.action.refactor.noneMessage","No refactorings available"),{include:gn.Refactor.contains(C.kind)?C.kind:gn.None,onlyIncludePreferredActions:C.preferred},C.apply)},u}(F.b),Js=function(y){ao(u,y);function u(){return y.call(this,{id:de,label:oe.a("source.label","Source Action..."),alias:"Source Action...",precondition:pe.a.and(j.a.writable,j.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:pe.a.and(j.a.writable,_i(gn.Source))},description:{description:"Source Action...",args:[{name:"args",schema:mr}]}})||this}return u.prototype.run=function(l,b,S){var C=W.fromUser(S,{kind:gn.Source,apply:"never"});return jo(b,typeof(S==null?void 0:S.kind)=="string"?C.preferred?oe.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",S.kind):oe.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",S.kind):C.preferred?oe.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):oe.a("editor.action.source.noneMessage","No source actions available"),{include:gn.Source.contains(C.kind)?C.kind:gn.None,includeSourceActions:!0,onlyIncludePreferredActions:C.preferred},C.apply)},u}(F.b),Qs=function(y){ao(u,y);function u(){return y.call(this,{id:X,label:oe.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:pe.a.and(j.a.writable,_i(gn.SourceOrganizeImports)),kbOpts:{kbExpr:j.a.editorTextFocus,primary:1024|512|45,weight:100}})||this}return u.prototype.run=function(l,b){return jo(b,oe.a("editor.action.organize.noneMessage","No organize imports action available"),{include:gn.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")},u}(F.b),ua=function(y){ao(u,y);function u(){return y.call(this,{id:Ue,label:oe.a("fixAll.label","Fix All"),alias:"Fix All",precondition:pe.a.and(j.a.writable,_i(gn.SourceFixAll))})||this}return u.prototype.run=function(l,b){return jo(b,oe.a("fixAll.noneMessage","No fix all action available"),{include:gn.SourceFixAll,includeSourceActions:!0},"ifSingle")},u}(F.b),ds=function(y){ao(u,y);function u(){return y.call(this,{id:u.Id,label:oe.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:pe.a.and(j.a.writable,_i(gn.QuickFix)),kbOpts:{kbExpr:j.a.editorTextFocus,primary:512|1024|84,mac:{primary:2048|512|84},weight:100}})||this}return u.prototype.run=function(l,b){return jo(b,oe.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:gn.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},u.Id="editor.action.autoFix",u}(F.b),wo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),xs=function(){for(var y=0,u=0,l=arguments.length;u<l;u++)y+=arguments[u].length;for(var b=Array(y),S=0,u=0;u<l;u++)for(var C=arguments[u],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b},Ni=R.a,Go=function(){function y(u,l,b){this.range=u,this.color=l,this.provider=b}return y}(),Xo=function(){function y(u,l){this.range=u,this.marker=l}return y}(),us=function(){function y(u,l){this._markerDecorationsService=l,this._editor=u,this._result=[]}return y.prototype.setRange=function(u){this._range=u,this._result=[]},y.prototype.clearResult=function(){this._result=[]},y.prototype.computeAsync=function(u){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);var l=this._editor.getModel();return te.o.has(l)?Xe(l,new D.a(this._range.startLineNumber,this._range.startColumn),u):Promise.resolve([])},y.prototype.computeSync=function(){var u=this;if(!this._editor.hasModel()||!this._range)return[];var l=this._editor.getModel(),b=this._range.startLineNumber;if(b>this._editor.getModel().getLineCount())return[];var S=q.get(this._editor),C=l.getLineMaxColumn(b),$=this._editor.getLineDecorations(b),Be=!1,ot=this._range,xe=$.map(function(dt){var Nt=dt.range.startLineNumber===b?dt.range.startColumn:1,qt=dt.range.endLineNumber===b?dt.range.endColumn:C;if(Nt>ot.startColumn||ot.endColumn>qt)return null;var en=new U.a(ot.startLineNumber,Nt,ot.startLineNumber,qt),un=u._markerDecorationsService.getMarker(l,dt);if(un)return new Xo(en,un);var an=S.getColorData(dt.range.getStartPosition());if(!Be&&an){Be=!0;var Cn=an.colorInfo,In=Cn.color,Nn=Cn.range;return new Go(Nn,In,an.provider)}else{if(Object(K.b)(dt.options.hoverMessage))return null;var ti=dt.options.hoverMessage?Object(Ke.b)(dt.options.hoverMessage):[];return{contents:ti,range:en}}});return Object(Ke.d)(xe)},y.prototype.onResult=function(u,l){l?this._result=u.concat(this._result.sort(function(b,S){return b instanceof Go?-1:S instanceof Go?1:0})):this._result=this._result.concat(u)},y.prototype.getResult=function(){return this._result.slice(0)},y.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},y.prototype._getLoadingMessage=function(){return{range:this._range,contents:[new K.a().appendText(oe.a("modesContentHover.loading","Loading..."))]}},y}(),Ur={type:2,filter:{include:gn.QuickFix}},Yo=function(y){wo(u,y);function u(l,b,S,C,$,Be){Be===void 0&&(Be=Ie.b);var ot=y.call(this,u.ID,l)||this;return ot._themeService=S,ot._keybindingService=C,ot._modeService=$,ot._openerService=Be,ot.renderDisposable=ot._register(new N.d),ot._messages=[],ot._lastRange=null,ot._computer=new us(ot._editor,b),ot._highlightDecorations=[],ot._isChangingDecorations=!1,ot._shouldFocus=!1,ot._colorPicker=null,ot._hoverOperation=new Ye(ot._computer,function(xe){return ot._withResult(xe,!0)},null,function(xe){return ot._withResult(xe,!1)},ot._editor.getOption(44).delay),ot._register(R.n(ot.getDomNode(),R.c.FOCUS,function(){ot._colorPicker&&R.e(ot.getDomNode(),"colorpicker-hover")})),ot._register(R.n(ot.getDomNode(),R.c.BLUR,function(){R.O(ot.getDomNode(),"colorpicker-hover")})),ot._register(l.onDidChangeConfiguration(function(xe){ot._hoverOperation.setHoverTime(ot._editor.getOption(44).delay)})),ot._register(te.y.onDidChange(function(xe){ot.isVisible&&ot._lastRange&&ot._messages.length>0&&(ot._domNode.textContent="",ot._renderMessages(ot._lastRange,ot._messages))})),ot}return u.prototype.dispose=function(){this._hoverOperation.cancel(),y.prototype.dispose.call(this)},u.prototype.onModelDecorationsChanged=function(){if(this._isChangingDecorations)return;this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},u.prototype.startShowingAt=function(l,b,S){if(this._lastRange&&this._lastRange.equalsRange(l))return;if(this._hoverOperation.cancel(),this.isVisible)if(!this._showAtPosition||this._showAtPosition.lineNumber!==l.startLineNumber)this.hide();else{for(var C=[],$=0,Be=this._messages.length;$<Be;$++){var ot=this._messages[$],xe=ot.range;xe&&xe.startColumn<=l.startColumn&&xe.endColumn>=l.endColumn&&C.push(ot)}if(C.length>0){if(cs(C,this._messages))return;this._renderMessages(l,C)}else this.hide()}this._lastRange=l,this._computer.setRange(l),this._shouldFocus=S,this._hoverOperation.start(b)},u.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),y.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},u.prototype.isColorPickerVisible=function(){return!!this._colorPicker},u.prototype._withResult=function(l,b){this._messages=l,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):b&&this.hide()},u.prototype._renderMessages=function(l,b){var S=this;this.renderDisposable.dispose(),this._colorPicker=null;var C=1073741824,$=b[0].range?U.a.lift(b[0].range):null,Be=document.createDocumentFragment(),ot=!0,xe=!1,dt=new N.b,Nt=[];if(b.forEach(function(en){if(!en.range)return;if(C=Math.min(C,en.range.startColumn),$=$?U.a.plusRange($,en.range):U.a.lift(en.range),en instanceof Go){xe=!0;var un=en.color,an=un.red,Cn=un.green,In=un.blue,Nn=un.alpha,ti=new x.c(Math.round(an*255),Math.round(Cn*255),Math.round(In*255),Nn),Dn=new x.a(ti);if(!S._editor.hasModel())return;var di=S._editor.getModel(),qn=new U.a(en.range.startLineNumber,en.range.startColumn,en.range.endLineNumber,en.range.endColumn),Ri={range:en.range,color:en.color},li=new ce(Dn,[],0),mo=new Xt(Be,li,S._editor.getOption(105),S._themeService);g(di,Ri,en.provider,E.a.None).then(function(Li){if(li.colorPresentations=Li||[],!S._editor.hasModel())return;var ui=S._editor.getModel().getValueInRange(en.range);li.guessColorPresentation(Dn,ui);var Hi=function(){var hi,Fi;li.presentation.textEdit?(hi=[li.presentation.textEdit],Fi=new U.a(li.presentation.textEdit.range.startLineNumber,li.presentation.textEdit.range.startColumn,li.presentation.textEdit.range.endLineNumber,li.presentation.textEdit.range.endColumn),Fi=Fi.setEndPosition(Fi.endLineNumber,Fi.startColumn+li.presentation.textEdit.text.length)):(hi=[{identifier:null,range:qn,text:li.presentation.label,forceMoveMarkers:!1}],Fi=qn.setEndPosition(qn.endLineNumber,qn.startColumn+li.presentation.label.length)),S._editor.pushUndoStop(),S._editor.executeEdits("colorpicker",hi),li.presentation.additionalTextEdits&&(hi=xs(li.presentation.additionalTextEdits),S._editor.executeEdits("colorpicker",hi),S.hide()),S._editor.pushUndoStop(),qn=Fi},$i=function(hi){return g(di,{range:qn,color:{red:hi.rgba.r/255,green:hi.rgba.g/255,blue:hi.rgba.b/255,alpha:hi.rgba.a}},en.provider,E.a.None).then(function(Fi){li.colorPresentations=Fi||[]})},Ji=li.onColorFlushed(function(Qi){$i(Qi).then(Hi)}),Vi=li.onDidChangeColor($i);S._colorPicker=mo,S.showAt(qn.getStartPosition(),qn,S._shouldFocus),S.updateContents(Be),S._colorPicker.layout(),S.renderDisposable.value=Object(N.e)(Ji,Vi,mo,dt)})}else en instanceof Xo?(Nt.push(en),ot=!1):en.contents.filter(function(Li){return!Object(K.b)(Li)}).forEach(function(Li){var ui=Ni("div.hover-row.markdown-hover"),Hi=R.p(ui,Ni("div.hover-contents")),$i=dt.add(new Pe.a(S._editor,S._modeService,S._openerService));dt.add($i.onDidRenderCodeBlock(function(){Hi.className="hover-contents code-hover-contents",S.onContentsChange()}));var Ji=dt.add($i.render(Li));Hi.appendChild(Ji.element),Be.appendChild(ui),ot=!1})}),Nt.length){Nt.forEach(function(en){return Be.appendChild(S.renderMarkerHover(en))});var qt=Nt.length===1?Nt[0]:Nt.sort(function(en,un){return ve.c.compare(en.marker.severity,un.marker.severity)})[0];Be.appendChild(this.renderMarkerStatusbar(qt))}!xe&&!ot&&(this.showAt(new D.a(l.startLineNumber,C),$,this._shouldFocus),this.updateContents(Be)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,$?[{range:$,options:u._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},u.prototype.renderMarkerHover=function(l){var b=this,S=Ni("div.hover-row"),C=R.p(S,Ni("div.marker.hover-contents")),$=l.marker,Be=$.source,ot=$.message,xe=$.code,dt=$.relatedInformation;this._editor.applyFontInfo(C);var Nt=R.p(C,Ni("span"));if(Nt.style.whiteSpace="pre-wrap",Nt.innerText=ot,Be||xe){if(typeof xe=="string"){var qt=R.p(C,Ni("span"));qt.style.opacity="0.6",qt.style.paddingLeft="6px",qt.innerText=Be&&xe?Be+"("+xe+")":Be||"("+xe+")"}else if(xe){var en=Ni("span");if(Be){var un=R.p(en,Ni("span"));un.innerText=Be}this._codeLink=R.p(en,Ni("a.code-link")),this._codeLink.setAttribute("href",xe.link.toString()),this._codeLink.onclick=function(Li){b._openerService.open(xe.link),Li.preventDefault(),Li.stopPropagation()};var an=R.p(this._codeLink,Ni("span"));an.innerText=xe.value;var qt=R.p(C,en);qt.style.opacity="0.6",qt.style.paddingLeft="6px"}}if(Object(Ke.q)(dt))for(var Cn=function(Li,ui,Hi,$i){var Ji=R.p(C,Ni("div"));Ji.style.marginTop="8px";var Vi=R.p(Ji,Ni("a"));Vi.innerText=Object(Te.b)(ui)+"("+Hi+", "+$i+"): ",Vi.style.cursor="pointer",Vi.onclick=function(hi){hi.stopPropagation(),hi.preventDefault(),b._openerService&&b._openerService.open(ui.with({fragment:Hi+","+$i}),{fromUserGesture:!0}).catch(z.e)};var Qi=R.p(Ji,Ni("span"));Qi.innerText=Li,In._editor.applyFontInfo(Qi)},In=this,Nn=0,ti=dt;Nn<ti.length;Nn++){var Dn=ti[Nn],di=Dn.message,qn=Dn.resource,Ri=Dn.startLineNumber,li=Dn.startColumn;Cn(di,qn,Ri,li)}return S},u.prototype.renderMarkerStatusbar=function(l){var b=this,S=Ni("div.hover-row.status-bar"),C=new N.b,$=R.p(S,Ni("div.actions"));(l.marker.severity===ve.c.Error||l.marker.severity===ve.c.Warning||l.marker.severity===ve.c.Info)&&C.add(this.renderAction($,{label:oe.a("peek problem","Peek Problem"),commandId:xt.ID,run:function(){b.hide(),lt.get(b._editor).show(l.marker),b._editor.focus()}}));var Be=R.p($,Ni("div"));Be.style.opacity="0",Be.style.transition="opacity 0.2s",setTimeout(function(){return Be.style.opacity="1"},200),Be.textContent=oe.a("checkingForQuickFixes","Checking for quick fixes..."),C.add(Object(N.h)(function(){return Be.remove()}));var ot=this.getCodeActions(l.marker);return C.add(Object(N.h)(function(){return ot.cancel()})),ot.then(function(xe){if(Be.style.transition="",Be.style.opacity="1",!xe.validActions.length){xe.dispose(),Be.textContent=oe.a("noQuickFixes","No quick fixes available");return}Be.remove();var dt=!1;C.add(Object(N.h)(function(){dt||xe.dispose()})),C.add(b.renderAction($,{label:oe.a("quick fixes","Quick Fix..."),commandId:ls.Id,run:function(qt){dt=!0;var en=ss.get(b._editor),un=R.B(qt);en.showCodeActions(Ur,xe,{x:un.left+6,y:un.top+un.height+6})}}))}),this.renderDisposable.value=C,S},u.prototype.getCodeActions=function(l){var b=this;return Object(m.f)(function(S){return et(b._editor.getModel(),new U.a(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn),Ur,S)})},u.prototype.renderAction=function(l,b){var S=R.p(l,Ni("div.action-container")),C=R.p(S,Ni("a.action"));b.iconClass&&R.p(C,Ni("span.icon."+b.iconClass));var $=R.p(C,Ni("span"));$.textContent=b.label;var Be=this._keybindingService.lookupKeybinding(b.commandId);return Be&&($.title=b.label+" ("+Be.getLabel()+")"),R.i(S,R.c.CLICK,function(ot){ot.stopPropagation(),ot.preventDefault(),b.run(S)})},u.ID="editor.contrib.modesContentHoverWidget",u._DECORATION_OPTIONS=A.a.register({className:"hoverHighlight"}),u}(k);function cs(y,u){if(!y&&u||y&&!u||y.length!==u.length)return!1;for(var l=0;l<y.length;l++){var b=y[l],S=u[l];if(b instanceof Xo&&S instanceof Xo)return ve.a.makeKey(b.marker)===ve.a.makeKey(S.marker);if(b instanceof Go||S instanceof Go)return!1;if(b instanceof Xo||S instanceof Xo)return!1;if(!Object(K.c)(b.contents,S.contents))return!1}return!0}Object(fe.e)(function(y,u){var l=y.getColor(se.cc);l&&u.addRule(".monaco-editor-hover .hover-contents a.code-link span:hover { color: "+l+"; }")});var nr=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),qs=function(){function y(u){this._editor=u,this._lineNumber=-1,this._result=[]}return y.prototype.setLineNumber=function(u){this._lineNumber=u,this._result=[]},y.prototype.clearResult=function(){this._result=[]},y.prototype.computeSync=function(){var u=function(xe){return{value:xe}},l=this._editor.getLineDecorations(this._lineNumber),b=[];if(!l)return b;for(var S=0,C=l;S<C.length;S++){var $=C[S];if(!$.options.glyphMarginClassName)continue;var Be=$.options.glyphMarginHoverMessage;if(!Be||Object(K.b)(Be))continue;b.push.apply(b,Object(Ke.b)(Be).map(u))}return b},y.prototype.onResult=function(u,l){this._result=this._result.concat(u)},y.prototype.getResult=function(){return this._result},y.prototype.getResultWithLoadingMessage=function(){return this.getResult()},y}(),vr=function(y){nr(u,y);function u(l,b,S){S===void 0&&(S=Ie.b);var C=y.call(this,u.ID,l)||this;return C._renderDisposeables=C._register(new N.b),C._messages=[],C._lastLineNumber=-1,C._markdownRenderer=C._register(new Pe.a(C._editor,b,S)),C._computer=new qs(C._editor),C._hoverOperation=new Ye(C._computer,function($){return C._withResult($)},void 0,function($){return C._withResult($)},300),C}return u.prototype.dispose=function(){this._hoverOperation.cancel(),y.prototype.dispose.call(this)},u.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))},u.prototype.startShowingAt=function(l){if(this._lastLineNumber===l)return;this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=l,this._computer.setLineNumber(l),this._hoverOperation.start(0)},u.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),y.prototype.hide.call(this)},u.prototype._withResult=function(l){this._messages=l,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},u.prototype._renderMessages=function(l,b){this._renderDisposeables.clear();for(var S=document.createDocumentFragment(),C=0,$=b;C<$.length;C++){var Be=$[C],ot=this._markdownRenderer.render(Be.value);this._renderDisposeables.add(ot),S.appendChild(Object(R.a)("div.hover-row",void 0,ot.element))}this.updateContents(S),this.showAt(l)},u.ID="editor.contrib.modesGlyphHoverWidget",u}(ee),hs=r("XfmC"),ea=r("1W4+"),As=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Ns=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=u.call(y,l)}catch(dt){xe=[6,dt],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}};function Zo(y,u,l,b){var S=l.ordered(y),C=S.map(function($){return Promise.resolve(b($,y,u)).then(void 0,function(Be){Object(z.f)(Be);return})});return Promise.all(C).then(Ke.m).then(Ke.d)}function Vr(y,u,l){return Zo(y,u,te.f,function(b,S,C){return b.provideDefinition(S,C,l)})}function fs(y,u,l){return Zo(y,u,te.e,function(b,S,C){return b.provideDeclaration(S,C,l)})}function ps(y,u,l){return Zo(y,u,te.p,function(b,S,C){return b.provideImplementation(S,C,l)})}function zr(y,u,l){return Zo(y,u,te.z,function(b,S,C){return b.provideTypeDefinition(S,C,l)})}function yr(y,u,l,b){var S=this;return Zo(y,u,te.t,function(C,$,Be){return As(S,void 0,void 0,function(){var ot,xe;return Ns(this,function(dt){switch(dt.label){case 0:return[4,C.provideReferences($,Be,{includeDeclaration:!0},b)];case 1:return ot=dt.sent(),!l||!ot||ot.length!==2?[2,ot]:[4,C.provideReferences($,Be,{includeDeclaration:!1},b)];case 2:return xe=dt.sent(),xe&&xe.length===1?[2,xe]:[2,ot]}})})})}Object(F.k)("_executeDefinitionProvider",function(y,u){return Vr(y,u,E.a.None)}),Object(F.k)("_executeDeclarationProvider",function(y,u){return fs(y,u,E.a.None)}),Object(F.k)("_executeImplementationProvider",function(y,u){return ps(y,u,E.a.None)}),Object(F.k)("_executeTypeDefinitionProvider",function(y,u){return zr(y,u,E.a.None)}),Object(F.k)("_executeReferenceProvider",function(y,u){return yr(y,u,!1,E.a.None)});var Or=r("AhSp"),Tr=r("S7i+"),Hr=r("UO9b"),gs=r("41id"),Wo=function(){function y(u,l,b,S){this.isProviderFirst=u,this.parent=l,this._range=b,this._rangeCallback=S,this.id=sn.b.nextId()}return Object.defineProperty(y.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"range",{get:function(){return this._range},set:function(l){this._range=l,this._rangeCallback(this)},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"ariaMessage",{get:function(){return Object(oe.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(Te.b)(this.uri),this.range.startLineNumber,this.range.startColumn)},enumerable:!0,configurable:!0}),y}(),Rs=function(){function y(u){this._modelReference=u}return y.prototype.dispose=function(){this._modelReference.dispose()},y.prototype.preview=function(u,l){l===void 0&&(l=8);var b=this._modelReference.object.textEditorModel;if(!b)return;var S=u.startLineNumber,C=u.startColumn,$=u.endLineNumber,Be=u.endColumn,ot=b.getWordUntilPosition({lineNumber:S,column:C-l}),xe=new U.a(S,ot.startColumn,S,C),dt=new U.a($,Be,$,1073741824),Nt=b.getValueInRange(xe).replace(/^\s+/,""),qt=b.getValueInRange(u),en=b.getValueInRange(dt).replace(/\s+$/,"");return{value:Nt+qt+en,highlight:{start:Nt.length,end:Nt.length+qt.length}}},y}(),ho=function(){function y(u,l){this.parent=u,this.uri=l,this.children=[]}return y.prototype.dispose=function(){Object(N.f)(this._preview),this._preview=void 0},Object.defineProperty(y.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"ariaMessage",{get:function(){var l=this.children.length;return l===1?Object(oe.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(Te.b)(this.uri),this.uri.fsPath):Object(oe.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",l,Object(Te.b)(this.uri),this.uri.fsPath)},enumerable:!0,configurable:!0}),y.prototype.resolve=function(u){var l=this;return this._resolved?Promise.resolve(this):Promise.resolve(u.createModelReference(this.uri).then(function(b){var S=b.object;if(!S)throw b.dispose(),new Error;return l._preview=new Rs(b),l._resolved=!0,l},function(b){return l.children.length=0,l._resolved=!0,l._loadFailure=b,l}))},y}(),oi=function(){function y(u,l){var b=this;this._disposables=new N.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new Z.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=u,this._title=l;var S=u[0];u.sort(y._compareReferences);for(var C,$=0,Be=u;$<Be.length;$++){var ot=Be[$];if((!C||C.uri.toString()!==ot.uri.toString())&&(C=new ho(this,ot.uri),this.groups.push(C)),C.children.length===0||!U.a.equalsRange(ot.range,C.children[C.children.length-1].range)){var xe=new Wo(S===ot,C,ot.targetSelectionRange||ot.range,function(dt){return b._onDidChangeReferenceRange.fire(dt)});this.references.push(xe),C.children.push(xe)}}}return y.prototype.dispose=function(){Object(N.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0},y.prototype.clone=function(){return new y(this._links,this._title)},Object.defineProperty(y.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"isEmpty",{get:function(){return this.groups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"ariaMessage",{get:function(){return this.isEmpty?Object(oe.a)("aria.result.0","No results found"):this.references.length===1?Object(oe.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?Object(oe.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(oe.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)},enumerable:!0,configurable:!0}),y.prototype.nextOrPreviousReference=function(u,l){var b=u.parent,S=b.children.indexOf(u),C=b.children.length,$=b.parent.groups.length;return $===1||l&&S+1<C||!l&&S>0?(l?S=(S+1)%C:S=(S+C-1)%C,b.children[S]):(S=b.parent.groups.indexOf(b),l?(S=(S+1)%$,b.parent.groups[S].children[0]):(S=(S+$-1)%$,b.parent.groups[S].children[b.parent.groups[S].children.length-1]))},y.prototype.nearestReference=function(u,l){var b=this.references.map(function(S,C){return{idx:C,prefixLen:rn.c(S.uri.toString(),u.toString()),offsetDist:Math.abs(S.range.startLineNumber-l.lineNumber)*100+Math.abs(S.range.startColumn-l.column)}}).sort(function(S,C){return S.prefixLen>C.prefixLen?-1:S.prefixLen<C.prefixLen?1:S.offsetDist<C.offsetDist?-1:S.offsetDist>C.offsetDist?1:0})[0];return b?this.references[b.idx]:void 0},y.prototype.referenceAt=function(u,l){for(var b=0,S=this.references;b<S.length;b++){var C=S[b];if(C.uri.toString()===u.toString()&&U.a.containsPosition(C.range,l))return C}return},y.prototype.firstReference=function(){for(var u=0,l=this.references;u<l.length;u++){var b=l[u];if(b.isProviderFirst)return b}return this.references[0]},y._compareReferences=function(u,l){return rn.e(u.uri.toString(),l.uri.toString())||U.a.compareRangesUsingStarts(u.range,l.range)},y}(),ta=r("sbF4"),Is=r("Ojgo"),Ps=r("WKDz"),ms=r("fptj"),Mr={badgeBackground:x.a.fromHex("#4D4D4D"),badgeForeground:x.a.fromHex("#FFFFFF")},Fs=function(){function y(u,l){this.count=0,this.options=l||Object.create(null),Object(Gt.g)(this.options,Mr,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(R.p)(u,Object(R.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}return y.prototype.setCount=function(u){this.count=u,this.render()},y.prototype.setTitleFormat=function(u){this.titleFormat=u,this.render()},y.prototype.render=function(){this.element.textContent=Object(rn.r)(this.countFormat,this.count),this.element.title=Object(rn.r)(this.titleFormat,this.count),this.applyStyles()},y.prototype.style=function(u){this.badgeBackground=u.badgeBackground,this.badgeForeground=u.badgeForeground,this.badgeBorder=u.badgeBorder,this.applyStyles()},y.prototype.applyStyles=function(){if(this.element){var u=this.badgeBackground?this.badgeBackground.toString():"",l=this.badgeForeground?this.badgeForeground.toString():"",b=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=u,this.element.style.color=l,this.element.style.borderWidth=b?"1px":"",this.element.style.borderStyle=b?"solid":"",this.element.style.borderColor=b}},y}(),ir=r("zqsH"),ks=r("7wrl"),si=r("VV9f"),js=r("WWv/"),na=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Mo=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},or=function(y,u){return function(l,b){u(l,b,y)}},rr=function(){function y(u){this._resolverService=u}return y.prototype.hasChildren=function(u){return u instanceof oi?!0:u instanceof ho&&!u.failure},y.prototype.getChildren=function(u){if(u instanceof oi)return u.groups;if(u instanceof ho)return u.resolve(this._resolverService).then(function(l){return l.children});throw new Error("bad tree")},y=Mo([or(0,Or.a)],y),y}(),no=function(){function y(){}return y.prototype.getHeight=function(){return 23},y.prototype.getTemplateId=function(u){return u instanceof ho?xr.id:sr.id},y}(),Co=function(){function y(u){this._keybindingService=u}return y.prototype.getKeyboardNavigationLabel=function(u){if(u instanceof Wo){var l=u.parent.preview,b=l&&l.preview(u.range);if(b)return b.value}return Object(Te.b)(u.uri)},y=Mo([or(0,O.a)],y),y}(),wi=function(){function y(){}return y.prototype.getId=function(u){return u instanceof Wo?u.id:u.uri},y}(),ki=function(y){na(u,y);function u(l,b,S){var C=y.call(this)||this;C._uriLabel=b;var $=document.createElement("div");return R.e($,"reference-file"),C.file=C._register(new Ps.a($,{supportHighlights:!0})),C.badge=new Fs(R.p($,R.a(".count"))),C._register(Object(ks.a)(C.badge,S)),l.appendChild($),C}return u.prototype.set=function(l,b){var S=Object(Te.d)(l.uri);this.file.setLabel(Object(Et.a)(l.uri),this._uriLabel.getUriLabel(S,{relative:!0}),{title:this._uriLabel.getUriLabel(l.uri),matches:b});var C=l.children.length;this.badge.setCount(C),l.failure?this.badge.setTitleFormat(Object(oe.a)("referencesFailre","Failed to resolve file.")):C>1?this.badge.setTitleFormat(Object(oe.a)("referencesCount","{0} references",C)):this.badge.setTitleFormat(Object(oe.a)("referenceCount","{0} reference",C))},u=Mo([or(1,ir.a),or(2,fe.c)],u),u}(N.a),xr=function(){function y(u){this._instantiationService=u,this.templateId=y.id}return y.prototype.renderTemplate=function(u){return this._instantiationService.createInstance(ki,u)},y.prototype.renderElement=function(u,l,b){b.set(u.element,Object(si.c)(u.filterData))},y.prototype.disposeTemplate=function(u){u.dispose()},y.id="FileReferencesRenderer",y=Mo([or(0,Tn.a)],y),y}(),Ar=function(){function y(u){this.label=new js.a(u,!1)}return y.prototype.set=function(u,l){var b=u.parent.preview,S=b&&b.preview(u.range);if(!S)this.label.set(Object(Te.b)(u.uri)+":"+(u.range.startLineNumber+1)+":"+(u.range.startColumn+1));else{var C=S.value,$=S.highlight;l&&!si.a.isDefault(l)?(R.X(this.label.element,"referenceMatch",!1),this.label.set(C,Object(si.c)(l))):(R.X(this.label.element,"referenceMatch",!0),this.label.set(C,[$]))}},y}(),sr=function(){function y(){this.templateId=y.id}return y.prototype.renderTemplate=function(u){return new Ar(u)},y.prototype.renderElement=function(u,l,b){b.set(u.element,u.filterData)},y.prototype.disposeTemplate=function(){},y.id="OneReferenceRenderer",y}(),Kr=function(){function y(){}return y.prototype.getAriaLabel=function(u){return u.ariaMessage},y}(),Nr=r("rjb4"),ar=r("cWK8"),_o=r("yqRl"),Lo=r("epcv"),vs=r("6zAk"),fo=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),lr=function(){for(var y=0,u=0,l=arguments.length;u<l;u++)y+=arguments[u].length;for(var b=Array(y),S=0,u=0;u<l;u++)for(var C=arguments[u],$=0,Be=C.length;$<Be;$++,S++)b[S]=C[$];return b},Ws={separatorBorder:x.a.transparent},Bo=function(){function y(u,l,b,S){this.container=u,this.view=l,this.disposable=S,this._cachedVisibleSize=void 0,typeof b=="number"?(this._size=b,this._cachedVisibleSize=void 0,R.e(u,"visible")):(this._size=0,this._cachedVisibleSize=b.cachedVisibleSize)}return Object.defineProperty(y.prototype,"size",{get:function(){return this._size},set:function(l){this._size=l},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"visible",{get:function(){return typeof this._cachedVisibleSize=="undefined"},enumerable:!0,configurable:!0}),y.prototype.setVisible=function(u,l){if(u===this.visible)return;u?(this.size=Object(Lo.a)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof l=="number"?l:this.size,this.size=0),R.X(this.container,"visible",u),this.view.setVisible&&this.view.setVisible(u)},Object.defineProperty(y.prototype,"minimumSize",{get:function(){return this.visible?this.view.minimumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"viewMinimumSize",{get:function(){return this.view.minimumSize},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"maximumSize",{get:function(){return this.visible?this.view.maximumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"viewMaximumSize",{get:function(){return this.view.maximumSize},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"priority",{get:function(){return this.view.priority},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"snap",{get:function(){return!!this.view.snap},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"enabled",{set:function(l){this.container.style.pointerEvents=l?null:"none"},enumerable:!0,configurable:!0}),y.prototype.layout=function(u,l){this.layoutContainer(u),this.view.layout(this.size,u,l)},y.prototype.dispose=function(){return this.disposable.dispose(),this.view},y}(),Eo=function(y){fo(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype.layoutContainer=function(l){this.container.style.top=l+"px",this.container.style.height=this.size+"px"},u}(Bo),Bs=function(y){fo(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype.layoutContainer=function(l){this.container.style.left=l+"px",this.container.style.width=this.size+"px"},u}(Bo),po;(function(y){y[y.Idle=0]="Idle",y[y.Busy=1]="Busy"})(po||(po={}));var dr;(function(y){y.Distribute={type:"distribute"};function u(b){return{type:"split",index:b}}y.Split=u;function l(b){return{type:"invisible",cachedVisibleSize:b}}y.Invisible=l})(dr||(dr={}));var Us=function(y){fo(u,y);function u(l,b){b===void 0&&(b={});var S=y.call(this)||this;return S.size=0,S.contentSize=0,S.proportions=void 0,S.viewItems=[],S.sashItems=[],S.state=po.Idle,S._onDidSashChange=S._register(new Z.a),S.onDidSashChange=S._onDidSashChange.event,S._onDidSashReset=S._register(new Z.a),S._startSnappingEnabled=!0,S._endSnappingEnabled=!0,S.orientation=_o.k(b.orientation)?0:b.orientation,S.inverseAltBehavior=!!b.inverseAltBehavior,S.proportionalLayout=_o.k(b.proportionalLayout)?!0:!!b.proportionalLayout,S.el=document.createElement("div"),R.e(S.el,"monaco-split-view2"),R.e(S.el,S.orientation===0?"vertical":"horizontal"),l.appendChild(S.el),S.sashContainer=R.p(S.el,R.a(".sash-container")),S.viewContainer=R.p(S.el,R.a(".split-view-container")),S.style(b.styles||Ws),b.descriptor&&(S.size=b.descriptor.size,b.descriptor.views.forEach(function(C,$){var Be=_o.k(C.visible)||C.visible?C.size:{type:"invisible",cachedVisibleSize:C.size},ot=C.view;S.doAddView(ot,Be,$,!0)}),S.contentSize=S.viewItems.reduce(function(C,$){return C+$.size},0),S.saveProportions()),S}return Object.defineProperty(u.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(b){for(var S=0,C=this.sashItems;S<C.length;S++){var $=C[S];$.sash.orthogonalStartSash=b}this._orthogonalStartSash=b},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(b){for(var S=0,C=this.sashItems;S<C.length;S++){var $=C[S];$.sash.orthogonalEndSash=b}this._orthogonalEndSash=b},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"startSnappingEnabled",{get:function(){return this._startSnappingEnabled},set:function(b){if(this._startSnappingEnabled===b)return;this._startSnappingEnabled=b,this.updateSashEnablement()},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"endSnappingEnabled",{get:function(){return this._endSnappingEnabled},set:function(b){if(this._endSnappingEnabled===b)return;this._endSnappingEnabled=b,this.updateSashEnablement()},enumerable:!0,configurable:!0}),u.prototype.style=function(l){l.separatorBorder.isTransparent()?(R.O(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(R.e(this.el,"separator-border"),this.el.style.setProperty("--separator-border",l.separatorBorder.toString()))},u.prototype.addView=function(l,b,S){S===void 0&&(S=this.viewItems.length),this.doAddView(l,b,S,!1)},u.prototype.layout=function(l,b){var S=this,C=Math.max(this.size,this.contentSize);if(this.size=l,this.layoutContext=b,this.proportions)for(var xe=0;xe<this.viewItems.length;xe++){var dt=this.viewItems[xe];dt.size=Object(Lo.a)(Math.round(this.proportions[xe]*l),dt.minimumSize,dt.maximumSize)}else{var $=Object(Ke.u)(this.viewItems.length),Be=$.filter(function(Nt){return S.viewItems[Nt].priority===1}),ot=$.filter(function(Nt){return S.viewItems[Nt].priority===2});this.resize(this.viewItems.length-1,l-C,void 0,Be,ot)}this.distributeEmptySpace(),this.layoutViews()},u.prototype.saveProportions=function(){var l=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(function(b){return b.size/l.contentSize}))},u.prototype.onSashStart=function(l){for(var b=this,S=l.sash,C=l.start,$=l.alt,Be=0,ot=this.viewItems;Be<ot.length;Be++){var xe=ot[Be];xe.enabled=!1}var dt=Object(Ke.k)(this.sashItems,function(en){return en.sash===S}),Nt=Object(N.e)(Object(vs.a)(document.body,"keydown")(function(en){return qt(b.sashDragState.current,en.altKey)}),Object(vs.a)(document.body,"keyup")(function(){return qt(b.sashDragState.current,!1)})),qt=function(un,an){var Cn=b.viewItems.map(function(Fi){return Fi.size}),In=Number.NEGATIVE_INFINITY,Nn=Number.POSITIVE_INFINITY;if(b.inverseAltBehavior&&(an=!an),an){var ti=dt===b.sashItems.length-1;if(ti){var Dn=b.viewItems[dt];In=(Dn.minimumSize-Dn.size)/2,Nn=(Dn.maximumSize-Dn.size)/2}else{var Dn=b.viewItems[dt+1];In=(Dn.size-Dn.maximumSize)/2,Nn=(Dn.size-Dn.minimumSize)/2}}var di,qn;if(!an){var Ri=Object(Ke.u)(dt,-1),li=Object(Ke.u)(dt+1,b.viewItems.length),mo=Ri.reduce(function(Fi,Ki){return Fi+(b.viewItems[Ki].minimumSize-Cn[Ki])},0),Li=Ri.reduce(function(Fi,Ki){return Fi+(b.viewItems[Ki].viewMaximumSize-Cn[Ki])},0),ui=li.length===0?Number.POSITIVE_INFINITY:li.reduce(function(Fi,Ki){return Fi+(Cn[Ki]-b.viewItems[Ki].minimumSize)},0),Hi=li.length===0?Number.NEGATIVE_INFINITY:li.reduce(function(Fi,Ki){return Fi+(Cn[Ki]-b.viewItems[Ki].viewMaximumSize)},0),$i=Math.max(mo,Hi),Ji=Math.min(ui,Li),Vi=b.findFirstSnapIndex(Ri),Qi=b.findFirstSnapIndex(li);if(typeof Vi=="number"){var Dn=b.viewItems[Vi],hi=Math.floor(Dn.viewMinimumSize/2);di={index:Vi,limitDelta:Dn.visible?$i-hi:$i+hi,size:Dn.size}}if(typeof Qi=="number"){var Dn=b.viewItems[Qi],hi=Math.floor(Dn.viewMinimumSize/2);qn={index:Qi,limitDelta:Dn.visible?Ji+hi:Ji-hi,size:Dn.size}}}b.sashDragState={start:un,current:un,index:dt,sizes:Cn,minDelta:In,maxDelta:Nn,alt:an,snapBefore:di,snapAfter:qn,disposable:Nt}};qt(C,$)},u.prototype.onSashChange=function(l){var b=l.current,S=this.sashDragState,C=S.index,$=S.start,Be=S.sizes,ot=S.alt,xe=S.minDelta,dt=S.maxDelta,Nt=S.snapBefore,qt=S.snapAfter;this.sashDragState.current=b;var en=b-$,un=this.resize(C,en,Be,void 0,void 0,xe,dt,Nt,qt);if(ot){var an=C===this.sashItems.length-1,Cn=this.viewItems.map(function(qn){return qn.size}),In=an?C:C+1,Nn=this.viewItems[In],ti=Nn.size-Nn.maximumSize,Dn=Nn.size-Nn.minimumSize,di=an?C-1:C+1;this.resize(di,-un,Cn,void 0,void 0,ti,Dn)}this.distributeEmptySpace(),this.layoutViews()},u.prototype.onSashEnd=function(l){this._onDidSashChange.fire(l),this.sashDragState.disposable.dispose(),this.saveProportions();for(var b=0,S=this.viewItems;b<S.length;b++){var C=S[b];C.enabled=!0}},u.prototype.onViewChange=function(l,b){var S=this.viewItems.indexOf(l);if(S<0||S>=this.viewItems.length)return;b=typeof b=="number"?b:l.size,b=Object(Lo.a)(b,l.minimumSize,l.maximumSize),this.inverseAltBehavior&&S>0?(this.resize(S-1,Math.floor((l.size-b)/2)),this.distributeEmptySpace(),this.layoutViews()):(l.size=b,this.relayout([S],void 0))},u.prototype.resizeView=function(l,b){var S=this;if(this.state!==po.Idle)throw new Error("Cant modify splitview");if(this.state=po.Busy,l<0||l>=this.viewItems.length)return;var C=Object(Ke.u)(this.viewItems.length).filter(function(xe){return xe!==l}),$=lr(C.filter(function(xe){return S.viewItems[xe].priority===1}),[l]),Be=C.filter(function(xe){return S.viewItems[xe].priority===2}),ot=this.viewItems[l];b=Math.round(b),b=Object(Lo.a)(b,ot.minimumSize,Math.min(ot.maximumSize,this.size)),ot.size=b,this.relayout($,Be),this.state=po.Idle},u.prototype.distributeViewSizes=function(){for(var l=this,b=[],S=0,C=0,$=this.viewItems;C<$.length;C++){var Be=$[C];Be.maximumSize-Be.minimumSize>0&&(b.push(Be),S+=Be.size)}for(var ot=Math.floor(S/b.length),xe=0,dt=b;xe<dt.length;xe++){var Be=dt[xe];Be.size=Object(Lo.a)(ot,Be.minimumSize,Be.maximumSize)}var Nt=Object(Ke.u)(this.viewItems.length),qt=Nt.filter(function(un){return l.viewItems[un].priority===1}),en=Nt.filter(function(un){return l.viewItems[un].priority===2});this.relayout(qt,en)},u.prototype.getViewSize=function(l){return l<0||l>=this.viewItems.length?-1:this.viewItems[l].size},u.prototype.doAddView=function(l,b,S,C){var $=this;if(S===void 0&&(S=this.viewItems.length),this.state!==po.Idle)throw new Error("Cant modify splitview");this.state=po.Busy;var Be=R.a(".split-view-view");S===this.viewItems.length?this.viewContainer.appendChild(Be):this.viewContainer.insertBefore(Be,this.viewContainer.children.item(S));var ot=l.onDidChange(function(ui){return $.onViewChange(qt,ui)}),xe=Object(N.h)(function(){return $.viewContainer.removeChild(Be)}),dt=Object(N.e)(ot,xe),Nt;typeof b=="number"?Nt=b:b.type==="split"?Nt=this.getViewSize(b.index)/2:b.type==="invisible"?Nt={cachedVisibleSize:b.cachedVisibleSize}:Nt=l.minimumSize;var qt=this.orientation===0?new Eo(Be,l,Nt,dt):new Bs(Be,l,Nt,dt);if(this.viewItems.splice(S,0,qt),this.viewItems.length>1){var en=this.orientation===0?1:0,un=this.orientation===0?{getHorizontalSashTop:function(Hi){return $.getSashPosition(Hi)}}:{getVerticalSashLeft:function(Hi){return $.getSashPosition(Hi)}},an=new nn.a(this.sashContainer,un,{orientation:en,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),Cn=this.orientation===0?function(ui){return{sash:an,start:ui.startY,current:ui.currentY,alt:ui.altKey}}:function(ui){return{sash:an,start:ui.startX,current:ui.currentX,alt:ui.altKey}},In=Z.b.map(an.onDidStart,Cn),Nn=In(this.onSashStart,this),ti=Z.b.map(an.onDidChange,Cn),Dn=ti(this.onSashChange,this),di=Z.b.map(an.onDidEnd,function(){return Object(Ke.k)($.sashItems,function(ui){return ui.sash===an})}),qn=di(this.onSashEnd,this),Ri=an.onDidReset(function(){var ui=Object(Ke.k)($.sashItems,function(Qi){return Qi.sash===an}),Hi=Object(Ke.u)(ui,-1),$i=Object(Ke.u)(ui+1,$.viewItems.length),Ji=$.findFirstSnapIndex(Hi),Vi=$.findFirstSnapIndex($i);if(typeof Ji=="number"&&!$.viewItems[Ji].visible)return;if(typeof Vi=="number"&&!$.viewItems[Vi].visible)return;$._onDidSashReset.fire(ui)}),li=Object(N.e)(Nn,Dn,qn,Ri,an),mo={sash:an,disposable:li};this.sashItems.splice(S-1,0,mo)}Be.appendChild(l.element);var Li;typeof b!="number"&&b.type==="split"&&(Li=[b.index]),C||this.relayout([S],Li),this.state=po.Idle,!C&&typeof b!="number"&&b.type==="distribute"&&this.distributeViewSizes()},u.prototype.relayout=function(l,b){var S=this.viewItems.reduce(function(C,$){return C+$.size},0);this.resize(this.viewItems.length-1,this.size-S,void 0,l,b),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},u.prototype.resize=function(l,b,S,C,$,Be,ot,xe,dt){var Nt=this;if(S===void 0&&(S=this.viewItems.map(function(io){return io.size})),Be===void 0&&(Be=Number.NEGATIVE_INFINITY),ot===void 0&&(ot=Number.POSITIVE_INFINITY),l<0||l>=this.viewItems.length)return 0;var qt=Object(Ke.u)(l,-1),en=Object(Ke.u)(l+1,this.viewItems.length);if($)for(var un=0,an=$;un<an.length;un++){var Cn=an[un];Object(Ke.t)(qt,Cn),Object(Ke.t)(en,Cn)}if(C)for(var In=0,Nn=C;In<Nn.length;In++){var ti=Nn[In];Object(Ke.s)(qt,ti),Object(Ke.s)(en,ti)}var Dn=qt.map(function(io){return Nt.viewItems[io]}),di=qt.map(function(io){return S[io]}),qn=en.map(function(io){return Nt.viewItems[io]}),Ri=en.map(function(io){return S[io]}),li=qt.reduce(function(io,Ro){return io+(Nt.viewItems[Ro].minimumSize-S[Ro])},0),mo=qt.reduce(function(io,Ro){return io+(Nt.viewItems[Ro].maximumSize-S[Ro])},0),Li=en.length===0?Number.POSITIVE_INFINITY:en.reduce(function(io,Ro){return io+(S[Ro]-Nt.viewItems[Ro].minimumSize)},0),ui=en.length===0?Number.NEGATIVE_INFINITY:en.reduce(function(io,Ro){return io+(S[Ro]-Nt.viewItems[Ro].maximumSize)},0),Hi=Math.max(li,ui,Be),$i=Math.min(Li,mo,ot),Ji=!1;if(xe){var Vi=this.viewItems[xe.index],Qi=b>=xe.limitDelta;Ji=Qi!==Vi.visible,Vi.setVisible(Qi,xe.size)}if(!Ji&&dt){var Vi=this.viewItems[dt.index],Qi=b<dt.limitDelta;Ji=Qi!==Vi.visible,Vi.setVisible(Qi,dt.size)}if(Ji)return this.resize(l,b,S,C,$,Be,ot);b=Object(Lo.a)(b,Hi,$i);for(var hi=0,Fi=b;hi<Dn.length;hi++){var Ki=Dn[hi],es=Object(Lo.a)(di[hi]+Fi,Ki.minimumSize,Ki.maximumSize),ws=es-di[hi];Fi-=ws,Ki.size=es}for(var hi=0,ia=b;hi<qn.length;hi++){var Ki=qn[hi],es=Object(Lo.a)(Ri[hi]-ia,Ki.minimumSize,Ki.maximumSize),ws=es-Ri[hi];ia+=ws,Ki.size=es}return b},u.prototype.distributeEmptySpace=function(l){for(var b=this,S=this.viewItems.reduce(function(Nn,ti){return Nn+ti.size},0),C=this.size-S,$=Object(Ke.u)(this.viewItems.length-1,-1),Be=$.filter(function(Nn){return b.viewItems[Nn].priority===1}),ot=$.filter(function(Nn){return b.viewItems[Nn].priority===2}),xe=0,dt=ot;xe<dt.length;xe++){var Nt=dt[xe];Object(Ke.t)($,Nt)}for(var qt=0,en=Be;qt<en.length;qt++){var Nt=en[qt];Object(Ke.s)($,Nt)}typeof l=="number"&&Object(Ke.s)($,l);for(var un=0;C!==0&&un<$.length;un++){var an=this.viewItems[$[un]],Cn=Object(Lo.a)(an.size+C,an.minimumSize,an.maximumSize),In=Cn-an.size;C-=In,an.size=Cn}},u.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce(function($,Be){return $+Be.size},0);for(var l=0,b=0,S=this.viewItems;b<S.length;b++){var C=S[b];C.layout(l,this.layoutContext),l+=C.size}this.sashItems.forEach(function($){return $.sash.layout()}),this.updateSashEnablement()},u.prototype.updateSashEnablement=function(){var l=!1,b=this.viewItems.map(function(Dn){return l=Dn.size-Dn.minimumSize>0||l});l=!1;var S=this.viewItems.map(function(Dn){return l=Dn.maximumSize-Dn.size>0||l}),C=lr(this.viewItems).reverse();l=!1;var $=C.map(function(Dn){return l=Dn.size-Dn.minimumSize>0||l}).reverse();l=!1;for(var Be=C.map(function(Dn){return l=Dn.maximumSize-Dn.size>0||l}).reverse(),ot=0,xe=0;xe<this.sashItems.length;xe++){var dt=this.sashItems[xe].sash,Nt=this.viewItems[xe];ot+=Nt.size;var qt=!(b[xe]&&Be[xe+1]),en=!(S[xe]&&$[xe+1]);if(qt&&en){var un=Object(Ke.u)(xe,-1),an=Object(Ke.u)(xe+1,this.viewItems.length),Cn=this.findFirstSnapIndex(un),In=this.findFirstSnapIndex(an),Nn=typeof Cn=="number"&&!this.viewItems[Cn].visible,ti=typeof In=="number"&&!this.viewItems[In].visible;Nn&&$[xe]&&(ot>0||this.startSnappingEnabled)?dt.state=1:ti&&b[xe]&&(ot<this.contentSize||this.endSnappingEnabled)?dt.state=2:dt.state=0}else qt&&!en?dt.state=1:!qt&&en?dt.state=2:dt.state=3}},u.prototype.getSashPosition=function(l){for(var b=0,S=0;S<this.sashItems.length;S++)if(b+=this.viewItems[S].size,this.sashItems[S].sash===l)return Math.min(b,this.contentSize-2);return 0},u.prototype.findFirstSnapIndex=function(l){for(var b=0,S=l;b<S.length;b++){var C=S[b],$=this.viewItems[C];if(!$.visible)continue;if($.snap)return C}for(var Be=0,ot=l;Be<ot.length;Be++){var C=ot[Be],$=this.viewItems[C];if($.visible&&$.maximumSize-$.minimumSize>0)return;if(!$.visible&&$.snap)return C}return},u.prototype.dispose=function(){y.prototype.dispose.call(this),this.viewItems.forEach(function(l){return l.dispose()}),this.viewItems=[],this.sashItems.forEach(function(l){return l.disposable.dispose()}),this.sashItems=[]},u}(N.a),br=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Vs=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Do=function(y,u){return function(l,b){u(l,b,y)}},zs=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Uo=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=u.call(y,l)}catch(dt){xe=[6,dt],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},ys=function(){function y(u,l){var b=this;this._editor=u,this._model=l,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new N.b,this._callOnModelChange=new N.b,this._callOnDispose.add(this._editor.onDidChangeModel(function(){return b._onModelChanged()})),this._onModelChanged()}return y.prototype.dispose=function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()},y.prototype._onModelChanged=function(){this._callOnModelChange.clear();var u=this._editor.getModel();if(u)for(var l=0,b=this._model.groups;l<b.length;l++){var S=b[l];if(Object(Te.e)(S.uri,u.uri)){this._addDecorations(S);return}}},y.prototype._addDecorations=function(u){var l=this;if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(function(xe){return l._onDecorationChanged()}));for(var b=[],S=[],C=0,$=u.children.length;C<$;C++){var Be=u.children[C];if(this._decorationIgnoreSet.has(Be.id))continue;b.push({range:Be.range,options:y.DecorationOptions}),S.push(C)}for(var ot=this._editor.deltaDecorations([],b),C=0;C<ot.length;C++)this._decorations.set(ot[C],u.children[S[C]])},y.prototype._onDecorationChanged=function(){var u=this,l=[],b=this._editor.getModel();if(!b)return;this._decorations.forEach(function($,Be){var ot=b.getDecorationRange(Be);if(!ot)return;var xe=!1;if(U.a.equalsRange(ot,$.range))return;if(U.a.spansMultipleLines(ot))xe=!0;else{var dt=$.range.endColumn-$.range.startColumn,Nt=ot.endColumn-ot.startColumn;dt!==Nt&&(xe=!0)}xe?(u._decorationIgnoreSet.add($.id),l.push(Be)):$.range=ot});for(var S=0,C=l.length;S<C;S++)this._decorations.delete(l[S]);this._editor.deltaDecorations(l,[])},y.prototype.removeDecorations=function(){var u=[];this._decorations.forEach(function(l,b){u.push(b)}),this._editor.deltaDecorations(u,[]),this._decorations.clear()},y.DecorationOptions=A.a.register({stickiness:1,className:"reference-decoration"}),y}(),bs=function(){function y(){this.ratio=.7,this.heightInLines=18}return y.fromJSON=function(u){var l,b;try{var S=JSON.parse(u);l=S.ratio,b=S.heightInLines}catch(C){}return{ratio:l||.7,heightInLines:b||18}},y}(),Gr=function(y){br(u,y);function u(l,b,S,C,$,Be,ot,xe){var dt=y.call(this,l,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return dt._defaultTreeKeyboardSupport=b,dt.layoutData=S,dt._textModelResolverService=$,dt._instantiationService=Be,dt._peekViewService=ot,dt._uriLabel=xe,dt._disposeOnNewModel=new N.b,dt._callOnDispose=new N.b,dt._onDidSelectReference=new Z.a,dt.onDidSelectReference=dt._onDidSelectReference.event,dt._dim={height:0,width:0},dt._applyTheme(C.getTheme()),dt._callOnDispose.add(C.onThemeChange(dt._applyTheme.bind(dt))),dt._peekViewService.addExclusiveWidget(l,dt),dt.create(),dt}return u.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(N.f)(this._preview),Object(N.f)(this._previewNotAvailableMessage),Object(N.f)(this._tree),Object(N.f)(this._previewModelReference),this._splitView.dispose(),y.prototype.dispose.call(this)},u.prototype._applyTheme=function(l){var b=l.getColor(ri)||x.a.transparent;this.style({arrowColor:b,frameColor:b,headerBackgroundColor:l.getColor(Rn)||x.a.transparent,primaryHeadingColor:l.getColor(Bn),secondaryHeadingColor:l.getColor(Fn)})},u.prototype.show=function(l){this.editor.revealRangeInCenterIfOutsideViewport(l,0),y.prototype.show.call(this,l,this.layoutData.heightInLines||18)},u.prototype.focusOnReferenceTree=function(){this._tree.domFocus()},u.prototype.focusOnPreviewEditor=function(){this._preview.focus()},u.prototype.isPreviewEditorFocused=function(){return this._preview.hasTextFocus()},u.prototype._onTitleClick=function(l){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:l.ctrlKey||l.metaKey||l.altKey?"side":"open",source:"title"})},u.prototype._fillBody=function(l){var b=this;this.setCssClass("reference-zone-widget"),this._messageContainer=R.p(l,R.a("div.messages")),R.I(this._messageContainer),this._splitView=new Us(l,{orientation:1}),this._previewContainer=R.p(l,R.a("div.preview.inline"));var S={scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}};this._preview=this._instantiationService.createInstance(Vt,this._previewContainer,S,this.editor),R.I(this._previewContainer),this._previewNotAvailableMessage=A.b.createFromString(oe.a("missingPreviewMessage","no preview available")),this._treeContainer=R.p(l,R.a("div.ref-tree.inline"));var C={ariaLabel:oe.a("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Kr,keyboardNavigationLabelProvider:this._instantiationService.createInstance(Co),identityProvider:new wi,overrideStyles:{listBackground:ci}};this._tree=this._instantiationService.createInstance(Nr.c,"ReferencesWidget",this._treeContainer,new no,[this._instantiationService.createInstance(xr),this._instantiationService.createInstance(sr)],this._instantiationService.createInstance(rr),C),this._splitView.addView({onDidChange:Z.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(ot){b._preview.layout({height:b._dim.height,width:ot})}},dr.Distribute),this._splitView.addView({onDidChange:Z.b.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(ot){b._treeContainer.style.height=b._dim.height+"px",b._treeContainer.style.width=ot+"px",b._tree.layout(b._dim.height,ot)}},dr.Distribute),this._disposables.add(this._splitView.onDidSashChange(function(){b._dim.width&&(b.layoutData.ratio=b._splitView.getViewSize(0)/b._dim.width)},void 0));var $=function(ot,xe){ot instanceof Wo&&(xe==="show"&&b._revealReference(ot,!1),b._onDidSelectReference.fire({element:ot,kind:xe,source:"tree"}))};this._tree.onDidChangeFocus(function(Be){$(Be.elements[0],"show")}),this._tree.onDidOpen(function(Be){Be.browserEvent instanceof MouseEvent&&(Be.browserEvent.ctrlKey||Be.browserEvent.metaKey||Be.browserEvent.altKey)?$(Be.elements[0],"side"):Be.browserEvent instanceof KeyboardEvent||Be.browserEvent instanceof MouseEvent&&Be.browserEvent.detail===2||Be.browserEvent.tapCount===2?$(Be.elements[0],"goto"):$(Be.elements[0],"show")}),R.I(this._treeContainer)},u.prototype._onWidth=function(l){this._dim&&this._doLayoutBody(this._dim.height,l)},u.prototype._doLayoutBody=function(l,b){y.prototype._doLayoutBody.call(this,l,b),this._dim={height:l,width:b},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(b),this._splitView.resizeView(0,b*this.layoutData.ratio)},u.prototype.setSelection=function(l){var b=this;return this._revealReference(l,!0).then(function(){if(!b._model)return;b._tree.setSelection([l]),b._tree.setFocus([l])})},u.prototype.setModel=function(l){return this._disposeOnNewModel.clear(),this._model=l,this._model?this._onNewModel():Promise.resolve()},u.prototype._onNewModel=function(){var l=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerHTML=oe.a("noResults","No results"),R.W(this._messageContainer),Promise.resolve(void 0)):(R.I(this._messageContainer),this._decorationsManager=new ys(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(function(b){return l._tree.rerender(b)})),this._disposeOnNewModel.add(this._preview.onMouseDown(function(b){var S=b.event,C=b.target;if(S.detail!==2)return;var $=l._getFocusedReference();if(!$)return;l._onDidSelectReference.fire({element:{uri:$.uri,range:C.range},kind:S.ctrlKey||S.metaKey||S.altKey?"side":"open",source:"editor"})})),R.e(this.container,"results-loaded"),R.W(this._treeContainer),R.W(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)},u.prototype._getFocusedReference=function(){var l=this._tree.getFocus()[0];return l instanceof Wo?l:l instanceof ho&&l.children.length>0?l.children[0]:void 0},u.prototype._revealReference=function(l,b){return zs(this,void 0,void 0,function(){var S,C,$,Be,ot;return Uo(this,function(xe){switch(xe.label){case 0:return this._revealedReference===l?[2]:(this._revealedReference=l,l.uri.scheme!==Is.b.inMemory?this.setTitle(Object(Te.c)(l.uri),this._uriLabel.getUriLabel(Object(Te.d)(l.uri))):this.setTitle(oe.a("peekView.alternateTitle","References")),S=this._textModelResolverService.createModelReference(l.uri),this._tree.getInput()===l.parent?(this._tree.reveal(l),[3,3]):[3,1]);case 1:return b&&this._tree.reveal(l.parent),[4,this._tree.expand(l.parent)];case 2:xe.sent(),this._tree.reveal(l),xe.label=3;case 3:return[4,S];case 4:return C=xe.sent(),this._model?(Object(N.f)(this._previewModelReference),$=C.object,$?(Be=this._preview.getModel()===$.textEditorModel?0:1,ot=U.a.lift(l.range).collapseToStart(),this._previewModelReference=C,this._preview.setModel($.textEditorModel),this._preview.setSelection(ot),this._preview.revealRangeInCenter(ot,Be)):(this._preview.setModel(this._previewNotAvailableMessage),C.dispose()),[2]):(C.dispose(),[2])}})})},u=Vs([Do(3,fe.c),Do(4,Or.a),Do(5,Tn.a),Do(6,vt),Do(7,ir.a)],u),u}(Sn);Object(fe.e)(function(y,u){var l=y.getColor(Un);l&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+l+"; }");var b=y.getColor(Ci);b&&u.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+b+"; }");var S=y.getColor(Wi);S&&u.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+S+"; box-sizing: border-box; }");var C=y.getColor(se.b);C&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+C+"; box-sizing: border-box; }");var $=y.getColor(ci);$&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+$+"; }");var Be=y.getColor(zi);Be&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+Be+"; }");var ot=y.getColor(oo);ot&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+ot+"; }");var xe=y.getColor(Zn);xe&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+xe+"; }");var dt=y.getColor(Ii);dt&&u.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+dt+" !important; }");var Nt=y.getColor(Si);Nt&&u.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {"+(" background-color: "+Nt+";")+"}");var qt=y.getColor(ji);qt&&u.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+(" background-color: "+qt+";")+"}")});var Vo=r("sobA"),Cs=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},$o=function(y,u){return function(l,b){u(l,b,y)}},xo=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},Yi=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=u.call(y,l)}catch(dt){xe=[6,dt],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},Jo=new pe.d("referenceSearchVisible",!1),Xr=function(){function y(u,l,b,S,C,$,Be,ot){this._defaultTreeKeyboardSupport=u,this._editor=l,this._editorService=S,this._notificationService=C,this._instantiationService=$,this._storageService=Be,this._configurationService=ot,this._disposables=new N.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Jo.bindTo(b)}return y.get=function(u){return u.getContribution(y.ID)},y.prototype.dispose=function(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(N.f)(this._widget),Object(N.f)(this._model),this._widget=void 0,this._model=void 0},y.prototype.toggleWidget=function(u,l,b){var S=this,C;if(this._widget&&(C=this._widget.position),this.closeWidget(),!!C&&u.containsPosition(C))return;this._peekMode=b,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(function(){S.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(function(){S._ignoreModelChangeEvent||S.closeWidget()}));var $="peekViewLayout",Be=bs.fromJSON(this._storageService.get($,0,"{}"));this._widget=this._instantiationService.createInstance(Gr,this._editor,this._defaultTreeKeyboardSupport,Be),this._widget.setTitle(oe.a("labelLoading","Loading...")),this._widget.show(u),this._disposables.add(this._widget.onDidClose(function(){l.cancel(),S._widget&&(S._storageService.store($,JSON.stringify(S._widget.layoutData),0),S._widget=void 0),S.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(function(xe){var dt=xe.element,Nt=xe.kind;if(!dt)return;switch(Nt){case"open":(xe.source!=="editor"||!S._configurationService.getValue("editor.stablePeek"))&&S.openReference(dt,!1);break;case"side":S.openReference(dt,!0);break;case"goto":b?S._gotoReference(dt):S.openReference(dt,!1);break}}));var ot=++this._requestIdPool;l.then(function(xe){return ot!==S._requestIdPool||!S._widget?void 0:(S._model&&S._model.dispose(),S._model=xe,S._widget.setModel(S._model).then(function(){if(S._widget&&S._model&&S._editor.hasModel()){S._model.isEmpty?S._widget.setMetaTitle(""):S._widget.setMetaTitle(oe.a("metaTitle.N","{0} ({1})",S._model.title,S._model.references.length));var dt=S._editor.getModel().uri,Nt=new D.a(u.startLineNumber,u.startColumn),qt=S._model.nearestReference(dt,Nt);if(qt)return S._widget.setSelection(qt).then(function(){S._widget&&S._editor.getOption(65)==="editor"&&S._widget.focusOnPreviewEditor()})}return}))},function(xe){S._notificationService.error(xe)})},y.prototype.changeFocusBetweenPreviewAndReferences=function(){if(!this._widget)return;this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor()},y.prototype.goToNextOrPreviousReference=function(u){return xo(this,void 0,void 0,function(){var l,b,S,C,$;return Yi(this,function(Be){switch(Be.label){case 0:return!this._editor.hasModel()||!this._model||!this._widget?[2]:(l=this._widget.position,l?(b=this._model.nearestReference(this._editor.getModel().uri,l),b?(S=this._model.nextOrPreviousReference(b,u),C=this._editor.hasTextFocus(),$=this._widget.isPreviewEditorFocused(),[4,this._widget.setSelection(S)]):[2]):[2]);case 1:return Be.sent(),[4,this._gotoReference(S)];case 2:return Be.sent(),C?this._editor.focus():this._widget&&$&&this._widget.focusOnPreviewEditor(),[2]}})})},y.prototype.closeWidget=function(u){u===void 0&&(u=!0),this._referenceSearchVisible.reset(),this._disposables.clear(),Object(N.f)(this._widget),Object(N.f)(this._model),this._widget=void 0,this._model=void 0,u&&this._editor.focus(),this._requestIdPool+=1},y.prototype._gotoReference=function(u){var l=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var b=U.a.lift(u.range).collapseToStart();return this._editorService.openCodeEditor({resource:u.uri,options:{selection:b}},this._editor).then(function(S){var C;if(l._ignoreModelChangeEvent=!1,!S||!l._widget){l.closeWidget();return}if(l._editor===S)l._widget.show(b),l._widget.focusOnReferenceTree();else{var $=y.get(S),Be=l._model.clone();l.closeWidget(),S.focus(),$.toggleWidget(b,Object(m.f)(function(ot){return Promise.resolve(Be)}),(C=l._peekMode)!==null&&C!==void 0?C:!1)}},function(S){l._ignoreModelChangeEvent=!1,Object(z.e)(S)})},y.prototype.openReference=function(u,l){l||this.closeWidget();var b=u.uri,S=u.range;this._editorService.openCodeEditor({resource:b,options:{selection:S}},this._editor,l)},y.ID="editor.contrib.referencesController",y=Cs([$o(2,pe.c),$o(3,B.a),$o(4,Ft.a),$o(5,Tn.a),$o(6,gs.a),$o(7,H.a)],y),y}();function Ao(y,u){var l=tn(y);if(!l)return;var b=Xr.get(l);b&&u(b)}Vo.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(ne.a)(2048|41,60),when:pe.a.or(Jo,Mt.inPeekEditor),handler:function(u){Ao(u,function(l){l.changeFocusBetweenPreviewAndReferences()})}}),Vo.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:pe.a.or(Jo,Mt.inPeekEditor),handler:function(u){Ao(u,function(l){l.goToNextOrPreviousReference(!0)})}}),Vo.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1024|62,secondary:[1024|70],when:pe.a.or(Jo,Mt.inPeekEditor),handler:function(u){Ao(u,function(l){l.goToNextOrPreviousReference(!1)})}}),yn.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),yn.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),yn.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),yn.a.registerCommand("closeReferenceSearch",function(y){return Ao(y,function(u){return u.closeWidget()})}),Vo.a.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1024|9],when:pe.a.and(Mt.inPeekEditor,pe.a.not("config.editor.stablePeek"))}),Vo.a.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1024|9],when:pe.a.and(Jo,pe.a.not("config.editor.stablePeek"))}),Vo.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2048|3,mac:{primary:256|3},when:pe.a.and(Jo,Nr.d),handler:function(u){var l,b=u.get(Nr.a),S=(l=b.lastFocusedList)===null||l===void 0?void 0:l.getFocus();Array.isArray(S)&&S[0]instanceof Wo&&Ao(u,function(C){return C.openReference(S[0],!0)})}}),yn.a.registerCommand("openReference",function(y){var u,l=y.get(Nr.a),b=(u=l.lastFocusedList)===null||u===void 0?void 0:u.getFocus();Array.isArray(b)&&b[0]instanceof Wo&&Ao(y,function(S){return S.openReference(b[0],!1)})});var Yr=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Qo=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},Oo=function(y,u){return function(l,b){u(l,b,y)}},Zr=new pe.d("hasSymbols",!1),qo=Object(Tn.c)("ISymbolNavigationService"),ur=function(){function y(u,l,b,S){this._editorService=l,this._notificationService=b,this._keybindingService=S,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Zr.bindTo(u)}return y.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(N.f)(this._currentState),Object(N.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},y.prototype.put=function(u){var l=this,b=u.parent.parent;if(b.references.length<=1){this.reset();return}this._currentModel=b,this._currentIdx=b.references.indexOf(u),this._ctxHasSymbols.set(!0),this._showMessage();var S=new go(this._editorService),C=S.onDidChange(function($){if(l._ignoreEditorChange)return;var Be=l._editorService.getActiveCodeEditor();if(!Be)return;var ot=Be.getModel(),xe=Be.getPosition();if(!ot||!xe)return;for(var dt=!1,Nt=!1,qt=0,en=b.references;qt<en.length;qt++){var un=en[qt];if(Object(Te.e)(un.uri,ot.uri))dt=!0,Nt=Nt||U.a.containsPosition(un.range,xe);else if(dt)break}(!dt||!Nt)&&l.reset()});this._currentState=Object(N.e)(S,C)},y.prototype.revealNext=function(u){var l=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var b=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:b.uri,options:{selection:U.a.collapseToStart(b.range),revealInCenterIfOutsideViewport:!0}},u).finally(function(){l._ignoreEditorChange=!1})},y.prototype._showMessage=function(){Object(N.f)(this._currentMessage);var u=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),l=u?Object(oe.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,u.getLabel()):Object(oe.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(l)},y=Qo([Oo(0,pe.c),Oo(1,B.a),Oo(2,Ft.a),Oo(3,O.a)],y),y}();Object(gi.b)(qo,ur,!0),Object(F.g)(new(function(y){Yr(u,y);function u(){return y.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:Zr,kbOpts:{weight:100,primary:70}})||this}return u.prototype.runEditorCommand=function(l,b){return l.get(qo).revealNext(b)},u}(F.c))),Vo.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:Zr,primary:9,handler:function(u){u.get(qo).reset()}});var go=function(){function y(u){this._listener=new Map,this._disposables=new N.b,this._onDidChange=new Z.a,this.onDidChange=this._onDidChange.event,this._disposables.add(u.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(u.onCodeEditorAdd(this._onDidAddEditor,this)),u.listCodeEditors().forEach(this._onDidAddEditor,this)}return y.prototype.dispose=function(){this._disposables.dispose(),this._onDidChange.dispose(),this._listener.forEach(N.f)},y.prototype._onDidAddEditor=function(u){var l=this;this._listener.set(u,Object(N.e)(u.onDidChangeCursorPosition(function(b){return l._onDidChange.fire({editor:u})}),u.onDidChangeModelContent(function(b){return l._onDidChange.fire({editor:u})})))},y.prototype._onDidRemoveEditor=function(u){Object(N.f)(this._listener.get(u)),this._listener.delete(u)},y=Qo([Oo(0,B.a)],y),y}(),Ei=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),Zi=function(y,u,l,b){function S(C){return C instanceof l?C:new l(function($){$(C)})}return new(l||(l=Promise))(function(C,$){function Be(dt){try{xe(b.next(dt))}catch(Nt){$(Nt)}}function ot(dt){try{xe(b.throw(dt))}catch(Nt){$(Nt)}}function xe(dt){dt.done?C(dt.value):S(dt.value).then(Be,ot)}xe((b=b.apply(y,u||[])).next())})},yo=function(y,u){var l={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},b,S,C,$;return $={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Be(xe){return function(dt){return ot([xe,dt])}}function ot(xe){if(b)throw new TypeError("Generator is already executing.");for(;l;)try{if(b=1,S&&(C=xe[0]&2?S.return:xe[0]?S.throw||((C=S.return)&&C.call(S),0):S.next)&&!(C=C.call(S,xe[1])).done)return C;(S=0,C)&&(xe=[xe[0]&2,C.value]);switch(xe[0]){case 0:case 1:C=xe;break;case 4:return l.label++,{value:xe[1],done:!1};case 5:l.label++,S=xe[1],xe=[0];continue;case 7:xe=l.ops.pop(),l.trys.pop();continue;default:if(!(C=l.trys,C=C.length>0&&C[C.length-1])&&(xe[0]===6||xe[0]===2)){l=0;continue}if(xe[0]===3&&(!C||xe[1]>C[0]&&xe[1]<C[3])){l.label=xe[1];break}if(xe[0]===6&&l.label<C[1]){l.label=C[1],C=xe;break}if(C&&l.label<C[2]){l.label=C[2],l.ops.push(xe);break}C[2]&&l.ops.pop(),l.trys.pop();continue}xe=u.call(y,l)}catch(dt){xe=[6,dt],S=0}finally{b=C=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},Cr,_r,ai,Er,er,Rr,No,Ir;Je.c.appendMenuItem(7,{submenu:8,title:oe.a("peek.submenu","Peek"),group:"navigation",order:100});var cr=function(y){Ei(u,y);function u(l,b){var S=y.call(this,b)||this;return S._configuration=l,S}return u.prototype.run=function(l,b){var S=this;if(!b.hasModel())return Promise.resolve(void 0);var C=l.get(Ft.a),$=l.get(B.a),Be=l.get(Br.a),ot=l.get(qo),xe=b.getModel(),dt=b.getPosition(),Nt=new fn.b(b,1|4),qt=Object(m.j)(this._getLocationModel(xe,dt,Nt.token),Nt.token).then(function(en){return Zi(S,void 0,void 0,function(){var un,an,Cn,In;return yo(this,function(Nn){if(!en||Nt.token.isCancellationRequested)return[2];if(Object(Qe.a)(en.ariaMessage),en.referenceAt(xe.uri,dt)&&(an=this._getAlternativeCommand(b),an!==this.id&&(un=b.getAction(an))),Cn=en.references.length,Cn===0)this._configuration.muteMessage||(In=xe.getWordAtPosition(dt),Jt.get(b).showMessage(this._getNoResultFoundMessage(In),dt));else if(Cn===1&&un)un.run();else return[2,this._onResult($,ot,b,en)];return[2]})})},function(en){C.error(en)}).finally(function(){Nt.dispose()});return Be.showWhile(qt,250),qt},u.prototype._onResult=function(l,b,S,C){return Zi(this,void 0,void 0,function(){var $,Be,ot,xe;return yo(this,function(dt){switch(dt.label){case 0:return $=this._getGoToPreference(S),!(S instanceof Vt)&&(this._configuration.openInPeek||$==="peek"&&C.references.length>1)?(this._openInPeek(S,C),[3,3]):[3,1];case 1:return Be=C.firstReference(),ot=C.references.length>1&&$==="gotoAndPeek",[4,this._openReference(S,l,Be,this._configuration.openToSide,!ot)];case 2:xe=dt.sent(),ot&&xe?this._openInPeek(xe,C):C.dispose(),$==="goto"&&b.put(Be),dt.label=3;case 3:return[2]}})})},u.prototype._openReference=function(l,b,S,C,$){return Zi(this,void 0,void 0,function(){var Be,ot,xe,dt;return yo(this,function(Nt){switch(Nt.label){case 0:return Be=void 0,Object(te.D)(S)&&(Be=S.targetSelectionRange),Be||(Be=S.range),[4,b.openCodeEditor({resource:S.uri,options:{selection:U.a.collapseToStart(Be),revealInCenterIfOutsideViewport:!0}},l,C)];case 1:return ot=Nt.sent(),ot?($&&(xe=ot.getModel(),dt=ot.deltaDecorations([],[{range:Be,options:{className:"symbolHighlight"}}]),setTimeout(function(){ot.getModel()===xe&&ot.deltaDecorations(dt,[])},350)),[2,ot]):[2,void 0]}})})},u.prototype._openInPeek=function(l,b){var S=Xr.get(l);S&&l.hasModel()?S.toggleWidget(l.getSelection(),Object(m.f)(function(C){return Promise.resolve(b)}),this._configuration.openInPeek):b.dispose()},u}(F.b),Pr=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,Vr(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("def.title","Definitions")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("noResultWord","No definition found for '{0}'",l.word):oe.a("generic.noResults","No definition found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeDefinitionCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleDefinitions},u}(cr),$r=Tr.g&&!Ve.l?2048|70:70;Object(F.f)((Cr=function(y){Ei(u,y);function u(){var l=y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.id,label:oe.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:pe.a.and(j.a.hasDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:$r,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:oe.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return yn.a.registerCommandAlias("editor.action.goToDeclaration",u.id),l}return u}(Pr),Cr.id="editor.action.revealDefinition",Cr)),Object(F.f)((_r=function(y){Ei(u,y);function u(){var l=y.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:u.id,label:oe.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:pe.a.and(j.a.hasDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:Object(ne.a)(2048|41,$r),weight:100}})||this;return yn.a.registerCommandAlias("editor.action.openDeclarationToTheSide",u.id),l}return u}(Pr),_r.id="editor.action.revealDefinitionAside",_r)),Object(F.f)((ai=function(y){Ei(u,y);function u(){var l=y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:u.id,label:oe.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:pe.a.and(j.a.hasDefinitionProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return yn.a.registerCommandAlias("editor.action.previewDeclaration",u.id),l}return u}(Pr),ai.id="editor.action.peekDefinition",ai));var _s=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,fs(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("decl.title","Declarations")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("decl.noResultWord","No declaration found for '{0}'",l.word):oe.a("decl.generic.noResults","No declaration found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeDeclarationCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleDeclarations},u}(cr);Object(F.f)((Er=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.id,label:oe.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:pe.a.and(j.a.hasDeclarationProvider,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:oe.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("decl.noResultWord","No declaration found for '{0}'",l.word):oe.a("decl.generic.noResults","No declaration found")},u}(_s),Er.id="editor.action.revealDeclaration",Er)),Object(F.f)(function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:oe.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:pe.a.and(j.a.hasDeclarationProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return u}(_s));var Es=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,zr(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("typedef.title","Type Definitions")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",l.word):oe.a("goToTypeDefinition.generic.noResults","No type definition found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeTypeDefinitionCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleTypeDefinitions},u}(cr);Object(F.f)((er=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.ID,label:oe.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:pe.a.and(j.a.hasTypeDefinitionProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:oe.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return u}(Es),er.ID="editor.action.goToTypeDefinition",er)),Object(F.f)((Rr=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:u.ID,label:oe.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:pe.a.and(j.a.hasTypeDefinitionProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return u}(Es),Rr.ID="editor.action.peekTypeDefinition",Rr));var Jr=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,ps(l,b,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("impl.title","Implementations")]))]}})})},u.prototype._getNoResultFoundMessage=function(l){return l&&l.word?oe.a("goToImplementation.noResultWord","No implementation found for '{0}'",l.word):oe.a("goToImplementation.generic.noResults","No implementation found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeImplementationCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleImplementations},u}(cr);Object(F.f)((No=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:u.ID,label:oe.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:pe.a.and(j.a.hasImplementationProvider,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:oe.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return u}(Jr),No.ID="editor.action.goToImplementation",No)),Object(F.f)((Ir=function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:u.ID,label:oe.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:pe.a.and(j.a.hasImplementationProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return u}(Jr),Ir.ID="editor.action.peekImplementation",Ir));var Ss=function(y){Ei(u,y);function u(){return y!==null&&y.apply(this,arguments)||this}return u.prototype._getNoResultFoundMessage=function(l){return l?oe.a("references.no","No references found for '{0}'",l.word):oe.a("references.noGeneric","No references found")},u.prototype._getAlternativeCommand=function(l){return l.getOption(41).alternativeReferenceCommand},u.prototype._getGoToPreference=function(l){return l.getOption(41).multipleReferences},u}(cr);Object(F.f)(function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:oe.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:pe.a.and(j.a.hasReferenceProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:j.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:oe.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,yr(l,b,!0,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("ref.title","References")]))]}})})},u}(Ss)),Object(F.f)(function(y){Ei(u,y);function u(){return y.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:oe.a("references.action.label","Peek References"),alias:"Peek References",precondition:pe.a.and(j.a.hasReferenceProvider,Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){var C;return yo(this,function($){switch($.label){case 0:return C=oi.bind,[4,yr(l,b,!1,S)];case 1:return[2,new(C.apply(oi,[void 0,$.sent(),oe.a("ref.title","References")]))]}})})},u}(Ss));var Qr=function(y){Ei(u,y);function u(l,b,S){var C=y.call(this,l,{id:"editor.action.goToLocation",label:oe.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:pe.a.and(Mt.notInPeekEditor,j.a.isInEmbeddedEditor.toNegated())})||this;return C._references=b,C._gotoMultipleBehaviour=S,C}return u.prototype._getLocationModel=function(l,b,S){return Zi(this,void 0,void 0,function(){return yo(this,function(C){return[2,new oi(this._references,oe.a("generic.title","Locations"))]})})},u.prototype._getNoResultFoundMessage=function(l){return l&&oe.a("generic.noResult","No results for '{0}'",l.word)||""},u.prototype._getGoToPreference=function(l){var b;return(b=this._gotoMultipleBehaviour)!==null&&b!==void 0?b:l.getOption(41).multipleReferences},u.prototype._getAlternativeCommand=function(){return""},u}(cr);yn.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_.a},{name:"position",description:"The position at which to start",constraint:D.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(u,l,b,S,C,$){return Zi(void 0,void 0,void 0,function(){var Be,ot;return yo(this,function(xe){switch(xe.label){case 0:return Object(_o.a)(_.a.isUri(l)),Object(_o.a)(D.a.isIPosition(b)),Object(_o.a)(Array.isArray(S)),Object(_o.a)(typeof C=="undefined"||typeof C=="string"),Object(_o.a)(typeof $=="undefined"||typeof $=="boolean"),Be=u.get(B.a),[4,Be.openCodeEditor({resource:l},Be.getFocusedCodeEditor())];case 1:return ot=xe.sent(),Object(Hr.a)(ot)?(ot.setPosition(b),ot.revealPositionInCenterIfOutsideViewport(b,0),[2,ot.invokeWithinContext(function(dt){var Nt=new Qr({muteMessage:!0,openInPeek:Boolean($),openToSide:!1},S,C);dt.get(Tn.a).invokeFunction(Nt.run.bind(Nt),ot)})]):[2]}})})}}),yn.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:_.a},{name:"position",description:"The position at which to start",constraint:D.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(u,l,b,S,C){return Zi(void 0,void 0,void 0,function(){return yo(this,function($){return u.get(yn.b).executeCommand("editor.action.goToLocations",l,b,S,C,!0),[2]})})}}),yn.a.registerCommand({id:"editor.action.findReferences",handler:function(u,l,b){Object(_o.a)(_.a.isUri(l)),Object(_o.a)(D.a.isIPosition(b));var S=u.get(B.a);return S.openCodeEditor({resource:l},S.getFocusedCodeEditor()).then(function(C){if(!Object(Hr.a)(C)||!C.hasModel())return;var $=Xr.get(C);if(!$)return;var Be=Object(m.f)(function(xe){return yr(C.getModel(),D.a.lift(b),!1,xe).then(function(dt){return new oi(dt,oe.a("ref.title","References"))})}),ot=new U.a(b.lineNumber,b.column,b.lineNumber,b.column);return Promise.resolve($.toggleWidget(ot,Be,!1))})}}),yn.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var Fr=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}();function hr(y,u){return!!y[u]}var kr=function(){function y(u,l){this.target=u.target,this.hasTriggerModifier=hr(u.event,l.triggerModifier),this.hasSideBySideModifier=hr(u.event,l.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=Ve.i||u.event.detail<=1}return y}(),qr=function(){function y(u,l){this.keyCodeIsTriggerKey=u.keyCode===l.triggerKey,this.keyCodeIsSideBySideKey=u.keyCode===l.triggerSideBySideKey,this.hasTriggerModifier=hr(u,l.triggerModifier)}return y}(),L=function(){function y(u,l,b,S){this.triggerKey=u,this.triggerModifier=l,this.triggerSideBySideKey=b,this.triggerSideBySideModifier=S}return y.prototype.equals=function(u){return this.triggerKey===u.triggerKey&&this.triggerModifier===u.triggerModifier&&this.triggerSideBySideKey===u.triggerSideBySideKey&&this.triggerSideBySideModifier===u.triggerSideBySideModifier},y}();function n(y){return y==="altKey"?Tr.e?new L(57,"metaKey",6,"altKey"):new L(5,"ctrlKey",6,"altKey"):Tr.e?new L(6,"altKey",57,"metaKey"):new L(6,"altKey",5,"ctrlKey")}var e=function(y){Fr(u,y);function u(l){var b=y.call(this)||this;return b._onMouseMoveOrRelevantKeyDown=b._register(new Z.a),b.onMouseMoveOrRelevantKeyDown=b._onMouseMoveOrRelevantKeyDown.event,b._onExecute=b._register(new Z.a),b.onExecute=b._onExecute.event,b._onCancel=b._register(new Z.a),b.onCancel=b._onCancel.event,b._editor=l,b._opts=n(b._editor.getOption(59)),b.lastMouseMoveEvent=null,b.hasTriggerKeyOnMouseDown=!1,b._register(b._editor.onDidChangeConfiguration(function(S){if(S.hasChanged(59)){var C=n(b._editor.getOption(59));if(b._opts.equals(C))return;b._opts=C,b.lastMouseMoveEvent=null,b.hasTriggerKeyOnMouseDown=!1,b._onCancel.fire()}})),b._register(b._editor.onMouseMove(function(S){return b.onEditorMouseMove(new kr(S,b._opts))})),b._register(b._editor.onMouseDown(function(S){return b.onEditorMouseDown(new kr(S,b._opts))})),b._register(b._editor.onMouseUp(function(S){return b.onEditorMouseUp(new kr(S,b._opts))})),b._register(b._editor.onKeyDown(function(S){return b.onEditorKeyDown(new qr(S,b._opts))})),b._register(b._editor.onKeyUp(function(S){return b.onEditorKeyUp(new qr(S,b._opts))})),b._register(b._editor.onMouseDrag(function(){return b.resetHandler()})),b._register(b._editor.onDidChangeCursorSelection(function(S){return b.onDidChangeCursorSelection(S)})),b._register(b._editor.onDidChangeModel(function(S){return b.resetHandler()})),b._register(b._editor.onDidChangeModelContent(function(){return b.resetHandler()})),b._register(b._editor.onDidScrollChange(function(S){(S.scrollTopChanged||S.scrollLeftChanged)&&b.resetHandler()})),b}return u.prototype.onDidChangeCursorSelection=function(l){l.selection&&l.selection.startColumn!==l.selection.endColumn&&this.resetHandler()},u.prototype.onEditorMouseMove=function(l){this.lastMouseMoveEvent=l,this._onMouseMoveOrRelevantKeyDown.fire([l,null])},u.prototype.onEditorMouseDown=function(l){this.hasTriggerKeyOnMouseDown=l.hasTriggerModifier},u.prototype.onEditorMouseUp=function(l){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(l)},u.prototype.onEditorKeyDown=function(l){this.lastMouseMoveEvent&&(l.keyCodeIsTriggerKey||l.keyCodeIsSideBySideKey&&l.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,l]):l.hasTriggerModifier&&this._onCancel.fire()},u.prototype.onEditorKeyUp=function(l){l.keyCodeIsTriggerKey&&this._onCancel.fire()},u.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},u}(N.a),i=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},d=function(y,u){return function(l,b){u(l,b,y)}},c=function(){function y(u,l,b){var S=this;this.textModelResolverService=l,this.modeService=b,this.toUnhook=new N.b,this.toUnhookForKeyboard=new N.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=u;var C=new e(u);this.toUnhook.add(C),this.toUnhook.add(C.onMouseMoveOrRelevantKeyDown(function($){var Be=$[0],ot=$[1];S.startFindDefinitionFromMouse(Be,Object(_o.n)(ot))})),this.toUnhook.add(C.onExecute(function($){S.isEnabled($)&&S.gotoDefinition($.target.position,$.hasSideBySideModifier).then(function(){S.removeLinkDecorations()},function(Be){S.removeLinkDecorations(),Object(z.e)(Be)})})),this.toUnhook.add(C.onCancel(function(){S.removeLinkDecorations(),S.currentWordAtPosition=null}))}return y.get=function(u){return u.getContribution(y.ID)},y.prototype.startFindDefinitionFromCursor=function(u){var l=this;return this.startFindDefinition(u).then(function(){l.toUnhookForKeyboard.add(l.editor.onDidChangeCursorPosition(function(){l.currentWordAtPosition=null,l.removeLinkDecorations(),l.toUnhookForKeyboard.clear()})),l.toUnhookForKeyboard.add(l.editor.onKeyDown(function(b){b&&(l.currentWordAtPosition=null,l.removeLinkDecorations(),l.toUnhookForKeyboard.clear())}))})},y.prototype.startFindDefinitionFromMouse=function(u,l){if(u.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(u,l)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}var b=u.target.position;this.startFindDefinition(b)},y.prototype.startFindDefinition=function(u){var l=this,b;this.toUnhookForKeyboard.clear();var S=u?(b=this.editor.getModel())===null||b===void 0?void 0:b.getWordAtPosition(u):null;if(!S)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===S.startColumn&&this.currentWordAtPosition.endColumn===S.endColumn&&this.currentWordAtPosition.word===S.word)return Promise.resolve(0);this.currentWordAtPosition=S;var C=new fn.a(this.editor,4|1|2|8);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(m.f)(function($){return l.findDefinition(u,$)}),this.previousPromise.then(function($){if(!$||!$.length||!C.validate(l.editor)){l.removeLinkDecorations();return}if($.length>1)l.addDecoration(new U.a(u.lineNumber,S.startColumn,u.lineNumber,S.endColumn),new K.a().appendText(oe.a("multipleResults","Click to show {0} definitions.",$.length)));else{var Be=$[0];if(!Be.uri)return;l.textModelResolverService.createModelReference(Be.uri).then(function(ot){if(!ot.object||!ot.object.textEditorModel){ot.dispose();return}var xe=ot.object.textEditorModel,dt=Be.range.startLineNumber;if(dt<1||dt>xe.getLineCount()){ot.dispose();return}var Nt=l.getPreviewValue(xe,dt,Be),qt;Be.originSelectionRange?qt=U.a.lift(Be.originSelectionRange):qt=new U.a(u.lineNumber,S.startColumn,u.lineNumber,S.endColumn);var en=l.modeService.getModeIdByFilepathOrFirstLine(xe.uri);l.addDecoration(qt,new K.a().appendCodeblock(en||"",Nt)),ot.dispose()})}}).then(void 0,z.e)},y.prototype.getPreviewValue=function(u,l,b){var S=b.targetSelectionRange?b.range:this.getPreviewRangeBasedOnBrackets(u,l),C=S.endLineNumber-S.startLineNumber;C>=y.MAX_SOURCE_PREVIEW_LINES&&(S=this.getPreviewRangeBasedOnIndentation(u,l));var $=this.stripIndentationFromPreviewRange(u,l,S);return $},y.prototype.stripIndentationFromPreviewRange=function(u,l,b){for(var S=u.getLineFirstNonWhitespaceColumn(l),C=S,$=l+1;$<b.endLineNumber;$++){var Be=u.getLineFirstNonWhitespaceColumn($);C=Math.min(C,Be)}var ot=u.getValueInRange(b).replace(new RegExp("^\\s{"+(C-1)+"}","gm"),"").trim();return ot},y.prototype.getPreviewRangeBasedOnIndentation=function(u,l){for(var b=u.getLineFirstNonWhitespaceColumn(l),S=Math.min(u.getLineCount(),l+y.MAX_SOURCE_PREVIEW_LINES),C=l+1;C<S;C++){var $=u.getLineFirstNonWhitespaceColumn(C);if(b===$)break}return new U.a(l,1,C+1,1)},y.prototype.getPreviewRangeBasedOnBrackets=function(u,l){for(var b=Math.min(u.getLineCount(),l+y.MAX_SOURCE_PREVIEW_LINES),S=[],C=!0,$=u.findNextBracket(new D.a(l,1));$!==null;){if(S.length===0)S.push($);else{var Be=S[S.length-1];if(Be.open[0]===$.open[0]&&Be.isOpen&&!$.isOpen?S.pop():S.push($),S.length===0)if(C)C=!1;else return new U.a(l,1,$.range.endLineNumber+1,1)}var ot=u.getLineMaxColumn(l),xe=$.range.endLineNumber,dt=$.range.endColumn;if(ot===$.range.endColumn&&(xe++,dt=1),xe>b)return new U.a(l,1,b+1,1);$=u.findNextBracket(new D.a(xe,dt))}return new U.a(l,1,b+1,1)},y.prototype.addDecoration=function(u,l){var b={range:u,options:{inlineClassName:"goto-definition-link",hoverMessage:l}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[b])},y.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},y.prototype.isEnabled=function(u,l){return this.editor.hasModel()&&u.isNoneOrSingleMouseDown&&u.target.type===6&&(u.hasTriggerModifier||(l?l.keyCodeIsTriggerKey:!1))&&te.f.has(this.editor.getModel())},y.prototype.findDefinition=function(u,l){var b=this.editor.getModel();return b?Vr(b,u,l):Promise.resolve(null)},y.prototype.gotoDefinition=function(u,l){var b=this;this.editor.setPosition(u);var S=new Pr({openToSide:l,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(C){return S.run(C,b.editor)})},y.prototype.dispose=function(){this.toUnhook.dispose()},y.ID="editor.contrib.gotodefinitionatposition",y.MAX_SOURCE_PREVIEW_LINES=8,y=i([d(1,Or.a),d(2,G.a)],y),y}();Object(F.h)(c.ID,c),Object(fe.e)(function(y,u){var l=y.getColor(se.n);l&&u.addRule(".monaco-editor .goto-definition-link { color: "+l+" !important; }")});var M=function(){var y=function(l,b){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var $ in C)C.hasOwnProperty($)&&(S[$]=C[$])},y(l,b)};return function(u,l){y(u,l);function b(){this.constructor=u}u.prototype=l===null?Object.create(l):(b.prototype=l.prototype,new b)}}(),ge=function(y,u,l,b){var S=arguments.length,C=S<3?u:b===null?b=Object.getOwnPropertyDescriptor(u,l):b,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(y,u,l,b);else for(var Be=y.length-1;Be>=0;Be--)($=y[Be])&&(C=(S<3?$(C):S>3?$(u,l,C):$(u,l))||C);return S>3&&C&&Object.defineProperty(u,l,C),C},le=function(y,u){return function(l,b){u(l,b,y)}},He=function(){function y(u,l,b,S,C,$){var Be=this;this._editor=u,this._openerService=l,this._modeService=b,this._markerDecorationsService=S,this._keybindingService=C,this._themeService=$,this._toUnhook=new N.b,this._contentWidget=new N.d,this._glyphWidget=new N.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(ot){ot.hasChanged(44)&&(Be._hideWidgets(),Be._unhookEvents(),Be._hookEvents())})}return Object.defineProperty(y.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),y.get=function(u){return u.getContribution(y.ID)},y.prototype._hookEvents=function(){var u=this,l=function(){return u._hideWidgets()},b=this._editor.getOption(44);this._isHoverEnabled=b.enabled,this._isHoverSticky=b.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(S){return u._onEditorMouseDown(S)})),this._toUnhook.add(this._editor.onMouseUp(function(S){return u._onEditorMouseUp(S)})),this._toUnhook.add(this._editor.onMouseMove(function(S){return u._onEditorMouseMove(S)})),this._toUnhook.add(this._editor.onKeyDown(function(S){return u._onKeyDown(S)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return u._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(l)),this._toUnhook.add(this._editor.onMouseLeave(l)),this._toUnhook.add(this._editor.onDidChangeModel(l)),this._toUnhook.add(this._editor.onDidScrollChange(function(S){return u._onEditorScrollChanged(S)}))},y.prototype._unhookEvents=function(){this._toUnhook.clear()},y.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},y.prototype._onEditorScrollChanged=function(u){(u.scrollTopChanged||u.scrollLeftChanged)&&this._hideWidgets()},y.prototype._onEditorMouseDown=function(u){this._isMouseDown=!0;var l=u.target.type;if(l===9&&u.target.detail===Yo.ID){this._hoverClicked=!0;return}if(l===12&&u.target.detail===vr.ID)return;l!==12&&u.target.detail!==vr.ID&&(this._hoverClicked=!1),this._hideWidgets()},y.prototype._onEditorMouseUp=function(u){this._isMouseDown=!1},y.prototype._onEditorMouseMove=function(u){var l=u.target.type;if(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())return;if(this._isHoverSticky&&l===9&&u.target.detail===Yo.ID)return;if(this._isHoverSticky&&l===12&&u.target.detail===vr.ID)return;if(l===7){var b=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,S=u.target.detail;S&&!S.isAfterLines&&typeof S.horizontalDistanceToText=="number"&&S.horizontalDistanceToText<b&&(l=6)}l===6?(this.glyphWidget.hide(),this._isHoverEnabled&&u.target.range&&this.contentWidget.startShowingAt(u.target.range,0,!1)):l===2?(this.contentWidget.hide(),this._isHoverEnabled&&u.target.position&&this.glyphWidget.startShowingAt(u.target.position.lineNumber)):this._hideWidgets()},y.prototype._onKeyDown=function(u){u.keyCode!==5&&u.keyCode!==6&&u.keyCode!==57&&u.keyCode!==4&&this._hideWidgets()},y.prototype._hideWidgets=function(){if(!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible())return;this._glyphWidget.value.hide(),this._contentWidget.value.hide()},y.prototype._createHoverWidgets=function(){this._contentWidget.value=new Yo(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget.value=new vr(this._editor,this._modeService,this._openerService)},y.prototype.showContentHover=function(u,l,b){this.contentWidget.startShowingAt(u,l,b)},y.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},y.ID="editor.contrib.hover",y=ge([le(1,Ie.a),le(2,G.a),le(3,hs.a),le(4,O.a),le(5,fe.c)],y),y}(),st=function(y){M(u,y);function u(){return y.call(this,{id:"editor.action.showHover",label:oe.a({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:j.a.editorTextFocus,primary:Object(ne.a)(2048|41,2048|39),weight:100}})||this}return u.prototype.run=function(l,b){if(!b.hasModel())return;var S=He.get(b);if(!S)return;var C=b.getPosition(),$=new U.a(C.lineNumber,C.column,C.lineNumber,C.column),Be=b.getOption(2)===2;S.showContentHover($,1,Be)},u}(F.b),ht=function(y){M(u,y);function u(){return y.call(this,{id:"editor.action.showDefinitionPreviewHover",label:oe.a({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})||this}return u.prototype.run=function(l,b){var S=He.get(b);if(!S)return;var C=b.getPosition();if(!C)return;var $=new U.a(C.lineNumber,C.column,C.lineNumber,C.column),Be=c.get(b),ot=Be.startFindDefinitionFromCursor(C);ot?ot.then(function(){S.showContentHover($,1,!0)}):S.showContentHover($,1,!0)},u}(F.b);Object(F.h)(He.ID,He),Object(F.f)(st),Object(F.f)(ht),Object(fe.e)(function(y,u){var l=y.getColor(se.D);l&&u.addRule(".monaco-editor .hoverHighlight { background-color: "+l+"; }");var b=y.getColor(se.A);b&&u.addRule(".monaco-editor .monaco-editor-hover { background-color: "+b+"; }");var S=y.getColor(se.B);S&&(u.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+S+"; }"),u.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+S.transparent(.5)+"; }"),u.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+S.transparent(.5)+"; }"),u.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+S.transparent(.5)+"; }"));var C=y.getColor(se.cc);C&&u.addRule(".monaco-editor .monaco-editor-hover a { color: "+C+"; }");var $=y.getColor(se.C);$&&u.addRule(".monaco-editor .monaco-editor-hover { color: "+$+"; }");var Be=y.getColor(se.E);Be&&u.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+Be+"; }");var ot=y.getColor(se.bc);ot&&u.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+ot+"; }")})},hoER:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return r.e(247).then(r.bind(null,"Qit9"))}})},hoHP:function(wt,P,r){},htSr:function(wt,P,r){},i14n:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"d",function(){return N}),r.d(P,"c",function(){return F}),r.d(P,"b",function(){return U});var I=r("F5bH"),oe=function(){function j(G,R,E){E===void 0&&(E=!1),this._range=G,this._text=R,this.insertsAutoWhitespace=E}return j.prototype.getEditOperations=function(G,R){R.addTrackedEditOperation(this._range,this._text)},j.prototype.computeCursorState=function(G,R){var E=R.getInverseEditOperations(),x=E[0].range;return new I.a(x.endLineNumber,x.endColumn,x.endLineNumber,x.endColumn)},j}(),ne=function(){function j(G,R){this._range=G,this._text=R}return j.prototype.getEditOperations=function(G,R){R.addTrackedEditOperation(this._range,this._text)},j.prototype.computeCursorState=function(G,R){var E=R.getInverseEditOperations(),x=E[0].range;return new I.a(x.startLineNumber,x.startColumn,x.endLineNumber,x.endColumn)},j}(),N=function(){function j(G,R,E){E===void 0&&(E=!1),this._range=G,this._text=R,this.insertsAutoWhitespace=E}return j.prototype.getEditOperations=function(G,R){R.addTrackedEditOperation(this._range,this._text)},j.prototype.computeCursorState=function(G,R){var E=R.getInverseEditOperations(),x=E[0].range;return new I.a(x.startLineNumber,x.startColumn,x.startLineNumber,x.startColumn)},j}(),F=function(){function j(G,R,E,x,K){K===void 0&&(K=!1),this._range=G,this._text=R,this._columnDeltaOffset=x,this._lineNumberDeltaOffset=E,this.insertsAutoWhitespace=K}return j.prototype.getEditOperations=function(G,R){R.addTrackedEditOperation(this._range,this._text)},j.prototype.computeCursorState=function(G,R){var E=R.getInverseEditOperations(),x=E[0].range;return new I.a(x.endLineNumber+this._lineNumberDeltaOffset,x.endColumn+this._columnDeltaOffset,x.endLineNumber+this._lineNumberDeltaOffset,x.endColumn+this._columnDeltaOffset)},j}(),U=function(){function j(G,R,E,x){x===void 0&&(x=!1),this._range=G,this._text=R,this._initialSelection=E,this._forceMoveMarkers=x,this._selectionId=null}return j.prototype.getEditOperations=function(G,R){R.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=R.trackSelection(this._initialSelection)},j.prototype.computeCursorState=function(G,R){return R.getTrackedSelection(this._selectionId)},j}()},i9z8:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return r.e(235).then(r.bind(null,"Bmdt"))}})},iQNv:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return r.e(254).then(r.bind(null,"PFFx"))}})},j0h8:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});var I=function(){function oe(){for(var ne=[],N=0;N<arguments.length;N++)ne[N]=arguments[N];this._entries=new Map;for(var F=0,U=ne;F<U.length;F++){var j=U[F],G=j[0],R=j[1];this.set(G,R)}}return oe.prototype.set=function(ne,N){var F=this._entries.get(ne);return this._entries.set(ne,N),F},oe.prototype.has=function(ne){return this._entries.has(ne)},oe.prototype.get=function(ne){return this._entries.get(ne)},oe}()},jSiy:function(wt,P,r){},"jUI+":function(wt,P,r){},juCB:function(wt,P,r){"use strict";r.d(P,"f",function(){return U}),r.d(P,"a",function(){return j}),r.d(P,"h",function(){return G}),r.d(P,"g",function(){return w}),r.d(P,"d",function(){return Ee}),r.d(P,"j",function(){return ye}),r.d(P,"b",function(){return $e}),r.d(P,"c",function(){return we}),r.d(P,"i",function(){return k}),r.d(P,"e",function(){return Pe});var I=r("g9ht"),oe=r("S7i+"),ne=r("34RT"),N=function(){var ve=function(Ie,pe){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,Et){nt.__proto__=Et}||function(nt,Et){for(var Rt in Et)Et.hasOwnProperty(Rt)&&(nt[Rt]=Et[Rt])},ve(Ie,pe)};return function(Te,Ie){ve(Te,Ie);function pe(){this.constructor=Te}Te.prototype=Ie===null?Object.create(Ie):(pe.prototype=Ie.prototype,new pe)}}(),F=function(){return F=Object.assign||function(ve){for(var Te,Ie=1,pe=arguments.length;Ie<pe;Ie++){Te=arguments[Ie];for(var nt in Te)Object.prototype.hasOwnProperty.call(Te,nt)&&(ve[nt]=Te[nt])}return ve},F.apply(this,arguments)},U=8,j=function(){function ve(Te){this._values=Te}return ve.prototype.hasChanged=function(Te){return this._values[Te]},ve}(),G=function(){function ve(){this._values=[]}return ve.prototype._read=function(Te){return this._values[Te]},ve.prototype.get=function(Te){return this._values[Te]},ve.prototype._write=function(Te,Ie){this._values[Te]=Ie},ve}(),R=function(){function ve(Te,Ie,pe,nt){this.id=Te,this.name=Ie,this.defaultValue=pe,this.schema=nt}return ve.prototype.compute=function(Te,Ie,pe){return pe},ve}(),E=function(){function ve(Te,Ie){Ie===void 0&&(Ie=null),this.schema=void 0,this.id=Te,this.name="_never_",this.defaultValue=void 0,this.deps=Ie}return ve.prototype.validate=function(Te){return this.defaultValue},ve}(),x=function(){function ve(Te,Ie,pe,nt){this.id=Te,this.name=Ie,this.defaultValue=pe,this.schema=nt}return ve.prototype.validate=function(Te){return typeof Te=="undefined"?this.defaultValue:Te},ve.prototype.compute=function(Te,Ie,pe){return pe},ve}(),K=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et){Et===void 0&&(Et=void 0);var Rt=this;return typeof Et!="undefined"&&(Et.type="boolean",Et.default=nt),Rt=ve.call(this,Ie,pe,nt,Et)||this,Rt}return Te.boolean=function(Ie,pe){return typeof Ie=="undefined"?pe:Ie==="false"?!1:Boolean(Ie)},Te.prototype.validate=function(Ie){return Te.boolean(Ie,this.defaultValue)},Te}(x),D=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et,Rt,Tt){Tt===void 0&&(Tt=void 0);var Ht=this;return typeof Tt!="undefined"&&(Tt.type="integer",Tt.default=nt,Tt.minimum=Et,Tt.maximum=Rt),Ht=ve.call(this,Ie,pe,nt,Tt)||this,Ht.minimum=Et,Ht.maximum=Rt,Ht}return Te.clampedInt=function(Ie,pe,nt,Et){var Rt;return typeof Ie=="undefined"?Rt=pe:(Rt=parseInt(Ie,10),isNaN(Rt)&&(Rt=pe)),Rt=Math.max(nt,Rt),Rt=Math.min(Et,Rt),Rt|0},Te.prototype.validate=function(Ie){return Te.clampedInt(Ie,this.defaultValue,this.minimum,this.maximum)},Te}(x),A=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et,Rt){var Tt=this;return typeof Rt!="undefined"&&(Rt.type="number",Rt.default=nt),Tt=ve.call(this,Ie,pe,nt,Rt)||this,Tt.validationFn=Et,Tt}return Te.clamp=function(Ie,pe,nt){return Ie<pe?pe:Ie>nt?nt:Ie},Te.float=function(Ie,pe){if(typeof Ie=="number")return Ie;if(typeof Ie=="undefined")return pe;var nt=parseFloat(Ie);return isNaN(nt)?pe:nt},Te.prototype.validate=function(Ie){return this.validationFn(Te.float(Ie,this.defaultValue))},Te}(x),te=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et){Et===void 0&&(Et=void 0);var Rt=this;return typeof Et!="undefined"&&(Et.type="string",Et.default=nt),Rt=ve.call(this,Ie,pe,nt,Et)||this,Rt}return Te.string=function(Ie,pe){return typeof Ie!="string"?pe:Ie},Te.prototype.validate=function(Ie){return Te.string(Ie,this.defaultValue)},Te}(x),z=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et,Rt){Rt===void 0&&(Rt=void 0);var Tt=this;return typeof Rt!="undefined"&&(Rt.type="string",Rt.enum=Et,Rt.default=nt),Tt=ve.call(this,Ie,pe,nt,Rt)||this,Tt._allowedValues=Et,Tt}return Te.stringSet=function(Ie,pe,nt){return typeof Ie!="string"||nt.indexOf(Ie)===-1?pe:Ie},Te.prototype.validate=function(Ie){return Te.stringSet(Ie,this.defaultValue,this._allowedValues)},Te}(x),_=function(ve){N(Te,ve);function Te(Ie,pe,nt,Et,Rt,Tt,Ht){Ht===void 0&&(Ht=void 0);var Gt=this;return typeof Ht!="undefined"&&(Ht.type="string",Ht.enum=Rt,Ht.default=Et),Gt=ve.call(this,Ie,pe,nt,Ht)||this,Gt._allowedValues=Rt,Gt._convert=Tt,Gt}return Te.prototype.validate=function(Ie){return typeof Ie!="string"?this.defaultValue:this._allowedValues.indexOf(Ie)===-1?this.defaultValue:this._convert(Ie)},Te}(R);function f(ve){switch(ve){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var p=function(ve){N(Te,ve);function Te(){return ve.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[I.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),I.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),I.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:I.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return Te.prototype.validate=function(Ie){switch(Ie){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},Te.prototype.compute=function(Ie,pe,nt){return nt===0?Ie.accessibilitySupport:nt},Te}(R),g=function(ve){N(Te,ve);function Te(){var Ie=this,pe={insertSpace:!0};return Ie=ve.call(this,13,"comments",pe,{"editor.comments.insertSpace":{type:"boolean",default:pe.insertSpace,description:I.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{insertSpace:K.boolean(pe.insertSpace,this.defaultValue.insertSpace)}},Te}(R);function m(ve){switch(ve){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var w;(function(ve){ve[ve.Line=1]="Line",ve[ve.Block=2]="Block",ve[ve.Underline=3]="Underline",ve[ve.LineThin=4]="LineThin",ve[ve.BlockOutline=5]="BlockOutline",ve[ve.UnderlineThin=6]="UnderlineThin"})(w||(w={}));function B(ve){switch(ve){case"line":return w.Line;case"block":return w.Block;case"underline":return w.Underline;case"line-thin":return w.LineThin;case"block-outline":return w.BlockOutline;case"underline-thin":return w.UnderlineThin}}var H=function(ve){N(Te,ve);function Te(){return ve.call(this,104,[55,26])||this}return Te.prototype.compute=function(Ie,pe,nt){var Et="monaco-editor";return pe.get(26)&&(Et+=" "+pe.get(26)),Ie.extraEditorClassName&&(Et+=" "+Ie.extraEditorClassName),pe.get(55)==="default"?Et+=" mouse-default":pe.get(55)==="copy"&&(Et+=" mouse-copy"),pe.get(85)&&(Et+=" showUnused"),Et},Te}(E),re=function(ve){N(Te,ve);function Te(){return ve.call(this,25,"emptySelectionClipboard",!0,{description:I.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return Te.prototype.compute=function(Ie,pe,nt){return nt&&Ie.emptySelectionClipboard},Te}(K),he=function(ve){N(Te,ve);function Te(){var Ie=this,pe={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return Ie=ve.call(this,28,"find",pe,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:pe.seedSearchStringFromSelection,description:I.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:pe.autoFindInSelection,enumDescriptions:[I.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),I.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),I.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:I.a("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:pe.globalFindClipboard,description:I.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:oe.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:pe.addExtraSpaceOnTop,description:I.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{seedSearchStringFromSelection:K.boolean(pe.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof Ie.autoFindInSelection=="boolean"?Ie.autoFindInSelection?"always":"never":z.stringSet(pe.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:K.boolean(pe.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:K.boolean(pe.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},Te}(R),Ee=function(ve){N(Te,ve);function Te(){return ve.call(this,35,"fontLigatures",Te.OFF,{anyOf:[{type:"boolean",description:I.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:I.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:I.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return Te.prototype.validate=function(Ie){return typeof Ie=="undefined"?this.defaultValue:typeof Ie=="string"?Ie==="false"?Te.OFF:Ie==="true"?Te.ON:Ie:Boolean(Ie)?Te.ON:Te.OFF},Te.OFF='"liga" off, "calt" off',Te.ON='"liga" on, "calt" on',Te}(R),Se=function(ve){N(Te,ve);function Te(){return ve.call(this,34)||this}return Te.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo},Te}(E),q=function(ve){N(Te,ve);function Te(){return ve.call(this,36,"fontSize",$e.fontSize,{type:"number",minimum:6,maximum:100,default:$e.fontSize,description:I.a("fontSize","Controls the font size in pixels.")})||this}return Te.prototype.validate=function(Ie){var pe=A.float(Ie,this.defaultValue);return pe===0?$e.fontSize:A.clamp(pe,6,100)},Te.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo.fontSize},Te}(x),Z=function(ve){N(Te,ve);function Te(){var Ie=this,pe={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},nt={type:"string",enum:["peek","gotoAndPeek","goto"],default:pe.multiple,enumDescriptions:[I.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),I.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),I.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return Ie=ve.call(this,41,"gotoLocation",pe,{"editor.gotoLocation.multiple":{deprecationMessage:I.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":F({description:I.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleTypeDefinitions":F({description:I.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleDeclarations":F({description:I.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleImplementations":F({description:I.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},nt),"editor.gotoLocation.multipleReferences":F({description:I.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},nt),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:pe.alternativeDefinitionCommand,description:I.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:pe.alternativeTypeDefinitionCommand,description:I.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:pe.alternativeDeclarationCommand,description:I.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:pe.alternativeImplementationCommand,description:I.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:pe.alternativeReferenceCommand,description:I.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,Ie}return Te.prototype.validate=function(Ie){var pe,nt,Et,Rt,Tt;if(typeof Ie!="object")return this.defaultValue;var Ht=Ie;return{multiple:z.stringSet(Ht.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(pe=Ht.multipleDefinitions)!==null&&pe!==void 0?pe:z.stringSet(Ht.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(nt=Ht.multipleTypeDefinitions)!==null&&nt!==void 0?nt:z.stringSet(Ht.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Et=Ht.multipleDeclarations)!==null&&Et!==void 0?Et:z.stringSet(Ht.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(Rt=Ht.multipleImplementations)!==null&&Rt!==void 0?Rt:z.stringSet(Ht.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(Tt=Ht.multipleReferences)!==null&&Tt!==void 0?Tt:z.stringSet(Ht.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:te.string(Ht.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:te.string(Ht.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:te.string(Ht.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:te.string(Ht.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:te.string(Ht.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},Te}(R),ce=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0,delay:300,sticky:!0};return Ie=ve.call(this,44,"hover",pe,{"editor.hover.enabled":{type:"boolean",default:pe.enabled,description:I.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:pe.delay,description:I.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:pe.sticky,description:I.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),delay:D.clampedInt(pe.delay,this.defaultValue.delay,0,1e4),sticky:K.boolean(pe.sticky,this.defaultValue.sticky)}},Te}(R),Me=function(ve){N(Te,ve);function Te(){return ve.call(this,107,[40,48,30,54,78,50])||this}return Te.prototype.compute=function(Ie,pe,nt){return Te.computeLayout(pe,{outerWidth:Ie.outerWidth,outerHeight:Ie.outerHeight,lineHeight:Ie.fontInfo.lineHeight,lineNumbersDigitCount:Ie.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:Ie.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:Ie.fontInfo.maxDigitWidth,pixelRatio:Ie.pixelRatio})},Te.computeLayout=function(Ie,pe){var nt=pe.outerWidth|0,Et=pe.outerHeight|0,Rt=pe.lineHeight|0,Tt=pe.lineNumbersDigitCount|0,Ht=pe.typicalHalfwidthCharacterWidth,Gt=pe.maxDigitWidth,rn=pe.pixelRatio,Ln=Ie.get(40),yn=Ie.get(50).renderType!==0,Tn=Ie.get(51)|0,Ft=Ie.get(54),pt=Ft.enabled,gt=Ft.side,Dt=Ft.renderCharacters,Lt=rn>=2?Math.round(Ft.scale*2):Ft.scale,Vt=Ft.maxColumn|0,Qt=Ie.get(78),nn=Qt.verticalScrollbarSize|0,sn=Qt.verticalHasArrows,ln=Qt.arrowSize|0,En=Qt.horizontalScrollbarSize|0,On=Ie.get(48),Pn=Ie.get(30),Gn;if(typeof On=="string"&&/^\d+(\.\d+)?ch$/.test(On)){var Qn=parseFloat(On.substr(0,On.length-2));Gn=D.clampedInt(Qn*Ht,0,0,1e3)}else Gn=D.clampedInt(On,0,0,1e3);Pn&&(Gn+=16);var Jn=0;if(yn){var gi=Math.max(Tt,Tn);Jn=Math.round(gi*Gt)}var Kn=0;Ln&&(Kn=Rt);var yi=0,mi=yi+Kn,vt=mi+Jn,Mt=vt+Gn,zt=nt-Kn-Jn-Gn,tn,Ut,Sn,Rn;if(!pt)Ut=0,Sn=0,tn=0,Rn=zt;else{var Bn=Lt/rn;tn=Dt?1:2,Sn=Math.max(0,Math.floor((zt-nn-2)*Bn/(Ht+Bn)))+U;var Fn=Sn/Bn;Fn>Vt&&(Sn=Math.floor(Vt*Bn)),Rn=zt-Sn,gt==="left"?(Ut=0,yi+=Sn,mi+=Sn,vt+=Sn,Mt+=Sn):Ut=nt-Sn-nn}var ri=Math.max(1,Math.floor((Rn-nn-2)/Ht)),ci=sn?ln:0;return{width:nt,height:Et,glyphMarginLeft:yi,glyphMarginWidth:Kn,lineNumbersLeft:mi,lineNumbersWidth:Jn,decorationsLeft:vt,decorationsWidth:Gn,contentLeft:Mt,contentWidth:Rn,renderMinimap:tn,minimapLeft:Ut,minimapWidth:Sn,viewportColumn:ri,verticalScrollbarWidth:nn,horizontalScrollbarHeight:En,overviewRuler:{top:ci,width:nn,height:Et-2*ci,right:0}}},Te}(E),Ve=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0};return Ie=ve.call(this,47,"lightbulb",pe,{"editor.lightbulb.enabled":{type:"boolean",default:pe.enabled,description:I.a("codeActions","Enables the code action lightbulb in the editor.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled)}},Te}(R),_e=function(ve){N(Te,ve);function Te(){return ve.call(this,49,"lineHeight",$e.lineHeight,0,150,{description:I.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return Te.prototype.compute=function(Ie,pe,nt){return Ie.fontInfo.lineHeight},Te}(D),ue=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return Ie=ve.call(this,54,"minimap",pe,{"editor.minimap.enabled":{type:"boolean",default:pe.enabled,description:I.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:pe.side,description:I.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:pe.showSlider,description:I.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:pe.scale,minimum:1,maximum:3,description:I.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:pe.renderCharacters,description:I.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:pe.maxColumn,description:I.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),side:z.stringSet(pe.side,this.defaultValue.side,["right","left"]),showSlider:z.stringSet(pe.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:K.boolean(pe.renderCharacters,this.defaultValue.renderCharacters),scale:D.clampedInt(pe.scale,1,1,3),maxColumn:D.clampedInt(pe.maxColumn,this.defaultValue.maxColumn,1,1e4)}},Te}(R);function se(ve){return ve==="ctrlCmd"?oe.e?"metaKey":"ctrlKey":"altKey"}var fe=function(ve){N(Te,ve);function Te(){var Ie=this,pe={enabled:!0,cycle:!1};return Ie=ve.call(this,64,"parameterHints",pe,{"editor.parameterHints.enabled":{type:"boolean",default:pe.enabled,description:I.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:pe.cycle,description:I.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{enabled:K.boolean(pe.enabled,this.defaultValue.enabled),cycle:K.boolean(pe.cycle,this.defaultValue.cycle)}},Te}(R),ie=function(ve){N(Te,ve);function Te(){return ve.call(this,105)||this}return Te.prototype.compute=function(Ie,pe,nt){return Ie.pixelRatio},Te}(E),J=function(ve){N(Te,ve);function Te(){var Ie=this,pe={other:!0,comments:!1,strings:!1};return Ie=ve.call(this,66,"quickSuggestions",pe,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:pe.strings,description:I.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:pe.comments,description:I.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:pe.other,description:I.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:pe,description:I.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,Ie.defaultValue=pe,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie=="boolean")return Ie;if(typeof Ie=="object"){var pe=Ie,nt={other:K.boolean(pe.other,this.defaultValue.other),comments:K.boolean(pe.comments,this.defaultValue.comments),strings:K.boolean(pe.strings,this.defaultValue.strings)};return nt.other&&nt.comments&&nt.strings?!0:!nt.other&&!nt.comments&&!nt.strings?!1:nt}return this.defaultValue},Te}(R),me=function(ve){N(Te,ve);function Te(){return ve.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[I.a("lineNumbers.off","Line numbers are not rendered."),I.a("lineNumbers.on","Line numbers are rendered as absolute number."),I.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),I.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:I.a("lineNumbers","Controls the display of line numbers.")})||this}return Te.prototype.validate=function(Ie){var pe=this.defaultValue.renderType,nt=this.defaultValue.renderFn;return typeof Ie!="undefined"&&(typeof Ie=="function"?(pe=4,nt=Ie):Ie==="interval"?pe=3:Ie==="relative"?pe=2:Ie==="on"?pe=1:pe=0),{renderType:pe,renderFn:nt}},Te}(R);function ye(ve){var Te=ve.get(73);return Te==="editable"?ve.get(68):!(Te==="on")}var ze=function(ve){N(Te,ve);function Te(){var Ie=this,pe=[];return Ie=ve.call(this,77,"rulers",pe,{type:"array",items:{type:"number"},default:pe,description:I.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this,Ie}return Te.prototype.validate=function(Ie){if(Array.isArray(Ie)){for(var pe=[],nt=0,Et=Ie;nt<Et.length;nt++){var Rt=Et[nt];pe.push(D.clampedInt(Rt,0,0,1e4))}return pe.sort(function(Tt,Ht){return Tt-Ht}),pe}return this.defaultValue},Te}(x);function tt(ve,Te){if(typeof ve!="string")return Te;switch(ve){case"hidden":return 2;case"visible":return 3;default:return 1}}var _t=function(ve){N(Te,ve);function Te(){return ve.call(this,78,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})||this}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie,nt=D.clampedInt(pe.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),Et=D.clampedInt(pe.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:D.clampedInt(pe.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:tt(pe.vertical,this.defaultValue.vertical),horizontal:tt(pe.horizontal,this.defaultValue.horizontal),useShadows:K.boolean(pe.useShadows,this.defaultValue.useShadows),verticalHasArrows:K.boolean(pe.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:K.boolean(pe.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:K.boolean(pe.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:K.boolean(pe.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:nt,horizontalSliderSize:D.clampedInt(pe.horizontalSliderSize,nt,0,1e3),verticalScrollbarSize:Et,verticalSliderSize:D.clampedInt(pe.verticalSliderSize,Et,0,1e3)}},Te}(R),Pt=function(ve){N(Te,ve);function Te(){var Ie=this,pe={insertMode:"insert",insertHighlight:!1,filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,hideStatusBar:!0};return Ie=ve.call(this,89,"suggest",pe,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[I.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),I.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:pe.insertMode,description:I.a("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.insertHighlight":{type:"boolean",default:pe.insertHighlight,description:I.a("suggest.insertHighlight","Controls whether unexpected text modifications while accepting completions should be highlighted, e.g `insertMode` is `replace` but the completion only supports `insert`.")},"editor.suggest.filterGraceful":{type:"boolean",default:pe.filterGraceful,description:I.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:pe.localityBonus,description:I.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:pe.shareSuggestSelections,markdownDescription:I.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:pe.snippetsPreventQuickSuggestions,description:I.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:pe.showIcons,description:I.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:pe.maxVisibleSuggestions,minimum:1,maximum:15,description:I.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:I.a("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.hideStatusBar":{type:"boolean",default:!0,markdownDescription:I.a("editor.suggest.hideStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")}})||this,Ie}return Te.prototype.validate=function(Ie){if(typeof Ie!="object")return this.defaultValue;var pe=Ie;return{insertMode:z.stringSet(pe.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:K.boolean(pe.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:K.boolean(pe.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:K.boolean(pe.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:K.boolean(pe.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:K.boolean(pe.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:K.boolean(pe.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:D.clampedInt(pe.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:K.boolean(pe.showMethods,this.defaultValue.showMethods),showFunctions:K.boolean(pe.showFunctions,this.defaultValue.showFunctions),showConstructors:K.boolean(pe.showConstructors,this.defaultValue.showConstructors),showFields:K.boolean(pe.showFields,this.defaultValue.showFields),showVariables:K.boolean(pe.showVariables,this.defaultValue.showVariables),showClasses:K.boolean(pe.showClasses,this.defaultValue.showClasses),showStructs:K.boolean(pe.showStructs,this.defaultValue.showStructs),showInterfaces:K.boolean(pe.showInterfaces,this.defaultValue.showInterfaces),showModules:K.boolean(pe.showModules,this.defaultValue.showModules),showProperties:K.boolean(pe.showProperties,this.defaultValue.showProperties),showEvents:K.boolean(pe.showEvents,this.defaultValue.showEvents),showOperators:K.boolean(pe.showOperators,this.defaultValue.showOperators),showUnits:K.boolean(pe.showUnits,this.defaultValue.showUnits),showValues:K.boolean(pe.showValues,this.defaultValue.showValues),showConstants:K.boolean(pe.showConstants,this.defaultValue.showConstants),showEnums:K.boolean(pe.showEnums,this.defaultValue.showEnums),showEnumMembers:K.boolean(pe.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:K.boolean(pe.showKeywords,this.defaultValue.showKeywords),showWords:K.boolean(pe.showWords,this.defaultValue.showWords),showColors:K.boolean(pe.showColors,this.defaultValue.showColors),showFiles:K.boolean(pe.showFiles,this.defaultValue.showFiles),showReferences:K.boolean(pe.showReferences,this.defaultValue.showReferences),showFolders:K.boolean(pe.showFolders,this.defaultValue.showFolders),showTypeParameters:K.boolean(pe.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:K.boolean(pe.showSnippets,this.defaultValue.showSnippets),hideStatusBar:K.boolean(pe.hideStatusBar,this.defaultValue.hideStatusBar)}},Te}(R),Xt=function(ve){N(Te,ve);function Te(){return ve.call(this,106,[68])||this}return Te.prototype.compute=function(Ie,pe,nt){var Et=pe.get(68);return Et?!0:Ie.tabFocusMode},Te}(E);function Ke(ve){switch(ve){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}var Xe=function(ve){N(Te,ve);function Te(){return ve.call(this,108,[97,100,101,107,2])||this}return Te.prototype.compute=function(Ie,pe,nt){var Et=pe.get(97),Rt=pe.get(100),Tt=pe.get(101),Ht=pe.get(107),Gt=pe.get(2),rn=null;return Gt===2?rn={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:Tt&&Ie.isDominatedByLongLines?rn={isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,Ht.viewportColumn)}:Et==="on"?rn={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,Ht.viewportColumn)}:Et==="bounded"?rn={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,Ht.viewportColumn),Rt)}:Et==="wordWrapColumn"?rn={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:Rt}:rn={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1},{isDominatedByLongLines:Ie.isDominatedByLongLines,isWordWrapMinified:rn.isWordWrapMinified,isViewportWrapping:rn.isViewportWrapping,wrappingColumn:rn.wrappingColumn}},Te}(E),Ze="Consolas, 'Courier New', monospace",Ye="Menlo, Monaco, 'Courier New', monospace",ke="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",$e={fontFamily:oe.e?Ye:oe.d?ke:Ze,fontWeight:"normal",fontSize:oe.e?12:14,lineHeight:0,letterSpacing:0},we={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},k=[];function ee(ve){return k[ve.id]=ve,ve}var Pe={acceptSuggestionOnCommitCharacter:ee(new K(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:I.a("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ee(new z(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",I.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:I.a("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ee(new p),accessibilityPageSize:ee(new D(3,"accessibilityPageSize",10,1,1073741824,{description:I.a("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:ee(new te(4,"ariaLabel",I.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ee(new z(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",I.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),I.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:I.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:ee(new z(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",I.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:I.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ee(new z(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",I.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),I.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:I.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ee(new _(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],f,{enumDescriptions:[I.a("editor.autoIndent.none","The editor will not insert indentation automatically."),I.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),I.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),I.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),I.a("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:I.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ee(new K(9,"automaticLayout",!1)),autoSurround:ee(new z(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[I.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),I.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),I.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:I.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:ee(new K(11,"codeLens",!0,{description:I.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:ee(new K(12,"colorDecorators",!0,{description:I.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),comments:ee(new g),contextmenu:ee(new K(14,"contextmenu",!0)),copyWithSyntaxHighlighting:ee(new K(15,"copyWithSyntaxHighlighting",!0,{description:I.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ee(new _(16,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],m,{description:I.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ee(new K(17,"cursorSmoothCaretAnimation",!1,{description:I.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ee(new _(18,"cursorStyle",w.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],B,{description:I.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ee(new D(19,"cursorSurroundingLines",0,0,1073741824,{description:I.a("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:ee(new z(20,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[I.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),I.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:I.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ee(new D(21,"cursorWidth",0,0,1073741824,{markdownDescription:I.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ee(new K(22,"disableLayerHinting",!1)),disableMonospaceOptimizations:ee(new K(23,"disableMonospaceOptimizations",!1)),dragAndDrop:ee(new K(24,"dragAndDrop",!0,{description:I.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ee(new re),extraEditorClassName:ee(new te(26,"extraEditorClassName","")),fastScrollSensitivity:ee(new A(27,"fastScrollSensitivity",5,function(ve){return ve<=0?5:ve},{markdownDescription:I.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ee(new he),fixedOverflowWidgets:ee(new K(29,"fixedOverflowWidgets",!1)),folding:ee(new K(30,"folding",!0,{description:I.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ee(new z(31,"foldingStrategy","auto",["auto","indentation"],{markdownDescription:I.a("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")})),foldingHighlight:ee(new K(32,"foldingHighlight",!0,{description:I.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),fontFamily:ee(new te(33,"fontFamily",$e.fontFamily,{description:I.a("fontFamily","Controls the font family.")})),fontInfo:ee(new Se),fontLigatures2:ee(new Ee),fontSize:ee(new q),fontWeight:ee(new te(37,"fontWeight",$e.fontWeight,{enum:["normal","bold","100","200","300","400","500","600","700","800","900"],description:I.a("fontWeight","Controls the font weight.")})),formatOnPaste:ee(new K(38,"formatOnPaste",!1,{description:I.a("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ee(new K(39,"formatOnType",!1,{description:I.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ee(new K(40,"glyphMargin",!0,{description:I.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ee(new Z),hideCursorInOverviewRuler:ee(new K(42,"hideCursorInOverviewRuler",!1,{description:I.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:ee(new K(43,"highlightActiveIndentGuide",!0,{description:I.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:ee(new ce),inDiffEditor:ee(new K(45,"inDiffEditor",!1)),letterSpacing:ee(new A(46,"letterSpacing",$e.letterSpacing,function(ve){return A.clamp(ve,-5,20)},{description:I.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ee(new Ve),lineDecorationsWidth:ee(new x(48,"lineDecorationsWidth",10)),lineHeight:ee(new _e),lineNumbers:ee(new me),lineNumbersMinChars:ee(new D(51,"lineNumbersMinChars",5,1,300)),links:ee(new K(52,"links",!0,{description:I.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ee(new z(53,"matchBrackets","always",["always","near","never"],{description:I.a("matchBrackets","Highlight matching brackets.")})),minimap:ee(new ue),mouseStyle:ee(new z(55,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ee(new A(56,"mouseWheelScrollSensitivity",1,function(ve){return ve===0?1:ve},{markdownDescription:I.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ee(new K(57,"mouseWheelZoom",!1,{markdownDescription:I.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ee(new K(58,"multiCursorMergeOverlapping",!0,{description:I.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ee(new _(59,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],se,{markdownEnumDescriptions:[I.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),I.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:I.a({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ee(new z(60,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[I.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),I.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:I.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:ee(new K(61,"occurrencesHighlight",!0,{description:I.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ee(new K(62,"overviewRulerBorder",!0,{description:I.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ee(new D(63,"overviewRulerLanes",3,0,3)),parameterHints:ee(new fe),peekWidgetDefaultFocus:ee(new z(65,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[I.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),I.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:I.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),quickSuggestions:ee(new J),quickSuggestionsDelay:ee(new D(67,"quickSuggestionsDelay",10,0,1073741824,{description:I.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ee(new K(68,"readOnly",!1)),renderControlCharacters:ee(new K(69,"renderControlCharacters",!1,{description:I.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:ee(new K(70,"renderIndentGuides",!0,{description:I.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:ee(new K(71,"renderFinalNewline",!0,{description:I.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ee(new z(72,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",I.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:I.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderValidationDecorations:ee(new z(73,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ee(new z(74,"renderWhitespace","none",["none","boundary","selection","all"],{enumDescriptions:["",I.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),I.a("renderWhitespace.selection","Render whitespace characters only on selected text."),""],description:I.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ee(new D(75,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:ee(new K(76,"roundedSelection",!0,{description:I.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ee(new ze),scrollbar:ee(new _t),scrollBeyondLastColumn:ee(new D(79,"scrollBeyondLastColumn",5,0,1073741824,{description:I.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ee(new K(80,"scrollBeyondLastLine",!0,{description:I.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:ee(new K(81,"selectionClipboard",!0,{description:I.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:oe.d})),selectionHighlight:ee(new K(82,"selectionHighlight",!0,{description:I.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ee(new K(83,"selectOnLineNumbers",!0)),showFoldingControls:ee(new z(84,"showFoldingControls","mouseover",["always","mouseover"],{description:I.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:ee(new K(85,"showUnused",!0,{description:I.a("showUnused","Controls fading out of unused code.")})),snippetSuggestions:ee(new z(86,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[I.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),I.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),I.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),I.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:I.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:ee(new K(87,"smoothScrolling",!1,{description:I.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ee(new D(88,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ee(new Pt),suggestFontSize:ee(new D(90,"suggestFontSize",0,0,1e3,{markdownDescription:I.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:ee(new D(91,"suggestLineHeight",0,0,1e3,{markdownDescription:I.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:ee(new K(92,"suggestOnTriggerCharacters",!0,{description:I.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ee(new z(93,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[I.a("suggestSelection.first","Always select the first suggestion."),I.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),I.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:I.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ee(new z(94,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[I.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),I.a("tabCompletion.off","Disable tab completions."),I.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:I.a("tabCompletion","Enables tab completions.")})),useTabStops:ee(new K(95,"useTabStops",!0,{description:I.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:ee(new te(96,"wordSeparators",ne.b,{description:I.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ee(new z(97,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[I.a("wordWrap.off","Lines will never wrap."),I.a("wordWrap.on","Lines will wrap at the viewport width."),I.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),I.a({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:I.a({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ee(new te(98,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:ee(new te(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:ee(new D(100,"wordWrapColumn",80,1,1073741824,{markdownDescription:I.a({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:ee(new K(101,"wordWrapMinified",!0)),wrappingIndent:ee(new _(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],Ke,{enumDescriptions:[I.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),I.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),I.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),I.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:I.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:ee(new z(103,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[I.a("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),I.a("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:I.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:ee(new H),pixelRatio:ee(new ie),tabFocusMode:ee(new Xt),layoutInfo:ee(new Me),wrappingInfo:ee(new Xe)}},jyJ4:function(wt,P,r){"use strict";r.d(P,"a",function(){return G}),r.d(P,"c",function(){return R}),r.d(P,"b",function(){return E});var I=r("g9ht"),oe=r("YK2C"),ne=r("vqGt"),N=r("tkZS"),F=r("E+fE"),U={ModesRegistry:"editor.modesRegistry"},j=function(){function x(){this._onDidChangeLanguages=new oe.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return x.prototype.registerLanguage=function(K){this._languages.push(K),this._onDidChangeLanguages.fire(void 0)},x.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},x}(),G=new j;F.a.add(U.ModesRegistry,G);var R="plaintext",E=new ne.q(R,1);G.registerLanguage({id:R,extensions:[".txt",".gitignore"],aliases:[I.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),N.a.register(E,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},"k//2":function(wt,P,r){},kEqQ:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return ne});var I=function(){function N(F,U,j){this.from=F|0,this.to=U|0,this.colorId=j|0}return N.compare=function(F,U){return F.colorId===U.colorId?F.from===U.from?F.to-U.to:F.from-U.from:F.colorId-U.colorId},N}(),oe=function(){function N(F,U,j){this.startLineNumber=F,this.endLineNumber=U,this.color=j,this._colorZone=null}return N.compare=function(F,U){return F.color===U.color?F.startLineNumber===U.startLineNumber?F.endLineNumber-U.endLineNumber:F.startLineNumber-U.startLineNumber:F.color<U.color?-1:1},N.prototype.setColorZone=function(F){this._colorZone=F},N.prototype.getColorZones=function(){return this._colorZone},N}(),ne=function(){function N(F){this._getVerticalOffsetForLine=F,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=[]}return N.prototype.getId2Color=function(){return this._id2Color},N.prototype.setZones=function(F){this._zones=F,this._zones.sort(oe.compare)},N.prototype.setLineHeight=function(F){return this._lineHeight===F?!1:(this._lineHeight=F,this._colorZonesInvalid=!0,!0)},N.prototype.setPixelRatio=function(F){this._pixelRatio=F,this._colorZonesInvalid=!0},N.prototype.getDOMWidth=function(){return this._domWidth},N.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},N.prototype.setDOMWidth=function(F){return this._domWidth===F?!1:(this._domWidth=F,this._colorZonesInvalid=!0,!0)},N.prototype.getDOMHeight=function(){return this._domHeight},N.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},N.prototype.setDOMHeight=function(F){return this._domHeight===F?!1:(this._domHeight=F,this._colorZonesInvalid=!0,!0)},N.prototype.getOuterHeight=function(){return this._outerHeight},N.prototype.setOuterHeight=function(F){return this._outerHeight===F?!1:(this._outerHeight=F,this._colorZonesInvalid=!0,!0)},N.prototype.resolveColorZones=function(){for(var F=this._colorZonesInvalid,U=Math.floor(this._lineHeight),j=Math.floor(this.getCanvasHeight()),G=Math.floor(this._outerHeight),R=j/G,E=Math.floor(4*this._pixelRatio/2),x=[],K=0,D=this._zones.length;K<D;K++){var A=this._zones[K];if(!F){var te=A.getColorZones();if(te){x.push(te);continue}}var z=Math.floor(R*this._getVerticalOffsetForLine(A.startLineNumber)),_=Math.floor(R*(this._getVerticalOffsetForLine(A.endLineNumber)+U)),f=Math.floor((z+_)/2),p=_-f;p<E&&(p=E),f-p<0&&(f=p),f+p>j&&(f=j-p);var g=A.color,m=this._color2Id[g];m||(m=++this._lastAssignedId,this._color2Id[g]=m,this._id2Color[m]=g);var w=new I(f-p,f+p,m);A.setColorZone(w),x.push(w)}return this._colorZonesInvalid=!1,x.sort(I.compare),x},N}()},khgB:function(wt,P,r){"use strict";r.d(P,"f",function(){return oe}),r.d(P,"b",function(){return ne}),r.d(P,"c",function(){return N}),r.d(P,"d",function(){return F}),r.d(P,"a",function(){return U}),r.d(P,"e",function(){return j});var I=r("yBOt"),oe=function(){function G(R,E,x,K){this.top=R|0,this.left=E|0,this.width=x|0,this.height=K|0}return G}(),ne=function(){function G(R,E){this.tabSize=R,this.data=E}return G}(),N=function(){function G(R,E,x,K,D,A){this.content=R,this.continuesWithWrappedLine=E,this.minColumn=x,this.maxColumn=K,this.startVisibleColumn=D,this.tokens=A}return G}(),F=function(){function G(R,E,x,K,D,A,te,z,_,f){this.minColumn=R,this.maxColumn=E,this.content=x,this.continuesWithWrappedLine=K,this.isBasicASCII=G.isBasicASCII(x,A),this.containsRTL=G.containsRTL(x,this.isBasicASCII,D),this.tokens=te,this.inlineDecorations=z,this.tabSize=_,this.startVisibleColumn=f}return G.isBasicASCII=function(R,E){return E?I.v(R):!0},G.containsRTL=function(R,E,x){return!E&&x?I.i(R):!1},G}(),U=function(){function G(R,E,x){this.range=R,this.inlineClassName=E,this.type=x}return G}(),j=function(){function G(R,E){this.range=R,this.options=E}return G}()},kpiZ:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return r.e(258).then(r.bind(null,"Cag9"))}})},"l+zK":function(wt,P,r){"use strict";r.d(P,"a",function(){return ne}),r.d(P,"b",function(){return F});var I=r("YK2C"),oe=Object.freeze(function(U,j){var G=setTimeout(U.bind(j),0);return{dispose:function(){clearTimeout(G)}}}),ne;(function(U){function j(G){return G===U.None||G===U.Cancelled||G instanceof N?!0:!G||typeof G!="object"?!1:typeof G.isCancellationRequested=="boolean"&&typeof G.onCancellationRequested=="function"}U.isCancellationToken=j,U.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:I.b.None}),U.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:oe})})(ne||(ne={}));var N=function(){function U(){this._isCancelled=!1,this._emitter=null}return U.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(U.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?oe:(this._emitter||(this._emitter=new I.a),this._emitter.event)},enumerable:!0,configurable:!0}),U.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},U}(),F=function(){function U(j){this._token=void 0,this._parentListener=void 0,this._parentListener=j&&j.onCancellationRequested(this.cancel,this)}return Object.defineProperty(U.prototype,"token",{get:function(){return this._token||(this._token=new N),this._token},enumerable:!0,configurable:!0}),U.prototype.cancel=function(){this._token?this._token instanceof N&&this._token.cancel():this._token=ne.Cancelled},U.prototype.dispose=function(j){j===void 0&&(j=!1),j&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof N&&this._token.dispose():this._token=ne.None},U}()},lgEJ:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return ne}),r.d(P,"c",function(){return N});var I=r("PoD0"),oe=Object(I.c)("logService"),ne;(function(F){F[F.Trace=0]="Trace",F[F.Debug=1]="Debug",F[F.Info=2]="Info",F[F.Warning=3]="Warning",F[F.Error=4]="Error",F[F.Critical=5]="Critical",F[F.Off=6]="Off"})(ne||(ne={}));var N=function(){function F(){}return F.prototype.getLevel=function(){return ne.Info},F.prototype.trace=function(U){for(var j=[],G=1;G<arguments.length;G++)j[G-1]=arguments[G]},F.prototype.error=function(U){for(var j=[],G=1;G<arguments.length;G++)j[G-1]=arguments[G]},F.prototype.dispose=function(){},F}()},lh12:function(wt,P,r){"use strict";r.d(P,"b",function(){return F}),r.d(P,"a",function(){return z});var I=r("yBOt"),oe=r("w9Cd"),ne=function(){function _(f,p,g,m,w,B){this.languageIdentifier=f,this.index=p,this.open=g,this.close=m,this.forwardRegex=w,this.reversedRegex=B,this._openSet=_._toSet(this.open),this._closeSet=_._toSet(this.close)}return _.prototype.isOpen=function(f){return this._openSet.has(f)},_.prototype.isClose=function(f){return this._closeSet.has(f)},_._toSet=function(f){for(var p=new Set,g=0,m=f;g<m.length;g++){var w=m[g];p.add(w)}return p},_}();function N(_){var f=_.length;_=_.map(function(Ve){return[Ve[0].toLowerCase(),Ve[1].toLowerCase()]});for(var p=[],g=0;g<f;g++)p[g]=g;for(var m=function(_e,ue){var se=_e[0],fe=_e[1],ie=ue[0],J=ue[1];return se===ie||se===J||fe===ie||fe===J},w=function(_e,ue){for(var se=Math.min(_e,ue),fe=Math.max(_e,ue),ie=0;ie<f;ie++)p[ie]===fe&&(p[ie]=se)},g=0;g<f;g++)for(var B=_[g],H=g+1;H<f;H++){var re=_[H];m(B,re)&&w(p[g],p[H])}for(var he=[],Ee=0;Ee<f;Ee++){for(var Se=[],q=[],g=0;g<f;g++)if(p[g]===Ee){var Z=_[g],ce=Z[0],Me=Z[1];Se.push(ce),q.push(Me)}Se.length>0&&he.push({open:Se,close:q})}return he}var F=function(){function _(f,p){var g=N(p);this.brackets=g.map(function(Z,ce){return new ne(f,ce,Z.open,Z.close,R(Z.open,Z.close,g,ce),E(Z.open,Z.close,g,ce))}),this.forwardRegex=x(this.brackets),this.reversedRegex=K(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var m=0,w=this.brackets;m<w.length;m++){for(var B=w[m],H=0,re=B.open;H<re.length;H++){var he=re[H];this.textIsBracket[he]=B,this.textIsOpenBracket[he]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,he.length)}for(var Ee=0,Se=B.close;Ee<Se.length;Ee++){var q=Se[Ee];this.textIsBracket[q]=B,this.textIsOpenBracket[q]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,q.length)}}}return _}();function U(_,f,p,g){for(var m=0,w=f.length;m<w;m++){if(m===p)continue;for(var B=f[m],H=0,re=B.open;H<re.length;H++){var he=re[H];he.indexOf(_)>=0&&g.push(he)}for(var Ee=0,Se=B.close;Ee<Se.length;Ee++){var q=Se[Ee];q.indexOf(_)>=0&&g.push(q)}}}function j(_,f){return _.length-f.length}function G(_){if(_.length<=1)return _;for(var f=[],p=new Set,g=0,m=_;g<m.length;g++){var w=m[g];if(p.has(w))continue;f.push(w),p.add(w)}return f}function R(_,f,p,g){var m=[];m=m.concat(_),m=m.concat(f);for(var w=0,B=m.length;w<B;w++)U(m[w],p,g,m);return m=G(m),m.sort(j),m.reverse(),A(m)}function E(_,f,p,g){var m=[];m=m.concat(_),m=m.concat(f);for(var w=0,B=m.length;w<B;w++)U(m[w],p,g,m);return m=G(m),m.sort(j),m.reverse(),A(m.map(te))}function x(_){for(var f=[],p=0,g=_;p<g.length;p++){for(var m=g[p],w=0,B=m.open;w<B.length;w++){var H=B[w];f.push(H)}for(var re=0,he=m.close;re<he.length;re++){var Ee=he[re];f.push(Ee)}}return f=G(f),A(f)}function K(_){for(var f=[],p=0,g=_;p<g.length;p++){for(var m=g[p],w=0,B=m.open;w<B.length;w++){var H=B[w];f.push(H)}for(var re=0,he=m.close;re<he.length;re++){var Ee=he[re];f.push(Ee)}}return f=G(f),A(f.map(te))}function D(_){var f=/^[\w ]+$/.test(_);return _=I.p(_),f?"\\b"+_+"\\b":_}function A(_){var f="("+_.map(D).join(")|(")+")";return I.l(f,!0)}var te=function(){function _(g){for(var m="",w=g.length-1;w>=0;w--)m+=g.charAt(w);return m}var f=null,p=null;return function(m){return f!==m&&(f=m,p=_(f)),p}}(),z=function(){function _(){}return _._findPrevBracketInText=function(f,p,g,m){var w=g.match(f);if(!w)return null;var B=g.length-(w.index||0),H=w[0].length,re=m+B;return new oe.a(p,re-H+1,p,re+1)},_.findPrevBracketInRange=function(f,p,g,m,w){var B=te(g),H=B.substring(g.length-w,g.length-m);return this._findPrevBracketInText(f,p,H,m)},_.findNextBracketInText=function(f,p,g,m){var w=g.match(f);if(!w)return null;var B=w.index||0,H=w[0].length;if(H===0)return null;var re=m+B;return new oe.a(p,re+1,p,re+1+H)},_.findNextBracketInRange=function(f,p,g,m,w){var B=g.substring(m,w);return this.findNextBracketInText(f,p,B,m)},_}()},loeZ:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return r.e(259).then(r.bind(null,"6trW"))}})},mMfk:function(wt,P,r){},mN3h:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return r.e(232).then(r.bind(null,"X3yt"))}})},mOgA:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return r.e(203).then(r.bind(null,"LqO4"))}})},mRZz:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("PoD0"),oe="editorWorkerService",ne=Object(I.c)(oe)},mTMv:function(wt,P,r){"use strict";r.d(P,"c",function(){return ne}),r.d(P,"b",function(){return N}),r.d(P,"o",function(){return F}),r.d(P,"a",function(){return U}),r.d(P,"i",function(){return G}),r.d(P,"e",function(){return R}),r.d(P,"f",function(){return E}),r.d(P,"h",function(){return x}),r.d(P,"m",function(){return K}),r.d(P,"d",function(){return D}),r.d(P,"k",function(){return A}),r.d(P,"n",function(){return te}),r.d(P,"j",function(){return z}),r.d(P,"g",function(){return _}),r.d(P,"l",function(){return f});var I=r("YK2C"),oe=function(){function p(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new I.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return p.prototype.getZoomLevel=function(){return this._zoomLevel},p.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},p.prototype.getPixelRatio=function(){var g=document.createElement("canvas").getContext("2d"),m=window.devicePixelRatio||1,w=g.webkitBackingStorePixelRatio||g.mozBackingStorePixelRatio||g.msBackingStorePixelRatio||g.oBackingStorePixelRatio||g.backingStorePixelRatio||1;return m/w},p.INSTANCE=new p,p}();function ne(){return oe.INSTANCE.getZoomLevel()}function N(){return oe.INSTANCE.getTimeSinceLastZoomLevelChanged()}function F(p){return oe.INSTANCE.onDidChangeZoomLevel(p)}function U(){return oe.INSTANCE.getPixelRatio()}var j=navigator.userAgent,G=j.indexOf("Trident")>=0,R=j.indexOf("Edge/")>=0,E=G||R,x=j.indexOf("Firefox")>=0,K=j.indexOf("AppleWebKit")>=0,D=j.indexOf("Chrome")>=0,A=!D&&j.indexOf("Safari")>=0,te=!D&&!A&&K,z=j.indexOf("iPad")>=0||A&&navigator.maxTouchPoints>0,_=R&&j.indexOf("WebView/")>=0,f=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},mWsY:function(wt,P,r){"use strict";r.d(P,"a",function(){return j}),r.d(P,"b",function(){return G}),r.d(P,"c",function(){return R});var I=r("zOJ8"),oe=r("PoD0"),ne=r("bN5T"),N=r("yBOt"),F=function(E,x,K,D){function A(te){return te instanceof K?te:new K(function(z){z(te)})}return new(K||(K=Promise))(function(te,z){function _(g){try{p(D.next(g))}catch(m){z(m)}}function f(g){try{p(D.throw(g))}catch(m){z(m)}}function p(g){g.done?te(g.value):A(g.value).then(_,f)}p((D=D.apply(E,x||[])).next())})},U=function(E,x){var K={label:0,sent:function(){if(te[0]&1)throw te[1];return te[1]},trys:[],ops:[]},D,A,te,z;return z={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function _(p){return function(g){return f([p,g])}}function f(p){if(D)throw new TypeError("Generator is already executing.");for(;K;)try{if(D=1,A&&(te=p[0]&2?A.return:p[0]?A.throw||((te=A.return)&&te.call(A),0):A.next)&&!(te=te.call(A,p[1])).done)return te;(A=0,te)&&(p=[p[0]&2,te.value]);switch(p[0]){case 0:case 1:te=p;break;case 4:return K.label++,{value:p[1],done:!1};case 5:K.label++,A=p[1],p=[0];continue;case 7:p=K.ops.pop(),K.trys.pop();continue;default:if(!(te=K.trys,te=te.length>0&&te[te.length-1])&&(p[0]===6||p[0]===2)){K=0;continue}if(p[0]===3&&(!te||p[1]>te[0]&&p[1]<te[3])){K.label=p[1];break}if(p[0]===6&&K.label<te[1]){K.label=te[1],te=p;break}if(te&&K.label<te[2]){K.label=te[2],K.ops.push(p);break}te[2]&&K.ops.pop(),K.trys.pop();continue}p=x.call(E,K)}catch(g){p=[6,g],A=0}finally{D=te=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},j=Object(oe.c)("openerService"),G=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return ne.a.None},registerValidator:function(){return ne.a.None},registerExternalUriResolver:function(){return ne.a.None},setExternalOpener:function(){},open:function(){return F(this,void 0,void 0,function(){return U(this,function(x){return[2,!1]})})},resolveExternalUri:function(x){return F(this,void 0,void 0,function(){return U(this,function(K){return[2,{resolved:x,dispose:function(){}}]})})}});function R(E,x){return I.a.isUri(E)?Object(N.n)(E.scheme,x):Object(N.N)(E,x+":")}},mhhl:function(wt,P,r){},mmaD:function(wt,P,r){"use strict";r.d(P,"c",function(){return oe}),r.d(P,"b",function(){return ne}),r.d(P,"a",function(){return N});var I=r("fF8p");function oe(E,x){x===void 0&&(x={});var K=N(x);return K.textContent=E,K}function ne(E,x){x===void 0&&(x={});var K=N(x);return U(K,j(E),x.actionHandler),K}function N(E){var x=E.inline?"span":"div",K=document.createElement(x);return E.className&&(K.className=E.className),K}var F=function(){function E(x){this.source=x,this.index=0}return E.prototype.eos=function(){return this.index>=this.source.length},E.prototype.next=function(){var x=this.peek();return this.advance(),x},E.prototype.peek=function(){return this.source[this.index]},E.prototype.advance=function(){this.index++},E}();function U(E,x,K){var D;if(x.type===2)D=document.createTextNode(x.content||"");else if(x.type===3)D=document.createElement("b");else if(x.type===4)D=document.createElement("i");else if(x.type===5&&K){var A=document.createElement("a");A.href="#",K.disposeables.add(I.n(A,"click",function(te){K.callback(String(x.index),te)})),D=A}else x.type===7?D=document.createElement("br"):x.type===1&&(D=E);D&&E!==D&&E.appendChild(D),D&&Array.isArray(x.children)&&x.children.forEach(function(te){U(D,te,K)})}function j(E){for(var x={type:1,children:[]},K=0,D=x,A=[],te=new F(E);!te.eos();){var z=te.next(),_=z==="\\"&&R(te.peek())!==0;if(_&&(z=te.next()),!_&&G(z)&&z===te.peek()){te.advance(),D.type===2&&(D=A.pop());var f=R(z);if(D.type===f||D.type===5&&f===6)D=A.pop();else{var p={type:f,children:[]};f===5&&(p.index=K,K++),D.children.push(p),A.push(D),D=p}}else if(z===`
|
|
`)D.type===2&&(D=A.pop()),D.children.push({type:7});else if(D.type!==2){var g={type:2,content:z};D.children.push(g),A.push(D),D=g}else D.content+=z}return D.type===2&&(D=A.pop()),A.length,x}function G(E){return R(E)!==0}function R(E){switch(E){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},mucJ:function(wt,P,r){"use strict";r.d(P,"c",function(){return oe}),r.d(P,"d",function(){return ne}),r.d(P,"b",function(){return F}),r.d(P,"g",function(){return j}),r.d(P,"a",function(){return G}),r.d(P,"e",function(){return R}),r.d(P,"f",function(){return E});var I=r("yqRl");function oe(x){if(!x||typeof x!="object")return x;if(x instanceof RegExp)return x;var K=Array.isArray(x)?[]:{};return Object.keys(x).forEach(function(D){x[D]&&typeof x[D]=="object"?K[D]=oe(x[D]):K[D]=x[D]}),K}function ne(x){if(!x||typeof x!="object")return x;for(var K=[x];K.length>0;){var D=K.shift();Object.freeze(D);for(var A in D)if(N.call(D,A)){var te=D[A];typeof te=="object"&&!Object.isFrozen(te)&&K.push(te)}}return x}var N=Object.prototype.hasOwnProperty;function F(x,K){return U(x,K,new Set)}function U(x,K,D){if(Object(I.l)(x))return x;var A=K(x);if(typeof A!="undefined")return A;if(Object(I.d)(x)){for(var te=[],z=0,_=x;z<_.length;z++){var f=_[z];te.push(U(f,K,D))}return te}if(Object(I.i)(x)){if(D.has(x))throw new Error("Cannot clone recursive data-structure");D.add(x);var p={};for(var g in x)N.call(x,g)&&(p[g]=U(x[g],K,D));return D.delete(x),p}return x}function j(x,K,D){return D===void 0&&(D=!0),Object(I.i)(x)?(Object(I.i)(K)&&Object.keys(K).forEach(function(A){A in x?D&&(Object(I.i)(x[A])&&Object(I.i)(K[A])?j(x[A],K[A],D):x[A]=K[A]):x[A]=K[A]}),x):K}function G(x){for(var K=[],D=1;D<arguments.length;D++)K[D-1]=arguments[D];return K.forEach(function(A){return Object.keys(A).forEach(function(te){return x[te]=A[te]})}),x}function R(x,K){if(x===K)return!0;if(x==null||K===null||K===void 0)return!1;if(typeof x!==typeof K)return!1;if(typeof x!="object")return!1;if(Array.isArray(x)!==Array.isArray(K))return!1;var D,A;if(Array.isArray(x)){if(x.length!==K.length)return!1;for(D=0;D<x.length;D++)if(!R(x[D],K[D]))return!1}else{var te=[];for(A in x)te.push(A);te.sort();var z=[];for(A in K)z.push(A);if(z.sort(),!R(te,z))return!1;for(D=0;D<te.length;D++)if(!R(x[te[D]],K[te[D]]))return!1}return!0}function E(x,K,D){var A=K(x);return typeof A=="undefined"?D:A}},nRfS:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return r.e(214).then(r.bind(null,"t3Iv"))}})},ncT7:function(wt,P,r){},"o1/H":function(wt,P,r){"use strict";r.r(P),r.d(P,"LanguageServiceDefaultsImpl",function(){return N});var I=r("1lNs"),oe=r.n(I);"use strict";var ne=monaco.Emitter,N=function(){function K(D,A,te){this._onDidChange=new ne,this._languageId=D,this.setDiagnosticsOptions(A),this.setModeConfiguration(te)}return Object.defineProperty(K.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(K.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),K.prototype.setDiagnosticsOptions=function(D){this._diagnosticsOptions=D||Object.create(null),this._onDidChange.fire(this)},K.prototype.setModeConfiguration=function(D){this._modeConfiguration=D||Object.create(null),this._onDidChange.fire(this)},K}(),F={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"}},U={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},j=new N("css",F,U),G=new N("scss",F,U),R=new N("less",F,U);function E(){return{cssDefaults:j,lessDefaults:R,scssDefaults:G}}monaco.languages.css=E();function x(){return r.e(200).then(r.bind(null,"JB92"))}monaco.languages.onLanguage("less",function(){x().then(function(K){return K.setupMode(R)})}),monaco.languages.onLanguage("scss",function(){x().then(function(K){return K.setupMode(G)})}),monaco.languages.onLanguage("css",function(){x().then(function(K){return K.setupMode(j)})})},o75R:function(wt,P,r){"use strict";r.d(P,"b",function(){return F}),r.d(P,"c",function(){return U}),r.d(P,"a",function(){return j}),r.d(P,"d",function(){return R}),r.d(P,"e",function(){return x});var I=r("yBOt"),oe=r("I+kL"),ne=r("UFql"),N=function(){function p(g,m){this.endIndex=g,this.type=m}return p}(),F=function(){function p(g,m){this.startOffset=g,this.endOffset=m}return p.prototype.equals=function(g){return this.startOffset===g.startOffset&&this.endOffset===g.endOffset},p}(),U=function(){function p(g,m,w,B,H,re,he,Ee,Se,q,Z,ce,Me,Ve,_e,ue,se,fe){this.useMonospaceOptimizations=g,this.canUseHalfwidthRightwardsArrow=m,this.lineContent=w,this.continuesWithWrappedLine=B,this.isBasicASCII=H,this.containsRTL=re,this.fauxIndentLength=he,this.lineTokens=Ee,this.lineDecorations=Se,this.tabSize=q,this.startVisibleColumn=Z,this.spaceWidth=ce,this.middotWidth=Me,this.stopRenderingLineAfter=Ve,this.renderWhitespace=_e==="all"?3:_e==="boundary"?1:_e==="selection"?2:0,this.renderControlCharacters=ue,this.fontLigatures=se,this.selectionsOnLine=fe&&fe.sort(function(ie,J){return ie.startOffset<J.startOffset?-1:1})}return p.prototype.sameSelection=function(g){if(this.selectionsOnLine===null)return g===null;if(g===null)return!1;if(g.length!==this.selectionsOnLine.length)return!1;for(var m=0;m<this.selectionsOnLine.length;m++)if(!this.selectionsOnLine[m].equals(g[m]))return!1;return!0},p.prototype.equals=function(g){return this.useMonospaceOptimizations===g.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===g.canUseHalfwidthRightwardsArrow&&this.lineContent===g.lineContent&&this.continuesWithWrappedLine===g.continuesWithWrappedLine&&this.isBasicASCII===g.isBasicASCII&&this.containsRTL===g.containsRTL&&this.fauxIndentLength===g.fauxIndentLength&&this.tabSize===g.tabSize&&this.startVisibleColumn===g.startVisibleColumn&&this.spaceWidth===g.spaceWidth&&this.stopRenderingLineAfter===g.stopRenderingLineAfter&&this.renderWhitespace===g.renderWhitespace&&this.renderControlCharacters===g.renderControlCharacters&&this.fontLigatures===g.fontLigatures&&ne.a.equalsArr(this.lineDecorations,g.lineDecorations)&&this.lineTokens.equals(g.lineTokens)&&this.sameSelection(g.selectionsOnLine)},p}(),j=function(){function p(g,m){this.length=g,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return p.getPartIndex=function(g){return(g&4294901760)>>>16},p.getCharIndex=function(g){return(g&65535)>>>0},p.prototype.setPartData=function(g,m,w,B){var H=(m<<16|w<<0)>>>0;this._data[g]=H,this._absoluteOffsets[g]=B+w},p.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},p.prototype.charOffsetToPartData=function(g){return this.length===0?0:g<0?this._data[0]:g>=this.length?this._data[this.length-1]:this._data[g]},p.prototype.partDataToCharOffset=function(g,m,w){if(this.length===0)return 0;for(var B=(g<<16|w<<0)>>>0,H=0,re=this.length-1;H+1<re;){var he=H+re>>>1,Ee=this._data[he];if(Ee===B)return he;Ee>B?re=he:H=he}if(H===re)return H;var Se=this._data[H],q=this._data[re];if(Se===B)return H;if(q===B)return re;var Z=p.getPartIndex(Se),ce=p.getCharIndex(Se),Me=p.getPartIndex(q),Ve;Z!==Me?Ve=m:Ve=p.getCharIndex(q);var _e=w-ce,ue=Ve-w;return _e<=ue?H:re},p}(),G=function(){function p(g,m,w){this.characterMapping=g,this.containsRTL=m,this.containsForeignElements=w}return p}();function R(p,g){if(p.lineContent.length===0){var m=0,w="<span><span>\xA0</span></span>";if(p.lineDecorations.length>0){for(var B=[],H=[],re=0,he=p.lineDecorations.length;re<he;re++){var Ee=p.lineDecorations[re];Ee.type===1&&(B.push(p.lineDecorations[re].className),m|=1),Ee.type===2&&(H.push(p.lineDecorations[re].className),m|=2)}if(m!==0){var Se=B.length>0?'<span class="'+B.join(" ")+'"></span>':"",q=H.length>0?'<span class="'+H.join(" ")+'"></span>':"";w="<span>"+Se+q+"</span>"}}return g.appendASCIIString(w),new G(new j(0,0),!1,m)}return f(D(p),g)}var E=function(){function p(g,m,w,B){this.characterMapping=g,this.html=m,this.containsRTL=w,this.containsForeignElements=B}return p}();function x(p){var g=Object(oe.a)(1e4),m=R(p,g);return new E(m.characterMapping,g.build(),m.containsRTL,m.containsForeignElements)}var K=function(){function p(g,m,w,B,H,re,he,Ee,Se,q,Z,ce,Me,Ve,_e){this.fontIsMonospace=g,this.canUseHalfwidthRightwardsArrow=m,this.lineContent=w,this.len=B,this.isOverflowing=H,this.parts=re,this.containsForeignElements=he,this.fauxIndentLength=Ee,this.tabSize=Se,this.startVisibleColumn=q,this.containsRTL=Z,this.spaceWidth=ce,this.middotWidth=Me,this.renderWhitespace=Ve,this.renderControlCharacters=_e}return p}();function D(p){var g=p.useMonospaceOptimizations,m=p.lineContent,w,B;p.stopRenderingLineAfter!==-1&&p.stopRenderingLineAfter<m.length?(w=!0,B=p.stopRenderingLineAfter):(w=!1,B=m.length);var H=A(p.lineTokens,p.fauxIndentLength,B);(p.renderWhitespace===3||p.renderWhitespace===1||p.renderWhitespace===2&&!!p.selectionsOnLine)&&(H=z(m,B,p.continuesWithWrappedLine,H,p.fauxIndentLength,p.tabSize,p.startVisibleColumn,g,p.selectionsOnLine,p.renderWhitespace===1));var re=0;if(p.lineDecorations.length>0){for(var he=0,Ee=p.lineDecorations.length;he<Ee;he++){var Se=p.lineDecorations[he];Se.type===3||Se.type===1?re|=1:Se.type===2&&(re|=2)}H=_(m,B,H,p.lineDecorations)}return p.containsRTL||(H=te(m,H,!p.isBasicASCII||p.fontLigatures)),new K(g,p.canUseHalfwidthRightwardsArrow,m,B,w,H,re,p.fauxIndentLength,p.tabSize,p.startVisibleColumn,p.containsRTL,p.spaceWidth,p.middotWidth,p.renderWhitespace,p.renderControlCharacters)}function A(p,g,m){var w=[],B=0;g>0&&(w[B++]=new N(g,""));for(var H=0,re=p.getCount();H<re;H++){var he=p.getEndOffset(H);if(he<=g)continue;var Ee=p.getClassName(H);if(he>=m){w[B++]=new N(m,Ee);break}w[B++]=new N(he,Ee)}return w}function te(p,g,m){var w=0,B=[],H=0;if(m)for(var re=0,he=g.length;re<he;re++){var Ee=g[re],Se=Ee.endIndex;if(w+50<Se){for(var q=Ee.type,Z=-1,ce=w,Me=w;Me<Se;Me++)p.charCodeAt(Me)===32&&(Z=Me),Z!==-1&&Me-ce>=50&&(B[H++]=new N(Z+1,q),ce=Z+1,Z=-1);ce!==Se&&(B[H++]=new N(Se,q))}else B[H++]=Ee;w=Se}else for(var re=0,he=g.length;re<he;re++){var Ee=g[re],Se=Ee.endIndex,Ve=Se-w;if(Ve>50){for(var q=Ee.type,_e=Math.ceil(Ve/50),Me=1;Me<_e;Me++){var ue=w+Me*50;B[H++]=new N(ue,q)}B[H++]=new N(Se,q)}else B[H++]=Ee;w=Se}return B}function z(p,g,m,w,B,H,re,he,Ee,Se){var q=[],Z=0,ce=0,Me=w[ce].type,Ve=w[ce].endIndex,_e=w.length,ue=I.q(p),se;ue===-1?(ue=g,se=g):se=I.D(p);for(var fe=!1,ie=0,J=Ee&&Ee[ie],me=re%H,ye=B;ye<g;ye++){var ze=p.charCodeAt(ye);J&&ye>=J.endOffset&&(ie++,J=Ee&&Ee[ie]);var tt=void 0;if(ye<ue||ye>se)tt=!0;else if(ze===9)tt=!0;else if(ze===32)if(Se)if(fe)tt=!0;else{var _t=ye+1<g?p.charCodeAt(ye+1):0;tt=_t===32||_t===9}else tt=!0;else tt=!1;tt&&Ee&&(tt=!!J&&J.startOffset<=ye&&J.endOffset>ye),fe?(!tt||!he&&me>=H)&&(q[Z++]=new N(ye,"vs-whitespace"),me=me%H):(ye===Ve||tt&&ye>B)&&(q[Z++]=new N(ye,Me),me=me%H),ze===9?me=H:I.y(ze)?me+=2:me++,fe=tt,ye===Ve&&(ce++,ce<_e&&(Me=w[ce].type,Ve=w[ce].endIndex))}var Pt=!1;if(fe)if(m&&Se){var Xt=g>0?p.charCodeAt(g-1):0,Ke=g>1?p.charCodeAt(g-2):0,Xe=Xt===32&&Ke!==32&&Ke!==9;Xe||(Pt=!0)}else Pt=!0;return q[Z++]=new N(g,Pt?"vs-whitespace":Me),q}function _(p,g,m,w){w.sort(ne.a.compare);for(var B=ne.b.normalize(p,w),H=B.length,re=0,he=[],Ee=0,Se=0,q=0,Z=m.length;q<Z;q++){for(var ce=m[q],Me=ce.endIndex,Ve=ce.type;re<H&&B[re].startOffset<Me;){var _e=B[re];if(_e.startOffset>Se&&(Se=_e.startOffset,he[Ee++]=new N(Se,Ve)),_e.endOffset+1<=Me)Se=_e.endOffset+1,he[Ee++]=new N(Se,Ve+" "+_e.className),re++;else{Se=Me,he[Ee++]=new N(Se,Ve+" "+_e.className);break}}Me>Se&&(Se=Me,he[Ee++]=new N(Se,Ve))}var ue=m[m.length-1].endIndex;if(re<H&&B[re].startOffset===ue){for(var se=[];re<H&&B[re].startOffset===ue;)se.push(B[re].className),re++;he[Ee++]=new N(Se,se.join(" "))}return he}function f(p,g){var m=p.fontIsMonospace,w=p.canUseHalfwidthRightwardsArrow,B=p.containsForeignElements,H=p.lineContent,re=p.len,he=p.isOverflowing,Ee=p.parts,Se=p.fauxIndentLength,q=p.tabSize,Z=p.startVisibleColumn,ce=p.containsRTL,Me=p.spaceWidth,Ve=p.middotWidth,_e=p.renderWhitespace,ue=p.renderControlCharacters,se=Ve>Me?11825:183,fe=new j(re+1,Ee.length),ie=0,J=Z,me=0,ye=0,ze=0;g.appendASCIIString("<span>");for(var tt=0,_t=Ee.length;tt<_t;tt++){ze+=ye;var Pt=Ee[tt],Xt=Pt.endIndex,Ke=Pt.type,Xe=_e!==0&&Ke.indexOf("vs-whitespace")>=0;if(me=0,g.appendASCIIString('<span class="'),g.appendASCIIString(Ke),g.appendASCII(34),Xe){for(var Ze=0,Ye=ie,ke=J;Ye<Xt;Ye++){var $e=H.charCodeAt(Ye),we=($e===9?q-ke%q:1)|0;Ze+=we,Ye>=Se&&(ke+=we)}if(!m){var k=Ke==="vs-whitespace";(k||!B)&&(g.appendASCIIString(' style="display:inline-block;width:'),g.appendASCIIString(String(Me*Ze)),g.appendASCIIString('px"'))}for(g.appendASCII(62);ie<Xt;ie++){fe.setPartData(ie,tt,me,ze);var $e=H.charCodeAt(ie),we=void 0;if($e===9){we=q-J%q|0,!w||we>1?g.write1(8594):g.write1(65515);for(var ee=2;ee<=we;ee++)g.write1(160)}else we=1,g.write1(se);me+=we,ie>=Se&&(J+=we)}ye=Ze}else{var Ze=0;for(ce&&g.appendASCIIString(' dir="ltr"'),g.appendASCII(62);ie<Xt;ie++){fe.setPartData(ie,tt,me,ze);var $e=H.charCodeAt(ie),Pe=1,we=1;switch($e){case 9:Pe=q-J%q,we=Pe;for(var ee=1;ee<=Pe;ee++)g.write1(160);break;case 32:g.write1(160);break;case 60:g.appendASCIIString("<");break;case 62:g.appendASCIIString(">");break;case 38:g.appendASCIIString("&");break;case 0:g.appendASCIIString("�");break;case 65279:case 8232:g.write1(65533);break;default:I.y($e)&&we++,ue&&$e<32?g.write1(9216+$e):g.write1($e)}me+=Pe,Ze+=Pe,ie>=Se&&(J+=we)}ye=Ze}g.appendASCIIString("</span>")}return fe.setPartData(re,Ee.length-1,me,ze),he&&g.appendASCIIString("<span>…</span>"),g.appendASCIIString("</span>"),new G(fe,ce,B)}},oBNp:function(wt,P,r){"use strict";r.d(P,"a",function(){return F}),r.d(P,"b",function(){return j});var I=r("mTMv"),oe=r("EpLq"),ne=r("S7i+"),N=function(){var G=function(E,x){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var A in D)D.hasOwnProperty(A)&&(K[A]=D[A])},G(E,x)};return function(R,E){G(R,E);function x(){this.constructor=R}R.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}}(),F=function(){function G(R){this.timestamp=Date.now(),this.browserEvent=R,this.leftButton=R.button===0,this.middleButton=R.button===1,this.rightButton=R.button===2,this.buttons=R.buttons,this.target=R.target,this.detail=R.detail||1,R.type==="dblclick"&&(this.detail=2),this.ctrlKey=R.ctrlKey,this.shiftKey=R.shiftKey,this.altKey=R.altKey,this.metaKey=R.metaKey,typeof R.pageX=="number"?(this.posx=R.pageX,this.posy=R.pageY):(this.posx=R.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=R.clientY+document.body.scrollTop+document.documentElement.scrollTop);var E=oe.a.getPositionOfChildWindowRelativeToAncestorWindow(self,R.view);this.posx-=E.left,this.posy-=E.top}return G.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},G.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},G}(),U=function(G){N(R,G);function R(E){var x=G.call(this,E)||this;return x.dataTransfer=E.dataTransfer,x}return R}(F),j=function(){function G(R,E,x){if(E===void 0&&(E=0),x===void 0&&(x=0),this.browserEvent=R||null,this.target=R?R.target||R.targetNode||R.srcElement:null,this.deltaY=x,this.deltaX=E,R){var K=R,D=R;if(typeof K.wheelDeltaY!="undefined")this.deltaY=K.wheelDeltaY/120;else if(typeof D.VERTICAL_AXIS!="undefined"&&D.axis===D.VERTICAL_AXIS)this.deltaY=-D.detail/3;else if(R.type==="wheel"){var A=R;A.deltaMode===A.DOM_DELTA_LINE?this.deltaY=-R.deltaY:this.deltaY=-R.deltaY/40}if(typeof K.wheelDeltaX!="undefined")I.k&&ne.h?this.deltaX=-(K.wheelDeltaX/120):this.deltaX=K.wheelDeltaX/120;else if(typeof D.HORIZONTAL_AXIS!="undefined"&&D.axis===D.HORIZONTAL_AXIS)this.deltaX=-R.detail/3;else if(R.type==="wheel"){var A=R;A.deltaMode===A.DOM_DELTA_LINE?this.deltaX=-R.deltaX:this.deltaX=-R.deltaX/40}this.deltaY===0&&this.deltaX===0&&R.wheelDelta&&(this.deltaY=R.wheelDelta/120)}}return G.prototype.preventDefault=function(){this.browserEvent&&(this.browserEvent.preventDefault&&this.browserEvent.preventDefault())},G.prototype.stopPropagation=function(){this.browserEvent&&(this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation())},G}()},oJyV:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return r.e(218).then(r.bind(null,"IuD6"))}})},pLcT:function(wt,P,r){"use strict";r.d(P,"a",function(){return I}),r.d(P,"b",function(){return ne});function I(N,F){for(var U=N.getCount(),j=N.findTokenIndexAtOffset(F),G=N.getLanguageId(j),R=j;R+1<U&&N.getLanguageId(R+1)===G;)R++;for(var E=j;E>0&&N.getLanguageId(E-1)===G;)E--;return new oe(N,G,E,R+1,N.getStartOffset(E),N.getEndOffset(R))}var oe=function(){function N(F,U,j,G,R,E){this._actual=F,this.languageId=U,this._firstTokenIndex=j,this._lastTokenIndex=G,this.firstCharOffset=R,this._lastCharOffset=E}return N.prototype.getLineContent=function(){var F=this._actual.getLineContent();return F.substring(this.firstCharOffset,this._lastCharOffset)},N.prototype.getActualLineContentBefore=function(F){var U=this._actual.getLineContent();return U.substring(0,this.firstCharOffset+F)},N.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},N.prototype.findTokenIndexAtOffset=function(F){return this._actual.findTokenIndexAtOffset(F+this.firstCharOffset)-this._firstTokenIndex},N.prototype.getStandardTokenType=function(F){return this._actual.getStandardTokenType(F+this._firstTokenIndex)},N}();function ne(N){return(N&7)!==0}},pfH9:function(wt,P,r){"use strict";r.d(P,"b",function(){return G}),r.d(P,"a",function(){return R});var I=r("fF8p"),oe=r("S7i+"),ne=r("mTMv"),N=r("EpLq"),F=r("oBNp"),U=r("bN5T"),j=r("Uq4v");function G(E,x){var K=new F.a(x);return K.preventDefault(),{leftButton:K.leftButton,buttons:K.buttons,posx:K.posx,posy:K.posy}}var R=function(){function E(){this._hooks=new U.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}return E.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},E.prototype.stopMonitoring=function(x){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var K=this._onStopCallback;this._onStopCallback=null,x&&K&&K()},E.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},E.prototype.startMonitoring=function(x,K,D,A,te){var z=this;if(this.isMonitoring())return;this._mouseMoveEventMerger=D,this._mouseMoveCallback=A,this._onStopCallback=te;var _=N.a.getSameOriginWindowChain(),f=oe.c&&j.a.pointerEvents?"pointermove":"mousemove",p=oe.c&&j.a.pointerEvents?"pointerup":"mouseup",g=_.map(function(he){return he.window.document}),m=I.D(x);m&&g.unshift(m);for(var w=0,B=g;w<B.length;w++){var H=B[w];this._hooks.add(I.l(H,f,function(he){if(!ne.i&&he.buttons!==K){z.stopMonitoring(!0);return}z._mouseMoveCallback(he)},function(he,Ee){return z._mouseMoveEventMerger(he,Ee)})),this._hooks.add(I.i(H,p,function(he){return z.stopMonitoring(!0)}))}if(N.a.hasDifferentOriginAncestor()){var re=_[_.length-1];this._hooks.add(I.i(re.window.document,"mouseout",function(he){var Ee=new F.a(he);Ee.target.tagName.toLowerCase()==="html"&&z.stopMonitoring(!0)})),this._hooks.add(I.i(re.window.document,"mouseover",function(he){var Ee=new F.a(he);Ee.target.tagName.toLowerCase()==="html"&&z.stopMonitoring(!0)})),this._hooks.add(I.i(re.window.document.body,"mouseleave",function(he){z.stopMonitoring(!0)}))}},E}()},prEm:function(wt,P,r){"use strict";r.d(P,"a",function(){return U});var I=r("yBOt"),oe=r("i14n"),ne=r("g2LA"),N=r("B6aB"),F=r("w9Cd"),U=function(){function j(){}return j.deleteRight=function(G,R,E,x){for(var K=[],D=G!==3,A=0,te=x.length;A<te;A++){var z=x[A],_=z;if(_.isEmpty()){var f=z.getPosition(),p=N.a.right(R,E,f.lineNumber,f.column);_=new F.a(p.lineNumber,p.column,f.lineNumber,f.column)}if(_.isEmpty()){K[A]=null;continue}_.startLineNumber!==_.endLineNumber&&(D=!0),K[A]=new oe.a(_,"")}return[D,K]},j._isAutoClosingPairDelete=function(G,R,E){if(G.autoClosingBrackets==="never"&&G.autoClosingQuotes==="never")return!1;for(var x=0,K=E.length;x<K;x++){var D=E[x],A=D.getPosition();if(!D.isEmpty())return!1;var te=R.getLineContent(A.lineNumber),z=te[A.column-2],_=G.autoClosingPairsOpen2.get(z);if(!_)return!1;if(Object(ne.g)(z)){if(G.autoClosingQuotes==="never")return!1}else if(G.autoClosingBrackets==="never")return!1;for(var f=te[A.column-1],p=!1,g=0,m=_;g<m.length;g++){var w=m[g];w.open===z&&w.close===f&&(p=!0)}if(!p)return!1}return!0},j._runAutoClosingPairDelete=function(G,R,E){for(var x=[],K=0,D=E.length;K<D;K++){var A=E[K].getPosition(),te=new F.a(A.lineNumber,A.column-1,A.lineNumber,A.column+1);x[K]=new oe.a(te,"")}return[!0,x]},j.deleteLeft=function(G,R,E,x){if(this._isAutoClosingPairDelete(R,E,x))return this._runAutoClosingPairDelete(R,E,x);for(var K=[],D=G!==2,A=0,te=x.length;A<te;A++){var z=x[A],_=z;if(_.isEmpty()){var f=z.getPosition();if(R.useTabStops&&f.column>1){var p=E.getLineContent(f.lineNumber),g=I.q(p),m=g===-1?p.length+1:g+1;if(f.column<=m){var w=ne.a.visibleColumnFromColumn2(R,E,f),B=ne.a.prevIndentTabStop(w,R.indentSize),H=ne.a.columnFromVisibleColumn2(R,E,f.lineNumber,B);_=new F.a(f.lineNumber,H,f.lineNumber,f.column)}else _=new F.a(f.lineNumber,f.column-1,f.lineNumber,f.column)}else{var re=N.a.left(R,E,f.lineNumber,f.column);_=new F.a(re.lineNumber,re.column,f.lineNumber,f.column)}}if(_.isEmpty()){K[A]=null;continue}_.startLineNumber!==_.endLineNumber&&(D=!0),K[A]=new oe.a(_,"")}return[D,K]},j.cut=function(G,R,E){for(var x=[],K=0,D=E.length;K<D;K++){var A=E[K];if(A.isEmpty())if(G.emptySelectionClipboard){var te=A.getPosition(),z=void 0,_=void 0,f=void 0,p=void 0;te.lineNumber<R.getLineCount()?(z=te.lineNumber,_=1,f=te.lineNumber+1,p=1):te.lineNumber>1?(z=te.lineNumber-1,_=R.getLineMaxColumn(te.lineNumber-1),f=te.lineNumber,p=R.getLineMaxColumn(te.lineNumber)):(z=te.lineNumber,_=1,f=te.lineNumber,p=R.getLineMaxColumn(te.lineNumber));var g=new F.a(z,_,f,p);g.isEmpty()?x[K]=null:x[K]=new oe.a(g,"")}else x[K]=null;else x[K]=new oe.a(A,"")}return new ne.e(0,x,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},j}()},"qAL+":function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return r.e(210).then(r.bind(null,"4o0w"))}})},qCYd:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return r.e(256).then(r.bind(null,"YTGY"))}})},qJsm:function(wt,P,r){"use strict";r.d(P,"b",function(){return ne}),r.d(P,"a",function(){return N});var I=r("V3SD"),oe=[];function ne(F,U,j){oe.push([F,new I.a(U,[],j)])}function N(){return oe}},qVyD:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return r.e(206).then(r.bind(null,"swx7"))}})},quOs:function(wt,P,r){},qz6B:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("w9Cd"),oe=function(){function ne(){}return ne.insert=function(N,F){return{range:new I.a(N.lineNumber,N.column,N.lineNumber,N.column),text:F,forceMoveMarkers:!0}},ne.delete=function(N){return{range:N,text:null}},ne.replace=function(N,F){return{range:N,text:F}},ne.replaceMove=function(N,F){return{range:N,text:F,forceMoveMarkers:!0}},ne}()},rXIE:function(wt,P,r){"use strict";r.d(P,"b",function(){return oe}),r.d(P,"a",function(){return ne});var I=r("FRK7"),oe=function(){function N(F,U){this.index=F,this.remainder=U}return N}(),ne=function(){function N(F){this.values=F,this.prefixSum=new Uint32Array(F.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return N.prototype.insertValues=function(F,U){F=Object(I.a)(F);var j=this.values,G=this.prefixSum,R=U.length;return R===0?!1:(this.values=new Uint32Array(j.length+R),this.values.set(j.subarray(0,F),0),this.values.set(j.subarray(F),F+R),this.values.set(U,F),F-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=F-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(G.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},N.prototype.changeValue=function(F,U){return F=Object(I.a)(F),U=Object(I.a)(U),this.values[F]===U?!1:(this.values[F]=U,F-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=F-1),!0)},N.prototype.removeValues=function(F,U){F=Object(I.a)(F),U=Object(I.a)(U);var j=this.values,G=this.prefixSum;if(F>=j.length)return!1;var R=j.length-F;return U>=R&&(U=R),U===0?!1:(this.values=new Uint32Array(j.length-U),this.values.set(j.subarray(0,F),0),this.values.set(j.subarray(F+U),F),this.prefixSum=new Uint32Array(this.values.length),F-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=F-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(G.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},N.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},N.prototype.getAccumulatedValue=function(F){return F<0?0:(F=Object(I.a)(F),this._getAccumulatedValue(F))},N.prototype._getAccumulatedValue=function(F){if(F<=this.prefixSumValidIndex[0])return this.prefixSum[F];var U=this.prefixSumValidIndex[0]+1;U===0&&(this.prefixSum[0]=this.values[0],U++),F>=this.values.length&&(F=this.values.length-1);for(var j=U;j<=F;j++)this.prefixSum[j]=this.prefixSum[j-1]+this.values[j];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],F),this.prefixSum[F]},N.prototype.getIndexOf=function(F){F=Math.floor(F),this.getTotalValue();for(var U=0,j=this.values.length-1,G=0,R=0,E=0;U<=j;)if(G=U+(j-U)/2|0,R=this.prefixSum[G],E=R-this.values[G],F<E)j=G-1;else if(F>=R)U=G+1;else break;return new oe(G,F-E)},N}()},rjb4:function(wt,P,r){"use strict";r.d(P,"a",function(){return Wi}),r.d(P,"b",function(){return Ti}),r.d(P,"d",function(){return vi}),r.d(P,"c",function(){return fn});var I=r("fF8p"),oe=r("N7KK"),ne=r("bN5T"),N=r("g9ht"),F=r("gC1f"),U=r("Ndl5"),j=r("bBv/"),G=r("PoD0"),R=r("Qr/v"),E=r("E+fE"),x=r("7wrl"),K=r("TwZP"),D="inputFocus",A=r("ncT7"),te=r("YK2C"),z=r("/RM0"),_=r("9HM1"),f=r("Inmo"),p=r("GIAr"),g=r("6zAk"),m=r("VV9f"),w=function(){var Le=function(ae,Fe){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,Fe)};return function(W,ae){Le(W,ae);function Fe(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),B=function(Le){w(W,Le);function W(ae,Fe){return Le.call(this,"TreeError ["+ae+"] "+Fe)||this}return W}(Error),H=function(){function Le(W){this.fn=W,this._map=new WeakMap}return Le.prototype.map=function(W){var ae=this._map.get(W);return ae||(ae=this.fn(W),this._map.set(W,ae)),ae},Le}(),re=r("ywU6"),he=function(){for(var Le=0,W=0,ae=arguments.length;W<ae;W++)Le+=arguments[W].length;for(var Fe=Array(Le),qe=0,W=0;W<ae;W++)for(var ct=arguments[W],St=0,Ge=ct.length;St<Ge;St++,qe++)Fe[qe]=ct[St];return Fe};function Ee(Le){return typeof Le=="object"&&"visibility"in Le&&"data"in Le}function Se(Le){switch(Le){case!0:return 1;case!1:return 0;default:return Le}}function q(Le){return typeof Le.collapsible=="boolean"}var Z=function(){function Le(W,ae,Fe,qe){qe===void 0&&(qe={}),this.user=W,this.list=ae,this.rootRef=[],this.eventBufferer=new te.c,this._onDidChangeCollapseState=new te.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new te.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new te.a,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=typeof qe.collapseByDefault=="undefined"?!1:qe.collapseByDefault,this.filter=qe.filter,this.autoExpandSingleChildren=typeof qe.autoExpandSingleChildren=="undefined"?!1:qe.autoExpandSingleChildren,this.root={parent:void 0,element:Fe,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return Le.prototype.splice=function(W,ae,Fe,qe,ct){var St,Ge=this;if(W.length===0)throw new B(this.user,"Invalid tree location");for(var de=this.getParentNodeWithListIndex(W),X=de.parentNode,Ue=de.listIndex,at=de.revealed,et=de.visible,Q=[],Ce=re.c.map(re.c.from(Fe),function(Xn){return Ge.createTreeNode(Xn,X,X.visible?1:0,at,Q,qe)}),Oe=W[W.length-1],it=0,Qe=Oe;Qe>=0&&Qe<X.children.length;Qe--){var je=X.children[Qe];if(je.visible){it=je.visibleChildIndex;break}}var Ct=[],Ot=0,Jt=0;re.c.forEach(Ce,function(Xn){Ct.push(Xn),Jt+=Xn.renderNodeCount,Xn.visible&&(Xn.visibleChildIndex=it+Ot++)});for(var At=(St=X.children).splice.apply(St,he([Oe,ae],Ct)),jt=0,hn=0,bn=At;hn<bn.length;hn++){var je=bn[hn];je.visible&&jt++}if(jt!==0)for(var Qe=Oe+Ct.length;Qe<X.children.length;Qe++){var je=X.children[Qe];je.visible&&(je.visibleChildIndex-=jt)}if(X.visibleChildrenCount+=Ot-jt,at&&et){var mn=At.reduce(function(Xn,Yn){return Xn+(Yn.visible?Yn.renderNodeCount:0)},0);this._updateAncestorsRenderNodeCount(X,Jt-mn),this.list.splice(Ue,mn,Q)}if(At.length>0&&ct){var Vn=function Xn(Yn){ct(Yn),Yn.children.forEach(Xn)};At.forEach(Vn)}this._onDidSplice.fire({insertedNodes:Ct,deletedNodes:At})},Le.prototype.rerender=function(W){if(W.length===0)throw new B(this.user,"Invalid tree location");var ae=this.getTreeNodeWithListIndex(W),Fe=ae.node,qe=ae.listIndex,ct=ae.revealed;ct&&this.list.splice(qe,1,[Fe])},Le.prototype.has=function(W){return this.hasTreeNode(W)},Le.prototype.getListIndex=function(W){var ae=this.getTreeNodeWithListIndex(W),Fe=ae.listIndex,qe=ae.visible,ct=ae.revealed;return qe&&ct?Fe:-1},Le.prototype.getListRenderCount=function(W){return this.getTreeNode(W).renderNodeCount},Le.prototype.isCollapsible=function(W){return this.getTreeNode(W).collapsible},Le.prototype.setCollapsible=function(W,ae){var Fe=this,qe=this.getTreeNode(W);typeof ae=="undefined"&&(ae=!qe.collapsible);var ct={collapsible:ae};return this.eventBufferer.bufferEvents(function(){return Fe._setCollapseState(W,ct)})},Le.prototype.isCollapsed=function(W){return this.getTreeNode(W).collapsed},Le.prototype.setCollapsed=function(W,ae,Fe){var qe=this,ct=this.getTreeNode(W);typeof ae=="undefined"&&(ae=!ct.collapsed);var St={collapsed:ae,recursive:Fe||!1};return this.eventBufferer.bufferEvents(function(){return qe._setCollapseState(W,St)})},Le.prototype._setCollapseState=function(W,ae){var Fe=this.getTreeNodeWithListIndex(W),qe=Fe.node,ct=Fe.listIndex,St=Fe.revealed,Ge=this._setListNodeCollapseState(qe,ct,St,ae);if(qe!==this.root&&this.autoExpandSingleChildren&&Ge&&!q(ae)&&qe.collapsible&&!qe.collapsed&&!ae.recursive){for(var de=-1,X=0;X<qe.children.length;X++){var Ue=qe.children[X];if(Ue.visible)if(de>-1){de=-1;break}else de=X}de>-1&&this._setCollapseState(he(W,[de]),ae)}return Ge},Le.prototype._setListNodeCollapseState=function(W,ae,Fe,qe){var ct=this._setNodeCollapseState(W,qe,!1);if(!Fe||!W.visible||!ct)return ct;var St=W.renderNodeCount,Ge=this.updateNodeAfterCollapseChange(W),de=St-(ae===-1?0:1);return this.list.splice(ae+1,de,Ge.slice(1)),ct},Le.prototype._setNodeCollapseState=function(W,ae,Fe){var qe;if(W===this.root?qe=!1:(q(ae)?(qe=W.collapsible!==ae.collapsible,W.collapsible=ae.collapsible):W.collapsible?(qe=W.collapsed!==ae.collapsed,W.collapsed=ae.collapsed):qe=!1,qe&&this._onDidChangeCollapseState.fire({node:W,deep:Fe})),!q(ae)&&ae.recursive)for(var ct=0,St=W.children;ct<St.length;ct++){var Ge=St[ct];qe=this._setNodeCollapseState(Ge,ae,!0)||qe}return qe},Le.prototype.expandTo=function(W){var ae=this;this.eventBufferer.bufferEvents(function(){for(var Fe=ae.getTreeNode(W);Fe.parent;)Fe=Fe.parent,W=W.slice(0,W.length-1),Fe.collapsed&&ae._setCollapseState(W,{collapsed:!1,recursive:!1})})},Le.prototype.refilter=function(){var W=this.root.renderNodeCount,ae=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,W,ae)},Le.prototype.createTreeNode=function(W,ae,Fe,qe,ct,St){var Ge=this,de={parent:ae,element:W.element,children:[],depth:ae.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof W.collapsible=="boolean"?W.collapsible:typeof W.collapsed!="undefined",collapsed:typeof W.collapsed=="undefined"?this.collapseByDefault:W.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},X=this._filterNode(de,Fe);qe&&ct.push(de);var Ue=re.c.from(W.children),at=qe&&X!==0&&!de.collapsed,et=re.c.map(Ue,function(Oe){return Ge.createTreeNode(Oe,de,X,at,ct,St)}),Q=0,Ce=1;return re.c.forEach(et,function(Oe){de.children.push(Oe),Ce+=Oe.renderNodeCount,Oe.visible&&(Oe.visibleChildIndex=Q++)}),de.collapsible=de.collapsible||de.children.length>0,de.visibleChildrenCount=Q,de.visible=X===2?Q>0:X===1,de.visible?de.collapsed||(de.renderNodeCount=Ce):(de.renderNodeCount=0,qe&&ct.pop()),St&&St(de),de},Le.prototype.updateNodeAfterCollapseChange=function(W){var ae=W.renderNodeCount,Fe=[];return this._updateNodeAfterCollapseChange(W,Fe),this._updateAncestorsRenderNodeCount(W.parent,Fe.length-ae),Fe},Le.prototype._updateNodeAfterCollapseChange=function(W,ae){if(W.visible===!1)return 0;if(ae.push(W),W.renderNodeCount=1,!W.collapsed)for(var Fe=0,qe=W.children;Fe<qe.length;Fe++){var ct=qe[Fe];W.renderNodeCount+=this._updateNodeAfterCollapseChange(ct,ae)}return this._onDidChangeRenderNodeCount.fire(W),W.renderNodeCount},Le.prototype.updateNodeAfterFilterChange=function(W){var ae=W.renderNodeCount,Fe=[];return this._updateNodeAfterFilterChange(W,W.visible?1:0,Fe),this._updateAncestorsRenderNodeCount(W.parent,Fe.length-ae),Fe},Le.prototype._updateNodeAfterFilterChange=function(W,ae,Fe,qe){qe===void 0&&(qe=!0);var ct;if(W!==this.root){if(ct=this._filterNode(W,ae),ct===0)return W.visible=!1,W.renderNodeCount=0,!1;qe&&Fe.push(W)}var St=Fe.length;W.renderNodeCount=W===this.root?0:1;var Ge=!1;if(!W.collapsed||ct!==0){for(var de=0,X=0,Ue=W.children;X<Ue.length;X++){var at=Ue[X];Ge=this._updateNodeAfterFilterChange(at,ct,Fe,qe&&!W.collapsed)||Ge,at.visible&&(at.visibleChildIndex=de++)}W.visibleChildrenCount=de}else W.visibleChildrenCount=0;return W!==this.root&&(W.visible=ct===2?Ge:ct===1),W.visible?W.collapsed||(W.renderNodeCount+=Fe.length-St):(W.renderNodeCount=0,qe&&Fe.pop()),this._onDidChangeRenderNodeCount.fire(W),W.visible},Le.prototype._updateAncestorsRenderNodeCount=function(W,ae){if(ae===0)return;for(;W;)W.renderNodeCount+=ae,this._onDidChangeRenderNodeCount.fire(W),W=W.parent},Le.prototype._filterNode=function(W,ae){var Fe=this.filter?this.filter.filter(W.element,ae):1;return typeof Fe=="boolean"?(W.filterData=void 0,Fe?1:0):Ee(Fe)?(W.filterData=Fe.data,Se(Fe.visibility)):(W.filterData=void 0,Se(Fe))},Le.prototype.hasTreeNode=function(W,ae){if(ae===void 0&&(ae=this.root),!W||W.length===0)return!0;var Fe=W[0],qe=W.slice(1);return Fe<0||Fe>ae.children.length?!1:this.hasTreeNode(qe,ae.children[Fe])},Le.prototype.getTreeNode=function(W,ae){if(ae===void 0&&(ae=this.root),!W||W.length===0)return ae;var Fe=W[0],qe=W.slice(1);if(Fe<0||Fe>ae.children.length)throw new B(this.user,"Invalid tree location");return this.getTreeNode(qe,ae.children[Fe])},Le.prototype.getTreeNodeWithListIndex=function(W){if(W.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var ae=this.getParentNodeWithListIndex(W),Fe=ae.parentNode,qe=ae.listIndex,ct=ae.revealed,St=ae.visible,Ge=W[W.length-1];if(Ge<0||Ge>Fe.children.length)throw new B(this.user,"Invalid tree location");var de=Fe.children[Ge];return{node:de,listIndex:qe,revealed:ct,visible:St&&de.visible}},Le.prototype.getParentNodeWithListIndex=function(W,ae,Fe,qe,ct){ae===void 0&&(ae=this.root),Fe===void 0&&(Fe=0),qe===void 0&&(qe=!0),ct===void 0&&(ct=!0);var St=W[0],Ge=W.slice(1);if(St<0||St>ae.children.length)throw new B(this.user,"Invalid tree location");for(var de=0;de<St;de++)Fe+=ae.children[de].renderNodeCount;return qe=qe&&!ae.collapsed,ct=ct&&ae.visible,Ge.length===0?{parentNode:ae,listIndex:Fe,revealed:qe,visible:ct}:this.getParentNodeWithListIndex(Ge,ae.children[St],Fe+1,qe,ct)},Le.prototype.getNode=function(W){return W===void 0&&(W=[]),this.getTreeNode(W)},Le.prototype.getNodeLocation=function(W){for(var ae=[],Fe=W;Fe.parent;)ae.push(Fe.parent.children.indexOf(Fe)),Fe=Fe.parent;return ae.reverse()},Le.prototype.getParentNodeLocation=function(W){return W.length===0?void 0:W.length===1?[]:Object(f.w)(W)[0]},Le}(),ce=r("dE3Z"),Me=r("S7i+"),Ve=r("emi/"),_e=r("epcv"),ue=r("ttZe"),se=function(){var Le=function(ae,Fe){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,Fe)};return function(W,ae){Le(W,ae);function Fe(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),fe=function(){return fe=Object.assign||function(Le){for(var W,ae=1,Fe=arguments.length;ae<Fe;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},fe.apply(this,arguments)},ie=function(){for(var Le=0,W=0,ae=arguments.length;W<ae;W++)Le+=arguments[W].length;for(var Fe=Array(Le),qe=0,W=0;W<ae;W++)for(var ct=arguments[W],St=0,Ge=ct.length;St<Ge;St++,qe++)Fe[qe]=ct[St];return Fe},J=function(Le){se(W,Le);function W(ae){var Fe=Le.call(this,ae.elements.map(function(qe){return qe.element}))||this;return Fe.data=ae,Fe}return W}(p.a);function me(Le){return Le instanceof p.a?new J(Le):Le}var ye=function(){function Le(W,ae){this.modelProvider=W,this.dnd=ae,this.autoExpandDisposable=ne.a.None}return Le.prototype.getDragURI=function(W){return this.dnd.getDragURI(W.element)},Le.prototype.getDragLabel=function(W,ae){return this.dnd.getDragLabel?this.dnd.getDragLabel(W.map(function(Fe){return Fe.element}),ae):void 0},Le.prototype.onDragStart=function(W,ae){this.dnd.onDragStart&&this.dnd.onDragStart(me(W),ae)},Le.prototype.onDragOver=function(W,ae,Fe,qe,ct){var St=this;ct===void 0&&(ct=!0);var Ge=this.dnd.onDragOver(me(W),ae&&ae.element,Fe,qe),de=this.autoExpandNode!==ae;if(de&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=ae),typeof ae=="undefined")return Ge;if(de&&typeof Ge!="boolean"&&Ge.autoExpand&&(this.autoExpandDisposable=Object(ce.g)(function(){var Ot=St.modelProvider(),Jt=Ot.getNodeLocation(ae);Ot.isCollapsed(Jt)&&Ot.setCollapsed(Jt,!1),St.autoExpandNode=void 0},500)),typeof Ge=="boolean"||!Ge.accept||typeof Ge.bubble=="undefined"||Ge.feedback){if(!ct){var X=typeof Ge=="boolean"?Ge:Ge.accept,Ue=typeof Ge=="boolean"?void 0:Ge.effect;return{accept:X,effect:Ue,feedback:[Fe]}}return Ge}if(Ge.bubble===1){var at=this.modelProvider(),et=at.getNodeLocation(ae),Q=at.getParentNodeLocation(et),Ce=at.getNode(Q),Oe=Q&&at.getListIndex(Q);return this.onDragOver(W,Ce,Oe,qe,!1)}var it=this.modelProvider(),Qe=it.getNodeLocation(ae),je=it.getListIndex(Qe),Ct=it.getListRenderCount(Qe);return fe(fe({},Ge),{feedback:Object(f.u)(je,je+Ct)})},Le.prototype.drop=function(W,ae,Fe,qe){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(me(W),ae&&ae.element,Fe,qe)},Le.prototype.onDragEnd=function(W){this.dnd.onDragEnd&&this.dnd.onDragEnd(W)},Le}();function ze(Le,W){return W&&fe(fe({},W),{identityProvider:W.identityProvider&&{getId:function(Fe){return W.identityProvider.getId(Fe.element)}},dnd:W.dnd&&new ye(Le,W.dnd),multipleSelectionController:W.multipleSelectionController&&{isSelectionSingleChangeEvent:function(Fe){return W.multipleSelectionController.isSelectionSingleChangeEvent(fe(fe({},Fe),{element:Fe.element}))},isSelectionRangeChangeEvent:function(Fe){return W.multipleSelectionController.isSelectionRangeChangeEvent(fe(fe({},Fe),{element:Fe.element}))}},accessibilityProvider:W.accessibilityProvider&&fe(fe({},W.accessibilityProvider),{getAriaLabel:function(Fe){return W.accessibilityProvider.getAriaLabel(Fe.element)},getAriaLevel:function(Fe){return Fe.depth},getActiveDescendantId:W.accessibilityProvider.getActiveDescendantId&&function(ae){return W.accessibilityProvider.getActiveDescendantId(ae.element)}}),keyboardNavigationLabelProvider:W.keyboardNavigationLabelProvider&&fe(fe({},W.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(Fe){return W.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(Fe.element)}}),enableKeyboardNavigation:W.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(Fe){var qe=Le(),ct=qe.getNodeLocation(Fe),St=qe.getParentNodeLocation(ct),Ge=qe.getNode(St);return Ge.visibleChildrenCount},getPosInSet:function(Fe){return Fe.visibleChildIndex+1},isChecked:W.ariaProvider&&W.ariaProvider.isChecked?function(ae){return W.ariaProvider.isChecked(ae.element)}:void 0,getRole:W.ariaProvider&&W.ariaProvider.getRole?function(ae){return W.ariaProvider.getRole(ae.element)}:void 0}})}var tt=function(){function Le(W){this.delegate=W}return Le.prototype.getHeight=function(W){return this.delegate.getHeight(W.element)},Le.prototype.getTemplateId=function(W){return this.delegate.getTemplateId(W.element)},Le.prototype.hasDynamicHeight=function(W){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(W.element)},Le.prototype.setDynamicHeight=function(W,ae){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(W.element,ae)},Le}(),_t;(function(Le){Le.None="none",Le.OnHover="onHover",Le.Always="always"})(_t||(_t={}));var Pt=function(){function Le(W,ae){var Fe=this;ae===void 0&&(ae=[]),this._elements=ae,this.onDidChange=te.b.forEach(W,function(qe){return Fe._elements=qe})}return Object.defineProperty(Le.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Le}(),Xt=function(){function Le(W,ae,Fe,qe,ct){ct===void 0&&(ct={}),this.renderer=W,this.modelProvider=ae,this.activeNodes=qe,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=Le.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new ue.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=ne.a.None,this.disposables=new ne.b,this.templateId=W.templateId,this.updateOptions(ct),te.b.map(Fe,function(St){return St.node})(this.onDidChangeNodeTwistieState,this,this.disposables),W.onDidChangeTwistieState&&W.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}return Le.prototype.updateOptions=function(W){if(W===void 0&&(W={}),typeof W.indent!="undefined"&&(this.indent=Object(_e.a)(W.indent,0,40)),typeof W.renderIndentGuides!="undefined"){var ae=W.renderIndentGuides!==_t.None;if(ae!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=ae,this.indentGuidesDisposable.dispose(),ae)){var Fe=new ne.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,Fe),this.indentGuidesDisposable=Fe,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof W.hideTwistiesOfChildlessElements!="undefined"&&(this.hideTwistiesOfChildlessElements=W.hideTwistiesOfChildlessElements)},Le.prototype.renderTemplate=function(W){var ae=Object(I.p)(W,Object(I.a)(".monaco-tl-row")),Fe=Object(I.p)(ae,Object(I.a)(".monaco-tl-indent")),qe=Object(I.p)(ae,Object(I.a)(".monaco-tl-twistie")),ct=Object(I.p)(ae,Object(I.a)(".monaco-tl-contents")),St=this.renderer.renderTemplate(ct);return{container:W,indent:Fe,twistie:qe,indentGuidesDisposable:ne.a.None,templateData:St}},Le.prototype.renderElement=function(W,ae,Fe,qe){typeof qe=="number"&&(this.renderedNodes.set(W,{templateData:Fe,height:qe}),this.renderedElements.set(W.element,W));var ct=Le.DefaultIndent+(W.depth-1)*this.indent;Fe.twistie.style.paddingLeft=ct+"px",Fe.indent.style.width=ct+this.indent-16+"px",this.renderTwistie(W,Fe),typeof qe=="number"&&this.renderIndentGuides(W,Fe),this.renderer.renderElement(W,ae,Fe.templateData,qe)},Le.prototype.disposeElement=function(W,ae,Fe,qe){Fe.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(W,ae,Fe.templateData,qe),typeof qe=="number"&&(this.renderedNodes.delete(W),this.renderedElements.delete(W.element))},Le.prototype.disposeTemplate=function(W){this.renderer.disposeTemplate(W.templateData)},Le.prototype.onDidChangeTwistieState=function(W){var ae=this.renderedElements.get(W);if(!ae)return;this.onDidChangeNodeTwistieState(ae)},Le.prototype.onDidChangeNodeTwistieState=function(W){var ae=this.renderedNodes.get(W);if(!ae)return;this.renderTwistie(W,ae.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(W,ae.templateData)},Le.prototype.renderTwistie=function(W,ae){this.renderer.renderTwistie&&this.renderer.renderTwistie(W.element,ae.twistie),W.collapsible&&(!this.hideTwistiesOfChildlessElements||W.visibleChildrenCount>0)?(Object(I.f)(ae.twistie,"codicon","codicon-chevron-down","collapsible"),Object(I.X)(ae.twistie,"collapsed",W.collapsed)):Object(I.P)(ae.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),W.collapsible?ae.container.setAttribute("aria-expanded",String(!W.collapsed)):ae.container.removeAttribute("aria-expanded")},Le.prototype.renderIndentGuides=function(W,ae){var Fe=this;if(Object(I.s)(ae.indent),ae.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;for(var qe=new ne.b,ct=this.modelProvider(),St=W,Ge=function(){var at=ct.getNodeLocation(St),et=ct.getParentNodeLocation(at);if(!et)return"break";var Q=ct.getNode(et),Ce=Object(I.a)(".indent-guide",{style:"width: "+de.indent+"px"});de.activeIndentNodes.has(Q)&&Object(I.e)(Ce,"active"),ae.indent.childElementCount===0?ae.indent.appendChild(Ce):ae.indent.insertBefore(Ce,ae.indent.firstElementChild),de.renderedIndentGuides.add(Q,Ce),qe.add(Object(ne.h)(function(){return Fe.renderedIndentGuides.delete(Q,Ce)})),St=Q},de=this;;){var X=Ge();if(X==="break")break}ae.indentGuidesDisposable=qe},Le.prototype._onDidChangeActiveNodes=function(W){var ae=this;if(!this.shouldRenderIndentGuides)return;var Fe=new Set,qe=this.modelProvider();W.forEach(function(ct){var St=qe.getNodeLocation(ct);try{var Ge=qe.getParentNodeLocation(St);ct.collapsible&&ct.children.length>0&&!ct.collapsed?Fe.add(ct):Ge&&Fe.add(qe.getNode(Ge))}catch(de){}}),this.activeIndentNodes.forEach(function(ct){Fe.has(ct)||ae.renderedIndentGuides.forEach(ct,function(St){return Object(I.O)(St,"active")})}),Fe.forEach(function(ct){ae.activeIndentNodes.has(ct)||ae.renderedIndentGuides.forEach(ct,function(St){return Object(I.e)(St,"active")})}),this.activeIndentNodes=Fe},Le.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(ne.f)(this.disposables)},Le.DefaultIndent=8,Le}(),Ke=function(){function Le(W,ae,Fe){this.tree=W,this.keyboardNavigationLabelProvider=ae,this._filter=Fe,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new ne.b,W.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(Le.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"pattern",{set:function(ae){this._pattern=ae,this._lowercasePattern=ae.toLowerCase()},enumerable:!0,configurable:!0}),Le.prototype.filter=function(W,ae){if(this._filter){var Fe=this._filter.filter(W,ae);if(this.tree.options.simpleKeyboardNavigation)return Fe;var qe=void 0;if(typeof Fe=="boolean"?qe=Fe?1:0:Ee(Fe)?qe=Se(Fe.visibility):qe=Fe,qe===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:m.a.Default,visibility:!0};var ct=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(W),St=ct&&ct.toString();if(typeof St=="undefined")return{data:m.a.Default,visibility:!0};var Ge=Object(m.d)(this._pattern,this._lowercasePattern,0,St,St.toLowerCase(),0,!0);return Ge?(this._matchCount++,{data:Ge,visibility:!0}):this.tree.options.filterOnType?2:{data:m.a.Default,visibility:!0}},Le.prototype.reset=function(){this._totalCount=0,this._matchCount=0},Le.prototype.dispose=function(){Object(ne.f)(this.disposables)},Le}(),Xe=function(){function Le(W,ae,Fe,qe,ct){this.tree=W,this.view=Fe,this.filter=qe,this.keyboardNavigationDelegate=ct,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new te.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new te.a,this.enabledDisposables=new ne.b,this.disposables=new ne.b,this.domNode=Object(I.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(g.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(I.p)(Fe.getHTMLElement(),Object(I.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(I.p)(this.domNode,Object(I.a)("span.label"));var St=Object(I.p)(this.domNode,Object(I.a)(".controls"));this._filterOnType=!!W.options.filterOnType,this.filterOnTypeDomNode=Object(I.p)(St,Object(I.a)("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(g.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(I.p)(St,Object(I.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(N.a)("clear","Clear"),this.keyboardNavigationEventFilter=W.options.keyboardNavigationEventFilter,ae.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(W.options)}return Object.defineProperty(Le.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),Le.prototype.updateOptions=function(W){W.simpleKeyboardNavigation?this.disable():this.enable(),typeof W.filterOnType!="undefined"&&(this._filterOnType=!!W.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),typeof W.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=W.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},Le.prototype.enable=function(){var W=this;if(this._enabled)return;var ae=te.b.chain(Object(g.a)(this.view.getHTMLElement(),"keydown")).filter(function(qe){return!Ze(qe.target)||qe.target===W.filterOnTypeDomNode}).filter(function(qe){return qe.key!=="Dead"&&!/^Media/.test(qe.key)}).map(function(qe){return new z.a(qe)}).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter(function(){return W.automaticKeyboardNavigation||W.triggered}).filter(function(qe){return W.keyboardNavigationDelegate.mightProducePrintableCharacter(qe)||(W.pattern.length>0||W.triggered)&&(qe.keyCode===9||qe.keyCode===1)&&!qe.altKey&&!qe.ctrlKey&&!qe.metaKey||qe.keyCode===1&&(Me.e?qe.altKey&&!qe.metaKey:qe.ctrlKey)&&!qe.shiftKey}).forEach(function(qe){qe.stopPropagation(),qe.preventDefault()}).event,Fe=Object(g.a)(this.clearDomNode,"click");te.b.chain(te.b.any(ae,Fe)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1},Le.prototype.disable=function(){if(!this._enabled)return;this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1},Le.prototype.onEventOrInput=function(W){typeof W=="string"?this.onInput(W):W instanceof MouseEvent||W.keyCode===9||W.keyCode===1&&(Me.e?W.altKey:W.ctrlKey)?this.onInput(""):W.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+W.browserEvent.key)},Le.prototype.onInput=function(W){var ae=this.view.getHTMLElement();W&&!this.domNode.parentElement?ae.append(this.domNode):!W&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=W,this._onDidChangePattern.fire(W),this.filter.pattern=W,this.tree.refilter(),W&&this.tree.focusNext(0,!0,void 0,function(ct){return!m.a.isDefault(ct.filterData)});var Fe=this.tree.getFocus();if(Fe.length>0){var qe=Fe[0];this.tree.getRelativeTop(qe)===null&&this.tree.reveal(qe,.5)}this.render(),W||(this.triggered=!1)},Le.prototype.onDragStart=function(){var W=this,ae=this.view.getHTMLElement(),Fe=Object(I.B)(ae).left,qe=ae.clientWidth,ct=qe/2,St=this.domNode.clientWidth,Ge=new ne.b,de=this.positionClassName,X=function(){switch(de){case"nw":W.domNode.style.top="4px",W.domNode.style.left="4px";break;case"ne":W.domNode.style.top="4px",W.domNode.style.left=qe-St-6+"px";break}},Ue=function(Q){Q.preventDefault();var Ce=Q.screenX-Fe;Q.dataTransfer&&(Q.dataTransfer.dropEffect="none"),Ce<ct?de="nw":de="ne",X()},at=function(){W.positionClassName=de,W.domNode.className="monaco-list-type-filter "+W.positionClassName,W.domNode.style.top="",W.domNode.style.left="",Object(ne.f)(Ge)};X(),Object(I.O)(this.domNode,de),Object(I.e)(this.domNode,"dragging"),Ge.add(Object(ne.h)(function(){return Object(I.O)(W.domNode,"dragging")})),Object(g.a)(document,"dragover")(Ue,null,Ge),Object(g.a)(this.domNode,"dragend")(at,null,Ge),_.c.CurrentDragAndDropData=new _.b("vscode-ui"),Ge.add(Object(ne.h)(function(){return _.c.CurrentDragAndDropData=void 0}))},Le.prototype.onDidSpliceModel=function(){if(!this._enabled||this.pattern.length===0)return;this.tree.refilter(),this.render()},Le.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},Le.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(N.a)("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(N.a)("enable filter on type","Enable Filter on Type")},Le.prototype.render=function(){var W=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&W?(this.messageDomNode.textContent=Object(N.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(I.X)(this.domNode,"no-matches",W),this.domNode.title=Object(N.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},Le.prototype.shouldAllowFocus=function(W){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!m.a.isDefault(W.filterData)},Le.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(ne.f)(this.disposables)},Le}();function Ze(Le){return Le.tagName==="INPUT"||Le.tagName==="TEXTAREA"}function Ye(Le){return{elements:Le.elements.map(function(W){return W.element}),browserEvent:Le.browserEvent}}function ke(Le,W){W(Le),Le.children.forEach(function(ae){return ke(ae,W)})}var $e=function(){function Le(W){this.identityProvider=W,this.nodes=[],this._onDidChange=new te.a,this.onDidChange=this._onDidChange.event}return Object.defineProperty(Le.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),Le.prototype.set=function(W,ae){if(Object(f.g)(this.nodes,W))return;this._set(W,!1,ae)},Le.prototype._set=function(W,ae,Fe){if(this.nodes=ie(W),this.elements=void 0,this._nodeSet=void 0,!ae){var qe=this;this._onDidChange.fire({get elements(){return qe.get()},browserEvent:Fe})}},Le.prototype.get=function(){return this.elements||(this.elements=this.nodes.map(function(W){return W.element})),ie(this.elements)},Le.prototype.getNodes=function(){return this.nodes},Le.prototype.has=function(W){return this.nodeSet.has(W)},Le.prototype.onDidModelSplice=function(W){var ae=this,Fe=W.insertedNodes,qe=W.deletedNodes;if(!this.identityProvider){var ct=this.createNodeSet(),St=function(Ct){return ct.delete(Ct)};qe.forEach(function(je){return ke(je,St)}),this.set(Object(Ve.e)(ct));return}var Ge=new Set,de=function(Ct){return Ge.add(ae.identityProvider.getId(Ct.element).toString())};qe.forEach(function(je){return ke(je,de)});var X=new Map,Ue=function(Ct){return X.set(ae.identityProvider.getId(Ct.element).toString(),Ct)};Fe.forEach(function(je){return ke(je,Ue)});for(var at=[],et=0,Q=this.nodes;et<Q.length;et++){var Ce=Q[et],Oe=this.identityProvider.getId(Ce.element).toString(),it=Ge.has(Oe);if(!it)at.push(Ce);else{var Qe=X.get(Oe);Qe&&at.push(Qe)}}this._set(at,!0)},Le.prototype.createNodeSet=function(){for(var W=new Set,ae=0,Fe=this.nodes;ae<Fe.length;ae++){var qe=Fe[ae];W.add(qe)}return W},Le}(),we=function(Le){se(W,Le);function W(ae,Fe){var qe=Le.call(this,ae)||this;return qe.tree=Fe,qe}return W.prototype.onPointer=function(ae){if(Ze(ae.browserEvent.target))return;var Fe=ae.element;if(!Fe)return Le.prototype.onPointer.call(this,ae);if(this.isSelectionRangeChangeEvent(ae)||this.isSelectionSingleChangeEvent(ae))return Le.prototype.onPointer.call(this,ae);var qe=Object(I.H)(ae.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&ae.browserEvent.detail!==2&&!qe)return Le.prototype.onPointer.call(this,ae);var ct=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?ct=this.tree.expandOnlyOnTwistieClick(Fe.element):ct=!!this.tree.expandOnlyOnTwistieClick,ct&&!qe)return Le.prototype.onPointer.call(this,ae);if(Fe.collapsible){var St=this.tree.model,Ge=St.getNodeLocation(Fe),de=ae.browserEvent.altKey;if(St.setCollapsed(Ge,void 0,de),ct&&qe)return}Le.prototype.onPointer.call(this,ae)},W.prototype.onDoubleClick=function(ae){var Fe=Object(I.H)(ae.browserEvent.target,"monaco-tl-twistie");if(Fe)return;Le.prototype.onDoubleClick.call(this,ae)},W}(oe.d),k=function(Le){se(W,Le);function W(ae,Fe,qe,ct,St,Ge,de){var X=Le.call(this,ae,Fe,qe,ct,de)||this;return X.focusTrait=St,X.selectionTrait=Ge,X}return W.prototype.createMouseController=function(ae){return new we(this,ae.tree)},W.prototype.splice=function(ae,Fe,qe){var ct=this;if(qe===void 0&&(qe=[]),Le.prototype.splice.call(this,ae,Fe,qe),qe.length===0)return;var St=[],Ge=[];qe.forEach(function(de,X){ct.focusTrait.has(de)&&St.push(ae+X),ct.selectionTrait.has(de)&&Ge.push(ae+X)}),St.length>0&&Le.prototype.setFocus.call(this,Object(f.f)(ie(Le.prototype.getFocus.call(this),St))),Ge.length>0&&Le.prototype.setSelection.call(this,Object(f.f)(ie(Le.prototype.getSelection.call(this),Ge)))},W.prototype.setFocus=function(ae,Fe,qe){var ct=this;qe===void 0&&(qe=!1),Le.prototype.setFocus.call(this,ae,Fe),qe||this.focusTrait.set(ae.map(function(St){return ct.element(St)}),Fe)},W.prototype.setSelection=function(ae,Fe,qe){var ct=this;qe===void 0&&(qe=!1),Le.prototype.setSelection.call(this,ae,Fe),qe||this.selectionTrait.set(ae.map(function(St){return ct.element(St)}),Fe)},W}(oe.c),ee=function(){function Le(W,ae,Fe,qe,ct){var St=this;ct===void 0&&(ct={}),this._options=ct,this.eventBufferer=new te.c,this.disposables=new ne.b,this._onWillRefilter=new te.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new te.a;var Ge=new tt(Fe),de=new te.e,X=new te.e,Ue=new Pt(X.event);this.renderers=qe.map(function(je){return new Xt(je,function(){return St.model},de.event,Ue,ct)});for(var at=0,et=this.renderers;at<et.length;at++){var Q=et[at];this.disposables.add(Q)}var Ce;ct.keyboardNavigationLabelProvider&&(Ce=new Ke(this,ct.keyboardNavigationLabelProvider,ct.filter),ct=fe(fe({},ct),{filter:Ce}),this.disposables.add(Ce)),this.focus=new $e(ct.identityProvider),this.selection=new $e(ct.identityProvider),this.view=new k(W,ae,Ge,this.renderers,this.focus,this.selection,fe(fe({},ze(function(){return St.model},ct)),{tree:this})),this.model=this.createModel(W,this.view,ct),de.input=this.model.onDidChangeCollapseState;var Oe=te.b.forEach(this.model.onDidSplice,function(je){St.eventBufferer.bufferEvents(function(){St.focus.onDidModelSplice(je),St.selection.onDidModelSplice(je)})});if(Oe(function(){return null},null,this.disposables),X.input=te.b.chain(te.b.any(Oe,this.focus.onDidChange,this.selection.onDidChange)).debounce(function(){return null},0).map(function(){for(var je=new Set,Ct=0,Ot=St.focus.getNodes();Ct<Ot.length;Ct++){var Jt=Ot[Ct];je.add(Jt)}for(var At=0,jt=St.selection.getNodes();At<jt.length;At++){var Jt=jt[At];je.add(Jt)}return Object(f.n)(je)}).event,ct.keyboardSupport!==!1){var it=te.b.chain(this.view.onKeyDown).filter(function(je){return!Ze(je.target)}).map(function(je){return new z.a(je)});it.filter(function(je){return je.keyCode===15}).on(this.onLeftArrow,this,this.disposables),it.filter(function(je){return je.keyCode===17}).on(this.onRightArrow,this,this.disposables),it.filter(function(je){return je.keyCode===10}).on(this.onSpace,this,this.disposables)}if(ct.keyboardNavigationLabelProvider){var Qe=ct.keyboardNavigationDelegate||oe.a;this.typeFilterController=new Xe(this,this.model,this.view,Ce,Qe),this.focusNavigationFilter=function(je){return St.typeFilterController.shouldAllowFocus(je)},this.disposables.add(this.typeFilterController)}this.styleElement=Object(I.v)(this.view.getHTMLElement()),Object(I.X)(this.getHTMLElement(),"always",this._options.renderIndentGuides===_t.Always)}return Object.defineProperty(Le.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidOpen",{get:function(){return te.b.map(this.view.onDidOpen,Ye)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"openOnSingleClick",{get:function(){return typeof this._options.openOnSingleClick=="undefined"?!0:this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"expandOnlyOnTwistieClick",{get:function(){return typeof this._options.expandOnlyOnTwistieClick=="undefined"?!1:this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),Le.prototype.updateOptions=function(W){W===void 0&&(W={}),this._options=fe(fe({},this._options),W);for(var ae=0,Fe=this.renderers;ae<Fe.length;ae++){var qe=Fe[ae];qe.updateOptions(W)}this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(I.X)(this.getHTMLElement(),"always",this._options.renderIndentGuides===_t.Always)},Object.defineProperty(Le.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Le.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(Le.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(ae){this.view.scrollTop=ae},enumerable:!0,configurable:!0}),Le.prototype.domFocus=function(){this.view.domFocus()},Le.prototype.layout=function(W,ae){this.view.layout(W,ae)},Le.prototype.style=function(W){var ae="."+this.view.domId,Fe=[];W.treeIndentGuidesStroke&&(Fe.push(".monaco-list"+ae+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+ae+".always .monaco-tl-indent > .indent-guide { border-color: "+W.treeIndentGuidesStroke.transparent(.4)+"; }"),Fe.push(".monaco-list"+ae+" .monaco-tl-indent > .indent-guide.active { border-color: "+W.treeIndentGuidesStroke+"; }"));var qe=Fe.join(`
|
|
`);qe!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=qe),this.view.style(W)},Le.prototype.collapse=function(W,ae){return ae===void 0&&(ae=!1),this.model.setCollapsed(W,!0,ae)},Le.prototype.expand=function(W,ae){return ae===void 0&&(ae=!1),this.model.setCollapsed(W,!1,ae)},Le.prototype.isCollapsible=function(W){return this.model.isCollapsible(W)},Le.prototype.setCollapsible=function(W,ae){return this.model.setCollapsible(W,ae)},Le.prototype.isCollapsed=function(W){return this.model.isCollapsed(W)},Le.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},Le.prototype.setSelection=function(W,ae){var Fe=this,qe=W.map(function(St){return Fe.model.getNode(St)});this.selection.set(qe,ae);var ct=W.map(function(St){return Fe.model.getListIndex(St)}).filter(function(St){return St>-1});this.view.setSelection(ct,ae,!0)},Le.prototype.getSelection=function(){return this.selection.get()},Le.prototype.setFocus=function(W,ae){var Fe=this,qe=W.map(function(St){return Fe.model.getNode(St)});this.focus.set(qe,ae);var ct=W.map(function(St){return Fe.model.getListIndex(St)}).filter(function(St){return St>-1});this.view.setFocus(ct,ae,!0)},Le.prototype.focusNext=function(W,ae,Fe,qe){W===void 0&&(W=1),ae===void 0&&(ae=!1),qe===void 0&&(qe=this.focusNavigationFilter),this.view.focusNext(W,ae,Fe,qe)},Le.prototype.getFocus=function(){return this.focus.get()},Le.prototype.reveal=function(W,ae){this.model.expandTo(W);var Fe=this.model.getListIndex(W);if(Fe===-1)return;this.view.reveal(Fe,ae)},Le.prototype.getRelativeTop=function(W){var ae=this.model.getListIndex(W);return ae===-1?null:this.view.getRelativeTop(ae)},Le.prototype.onLeftArrow=function(W){W.preventDefault(),W.stopPropagation();var ae=this.view.getFocusedElements();if(ae.length===0)return;var Fe=ae[0],qe=this.model.getNodeLocation(Fe),ct=this.model.setCollapsed(qe,!0);if(!ct){var St=this.model.getParentNodeLocation(qe);if(!St)return;var Ge=this.model.getListIndex(St);this.view.reveal(Ge),this.view.setFocus([Ge])}},Le.prototype.onRightArrow=function(W){W.preventDefault(),W.stopPropagation();var ae=this.view.getFocusedElements();if(ae.length===0)return;var Fe=ae[0],qe=this.model.getNodeLocation(Fe),ct=this.model.setCollapsed(qe,!1);if(!ct){if(!Fe.children.some(function(de){return de.visible}))return;var St=this.view.getFocus()[0],Ge=St+1;this.view.reveal(Ge),this.view.setFocus([Ge])}},Le.prototype.onSpace=function(W){W.preventDefault(),W.stopPropagation();var ae=this.view.getFocusedElements();if(ae.length===0)return;var Fe=ae[0],qe=this.model.getNodeLocation(Fe),ct=W.browserEvent.altKey;this.model.setCollapsed(qe,void 0,ct)},Le.prototype.dispose=function(){Object(ne.f)(this.disposables),this.view.dispose()},Le}(),Pe=function(){return Pe=Object.assign||function(Le){for(var W,ae=1,Fe=arguments.length;ae<Fe;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},Pe.apply(this,arguments)},ve=function(){for(var Le=0,W=0,ae=arguments.length;W<ae;W++)Le+=arguments[W].length;for(var Fe=Array(Le),qe=0,W=0;W<ae;W++)for(var ct=arguments[W],St=0,Ge=ct.length;St<Ge;St++,qe++)Fe[qe]=ct[St];return Fe},Te=function(){function Le(W,ae,Fe){Fe===void 0&&(Fe={}),this.user=W,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new Z(W,ae,null,Fe),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,Fe.sorter&&(this.sorter={compare:function(ct,St){return Fe.sorter.compare(ct.element,St.element)}}),this.identityProvider=Fe.identityProvider}return Le.prototype.setChildren=function(W,ae,Fe,qe){var ct=this.getElementLocation(W);this._setChildren(ct,this.preserveCollapseState(ae),Fe,qe)},Le.prototype._setChildren=function(W,ae,Fe,qe){var ct=this,St=new Set,Ge=new Set,de=function(at){if(St.add(at.element),ct.nodes.set(at.element,at),ct.identityProvider){var et=ct.identityProvider.getId(at.element).toString();Ge.add(et),ct.nodesByIdentity.set(et,at)}Fe&&Fe(at)},X=function(at){if(St.has(at.element)||ct.nodes.delete(at.element),ct.identityProvider){var et=ct.identityProvider.getId(at.element).toString();Ge.has(et)||ct.nodesByIdentity.delete(et)}qe&&qe(at)};this.model.splice(ve(W,[0]),Number.MAX_VALUE,ae,de,X)},Le.prototype.preserveCollapseState=function(W){var ae=this,Fe=W?Object(re.d)(W):re.c.empty();return this.sorter&&(Fe=re.c.fromArray(Object(f.r)(re.c.collect(Fe),this.sorter.compare.bind(this.sorter)))),re.c.map(Fe,function(qe){var ct=ae.nodes.get(qe.element);if(!ct&&ae.identityProvider){var St=ae.identityProvider.getId(qe.element).toString();ct=ae.nodesByIdentity.get(St)}if(!ct)return Pe(Pe({},qe),{children:ae.preserveCollapseState(qe.children)});var Ge=typeof qe.collapsible=="boolean"?qe.collapsible:ct.collapsible,de=typeof qe.collapsed!="undefined"?qe.collapsed:ct.collapsed;return Pe(Pe({},qe),{collapsible:Ge,collapsed:de,children:ae.preserveCollapseState(qe.children)})})},Le.prototype.rerender=function(W){var ae=this.getElementLocation(W);this.model.rerender(ae)},Le.prototype.has=function(W){return this.nodes.has(W)},Le.prototype.getListIndex=function(W){var ae=this.getElementLocation(W);return this.model.getListIndex(ae)},Le.prototype.getListRenderCount=function(W){var ae=this.getElementLocation(W);return this.model.getListRenderCount(ae)},Le.prototype.isCollapsible=function(W){var ae=this.getElementLocation(W);return this.model.isCollapsible(ae)},Le.prototype.setCollapsible=function(W,ae){var Fe=this.getElementLocation(W);return this.model.setCollapsible(Fe,ae)},Le.prototype.isCollapsed=function(W){var ae=this.getElementLocation(W);return this.model.isCollapsed(ae)},Le.prototype.setCollapsed=function(W,ae,Fe){var qe=this.getElementLocation(W);return this.model.setCollapsed(qe,ae,Fe)},Le.prototype.expandTo=function(W){var ae=this.getElementLocation(W);this.model.expandTo(ae)},Le.prototype.refilter=function(){this.model.refilter()},Le.prototype.getNode=function(W){if(W===void 0&&(W=null),W===null)return this.model.getNode(this.model.rootRef);var ae=this.nodes.get(W);if(!ae)throw new B(this.user,"Tree element not found: "+W);return ae},Le.prototype.getNodeLocation=function(W){return W.element},Le.prototype.getParentNodeLocation=function(W){if(W===null)throw new B(this.user,"Invalid getParentNodeLocation call");var ae=this.nodes.get(W);if(!ae)throw new B(this.user,"Tree element not found: "+W);var Fe=this.model.getNodeLocation(ae),qe=this.model.getParentNodeLocation(Fe),ct=this.model.getNode(qe);return ct.element},Le.prototype.getElementLocation=function(W){if(W===null)return[];var ae=this.nodes.get(W);if(!ae)throw new B(this.user,"Tree element not found: "+W);return this.model.getNodeLocation(ae)},Le}(),Ie=function(){return Ie=Object.assign||function(Le){for(var W,ae=1,Fe=arguments.length;ae<Fe;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},Ie.apply(this,arguments)};function pe(Le){var W=[Le.element],ae=Le.incompressible||!1;return{element:{elements:W,incompressible:ae},children:re.c.map(re.c.from(Le.children),pe),collapsible:Le.collapsible,collapsed:Le.collapsed}}function nt(Le){for(var W=[Le.element],ae=Le.incompressible||!1,Fe,qe;!(Fe=re.c.from(Le.children),qe=re.c.collect(Fe,2),qe.length!==1);){if(Le=qe[0],Le.incompressible)break;W.push(Le.element)}return{element:{elements:W,incompressible:ae},children:re.c.map(re.c.concat(re.c.fromArray(qe),Fe),nt),collapsible:Le.collapsible,collapsed:Le.collapsed}}function Et(Le,W){W===void 0&&(W=0);var ae;return W<Le.element.elements.length-1?ae=re.c.single(Et(Le,W+1)):ae=re.c.map(re.c.from(Le.children),function(Fe){return Et(Fe,0)}),W===0&&Le.element.incompressible?{element:Le.element.elements[W],children:ae,incompressible:!0,collapsible:Le.collapsible,collapsed:Le.collapsed}:{element:Le.element.elements[W],children:ae,collapsible:Le.collapsible,collapsed:Le.collapsed}}function Rt(Le){return Et(Le,0)}function Tt(Le,W,ae){return Le.element===W?Ie(Ie({},Le),{children:ae}):Ie(Ie({},Le),{children:re.c.map(re.c.from(Le.children),function(Fe){return Tt(Fe,W,ae)})})}var Ht=function(){function Le(W,ae,Fe){Fe===void 0&&(Fe={}),this.user=W,this.nodes=new Map,this.model=new Te(W,ae,Fe),this.enabled=typeof Fe.compressionEnabled=="undefined"?!0:Fe.compressionEnabled}return Object.defineProperty(Le.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Le.prototype.setChildren=function(W,ae){if(W===null){var Fe=re.c.map(re.c.from(ae),this.enabled?nt:pe);this._setChildren(null,Fe);return}var qe=this.nodes.get(W);if(!qe)throw new Error("Unknown compressed tree node");var ct=this.model.getNode(qe),St=this.model.getParentNodeLocation(qe),Ge=this.model.getNode(St),de=Rt(ct),X=Tt(de,W,re.c.from(ae)),Ue=(this.enabled?nt:pe)(X),at=Ge.children.map(function(et){return et===ct?Ue:et});this._setChildren(Ge.element,at)},Le.prototype.setCompressionEnabled=function(W){if(W===this.enabled)return;this.enabled=W;var ae=this.model.getNode(),Fe=re.c.from(ae.children),qe=re.c.map(Fe,Rt),ct=re.c.map(qe,W?nt:pe);this._setChildren(null,ct)},Le.prototype._setChildren=function(W,ae){var Fe=this,qe=new Set,ct=function(de){for(var X=0,Ue=de.element.elements;X<Ue.length;X++){var at=Ue[X];qe.add(at),Fe.nodes.set(at,de.element)}},St=function(de){for(var X=0,Ue=de.element.elements;X<Ue.length;X++){var at=Ue[X];qe.has(at)||Fe.nodes.delete(at)}};this.model.setChildren(W,ae,ct,St)},Le.prototype.has=function(W){return this.nodes.has(W)},Le.prototype.getListIndex=function(W){var ae=this.getCompressedNode(W);return this.model.getListIndex(ae)},Le.prototype.getListRenderCount=function(W){var ae=this.getCompressedNode(W);return this.model.getListRenderCount(ae)},Le.prototype.getNode=function(W){if(typeof W=="undefined")return this.model.getNode();var ae=this.getCompressedNode(W);return this.model.getNode(ae)},Le.prototype.getNodeLocation=function(W){var ae=this.model.getNodeLocation(W);return ae===null?null:ae.elements[ae.elements.length-1]},Le.prototype.getParentNodeLocation=function(W){var ae=this.getCompressedNode(W),Fe=this.model.getParentNodeLocation(ae);return Fe===null?null:Fe.elements[Fe.elements.length-1]},Le.prototype.isCollapsible=function(W){var ae=this.getCompressedNode(W);return this.model.isCollapsible(ae)},Le.prototype.setCollapsible=function(W,ae){var Fe=this.getCompressedNode(W);return this.model.setCollapsible(Fe,ae)},Le.prototype.isCollapsed=function(W){var ae=this.getCompressedNode(W);return this.model.isCollapsed(ae)},Le.prototype.setCollapsed=function(W,ae,Fe){var qe=this.getCompressedNode(W);return this.model.setCollapsed(qe,ae,Fe)},Le.prototype.expandTo=function(W){var ae=this.getCompressedNode(W);this.model.expandTo(ae)},Le.prototype.rerender=function(W){var ae=this.getCompressedNode(W);this.model.rerender(ae)},Le.prototype.refilter=function(){this.model.refilter()},Le.prototype.getCompressedNode=function(W){if(W===null)return null;var ae=this.nodes.get(W);if(!ae)throw new B(this.user,"Tree element not found: "+W);return ae},Le}(),Gt=function(W){return W[W.length-1]},rn=function(){function Le(W,ae){this.unwrapper=W,this.node=ae}return Object.defineProperty(Le.prototype,"element",{get:function(){return this.node.element===null?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"children",{get:function(){var ae=this;return this.node.children.map(function(Fe){return new Le(ae.unwrapper,Fe)})},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Le}();function Ln(Le,W){return{splice:function(Fe,qe,ct){W.splice(Fe,qe,ct.map(function(St){return Le.map(St)}))}}}function yn(Le,W){return Ie(Ie({},W),{sorter:W.sorter&&{compare:function(Fe,qe){return W.sorter.compare(Fe.elements[0],qe.elements[0])}},identityProvider:W.identityProvider&&{getId:function(Fe){return W.identityProvider.getId(Le(Fe))}},filter:W.filter&&{filter:function(Fe,qe){return W.filter.filter(Le(Fe),qe)}}})}var Tn=function(){function Le(W,ae,Fe){var qe=this;Fe===void 0&&(Fe={}),this.elementMapper=Fe.elementMapper||Gt;var ct=function(Ge){return qe.elementMapper(Ge.elements)};this.nodeMapper=new H(function(St){return new rn(ct,St)}),this.model=new Ht(W,Ln(this.nodeMapper,ae),yn(ct,Fe))}return Object.defineProperty(Le.prototype,"onDidSplice",{get:function(){var ae=this;return te.b.map(this.model.onDidSplice,function(Fe){var qe=Fe.insertedNodes,ct=Fe.deletedNodes;return{insertedNodes:qe.map(function(St){return ae.nodeMapper.map(St)}),deletedNodes:ct.map(function(St){return ae.nodeMapper.map(St)})}})},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidChangeCollapseState",{get:function(){var ae=this;return te.b.map(this.model.onDidChangeCollapseState,function(Fe){var qe=Fe.node,ct=Fe.deep;return{node:ae.nodeMapper.map(qe),deep:ct}})},enumerable:!0,configurable:!0}),Le.prototype.setChildren=function(W,ae){this.model.setChildren(W,ae)},Le.prototype.setCompressionEnabled=function(W){this.model.setCompressionEnabled(W)},Le.prototype.has=function(W){return this.model.has(W)},Le.prototype.getListIndex=function(W){return this.model.getListIndex(W)},Le.prototype.getListRenderCount=function(W){return this.model.getListRenderCount(W)},Le.prototype.getNode=function(W){return this.nodeMapper.map(this.model.getNode(W))},Le.prototype.getNodeLocation=function(W){return W.element},Le.prototype.getParentNodeLocation=function(W){return this.model.getParentNodeLocation(W)},Le.prototype.isCollapsible=function(W){return this.model.isCollapsible(W)},Le.prototype.setCollapsible=function(W,ae){return this.model.setCollapsible(W,ae)},Le.prototype.isCollapsed=function(W){return this.model.isCollapsed(W)},Le.prototype.setCollapsed=function(W,ae,Fe){return this.model.setCollapsed(W,ae,Fe)},Le.prototype.expandTo=function(W){return this.model.expandTo(W)},Le.prototype.rerender=function(W){return this.model.rerender(W)},Le.prototype.refilter=function(){return this.model.refilter()},Le.prototype.getCompressedTreeNode=function(W){return W===void 0&&(W=null),this.model.getNode(W)},Le}(),Ft=r("2/w6"),pt=function(){var Le=function(ae,Fe){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,Fe)};return function(W,ae){Le(W,ae);function Fe(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),gt=function(){return gt=Object.assign||function(Le){for(var W,ae=1,Fe=arguments.length;ae<Fe;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},gt.apply(this,arguments)},Dt=function(Le,W,ae,Fe){var qe=arguments.length,ct=qe<3?W:Fe===null?Fe=Object.getOwnPropertyDescriptor(W,ae):Fe,St;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ct=Reflect.decorate(Le,W,ae,Fe);else for(var Ge=Le.length-1;Ge>=0;Ge--)(St=Le[Ge])&&(ct=(qe<3?St(ct):qe>3?St(W,ae,ct):St(W,ae))||ct);return qe>3&&ct&&Object.defineProperty(W,ae,ct),ct},Lt=function(Le){pt(W,Le);function W(ae,Fe,qe,ct,St){return St===void 0&&(St={}),Le.call(this,ae,Fe,qe,ct,St)||this}return Object.defineProperty(W.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),W.prototype.setChildren=function(ae,Fe){this.model.setChildren(ae,Fe)},W.prototype.rerender=function(ae){if(ae===void 0){this.view.rerender();return}this.model.rerender(ae)},W.prototype.hasElement=function(ae){return this.model.has(ae)},W.prototype.createModel=function(ae,Fe,qe){return new Te(ae,Fe,qe)},W}(ee),Vt=function(){function Le(W,ae){this._compressedTreeNodeProvider=W,this.renderer=ae,this.templateId=ae.templateId,ae.onDidChangeTwistieState&&(this.onDidChangeTwistieState=ae.onDidChangeTwistieState)}return Object.defineProperty(Le.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),Le.prototype.renderTemplate=function(W){var ae=this.renderer.renderTemplate(W);return{compressedTreeNode:void 0,data:ae}},Le.prototype.renderElement=function(W,ae,Fe,qe){var ct=this.compressedTreeNodeProvider.getCompressedTreeNode(W.element);ct.element.elements.length===1?(Fe.compressedTreeNode=void 0,this.renderer.renderElement(W,ae,Fe.data,qe)):(Fe.compressedTreeNode=ct,this.renderer.renderCompressedElements(ct,ae,Fe.data,qe))},Le.prototype.disposeElement=function(W,ae,Fe,qe){Fe.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(Fe.compressedTreeNode,ae,Fe.data,qe):this.renderer.disposeElement&&this.renderer.disposeElement(W,ae,Fe.data,qe)},Le.prototype.disposeTemplate=function(W){this.renderer.disposeTemplate(W.data)},Le.prototype.renderTwistie=function(W,ae){this.renderer.renderTwistie&&this.renderer.renderTwistie(W,ae)},Dt([Ft.a],Le.prototype,"compressedTreeNodeProvider",null),Le}();function Qt(Le,W){return W&>(gt({},W),{keyboardNavigationLabelProvider:W.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(Fe){var qe;try{qe=Le().getCompressedTreeNode(Fe)}catch(ct){return W.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(Fe)}return qe.element.elements.length===1?W.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(Fe):W.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(qe.element.elements)}}})}var nn=function(Le){pt(W,Le);function W(ae,Fe,qe,ct,St){St===void 0&&(St={});var Ge=this,de=function(){return Ge},X=ct.map(function(Ue){return new Vt(de,Ue)});return Ge=Le.call(this,ae,Fe,qe,X,Qt(de,St))||this,Ge}return W.prototype.setChildren=function(ae,Fe){this.model.setChildren(ae,Fe)},W.prototype.createModel=function(ae,Fe,qe){return new Tn(ae,Fe,qe)},W.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),Le.prototype.updateOptions.call(this,ae),typeof ae.compressionEnabled!="undefined"&&this.model.setCompressionEnabled(ae.compressionEnabled)},W.prototype.getCompressedTreeNode=function(ae){return ae===void 0&&(ae=null),this.model.getCompressedTreeNode(ae)},W}(Lt),sn=r("QqjT"),ln=function(){var Le=function(ae,Fe){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,Fe)};return function(W,ae){Le(W,ae);function Fe(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),En=function(){return En=Object.assign||function(Le){for(var W,ae=1,Fe=arguments.length;ae<Fe;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},En.apply(this,arguments)},On=function(Le,W,ae,Fe){function qe(ct){return ct instanceof ae?ct:new ae(function(St){St(ct)})}return new(ae||(ae=Promise))(function(ct,St){function Ge(Ue){try{X(Fe.next(Ue))}catch(at){St(at)}}function de(Ue){try{X(Fe.throw(Ue))}catch(at){St(at)}}function X(Ue){Ue.done?ct(Ue.value):qe(Ue.value).then(Ge,de)}X((Fe=Fe.apply(Le,W||[])).next())})},Pn=function(Le,W){var ae={label:0,sent:function(){if(ct[0]&1)throw ct[1];return ct[1]},trys:[],ops:[]},Fe,qe,ct,St;return St={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(St[Symbol.iterator]=function(){return this}),St;function Ge(X){return function(Ue){return de([X,Ue])}}function de(X){if(Fe)throw new TypeError("Generator is already executing.");for(;ae;)try{if(Fe=1,qe&&(ct=X[0]&2?qe.return:X[0]?qe.throw||((ct=qe.return)&&ct.call(qe),0):qe.next)&&!(ct=ct.call(qe,X[1])).done)return ct;(qe=0,ct)&&(X=[X[0]&2,ct.value]);switch(X[0]){case 0:case 1:ct=X;break;case 4:return ae.label++,{value:X[1],done:!1};case 5:ae.label++,qe=X[1],X=[0];continue;case 7:X=ae.ops.pop(),ae.trys.pop();continue;default:if(!(ct=ae.trys,ct=ct.length>0&&ct[ct.length-1])&&(X[0]===6||X[0]===2)){ae=0;continue}if(X[0]===3&&(!ct||X[1]>ct[0]&&X[1]<ct[3])){ae.label=X[1];break}if(X[0]===6&&ae.label<ct[1]){ae.label=ct[1],ct=X;break}if(ct&&ae.label<ct[2]){ae.label=ct[2],ae.ops.push(X);break}ct[2]&&ae.ops.pop(),ae.trys.pop();continue}X=W.call(Le,ae)}catch(Ue){X=[6,Ue],qe=0}finally{Fe=ct=0}if(X[0]&5)throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}},Gn=function(){for(var Le=0,W=0,ae=arguments.length;W<ae;W++)Le+=arguments[W].length;for(var Fe=Array(Le),qe=0,W=0;W<ae;W++)for(var ct=arguments[W],St=0,Ge=ct.length;St<Ge;St++,qe++)Fe[qe]=ct[St];return Fe};function Qn(Le){return En(En({},Le),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function Jn(Le,W){return W.parent?W.parent===Le?!0:Jn(Le,W.parent):!1}function gi(Le,W){return Le===W||Jn(Le,W)||Jn(W,Le)}var Kn=function(){function Le(W){this.node=W}return Object.defineProperty(Le.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"children",{get:function(){return this.node.children.map(function(ae){return new Le(ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Le}(),yi=function(){function Le(W,ae,Fe){this.renderer=W,this.nodeMapper=ae,this.onDidChangeTwistieState=Fe,this.renderedNodes=new Map,this.templateId=W.templateId}return Le.prototype.renderTemplate=function(W){var ae=this.renderer.renderTemplate(W);return{templateData:ae}},Le.prototype.renderElement=function(W,ae,Fe,qe){this.renderer.renderElement(this.nodeMapper.map(W),ae,Fe.templateData,qe)},Le.prototype.renderTwistie=function(W,ae){return Object(I.X)(ae,"codicon-loading",W.slow),!1},Le.prototype.disposeElement=function(W,ae,Fe,qe){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(W),ae,Fe.templateData,qe)},Le.prototype.disposeTemplate=function(W){this.renderer.disposeTemplate(W.templateData)},Le.prototype.dispose=function(){this.renderedNodes.clear()},Le}();function mi(Le){return{browserEvent:Le.browserEvent,elements:Le.elements.map(function(W){return W.element})}}var vt=function(Le){ln(W,Le);function W(ae){var Fe=Le.call(this,ae.elements.map(function(qe){return qe.element}))||this;return Fe.data=ae,Fe}return W}(p.a);function Mt(Le){return Le instanceof p.a?new vt(Le):Le}var zt=function(){function Le(W){this.dnd=W}return Le.prototype.getDragURI=function(W){return this.dnd.getDragURI(W.element)},Le.prototype.getDragLabel=function(W,ae){return this.dnd.getDragLabel?this.dnd.getDragLabel(W.map(function(Fe){return Fe.element}),ae):void 0},Le.prototype.onDragStart=function(W,ae){this.dnd.onDragStart&&this.dnd.onDragStart(Mt(W),ae)},Le.prototype.onDragOver=function(W,ae,Fe,qe,ct){return ct===void 0&&(ct=!0),this.dnd.onDragOver(Mt(W),ae&&ae.element,Fe,qe)},Le.prototype.drop=function(W,ae,Fe,qe){this.dnd.drop(Mt(W),ae&&ae.element,Fe,qe)},Le.prototype.onDragEnd=function(W){this.dnd.onDragEnd&&this.dnd.onDragEnd(W)},Le}();function tn(Le){return Le&&En(En({},Le),{collapseByDefault:!0,identityProvider:Le.identityProvider&&{getId:function(ae){return Le.identityProvider.getId(ae.element)}},dnd:Le.dnd&&new zt(Le.dnd),multipleSelectionController:Le.multipleSelectionController&&{isSelectionSingleChangeEvent:function(ae){return Le.multipleSelectionController.isSelectionSingleChangeEvent(En(En({},ae),{element:ae.element}))},isSelectionRangeChangeEvent:function(ae){return Le.multipleSelectionController.isSelectionRangeChangeEvent(En(En({},ae),{element:ae.element}))}},accessibilityProvider:Le.accessibilityProvider&&En(En({},Le.accessibilityProvider),{getAriaLabel:function(ae){return Le.accessibilityProvider.getAriaLabel(ae.element)},getAriaLevel:Le.accessibilityProvider.getAriaLevel&&function(W){return Le.accessibilityProvider.getAriaLevel(W.element)},getActiveDescendantId:Le.accessibilityProvider.getActiveDescendantId&&function(W){return Le.accessibilityProvider.getActiveDescendantId(W.element)}}),filter:Le.filter&&{filter:function(ae,Fe){return Le.filter.filter(ae.element,Fe)}},keyboardNavigationLabelProvider:Le.keyboardNavigationLabelProvider&&En(En({},Le.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(ae){return Le.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ae.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof Le.expandOnlyOnTwistieClick=="undefined"?void 0:typeof Le.expandOnlyOnTwistieClick!="function"?Le.expandOnlyOnTwistieClick:function(W){return Le.expandOnlyOnTwistieClick(W.element)},ariaProvider:Le.ariaProvider&&{getPosInSet:function(ae,Fe){return Le.ariaProvider.getPosInSet(ae.element,Fe)},getSetSize:function(ae,Fe,qe){return Le.ariaProvider.getSetSize(ae.element,Fe,qe)},getRole:Le.ariaProvider.getRole?function(W){return Le.ariaProvider.getRole(W.element)}:void 0,isChecked:Le.ariaProvider.isChecked?function(W){var ae;return((ae=Le.ariaProvider)===null||ae===void 0?void 0:ae.isChecked)(W.element)}:void 0},additionalScrollHeight:Le.additionalScrollHeight})}function Ut(Le,W){W(Le),Le.children.forEach(function(ae){return Ut(ae,W)})}var Sn=function(){function Le(W,ae,Fe,qe,ct,St){St===void 0&&(St={}),this.user=W,this.dataSource=ct,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new te.a,this._onDidChangeNodeSlowState=new te.a,this.nodeMapper=new H(function(Ge){return new Kn(Ge)}),this.disposables=new ne.b,this.identityProvider=St.identityProvider,this.autoExpandSingleChildren=typeof St.autoExpandSingleChildren=="undefined"?!1:St.autoExpandSingleChildren,this.sorter=St.sorter,this.collapseByDefault=St.collapseByDefault,this.tree=this.createTree(W,ae,Fe,qe,St),this.root=Qn({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=En(En({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}return Object.defineProperty(Le.prototype,"onDidChangeFocus",{get:function(){return te.b.map(this.tree.onDidChangeFocus,mi)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidChangeSelection",{get:function(){return te.b.map(this.tree.onDidChangeSelection,mi)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidOpen",{get:function(){return te.b.map(this.tree.onDidOpen,mi)},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),Le.prototype.createTree=function(W,ae,Fe,qe,ct){var St=this,Ge=new tt(Fe),de=qe.map(function(Ue){return new yi(Ue,St.nodeMapper,St._onDidChangeNodeSlowState.event)}),X=tn(ct)||{};return new Lt(W,ae,Ge,de,X)},Le.prototype.updateOptions=function(W){W===void 0&&(W={}),this.tree.updateOptions(W)},Le.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(Le.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(ae){this.tree.scrollTop=ae},enumerable:!0,configurable:!0}),Le.prototype.domFocus=function(){this.tree.domFocus()},Le.prototype.layout=function(W,ae){this.tree.layout(W,ae)},Le.prototype.style=function(W){this.tree.style(W)},Le.prototype.getInput=function(){return this.root.element},Le.prototype.setInput=function(W,ae){return On(this,void 0,void 0,function(){var Fe;return Pn(this,function(qe){switch(qe.label){case 0:return this.refreshPromises.forEach(function(ct){return ct.cancel()}),this.refreshPromises.clear(),this.root.element=W,Fe=ae&&{viewState:ae,focus:[],selection:[]},[4,this._updateChildren(W,!0,!1,Fe)];case 1:return qe.sent(),Fe&&(this.tree.setFocus(Fe.focus),this.tree.setSelection(Fe.selection)),ae&&typeof ae.scrollTop=="number"&&(this.scrollTop=ae.scrollTop),[2]}})})},Le.prototype._updateChildren=function(W,ae,Fe,qe){return W===void 0&&(W=this.root.element),ae===void 0&&(ae=!0),Fe===void 0&&(Fe=!1),On(this,void 0,void 0,function(){var ct;return Pn(this,function(St){switch(St.label){case 0:if(typeof this.root.element=="undefined")throw new B(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return St.sent(),[4,te.b.toPromise(this._onDidRender.event)];case 2:St.sent(),St.label=3;case 3:return ct=this.getDataNode(W),[4,this.refreshAndRenderNode(ct,ae,qe)];case 4:if(St.sent(),Fe)try{this.tree.rerender(ct)}catch(Ge){}return[2]}})})},Le.prototype.rerender=function(W){if(W===void 0||W===this.root.element){this.tree.rerender();return}var ae=this.getDataNode(W);this.tree.rerender(ae)},Le.prototype.collapse=function(W,ae){ae===void 0&&(ae=!1);var Fe=this.getDataNode(W);return this.tree.collapse(Fe===this.root?null:Fe,ae)},Le.prototype.expand=function(W,ae){return ae===void 0&&(ae=!1),On(this,void 0,void 0,function(){var Fe,qe;return Pn(this,function(ct){switch(ct.label){case 0:if(typeof this.root.element=="undefined")throw new B(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return ct.sent(),[4,te.b.toPromise(this._onDidRender.event)];case 2:ct.sent(),ct.label=3;case 3:return Fe=this.getDataNode(W),this.tree.hasElement(Fe)&&!this.tree.isCollapsible(Fe)?[2,!1]:Fe.refreshPromise?[4,this.root.refreshPromise]:[3,6];case 4:return ct.sent(),[4,te.b.toPromise(this._onDidRender.event)];case 5:ct.sent(),ct.label=6;case 6:return Fe!==this.root&&!Fe.refreshPromise&&!this.tree.isCollapsed(Fe)?[2,!1]:(qe=this.tree.expand(Fe===this.root?null:Fe,ae),Fe.refreshPromise?[4,this.root.refreshPromise]:[3,9]);case 7:return ct.sent(),[4,te.b.toPromise(this._onDidRender.event)];case 8:ct.sent(),ct.label=9;case 9:return[2,qe]}})})},Le.prototype.setSelection=function(W,ae){var Fe=this,qe=W.map(function(ct){return Fe.getDataNode(ct)});this.tree.setSelection(qe,ae)},Le.prototype.getSelection=function(){var W=this.tree.getSelection();return W.map(function(ae){return ae.element})},Le.prototype.setFocus=function(W,ae){var Fe=this,qe=W.map(function(ct){return Fe.getDataNode(ct)});this.tree.setFocus(qe,ae)},Le.prototype.getFocus=function(){var W=this.tree.getFocus();return W.map(function(ae){return ae.element})},Le.prototype.reveal=function(W,ae){this.tree.reveal(this.getDataNode(W),ae)},Le.prototype.getDataNode=function(W){var ae=this.nodes.get(W===this.root.element?null:W);if(!ae)throw new B(this.user,"Data tree node not found: "+W);return ae},Le.prototype.refreshAndRenderNode=function(W,ae,Fe){return On(this,void 0,void 0,function(){return Pn(this,function(qe){switch(qe.label){case 0:return[4,this.refreshNode(W,ae,Fe)];case 1:return qe.sent(),this.render(W,Fe),[2]}})})},Le.prototype.refreshNode=function(W,ae,Fe){return On(this,void 0,void 0,function(){var qe,ct=this;return Pn(this,function(St){return this.subTreeRefreshPromises.forEach(function(Ge,de){!qe&&gi(de,W)&&(qe=Ge.then(function(){return ct.refreshNode(W,ae,Fe)}))}),qe?[2,qe]:[2,this.doRefreshSubTree(W,ae,Fe)]})})},Le.prototype.doRefreshSubTree=function(W,ae,Fe){return On(this,void 0,void 0,function(){var qe,ct,St=this;return Pn(this,function(Ge){switch(Ge.label){case 0:W.refreshPromise=new Promise(function(de){return qe=de}),this.subTreeRefreshPromises.set(W,W.refreshPromise),W.refreshPromise.finally(function(){W.refreshPromise=void 0,St.subTreeRefreshPromises.delete(W)}),Ge.label=1;case 1:return Ge.trys.push([1,,4,5]),[4,this.doRefreshNode(W,ae,Fe)];case 2:return ct=Ge.sent(),W.stale=!1,[4,Promise.all(ct.map(function(de){return St.doRefreshSubTree(de,ae,Fe)}))];case 3:return Ge.sent(),[3,5];case 4:return qe(),[7];case 5:return[2]}})})},Le.prototype.doRefreshNode=function(W,ae,Fe){return On(this,void 0,void 0,function(){var qe,ct,St,Ge,de=this;return Pn(this,function(X){switch(X.label){case 0:W.hasChildren=!!this.dataSource.hasChildren(W.element),W.hasChildren?(ct=Object(ce.k)(800),ct.then(function(){W.slow=!0,de._onDidChangeNodeSlowState.fire(W)},function(Ue){return null}),qe=this.doGetChildren(W).finally(function(){return ct.cancel()})):qe=Promise.resolve([]),X.label=1;case 1:return X.trys.push([1,3,4,5]),[4,qe];case 2:return St=X.sent(),[2,this.setChildren(W,St,ae,Fe)];case 3:if(Ge=X.sent(),W!==this.root&&this.tree.collapse(W===this.root?null:W),Object(sn.d)(Ge))return[2,[]];throw Ge;case 4:return W.slow&&(W.slow=!1,this._onDidChangeNodeSlowState.fire(W)),[7];case 5:return[2]}})})},Le.prototype.doGetChildren=function(W){var ae=this,Fe=this.refreshPromises.get(W);return Fe||(Fe=Object(ce.f)(function(){return On(ae,void 0,void 0,function(){var qe;return Pn(this,function(ct){switch(ct.label){case 0:return[4,this.dataSource.getChildren(W.element)];case 1:return qe=ct.sent(),[2,this.processChildren(qe)]}})})}),this.refreshPromises.set(W,Fe),Fe.finally(function(){return ae.refreshPromises.delete(W)}))},Le.prototype._onDidChangeCollapseState=function(W){var ae=W.node,Fe=W.deep;!ae.collapsed&&ae.element.stale&&(Fe?this.collapse(ae.element.element):this.refreshAndRenderNode(ae.element,!1).catch(sn.e))},Le.prototype.setChildren=function(W,ae,Fe,qe){var ct,St=this;if(W.children.length===0&&ae.length===0)return[];for(var Ge=new Map,de=new Map,X=0,Ue=W.children;X<Ue.length;X++){var at=Ue[X];if(Ge.set(at.element,at),this.identityProvider){var et=this.tree.isCollapsed(at);de.set(at.id,{node:at,collapsed:et})}}for(var Q=[],Ce=ae.map(function(Ot){var Jt=!!St.dataSource.hasChildren(Ot);if(!St.identityProvider){var At=Qn({element:Ot,parent:W,hasChildren:Jt});return Jt&&St.collapseByDefault&&!St.collapseByDefault(Ot)&&(At.collapsedByDefault=!1,Q.push(At)),At}var jt=St.identityProvider.getId(Ot).toString(),hn=de.get(jt);if(hn){var At=hn.node;return Ge.delete(At.element),St.nodes.delete(At.element),St.nodes.set(Ot,At),At.element=Ot,At.hasChildren=Jt,Fe?hn.collapsed?(At.children.forEach(function(Vn){return Ut(Vn,function(Xn){return St.nodes.delete(Xn.element)})}),At.children.splice(0,At.children.length),At.stale=!0):Q.push(At):Jt&&St.collapseByDefault&&!St.collapseByDefault(Ot)&&(At.collapsedByDefault=!1,Q.push(At)),At}var bn=Qn({element:Ot,parent:W,id:jt,hasChildren:Jt});return qe&&qe.viewState.focus&&qe.viewState.focus.indexOf(jt)>-1&&qe.focus.push(bn),qe&&qe.viewState.selection&&qe.viewState.selection.indexOf(jt)>-1&&qe.selection.push(bn),qe&&qe.viewState.expanded&&qe.viewState.expanded.indexOf(jt)>-1?Q.push(bn):Jt&&St.collapseByDefault&&!St.collapseByDefault(Ot)&&(bn.collapsedByDefault=!1,Q.push(bn)),bn}),Oe=0,it=Object(Ve.e)(Ge);Oe<it.length;Oe++){var Qe=it[Oe];Ut(Qe,function(Ot){return St.nodes.delete(Ot.element)})}for(var je=0,Ct=Ce;je<Ct.length;je++){var at=Ct[je];this.nodes.set(at.element,at)}return(ct=W.children).splice.apply(ct,Gn([0,W.children.length],Ce)),W!==this.root&&this.autoExpandSingleChildren&&Ce.length===1&&Q.length===0&&(Ce[0].collapsedByDefault=!1,Q.push(Ce[0])),Q},Le.prototype.render=function(W,ae){var Fe=this,qe=W.children.map(function(ct){return Fe.asTreeElement(ct,ae)});this.tree.setChildren(W===this.root?null:W,qe),W!==this.root&&this.tree.setCollapsible(W,W.hasChildren),this._onDidRender.fire()},Le.prototype.asTreeElement=function(W,ae){var Fe=this;if(W.stale)return{element:W,collapsible:W.hasChildren,collapsed:!0};var qe;return ae&&ae.viewState.expanded&&W.id&&ae.viewState.expanded.indexOf(W.id)>-1?qe=!1:qe=W.collapsedByDefault,W.collapsedByDefault=void 0,{element:W,children:W.hasChildren?re.c.map(re.c.fromArray(W.children),function(ct){return Fe.asTreeElement(ct,ae)}):[],collapsible:W.hasChildren,collapsed:qe}},Le.prototype.processChildren=function(W){return this.sorter&&W.sort(this.sorter.compare.bind(this.sorter)),W},Le.prototype.dispose=function(){this.disposables.dispose()},Le}(),Rn=function(){function Le(W){this.node=W}return Object.defineProperty(Le.prototype,"element",{get:function(){return{elements:this.node.element.elements.map(function(ae){return ae.element}),incompressible:this.node.element.incompressible}},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"children",{get:function(){return this.node.children.map(function(ae){return new Le(ae)})},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(Le.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),Le}(),Bn=function(){function Le(W,ae,Fe,qe){this.renderer=W,this.nodeMapper=ae,this.compressibleNodeMapperProvider=Fe,this.onDidChangeTwistieState=qe,this.renderedNodes=new Map,this.disposables=[],this.templateId=W.templateId}return Le.prototype.renderTemplate=function(W){var ae=this.renderer.renderTemplate(W);return{templateData:ae}},Le.prototype.renderElement=function(W,ae,Fe,qe){this.renderer.renderElement(this.nodeMapper.map(W),ae,Fe.templateData,qe)},Le.prototype.renderCompressedElements=function(W,ae,Fe,qe){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(W),ae,Fe.templateData,qe)},Le.prototype.renderTwistie=function(W,ae){return Object(I.X)(ae,"codicon-loading",W.slow),!1},Le.prototype.disposeElement=function(W,ae,Fe,qe){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(W),ae,Fe.templateData,qe)},Le.prototype.disposeCompressedElements=function(W,ae,Fe,qe){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(W),ae,Fe.templateData,qe)},Le.prototype.disposeTemplate=function(W){this.renderer.disposeTemplate(W.templateData)},Le.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(ne.f)(this.disposables)},Le}();function Fn(Le){var W=Le&&tn(Le);return W&&En(En({},W),{keyboardNavigationLabelProvider:W.keyboardNavigationLabelProvider&&En(En({},W.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(Fe){return Le.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(Fe.map(function(qe){return qe.element}))}})})}var ri=function(Le){ln(W,Le);function W(ae,Fe,qe,ct,St,Ge,de){de===void 0&&(de={});var X=Le.call(this,ae,Fe,qe,St,Ge,de)||this;return X.compressionDelegate=ct,X.compressibleNodeMapper=new H(function(Ue){return new Rn(Ue)}),X.filter=de.filter,X}return W.prototype.createTree=function(ae,Fe,qe,ct,St){var Ge=this,de=new tt(qe),X=ct.map(function(at){return new Bn(at,Ge.nodeMapper,function(){return Ge.compressibleNodeMapper},Ge._onDidChangeNodeSlowState.event)}),Ue=Fn(St)||{};return new nn(ae,Fe,de,X,Ue)},W.prototype.asTreeElement=function(ae,Fe){return En({incompressible:this.compressionDelegate.isIncompressible(ae.element)},Le.prototype.asTreeElement.call(this,ae,Fe))},W.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),this.tree.updateOptions(ae)},W.prototype.render=function(ae,Fe){var qe=this;if(!this.identityProvider)return Le.prototype.render.call(this,ae,Fe);var ct=function(Oe){return qe.identityProvider.getId(Oe).toString()},St=function(Oe){for(var it=new Set,Qe=0,je=Oe;Qe<je.length;Qe++){var Ct=je[Qe],Ot=qe.tree.getCompressedTreeNode(Ct===qe.root?null:Ct);if(!Ot.element)continue;for(var Jt=0,At=Ot.element.elements;Jt<At.length;Jt++){var jt=At[Jt];it.add(ct(jt.element))}}return it},Ge=St(this.tree.getSelection()),de=St(this.tree.getFocus());Le.prototype.render.call(this,ae,Fe);var X=this.getSelection(),Ue=!1,at=this.getFocus(),et=!1,Q=function Ce(Oe){var it=Oe.element;if(it)for(var Qe=0;Qe<it.elements.length;Qe++){var je=ct(it.elements[Qe].element),Ct=it.elements[it.elements.length-1].element;Ge.has(je)&&X.indexOf(Ct)===-1&&(X.push(Ct),Ue=!0),de.has(je)&&at.indexOf(Ct)===-1&&(at.push(Ct),et=!0)}Oe.children.forEach(Ce)};Q(this.tree.getCompressedTreeNode(ae===this.root?null:ae)),Ue&&this.setSelection(X),et&&this.setFocus(at)},W.prototype.processChildren=function(ae){var Fe=this;return this.filter&&(ae=ae.filter(function(qe){var ct=Fe.filter.filter(qe,1),St=ci(ct);if(St===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return St===1})),Le.prototype.processChildren.call(this,ae)},W}(Sn);function ci(Le){return typeof Le=="boolean"?Le?1:0:Ee(Le)?Se(Le.visibility):Se(Le)}var zi=function(){var Le=function(ae,Fe){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,Fe)};return function(W,ae){Le(W,ae);function Fe(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),oo=function(Le){zi(W,Le);function W(ae,Fe,qe,ct,St,Ge){Ge===void 0&&(Ge={});var de=Le.call(this,ae,Fe,qe,ct,Ge)||this;return de.user=ae,de.dataSource=St,de.identityProvider=Ge.identityProvider,de}return W.prototype.createModel=function(ae,Fe,qe){return new Te(ae,Fe,qe)},W}(ee),Zn=r("FTcp"),Ii=function(){var Le=function(ae,Fe){return Le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,ct){qe.__proto__=ct}||function(qe,ct){for(var St in ct)ct.hasOwnProperty(St)&&(qe[St]=ct[St])},Le(ae,Fe)};return function(W,ae){Le(W,ae);function Fe(){this.constructor=W}W.prototype=ae===null?Object.create(ae):(Fe.prototype=ae.prototype,new Fe)}}(),Si=function(){return Si=Object.assign||function(Le){for(var W,ae=1,Fe=arguments.length;ae<Fe;ae++){W=arguments[ae];for(var qe in W)Object.prototype.hasOwnProperty.call(W,qe)&&(Le[qe]=W[qe])}return Le},Si.apply(this,arguments)},ji=function(Le,W,ae,Fe){var qe=arguments.length,ct=qe<3?W:Fe===null?Fe=Object.getOwnPropertyDescriptor(W,ae):Fe,St;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ct=Reflect.decorate(Le,W,ae,Fe);else for(var Ge=Le.length-1;Ge>=0;Ge--)(St=Le[Ge])&&(ct=(qe<3?St(ct):qe>3?St(W,ae,ct):St(W,ae))||ct);return qe>3&&ct&&Object.defineProperty(W,ae,ct),ct},Un=function(Le,W){return function(ae,Fe){W(ae,Fe,Le)}},Ci,Wi=Object(G.c)("listService"),Ti=function(){function Le(W){this._themeService=W,this.disposables=new ne.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}return Object.defineProperty(Le.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),Le.prototype.register=function(W,ae){var Fe=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var qe=new oe.b(Object(I.v)(),"");this.disposables.add(Object(x.b)(qe,this._themeService))}if(this.lists.some(function(St){return St.widget===W}))throw new Error("Cannot register the same widget multiple times");var ct={widget:W,extraContextKeys:ae};return this.lists.push(ct),W.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=W),Object(ne.e)(W.onDidFocus(function(){return Fe._lastFocusedWidget=W}),Object(ne.h)(function(){return Fe.lists.splice(Fe.lists.indexOf(ct),1)}),W.onDidDispose(function(){Fe.lists=Fe.lists.filter(function(St){return St!==ct}),Fe._lastFocusedWidget===W&&(Fe._lastFocusedWidget=void 0)}))},Le.prototype.dispose=function(){this.disposables.dispose()},Le=ji([Un(0,K.c)],Le),Le}(),Gi=new j.d("listFocus",!0),Bi=new j.d("listSupportsMultiselect",!0),vi=j.a.and(Gi,j.a.not(D)),qi=new j.d("listHasSelectionOrFocus",!1),ro=new j.d("listDoubleSelection",!1),bi=new j.d("listMultiSelection",!1),Di=new j.d("listSupportsKeyboardNavigation",!0),Xi="listAutomaticKeyboardNavigation",lo=new j.d(Xi,!0),Mi=!1;function so(Le,W){var ae=Le.createScoped(W.getHTMLElement());return Gi.bindTo(ae),ae}var Je="workbench.list.multiSelectModifier",O="workbench.list.openMode",T="workbench.list.horizontalScrolling",Y="workbench.list.keyboardNavigation",De="workbench.list.automaticKeyboardNavigation",Re="workbench.tree.indent",We="workbench.tree.renderIndentGuides";function ft(Le){return Object(F.f)(Le,T,"workbench.tree.horizontalScrolling")}function lt(Le){return Le.getValue(Je)==="alt"}function yt(Le){return Le.getValue(O)!=="doubleClick"}var xt=function(Le){Ii(W,Le);function W(ae){var Fe=Le.call(this)||this;return Fe.configurationService=ae,Fe.useAltAsMultipleSelectionModifier=lt(ae),Fe.registerListeners(),Fe}return W.prototype.registerListeners=function(){var ae=this;this._register(this.configurationService.onDidChangeConfiguration(function(Fe){Fe.affectsConfiguration(Je)&&(ae.useAltAsMultipleSelectionModifier=lt(ae.configurationService))}))},W.prototype.isSelectionSingleChangeEvent=function(ae){return this.useAltAsMultipleSelectionModifier?ae.browserEvent.altKey:Object(oe.f)(ae)},W.prototype.isSelectionRangeChangeEvent=function(ae){return Object(oe.e)(ae)},W}(ne.a),It=function(Le){Ii(W,Le);function W(ae,Fe){var qe=Le.call(this)||this;return qe.configurationService=ae,qe.existingOpenController=Fe,qe.openOnSingleClick=yt(ae),qe.registerListeners(),qe}return W.prototype.registerListeners=function(){var ae=this;this._register(this.configurationService.onDidChangeConfiguration(function(Fe){Fe.affectsConfiguration(O)&&(ae.openOnSingleClick=yt(ae.configurationService))}))},W.prototype.shouldOpen=function(ae){if(ae instanceof MouseEvent){var Fe=ae.button===0,qe=ae.detail===2;return Fe&&!this.openOnSingleClick&&!qe?!1:Fe||ae.button===1?this.existingOpenController?this.existingOpenController.shouldOpen(ae):!0:!1}return this.existingOpenController?this.existingOpenController.shouldOpen(ae):!0},W}(ne.a);function kt(Le,W,ae){var Fe=new ne.b,qe=Si({},Le);if(Le.multipleSelectionSupport!==!1&&!Le.multipleSelectionController){var ct=new xt(W);qe.multipleSelectionController=ct,Fe.add(ct)}var St=new It(W,Le.openController);return qe.openController=St,Fe.add(St),qe.keyboardNavigationDelegate={mightProducePrintableCharacter:function(de){return ae.mightProducePrintableCharacter(de)}},[qe,Fe]}function Yt(Le,W){var ae=!1;return function(Fe){if(ae)return ae=!1,!1;var qe=W.softDispatch(Fe,Le);return qe&&qe.enterChord?(ae=!0,!1):(ae=!1,!0)}}var Zt=function(Le){Ii(W,Le);function W(ae,Fe,qe,ct,St,Ge,de,X,Ue,at,et){var Q=this,Ce=gn(Fe,St,Ge,Ue,at,et),Oe=Ce.options,it=Ce.getAutomaticKeyboardNavigation,Qe=Ce.disposable;return Q=Le.call(this,ae,Fe,qe,ct,Oe)||this,Q.disposables.add(Qe),Q.internals=new Mn(Q,Oe,it,St.overrideStyles,Ge,de,X,Ue,et),Q.disposables.add(Q.internals),Q}return W=ji([Un(5,j.c),Un(6,Wi),Un(7,K.c),Un(8,F.a),Un(9,R.a),Un(10,Zn.b)],W),W}(Lt),dn=function(Le){Ii(W,Le);function W(ae,Fe,qe,ct,St,Ge,de,X,Ue,at,et,Q){var Ce=this,Oe=gn(Fe,Ge,de,at,et,Q),it=Oe.options,Qe=Oe.getAutomaticKeyboardNavigation,je=Oe.disposable;return Ce=Le.call(this,ae,Fe,qe,ct,St,it)||this,Ce.disposables.add(je),Ce.internals=new Mn(Ce,it,Qe,Ge.overrideStyles,de,X,Ue,at,Q),Ce.disposables.add(Ce.internals),Ce}return W.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),Le.prototype.updateOptions.call(this,ae),ae.overrideStyles&&this.internals.updateStyleOverrides(ae.overrideStyles)},W=ji([Un(6,j.c),Un(7,Wi),Un(8,K.c),Un(9,F.a),Un(10,R.a),Un(11,Zn.b)],W),W}(oo),fn=function(Le){Ii(W,Le);function W(ae,Fe,qe,ct,St,Ge,de,X,Ue,at,et,Q){var Ce=this,Oe=gn(Fe,Ge,de,at,et,Q),it=Oe.options,Qe=Oe.getAutomaticKeyboardNavigation,je=Oe.disposable;return Ce=Le.call(this,ae,Fe,qe,ct,St,it)||this,Ce.disposables.add(je),Ce.internals=new Mn(Ce,it,Qe,Ge.overrideStyles,de,X,Ue,at,Q),Ce.disposables.add(Ce.internals),Ce}return W.prototype.updateOptions=function(ae){ae===void 0&&(ae={}),Le.prototype.updateOptions.call(this,ae),ae.overrideStyles&&this.internals.updateStyleOverrides(ae.overrideStyles)},W=ji([Un(6,j.c),Un(7,Wi),Un(8,K.c),Un(9,F.a),Un(10,R.a),Un(11,Zn.b)],W),W}(Sn),An=function(Le){Ii(W,Le);function W(ae,Fe,qe,ct,St,Ge,de,X,Ue,at,et,Q,Ce){var Oe=this,it=gn(Fe,de,X,et,Q,Ce),Qe=it.options,je=it.getAutomaticKeyboardNavigation,Ct=it.disposable;return Oe=Le.call(this,ae,Fe,qe,ct,St,Ge,Qe)||this,Oe.disposables.add(Ct),Oe.internals=new Mn(Oe,Qe,je,de.overrideStyles,X,Ue,at,et,Ce),Oe.disposables.add(Oe.internals),Oe}return W=ji([Un(7,j.c),Un(8,Wi),Un(9,K.c),Un(10,F.a),Un(11,R.a),Un(12,Zn.b)],W),W}(ri);function gn(Le,W,ae,Fe,qe,ct){Di.bindTo(ae),Mi||(lo.bindTo(ae),Mi=!0);var St=function(){var it=ae.getContextKeyValue(Xi);return it&&(it=Fe.getValue(De)),it},Ge=ct.isScreenReaderOptimized(),de=Ge?"simple":Fe.getValue(Y),X=typeof W.horizontalScrolling!="undefined"?W.horizontalScrolling:ft(Fe),Ue=yt(Fe),at=kt(W,Fe,qe),et=at[0],Q=at[1],Ce=W.additionalScrollHeight;return{getAutomaticKeyboardNavigation:St,disposable:Q,options:Si(Si({keyboardSupport:!1},et),{indent:Fe.getValue(Re),renderIndentGuides:Fe.getValue(We),automaticKeyboardNavigation:St(),simpleKeyboardNavigation:de==="simple",filterOnType:de==="filter",horizontalScrolling:X,openOnSingleClick:Ue,keyboardNavigationEventFilter:Yt(Le,qe),additionalScrollHeight:Ce,hideTwistiesOfChildlessElements:W.hideTwistiesOfChildlessElements})}}var Mn=function(){function Le(W,ae,Fe,qe,ct,St,Ge,de,X){var Ue=this;this.tree=W,this.themeService=Ge,this.disposables=[],this.contextKeyService=so(ct,W);var at=Bi.bindTo(this.contextKeyService);at.set(!(ae.multipleSelectionSupport===!1)),this.hasSelectionOrFocus=qi.bindTo(this.contextKeyService),this.hasDoubleSelection=ro.bindTo(this.contextKeyService),this.hasMultiSelection=bi.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=lt(de);var et=new Set;et.add(Xi);var Q=function(){var Oe=X.isScreenReaderOptimized(),it=Oe?"simple":de.getValue(Y);W.updateOptions({simpleKeyboardNavigation:it==="simple",filterOnType:it==="filter"})};this.updateStyleOverrides(qe),this.disposables.push(this.contextKeyService,St.register(W),W.onDidChangeSelection(function(){var Ce=W.getSelection(),Oe=W.getFocus();Ue.hasSelectionOrFocus.set(Ce.length>0||Oe.length>0),Ue.hasMultiSelection.set(Ce.length>1),Ue.hasDoubleSelection.set(Ce.length===2)}),W.onDidChangeFocus(function(){var Ce=W.getSelection(),Oe=W.getFocus();Ue.hasSelectionOrFocus.set(Ce.length>0||Oe.length>0)}),de.onDidChangeConfiguration(function(Ce){if(Ce.affectsConfiguration(O)&&W.updateOptions({openOnSingleClick:yt(de)}),Ce.affectsConfiguration(Je)&&(Ue._useAltAsMultipleSelectionModifier=lt(de)),Ce.affectsConfiguration(Re)){var Oe=de.getValue(Re);W.updateOptions({indent:Oe})}if(Ce.affectsConfiguration(We)){var it=de.getValue(We);W.updateOptions({renderIndentGuides:it})}Ce.affectsConfiguration(Y)&&Q(),Ce.affectsConfiguration(De)&&W.updateOptions({automaticKeyboardNavigation:Fe()})}),this.contextKeyService.onDidChangeContext(function(Ce){Ce.affectsSome(et)&&W.updateOptions({automaticKeyboardNavigation:Fe()})}),X.onDidChangeScreenReaderOptimized(function(){return Q()}))}return Le.prototype.updateStyleOverrides=function(W){Object(ne.f)(this.styler),this.styler=W?Object(x.b)(this.tree,this.themeService,W):ne.a.None},Le.prototype.dispose=function(){this.disposables=Object(ne.f)(this.disposables),this.styler=Object(ne.f)(this.styler)},Le=ji([Un(4,j.c),Un(5,Wi),Un(6,K.c),Un(7,F.a),Un(8,Zn.b)],Le),Le}(),xn=E.a.as(U.a.Configuration);xn.registerConfiguration({id:"workbench",order:7,title:Object(N.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:(Ci={},Ci[Je]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(N.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(N.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(N.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},Ci[O]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(N.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},Ci[T]={type:"boolean",default:!1,description:Object(N.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},Ci["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(N.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(N.a)("deprecated","This setting is deprecated, please use '{0}' instead.",T)},Ci[Re]={type:"number",default:8,minimum:0,maximum:40,description:Object(N.a)("tree indent setting","Controls tree indentation in pixels.")},Ci[We]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(N.a)("render tree indent guides","Controls whether the tree should render indent guides.")},Ci[Y]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(N.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(N.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(N.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(N.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},Ci[De]={type:"boolean",default:!0,markdownDescription:Object(N.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},Ci)})},rsec:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return r.e(208).then(r.bind(null,"wXL/"))}})},rvt5:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("modeService")},sN1w:function(wt,P,r){"use strict";r.d(P,"a",function(){return ce});var I=r("Inmo"),oe=r("yBOt"),ne=r("U9+s"),N=r("xFpO"),F=r("emi/"),U=r("dE3Z"),j="**",G="/",R="[/\\\\]",E="[^/\\\\]",x=/\//g;function K(fe){switch(fe){case 0:return"";case 1:return E+"*?";default:return"(?:"+R+"|"+E+"+"+R+"|"+R+E+"+)*?"}}function D(fe,ie){if(!fe)return[];for(var J=[],me=!1,ye=!1,ze="",tt=0,_t=fe;tt<_t.length;tt++){var Pt=_t[tt];switch(Pt){case ie:if(!me&&!ye){J.push(ze),ze="";continue}break;case"{":me=!0;break;case"}":me=!1;break;case"[":ye=!0;break;case"]":ye=!1;break}ze+=Pt}return ze&&J.push(ze),J}function A(fe){if(!fe)return"";var ie="",J=D(fe,G);if(J.every(function(ye){return ye===j}))ie=".*";else{var me=!1;J.forEach(function(ye,ze){if(ye===j){me||(ie+=K(2),me=!0);return}for(var tt=!1,_t="",Pt=!1,Xt="",Ke=0,Xe=ye;Ke<Xe.length;Ke++){var Ze=Xe[Ke];if(Ze!=="}"&&tt){_t+=Ze;continue}if(Pt&&(Ze!=="]"||!Xt)){var Ye=void 0;Ze==="-"?Ye=Ze:(Ze==="^"||Ze==="!")&&!Xt?Ye="^":Ze===G?Ye="":Ye=oe.p(Ze),Xt+=Ye;continue}switch(Ze){case"{":tt=!0;continue;case"[":Pt=!0;continue;case"}":var ke=D(_t,","),$e="(?:"+ke.map(function(we){return A(we)}).join("|")+")";ie+=$e,tt=!1,_t="";break;case"]":ie+="["+Xt+"]",Pt=!1,Xt="";break;case"?":ie+=E;continue;case"*":ie+=K(1);continue;default:ie+=oe.p(Ze)}}ze<J.length-1&&(J[ze+1]!==j||ze+2<J.length)&&(ie+=R),me=!1})}return ie}var te=/^\*\*\/\*\.[\w\.-]+$/,z=/^\*\*\/([\w\.-]+)\/?$/,_=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,f=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,p=/^\*\*((\/[\w\.-]+)+)\/?$/,g=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,m=new F.a(1e4),w=function(){return!1},B=function(){return null};function H(fe,ie){if(!fe)return B;var J;typeof fe!="string"?J=fe.pattern:J=fe,J=J.trim();var me=J+"_"+!!ie.trimForExclusions,ye=m.get(me);if(ye)return re(ye,fe);var ze;if(te.test(J)){var tt=J.substr(4);ye=function(Pt,Xt){return typeof Pt=="string"&&oe.m(Pt,tt)?J:null}}else(ze=z.exec(he(J,ie)))?ye=Ee(ze[1],J):(ie.trimForExclusions?f:_).test(J)?ye=Se(J,ie):(ze=p.exec(he(J,ie)))?ye=q(ze[1].substr(1),J,!0):(ze=g.exec(he(J,ie)))?ye=q(ze[1],J,!1):ye=Z(J);return m.set(me,ye),re(ye,fe)}function re(fe,ie){return typeof ie=="string"?fe:function(J,me){return ne.a(J,ie.base)?fe(N.relative(ie.base,J),me):null}}function he(fe,ie){return ie.trimForExclusions&&oe.m(fe,"/**")?fe.substr(0,fe.length-2):fe}function Ee(fe,ie){var J="/"+fe,me="\\"+fe,ye=function(_t,Pt){return typeof _t!="string"?null:Pt?Pt===fe?ie:null:_t===fe||oe.m(_t,J)||oe.m(_t,me)?ie:null},ze=[fe];return ye.basenames=ze,ye.patterns=[ie],ye.allBasenames=ze,ye}function Se(fe,ie){var J=se(fe.slice(1,-1).split(",").map(function(_t){return H(_t,ie)}).filter(function(_t){return _t!==B}),fe),me=J.length;if(!me)return B;if(me===1)return J[0];var ye=function(Pt,Xt){for(var Ke=0,Xe=J.length;Ke<Xe;Ke++)if(J[Ke](Pt,Xt))return fe;return null},ze=I.j(J,function(_t){return!!_t.allBasenames});ze&&(ye.allBasenames=ze.allBasenames);var tt=J.reduce(function(_t,Pt){return Pt.allPaths?_t.concat(Pt.allPaths):_t},[]);return tt.length&&(ye.allPaths=tt),ye}function q(fe,ie,J){var me=N.sep!==N.posix.sep?fe.replace(x,N.sep):fe,ye=N.sep+me,ze=J?function(tt,_t){return typeof tt=="string"&&(tt===me||oe.m(tt,ye))?ie:null}:function(tt,_t){return typeof tt=="string"&&tt===me?ie:null};return ze.allPaths=[(J?"*/":"./")+fe],ze}function Z(fe){try{var ie=new RegExp("^"+A(fe)+"$");return function(J,me){return ie.lastIndex=0,typeof J=="string"&&ie.test(J)?fe:null}}catch(J){return B}}function ce(fe,ie,J){return!fe||typeof ie!="string"?!1:Me(fe)(ie,void 0,J)}function Me(fe,ie){if(ie===void 0&&(ie={}),!fe)return w;if(typeof fe=="string"||Ve(fe)){var J=H(fe,ie);if(J===B)return w;var me=function(ze,tt){return!!J(ze,tt)};return J.allBasenames&&(me.allBasenames=J.allBasenames),J.allPaths&&(me.allPaths=J.allPaths),me}return _e(fe,ie)}function Ve(fe){var ie=fe;return ie&&typeof ie.base=="string"&&typeof ie.pattern=="string"}function _e(fe,ie){var J=se(Object.getOwnPropertyNames(fe).map(function(Ke){return ue(Ke,fe[Ke],ie)}).filter(function(Ke){return Ke!==B})),me=J.length;if(!me)return B;if(!J.some(function(Ke){return!!Ke.requiresSiblings})){if(me===1)return J[0];var ye=function(Xe,Ze){for(var Ye=0,ke=J.length;Ye<ke;Ye++){var $e=J[Ye](Xe,Ze);if($e)return $e}return null},ze=I.j(J,function(Ke){return!!Ke.allBasenames});ze&&(ye.allBasenames=ze.allBasenames);var tt=J.reduce(function(Ke,Xe){return Xe.allPaths?Ke.concat(Xe.allPaths):Ke},[]);return tt.length&&(ye.allPaths=tt),ye}var _t=function(Xe,Ze,Ye){for(var ke=void 0,$e=0,we=J.length;$e<we;$e++){var k=J[$e];k.requiresSiblings&&Ye&&(Ze||(Ze=N.basename(Xe)),ke||(ke=Ze.substr(0,Ze.length-N.extname(Xe).length)));var ee=k(Xe,Ze,ke,Ye);if(ee)return ee}return null},Pt=I.j(J,function(Ke){return!!Ke.allBasenames});Pt&&(_t.allBasenames=Pt.allBasenames);var Xt=J.reduce(function(Ke,Xe){return Xe.allPaths?Ke.concat(Xe.allPaths):Ke},[]);return Xt.length&&(_t.allPaths=Xt),_t}function ue(fe,ie,J){if(ie===!1)return B;var me=H(fe,J);if(me===B)return B;if(typeof ie=="boolean")return me;if(ie){var ye=ie.when;if(typeof ye=="string"){var ze=function(_t,Pt,Xt,Ke){if(!Ke||!me(_t,Pt))return null;var Xe=ye.replace("$(basename)",Xt),Ze=Ke(Xe);return Object(U.i)(Ze)?Ze.then(function(Ye){return Ye?fe:null}):Ze?fe:null};return ze.requiresSiblings=!0,ze}}return me}function se(fe,ie){var J=fe.filter(function(Xt){return!!Xt.basenames});if(J.length<2)return fe;var me=J.reduce(function(Xt,Ke){var Xe=Ke.basenames;return Xe?Xt.concat(Xe):Xt},[]),ye;if(ie){ye=[];for(var ze=0,tt=me.length;ze<tt;ze++)ye.push(ie)}else ye=J.reduce(function(Xt,Ke){var Xe=Ke.patterns;return Xe?Xt.concat(Xe):Xt},[]);var _t=function(Ke,Xe){if(typeof Ke!="string")return null;if(!Xe){var Ze=void 0;for(Ze=Ke.length;Ze>0;Ze--){var Ye=Ke.charCodeAt(Ze-1);if(Ye===47||Ye===92)break}Xe=Ke.substr(Ze)}var ke=me.indexOf(Xe);return ke!==-1?ye[ke]:null};_t.basenames=me,_t.patterns=ye,_t.allBasenames=me;var Pt=fe.filter(function(Xt){return!Xt.basenames});return Pt.push(_t),Pt}},sWcr:function(wt,P,r){},sY7j:function(wt,P,r){},sbF4:function(wt,P,r){},sgIQ:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return r.e(216).then(r.bind(null,"aME4"))}})},sjWa:function(wt,P,r){"use strict";r.d(P,"b",function(){return oe}),r.d(P,"a",function(){return ne});var I=r("PoD0"),oe=Object(I.c)("contextViewService"),ne=Object(I.c)("contextMenuService")},sobA:function(wt,P,r){"use strict";r.d(P,"a",function(){return U});var I=r("Qun0"),oe=r("S7i+"),ne=r("OJ8J"),N=r("E+fE"),F=function(){function R(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return R.bindToCurrentPlatform=function(E){if(oe.a===1){if(E&&E.win)return E.win}else if(oe.a===2){if(E&&E.mac)return E.mac}else if(E&&E.linux)return E.linux;return E},R.prototype.registerKeybindingRule=function(E){var x=R.bindToCurrentPlatform(E);if(x&&x.primary){var K=Object(I.f)(x.primary,oe.a);K&&this._registerDefaultKeybinding(K,E.id,E.args,E.weight,0,E.when)}if(x&&Array.isArray(x.secondary))for(var D=0,A=x.secondary.length;D<A;D++){var te=x.secondary[D],K=Object(I.f)(te,oe.a);K&&this._registerDefaultKeybinding(K,E.id,E.args,E.weight,-D-1,E.when)}},R.prototype.registerCommandAndKeybindingRule=function(E){this.registerKeybindingRule(E),ne.a.registerCommand(E)},R._mightProduceChar=function(E){return E>=21&&E<=30||E>=31&&E<=56?!0:E===80||E===81||E===82||E===83||E===84||E===85||E===86||E===110||E===111||E===87||E===88||E===89||E===90||E===91||E===92},R.prototype._assertNoCtrlAlt=function(E,x){E.ctrlKey&&E.altKey&&!E.metaKey&&(R._mightProduceChar(E.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",E," for ",x))},R.prototype._registerDefaultKeybinding=function(E,x,K,D,A,te){oe.a===1&&this._assertNoCtrlAlt(E.parts[0],x),this._coreKeybindings.push({keybinding:E,command:x,commandArgs:K,when:te,weight1:D,weight2:A}),this._cachedMergedKeybindings=null},R.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(G)),this._cachedMergedKeybindings.slice(0)},R}(),U=new F,j={EditorModes:"platform.keybindingsRegistry"};N.a.add(j.EditorModes,U);function G(R,E){return R.weight1!==E.weight1?R.weight1-E.weight1:R.command<E.command?-1:R.command>E.command?1:R.weight2-E.weight2}},ssBC:function(wt,P,r){"use strict";r.d(P,"a",function(){return U}),r.d(P,"b",function(){return j});var I=r("S7i+"),oe=r("CTBJ"),ne=function(){var G=function(E,x){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,D){K.__proto__=D}||function(K,D){for(var A in D)D.hasOwnProperty(A)&&(K[A]=D[A])},G(E,x)};return function(R,E){G(R,E);function x(){this.constructor=R}R.prototype=E===null?Object.create(E):(x.prototype=E.prototype,new x)}}(),N=I.e?1.5:1.35,F=8,U=function(){function G(R){this.zoomLevel=R.zoomLevel,this.fontFamily=String(R.fontFamily),this.fontWeight=String(R.fontWeight),this.fontSize=R.fontSize,this.fontFeatureSettings=R.fontFeatureSettings,this.lineHeight=R.lineHeight|0,this.letterSpacing=R.letterSpacing}return G.createFromValidatedSettings=function(R,E,x){var K=R.get(33),D=R.get(37),A=R.get(36),te=R.get(35),z=R.get(49),_=R.get(46);return G._create(K,D,A,te,z,_,E,x)},G._create=function(R,E,x,K,D,A,te,z){D===0?D=Math.round(N*x):D<F&&(D=F);var _=1+(z?0:oe.a.getZoomLevel()*.1);return x*=_,D*=_,new G({zoomLevel:te,fontFamily:R,fontWeight:E,fontSize:x,fontFeatureSettings:K,lineHeight:D,letterSpacing:A})},G.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing},G.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},G}(),j=function(G){ne(R,G);function R(E,x){var K=G.call(this,E)||this;return K.isTrusted=x,K.isMonospace=E.isMonospace,K.typicalHalfwidthCharacterWidth=E.typicalHalfwidthCharacterWidth,K.typicalFullwidthCharacterWidth=E.typicalFullwidthCharacterWidth,K.canUseHalfwidthRightwardsArrow=E.canUseHalfwidthRightwardsArrow,K.spaceWidth=E.spaceWidth,K.middotWidth=E.middotWidth,K.maxDigitWidth=E.maxDigitWidth,K}return R.prototype.equals=function(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.maxDigitWidth===E.maxDigitWidth},R}(U)},tKu4:function(wt,P,r){"use strict";r.r(P),r.d(P,"LanguageServiceDefaultsImpl",function(){return N});var I=r("1lNs"),oe=r.n(I);"use strict";var ne=monaco.Emitter,N=function(){function f(p,g,m){this._onDidChange=new ne,this._languageId=p,this.setOptions(g),this.setModeConfiguration(m)}return Object.defineProperty(f.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),f.prototype.setOptions=function(p){this._options=p||Object.create(null),this._onDidChange.fire(this)},f.prototype.setModeConfiguration=function(p){this._modeConfiguration=p||Object.create(null),this._onDidChange.fire(this)},f}(),F={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},U={format:F,suggest:{html5:!0,angular1:!0,ionic:!0}},j={format:F,suggest:{html5:!0}},G={format:F,suggest:{html5:!0,razor:!0}};function R(f){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:f===E,documentFormattingEdits:f===E,documentRangeFormattingEdits:f===E}}var E="html",x="handlebars",K="razor",D=new N(E,U,R(E)),A=new N(x,j,R(x)),te=new N(K,G,R(K));function z(){return{htmlDefaults:D,razorDefaults:te,handlebarDefaults:A}}monaco.languages.html=z();function _(){return r.e(201).then(r.bind(null,"7eMu"))}monaco.languages.onLanguage(E,function(){_().then(function(f){return f.setupMode(D)})}),monaco.languages.onLanguage(x,function(){_().then(function(f){return f.setupMode(A)})}),monaco.languages.onLanguage(K,function(){_().then(function(f){return f.setupMode(te)})})},tkZS:function(wt,P,r){"use strict";r.d(P,"a",function(){return z});var I=r("YK2C"),oe=r("bN5T"),ne=r("yBOt"),N=r("34RT"),F=r("2Wy8"),U=r("pLcT"),j=function(){function _(f){if(f.autoClosingPairs?this._autoClosingPairs=f.autoClosingPairs.map(function(g){return new F.b(g)}):f.brackets?this._autoClosingPairs=f.brackets.map(function(g){return new F.b({open:g[0],close:g[1]})}):this._autoClosingPairs=[],f.__electricCharacterSupport&&f.__electricCharacterSupport.docComment){var p=f.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new F.b({open:p.open,close:p.close||""}))}this._autoCloseBefore=typeof f.autoCloseBefore=="string"?f.autoCloseBefore:_.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=f.surroundingPairs||this._autoClosingPairs}return _.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},_.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},_.shouldAutoClosePair=function(f,p,g){if(p.getTokenCount()===0)return!0;var m=p.findTokenIndexAtOffset(g-2),w=p.getStandardTokenType(m);return f.isOK(w)},_.prototype.getSurroundingPairs=function(){return this._surroundingPairs},_.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])>
|
|
`,_}(),G=r("lh12"),R=function(){function _(f){this._richEditBrackets=f}return _.prototype.getElectricCharacters=function(){var f=[];if(this._richEditBrackets)for(var p=0,g=this._richEditBrackets.brackets;p<g.length;p++)for(var m=g[p],w=0,B=m.close;w<B.length;w++){var H=B[w],re=H.charAt(H.length-1);f.push(re)}return f=f.filter(function(he,Ee,Se){return Se.indexOf(he)===Ee}),f},_.prototype.onElectricCharacter=function(f,p,g){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;var m=p.findTokenIndexAtOffset(g-1);if(Object(U.b)(p.getStandardTokenType(m)))return null;var w=this._richEditBrackets.reversedRegex,B=p.getLineContent().substring(0,g-1)+f,H=G.a.findPrevBracketInRange(w,1,B,0,B.length);if(!H)return null;var re=B.substring(H.startColumn-1,H.endColumn-1).toLowerCase(),he=this._richEditBrackets.textIsOpenBracket[re];if(he)return null;var Ee=p.getActualLineContentBefore(H.startColumn-1);return/^\s*$/.test(Ee)?{matchOpenBracket:re}:null},_}(),E=function(){function _(f){this._indentationRules=f}return _.prototype.shouldIncrease=function(f){return!!(this._indentationRules&&(this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(f)))},_.prototype.shouldDecrease=function(f){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(f))},_.prototype.shouldIndentNextLine=function(f){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(f))},_.prototype.shouldIgnore=function(f){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(f))},_.prototype.getIndentMetadata=function(f){var p=0;return this.shouldIncrease(f)&&(p+=1),this.shouldDecrease(f)&&(p+=2),this.shouldIndentNextLine(f)&&(p+=4),this.shouldIgnore(f)&&(p+=8),p},_}(),x=r("QqjT"),K=function(){function _(f){var p=this;f=f||{},f.brackets=f.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],f.brackets.forEach(function(g){var m=_._createOpenBracketRegExp(g[0]),w=_._createCloseBracketRegExp(g[1]);m&&w&&p._brackets.push({open:g[0],openRegExp:m,close:g[1],closeRegExp:w})}),this._regExpRules=f.onEnterRules||[]}return _.prototype.onEnter=function(f,p,g,m){if(f>=3)for(var w=0,B=this._regExpRules.length;w<B;w++){var H=this._regExpRules[w],re=[{reg:H.beforeText,text:g},{reg:H.afterText,text:m},{reg:H.oneLineAboveText,text:p}].every(function(Ee){return Ee.reg?Ee.reg.test(Ee.text):!0});if(re)return H.action}if(f>=2&&(g.length>0&&m.length>0))for(var w=0,B=this._brackets.length;w<B;w++){var he=this._brackets[w];if(he.openRegExp.test(g)&&he.closeRegExp.test(m))return{indentAction:F.a.IndentOutdent}}if(f>=2&&g.length>0)for(var w=0,B=this._brackets.length;w<B;w++){var he=this._brackets[w];if(he.openRegExp.test(g))return{indentAction:F.a.Indent}}return null},_._createOpenBracketRegExp=function(f){var p=ne.p(f);return/\B/.test(p.charAt(0))||(p="\\b"+p),p+="\\s*$",_._safeRegExp(p)},_._createCloseBracketRegExp=function(f){var p=ne.p(f);return/\B/.test(p.charAt(p.length-1))||(p=p+"\\b"),p="^\\s*"+p,_._safeRegExp(p)},_._safeRegExp=function(f){try{return new RegExp(f)}catch(p){return Object(x.e)(p),null}},_}(),D=function(){function _(f,p,g){this._languageIdentifier=f,this._brackets=null,this._electricCharacter=null;var m=null;p&&(m=p._conf),this._conf=_._mergeConf(m,g),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new K(this._conf):null,this.comments=_._handleComments(this._conf),this.characterPair=new j(this._conf),this.wordDefinition=this._conf.wordPattern||N.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new E(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}return Object.defineProperty(_.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new G.b(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new R(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),_.prototype.onEnter=function(f,p,g,m){return this._onEnterSupport?this._onEnterSupport.onEnter(f,p,g,m):null},_._mergeConf=function(f,p){return{comments:f?p.comments||f.comments:p.comments,brackets:f?p.brackets||f.brackets:p.brackets,wordPattern:f?p.wordPattern||f.wordPattern:p.wordPattern,indentationRules:f?p.indentationRules||f.indentationRules:p.indentationRules,onEnterRules:f?p.onEnterRules||f.onEnterRules:p.onEnterRules,autoClosingPairs:f?p.autoClosingPairs||f.autoClosingPairs:p.autoClosingPairs,surroundingPairs:f?p.surroundingPairs||f.surroundingPairs:p.surroundingPairs,autoCloseBefore:f?p.autoCloseBefore||f.autoCloseBefore:p.autoCloseBefore,folding:f?p.folding||f.folding:p.folding,__electricCharacterSupport:f?p.__electricCharacterSupport||f.__electricCharacterSupport:p.__electricCharacterSupport}},_._handleComments=function(f){var p=f.comments;if(!p)return null;var g={};if(p.lineComment&&(g.lineCommentToken=p.lineComment),p.blockComment){var m=p.blockComment,w=m[0],B=m[1];g.blockCommentStartToken=w,g.blockCommentEndToken=B}return g},_}(),A=function(){function _(f){this.languageIdentifier=f}return _}(),te=function(){function _(){this._entries=new Map,this._onDidChange=new I.a,this.onDidChange=this._onDidChange.event}return _.prototype.register=function(f,p){var g=this,m=this._getRichEditSupport(f.id),w=new D(f,m,p);return this._entries.set(f.id,w),this._onDidChange.fire(new A(f)),Object(oe.h)(function(){g._entries.get(f.id)===w&&(g._entries.set(f.id,m),g._onDidChange.fire(new A(f)))})},_.prototype._getRichEditSupport=function(f){return this._entries.get(f)},_.prototype._getElectricCharacterSupport=function(f){var p=this._getRichEditSupport(f);return p&&p.electricCharacter||null},_.prototype.getElectricCharacters=function(f){var p=this._getElectricCharacterSupport(f);return p?p.getElectricCharacters():[]},_.prototype.onElectricCharacter=function(f,p,g){var m=Object(U.a)(p,g-1),w=this._getElectricCharacterSupport(m.languageId);return w?w.onElectricCharacter(f,m,g-m.firstCharOffset):null},_.prototype.getComments=function(f){var p=this._getRichEditSupport(f);return p&&p.comments||null},_.prototype._getCharacterPairSupport=function(f){var p=this._getRichEditSupport(f);return p&&p.characterPair||null},_.prototype.getAutoClosingPairs=function(f){var p=this._getCharacterPairSupport(f);return p?p.getAutoClosingPairs():[]},_.prototype.getAutoCloseBeforeSet=function(f){var p=this._getCharacterPairSupport(f);return p?p.getAutoCloseBeforeSet():j.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},_.prototype.getSurroundingPairs=function(f){var p=this._getCharacterPairSupport(f);return p?p.getSurroundingPairs():[]},_.prototype.shouldAutoClosePair=function(f,p,g){var m=Object(U.a)(p,g-1);return j.shouldAutoClosePair(f,m,g-m.firstCharOffset)},_.prototype.getWordDefinition=function(f){var p=this._getRichEditSupport(f);return p?Object(N.c)(p.wordDefinition||null):Object(N.c)(null)},_.prototype.getFoldingRules=function(f){var p=this._getRichEditSupport(f);return p?p.foldingRules:{}},_.prototype.getIndentRulesSupport=function(f){var p=this._getRichEditSupport(f);return p&&p.indentRulesSupport||null},_.prototype.getPrecedingValidLine=function(f,p,g){var m=f.getLanguageIdAtPosition(p,0);if(p>1){var w=void 0,B=-1;for(w=p-1;w>=1;w--){if(f.getLanguageIdAtPosition(w,0)!==m)return B;var H=f.getLineContent(w);if(g.shouldIgnore(H)||/^\s+$/.test(H)||H===""){B=w;continue}return w}}return-1},_.prototype.getInheritIndentForLine=function(f,p,g,m){if(m===void 0&&(m=!0),f<4)return null;var w=this.getIndentRulesSupport(p.getLanguageIdentifier().id);if(!w)return null;if(g<=1)return{indentation:"",action:null};var B=this.getPrecedingValidLine(p,g,w);if(B<0)return null;if(B<1)return{indentation:"",action:null};var H=p.getLineContent(B);if(w.shouldIncrease(H)||w.shouldIndentNextLine(H))return{indentation:ne.t(H),action:F.a.Indent,line:B};if(w.shouldDecrease(H))return{indentation:ne.t(H),action:null,line:B};if(B===1)return{indentation:ne.t(p.getLineContent(B)),action:null,line:B};var re=B-1,he=w.getIndentMetadata(p.getLineContent(re));if(!(he&(1|2))&&he&4){for(var Ee=0,Se=re-1;Se>0;Se--){if(w.shouldIndentNextLine(p.getLineContent(Se)))continue;Ee=Se;break}return{indentation:ne.t(p.getLineContent(Ee+1)),action:null,line:Ee+1}}if(m)return{indentation:ne.t(p.getLineContent(B)),action:null,line:B};for(var Se=B;Se>0;Se--){var q=p.getLineContent(Se);if(w.shouldIncrease(q))return{indentation:ne.t(q),action:F.a.Indent,line:Se};if(w.shouldIndentNextLine(q)){for(var Ee=0,Z=Se-1;Z>0;Z--){if(w.shouldIndentNextLine(p.getLineContent(Se)))continue;Ee=Z;break}return{indentation:ne.t(p.getLineContent(Ee+1)),action:null,line:Ee+1}}else if(w.shouldDecrease(q))return{indentation:ne.t(q),action:null,line:Se}}return{indentation:ne.t(p.getLineContent(1)),action:null,line:1}},_.prototype.getGoodIndentForLine=function(f,p,g,m,w){if(f<4)return null;var B=this._getRichEditSupport(g);if(!B)return null;var H=this.getIndentRulesSupport(g);if(!H)return null;var re=this.getInheritIndentForLine(f,p,m),he=p.getLineContent(m);if(re){var Ee=re.line;if(Ee!==void 0){var Se=B.onEnter(f,"",p.getLineContent(Ee),"");if(Se){var q=ne.t(p.getLineContent(Ee));return Se.removeText&&(q=q.substring(0,q.length-Se.removeText)),Se.indentAction===F.a.Indent||Se.indentAction===F.a.IndentOutdent?q=w.shiftIndent(q):Se.indentAction===F.a.Outdent&&(q=w.unshiftIndent(q)),H.shouldDecrease(he)&&(q=w.unshiftIndent(q)),Se.appendText&&(q+=Se.appendText),ne.t(q)}}return H.shouldDecrease(he)?re.action===F.a.Indent?re.indentation:w.unshiftIndent(re.indentation):re.action===F.a.Indent?w.shiftIndent(re.indentation):re.indentation}return null},_.prototype.getIndentForEnter=function(f,p,g,m){if(f<4)return null;p.forceTokenization(g.startLineNumber);var w=p.getLineTokens(g.startLineNumber),B=Object(U.a)(w,g.startColumn-1),H=B.getLineContent(),re=!1,he;B.firstCharOffset>0&&w.getLanguageId(0)!==B.languageId?(re=!0,he=H.substr(0,g.startColumn-1-B.firstCharOffset)):he=w.getLineContent().substring(0,g.startColumn-1);var Ee;if(g.isEmpty())Ee=H.substr(g.startColumn-1-B.firstCharOffset);else{var Se=this.getScopedLineTokens(p,g.endLineNumber,g.endColumn);Ee=Se.getLineContent().substr(g.endColumn-1-B.firstCharOffset)}var q=this.getIndentRulesSupport(B.languageId);if(!q)return null;var Z=he,ce=ne.t(he),Me={getLineTokens:function(ie){return p.getLineTokens(ie)},getLanguageIdentifier:function(){return p.getLanguageIdentifier()},getLanguageIdAtPosition:function(ie,J){return p.getLanguageIdAtPosition(ie,J)},getLineContent:function(ie){return ie===g.startLineNumber?Z:p.getLineContent(ie)}},Ve=ne.t(w.getLineContent()),_e=this.getInheritIndentForLine(f,Me,g.startLineNumber+1);if(!_e){var ue=re?Ve:ce;return{beforeEnter:ue,afterEnter:ue}}var se=re?Ve:_e.indentation;return _e.action===F.a.Indent&&(se=m.shiftIndent(se)),q.shouldDecrease(Ee)&&(se=m.unshiftIndent(se)),{beforeEnter:re?Ve:ce,afterEnter:se}},_.prototype.getIndentActionForType=function(f,p,g,m,w){if(f<4)return null;var B=this.getScopedLineTokens(p,g.startLineNumber,g.startColumn),H=this.getIndentRulesSupport(B.languageId);if(!H)return null;var re=B.getLineContent(),he=re.substr(0,g.startColumn-1-B.firstCharOffset),Ee;if(g.isEmpty())Ee=re.substr(g.startColumn-1-B.firstCharOffset);else{var Se=this.getScopedLineTokens(p,g.endLineNumber,g.endColumn);Ee=Se.getLineContent().substr(g.endColumn-1-B.firstCharOffset)}if(!H.shouldDecrease(he+Ee)&&H.shouldDecrease(he+m+Ee)){var q=this.getInheritIndentForLine(f,p,g.startLineNumber,!1);if(!q)return null;var Z=q.indentation;return q.action!==F.a.Indent&&(Z=w.unshiftIndent(Z)),Z}return null},_.prototype.getIndentMetadata=function(f,p){var g=this.getIndentRulesSupport(f.getLanguageIdentifier().id);return g?p<1||p>f.getLineCount()?null:g.getIndentMetadata(f.getLineContent(p)):null},_.prototype.getEnterAction=function(f,p,g){var m=this.getScopedLineTokens(p,g.startLineNumber,g.startColumn),w=this._getRichEditSupport(m.languageId);if(!w)return null;var B=m.getLineContent(),H=B.substr(0,g.startColumn-1-m.firstCharOffset),re;if(g.isEmpty())re=B.substr(g.startColumn-1-m.firstCharOffset);else{var he=this.getScopedLineTokens(p,g.endLineNumber,g.endColumn);re=he.getLineContent().substr(g.endColumn-1-m.firstCharOffset)}var Ee="";if(g.startLineNumber>1&&m.firstCharOffset===0){var Se=this.getScopedLineTokens(p,g.startLineNumber-1);Se.languageId===m.languageId&&(Ee=Se.getLineContent())}var q=w.onEnter(f,Ee,H,re);if(!q)return null;var Z=q.indentAction,ce=q.appendText,Me=q.removeText||0;ce||(Z===F.a.Indent||Z===F.a.IndentOutdent?ce=" ":ce="");var Ve=this.getIndentationAtPosition(p,g.startLineNumber,g.startColumn);return Me&&(Ve=Ve.substring(0,Ve.length-Me)),{indentAction:Z,appendText:ce,removeText:Me,indentation:Ve}},_.prototype.getIndentationAtPosition=function(f,p,g){var m=f.getLineContent(p),w=ne.t(m);return w.length>g-1&&(w=w.substring(0,g-1)),w},_.prototype.getScopedLineTokens=function(f,p,g){f.forceTokenization(p);var m=f.getLineTokens(p),w=typeof g=="undefined"?f.getLineMaxColumn(p)-1:g-1;return Object(U.a)(m,w)},_.prototype.getBracketsSupport=function(f){var p=this._getRichEditSupport(f);return p&&p.brackets||null},_}(),z=new te},ttZe:function(wt,P,r){"use strict";r.d(P,"b",function(){return N}),r.d(P,"a",function(){return F});var I=Object.prototype.hasOwnProperty;function oe(U){var j=[];for(var G in U)I.call(U,G)&&j.push(U[G]);return j}function ne(U){for(var j in U)if(I.call(U,j))return U[j];return}function N(U,j){var G=function(K){if(I.call(U,K)){var D=j({key:K,value:U[K]},function(){delete U[K]});if(D===!1)return{value:void 0}}};for(var R in U){var E=G(R);if(typeof E=="object")return E.value}}var F=function(){function U(){this.map=new Map}return U.prototype.add=function(j,G){var R=this.map.get(j);R||(R=new Set,this.map.set(j,R)),R.add(G)},U.prototype.delete=function(j,G){var R=this.map.get(j);if(!R)return;R.delete(G),R.size===0&&this.map.delete(j)},U.prototype.forEach=function(j,G){var R=this.map.get(j);if(!R)return;R.forEach(G)},U}()},ukhG:function(wt,P,r){"use strict";r.d(P,"a",function(){return N});var I=r("bN5T"),oe=r("fF8p"),ne=function(){var F=function(j,G){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,E){R.__proto__=E}||function(R,E){for(var x in E)E.hasOwnProperty(x)&&(R[x]=E[x])},F(j,G)};return function(U,j){F(U,j);function G(){this.constructor=U}U.prototype=j===null?Object.create(j):(G.prototype=j.prototype,new G)}}(),N=function(F){ne(U,F);function U(j,G,R){var E=F.call(this)||this;return E.referenceDomElement=j,E.changeCallback=R,E.width=-1,E.height=-1,E.mutationObserver=null,E.windowSizeListener=null,E.measureReferenceDomElement(!1,G),E}return U.prototype.dispose=function(){this.stopObserving(),F.prototype.dispose.call(this)},U.prototype.getWidth=function(){return this.width},U.prototype.getHeight=function(){return this.height},U.prototype.startObserving=function(){var j=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver(function(){return j._onDidMutate()}),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=oe.i(window,"resize",function(){return j._onDidResizeWindow()}))},U.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},U.prototype.observe=function(j){this.measureReferenceDomElement(!0,j)},U.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},U.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},U.prototype.measureReferenceDomElement=function(j,G){var R=0,E=0;G?(R=G.width,E=G.height):this.referenceDomElement&&(R=this.referenceDomElement.clientWidth,E=this.referenceDomElement.clientHeight),R=Math.max(5,R),E=Math.max(5,E),(this.width!==R||this.height!==E)&&(this.width=R,this.height=E,j&&this.changeCallback())},U}(I.a)},umZW:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return r.e(230).then(r.bind(null,"l1w1"))}})},ux5E:function(wt,P,r){},v4mt:function(wt,P,r){"use strict";r.d(P,"a",function(){return I}),r.d(P,"b",function(){return oe}),r.d(P,"c",function(){return ne});var I=function(){function N(F,U,j){this.offset=F|0,this.type=U,this.language=j}return N.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},N}(),oe=function(){function N(F,U){this.tokens=F,this.endState=U}return N}(),ne=function(){function N(F,U){this.tokens=F,this.endState=U}return N}()},vN4a:function(wt,P,r){"use strict";r.d(P,"a",function(){return I});var I=function(){function oe(ne,N,F,U,j,G){this.id=ne,this.label=N,this.alias=F,this._precondition=U,this._run=j,this._contextKeyService=G}return oe.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},oe.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var ne=this._run();return ne||Promise.resolve(void 0)},oe}()},vQ3m:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("codeEditorService")},vqGt:function(wt,P,r){"use strict";r.d(P,"q",function(){return D}),r.d(P,"x",function(){return A}),r.d(P,"C",function(){return te}),r.d(P,"B",function(){return z}),r.d(P,"D",function(){return p}),r.d(P,"m",function(){return m}),r.d(P,"A",function(){return B}),r.d(P,"t",function(){return H}),r.d(P,"u",function(){return re}),r.d(P,"d",function(){return he}),r.d(P,"w",function(){return Ee}),r.d(P,"o",function(){return Se}),r.d(P,"l",function(){return q}),r.d(P,"h",function(){return Z}),r.d(P,"f",function(){return ce}),r.d(P,"e",function(){return Me}),r.d(P,"p",function(){return Ve}),r.d(P,"z",function(){return _e}),r.d(P,"b",function(){return ue}),r.d(P,"a",function(){return se}),r.d(P,"g",function(){return fe}),r.d(P,"i",function(){return ie}),r.d(P,"s",function(){return J}),r.d(P,"r",function(){return me}),r.d(P,"c",function(){return ye}),r.d(P,"v",function(){return ze}),r.d(P,"n",function(){return tt}),r.d(P,"k",function(){return _t}),r.d(P,"j",function(){return Pt}),r.d(P,"y",function(){return Xt});var I=r("yqRl"),oe=r("zOJ8"),ne=r("w9Cd"),N=r("YK2C"),F=r("bN5T"),U=r("sN1w");function j(Ke,Xe,Ze,Ye){if(Array.isArray(Ke)){for(var ke=0,$e=0,we=Ke;$e<we.length;$e++){var k=we[$e],ee=j(k,Xe,Ze,Ye);if(ee===10)return ee;ee>ke&&(ke=ee)}return ke}else{if(typeof Ke=="string")return Ye?Ke==="*"?5:Ke===Ze?10:0:0;if(Ke){var Pe=Ke.language,ve=Ke.pattern,Te=Ke.scheme,Ie=Ke.hasAccessToAllModels;if(!Ye&&!Ie)return 0;var ke=0;if(Te)if(Te===Xe.scheme)ke=10;else if(Te==="*")ke=5;else return 0;if(Pe)if(Pe===Ze)ke=10;else if(Pe==="*")ke=Math.max(ke,5);else return 0;if(ve)if(ve===Xe.fsPath||Object(U.a)(ve,Xe.fsPath))ke=10;else return 0;return ke}else return 0}}var G=r("1Ylb");function R(Ke){return typeof Ke=="string"?!1:Array.isArray(Ke)?Ke.every(R):!!Ke.exclusive}var E=function(){function Ke(){this._clock=0,this._entries=[],this._onDidChange=new N.a}return Object.defineProperty(Ke.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Ke.prototype.register=function(Xe,Ze){var Ye=this,ke={selector:Xe,provider:Ze,_score:-1,_time:this._clock++};return this._entries.push(ke),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(F.h)(function(){if(ke){var $e=Ye._entries.indexOf(ke);$e>=0&&(Ye._entries.splice($e,1),Ye._lastCandidate=void 0,Ye._onDidChange.fire(Ye._entries.length),ke=void 0)}})},Ke.prototype.has=function(Xe){return this.all(Xe).length>0},Ke.prototype.all=function(Xe){if(!Xe)return[];this._updateScores(Xe);for(var Ze=[],Ye=0,ke=this._entries;Ye<ke.length;Ye++){var $e=ke[Ye];$e._score>0&&Ze.push($e.provider)}return Ze},Ke.prototype.ordered=function(Xe){var Ze=[];return this._orderedForEach(Xe,function(Ye){return Ze.push(Ye.provider)}),Ze},Ke.prototype.orderedGroups=function(Xe){var Ze=[],Ye,ke;return this._orderedForEach(Xe,function($e){Ye&&ke===$e._score?Ye.push($e.provider):(ke=$e._score,Ye=[$e.provider],Ze.push(Ye))}),Ze},Ke.prototype._orderedForEach=function(Xe,Ze){if(!Xe)return;this._updateScores(Xe);for(var Ye=0,ke=this._entries;Ye<ke.length;Ye++){var $e=ke[Ye];$e._score>0&&Ze($e)}},Ke.prototype._updateScores=function(Xe){var Ze={uri:Xe.uri.toString(),language:Xe.getLanguageIdentifier().language};if(this._lastCandidate&&this._lastCandidate.language===Ze.language&&this._lastCandidate.uri===Ze.uri)return;this._lastCandidate=Ze;for(var Ye=0,ke=this._entries;Ye<ke.length;Ye++){var $e=ke[Ye];if($e._score=j($e.selector,Xe.uri,Xe.getLanguageIdentifier().language,Object(G.b)(Xe)),R($e.selector)&&$e._score>0){for(var we=0,k=this._entries;we<k.length;we++){var ee=k[we];ee._score=0}$e._score=1e3;break}}this._entries.sort(Ke._compareByScoreAndTime)},Ke._compareByScoreAndTime=function(Xe,Ze){return Xe._score<Ze._score?1:Xe._score>Ze._score?-1:Xe._time<Ze._time?1:Xe._time>Ze._time?-1:0},Ke}(),x=r("emi/"),K=function(){function Ke(){this._map=new Map,this._promises=new Map,this._onDidChange=new N.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}return Ke.prototype.fire=function(Xe){this._onDidChange.fire({changedLanguages:Xe,changedColorMap:!1})},Ke.prototype.register=function(Xe,Ze){var Ye=this;return this._map.set(Xe,Ze),this.fire([Xe]),Object(F.h)(function(){if(Ye._map.get(Xe)!==Ze)return;Ye._map.delete(Xe),Ye.fire([Xe])})},Ke.prototype.registerPromise=function(Xe,Ze){var Ye=this,ke=null,$e=!1;return this._promises.set(Xe,Ze.then(function(we){if(Ye._promises.delete(Xe),$e||!we)return;ke=Ye.register(Xe,we)})),Object(F.h)(function(){$e=!0,ke&&ke.dispose()})},Ke.prototype.getPromise=function(Xe){var Ze=this,Ye=this.get(Xe);if(Ye)return Promise.resolve(Ye);var ke=this._promises.get(Xe);return ke?ke.then(function($e){return Ze.get(Xe)}):null},Ke.prototype.get=function(Xe){return Object(I.o)(this._map.get(Xe))},Ke.prototype.setColorMap=function(Xe){this._colorMap=Xe,this._onDidChange.fire({changedLanguages:Object(x.d)(this._map),changedColorMap:!0})},Ke.prototype.getColorMap=function(){return this._colorMap},Ke.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},Ke}(),D=function(){function Ke(Xe,Ze){this.language=Xe,this.id=Ze}return Ke}(),A=function(){function Ke(){}return Ke.getLanguageId=function(Xe){return(Xe&255)>>>0},Ke.getTokenType=function(Xe){return(Xe&1792)>>>8},Ke.getFontStyle=function(Xe){return(Xe&14336)>>>11},Ke.getForeground=function(Xe){return(Xe&8372224)>>>14},Ke.getBackground=function(Xe){return(Xe&4286578688)>>>23},Ke.getClassNameFromMetadata=function(Xe){var Ze=this.getForeground(Xe),Ye="mtk"+Ze,ke=this.getFontStyle(Xe);return ke&1&&(Ye+=" mtki"),ke&2&&(Ye+=" mtkb"),ke&4&&(Ye+=" mtku"),Ye},Ke.getInlineStyleFromMetadata=function(Xe,Ze){var Ye=this.getForeground(Xe),ke=this.getFontStyle(Xe),$e="color: "+Ze[Ye]+";";return ke&1&&($e+="font-style: italic;"),ke&2&&($e+="font-weight: bold;"),ke&4&&($e+="text-decoration: underline;"),$e},Ke}(),te=function(){var Ke=Object.create(null);return Ke[0]="method",Ke[1]="function",Ke[2]="constructor",Ke[3]="field",Ke[4]="variable",Ke[5]="class",Ke[6]="struct",Ke[7]="interface",Ke[8]="module",Ke[9]="property",Ke[10]="event",Ke[11]="operator",Ke[12]="unit",Ke[13]="value",Ke[14]="constant",Ke[15]="enum",Ke[16]="enum-member",Ke[17]="keyword",Ke[25]="snippet",Ke[18]="text",Ke[19]="color",Ke[20]="file",Ke[21]="reference",Ke[22]="customcolor",Ke[23]="folder",Ke[24]="type-parameter",function(Xe){return Ke[Xe]||"property"}}(),z=function(){var Ke=Object.create(null);return Ke.method=0,Ke.function=1,Ke.constructor=2,Ke.field=3,Ke.variable=4,Ke.class=5,Ke.struct=6,Ke.interface=7,Ke.module=8,Ke.property=9,Ke.event=10,Ke.operator=11,Ke.unit=12,Ke.value=13,Ke.constant=14,Ke.enum=15,Ke["enum-member"]=16,Ke.enumMember=16,Ke.keyword=17,Ke.snippet=25,Ke.text=18,Ke.color=19,Ke.file=20,Ke.reference=21,Ke.customcolor=22,Ke.folder=23,Ke["type-parameter"]=24,Ke.typeParameter=24,function(Xe,Ze){var Ye=Ke[Xe];return typeof Ye=="undefined"&&!Ze&&(Ye=9),Ye}}(),_;(function(Ke){Ke[Ke.Invoke=1]="Invoke",Ke[Ke.TriggerCharacter=2]="TriggerCharacter",Ke[Ke.ContentChange=3]="ContentChange"})(_||(_={}));var f;(function(Ke){Ke[Ke.Text=0]="Text",Ke[Ke.Read=1]="Read",Ke[Ke.Write=2]="Write"})(f||(f={}));function p(Ke){return Ke&&oe.a.isUri(Ke.uri)&&ne.a.isIRange(Ke.range)&&(ne.a.isIRange(Ke.originSelectionRange)||ne.a.isIRange(Ke.targetSelectionRange))}var g;(function(Ke){var Xe=new Map;Xe.set("file",0),Xe.set("module",1),Xe.set("namespace",2),Xe.set("package",3),Xe.set("class",4),Xe.set("method",5),Xe.set("property",6),Xe.set("field",7),Xe.set("constructor",8),Xe.set("enum",9),Xe.set("interface",10),Xe.set("function",11),Xe.set("variable",12),Xe.set("constant",13),Xe.set("string",14),Xe.set("number",15),Xe.set("boolean",16),Xe.set("array",17),Xe.set("object",18),Xe.set("key",19),Xe.set("null",20),Xe.set("enum-member",21),Xe.set("struct",22),Xe.set("event",23),Xe.set("operator",24),Xe.set("type-parameter",25);var Ze=new Map;Ze.set(0,"file"),Ze.set(1,"module"),Ze.set(2,"namespace"),Ze.set(3,"package"),Ze.set(4,"class"),Ze.set(5,"method"),Ze.set(6,"property"),Ze.set(7,"field"),Ze.set(8,"constructor"),Ze.set(9,"enum"),Ze.set(10,"interface"),Ze.set(11,"function"),Ze.set(12,"variable"),Ze.set(13,"constant"),Ze.set(14,"string"),Ze.set(15,"number"),Ze.set(16,"boolean"),Ze.set(17,"array"),Ze.set(18,"object"),Ze.set(19,"key"),Ze.set(20,"null"),Ze.set(21,"enum-member"),Ze.set(22,"struct"),Ze.set(23,"event"),Ze.set(24,"operator"),Ze.set(25,"type-parameter");function Ye(we){return Xe.get(we)}Ke.fromString=Ye;function ke(we){return Ze.get(we)}Ke.toString=ke;function $e(we,k){return"codicon "+(k?"inline":"block")+" codicon-symbol-"+(Ze.get(we)||"property")}Ke.toCssClassName=$e})(g||(g={}));var m=function(){function Ke(Xe){this.value=Xe}return Ke.Comment=new Ke("comment"),Ke.Imports=new Ke("imports"),Ke.Region=new Ke("region"),Ke}(),w;(function(Ke){function Xe(Ze){return Object(I.i)(Ze)&&(Boolean(Ze.newUri)||Boolean(Ze.oldUri))}Ke.is=Xe})(w||(w={}));var B;(function(Ke){function Xe(Ze){return Object(I.i)(Ze)&&oe.a.isUri(Ze.resource)&&Object(I.i)(Ze.edit)}Ke.is=Xe})(B||(B={}));var H=new E,re=new E,he=new E,Ee=new E,Se=new E,q=new E,Z=new E,ce=new E,Me=new E,Ve=new E,_e=new E,ue=new E,se=new E,fe=new E,ie=new E,J=new E,me=new E,ye=new E,ze=new E,tt=new E,_t=new E,Pt=new E,Xt=new K},w9Cd:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("V0RK"),oe=function(){function ne(N,F,U,j){N>U||N===U&&F>j?(this.startLineNumber=U,this.startColumn=j,this.endLineNumber=N,this.endColumn=F):(this.startLineNumber=N,this.startColumn=F,this.endLineNumber=U,this.endColumn=j)}return ne.prototype.isEmpty=function(){return ne.isEmpty(this)},ne.isEmpty=function(N){return N.startLineNumber===N.endLineNumber&&N.startColumn===N.endColumn},ne.prototype.containsPosition=function(N){return ne.containsPosition(this,N)},ne.containsPosition=function(N,F){return F.lineNumber<N.startLineNumber||F.lineNumber>N.endLineNumber||F.lineNumber===N.startLineNumber&&F.column<N.startColumn?!1:!(F.lineNumber===N.endLineNumber&&F.column>N.endColumn)},ne.prototype.containsRange=function(N){return ne.containsRange(this,N)},ne.containsRange=function(N,F){return F.startLineNumber<N.startLineNumber||F.endLineNumber<N.startLineNumber||(F.startLineNumber>N.endLineNumber||F.endLineNumber>N.endLineNumber||F.startLineNumber===N.startLineNumber&&F.startColumn<N.startColumn)?!1:!(F.endLineNumber===N.endLineNumber&&F.endColumn>N.endColumn)},ne.prototype.strictContainsRange=function(N){return ne.strictContainsRange(this,N)},ne.strictContainsRange=function(N,F){return F.startLineNumber<N.startLineNumber||F.endLineNumber<N.startLineNumber||(F.startLineNumber>N.endLineNumber||F.endLineNumber>N.endLineNumber||F.startLineNumber===N.startLineNumber&&F.startColumn<=N.startColumn)?!1:!(F.endLineNumber===N.endLineNumber&&F.endColumn>=N.endColumn)},ne.prototype.plusRange=function(N){return ne.plusRange(this,N)},ne.plusRange=function(N,F){var U,j,G,R;return F.startLineNumber<N.startLineNumber?(U=F.startLineNumber,j=F.startColumn):F.startLineNumber===N.startLineNumber?(U=F.startLineNumber,j=Math.min(F.startColumn,N.startColumn)):(U=N.startLineNumber,j=N.startColumn),F.endLineNumber>N.endLineNumber?(G=F.endLineNumber,R=F.endColumn):F.endLineNumber===N.endLineNumber?(G=F.endLineNumber,R=Math.max(F.endColumn,N.endColumn)):(G=N.endLineNumber,R=N.endColumn),new ne(U,j,G,R)},ne.prototype.intersectRanges=function(N){return ne.intersectRanges(this,N)},ne.intersectRanges=function(N,F){var U=N.startLineNumber,j=N.startColumn,G=N.endLineNumber,R=N.endColumn,E=F.startLineNumber,x=F.startColumn,K=F.endLineNumber,D=F.endColumn;return U<E?(U=E,j=x):U===E&&(j=Math.max(j,x)),G>K?(G=K,R=D):G===K&&(R=Math.min(R,D)),U>G||U===G&&j>R?null:new ne(U,j,G,R)},ne.prototype.equalsRange=function(N){return ne.equalsRange(this,N)},ne.equalsRange=function(N,F){return!!N&&!!F&&N.startLineNumber===F.startLineNumber&&N.startColumn===F.startColumn&&N.endLineNumber===F.endLineNumber&&N.endColumn===F.endColumn},ne.prototype.getEndPosition=function(){return new I.a(this.endLineNumber,this.endColumn)},ne.prototype.getStartPosition=function(){return new I.a(this.startLineNumber,this.startColumn)},ne.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},ne.prototype.setEndPosition=function(N,F){return new ne(this.startLineNumber,this.startColumn,N,F)},ne.prototype.setStartPosition=function(N,F){return new ne(N,F,this.endLineNumber,this.endColumn)},ne.prototype.collapseToStart=function(){return ne.collapseToStart(this)},ne.collapseToStart=function(N){return new ne(N.startLineNumber,N.startColumn,N.startLineNumber,N.startColumn)},ne.fromPositions=function(N,F){return F===void 0&&(F=N),new ne(N.lineNumber,N.column,F.lineNumber,F.column)},ne.lift=function(N){return N?new ne(N.startLineNumber,N.startColumn,N.endLineNumber,N.endColumn):null},ne.isIRange=function(N){return N&&typeof N.startLineNumber=="number"&&typeof N.startColumn=="number"&&typeof N.endLineNumber=="number"&&typeof N.endColumn=="number"},ne.areIntersectingOrTouching=function(N,F){return N.endLineNumber<F.startLineNumber||N.endLineNumber===F.startLineNumber&&N.endColumn<F.startColumn?!1:!(F.endLineNumber<N.startLineNumber||F.endLineNumber===N.startLineNumber&&F.endColumn<N.startColumn)},ne.areIntersecting=function(N,F){return N.endLineNumber<F.startLineNumber||N.endLineNumber===F.startLineNumber&&N.endColumn<=F.startColumn?!1:!(F.endLineNumber<N.startLineNumber||F.endLineNumber===N.startLineNumber&&F.endColumn<=N.startColumn)},ne.compareRangesUsingStarts=function(N,F){if(N&&F){var U=N.startLineNumber|0,j=F.startLineNumber|0;if(U===j){var G=N.startColumn|0,R=F.startColumn|0;if(G===R){var E=N.endLineNumber|0,x=F.endLineNumber|0;if(E===x){var K=N.endColumn|0,D=F.endColumn|0;return K-D}return E-x}return G-R}return U-j}var A=N?1:0,te=F?1:0;return A-te},ne.compareRangesUsingEnds=function(N,F){return N.endLineNumber===F.endLineNumber?N.endColumn===F.endColumn?N.startLineNumber===F.startLineNumber?N.startColumn-F.startColumn:N.startLineNumber-F.startLineNumber:N.endColumn-F.endColumn:N.endLineNumber-F.endLineNumber},ne.spansMultipleLines=function(N){return N.endLineNumber>N.startLineNumber},ne}()},wzUm:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe}),r.d(P,"b",function(){return N}),r.d(P,"c",function(){return U});var I=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function oe(j){return j.replace(I,function(G,R){return R?G:"\\"+G})}var ne=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function N(j){return j.replace(ne,function(G){return"\\"+G})}var F=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function U(j){return j.replace(F,function(G,R,E,x,K){return R?"$("+E+")":'<span class="codicon codicon-'+x+(K?" codicon-animation-"+K:"")+'"></span>'})}},x67c:function(wt,P,r){},x6KX:function(wt,P,r){"use strict";r.r(P);var I=r("g9ht"),oe=r("Whdu"),ne=r("2GBI"),N=r("w9Cd"),F=function(){function E(x,K){this._selection=x,this._isMovingLeft=K,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}return E.prototype.getEditOperations=function(x,K){var D=this._selection;if(this._selectionId=K.trackSelection(D),D.startLineNumber!==D.endLineNumber)return;if(this._isMovingLeft&&D.startColumn===0)return;if(!this._isMovingLeft&&D.endColumn===x.getLineMaxColumn(D.startLineNumber))return;var A=D.selectionStartLineNumber,te=x.getLineContent(A),z,_,f;this._isMovingLeft?(z=te.substring(0,D.startColumn-2),_=te.substring(D.startColumn-1,D.endColumn-1),f=te.substring(D.startColumn-2,D.startColumn-1)+te.substring(D.endColumn-1)):(z=te.substring(0,D.startColumn-1)+te.substring(D.endColumn-1,D.endColumn),_=te.substring(D.startColumn-1,D.endColumn-1),f=te.substring(D.endColumn));var p=z+_+f;K.addEditOperation(new N.a(A,1,A,x.getLineMaxColumn(A)),null),K.addEditOperation(new N.a(A,1,A,1),p),this._cutStartIndex=D.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+D.endColumn-D.startColumn,this._moved=!0},E.prototype.computeCursorState=function(x,K){var D=K.getTrackedSelection(this._selectionId);return this._moved&&(D=D.setStartPosition(D.startLineNumber,this._cutStartIndex),D=D.setEndPosition(D.startLineNumber,this._cutEndIndex)),D},E}(),U=function(){var E=function(K,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,te){A.__proto__=te}||function(A,te){for(var z in te)te.hasOwnProperty(z)&&(A[z]=te[z])},E(K,D)};return function(x,K){E(x,K);function D(){this.constructor=x}x.prototype=K===null?Object.create(K):(D.prototype=K.prototype,new D)}}(),j=function(E){U(x,E);function x(K,D){var A=E.call(this,D)||this;return A.left=K,A}return x.prototype.run=function(K,D){if(!D.hasModel())return;for(var A=[],te=D.getSelections(),z=0,_=te;z<_.length;z++){var f=_[z];A.push(new F(f,this.left))}D.pushUndoStop(),D.executeCommands(this.id,A),D.pushUndoStop()},x}(oe.b),G=function(E){U(x,E);function x(){return E.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:I.a("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:ne.a.writable})||this}return x}(j),R=function(E){U(x,E);function x(){return E.call(this,!1,{id:"editor.action.moveCarretRightAction",label:I.a("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:ne.a.writable})||this}return x}(j);Object(oe.f)(G),Object(oe.f)(R)},xFpO:function(wt,P,r){"use strict";r.r(P),r.d(P,"win32",function(){return p}),r.d(P,"posix",function(){return g}),r.d(P,"normalize",function(){return m}),r.d(P,"join",function(){return w}),r.d(P,"relative",function(){return B}),r.d(P,"dirname",function(){return H}),r.d(P,"basename",function(){return re}),r.d(P,"extname",function(){return he}),r.d(P,"sep",function(){return Ee});var I=r("ARnQ"),oe=function(){var Se=function(Z,ce){return Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,Ve){Me.__proto__=Ve}||function(Me,Ve){for(var _e in Ve)Ve.hasOwnProperty(_e)&&(Me[_e]=Ve[_e])},Se(Z,ce)};return function(q,Z){Se(q,Z);function ce(){this.constructor=q}q.prototype=Z===null?Object.create(Z):(ce.prototype=Z.prototype,new ce)}}(),ne=65,N=97,F=90,U=122,j=46,G=47,R=92,E=58,x=63,K=function(Se){oe(q,Se);function q(Z,ce,Me){var Ve=this,_e;typeof ce=="string"&&ce.indexOf("not ")===0?(_e="must not be",ce=ce.replace(/^not /,"")):_e="must be";var ue=Z.indexOf(".")!==-1?"property":"argument",se='The "'+Z+'" '+ue+" "+_e+" of type "+ce;return se+=". Received type "+typeof Me,Ve=Se.call(this,se)||this,Ve.code="ERR_INVALID_ARG_TYPE",Ve}return q}(Error);function D(Se,q){if(typeof Se!="string")throw new K(q,"string",Se)}function A(Se){return Se===G||Se===R}function te(Se){return Se===G}function z(Se){return Se>=ne&&Se<=F||Se>=N&&Se<=U}function _(Se,q,Z,ce){for(var Me="",Ve=0,_e=-1,ue=0,se,fe=0;fe<=Se.length;++fe){if(fe<Se.length)se=Se.charCodeAt(fe);else{if(ce(se))break;se=G}if(ce(se)){if(!(_e===fe-1||ue===1))if(_e!==fe-1&&ue===2){if(Me.length<2||Ve!==2||Me.charCodeAt(Me.length-1)!==j||Me.charCodeAt(Me.length-2)!==j){if(Me.length>2){var ie=Me.lastIndexOf(Z);ie===-1?(Me="",Ve=0):(Me=Me.slice(0,ie),Ve=Me.length-1-Me.lastIndexOf(Z)),_e=fe,ue=0;continue}else if(Me.length===2||Me.length===1){Me="",Ve=0,_e=fe,ue=0;continue}}q&&(Me.length>0?Me+=Z+"..":Me="..",Ve=2)}else Me.length>0?Me+=Z+Se.slice(_e+1,fe):Me=Se.slice(_e+1,fe),Ve=fe-_e-1;_e=fe,ue=0}else se===j&&ue!==-1?++ue:ue=-1}return Me}function f(Se,q){var Z=q.dir||q.root,ce=q.base||(q.name||"")+(q.ext||"");return Z?Z===q.root?Z+ce:Z+Se+ce:ce}var p={resolve:function(){for(var q=[],Z=0;Z<arguments.length;Z++)q[Z]=arguments[Z];for(var ce="",Me="",Ve=!1,_e=q.length-1;_e>=-1;_e--){var ue=void 0;if(_e>=0?ue=q[_e]:ce?(ue=I.b["="+ce]||I.a(),(ue===void 0||ue.slice(0,3).toLowerCase()!==ce.toLowerCase()+"\\")&&(ue=ce+"\\")):ue=I.a(),D(ue,"path"),ue.length===0)continue;var se=ue.length,fe=0,ie="",J=!1,me=ue.charCodeAt(0);if(se>1)if(A(me))if(J=!0,A(ue.charCodeAt(1))){for(var ye=2,ze=ye;ye<se&&!A(ue.charCodeAt(ye));++ye);if(ye<se&&ye!==ze){var tt=ue.slice(ze,ye);for(ze=ye;ye<se&&A(ue.charCodeAt(ye));++ye);if(ye<se&&ye!==ze){for(ze=ye;ye<se&&!A(ue.charCodeAt(ye));++ye);ye===se?(ie="\\\\"+tt+"\\"+ue.slice(ze),fe=ye):ye!==ze&&(ie="\\\\"+tt+"\\"+ue.slice(ze,ye),fe=ye)}}}else fe=1;else z(me)&&(ue.charCodeAt(1)===E&&(ie=ue.slice(0,2),fe=2,se>2&&(A(ue.charCodeAt(2))&&(J=!0,fe=3))));else A(me)&&(fe=1,J=!0);if(ie.length>0&&ce.length>0&&ie.toLowerCase()!==ce.toLowerCase())continue;if(ce.length===0&&ie.length>0&&(ce=ie),Ve||(Me=ue.slice(fe)+"\\"+Me,Ve=J),ce.length>0&&Ve)break}return Me=_(Me,!Ve,"\\",A),ce+(Ve?"\\":"")+Me||"."},normalize:function(q){D(q,"path");var Z=q.length;if(Z===0)return".";var ce=0,Me,Ve=!1,_e=q.charCodeAt(0);if(Z>1)if(A(_e))if(Ve=!0,A(q.charCodeAt(1))){for(var ue=2,se=ue;ue<Z&&!A(q.charCodeAt(ue));++ue);if(ue<Z&&ue!==se){var fe=q.slice(se,ue);for(se=ue;ue<Z&&A(q.charCodeAt(ue));++ue);if(ue<Z&&ue!==se){for(se=ue;ue<Z&&!A(q.charCodeAt(ue));++ue);if(ue===Z)return"\\\\"+fe+"\\"+q.slice(se)+"\\";ue!==se&&(Me="\\\\"+fe+"\\"+q.slice(se,ue),ce=ue)}}}else ce=1;else z(_e)&&(q.charCodeAt(1)===E&&(Me=q.slice(0,2),ce=2,Z>2&&(A(q.charCodeAt(2))&&(Ve=!0,ce=3))));else if(A(_e))return"\\";var ie;return ce<Z?ie=_(q.slice(ce),!Ve,"\\",A):ie="",ie.length===0&&!Ve&&(ie="."),ie.length>0&&A(q.charCodeAt(Z-1))&&(ie+="\\"),Me===void 0?Ve?ie.length>0?"\\"+ie:"\\":ie.length>0?ie:"":Ve?ie.length>0?Me+"\\"+ie:Me+"\\":ie.length>0?Me+ie:Me},isAbsolute:function(q){D(q,"path");var Z=q.length;if(Z===0)return!1;var ce=q.charCodeAt(0);return A(ce)?!0:!!(z(ce)&&(Z>2&&q.charCodeAt(1)===E&&A(q.charCodeAt(2))))},join:function(){for(var q=[],Z=0;Z<arguments.length;Z++)q[Z]=arguments[Z];if(q.length===0)return".";for(var ce,Me,Ve=0;Ve<q.length;++Ve){var _e=q[Ve];D(_e,"path"),_e.length>0&&(ce===void 0?ce=Me=_e:ce+="\\"+_e)}if(ce===void 0)return".";var ue=!0,se=0;if(typeof Me=="string"&&A(Me.charCodeAt(0))){++se;var fe=Me.length;fe>1&&(A(Me.charCodeAt(1))&&(++se,fe>2&&(A(Me.charCodeAt(2))?++se:ue=!1)))}if(ue){for(;se<ce.length&&A(ce.charCodeAt(se));++se);se>=2&&(ce="\\"+ce.slice(se))}return p.normalize(ce)},relative:function(q,Z){if(D(q,"from"),D(Z,"to"),q===Z)return"";var ce=p.resolve(q),Me=p.resolve(Z);if(ce===Me)return"";if(q=ce.toLowerCase(),Z=Me.toLowerCase(),q===Z)return"";for(var Ve=0;Ve<q.length&&!(q.charCodeAt(Ve)!==R);++Ve);for(var _e=q.length;_e-1>Ve&&!(q.charCodeAt(_e-1)!==R);--_e);for(var ue=_e-Ve,se=0;se<Z.length&&!(Z.charCodeAt(se)!==R);++se);for(var fe=Z.length;fe-1>se&&!(Z.charCodeAt(fe-1)!==R);--fe);for(var ie=fe-se,J=ue<ie?ue:ie,me=-1,ye=0;ye<=J;++ye){if(ye===J){if(ie>J){if(Z.charCodeAt(se+ye)===R)return Me.slice(se+ye+1);if(ye===2)return Me.slice(se+ye)}ue>J&&(q.charCodeAt(Ve+ye)===R?me=ye:ye===2&&(me=3));break}var ze=q.charCodeAt(Ve+ye),tt=Z.charCodeAt(se+ye);if(ze!==tt)break;ze===R&&(me=ye)}if(ye!==J&&me===-1)return Me;var _t="";for(me===-1&&(me=0),ye=Ve+me+1;ye<=_e;++ye)(ye===_e||q.charCodeAt(ye)===R)&&(_t.length===0?_t+="..":_t+="\\..");return _t.length>0?_t+Me.slice(se+me,fe):(se+=me,Me.charCodeAt(se)===R&&++se,Me.slice(se,fe))},toNamespacedPath:function(q){if(typeof q!="string")return q;if(q.length===0)return"";var Z=p.resolve(q);if(Z.length>=3){if(Z.charCodeAt(0)===R){if(Z.charCodeAt(1)===R){var ce=Z.charCodeAt(2);if(ce!==x&&ce!==j)return"\\\\?\\UNC\\"+Z.slice(2)}}else if(z(Z.charCodeAt(0))&&(Z.charCodeAt(1)===E&&Z.charCodeAt(2)===R))return"\\\\?\\"+Z}return q},dirname:function(q){D(q,"path");var Z=q.length;if(Z===0)return".";var ce=-1,Me=-1,Ve=!0,_e=0,ue=q.charCodeAt(0);if(Z>1)if(A(ue)){if(ce=_e=1,A(q.charCodeAt(1))){for(var se=2,fe=se;se<Z&&!A(q.charCodeAt(se));++se);if(se<Z&&se!==fe){for(fe=se;se<Z&&A(q.charCodeAt(se));++se);if(se<Z&&se!==fe){for(fe=se;se<Z&&!A(q.charCodeAt(se));++se);if(se===Z)return q;se!==fe&&(ce=_e=se+1)}}}}else z(ue)&&(q.charCodeAt(1)===E&&(ce=_e=2,Z>2&&(A(q.charCodeAt(2))&&(ce=_e=3))));else if(A(ue))return q;for(var ie=Z-1;ie>=_e;--ie)if(A(q.charCodeAt(ie))){if(!Ve){Me=ie;break}}else Ve=!1;if(Me===-1){if(ce===-1)return".";Me=ce}return q.slice(0,Me)},basename:function(q,Z){Z!==void 0&&D(Z,"ext"),D(q,"path");var ce=0,Me=-1,Ve=!0,_e;if(q.length>=2){var ue=q.charCodeAt(0);z(ue)&&(q.charCodeAt(1)===E&&(ce=2))}if(Z!==void 0&&Z.length>0&&Z.length<=q.length){if(Z.length===q.length&&Z===q)return"";var se=Z.length-1,fe=-1;for(_e=q.length-1;_e>=ce;--_e){var ie=q.charCodeAt(_e);if(A(ie)){if(!Ve){ce=_e+1;break}}else fe===-1&&(Ve=!1,fe=_e+1),se>=0&&(ie===Z.charCodeAt(se)?--se===-1&&(Me=_e):(se=-1,Me=fe))}return ce===Me?Me=fe:Me===-1&&(Me=q.length),q.slice(ce,Me)}else{for(_e=q.length-1;_e>=ce;--_e)if(A(q.charCodeAt(_e))){if(!Ve){ce=_e+1;break}}else Me===-1&&(Ve=!1,Me=_e+1);return Me===-1?"":q.slice(ce,Me)}},extname:function(q){D(q,"path");var Z=0,ce=-1,Me=0,Ve=-1,_e=!0,ue=0;q.length>=2&&q.charCodeAt(1)===E&&z(q.charCodeAt(0))&&(Z=Me=2);for(var se=q.length-1;se>=Z;--se){var fe=q.charCodeAt(se);if(A(fe)){if(!_e){Me=se+1;break}continue}Ve===-1&&(_e=!1,Ve=se+1),fe===j?ce===-1?ce=se:ue!==1&&(ue=1):ce!==-1&&(ue=-1)}return ce===-1||Ve===-1||ue===0||ue===1&&ce===Ve-1&&ce===Me+1?"":q.slice(ce,Ve)},format:function(q){if(q===null||typeof q!="object")throw new K("pathObject","Object",q);return f("\\",q)},parse:function(q){D(q,"path");var Z={root:"",dir:"",base:"",ext:"",name:""};if(q.length===0)return Z;var ce=q.length,Me=0,Ve=q.charCodeAt(0);if(ce>1){if(A(Ve)){if(Me=1,A(q.charCodeAt(1))){for(var _e=2,ue=_e;_e<ce&&!A(q.charCodeAt(_e));++_e);if(_e<ce&&_e!==ue){for(ue=_e;_e<ce&&A(q.charCodeAt(_e));++_e);if(_e<ce&&_e!==ue){for(ue=_e;_e<ce&&!A(q.charCodeAt(_e));++_e);_e===ce?Me=_e:_e!==ue&&(Me=_e+1)}}}}else if(z(Ve)&&q.charCodeAt(1)===E)if(Me=2,ce>2){if(A(q.charCodeAt(2))){if(ce===3)return Z.root=Z.dir=q,Z;Me=3}}else return Z.root=Z.dir=q,Z}else if(A(Ve))return Z.root=Z.dir=q,Z;Me>0&&(Z.root=q.slice(0,Me));for(var se=-1,fe=Me,ie=-1,J=!0,me=q.length-1,ye=0;me>=Me;--me){if(Ve=q.charCodeAt(me),A(Ve)){if(!J){fe=me+1;break}continue}ie===-1&&(J=!1,ie=me+1),Ve===j?se===-1?se=me:ye!==1&&(ye=1):se!==-1&&(ye=-1)}return se===-1||ie===-1||ye===0||ye===1&&se===ie-1&&se===fe+1?ie!==-1&&(Z.base=Z.name=q.slice(fe,ie)):(Z.name=q.slice(fe,se),Z.base=q.slice(fe,ie),Z.ext=q.slice(se,ie)),fe>0&&fe!==Me?Z.dir=q.slice(0,fe-1):Z.dir=Z.root,Z},sep:"\\",delimiter:";",win32:null,posix:null},g={resolve:function(){for(var q=[],Z=0;Z<arguments.length;Z++)q[Z]=arguments[Z];for(var ce="",Me=!1,Ve=q.length-1;Ve>=-1&&!Me;Ve--){var _e=void 0;if(Ve>=0?_e=q[Ve]:_e=I.a(),D(_e,"path"),_e.length===0)continue;ce=_e+"/"+ce,Me=_e.charCodeAt(0)===G}return ce=_(ce,!Me,"/",te),Me?ce.length>0?"/"+ce:"/":ce.length>0?ce:"."},normalize:function(q){if(D(q,"path"),q.length===0)return".";var Z=q.charCodeAt(0)===G,ce=q.charCodeAt(q.length-1)===G;return q=_(q,!Z,"/",te),q.length===0&&!Z&&(q="."),q.length>0&&ce&&(q+="/"),Z?"/"+q:q},isAbsolute:function(q){return D(q,"path"),q.length>0&&q.charCodeAt(0)===G},join:function(){for(var q=[],Z=0;Z<arguments.length;Z++)q[Z]=arguments[Z];if(q.length===0)return".";for(var ce,Me=0;Me<q.length;++Me){var Ve=arguments[Me];D(Ve,"path"),Ve.length>0&&(ce===void 0?ce=Ve:ce+="/"+Ve)}return ce===void 0?".":g.normalize(ce)},relative:function(q,Z){if(D(q,"from"),D(Z,"to"),q===Z)return"";if(q=g.resolve(q),Z=g.resolve(Z),q===Z)return"";for(var ce=1;ce<q.length&&!(q.charCodeAt(ce)!==G);++ce);for(var Me=q.length,Ve=Me-ce,_e=1;_e<Z.length&&!(Z.charCodeAt(_e)!==G);++_e);for(var ue=Z.length,se=ue-_e,fe=Ve<se?Ve:se,ie=-1,J=0;J<=fe;++J){if(J===fe){if(se>fe){if(Z.charCodeAt(_e+J)===G)return Z.slice(_e+J+1);if(J===0)return Z.slice(_e+J)}else Ve>fe&&(q.charCodeAt(ce+J)===G?ie=J:J===0&&(ie=0));break}var me=q.charCodeAt(ce+J),ye=Z.charCodeAt(_e+J);if(me!==ye)break;me===G&&(ie=J)}var ze="";for(J=ce+ie+1;J<=Me;++J)(J===Me||q.charCodeAt(J)===G)&&(ze.length===0?ze+="..":ze+="/..");return ze.length>0?ze+Z.slice(_e+ie):(_e+=ie,Z.charCodeAt(_e)===G&&++_e,Z.slice(_e))},toNamespacedPath:function(q){return q},dirname:function(q){if(D(q,"path"),q.length===0)return".";for(var Z=q.charCodeAt(0)===G,ce=-1,Me=!0,Ve=q.length-1;Ve>=1;--Ve)if(q.charCodeAt(Ve)===G){if(!Me){ce=Ve;break}}else Me=!1;return ce===-1?Z?"/":".":Z&&ce===1?"//":q.slice(0,ce)},basename:function(q,Z){Z!==void 0&&D(Z,"ext"),D(q,"path");var ce=0,Me=-1,Ve=!0,_e;if(Z!==void 0&&Z.length>0&&Z.length<=q.length){if(Z.length===q.length&&Z===q)return"";var ue=Z.length-1,se=-1;for(_e=q.length-1;_e>=0;--_e){var fe=q.charCodeAt(_e);if(fe===G){if(!Ve){ce=_e+1;break}}else se===-1&&(Ve=!1,se=_e+1),ue>=0&&(fe===Z.charCodeAt(ue)?--ue===-1&&(Me=_e):(ue=-1,Me=se))}return ce===Me?Me=se:Me===-1&&(Me=q.length),q.slice(ce,Me)}else{for(_e=q.length-1;_e>=0;--_e)if(q.charCodeAt(_e)===G){if(!Ve){ce=_e+1;break}}else Me===-1&&(Ve=!1,Me=_e+1);return Me===-1?"":q.slice(ce,Me)}},extname:function(q){D(q,"path");for(var Z=-1,ce=0,Me=-1,Ve=!0,_e=0,ue=q.length-1;ue>=0;--ue){var se=q.charCodeAt(ue);if(se===G){if(!Ve){ce=ue+1;break}continue}Me===-1&&(Ve=!1,Me=ue+1),se===j?Z===-1?Z=ue:_e!==1&&(_e=1):Z!==-1&&(_e=-1)}return Z===-1||Me===-1||_e===0||_e===1&&Z===Me-1&&Z===ce+1?"":q.slice(Z,Me)},format:function(q){if(q===null||typeof q!="object")throw new K("pathObject","Object",q);return f("/",q)},parse:function(q){D(q,"path");var Z={root:"",dir:"",base:"",ext:"",name:""};if(q.length===0)return Z;var ce=q.charCodeAt(0)===G,Me;ce?(Z.root="/",Me=1):Me=0;for(var Ve=-1,_e=0,ue=-1,se=!0,fe=q.length-1,ie=0;fe>=Me;--fe){var J=q.charCodeAt(fe);if(J===G){if(!se){_e=fe+1;break}continue}ue===-1&&(se=!1,ue=fe+1),J===j?Ve===-1?Ve=fe:ie!==1&&(ie=1):Ve!==-1&&(ie=-1)}return Ve===-1||ue===-1||ie===0||ie===1&&Ve===ue-1&&Ve===_e+1?ue!==-1&&(_e===0&&ce?Z.base=Z.name=q.slice(1,ue):Z.base=Z.name=q.slice(_e,ue)):(_e===0&&ce?(Z.name=q.slice(1,Ve),Z.base=q.slice(1,ue)):(Z.name=q.slice(_e,Ve),Z.base=q.slice(_e,ue)),Z.ext=q.slice(Ve,ue)),_e>0?Z.dir=q.slice(0,_e-1):ce&&(Z.dir="/"),Z},sep:"/",delimiter:":",win32:null,posix:null};g.win32=p.win32=p,g.posix=p.posix=g;var m=I.c==="win32"?p.normalize:g.normalize,w=I.c==="win32"?p.join:g.join,B=I.c==="win32"?p.relative:g.relative,H=I.c==="win32"?p.dirname:g.dirname,re=I.c==="win32"?p.basename:g.basename,he=I.c==="win32"?p.extname:g.extname,Ee=I.c==="win32"?p.sep:g.sep},xv8E:function(wt,P,r){"use strict";r.r(P),r.d(P,"CancellationTokenSource",function(){return fu}),r.d(P,"Emitter",function(){return pu}),r.d(P,"KeyCode",function(){return gu}),r.d(P,"KeyMod",function(){return mu}),r.d(P,"Position",function(){return vu}),r.d(P,"Range",function(){return yu}),r.d(P,"Selection",function(){return bu}),r.d(P,"SelectionDirection",function(){return Cu}),r.d(P,"MarkerSeverity",function(){return _u}),r.d(P,"MarkerTag",function(){return Eu}),r.d(P,"Uri",function(){return Su}),r.d(P,"Token",function(){return wu}),r.d(P,"editor",function(){return Lu}),r.d(P,"languages",function(){return Du});var I=r("juCB"),oe=r("zh89"),ne=r("l+zK"),N=r("YK2C"),F=r("Qun0"),U=r("zOJ8"),j=r("V0RK"),G=r("w9Cd"),R=r("F5bH"),E=r("v4mt"),x;(function(s){s[s.Unknown=0]="Unknown",s[s.Disabled=1]="Disabled",s[s.Enabled=2]="Enabled"})(x||(x={}));var K;(function(s){s[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet"})(K||(K={}));var D;(function(s){s[s.Method=0]="Method",s[s.Function=1]="Function",s[s.Constructor=2]="Constructor",s[s.Field=3]="Field",s[s.Variable=4]="Variable",s[s.Class=5]="Class",s[s.Struct=6]="Struct",s[s.Interface=7]="Interface",s[s.Module=8]="Module",s[s.Property=9]="Property",s[s.Event=10]="Event",s[s.Operator=11]="Operator",s[s.Unit=12]="Unit",s[s.Value=13]="Value",s[s.Constant=14]="Constant",s[s.Enum=15]="Enum",s[s.EnumMember=16]="EnumMember",s[s.Keyword=17]="Keyword",s[s.Text=18]="Text",s[s.Color=19]="Color",s[s.File=20]="File",s[s.Reference=21]="Reference",s[s.Customcolor=22]="Customcolor",s[s.Folder=23]="Folder",s[s.TypeParameter=24]="TypeParameter",s[s.Snippet=25]="Snippet"})(D||(D={}));var A;(function(s){s[s.Deprecated=1]="Deprecated"})(A||(A={}));var te;(function(s){s[s.Invoke=0]="Invoke",s[s.TriggerCharacter=1]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(te||(te={}));var z;(function(s){s[s.EXACT=0]="EXACT",s[s.ABOVE=1]="ABOVE",s[s.BELOW=2]="BELOW"})(z||(z={}));var _;(function(s){s[s.NotSet=0]="NotSet",s[s.ContentFlush=1]="ContentFlush",s[s.RecoverFromMarkers=2]="RecoverFromMarkers",s[s.Explicit=3]="Explicit",s[s.Paste=4]="Paste",s[s.Undo=5]="Undo",s[s.Redo=6]="Redo"})(_||(_={}));var f;(function(s){s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(f||(f={}));var p;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(p||(p={}));var g;(function(s){s[s.None=0]="None",s[s.Keep=1]="Keep",s[s.Brackets=2]="Brackets",s[s.Advanced=3]="Advanced",s[s.Full=4]="Full"})(g||(g={}));var m;(function(s){s[s.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",s[s.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",s[s.accessibilitySupport=2]="accessibilitySupport",s[s.accessibilityPageSize=3]="accessibilityPageSize",s[s.ariaLabel=4]="ariaLabel",s[s.autoClosingBrackets=5]="autoClosingBrackets",s[s.autoClosingOvertype=6]="autoClosingOvertype",s[s.autoClosingQuotes=7]="autoClosingQuotes",s[s.autoIndent=8]="autoIndent",s[s.automaticLayout=9]="automaticLayout",s[s.autoSurround=10]="autoSurround",s[s.codeLens=11]="codeLens",s[s.colorDecorators=12]="colorDecorators",s[s.comments=13]="comments",s[s.contextmenu=14]="contextmenu",s[s.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",s[s.cursorBlinking=16]="cursorBlinking",s[s.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",s[s.cursorStyle=18]="cursorStyle",s[s.cursorSurroundingLines=19]="cursorSurroundingLines",s[s.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",s[s.cursorWidth=21]="cursorWidth",s[s.disableLayerHinting=22]="disableLayerHinting",s[s.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",s[s.dragAndDrop=24]="dragAndDrop",s[s.emptySelectionClipboard=25]="emptySelectionClipboard",s[s.extraEditorClassName=26]="extraEditorClassName",s[s.fastScrollSensitivity=27]="fastScrollSensitivity",s[s.find=28]="find",s[s.fixedOverflowWidgets=29]="fixedOverflowWidgets",s[s.folding=30]="folding",s[s.foldingStrategy=31]="foldingStrategy",s[s.foldingHighlight=32]="foldingHighlight",s[s.fontFamily=33]="fontFamily",s[s.fontInfo=34]="fontInfo",s[s.fontLigatures=35]="fontLigatures",s[s.fontSize=36]="fontSize",s[s.fontWeight=37]="fontWeight",s[s.formatOnPaste=38]="formatOnPaste",s[s.formatOnType=39]="formatOnType",s[s.glyphMargin=40]="glyphMargin",s[s.gotoLocation=41]="gotoLocation",s[s.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",s[s.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",s[s.hover=44]="hover",s[s.inDiffEditor=45]="inDiffEditor",s[s.letterSpacing=46]="letterSpacing",s[s.lightbulb=47]="lightbulb",s[s.lineDecorationsWidth=48]="lineDecorationsWidth",s[s.lineHeight=49]="lineHeight",s[s.lineNumbers=50]="lineNumbers",s[s.lineNumbersMinChars=51]="lineNumbersMinChars",s[s.links=52]="links",s[s.matchBrackets=53]="matchBrackets",s[s.minimap=54]="minimap",s[s.mouseStyle=55]="mouseStyle",s[s.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",s[s.mouseWheelZoom=57]="mouseWheelZoom",s[s.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",s[s.multiCursorModifier=59]="multiCursorModifier",s[s.multiCursorPaste=60]="multiCursorPaste",s[s.occurrencesHighlight=61]="occurrencesHighlight",s[s.overviewRulerBorder=62]="overviewRulerBorder",s[s.overviewRulerLanes=63]="overviewRulerLanes",s[s.parameterHints=64]="parameterHints",s[s.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",s[s.quickSuggestions=66]="quickSuggestions",s[s.quickSuggestionsDelay=67]="quickSuggestionsDelay",s[s.readOnly=68]="readOnly",s[s.renderControlCharacters=69]="renderControlCharacters",s[s.renderIndentGuides=70]="renderIndentGuides",s[s.renderFinalNewline=71]="renderFinalNewline",s[s.renderLineHighlight=72]="renderLineHighlight",s[s.renderValidationDecorations=73]="renderValidationDecorations",s[s.renderWhitespace=74]="renderWhitespace",s[s.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",s[s.roundedSelection=76]="roundedSelection",s[s.rulers=77]="rulers",s[s.scrollbar=78]="scrollbar",s[s.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",s[s.scrollBeyondLastLine=80]="scrollBeyondLastLine",s[s.selectionClipboard=81]="selectionClipboard",s[s.selectionHighlight=82]="selectionHighlight",s[s.selectOnLineNumbers=83]="selectOnLineNumbers",s[s.showFoldingControls=84]="showFoldingControls",s[s.showUnused=85]="showUnused",s[s.snippetSuggestions=86]="snippetSuggestions",s[s.smoothScrolling=87]="smoothScrolling",s[s.stopRenderingLineAfter=88]="stopRenderingLineAfter",s[s.suggest=89]="suggest",s[s.suggestFontSize=90]="suggestFontSize",s[s.suggestLineHeight=91]="suggestLineHeight",s[s.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",s[s.suggestSelection=93]="suggestSelection",s[s.tabCompletion=94]="tabCompletion",s[s.useTabStops=95]="useTabStops",s[s.wordSeparators=96]="wordSeparators",s[s.wordWrap=97]="wordWrap",s[s.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",s[s.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",s[s.wordWrapColumn=100]="wordWrapColumn",s[s.wordWrapMinified=101]="wordWrapMinified",s[s.wrappingIndent=102]="wrappingIndent",s[s.wrappingStrategy=103]="wrappingStrategy",s[s.editorClassName=104]="editorClassName",s[s.pixelRatio=105]="pixelRatio",s[s.tabFocusMode=106]="tabFocusMode",s[s.layoutInfo=107]="layoutInfo",s[s.wrappingInfo=108]="wrappingInfo"})(m||(m={}));var w;(function(s){s[s.TextDefined=0]="TextDefined",s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(w||(w={}));var B;(function(s){s[s.LF=0]="LF",s[s.CRLF=1]="CRLF"})(B||(B={}));var H;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(H||(H={}));var re;(function(s){s[s.Unknown=0]="Unknown",s[s.Backspace=1]="Backspace",s[s.Tab=2]="Tab",s[s.Enter=3]="Enter",s[s.Shift=4]="Shift",s[s.Ctrl=5]="Ctrl",s[s.Alt=6]="Alt",s[s.PauseBreak=7]="PauseBreak",s[s.CapsLock=8]="CapsLock",s[s.Escape=9]="Escape",s[s.Space=10]="Space",s[s.PageUp=11]="PageUp",s[s.PageDown=12]="PageDown",s[s.End=13]="End",s[s.Home=14]="Home",s[s.LeftArrow=15]="LeftArrow",s[s.UpArrow=16]="UpArrow",s[s.RightArrow=17]="RightArrow",s[s.DownArrow=18]="DownArrow",s[s.Insert=19]="Insert",s[s.Delete=20]="Delete",s[s.KEY_0=21]="KEY_0",s[s.KEY_1=22]="KEY_1",s[s.KEY_2=23]="KEY_2",s[s.KEY_3=24]="KEY_3",s[s.KEY_4=25]="KEY_4",s[s.KEY_5=26]="KEY_5",s[s.KEY_6=27]="KEY_6",s[s.KEY_7=28]="KEY_7",s[s.KEY_8=29]="KEY_8",s[s.KEY_9=30]="KEY_9",s[s.KEY_A=31]="KEY_A",s[s.KEY_B=32]="KEY_B",s[s.KEY_C=33]="KEY_C",s[s.KEY_D=34]="KEY_D",s[s.KEY_E=35]="KEY_E",s[s.KEY_F=36]="KEY_F",s[s.KEY_G=37]="KEY_G",s[s.KEY_H=38]="KEY_H",s[s.KEY_I=39]="KEY_I",s[s.KEY_J=40]="KEY_J",s[s.KEY_K=41]="KEY_K",s[s.KEY_L=42]="KEY_L",s[s.KEY_M=43]="KEY_M",s[s.KEY_N=44]="KEY_N",s[s.KEY_O=45]="KEY_O",s[s.KEY_P=46]="KEY_P",s[s.KEY_Q=47]="KEY_Q",s[s.KEY_R=48]="KEY_R",s[s.KEY_S=49]="KEY_S",s[s.KEY_T=50]="KEY_T",s[s.KEY_U=51]="KEY_U",s[s.KEY_V=52]="KEY_V",s[s.KEY_W=53]="KEY_W",s[s.KEY_X=54]="KEY_X",s[s.KEY_Y=55]="KEY_Y",s[s.KEY_Z=56]="KEY_Z",s[s.Meta=57]="Meta",s[s.ContextMenu=58]="ContextMenu",s[s.F1=59]="F1",s[s.F2=60]="F2",s[s.F3=61]="F3",s[s.F4=62]="F4",s[s.F5=63]="F5",s[s.F6=64]="F6",s[s.F7=65]="F7",s[s.F8=66]="F8",s[s.F9=67]="F9",s[s.F10=68]="F10",s[s.F11=69]="F11",s[s.F12=70]="F12",s[s.F13=71]="F13",s[s.F14=72]="F14",s[s.F15=73]="F15",s[s.F16=74]="F16",s[s.F17=75]="F17",s[s.F18=76]="F18",s[s.F19=77]="F19",s[s.NumLock=78]="NumLock",s[s.ScrollLock=79]="ScrollLock",s[s.US_SEMICOLON=80]="US_SEMICOLON",s[s.US_EQUAL=81]="US_EQUAL",s[s.US_COMMA=82]="US_COMMA",s[s.US_MINUS=83]="US_MINUS",s[s.US_DOT=84]="US_DOT",s[s.US_SLASH=85]="US_SLASH",s[s.US_BACKTICK=86]="US_BACKTICK",s[s.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",s[s.US_BACKSLASH=88]="US_BACKSLASH",s[s.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",s[s.US_QUOTE=90]="US_QUOTE",s[s.OEM_8=91]="OEM_8",s[s.OEM_102=92]="OEM_102",s[s.NUMPAD_0=93]="NUMPAD_0",s[s.NUMPAD_1=94]="NUMPAD_1",s[s.NUMPAD_2=95]="NUMPAD_2",s[s.NUMPAD_3=96]="NUMPAD_3",s[s.NUMPAD_4=97]="NUMPAD_4",s[s.NUMPAD_5=98]="NUMPAD_5",s[s.NUMPAD_6=99]="NUMPAD_6",s[s.NUMPAD_7=100]="NUMPAD_7",s[s.NUMPAD_8=101]="NUMPAD_8",s[s.NUMPAD_9=102]="NUMPAD_9",s[s.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",s[s.NUMPAD_ADD=104]="NUMPAD_ADD",s[s.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",s[s.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",s[s.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",s[s.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",s[s.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",s[s.ABNT_C1=110]="ABNT_C1",s[s.ABNT_C2=111]="ABNT_C2",s[s.MAX_VALUE=112]="MAX_VALUE"})(re||(re={}));var he;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(he||(he={}));var Ee;(function(s){s[s.Unnecessary=1]="Unnecessary",s[s.Deprecated=2]="Deprecated"})(Ee||(Ee={}));var Se;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(Se||(Se={}));var q;(function(s){s[s.UNKNOWN=0]="UNKNOWN",s[s.TEXTAREA=1]="TEXTAREA",s[s.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",s[s.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",s[s.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",s[s.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",s[s.CONTENT_TEXT=6]="CONTENT_TEXT",s[s.CONTENT_EMPTY=7]="CONTENT_EMPTY",s[s.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",s[s.CONTENT_WIDGET=9]="CONTENT_WIDGET",s[s.OVERVIEW_RULER=10]="OVERVIEW_RULER",s[s.SCROLLBAR=11]="SCROLLBAR",s[s.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",s[s.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(q||(q={}));var Z;(function(s){s[s.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",s[s.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",s[s.TOP_CENTER=2]="TOP_CENTER"})(Z||(Z={}));var ce;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(ce||(ce={}));var Me;(function(s){s[s.Off=0]="Off",s[s.On=1]="On",s[s.Relative=2]="Relative",s[s.Interval=3]="Interval",s[s.Custom=4]="Custom"})(Me||(Me={}));var Ve;(function(s){s[s.None=0]="None",s[s.Text=1]="Text",s[s.Blocks=2]="Blocks"})(Ve||(Ve={}));var _e;(function(s){s[s.Smooth=0]="Smooth",s[s.Immediate=1]="Immediate"})(_e||(_e={}));var ue;(function(s){s[s.Auto=1]="Auto",s[s.Hidden=2]="Hidden",s[s.Visible=3]="Visible"})(ue||(ue={}));var se;(function(s){s[s.LTR=0]="LTR",s[s.RTL=1]="RTL"})(se||(se={}));var fe;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(fe||(fe={}));var ie;(function(s){s[s.File=0]="File",s[s.Module=1]="Module",s[s.Namespace=2]="Namespace",s[s.Package=3]="Package",s[s.Class=4]="Class",s[s.Method=5]="Method",s[s.Property=6]="Property",s[s.Field=7]="Field",s[s.Constructor=8]="Constructor",s[s.Enum=9]="Enum",s[s.Interface=10]="Interface",s[s.Function=11]="Function",s[s.Variable=12]="Variable",s[s.Constant=13]="Constant",s[s.String=14]="String",s[s.Number=15]="Number",s[s.Boolean=16]="Boolean",s[s.Array=17]="Array",s[s.Object=18]="Object",s[s.Key=19]="Key",s[s.Null=20]="Null",s[s.EnumMember=21]="EnumMember",s[s.Struct=22]="Struct",s[s.Event=23]="Event",s[s.Operator=24]="Operator",s[s.TypeParameter=25]="TypeParameter"})(ie||(ie={}));var J;(function(s){s[s.Deprecated=1]="Deprecated"})(J||(J={}));var me;(function(s){s[s.Hidden=0]="Hidden",s[s.Blink=1]="Blink",s[s.Smooth=2]="Smooth",s[s.Phase=3]="Phase",s[s.Expand=4]="Expand",s[s.Solid=5]="Solid"})(me||(me={}));var ye;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(ye||(ye={}));var ze;(function(s){s[s.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",s[s.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",s[s.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",s[s.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ze||(ze={}));var tt;(function(s){s[s.None=0]="None",s[s.Same=1]="Same",s[s.Indent=2]="Indent",s[s.DeepIndent=3]="DeepIndent"})(tt||(tt={}));var _t=function(){function s(){}return s.chord=function(o,t){return Object(F.a)(o,t)},s.CtrlCmd=2048,s.Shift=1024,s.Alt=512,s.WinCtrl=256,s}();function Pt(){return{editor:void 0,languages:void 0,CancellationTokenSource:ne.b,Emitter:N.a,KeyCode:re,KeyMod:_t,Position:j.a,Range:G.a,Selection:R.a,SelectionDirection:se,MarkerSeverity:he,MarkerTag:Ee,Uri:U.a,Token:E.a}}var Xt=r("x67c"),Ke=r("vQ3m"),Xe=r("fF8p"),Ze=r("XAYP"),Ye=r("PXWS"),ke=r("Ojgo"),$e=r("67Fg"),we=r("OJ8J"),k=r("mWsY"),ee;(function(s){s[s.API=0]="API",s[s.USER=1]="USER"})(ee||(ee={}));var Pe=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},ve=function(s,o){return function(t,a){o(t,a,s)}},Te=function(s,o,t,a){function h(v){return v instanceof t?v:new t(function(V){V(v)})}return new(t||(t=Promise))(function(v,V){function be(rt){try{Ne(a.next(rt))}catch(ut){V(ut)}}function Ae(rt){try{Ne(a.throw(rt))}catch(ut){V(ut)}}function Ne(rt){rt.done?v(rt.value):h(rt.value).then(be,Ae)}Ne((a=a.apply(s,o||[])).next())})},Ie=function(s,o){var t={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},a,h,v,V;return V={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(V[Symbol.iterator]=function(){return this}),V;function be(Ne){return function(rt){return Ae([Ne,rt])}}function Ae(Ne){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,h&&(v=Ne[0]&2?h.return:Ne[0]?h.throw||((v=h.return)&&v.call(h),0):h.next)&&!(v=v.call(h,Ne[1])).done)return v;(h=0,v)&&(Ne=[Ne[0]&2,v.value]);switch(Ne[0]){case 0:case 1:v=Ne;break;case 4:return t.label++,{value:Ne[1],done:!1};case 5:t.label++,h=Ne[1],Ne=[0];continue;case 7:Ne=t.ops.pop(),t.trys.pop();continue;default:if(!(v=t.trys,v=v.length>0&&v[v.length-1])&&(Ne[0]===6||Ne[0]===2)){t=0;continue}if(Ne[0]===3&&(!v||Ne[1]>v[0]&&Ne[1]<v[3])){t.label=Ne[1];break}if(Ne[0]===6&&t.label<v[1]){t.label=v[1],v=Ne;break}if(v&&t.label<v[2]){t.label=v[2],t.ops.push(Ne);break}v[2]&&t.ops.pop(),t.trys.pop();continue}Ne=o.call(s,t)}catch(rt){Ne=[6,rt],h=0}finally{a=v=0}if(Ne[0]&5)throw Ne[1];return{value:Ne[0]?Ne[1]:void 0,done:!0}}},pe=function(){for(var s=0,o=0,t=arguments.length;o<t;o++)s+=arguments[o].length;for(var a=Array(s),h=0,o=0;o<t;o++)for(var v=arguments[o],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];return a},nt=function(){function s(o){this._commandService=o}return s.prototype.open=function(o){return Te(this,void 0,void 0,function(){var t,a;return Ie(this,function(h){switch(h.label){case 0:if(!Object(k.c)(o,ke.b.command))return[2,!1];if(typeof o=="string"&&(o=U.a.parse(o)),!we.a.getCommand(o.path))throw new Error("command '"+o.path+"' NOT known");t=[];try{t=Object(Ye.a)(decodeURIComponent(o.query))}catch(v){try{t=Object(Ye.a)(o.query)}catch(V){}}return Array.isArray(t)||(t=[t]),[4,(a=this._commandService).executeCommand.apply(a,pe([o.path],t))];case 1:return h.sent(),[2,!0]}})})},s=Pe([ve(0,we.b)],s),s}(),Et=function(){function s(o){this._editorService=o}return s.prototype.open=function(o,t){return Te(this,void 0,void 0,function(){var a,h;return Ie(this,function(v){switch(v.label){case 0:return typeof o=="string"&&(o=U.a.parse(o)),a=void 0,h=/^L?(\d+)(?:,(\d+))?/.exec(o.fragment),h&&(a={startLineNumber:parseInt(h[1]),startColumn:h[2]?parseInt(h[2]):1},o=o.with({fragment:""})),o.scheme===ke.b.file&&(o=Object($e.g)(o)),[4,this._editorService.openCodeEditor({resource:o,options:{selection:a,context:(t==null?void 0:t.fromUserGesture)?ee.USER:ee.API}},this._editorService.getFocusedCodeEditor(),t==null?void 0:t.openToSide)];case 1:return v.sent(),[2,!0]}})})},s=Pe([ve(0,Ke.a)],s),s}(),Rt=function(){function s(o,t){var a=this;this._openers=new Ze.a,this._validators=new Ze.a,this._resolvers=new Ze.a,this._externalOpener={openExternal:function(v){return Xe.Z(v),Promise.resolve(!0)}},this._openers.push({open:function(v,V){return Te(a,void 0,void 0,function(){return Ie(this,function(be){switch(be.label){case 0:return(V==null?void 0:V.openExternal)||Object(k.c)(v,ke.b.mailto)||Object(k.c)(v,ke.b.http)||Object(k.c)(v,ke.b.https)?[4,this._doOpenExternal(v,V)]:[3,2];case 1:return be.sent(),[2,!0];case 2:return[2,!1]}})})}}),this._openers.push(new nt(t)),this._openers.push(new Et(o))}return s.prototype.open=function(o,t){return Te(this,void 0,void 0,function(){var a,h,v,V,be,Ae,Ne;return Ie(this,function(rt){switch(rt.label){case 0:a=0,h=this._validators.toArray(),rt.label=1;case 1:return a<h.length?(v=h[a],[4,v.shouldOpen(o)]):[3,4];case 2:if(!rt.sent())return[2,!1];rt.label=3;case 3:return a++,[3,1];case 4:V=0,be=this._openers.toArray(),rt.label=5;case 5:return V<be.length?(Ae=be[V],[4,Ae.open(o,t)]):[3,8];case 6:if(Ne=rt.sent(),Ne)return[2,!0];rt.label=7;case 7:return V++,[3,5];case 8:return[2,!1]}})})},s.prototype.resolveExternalUri=function(o,t){return Te(this,void 0,void 0,function(){var a,h,v,V;return Ie(this,function(be){switch(be.label){case 0:a=0,h=this._resolvers.toArray(),be.label=1;case 1:return a<h.length?(v=h[a],[4,v.resolveExternalUri(o,t)]):[3,4];case 2:if(V=be.sent(),V)return[2,V];be.label=3;case 3:return a++,[3,1];case 4:return[2,{resolved:o,dispose:function(){}}]}})})},s.prototype._doOpenExternal=function(o,t){return Te(this,void 0,void 0,function(){var a,h;return Ie(this,function(v){switch(v.label){case 0:return a=typeof o=="string"?U.a.parse(o):o,[4,this.resolveExternalUri(a,t)];case 1:if(h=v.sent().resolved,typeof o=="string"&&a.toString()===h.toString())return[2,this._externalOpener.openExternal(o)];return[2,this._externalOpener.openExternal(encodeURI(h.toString(!0)))];return[2]}})})},s.prototype.dispose=function(){this._validators.clear()},s=Pe([ve(0,Ke.a),ve(1,we.b)],s),s}(),Tt=r("bndW"),Ht=r("bN5T"),Gt=r("mucJ"),rn=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Ln={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},yn=function(s){rn(o,s);function o(t,a){a===void 0&&(a={});var h=s.call(this)||this;return h._onDidUpdate=h._register(new N.a),h._editor=t,h._options=Gt.g(a,Ln,!1),h.disposed=!1,h.nextIdx=-1,h.ranges=[],h.ignoreSelectionChange=!1,h.revealFirst=Boolean(h._options.alwaysRevealFirst),h._register(h._editor.onDidDispose(function(){return h.dispose()})),h._register(h._editor.onDidUpdateDiff(function(){return h._onDiffUpdated()})),h._options.followsCaret&&h._register(h._editor.getModifiedEditor().onDidChangeCursorPosition(function(v){if(h.ignoreSelectionChange)return;h.nextIdx=-1})),h._options.alwaysRevealFirst&&h._register(h._editor.getModifiedEditor().onDidChangeModel(function(v){h.revealFirst=!0})),h._init(),h}return o.prototype._init=function(){var t=this._editor.getLineChanges();if(!t)return},o.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&(this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1)))},o.prototype._compute=function(t){var a=this;this.ranges=[],t&&t.forEach(function(h){!a._options.ignoreCharChanges&&h.charChanges?h.charChanges.forEach(function(v){a.ranges.push({rhs:!0,range:new G.a(v.modifiedStartLineNumber,v.modifiedStartColumn,v.modifiedEndLineNumber,v.modifiedEndColumn)})}):a.ranges.push({rhs:!0,range:new G.a(h.modifiedStartLineNumber,1,h.modifiedStartLineNumber,1)})}),this.ranges.sort(function(h,v){return h.range.getStartPosition().isBeforeOrEqual(v.range.getStartPosition())?-1:v.range.getStartPosition().isBeforeOrEqual(h.range.getStartPosition())?1:0}),this._onDidUpdate.fire(this)},o.prototype._initIdx=function(t){var a=!1,h=this._editor.getPosition();if(!h){this.nextIdx=0;return}for(var v=0,V=this.ranges.length;v<V&&!a;v++){var be=this.ranges[v].range;h.isBeforeOrEqual(be.getStartPosition())&&(this.nextIdx=v+(t?0:-1),a=!0)}a||(this.nextIdx=t?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)},o.prototype._move=function(t,a){if(Tt.a(!this.disposed,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;this.nextIdx===-1?this._initIdx(t):t?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var h=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var v=h.range.getStartPosition();this._editor.setPosition(v),this._editor.revealPositionInCenter(v,a)}finally{this.ignoreSelectionChange=!1}},o.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},o.prototype.next=function(t){t===void 0&&(t=0),this._move(!0,t)},o.prototype.previous=function(t){t===void 0&&(t=0),this._move(!1,t)},o.prototype.dispose=function(){s.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},o}(Ht.a),Tn=r("ssBC"),Ft=r("/W++"),pt=r("/l9y"),gt=r("vqGt"),Dt=r("cqUj"),Lt=r("mRZz"),Vt=r("AhSp"),Qt=r("dE3Z"),nn=r("QqjT"),sn=r("S7i+"),ln=r("yqRl"),En=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),On="$initialize",Pn=!1;function Gn(s){if(!sn.g)return;Pn||(Pn=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(s.message)}var Qn=function(){function s(o){this._workerId=-1,this._handler=o,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return s.prototype.setWorkerId=function(o){this._workerId=o},s.prototype.sendMessage=function(o,t){var a=this,h=String(++this._lastSentReq);return new Promise(function(v,V){a._pendingReplies[h]={resolve:v,reject:V},a._send({vsWorker:a._workerId,req:h,method:o,args:t})})},s.prototype.handleMessage=function(o){if(!o||!o.vsWorker)return;if(this._workerId!==-1&&o.vsWorker!==this._workerId)return;this._handleMessage(o)},s.prototype._handleMessage=function(o){var t=this;if(o.seq){var a=o;if(!this._pendingReplies[a.seq]){console.warn("Got reply to unknown seq");return}var h=this._pendingReplies[a.seq];if(delete this._pendingReplies[a.seq],a.err){var v=a.err;a.err.$isError&&(v=new Error,v.name=a.err.name,v.message=a.err.message,v.stack=a.err.stack),h.reject(v);return}h.resolve(a.res);return}var V=o,be=V.req,Ae=this._handler.handleMessage(V.method,V.args);Ae.then(function(Ne){t._send({vsWorker:t._workerId,seq:be,res:Ne,err:void 0})},function(Ne){Ne.detail instanceof Error&&(Ne.detail=Object(nn.g)(Ne.detail)),t._send({vsWorker:t._workerId,seq:be,res:void 0,err:Object(nn.g)(Ne)})})},s.prototype._send=function(o){var t=[];if(o.req)for(var a=o,h=0;h<a.args.length;h++)a.args[h]instanceof ArrayBuffer&&t.push(a.args[h]);else{var a=o;a.res instanceof ArrayBuffer&&t.push(a.res)}this._handler.sendMessage(o,t)},s}(),Jn=function(s){En(o,s);function o(t,a,h){var v=s.call(this)||this,V=null;v._worker=v._register(t.create("vs/base/common/worker/simpleWorker",function(rt){v._protocol.handleMessage(rt)},function(rt){V&&V(rt)})),v._protocol=new Qn({sendMessage:function(ut,bt){v._worker.postMessage(ut,bt)},handleMessage:function(ut,bt){if(typeof h[ut]!="function")return Promise.reject(new Error("Missing method "+ut+" on main thread host."));try{return Promise.resolve(h[ut].apply(h,bt))}catch(mt){return Promise.reject(mt)}}}),v._protocol.setWorkerId(v._worker.getId());var be=null;typeof self.require!="undefined"&&typeof self.require.getConfig=="function"?be=self.require.getConfig():typeof self.requirejs!="undefined"&&(be=self.requirejs.s.contexts._.config);var Ae=ln.c(h);v._onModuleLoaded=v._protocol.sendMessage(On,[v._worker.getId(),JSON.parse(JSON.stringify(be)),a,Ae]);var Ne=function(ut,bt){return v._request(ut,bt)};return v._lazyProxy=new Promise(function(rt,ut){V=ut,v._onModuleLoaded.then(function(bt){rt(ln.b(bt,Ne))},function(bt){ut(bt),v._onError("Worker failed to load "+a,bt)})}),v}return o.prototype.getProxyObject=function(){return this._lazyProxy},o.prototype._request=function(t,a){var h=this;return new Promise(function(v,V){h._onModuleLoaded.then(function(){h._protocol.sendMessage(t,a).then(v,V)},V)})},o.prototype._onError=function(t,a){console.error(t),console.info(a)},o}(Ht.a),gi=function(){function s(o,t){var a=this;this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new Qn({sendMessage:function(v,V){o(v,V)},handleMessage:function(v,V){return a._handleMessage(v,V)}})}return s.prototype.onmessage=function(o){this._protocol.handleMessage(o)},s.prototype._handleMessage=function(o,t){if(o===On)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||typeof this._requestHandler[o]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+o));try{return Promise.resolve(this._requestHandler[o].apply(this._requestHandler,t))}catch(a){return Promise.reject(a)}},s.prototype.initialize=function(o,t,a,h){var v=this;this._protocol.setWorkerId(o);var V=function(Ne,rt){return v._protocol.sendMessage(Ne,rt)},be=ln.b(h,V);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(be),Promise.resolve(ln.c(this._requestHandler))):(t&&(typeof t.baseUrl!="undefined"&&delete t.baseUrl,typeof t.paths!="undefined"&&(typeof t.paths.vs!="undefined"&&delete t.paths.vs),t.catchError=!0,self.require.config(t)),new Promise(function(Ae,Ne){self.require([a],function(rt){if(v._requestHandler=rt.create(be),!v._requestHandler){Ne(new Error("No RequestHandler!"));return}Ae(ln.c(v._requestHandler))},Ne)}))},s}();function Kn(s){return new gi(s,null)}function yi(s,o){if(sn.b.MonacoEnvironment){if(typeof sn.b.MonacoEnvironment.getWorker=="function")return sn.b.MonacoEnvironment.getWorker(s,o);if(typeof sn.b.MonacoEnvironment.getWorkerUrl=="function")return new Worker(sn.b.MonacoEnvironment.getWorkerUrl(s,o))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function mi(s){return typeof s.then=="function"}var vt=function(){function s(o,t,a,h,v){this.id=t;var V=yi("workerMain.js",a);mi(V)?this.worker=V:this.worker=Promise.resolve(V),this.postMessage(o,[]),this.worker.then(function(be){be.onmessage=function(Ae){h(Ae.data)},be.onmessageerror=v,typeof be.addEventListener=="function"&&be.addEventListener("error",v)})}return s.prototype.getId=function(){return this.id},s.prototype.postMessage=function(o,t){this.worker&&this.worker.then(function(a){return a.postMessage(o,t)})},s.prototype.dispose=function(){this.worker&&this.worker.then(function(o){return o.terminate()}),this.worker=null},s}(),Mt=function(){function s(o){this._label=o,this._webWorkerFailedBeforeError=!1}return s.prototype.create=function(o,t,a){var h=this,v=++s.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new vt(o,v,this._label||"anonymous"+v,t,function(V){Gn(V),h._webWorkerFailedBeforeError=V,a(V)})},s.LAST_WORKER_ID=0,s}(),zt=r("tkZS"),tn=r("Inmo"),Ut=function(){function s(o,t,a,h){this.originalStart=o,this.originalLength=t,this.modifiedStart=a,this.modifiedLength=h}return s.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},s.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},s}(),Sn=r("NIjb"),Rn=function(){function s(o){this.source=o}return s.prototype.getElements=function(){for(var o=this.source,t=new Int32Array(o.length),a=0,h=o.length;a<h;a++)t[a]=o.charCodeAt(a);return t},s}();function Bn(s,o,t){return new zi(new Rn(s),new Rn(o)).ComputeDiff(t).changes}var Fn=function(){function s(){}return s.Assert=function(o,t){if(!o)throw new Error(t)},s}(),ri=function(){function s(){}return s.Copy=function(o,t,a,h,v){for(var V=0;V<v;V++)a[h+V]=o[t+V]},s.Copy2=function(o,t,a,h,v){for(var V=0;V<v;V++)a[h+V]=o[t+V]},s}(),ci=function(){function s(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return s.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Ut(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824},s.prototype.AddOriginalElement=function(o,t){this.m_originalStart=Math.min(this.m_originalStart,o),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},s.prototype.AddModifiedElement=function(o,t){this.m_originalStart=Math.min(this.m_originalStart,o),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},s.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},s.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},s}(),zi=function(){function s(o,t,a){a===void 0&&(a=null),this.ContinueProcessingPredicate=a;var h=s._getElements(o),v=h[0],V=h[1],be=h[2],Ae=s._getElements(t),Ne=Ae[0],rt=Ae[1],ut=Ae[2];this._hasStrings=be&&ut,this._originalStringElements=v,this._originalElementsOrHash=V,this._modifiedStringElements=Ne,this._modifiedElementsOrHash=rt,this.m_forwardHistory=[],this.m_reverseHistory=[]}return s._isStringArray=function(o){return o.length>0&&typeof o[0]=="string"},s._getElements=function(o){var t=o.getElements();if(s._isStringArray(t)){for(var a=new Int32Array(t.length),h=0,v=t.length;h<v;h++)a[h]=Object(Sn.b)(t[h],0);return[t,a,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]},s.prototype.ElementsAreEqual=function(o,t){return this._originalElementsOrHash[o]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[o]===this._modifiedStringElements[t]:!0},s.prototype.OriginalElementsAreEqual=function(o,t){return this._originalElementsOrHash[o]!==this._originalElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[o]===this._originalStringElements[t]:!0},s.prototype.ModifiedElementsAreEqual=function(o,t){return this._modifiedElementsOrHash[o]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._modifiedStringElements[o]===this._modifiedStringElements[t]:!0},s.prototype.ComputeDiff=function(o){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,o)},s.prototype._ComputeDiff=function(o,t,a,h,v){var V=[!1],be=this.ComputeDiffRecursive(o,t,a,h,V);return v&&(be=this.PrettifyChanges(be)),{quitEarly:V[0],changes:be}},s.prototype.ComputeDiffRecursive=function(o,t,a,h,v){for(v[0]=!1;o<=t&&a<=h&&this.ElementsAreEqual(o,a);)o++,a++;for(;t>=o&&h>=a&&this.ElementsAreEqual(t,h);)t--,h--;if(o>t||a>h){var V=void 0;return a<=h?(Fn.Assert(o===t+1,"originalStart should only be one more than originalEnd"),V=[new Ut(o,0,a,h-a+1)]):o<=t?(Fn.Assert(a===h+1,"modifiedStart should only be one more than modifiedEnd"),V=[new Ut(o,t-o+1,a,0)]):(Fn.Assert(o===t+1,"originalStart should only be one more than originalEnd"),Fn.Assert(a===h+1,"modifiedStart should only be one more than modifiedEnd"),V=[]),V}var be=[0],Ae=[0],Ne=this.ComputeRecursionPoint(o,t,a,h,be,Ae,v),rt=be[0],ut=Ae[0];if(Ne!==null)return Ne;if(!v[0]){var bt=this.ComputeDiffRecursive(o,rt,a,ut,v),mt=[];return v[0]?mt=[new Ut(rt+1,t-(rt+1)+1,ut+1,h-(ut+1)+1)]:mt=this.ComputeDiffRecursive(rt+1,t,ut+1,h,v),this.ConcatenateChanges(bt,mt)}return[new Ut(o,t-o+1,a,h-a+1)]},s.prototype.WALKTRACE=function(o,t,a,h,v,V,be,Ae,Ne,rt,ut,bt,mt,$t,Kt,Wt,Bt,on){var cn=null,wn=null,_n=new ci,kn=t,Wn=a,jn=mt[0]-Wt[0]-h,ei=-1073741824,Hn=this.m_forwardHistory.length-1;do{var vn=jn+o;vn===kn||vn<Wn&&Ne[vn-1]<Ne[vn+1]?(ut=Ne[vn+1],$t=ut-jn-h,ut<ei&&_n.MarkNextChange(),ei=ut,_n.AddModifiedElement(ut+1,$t),jn=vn+1-o):(ut=Ne[vn-1]+1,$t=ut-jn-h,ut<ei&&_n.MarkNextChange(),ei=ut-1,_n.AddOriginalElement(ut,$t+1),jn=vn-1-o),Hn>=0&&(Ne=this.m_forwardHistory[Hn],o=Ne[0],kn=1,Wn=Ne.length-1)}while(--Hn>=-1);if(cn=_n.getReverseChanges(),on[0]){var ni=mt[0]+1,$n=Wt[0]+1;if(cn!==null&&cn.length>0){var pi=cn[cn.length-1];ni=Math.max(ni,pi.getOriginalEnd()),$n=Math.max($n,pi.getModifiedEnd())}wn=[new Ut(ni,bt-ni+1,$n,Kt-$n+1)]}else{_n=new ci,kn=V,Wn=be,jn=mt[0]-Wt[0]-Ae,ei=1073741824,Hn=Bt?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var vn=jn+v;vn===kn||vn<Wn&&rt[vn-1]>=rt[vn+1]?(ut=rt[vn+1]-1,$t=ut-jn-Ae,ut>ei&&_n.MarkNextChange(),ei=ut+1,_n.AddOriginalElement(ut+1,$t+1),jn=vn+1-v):(ut=rt[vn-1],$t=ut-jn-Ae,ut>ei&&_n.MarkNextChange(),ei=ut,_n.AddModifiedElement(ut+1,$t+1),jn=vn-1-v),Hn>=0&&(rt=this.m_reverseHistory[Hn],v=rt[0],kn=1,Wn=rt.length-1)}while(--Hn>=-1);wn=_n.getChanges()}return this.ConcatenateChanges(cn,wn)},s.prototype.ComputeRecursionPoint=function(o,t,a,h,v,V,be){var Ae=0,Ne=0,rt=0,ut=0,bt=0,mt=0;o--,a--,v[0]=0,V[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var $t=t-o+(h-a),Kt=$t+1,Wt=new Int32Array(Kt),Bt=new Int32Array(Kt),on=h-a,cn=t-o,wn=o-a,_n=t-h,kn=cn-on,Wn=kn%2===0;Wt[on]=o,Bt[cn]=t,be[0]=!1;for(var jn=1;jn<=$t/2+1;jn++){var ei=0,Hn=0;rt=this.ClipDiagonalBound(on-jn,jn,on,Kt),ut=this.ClipDiagonalBound(on+jn,jn,on,Kt);for(var vn=rt;vn<=ut;vn+=2){vn===rt||vn<ut&&Wt[vn-1]<Wt[vn+1]?Ae=Wt[vn+1]:Ae=Wt[vn-1]+1,Ne=Ae-(vn-on)-wn;for(var ni=Ae;Ae<t&&Ne<h&&this.ElementsAreEqual(Ae+1,Ne+1);)Ae++,Ne++;if(Wt[vn]=Ae,Ae+Ne>ei+Hn&&(ei=Ae,Hn=Ne),!Wn&&Math.abs(vn-cn)<=jn-1&&Ae>=Bt[vn])return v[0]=Ae,V[0]=Ne,ni<=Bt[vn]&&1447>0&&jn<=1447+1?this.WALKTRACE(on,rt,ut,wn,cn,bt,mt,_n,Wt,Bt,Ae,t,v,Ne,h,V,Wn,be):null}var $n=(ei-o+(Hn-a)-jn)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(ei,$n))return be[0]=!0,v[0]=ei,V[0]=Hn,$n>0&&1447>0&&jn<=1447+1?this.WALKTRACE(on,rt,ut,wn,cn,bt,mt,_n,Wt,Bt,Ae,t,v,Ne,h,V,Wn,be):(o++,a++,[new Ut(o,t-o+1,a,h-a+1)]);bt=this.ClipDiagonalBound(cn-jn,jn,cn,Kt),mt=this.ClipDiagonalBound(cn+jn,jn,cn,Kt);for(var vn=bt;vn<=mt;vn+=2){vn===bt||vn<mt&&Bt[vn-1]>=Bt[vn+1]?Ae=Bt[vn+1]-1:Ae=Bt[vn-1],Ne=Ae-(vn-cn)-_n;for(var ni=Ae;Ae>o&&Ne>a&&this.ElementsAreEqual(Ae,Ne);)Ae--,Ne--;if(Bt[vn]=Ae,Wn&&Math.abs(vn-on)<=jn&&Ae<=Wt[vn])return v[0]=Ae,V[0]=Ne,ni>=Wt[vn]&&1447>0&&jn<=1447+1?this.WALKTRACE(on,rt,ut,wn,cn,bt,mt,_n,Wt,Bt,Ae,t,v,Ne,h,V,Wn,be):null}if(jn<=1447){var pi=new Int32Array(ut-rt+2);pi[0]=on-rt+1,ri.Copy2(Wt,rt,pi,1,ut-rt+1),this.m_forwardHistory.push(pi),pi=new Int32Array(mt-bt+2),pi[0]=cn-bt+1,ri.Copy2(Bt,bt,pi,1,mt-bt+1),this.m_reverseHistory.push(pi)}}return this.WALKTRACE(on,rt,ut,wn,cn,bt,mt,_n,Wt,Bt,Ae,t,v,Ne,h,V,Wn,be)},s.prototype.PrettifyChanges=function(o){for(var t=0;t<o.length;t++){for(var a=o[t],h=t<o.length-1?o[t+1].originalStart:this._originalElementsOrHash.length,v=t<o.length-1?o[t+1].modifiedStart:this._modifiedElementsOrHash.length,V=a.originalLength>0,be=a.modifiedLength>0;a.originalStart+a.originalLength<h&&a.modifiedStart+a.modifiedLength<v&&(!V||this.OriginalElementsAreEqual(a.originalStart,a.originalStart+a.originalLength))&&(!be||this.ModifiedElementsAreEqual(a.modifiedStart,a.modifiedStart+a.modifiedLength));)a.originalStart++,a.modifiedStart++;var Ae=[null];if(t<o.length-1&&this.ChangesOverlap(o[t],o[t+1],Ae)){o[t]=Ae[0],o.splice(t+1,1),t--;continue}}for(var t=o.length-1;t>=0;t--){var a=o[t],h=0,v=0;if(t>0){var Ne=o[t-1];Ne.originalLength>0&&(h=Ne.originalStart+Ne.originalLength),Ne.modifiedLength>0&&(v=Ne.modifiedStart+Ne.modifiedLength)}for(var V=a.originalLength>0,be=a.modifiedLength>0,rt=0,ut=this._boundaryScore(a.originalStart,a.originalLength,a.modifiedStart,a.modifiedLength),bt=1;;bt++){var mt=a.originalStart-bt,$t=a.modifiedStart-bt;if(mt<h||$t<v)break;if(V&&!this.OriginalElementsAreEqual(mt,mt+a.originalLength))break;if(be&&!this.ModifiedElementsAreEqual($t,$t+a.modifiedLength))break;var Kt=this._boundaryScore(mt,a.originalLength,$t,a.modifiedLength);Kt>ut&&(ut=Kt,rt=bt)}a.originalStart-=rt,a.modifiedStart-=rt}return o},s.prototype._OriginalIsBoundary=function(o){return o<=0||o>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[o])},s.prototype._OriginalRegionIsBoundary=function(o,t){if(this._OriginalIsBoundary(o)||this._OriginalIsBoundary(o-1))return!0;if(t>0){var a=o+t;if(this._OriginalIsBoundary(a-1)||this._OriginalIsBoundary(a))return!0}return!1},s.prototype._ModifiedIsBoundary=function(o){return o<=0||o>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[o])},s.prototype._ModifiedRegionIsBoundary=function(o,t){if(this._ModifiedIsBoundary(o)||this._ModifiedIsBoundary(o-1))return!0;if(t>0){var a=o+t;if(this._ModifiedIsBoundary(a-1)||this._ModifiedIsBoundary(a))return!0}return!1},s.prototype._boundaryScore=function(o,t,a,h){var v=this._OriginalRegionIsBoundary(o,t)?1:0,V=this._ModifiedRegionIsBoundary(a,h)?1:0;return v+V},s.prototype.ConcatenateChanges=function(o,t){var a=[];if(o.length===0||t.length===0)return t.length>0?t:o;if(this.ChangesOverlap(o[o.length-1],t[0],a)){var h=new Array(o.length+t.length-1);return ri.Copy(o,0,h,0,o.length-1),h[o.length-1]=a[0],ri.Copy(t,1,h,o.length,t.length-1),h}else{var h=new Array(o.length+t.length);return ri.Copy(o,0,h,0,o.length),ri.Copy(t,0,h,o.length,t.length),h}},s.prototype.ChangesOverlap=function(o,t,a){if(Fn.Assert(o.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Fn.Assert(o.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),o.originalStart+o.originalLength>=t.originalStart||o.modifiedStart+o.modifiedLength>=t.modifiedStart){var h=o.originalStart,v=o.originalLength,V=o.modifiedStart,be=o.modifiedLength;return o.originalStart+o.originalLength>=t.originalStart&&(v=t.originalStart+t.originalLength-o.originalStart),o.modifiedStart+o.modifiedLength>=t.modifiedStart&&(be=t.modifiedStart+t.modifiedLength-o.modifiedStart),a[0]=new Ut(h,v,V,be),!0}else return a[0]=null,!1},s.prototype.ClipDiagonalBound=function(o,t,a,h){if(o>=0&&o<h)return o;var v=a,V=h-a-1,be=t%2===0;if(o<0){var Ae=v%2===0;return be===Ae?0:1}else{var Ne=V%2===0;return be===Ne?h-1:h-2}},s}(),oo=r("ywU6"),Zn=r("yBOt"),Ii=3;function Si(s,o,t,a){var h=new zi(s,o,t);return h.ComputeDiff(a)}var ji=function(){function s(o){for(var t=[],a=[],h=0,v=o.length;h<v;h++)t[h]=Bi(o[h],1),a[h]=vi(o[h],1);this.lines=o,this._startColumns=t,this._endColumns=a}return s.prototype.getElements=function(){for(var o=[],t=0,a=this.lines.length;t<a;t++)o[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return o},s.prototype.getStartLineNumber=function(o){return o+1},s.prototype.getEndLineNumber=function(o){return o+1},s.prototype.createCharSequence=function(o,t,a){for(var h=[],v=[],V=[],be=0,Ae=t;Ae<=a;Ae++)for(var Ne=this.lines[Ae],rt=o?this._startColumns[Ae]:1,ut=o?this._endColumns[Ae]:Ne.length+1,bt=rt;bt<ut;bt++)h[be]=Ne.charCodeAt(bt-1),v[be]=Ae+1,V[be]=bt,be++;return new Un(h,v,V)},s}(),Un=function(){function s(o,t,a){this._charCodes=o,this._lineNumbers=t,this._columns=a}return s.prototype.getElements=function(){return this._charCodes},s.prototype.getStartLineNumber=function(o){return this._lineNumbers[o]},s.prototype.getStartColumn=function(o){return this._columns[o]},s.prototype.getEndLineNumber=function(o){return this._lineNumbers[o]},s.prototype.getEndColumn=function(o){return this._columns[o]+1},s}(),Ci=function(){function s(o,t,a,h,v,V,be,Ae){this.originalStartLineNumber=o,this.originalStartColumn=t,this.originalEndLineNumber=a,this.originalEndColumn=h,this.modifiedStartLineNumber=v,this.modifiedStartColumn=V,this.modifiedEndLineNumber=be,this.modifiedEndColumn=Ae}return s.createFromDiffChange=function(o,t,a){var h,v,V,be,Ae,Ne,rt,ut;return o.originalLength===0?(h=0,v=0,V=0,be=0):(h=t.getStartLineNumber(o.originalStart),v=t.getStartColumn(o.originalStart),V=t.getEndLineNumber(o.originalStart+o.originalLength-1),be=t.getEndColumn(o.originalStart+o.originalLength-1)),o.modifiedLength===0?(Ae=0,Ne=0,rt=0,ut=0):(Ae=a.getStartLineNumber(o.modifiedStart),Ne=a.getStartColumn(o.modifiedStart),rt=a.getEndLineNumber(o.modifiedStart+o.modifiedLength-1),ut=a.getEndColumn(o.modifiedStart+o.modifiedLength-1)),new s(h,v,V,be,Ae,Ne,rt,ut)},s}();function Wi(s){if(s.length<=1)return s;for(var o=[s[0]],t=o[0],a=1,h=s.length;a<h;a++){var v=s[a],V=v.originalStart-(t.originalStart+t.originalLength),be=v.modifiedStart-(t.modifiedStart+t.modifiedLength),Ae=Math.min(V,be);Ae<Ii?(t.originalLength=v.originalStart+v.originalLength-t.originalStart,t.modifiedLength=v.modifiedStart+v.modifiedLength-t.modifiedStart):(o.push(v),t=v)}return o}var Ti=function(){function s(o,t,a,h,v){this.originalStartLineNumber=o,this.originalEndLineNumber=t,this.modifiedStartLineNumber=a,this.modifiedEndLineNumber=h,this.charChanges=v}return s.createFromDiffResult=function(o,t,a,h,v,V,be){var Ae,Ne,rt,ut,bt=void 0;if(t.originalLength===0?(Ae=a.getStartLineNumber(t.originalStart)-1,Ne=0):(Ae=a.getStartLineNumber(t.originalStart),Ne=a.getEndLineNumber(t.originalStart+t.originalLength-1)),t.modifiedLength===0?(rt=h.getStartLineNumber(t.modifiedStart)-1,ut=0):(rt=h.getStartLineNumber(t.modifiedStart),ut=h.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),V&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&v()){var mt=a.createCharSequence(o,t.originalStart,t.originalStart+t.originalLength-1),$t=h.createCharSequence(o,t.modifiedStart,t.modifiedStart+t.modifiedLength-1),Kt=Si(mt,$t,v,!0).changes;be&&(Kt=Wi(Kt)),bt=[];for(var Wt=0,Bt=Kt.length;Wt<Bt;Wt++)bt.push(Ci.createFromDiffChange(Kt[Wt],mt,$t))}return new s(Ae,Ne,rt,ut,bt)},s}(),Gi=function(){function s(o,t,a){this.shouldComputeCharChanges=a.shouldComputeCharChanges,this.shouldPostProcessCharChanges=a.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=a.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=a.shouldMakePrettyDiff,this.originalLines=o,this.modifiedLines=t,this.original=new ji(o),this.modified=new ji(t),this.continueLineDiff=qi(a.maxComputationTime),this.continueCharDiff=qi(a.maxComputationTime===0?0:Math.min(a.maxComputationTime,5e3))}return s.prototype.computeDiff=function(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return{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(this.modified.lines.length===1&&this.modified.lines[0].length===0)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}]}]};var o=Si(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=o.changes,a=o.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var h=[],v=0,V=t.length;v<V;v++)h.push(Ti.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[v],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:a,changes:h}}for(var be=[],Ae=0,Ne=0,v=-1,rt=t.length;v<rt;v++){for(var ut=v+1<rt?t[v+1]:null,bt=ut?ut.originalStart:this.originalLines.length,mt=ut?ut.modifiedStart:this.modifiedLines.length;Ae<bt&&Ne<mt;){var $t=this.originalLines[Ae],Kt=this.modifiedLines[Ne];if($t!==Kt){{for(var Wt=Bi($t,1),Bt=Bi(Kt,1);Wt>1&&Bt>1;){var on=$t.charCodeAt(Wt-2),cn=Kt.charCodeAt(Bt-2);if(on!==cn)break;Wt--,Bt--}(Wt>1||Bt>1)&&this._pushTrimWhitespaceCharChange(be,Ae+1,1,Wt,Ne+1,1,Bt)}{for(var wn=vi($t,1),_n=vi(Kt,1),kn=$t.length+1,Wn=Kt.length+1;wn<kn&&_n<Wn;){var on=$t.charCodeAt(wn-1),cn=$t.charCodeAt(_n-1);if(on!==cn)break;wn++,_n++}(wn<kn||_n<Wn)&&this._pushTrimWhitespaceCharChange(be,Ae+1,wn,kn,Ne+1,_n,Wn)}}Ae++,Ne++}ut&&(be.push(Ti.createFromDiffResult(this.shouldIgnoreTrimWhitespace,ut,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),Ae+=ut.originalLength,Ne+=ut.modifiedLength)}return{quitEarly:a,changes:be}},s.prototype._pushTrimWhitespaceCharChange=function(o,t,a,h,v,V,be){if(this._mergeTrimWhitespaceCharChange(o,t,a,h,v,V,be))return;var Ae=void 0;this.shouldComputeCharChanges&&(Ae=[new Ci(t,a,t,h,v,V,v,be)]),o.push(new Ti(t,t,v,v,Ae))},s.prototype._mergeTrimWhitespaceCharChange=function(o,t,a,h,v,V,be){var Ae=o.length;if(Ae===0)return!1;var Ne=o[Ae-1];return Ne.originalEndLineNumber===0||Ne.modifiedEndLineNumber===0?!1:Ne.originalEndLineNumber+1===t&&Ne.modifiedEndLineNumber+1===v?(Ne.originalEndLineNumber=t,Ne.modifiedEndLineNumber=v,this.shouldComputeCharChanges&&Ne.charChanges&&Ne.charChanges.push(new Ci(t,a,t,h,v,V,v,be)),!0):!1},s}();function Bi(s,o){var t=Zn.q(s);return t===-1?o:t+1}function vi(s,o){var t=Zn.D(s);return t===-1?o:t+2}function qi(s){if(s===0)return function(){return!0};var o=Date.now();return function(){return Date.now()-o<s}}var ro=r("rXIE"),bi=function(){function s(o,t,a,h){this._uri=o,this._lines=t,this._eol=a,this._versionId=h,this._lineStarts=null}return s.prototype.dispose=function(){this._lines.length=0},s.prototype.getText=function(){return this._lines.join(this._eol)},s.prototype.onEvents=function(o){o.eol&&o.eol!==this._eol&&(this._eol=o.eol,this._lineStarts=null);for(var t=o.changes,a=0,h=t;a<h.length;a++){var v=h[a];this._acceptDeleteRange(v.range),this._acceptInsertText(new j.a(v.range.startLineNumber,v.range.startColumn),v.text)}this._versionId=o.versionId},s.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var o=this._eol.length,t=this._lines.length,a=new Uint32Array(t),h=0;h<t;h++)a[h]=this._lines[h].length+o;this._lineStarts=new ro.a(a)}},s.prototype._setLineText=function(o,t){this._lines[o]=t,this._lineStarts&&this._lineStarts.changeValue(o,this._lines[o].length+this._eol.length)},s.prototype._acceptDeleteRange=function(o){if(o.startLineNumber===o.endLineNumber){if(o.startColumn===o.endColumn)return;this._setLineText(o.startLineNumber-1,this._lines[o.startLineNumber-1].substring(0,o.startColumn-1)+this._lines[o.startLineNumber-1].substring(o.endColumn-1));return}this._setLineText(o.startLineNumber-1,this._lines[o.startLineNumber-1].substring(0,o.startColumn-1)+this._lines[o.endLineNumber-1].substring(o.endColumn-1)),this._lines.splice(o.startLineNumber,o.endLineNumber-o.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(o.startLineNumber,o.endLineNumber-o.startLineNumber)},s.prototype._acceptInsertText=function(o,t){if(t.length===0)return;var a=t.split(/\r\n|\r|\n/);if(a.length===1){this._setLineText(o.lineNumber-1,this._lines[o.lineNumber-1].substring(0,o.column-1)+a[0]+this._lines[o.lineNumber-1].substring(o.column-1));return}a[a.length-1]+=this._lines[o.lineNumber-1].substring(o.column-1),this._setLineText(o.lineNumber-1,this._lines[o.lineNumber-1].substring(0,o.column-1)+a[0]);for(var h=new Uint32Array(a.length-1),v=1;v<a.length;v++)this._lines.splice(o.lineNumber+v-1,0,a[v]),h[v-1]=a[v].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(o.lineNumber,h)},s}(),Di=r("34RT"),Xi=r("3NxR"),lo=function(){function s(o,t,a){for(var h=new Uint8Array(o*t),v=0,V=o*t;v<V;v++)h[v]=a;this._data=h,this.rows=o,this.cols=t}return s.prototype.get=function(o,t){return this._data[o*this.cols+t]},s.prototype.set=function(o,t,a){this._data[o*this.cols+t]=a},s}(),Mi=function(){function s(o){for(var t=0,a=0,h=0,v=o.length;h<v;h++){var V=o[h],be=V[0],Ae=V[1],Ne=V[2];Ae>t&&(t=Ae),be>a&&(a=be),Ne>a&&(a=Ne)}t++,a++;for(var rt=new lo(a,t,0),h=0,v=o.length;h<v;h++){var ut=o[h],be=ut[0],Ae=ut[1],Ne=ut[2];rt.set(be,Ae,Ne)}this._states=rt,this._maxCharCode=t}return s.prototype.nextState=function(o,t){return t<0||t>=this._maxCharCode?0:this._states.get(o,t)},s}(),so=null;function Je(){return so===null&&(so=new Mi([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),so}var O=null;function T(){if(O===null){O=new Xi.a(0);for(var s=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF20\uFF03\uFF04\uFF05\uFF06\uFF0A\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`,o=0;o<s.length;o++)O.set(s.charCodeAt(o),1);for(var t=".,;",o=0;o<t.length;o++)O.set(t.charCodeAt(o),2)}return O}var Y=function(){function s(){}return s._createLink=function(o,t,a,h,v){var V=v-1;do{var be=t.charCodeAt(V),Ae=o.get(be);if(Ae!==2)break;V--}while(V>h);if(h>0){var Ne=t.charCodeAt(h-1),rt=t.charCodeAt(V);(Ne===40&&rt===41||Ne===91&&rt===93||Ne===123&&rt===125)&&V--}return{range:{startLineNumber:a,startColumn:h+1,endLineNumber:a,endColumn:V+2},url:t.substring(h,V+1)}},s.computeLinks=function(o,t){t===void 0&&(t=Je());for(var a=T(),h=[],v=1,V=o.getLineCount();v<=V;v++){for(var be=o.getLineContent(v),Ae=be.length,Ne=0,rt=0,ut=0,bt=1,mt=!1,$t=!1,Kt=!1;Ne<Ae;){var Wt=!1,Bt=be.charCodeAt(Ne);if(bt===13){var on=void 0;switch(Bt){case 40:mt=!0,on=0;break;case 41:on=mt?0:1;break;case 91:$t=!0,on=0;break;case 93:on=$t?0:1;break;case 123:Kt=!0,on=0;break;case 125:on=Kt?0:1;break;case 39:on=ut===34||ut===96?0:1;break;case 34:on=ut===39||ut===96?0:1;break;case 96:on=ut===39||ut===34?0:1;break;case 42:on=ut===42?1:0;break;case 124:on=ut===124?1:0;break;default:on=a.get(Bt)}on===1&&(h.push(s._createLink(a,be,v,rt,Ne)),Wt=!0)}else if(bt===12){var on=void 0;Bt===91?($t=!0,on=0):on=a.get(Bt),on===1?Wt=!0:bt=13}else bt=t.nextState(bt,Bt),bt===0&&(Wt=!0);Wt&&(bt=1,mt=!1,$t=!1,Kt=!1,rt=Ne+1,ut=Bt),Ne++}bt===13&&h.push(s._createLink(a,be,v,rt,Ae))}return h},s}();function De(s){return!s||typeof s.getLineCount!="function"||typeof s.getLineContent!="function"?[]:Y.computeLinks(s)}var Re=function(){function s(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return s.prototype.navigateValueSet=function(o,t,a,h,v){if(o&&t){var V=this.doNavigateValueSet(t,v);if(V)return{range:o,value:V}}if(a&&h){var V=this.doNavigateValueSet(h,v);if(V)return{range:a,value:V}}return null},s.prototype.doNavigateValueSet=function(o,t){var a=this.numberReplace(o,t);return a!==null?a:this.textReplace(o,t)},s.prototype.numberReplace=function(o,t){var a=Math.pow(10,o.length-(o.lastIndexOf(".")+1)),h=Number(o),v=parseFloat(o);return!isNaN(h)&&!isNaN(v)&&h===v?h===0&&!t?null:(h=Math.floor(h*a),h+=t?a:-a,String(h/a)):null},s.prototype.textReplace=function(o,t){return this.valueSetsReplace(this._defaultValueSet,o,t)},s.prototype.valueSetsReplace=function(o,t,a){for(var h=null,v=0,V=o.length;h===null&&v<V;v++)h=this.valueSetReplace(o[v],t,a);return h},s.prototype.valueSetReplace=function(o,t,a){var h=o.indexOf(t);return h>=0?(h+=a?1:-1,h<0?h=o.length-1:h%=o.length,o[h]):null},s.INSTANCE=new s,s}(),We=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ft=function(s,o,t,a){function h(v){return v instanceof t?v:new t(function(V){V(v)})}return new(t||(t=Promise))(function(v,V){function be(rt){try{Ne(a.next(rt))}catch(ut){V(ut)}}function Ae(rt){try{Ne(a.throw(rt))}catch(ut){V(ut)}}function Ne(rt){rt.done?v(rt.value):h(rt.value).then(be,Ae)}Ne((a=a.apply(s,o||[])).next())})},lt=function(s,o){var t={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},a,h,v,V;return V={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(V[Symbol.iterator]=function(){return this}),V;function be(Ne){return function(rt){return Ae([Ne,rt])}}function Ae(Ne){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,h&&(v=Ne[0]&2?h.return:Ne[0]?h.throw||((v=h.return)&&v.call(h),0):h.next)&&!(v=v.call(h,Ne[1])).done)return v;(h=0,v)&&(Ne=[Ne[0]&2,v.value]);switch(Ne[0]){case 0:case 1:v=Ne;break;case 4:return t.label++,{value:Ne[1],done:!1};case 5:t.label++,h=Ne[1],Ne=[0];continue;case 7:Ne=t.ops.pop(),t.trys.pop();continue;default:if(!(v=t.trys,v=v.length>0&&v[v.length-1])&&(Ne[0]===6||Ne[0]===2)){t=0;continue}if(Ne[0]===3&&(!v||Ne[1]>v[0]&&Ne[1]<v[3])){t.label=Ne[1];break}if(Ne[0]===6&&t.label<v[1]){t.label=v[1],v=Ne;break}if(v&&t.label<v[2]){t.label=v[2],t.ops.push(Ne);break}v[2]&&t.ops.pop(),t.trys.pop();continue}Ne=o.call(s,t)}catch(rt){Ne=[6,rt],h=0}finally{a=v=0}if(Ne[0]&5)throw Ne[1];return{value:Ne[0]?Ne[1]:void 0,done:!0}}},yt=function(s){We(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return Object.defineProperty(o.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),o.prototype.getValue=function(){return this.getText()},o.prototype.getLinesContent=function(){return this._lines.slice(0)},o.prototype.getLineCount=function(){return this._lines.length},o.prototype.getLineContent=function(t){return this._lines[t-1]},o.prototype.getWordAtPosition=function(t,a){var h=Object(Di.d)(t.column,Object(Di.c)(a),this._lines[t.lineNumber-1],0);return h?new G.a(t.lineNumber,h.startColumn,t.lineNumber,h.endColumn):null},o.prototype.createWordIterator=function(t){var a=this,h,v=0,V,be=0,Ae=[],Ne=function rt(){if(be<Ae.length){var ut=V.substring(Ae[be].start,Ae[be].end);return be+=1,h?h.value=ut:h={done:!1,value:ut},h}else return v>=a._lines.length?oo.b:(V=a._lines[v],Ae=a._wordenize(V,t),be=0,v+=1,rt())};return{next:Ne}},o.prototype.getLineWords=function(t,a){for(var h=this._lines[t-1],v=this._wordenize(h,a),V=[],be=0,Ae=v;be<Ae.length;be++){var Ne=Ae[be];V.push({word:h.substring(Ne.start,Ne.end),startColumn:Ne.start+1,endColumn:Ne.end+1})}return V},o.prototype._wordenize=function(t,a){var h=[],v;for(a.lastIndex=0;(v=a.exec(t))&&!(v[0].length===0);)h.push({start:v.index,end:v.index+v[0].length});return h},o.prototype.getValueInRange=function(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);var a=this._eol,h=t.startLineNumber-1,v=t.endLineNumber-1,V=[];V.push(this._lines[h].substring(t.startColumn-1));for(var be=h+1;be<v;be++)V.push(this._lines[be]);return V.push(this._lines[v].substring(0,t.endColumn-1)),V.join(a)},o.prototype.offsetAt=function(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(t.lineNumber-2)+(t.column-1)},o.prototype.positionAt=function(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();var a=this._lineStarts.getIndexOf(t),h=this._lines[a.index].length;return{lineNumber:1+a.index,column:1+Math.min(a.remainder,h)}},o.prototype._validateRange=function(t){var a=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),h=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return a.lineNumber!==t.startLineNumber||a.column!==t.startColumn||h.lineNumber!==t.endLineNumber||h.column!==t.endColumn?{startLineNumber:a.lineNumber,startColumn:a.column,endLineNumber:h.lineNumber,endColumn:h.column}:t},o.prototype._validatePosition=function(t){if(!j.a.isIPosition(t))throw new Error("bad position");var a=t.lineNumber,h=t.column,v=!1;if(a<1)a=1,h=1,v=!0;else if(a>this._lines.length)a=this._lines.length,h=this._lines[a-1].length+1,v=!0;else{var V=this._lines[a-1].length+1;h<1?(h=1,v=!0):h>V&&(h=V,v=!0)}return v?{lineNumber:a,column:h}:t},o}(bi),xt=function(){function s(o,t){this._host=o,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}return s.prototype.dispose=function(){this._models=Object.create(null)},s.prototype._getModel=function(o){return this._models[o]},s.prototype._getModels=function(){var o=this,t=[];return Object.keys(this._models).forEach(function(a){return t.push(o._models[a])}),t},s.prototype.acceptNewModel=function(o){this._models[o.url]=new yt(U.a.parse(o.url),o.lines,o.EOL,o.versionId)},s.prototype.acceptModelChanged=function(o,t){if(!this._models[o])return;var a=this._models[o];a.onEvents(t)},s.prototype.acceptRemovedModel=function(o){if(!this._models[o])return;delete this._models[o]},s.prototype.computeDiff=function(o,t,a,h){return ft(this,void 0,void 0,function(){var v,V,be,Ae,Ne,rt,ut;return lt(this,function(bt){return v=this._getModel(o),V=this._getModel(t),!v||!V?[2,null]:(be=v.getLinesContent(),Ae=V.getLinesContent(),Ne=new Gi(be,Ae,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:a,shouldMakePrettyDiff:!0,maxComputationTime:h}),rt=Ne.computeDiff(),ut=rt.changes.length>0?!1:this._modelsAreIdentical(v,V),[2,{quitEarly:rt.quitEarly,identical:ut,changes:rt.changes}])})})},s.prototype._modelsAreIdentical=function(o,t){var a=o.getLineCount(),h=t.getLineCount();if(a!==h)return!1;for(var v=1;v<=a;v++){var V=o.getLineContent(v),be=t.getLineContent(v);if(V!==be)return!1}return!0},s.prototype.computeMoreMinimalEdits=function(o,t){return ft(this,void 0,void 0,function(){var a,h,v,V,be,Ae,Ne,rt,ut,bt,mt,$t,Kt,Wt,Bt,on,cn,wn;return lt(this,function(_n){if(a=this._getModel(o),!a)return[2,t];for(h=[],v=void 0,t=Object(tn.r)(t,function(kn,Wn){if(kn.range&&Wn.range)return G.a.compareRangesUsingStarts(kn.range,Wn.range);var jn=kn.range?0:1,ei=Wn.range?0:1;return jn-ei}),V=0,be=t;V<be.length;V++){if(Ae=be[V],Ne=Ae.range,rt=Ae.text,ut=Ae.eol,typeof ut=="number"&&(v=ut),G.a.isEmpty(Ne)&&!rt)continue;if(bt=a.getValueInRange(Ne),rt=rt.replace(/\r\n|\n|\r/g,a.eol),bt===rt)continue;if(Math.max(rt.length,bt.length)>s._diffLimit){h.push({range:Ne,text:rt});continue}for(mt=Bn(bt,rt,!1),$t=a.offsetAt(G.a.lift(Ne).getStartPosition()),Kt=0,Wt=mt;Kt<Wt.length;Kt++)Bt=Wt[Kt],on=a.positionAt($t+Bt.originalStart),cn=a.positionAt($t+Bt.originalStart+Bt.originalLength),wn={text:rt.substr(Bt.modifiedStart,Bt.modifiedLength),range:{startLineNumber:on.lineNumber,startColumn:on.column,endLineNumber:cn.lineNumber,endColumn:cn.column}},a.getValueInRange(wn.range)!==wn.text&&h.push(wn)}return typeof v=="number"&&h.push({eol:v,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,h]})})},s.prototype.computeLinks=function(o){return ft(this,void 0,void 0,function(){var t;return lt(this,function(a){return t=this._getModel(o),t?[2,De(t)]:[2,null]})})},s.prototype.textualSuggest=function(o,t,a,h){return ft(this,void 0,void 0,function(){var v,V,be,Ae,Ne,rt,ut,bt;return lt(this,function(mt){if(v=this._getModel(o),!v)return[2,null];for(V=[],be=new Set,Ae=new RegExp(a,h),Ne=v.getWordAtPosition(t,Ae),Ne&&be.add(v.getValueInRange(Ne)),rt=v.createWordIterator(Ae),ut=rt.next();!ut.done&&be.size<=s._suggestionsLimit;ut=rt.next()){if(bt=ut.value,be.has(bt))continue;if(be.add(bt),!isNaN(Number(bt)))continue;V.push(bt)}return[2,V]})})},s.prototype.computeWordRanges=function(o,t,a,h){return ft(this,void 0,void 0,function(){var v,V,be,Ae,Ne,rt,ut,bt,mt;return lt(this,function($t){if(v=this._getModel(o),!v)return[2,Object.create(null)];for(V=new RegExp(a,h),be=Object.create(null),Ae=t.startLineNumber;Ae<t.endLineNumber;Ae++)for(Ne=v.getLineWords(Ae,V),rt=0,ut=Ne;rt<ut.length;rt++){if(bt=ut[rt],!isNaN(Number(bt.word)))continue;mt=be[bt.word],mt||(mt=[],be[bt.word]=mt),mt.push({startLineNumber:Ae,startColumn:bt.startColumn,endLineNumber:Ae,endColumn:bt.endColumn})}return[2,be]})})},s.prototype.navigateValueSet=function(o,t,a,h,v){return ft(this,void 0,void 0,function(){var V,be,Ae,Ne,rt,ut;return lt(this,function(bt){return V=this._getModel(o),V?(be=new RegExp(h,v),t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1}),Ae=V.getValueInRange(t),Ne=V.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},be),Ne?(rt=V.getValueInRange(Ne),ut=Re.INSTANCE.navigateValueSet(t,Ae,Ne,rt,a),[2,ut]):[2,null]):[2,null]})})},s.prototype.loadForeignModule=function(o,t,a){var h=this,v=function(Ne,rt){return h._host.fhr(Ne,rt)},V=ln.b(a,v),be={host:V,getMirrorModels:function(){return h._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(be,t),Promise.resolve(ln.c(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},s.prototype.fmr=function(o,t){if(!this._foreignModule||typeof this._foreignModule[o]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+o));try{return Promise.resolve(this._foreignModule[o].apply(this._foreignModule,t))}catch(a){return Promise.reject(a)}},s._diffLimit=1e5,s._suggestionsLimit=1e4,s}();function It(s){return new xt(s,null)}typeof importScripts=="function"&&(sn.b.monaco=Pt());var kt=r("1Ylb"),Yt=r("PoD0"),Zt=Object(Yt.c)("textResourceConfigurationService"),dn=Object(Yt.c)("textResourcePropertiesService"),fn=r("lgEJ"),An=r("aar3"),gn=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Mn=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},xn=function(s,o){return function(t,a){o(t,a,s)}},Le=function(s,o,t,a){function h(v){return v instanceof t?v:new t(function(V){V(v)})}return new(t||(t=Promise))(function(v,V){function be(rt){try{Ne(a.next(rt))}catch(ut){V(ut)}}function Ae(rt){try{Ne(a.throw(rt))}catch(ut){V(ut)}}function Ne(rt){rt.done?v(rt.value):h(rt.value).then(be,Ae)}Ne((a=a.apply(s,o||[])).next())})},W=function(s,o){var t={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},a,h,v,V;return V={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(V[Symbol.iterator]=function(){return this}),V;function be(Ne){return function(rt){return Ae([Ne,rt])}}function Ae(Ne){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,h&&(v=Ne[0]&2?h.return:Ne[0]?h.throw||((v=h.return)&&v.call(h),0):h.next)&&!(v=v.call(h,Ne[1])).done)return v;(h=0,v)&&(Ne=[Ne[0]&2,v.value]);switch(Ne[0]){case 0:case 1:v=Ne;break;case 4:return t.label++,{value:Ne[1],done:!1};case 5:t.label++,h=Ne[1],Ne=[0];continue;case 7:Ne=t.ops.pop(),t.trys.pop();continue;default:if(!(v=t.trys,v=v.length>0&&v[v.length-1])&&(Ne[0]===6||Ne[0]===2)){t=0;continue}if(Ne[0]===3&&(!v||Ne[1]>v[0]&&Ne[1]<v[3])){t.label=Ne[1];break}if(Ne[0]===6&&t.label<v[1]){t.label=v[1],v=Ne;break}if(v&&t.label<v[2]){t.label=v[2],t.ops.push(Ne);break}v[2]&&t.ops.pop(),t.trys.pop();continue}Ne=o.call(s,t)}catch(rt){Ne=[6,rt],h=0}finally{a=v=0}if(Ne[0]&5)throw Ne[1];return{value:Ne[0]?Ne[1]:void 0,done:!0}}},ae=60*1e3,Fe=5*60*1e3;function qe(s,o){var t=s.getModel(o);return t?!t.isTooLargeForSyncing():!1}var ct=function(s){gn(o,s);function o(t,a,h){var v=s.call(this)||this;return v._modelService=t,v._workerManager=v._register(new Ge(v._modelService)),v._logService=h,v._register(gt.r.register("*",{provideLinks:function(be,Ae){return qe(v._modelService,be.uri)?v._workerManager.withWorker().then(function(Ne){return Ne.computeLinks(be.uri)}).then(function(Ne){return Ne&&{links:Ne}}):Promise.resolve({links:[]})}})),v._register(gt.d.register("*",new St(v._workerManager,a,v._modelService))),v}return o.prototype.dispose=function(){s.prototype.dispose.call(this)},o.prototype.canComputeDiff=function(t,a){return qe(this._modelService,t)&&qe(this._modelService,a)},o.prototype.computeDiff=function(t,a,h,v){return this._workerManager.withWorker().then(function(V){return V.computeDiff(t,a,h,v)})},o.prototype.computeMoreMinimalEdits=function(t,a){var h=this;if(Object(tn.q)(a)){if(!qe(this._modelService,t))return Promise.resolve(a);var v=An.a.create(!0),V=this._workerManager.withWorker().then(function(be){return be.computeMoreMinimalEdits(t,a)});return V.finally(function(){return h._logService.trace("FORMAT#computeMoreMinimalEdits",t.toString(!0),v.elapsed())}),V}else return Promise.resolve(void 0)},o.prototype.canNavigateValueSet=function(t){return qe(this._modelService,t)},o.prototype.navigateValueSet=function(t,a,h){return this._workerManager.withWorker().then(function(v){return v.navigateValueSet(t,a,h)})},o.prototype.canComputeWordRanges=function(t){return qe(this._modelService,t)},o.prototype.computeWordRanges=function(t,a){return this._workerManager.withWorker().then(function(h){return h.computeWordRanges(t,a)})},o=Mn([xn(0,kt.a),xn(1,Zt),xn(2,fn.a)],o),o}(Ht.a),St=function(){function s(o,t,a){this._debugDisplayName="wordbasedCompletions",this._workerManager=o,this._configurationService=t,this._modelService=a}return s.prototype.provideCompletionItems=function(o,t){return Le(this,void 0,void 0,function(){var a,h,v,V,be,Ae;return W(this,function(Ne){switch(Ne.label){case 0:return a=this._configurationService.getValue(o.uri,t,"editor").wordBasedSuggestions,a?qe(this._modelService,o.uri)?(h=o.getWordAtPosition(t),v=h?new G.a(t.lineNumber,h.startColumn,t.lineNumber,h.endColumn):G.a.fromPositions(t),V=v.setEndPosition(t.lineNumber,t.column),[4,this._workerManager.withWorker()]):[2,void 0]:[2,void 0];case 1:return be=Ne.sent(),[4,be.textualSuggest(o.uri,t)];case 2:return Ae=Ne.sent(),Ae?[2,{suggestions:Ae.map(function(rt){return{kind:18,label:rt,insertText:rt,range:{insert:V,replace:v}}})}]:[2,void 0]}})})},s}(),Ge=function(s){gn(o,s);function o(t){var a=s.call(this)||this;a._modelService=t,a._editorWorkerClient=null,a._lastWorkerUsedTime=new Date().getTime();var h=a._register(new Qt.c);return h.cancelAndSet(function(){return a._checkStopIdleWorker()},Math.round(Fe/2)),a._register(a._modelService.onModelRemoved(function(v){return a._checkStopEmptyWorker()})),a}return o.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),s.prototype.dispose.call(this)},o.prototype._checkStopEmptyWorker=function(){if(!this._editorWorkerClient)return;var t=this._modelService.getModels();t.length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},o.prototype._checkStopIdleWorker=function(){if(!this._editorWorkerClient)return;var t=new Date().getTime()-this._lastWorkerUsedTime;t>Fe&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},o.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new at(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},o}(Ht.a),de=function(s){gn(o,s);function o(t,a,h){var v=s.call(this)||this;if(v._syncedModels=Object.create(null),v._syncedModelsLastUsedTime=Object.create(null),v._proxy=t,v._modelService=a,!h){var V=new Qt.c;V.cancelAndSet(function(){return v._checkStopModelSync()},Math.round(ae/2)),v._register(V)}return v}return o.prototype.dispose=function(){for(var t in this._syncedModels)Object(Ht.f)(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),s.prototype.dispose.call(this)},o.prototype.ensureSyncedResources=function(t){for(var a=0,h=t;a<h.length;a++){var v=h[a],V=v.toString();this._syncedModels[V]||this._beginModelSync(v),this._syncedModels[V]&&(this._syncedModelsLastUsedTime[V]=new Date().getTime())}},o.prototype._checkStopModelSync=function(){var t=new Date().getTime(),a=[];for(var h in this._syncedModelsLastUsedTime){var v=t-this._syncedModelsLastUsedTime[h];v>ae&&a.push(h)}for(var V=0,be=a;V<be.length;V++){var Ae=be[V];this._stopModelSync(Ae)}},o.prototype._beginModelSync=function(t){var a=this,h=this._modelService.getModel(t);if(!h)return;if(h.isTooLargeForSyncing())return;var v=t.toString();this._proxy.acceptNewModel({url:h.uri.toString(),lines:h.getLinesContent(),EOL:h.getEOL(),versionId:h.getVersionId()});var V=new Ht.b;V.add(h.onDidChangeContent(function(be){a._proxy.acceptModelChanged(v.toString(),be)})),V.add(h.onWillDispose(function(){a._stopModelSync(v)})),V.add(Object(Ht.h)(function(){a._proxy.acceptRemovedModel(v)})),this._syncedModels[v]=V},o.prototype._stopModelSync=function(t){var a=this._syncedModels[t];delete this._syncedModels[t],delete this._syncedModelsLastUsedTime[t],Object(Ht.f)(a)},o}(Ht.a),X=function(){function s(o){this._instance=o,this._proxyObj=Promise.resolve(this._instance)}return s.prototype.dispose=function(){this._instance.dispose()},s.prototype.getProxyObject=function(){return this._proxyObj},s}(),Ue=function(){function s(o){this._workerClient=o}return s.prototype.fhr=function(o,t){return this._workerClient.fhr(o,t)},s}(),at=function(s){gn(o,s);function o(t,a,h){var v=s.call(this)||this;return v._modelService=t,v._keepIdleModels=a,v._workerFactory=new Mt(h),v._worker=null,v._modelManager=null,v}return o.prototype.fhr=function(t,a){throw new Error("Not implemented!")},o.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new Jn(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Ue(this)))}catch(t){Gn(t),this._worker=new X(new xt(new Ue(this),null))}return this._worker},o.prototype._getProxy=function(){var t=this;return this._getOrCreateWorker().getProxyObject().then(void 0,function(a){return Gn(a),t._worker=new X(new xt(new Ue(t),null)),t._getOrCreateWorker().getProxyObject()})},o.prototype._getOrCreateModelManager=function(t){return this._modelManager||(this._modelManager=this._register(new de(t,this._modelService,this._keepIdleModels))),this._modelManager},o.prototype._withSyncedResources=function(t){var a=this;return this._getProxy().then(function(h){return a._getOrCreateModelManager(h).ensureSyncedResources(t),h})},o.prototype.computeDiff=function(t,a,h,v){return this._withSyncedResources([t,a]).then(function(V){return V.computeDiff(t.toString(),a.toString(),h,v)})},o.prototype.computeMoreMinimalEdits=function(t,a){return this._withSyncedResources([t]).then(function(h){return h.computeMoreMinimalEdits(t.toString(),a)})},o.prototype.computeLinks=function(t){return this._withSyncedResources([t]).then(function(a){return a.computeLinks(t.toString())})},o.prototype.textualSuggest=function(t,a){var h=this;return this._withSyncedResources([t]).then(function(v){var V=h._modelService.getModel(t);if(!V)return null;var be=zt.a.getWordDefinition(V.getLanguageIdentifier().id),Ae=be.source,Ne=Object(Zn.H)(be);return v.textualSuggest(t.toString(),a,Ae,Ne)})},o.prototype.computeWordRanges=function(t,a){var h=this;return this._withSyncedResources([t]).then(function(v){var V=h._modelService.getModel(t);if(!V)return Promise.resolve(null);var be=zt.a.getWordDefinition(V.getLanguageIdentifier().id),Ae=be.source,Ne=Object(Zn.H)(be);return v.computeWordRanges(t.toString(),a,Ae,Ne)})},o.prototype.navigateValueSet=function(t,a,h){var v=this;return this._withSyncedResources([t]).then(function(V){var be=v._modelService.getModel(t);if(!be)return null;var Ae=zt.a.getWordDefinition(be.getLanguageIdentifier().id),Ne=Ae.source,rt=Object(Zn.H)(Ae);return V.navigateValueSet(t.toString(),a,h,Ne,rt)})},o}(Ht.a),et=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}();function Q(s,o){return new Ce(s,o)}var Ce=function(s){et(o,s);function o(t,a){var h=s.call(this,t,a.keepIdleModels||!1,a.label)||this;return h._foreignModuleId=a.moduleId,h._foreignModuleCreateData=a.createData||null,h._foreignModuleHost=a.host||null,h._foreignProxy=null,h}return o.prototype.fhr=function(t,a){if(!this._foreignModuleHost||typeof this._foreignModuleHost[t]!="function")return Promise.reject(new Error("Missing method "+t+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[t].apply(this._foreignModuleHost,a))}catch(h){return Promise.reject(h)}},o.prototype._getForeignProxy=function(){var t=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then(function(a){var h=t._foreignModuleHost?ln.c(t._foreignModuleHost):[];return a.loadForeignModule(t._foreignModuleId,t._foreignModuleCreateData,h).then(function(v){t._foreignModuleCreateData=null;for(var V=function(mt,$t){return a.fmr(mt,$t)},be=function(mt,$t){return function(){var Kt=Array.prototype.slice.call(arguments,0);return $t(mt,Kt)}},Ae={},Ne=0,rt=v;Ne<rt.length;Ne++){var ut=rt[Ne];Ae[ut]=be(ut,V)}return Ae})})),this._foreignProxy},o.prototype.getProxy=function(){return this._getForeignProxy()},o.prototype.withSyncedResources=function(t){var a=this;return this._withSyncedResources(t).then(function(h){return a.getProxy()})},o}(at),Oe=r("Q5rX"),it=r("o75R"),Qe=r("khgB");function je(s){return Array.isArray(s)}function Ct(s){return!je(s)}function Ot(s){return typeof s=="string"}function Jt(s){return!Ot(s)}function At(s){return!s}function jt(s,o){return s.ignoreCase&&o?o.toLowerCase():o}function hn(s){return s.replace(/[&<>'"_]/g,"-")}function bn(s,o){console.log(s.languageId+": "+o)}function mn(s,o){return new Error(s.languageId+": "+o)}function Vn(s,o,t,a,h){var v=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,V=null;return o.replace(v,function(be,Ae,Ne,rt,ut,bt,mt,$t,Kt){return At(Ne)?At(rt)?!At(ut)&&ut<a.length?jt(s,a[ut]):!At(mt)&&s&&typeof s[mt]=="string"?s[mt]:(V===null&&(V=h.split("."),V.unshift(h)),!At(bt)&&bt<V.length?jt(s,V[bt]):""):jt(s,t):"$"})}function Xn(s,o){for(var t=o;t&&t.length>0;){var a=s.tokenizer[t];if(a)return a;var h=t.lastIndexOf(".");h<0?t=null:t=t.substr(0,h)}return null}function Yn(s,o){for(var t=o;t&&t.length>0;){var a=s.stateNames[t];if(a)return!0;var h=t.lastIndexOf(".");h<0?t=null:t=t.substr(0,h)}return!1}var Ui=5,ii=function(){function s(o){this._maxCacheDepth=o,this._entries=Object.create(null)}return s.create=function(o,t){return this._INSTANCE.create(o,t)},s.prototype.create=function(o,t){if(o!==null&&o.depth>=this._maxCacheDepth)return new Pi(o,t);var a=Pi.getStackElementId(o);a.length>0&&(a+="|"),a+=t;var h=this._entries[a];return h||(h=new Pi(o,t),this._entries[a]=h,h)},s._INSTANCE=new s(Ui),s}(),Pi=function(){function s(o,t){this.parent=o,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return s.getStackElementId=function(o){for(var t="";o!==null;)t.length>0&&(t+="|"),t+=o.state,o=o.parent;return t},s._equals=function(o,t){for(;o!==null&&t!==null;){if(o===t)return!0;if(o.state!==t.state)return!1;o=o.parent,t=t.parent}return o===null&&t===null},s.prototype.equals=function(o){return s._equals(this,o)},s.prototype.push=function(o){return ii.create(this,o)},s.prototype.pop=function(){return this.parent},s.prototype.popall=function(){for(var o=this;o.parent;)o=o.parent;return o},s.prototype.switchTo=function(o){return ii.create(this.parent,o)},s}(),uo=function(){function s(o,t){this.modeId=o,this.state=t}return s.prototype.equals=function(o){return this.modeId===o.modeId&&this.state.equals(o.state)},s.prototype.clone=function(){var o=this.state.clone();return o===this.state?this:new s(this.modeId,this.state)},s}(),eo=function(){function s(o){this._maxCacheDepth=o,this._entries=Object.create(null)}return s.create=function(o,t){return this._INSTANCE.create(o,t)},s.prototype.create=function(o,t){if(t!==null)return new to(o,t);if(o!==null&&o.depth>=this._maxCacheDepth)return new to(o,t);var a=Pi.getStackElementId(o),h=this._entries[a];return h||(h=new to(o,null),this._entries[a]=h,h)},s._INSTANCE=new s(Ui),s}(),to=function(){function s(o,t){this.stack=o,this.embeddedModeData=t}return s.prototype.clone=function(){var o=this.embeddedModeData?this.embeddedModeData.clone():null;return o===this.embeddedModeData?this:eo.create(this.stack,this.embeddedModeData)},s.prototype.equals=function(o){return o instanceof s&&this.stack.equals(o.stack)?this.embeddedModeData===null&&o.embeddedModeData===null?!0:this.embeddedModeData===null||o.embeddedModeData===null?!1:this.embeddedModeData.equals(o.embeddedModeData):!1},s}(),zn=function(){function s(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return s.prototype.enterMode=function(o,t){this._language=t},s.prototype.emit=function(o,t){if(this._lastTokenType===t&&this._lastTokenLanguage===this._language)return;this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new E.a(o,t,this._language))},s.prototype.nestedModeTokenize=function(o,t,a){var h=t.modeId,v=t.state,V=gt.y.get(h);if(!V)return this.enterMode(a,h),this.emit(a,""),v;var be=V.tokenize(o,v,a);return this._tokens=this._tokens.concat(be.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,be.endState},s.prototype.finalize=function(o){return new E.b(this._tokens,o)},s}(),zo=function(){function s(o,t){this._modeService=o,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return s.prototype.enterMode=function(o,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},s.prototype.emit=function(o,t){var a=this._theme.match(this._currentLanguageId,t);if(this._lastTokenMetadata===a)return;this._lastTokenMetadata=a,this._tokens.push(o),this._tokens.push(a)},s._merge=function(o,t,a){var h=o!==null?o.length:0,v=t.length,V=a!==null?a.length:0;if(h===0&&v===0&&V===0)return new Uint32Array(0);if(h===0&&v===0)return a;if(v===0&&V===0)return o;var be=new Uint32Array(h+v+V);o!==null&&be.set(o);for(var Ae=0;Ae<v;Ae++)be[h+Ae]=t[Ae];return a!==null&&be.set(a,h+v),be},s.prototype.nestedModeTokenize=function(o,t,a){var h=t.modeId,v=t.state,V=gt.y.get(h);if(!V)return this.enterMode(a,h),this.emit(a,""),v;var be=V.tokenize2(o,v,a);return this._prependTokens=s._merge(this._prependTokens,this._tokens,be.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,be.endState},s.prototype.finalize=function(o){return new E.c(s._merge(this._prependTokens,this._tokens,null),o)},s}(),Oi=function(){function s(o,t,a,h){var v=this;this._modeService=o,this._standaloneThemeService=t,this._modeId=a,this._lexer=h,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var V=!1;this._tokenizationRegistryListener=gt.y.onDidChange(function(be){if(V)return;for(var Ae=!1,Ne=0,rt=be.changedLanguages.length;Ne<rt;Ne++){var ut=be.changedLanguages[Ne];if(v._embeddedModes[ut]){Ae=!0;break}}Ae&&(V=!0,gt.y.fire([v._modeId]),V=!1)})}return s.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},s.prototype.getLoadStatus=function(){var o=[];for(var t in this._embeddedModes){var a=gt.y.get(t);if(a){if(a instanceof s){var h=a.getLoadStatus();h.loaded===!1&&o.push(h.promise)}continue}var v=gt.y.getPromise(t);v&&o.push(v)}return o.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(o).then(function(V){return})}},s.prototype.getInitialState=function(){var o=ii.create(null,this._lexer.start);return eo.create(o,null)},s.prototype.tokenize=function(o,t,a){var h=new zn,v=this._tokenize(o,t,a,h);return h.finalize(v)},s.prototype.tokenize2=function(o,t,a){var h=new zo(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),v=this._tokenize(o,t,a,h);return h.finalize(v)},s.prototype._tokenize=function(o,t,a,h){return t.embeddedModeData?this._nestedTokenize(o,t,a,h):this._myTokenize(o,t,a,h)},s.prototype._findLeavingNestedModeOffset=function(o,t){var a=this._lexer.tokenizer[t.stack.state];if(!a&&(a=Xn(this._lexer,t.stack.state),!a))throw mn(this._lexer,"tokenizer state is not defined: "+t.stack.state);for(var h=-1,v=!1,V=0,be=a;V<be.length;V++){var Ae=be[V];if(!Jt(Ae.action)||Ae.action.nextEmbedded!=="@pop")continue;v=!0;var Ne=Ae.regex,rt=Ae.regex.source;rt.substr(0,4)==="^(?:"&&rt.substr(rt.length-1,1)===")"&&(Ne=new RegExp(rt.substr(4,rt.length-5),Ne.ignoreCase?"i":""));var ut=o.search(Ne);if(ut===-1||ut!==0&&Ae.matchOnlyAtLineStart)continue;(h===-1||ut<h)&&(h=ut)}if(!v)throw mn(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return h},s.prototype._nestedTokenize=function(o,t,a,h){var v=this._findLeavingNestedModeOffset(o,t);if(v===-1){var V=h.nestedModeTokenize(o,t.embeddedModeData,a);return eo.create(t.stack,new uo(t.embeddedModeData.modeId,V))}var be=o.substring(0,v);be.length>0&&h.nestedModeTokenize(be,t.embeddedModeData,a);var Ae=o.substring(v);return this._myTokenize(Ae,t,a+v,h)},s.prototype._safeRuleName=function(o){return o?o.name:"(unknown)"},s.prototype._myTokenize=function(o,t,a,h){h.enterMode(a,this._modeId);for(var v=o.length,V=t.embeddedModeData,be=t.stack,Ae=0,Ne=null,rt=!0;rt||Ae<v;){var ut=Ae,bt=be.depth,mt=Ne?Ne.groups.length:0,$t=be.state,Kt=null,Wt=null,Bt=null,on=null,cn=null;if(Ne){Kt=Ne.matches;var wn=Ne.groups.shift();Wt=wn.matched,Bt=wn.action,on=Ne.rule,Ne.groups.length===0&&(Ne=null)}else{if(!rt&&Ae>=v)break;rt=!1;var _n=this._lexer.tokenizer[$t];if(!_n&&(_n=Xn(this._lexer,$t),!_n))throw mn(this._lexer,"tokenizer state is not defined: "+$t);for(var kn=o.substr(Ae),Wn=0,jn=_n;Wn<jn.length;Wn++){var ei=jn[Wn];if((Ae===0||!ei.matchOnlyAtLineStart)&&(Kt=kn.match(ei.regex),Kt)){Wt=Kt[0],Bt=ei.action;break}}}if(Kt||(Kt=[""],Wt=""),Bt||(Ae<v&&(Kt=[o.charAt(Ae)],Wt=Kt[0]),Bt=this._lexer.defaultToken),Wt===null)break;for(Ae+=Wt.length;Ct(Bt)&&Jt(Bt)&&Bt.test;)Bt=Bt.test(Wt,Kt,$t,Ae===v);var Hn=null;if(typeof Bt=="string"||Array.isArray(Bt))Hn=Bt;else if(Bt.group)Hn=Bt.group;else if(Bt.token!==null&&Bt.token!==void 0){if(Bt.tokenSubst?Hn=Vn(this._lexer,Bt.token,Wt,Kt,$t):Hn=Bt.token,Bt.nextEmbedded)if(Bt.nextEmbedded==="@pop"){if(!V)throw mn(this._lexer,"cannot pop embedded mode if not inside one");V=null}else{if(V)throw mn(this._lexer,"cannot enter embedded mode from within an embedded mode");cn=Vn(this._lexer,Bt.nextEmbedded,Wt,Kt,$t)}if(Bt.goBack&&(Ae=Math.max(0,Ae-Bt.goBack)),Bt.switchTo&&typeof Bt.switchTo=="string"){var vn=Vn(this._lexer,Bt.switchTo,Wt,Kt,$t);if(vn[0]==="@"&&(vn=vn.substr(1)),Xn(this._lexer,vn))be=be.switchTo(vn);else throw mn(this._lexer,"trying to switch to a state '"+vn+"' that is undefined in rule: "+this._safeRuleName(on))}else{if(Bt.transform&&typeof Bt.transform=="function")throw mn(this._lexer,"action.transform not supported");if(Bt.next)if(Bt.next==="@push"){if(be.depth>=this._lexer.maxStack)throw mn(this._lexer,"maximum tokenizer stack size reached: ["+be.state+","+be.parent.state+",...]");be=be.push($t)}else if(Bt.next==="@pop"){if(be.depth<=1)throw mn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(on));be=be.pop()}else if(Bt.next==="@popall")be=be.popall();else{var vn=Vn(this._lexer,Bt.next,Wt,Kt,$t);if(vn[0]==="@"&&(vn=vn.substr(1)),Xn(this._lexer,vn))be=be.push(vn);else throw mn(this._lexer,"trying to set a next state '"+vn+"' that is undefined in rule: "+this._safeRuleName(on))}}Bt.log&&typeof Bt.log=="string"&&bn(this._lexer,this._lexer.languageId+": "+Vn(this._lexer,Bt.log,Wt,Kt,$t))}if(Hn===null)throw mn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(on));if(Array.isArray(Hn)){if(Ne&&Ne.groups.length>0)throw mn(this._lexer,"groups cannot be nested: "+this._safeRuleName(on));if(Kt.length!==Hn.length+1)throw mn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(on));for(var ni=0,$n=1;$n<Kt.length;$n++)ni+=Kt[$n].length;if(ni!==Wt.length)throw mn(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(on));Ne={rule:on,matches:Kt,groups:[]};for(var $n=0;$n<Hn.length;$n++)Ne.groups[$n]={action:Hn[$n],matched:Kt[$n+1]};Ae-=Wt.length;continue}else{if(Hn==="@rematch"&&(Ae-=Wt.length,Wt="",Kt=null,Hn=""),Wt.length===0){if(v===0||bt!==be.depth||$t!==be.state||(Ne?Ne.groups.length:0)!==mt)continue;throw mn(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(on))}var pi=null;if(Ot(Hn)&&Hn.indexOf("@brackets")===0){var xi=Hn.substr("@brackets".length),To=wr(this._lexer,Wt);if(!To)throw mn(this._lexer,"@brackets token returned but no bracket defined as: "+Wt);pi=hn(To.token+xi)}else{var bo=Hn===""?"":Hn+this._lexer.tokenPostfix;pi=hn(bo)}h.emit(ut+a,pi)}if(cn!==null){var Io=this._modeService.getModeIdForLanguageName(cn);Io&&(cn=Io);var Sr=this._getNestedEmbeddedModeData(cn);if(Ae<v){var kn=o.substr(Ae);return this._nestedTokenize(kn,eo.create(be,Sr),a+Ae,h)}else return eo.create(be,Sr)}}return eo.create(be,V)},s.prototype._getNestedEmbeddedModeData=function(o){var t=this._locateMode(o);if(t){var a=gt.y.get(t);if(a)return new uo(t,a.getInitialState())}return new uo(t||Dt.b,Dt.c)},s.prototype._locateMode=function(o){if(!o||!this._modeService.isRegisteredMode(o))return null;if(o===this._modeId)return o;var t=this._modeService.getModeId(o);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t},s}();function wr(s,o){if(!o)return null;o=jt(s,o);for(var t=s.brackets,a=0,h=t;a<h.length;a++){var v=h[a];if(v.open===o)return{token:v.token,bracketType:1};if(v.close===o)return{token:v.token,bracketType:-1}}return null}function Po(s,o,t,a){return new Oi(s,o,t,a)}var Ho=function(){function s(){}return s.colorizeElement=function(o,t,a,h){h=h||{};var v=h.theme||"vs",V=h.mimeType||a.getAttribute("lang")||a.getAttribute("data-lang");if(!V)return console.error("Mode not detected"),Promise.resolve();o.setTheme(v);var be=a.firstChild?a.firstChild.nodeValue:"";a.className+=" "+v;var Ae=function(rt){a.innerHTML=rt};return this.colorize(t,be||"",V,h).then(Ae,function(Ne){return console.error(Ne)})},s.colorize=function(o,t,a,h){var v=4;h&&typeof h.tabSize=="number"&&(v=h.tabSize),Zn.O(t)&&(t=t.substr(1));var V=t.split(/\r\n|\r|\n/),be=o.getModeId(a);if(!be)return Promise.resolve(tr(V,v));o.triggerMode(be);var Ae=gt.y.get(be);if(Ae)return Fo(V,v,Ae);var Ne=gt.y.getPromise(be);return Ne?new Promise(function(rt,ut){Ne.then(function(bt){Fo(V,v,bt).then(rt,ut)},ut)}):new Promise(function(rt,ut){var bt=null,mt=null,$t=function(){bt&&(bt.dispose(),bt=null),mt&&(mt.dispose(),mt=null);var Wt=gt.y.get(be);if(Wt){Fo(V,v,Wt).then(rt,ut);return}rt(tr(V,v))};mt=new Qt.e,mt.cancelAndSet($t,500),bt=gt.y.onDidChange(function(Kt){Kt.changedLanguages.indexOf(be)>=0&&$t()})})},s.colorizeLine=function(o,t,a,h,v){v===void 0&&(v=4);var V=Qe.d.isBasicASCII(o,t),be=Qe.d.containsRTL(o,V,a),Ae=Object(it.e)(new it.c(!1,!0,o,!1,V,be,0,h,[],v,0,0,0,-1,"none",!1,!1,null));return Ae.html},s.colorizeModelLine=function(o,t,a){a===void 0&&(a=4);var h=o.getLineContent(t);o.forceTokenization(t);var v=o.getLineTokens(t),V=v.inflate();return this.colorizeLine(h,o.mightContainNonBasicASCII(),o.mightContainRTL(),V,a)},s}();function Fo(s,o,t){return new Promise(function(a,h){var v=function V(){var be=pr(s,o,t);if(t instanceof Oi){var Ae=t.getLoadStatus();if(Ae.loaded===!1){Ae.promise.then(V,h);return}}a(be)};v()})}function tr(s,o){var t=[],a=(0<<11|1<<14|2<<23)>>>0,h=new Uint32Array(2);h[0]=0,h[1]=a;for(var v=0,V=s.length;v<V;v++){var be=s[v];h[0]=be.length;var Ae=new Oe.a(h,be),Ne=Qe.d.isBasicASCII(be,!0),rt=Qe.d.containsRTL(be,Ne,!0),ut=Object(it.e)(new it.c(!1,!0,be,!1,Ne,rt,0,Ae,[],o,0,0,0,-1,"none",!1,!1,null));t=t.concat(ut.html),t.push("<br/>")}return t.join("")}function pr(s,o,t){for(var a=[],h=t.getInitialState(),v=0,V=s.length;v<V;v++){var be=s[v],Ae=t.tokenize2(be,h,0);Oe.a.convertToEndOffset(Ae.tokens,be.length);var Ne=new Oe.a(Ae.tokens,be),rt=Qe.d.isBasicASCII(be,!0),ut=Qe.d.containsRTL(be,rt,!0),bt=Object(it.e)(new it.c(!1,!0,be,!1,rt,ut,0,Ne.inflate(),[],o,0,0,0,-1,"none",!1,!1,null));a=a.concat(bt.html),a.push("<br/>"),h=Ae.endState}return a.join("")}var co=r("/RM0"),So=r("/epU"),gr=r("UO9b"),Br=r("/oyY"),Lr=r("qz6B"),Ai=r("gC1f"),Ko=r("emi/"),is=r("Ndl5"),ko=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),os=function(){for(var s=0,o=0,t=arguments.length;o<t;o++)s+=arguments[o].length;for(var a=Array(s),h=0,o=0;o<t;o++)for(var v=arguments[o],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];return a},ao=function(){function s(o,t,a){o===void 0&&(o={}),t===void 0&&(t=[]),a===void 0&&(a=[]),this._contents=o,this._keys=t,this._overrides=a,this.isFrozen=!1}return Object.defineProperty(s.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),s.prototype.isEmpty=function(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0},s.prototype.getValue=function(o){return o?Object(Ai.d)(this.contents,o):this.contents},s.prototype.getOverrideValue=function(o,t){var a=this.getContentsForOverrideIdentifer(t);return a?o?Object(Ai.d)(a,o):a:void 0},s.prototype.override=function(o){var t=this.getContentsForOverrideIdentifer(o);if(!t||typeof t!="object"||!Object.keys(t).length)return this;for(var a={},h=0,v=tn.e(os(Object.keys(this.contents),Object.keys(t)));h<v.length;h++){var V=v[h],be=this.contents[V],Ae=t[V];Ae&&(typeof be=="object"&&typeof Ae=="object"?(be=Gt.c(be),this.mergeContents(be,Ae)):be=Ae),a[V]=be}return new s(a,this.keys,this.overrides)},s.prototype.merge=function(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];for(var a=Gt.c(this.contents),h=Gt.c(this.overrides),v=os(this.keys),V=0,be=o;V<be.length;V++){var Ae=be[V];this.mergeContents(a,Ae.contents);for(var Ne=function(on){var cn=h.filter(function(wn){return tn.g(wn.identifiers,on.identifiers)})[0];cn?rt.mergeContents(cn.contents,on.contents):h.push(Gt.c(on))},rt=this,ut=0,bt=Ae.overrides;ut<bt.length;ut++){var mt=bt[ut];Ne(mt)}for(var $t=0,Kt=Ae.keys;$t<Kt.length;$t++){var Wt=Kt[$t];v.indexOf(Wt)===-1&&v.push(Wt)}}return new s(a,v,h)},s.prototype.freeze=function(){return this.isFrozen=!0,this},s.prototype.mergeContents=function(o,t){for(var a=0,h=Object.keys(t);a<h.length;a++){var v=h[a];if(v in o&&(ln.i(o[v])&&ln.i(t[v]))){this.mergeContents(o[v],t[v]);continue}o[v]=Gt.c(t[v])}},s.prototype.checkAndFreeze=function(o){return this.isFrozen&&!Object.isFrozen(o)?Gt.d(o):o},s.prototype.getContentsForOverrideIdentifer=function(o){for(var t=0,a=this.overrides;t<a.length;t++){var h=a[t];if(h.identifiers.indexOf(o)!==-1)return h.contents}return null},s.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},s.prototype.setValue=function(o,t){this.addKey(o),Object(Ai.b)(this.contents,o,t,function(a){throw new Error(a)})},s.prototype.removeValue=function(o){this.removeKey(o)&&Object(Ai.h)(this.contents,o)},s.prototype.addKey=function(o){for(var t=this.keys.length,a=0;a<t;a++)o.indexOf(this.keys[a])===0&&(t=a);this.keys.splice(t,1,o)},s.prototype.removeKey=function(o){var t=this.keys.indexOf(o);return t!==-1?(this.keys.splice(t,1),!0):!1},s}(),rs=function(s){ko(o,s);function o(){for(var t=this,a=Object(Ai.e)(),h=Object(Ai.c)(),v=[],V=0,be=Object.keys(a);V<be.length;V++){var Ae=be[V];is.b.test(Ae)&&v.push({identifiers:[Object(Ai.g)(Ae).trim()],keys:Object.keys(a[Ae]),contents:Object(Ai.i)(a[Ae],function(Ne){return console.error("Conflict in default settings file: "+Ne)})})}return t=s.call(this,a,h,v)||this,t}return o}(ao),Dr=function(){function s(o,t,a,h,v,V,be,Ae){a===void 0&&(a=new ao),h===void 0&&(h=new ao),v===void 0&&(v=new Ko.b),V===void 0&&(V=new ao),be===void 0&&(be=new Ko.b),Ae===void 0&&(Ae=!0),this._defaultConfiguration=o,this._localUserConfiguration=t,this._remoteUserConfiguration=a,this._workspaceConfiguration=h,this._folderConfigurations=v,this._memoryConfiguration=V,this._memoryConfigurationByResource=be,this._freeze=Ae,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Ko.b,this._userConfiguration=null}return s.prototype.getValue=function(o,t,a){var h=this.getConsolidateConfigurationModel(t,a);return h.getValue(o)},s.prototype.updateValue=function(o,t,a){a===void 0&&(a={});var h;a.resource?(h=this._memoryConfigurationByResource.get(a.resource),h||(h=new ao,this._memoryConfigurationByResource.set(a.resource,h))):h=this._memoryConfiguration,t===void 0?h.removeValue(o):h.setValue(o,t),a.resource||(this._workspaceConsolidatedConfiguration=null)},s.prototype.inspect=function(o,t,a){var h=this.getConsolidateConfigurationModel(t,a),v=this.getFolderConfigurationModelForResource(t.resource,a),V=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration,be=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(o):this._defaultConfiguration.freeze().getValue(o),Ae=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(o):this.userConfiguration.freeze().getValue(o),Ne=t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(o):this.localUserConfiguration.freeze().getValue(o),rt=t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(o):this.remoteUserConfiguration.freeze().getValue(o),ut=a?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(o):this._workspaceConfiguration.freeze().getValue(o):void 0,bt=v?t.overrideIdentifier?v.freeze().override(t.overrideIdentifier).getValue(o):v.freeze().getValue(o):void 0,mt=t.overrideIdentifier?V.override(t.overrideIdentifier).getValue(o):V.getValue(o),$t=h.getValue(o),Kt=tn.e(tn.m(h.overrides.map(function(Wt){return Wt.identifiers}))).filter(function(Wt){return h.getOverrideValue(o,Wt)!==void 0});return{defaultValue:be,userValue:Ae,userLocalValue:Ne,userRemoteValue:rt,workspaceValue:ut,workspaceFolderValue:bt,memoryValue:mt,value:$t,default:be!==void 0?{value:this._defaultConfiguration.freeze().getValue(o),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(o,t.overrideIdentifier):void 0}:void 0,user:Ae!==void 0?{value:this.userConfiguration.freeze().getValue(o),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(o,t.overrideIdentifier):void 0}:void 0,userLocal:Ne!==void 0?{value:this.localUserConfiguration.freeze().getValue(o),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(o,t.overrideIdentifier):void 0}:void 0,userRemote:rt!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(o),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(o,t.overrideIdentifier):void 0}:void 0,workspace:ut!==void 0?{value:this._workspaceConfiguration.freeze().getValue(o),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(o,t.overrideIdentifier):void 0}:void 0,workspaceFolder:bt!==void 0?{value:v==null?void 0:v.freeze().getValue(o),override:t.overrideIdentifier?v==null?void 0:v.freeze().getOverrideValue(o,t.overrideIdentifier):void 0}:void 0,memory:mt!==void 0?{value:V.getValue(o),override:t.overrideIdentifier?V.getOverrideValue(o,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:Kt.length?Kt:void 0}},Object.defineProperty(s.prototype,"userConfiguration",{get:function(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),s.prototype.getConsolidateConfigurationModel=function(o,t){var a=this.getConsolidatedConfigurationModelForResource(o,t);return o.overrideIdentifier?a.override(o.overrideIdentifier):a},s.prototype.getConsolidatedConfigurationModelForResource=function(o,t){var a=o.resource,h=this.getWorkspaceConsolidatedConfiguration();if(t&&a){var v=t.getFolder(a);v&&(h=this.getFolderConsolidatedConfiguration(v.uri)||h);var V=this._memoryConfigurationByResource.get(a);V&&(h=h.merge(V))}return h},s.prototype.getWorkspaceConsolidatedConfiguration=function(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration},s.prototype.getFolderConsolidatedConfiguration=function(o){var t=this._foldersConsolidatedConfigurations.get(o);if(!t){var a=this.getWorkspaceConsolidatedConfiguration(),h=this._folderConfigurations.get(o);h?(t=a.merge(h),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(o,t)):t=a}return t},s.prototype.getFolderConfigurationModelForResource=function(o,t){if(t&&o){var a=t.getFolder(o);if(a)return this._folderConfigurations.get(a.uri)}return},s}(),pn=r("g9ht"),Os=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Ts=function(s){Os(o,s);function o(t,a,h,v){var V=s.call(this)||this;return V._contextKeyService=t,V._commandService=a,V._telemetryService=h,V._notificationService=v,V._onDidUpdateKeybindings=V._register(new N.a),V._currentChord=null,V._currentChordChecker=new Qt.c,V._currentChordStatusMessage=null,V}return Object.defineProperty(o.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:N.b.None},enumerable:!0,configurable:!0}),o.prototype.dispose=function(){s.prototype.dispose.call(this)},o.prototype.getKeybindings=function(){return this._getResolver().getKeybindings()},o.prototype.lookupKeybinding=function(t){var a=this._getResolver().lookupPrimaryKeybinding(t);return a?a.resolvedKeybinding:void 0},o.prototype.softDispatch=function(t,a){var h=this.resolveKeyboardEvent(t);if(h.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var v=h.getDispatchParts()[0];if(v===null)return null;var V=this._contextKeyService.getContext(a),be=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(V,be,v)},o.prototype._enterChordMode=function(t,a){var h=this;this._currentChord={keypress:t,label:a},this._currentChordStatusMessage=this._notificationService.status(pn.a("first.chord","({0}) was pressed. Waiting for second key of chord...",a));var v=Date.now();this._currentChordChecker.cancelAndSet(function(){if(!h._documentHasFocus()){h._leaveChordMode();return}Date.now()-v>5e3&&h._leaveChordMode()},500)},o.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},o.prototype._dispatch=function(t,a){return this._doDispatch(this.resolveKeyboardEvent(t),a)},o.prototype._doDispatch=function(t,a){var h=this,v=!1;if(t.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var V=t.getDispatchParts()[0];if(V===null)return v;var be=this._contextKeyService.getContext(a),Ae=this._currentChord?this._currentChord.keypress:null,Ne=t.getLabel(),rt=this._getResolver().resolve(be,Ae,V);return rt&&rt.enterChord?(v=!0,this._enterChordMode(V,Ne),v):(this._currentChord&&((!rt||!rt.commandId)&&(this._notificationService.status(pn.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,Ne),{hideAfter:10*1e3}),v=!0)),this._leaveChordMode(),rt&&rt.commandId&&(rt.bubble||(v=!0),typeof rt.commandArgs=="undefined"?this._commandService.executeCommand(rt.commandId).then(void 0,function(ut){return h._notificationService.warn(ut)}):this._commandService.executeCommand(rt.commandId,rt.commandArgs).then(void 0,function(ut){return h._notificationService.warn(ut)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:rt.commandId,from:"keybinding"})),v)},o.prototype.mightProducePrintableCharacter=function(t){return t.ctrlKey||t.metaKey?!1:t.keyCode>=31&&t.keyCode<=56||t.keyCode>=21&&t.keyCode<=30},o}(Ht.a),_i=r("bBv/"),mr=function(){function s(o,t){this._defaultKeybindings=o,this._defaultBoundCommands=new Map;for(var a=0,h=o.length;a<h;a++){var v=o[a].command;v&&this._defaultBoundCommands.set(v,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=s.combine(o,t);for(var a=0,h=this._keybindings.length;a<h;a++){var V=this._keybindings[a];if(V.keypressParts.length===0)continue;this._addKeyPress(V.keypressParts[0],V)}}return s._isTargetedForRemoval=function(o,t,a,h,v){if(o.command!==h)return!1;if(t&&o.keypressParts[0]!==t)return!1;if(a&&o.keypressParts[1]!==a)return!1;if(v){if(!o.when)return!1;if(!v.equals(o.when))return!1}return!0},s.combine=function(o,t){o=o.slice(0);for(var a=[],h=0,v=t;h<v.length;h++){var V=v[h];if(!V.command||V.command.length===0||V.command.charAt(0)!=="-"){a.push(V);continue}for(var be=V.command.substr(1),Ae=V.keypressParts[0],Ne=V.keypressParts[1],rt=V.when,ut=o.length-1;ut>=0;ut--)this._isTargetedForRemoval(o[ut],Ae,Ne,be,rt)&&o.splice(ut,1)}return o.concat(a)},s.prototype._addKeyPress=function(o,t){var a=this._map.get(o);if(typeof a=="undefined"){this._map.set(o,[t]),this._addToLookupMap(t);return}for(var h=a.length-1;h>=0;h--){var v=a[h];if(v.command===t.command)continue;var V=v.keypressParts.length>1,be=t.keypressParts.length>1;if(V&&be&&v.keypressParts[1]!==t.keypressParts[1])continue;s.whenIsEntirelyIncluded(v.when,t.when)&&this._removeFromLookupMap(v)}a.push(t),this._addToLookupMap(t)},s.prototype._addToLookupMap=function(o){if(!o.command)return;var t=this._lookupMap.get(o.command);typeof t=="undefined"?(t=[o],this._lookupMap.set(o.command,t)):t.push(o)},s.prototype._removeFromLookupMap=function(o){if(!o.command)return;var t=this._lookupMap.get(o.command);if(typeof t=="undefined")return;for(var a=0,h=t.length;a<h;a++)if(t[a]===o){t.splice(a,1);return}},s.whenIsEntirelyIncluded=function(o,t){return t?o?this._implies(o,t):!1:!0},s._implies=function(o,t){for(var a=o.negate(),h=function(bt){return bt instanceof _i.b?bt.expr:[bt]},v=h(a).concat(h(t)),V=0;V<v.length;V++)for(var be=v[V],Ae=be.negate(),Ne=V+1;Ne<v.length;Ne++){var rt=v[Ne];if(Ae.equals(rt))return!0}return!1},s.prototype.getKeybindings=function(){return this._keybindings},s.prototype.lookupPrimaryKeybinding=function(o){var t=this._lookupMap.get(o);return typeof t=="undefined"||t.length===0?null:t[t.length-1]},s.prototype.resolve=function(o,t,a){var h=null;if(t!==null){var v=this._map.get(t);if(typeof v=="undefined")return null;h=[];for(var V=0,be=v.length;V<be;V++){var Ae=v[V];Ae.keypressParts[1]===a&&h.push(Ae)}}else{var v=this._map.get(a);if(typeof v=="undefined")return null;h=v}var Ne=this._findCommand(o,h);return Ne?t===null&&Ne.keypressParts.length>1&&Ne.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:Ne.command,commandArgs:Ne.commandArgs,bubble:Ne.bubble}:null},s.prototype._findCommand=function(o,t){for(var a=t.length-1;a>=0;a--){var h=t[a];if(!s.contextMatchesRules(o,h.when))continue;return h}return null},s.contextMatchesRules=function(o,t){return t?t.evaluate(o):!0},s}(),ss=r("sobA"),as=function(){function s(o,t,a,h,v){this.resolvedKeybinding=o,this.keypressParts=o?Ms(o.getDispatchParts()):[],this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=a,this.when=h,this.isDefault=v}return s}();function Ms(s){for(var o=[],t=0,a=s.length;t<a;t++){var h=s[t];if(!h)return o;o.push(h)}return o}var jo=function(){function s(o,t,a){a===void 0&&(a=t),this.modifierLabels=[null],this.modifierLabels[2]=o,this.modifierLabels[1]=t,this.modifierLabels[3]=a}return s.prototype.toLabel=function(o,t,a){if(t.length===0)return null;for(var h=[],v=0,V=t.length;v<V;v++){var be=t[v],Ae=a(be);if(Ae===null)return null;h[v]=da(be,Ae,this.modifierLabels[o])}return h.join(" ")},s}(),ls=new jo({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:pn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:pn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:pn.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),$s=new jo({ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:pn.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:pn.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:pn.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:pn.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function da(s,o,t){if(o===null)return"";var a=[];return s.ctrlKey&&a.push(t.ctrlKey),s.shiftKey&&a.push(t.shiftKey),s.altKey&&a.push(t.altKey),s.metaKey&&a.push(t.metaKey),a.push(o),a.join(t.separator)}var Js=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Qs=function(s){Js(o,s);function o(t,a){var h=s.call(this)||this;if(a.length===0)throw Object(nn.b)("parts");return h._os=t,h._parts=a,h}return o.prototype.getLabel=function(){var t=this;return ls.toLabel(this._os,this._parts,function(a){return t._getLabel(a)})},o.prototype.getAriaLabel=function(){var t=this;return $s.toLabel(this._os,this._parts,function(a){return t._getAriaLabel(a)})},o.prototype.isChord=function(){return this._parts.length>1},o.prototype.getParts=function(){var t=this;return this._parts.map(function(a){return t._getPart(a)})},o.prototype._getPart=function(t){return new F.d(t.ctrlKey,t.shiftKey,t.altKey,t.metaKey,this._getLabel(t),this._getAriaLabel(t))},o.prototype.getDispatchParts=function(){var t=this;return this._parts.map(function(a){return t._getDispatchPart(a)})},o}(F.c),ua=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ds=function(s){ua(o,s);function o(t,a){return s.call(this,a,t.parts)||this}return o.prototype._keyCodeToUILabel=function(t){if(this._os===2)switch(t){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return F.b.toString(t)},o.prototype._getLabel=function(t){return t.isDuplicateModifierCase()?"":this._keyCodeToUILabel(t.keyCode)},o.prototype._getAriaLabel=function(t){return t.isDuplicateModifierCase()?"":F.b.toString(t.keyCode)},o.prototype._getDispatchPart=function(t){return o.getDispatchStr(t)},o.getDispatchStr=function(t){if(t.isModifierKey())return null;var a="";return t.ctrlKey&&(a+="ctrl+"),t.shiftKey&&(a+="shift+"),t.altKey&&(a+="alt+"),t.metaKey&&(a+="meta+"),a+=F.b.toString(t.keyCode),a},o}(Qs),wo=r("Ym/J"),xs=r("dEFY"),Ni;(function(s){s.noSelection=pn.a("noSelection","No selection"),s.singleSelectionRange=pn.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),s.singleSelection=pn.a("singleSelection","Line {0}, Column {1}"),s.multiSelectionRange=pn.a("multiSelectionRange","{0} selections ({1} characters selected)"),s.multiSelection=pn.a("multiSelection","{0} selections"),s.emergencyConfOn=pn.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),s.openingDocs=pn.a("openingDocs","Now opening the Editor Accessibility documentation page."),s.readonlyDiffEditor=pn.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),s.editableDiffEditor=pn.a("editableDiffEditor"," in a pane of a diff editor."),s.readonlyEditor=pn.a("readonlyEditor"," in a read-only code editor"),s.editableEditor=pn.a("editableEditor"," in a code editor"),s.changeConfigToOnMac=pn.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),s.changeConfigToOnWinLinux=pn.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),s.auto_on=pn.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),s.auto_off=pn.a("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),s.tabFocusModeOnMsg=pn.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),s.tabFocusModeOnMsgNoKb=pn.a("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."),s.tabFocusModeOffMsg=pn.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),s.tabFocusModeOffMsgNoKb=pn.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),s.openDocMac=pn.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),s.openDocWinLinux=pn.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),s.outroMsg=pn.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),s.showAccessibilityHelpAction=pn.a("showAccessibilityHelpAction","Show Accessibility Help")})(Ni||(Ni={}));var Go;(function(s){s.inspectTokensAction=pn.a("inspectTokens","Developer: Inspect Tokens")})(Go||(Go={}));var Xo;(function(s){s.gotoLineLabelValidLineAndColumn=pn.a("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),s.gotoLineLabelValidLine=pn.a("gotoLineLabelValidLine","Go to line {0}"),s.gotoLineLabelEmptyWithLineLimit=pn.a("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),s.gotoLineLabelEmptyWithLineAndColumnLimit=pn.a("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),s.gotoLineAriaLabel=pn.a("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),s.gotoLineActionInput=pn.a("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),s.gotoLineActionLabel=pn.a("gotoLineActionLabel","Go to Line...")})(Xo||(Xo={}));var us;(function(s){s.ariaLabelEntryWithKey=pn.a("ariaLabelEntryWithKey","{0}, {1}, commands"),s.ariaLabelEntry=pn.a("ariaLabelEntry","{0}, commands"),s.quickCommandActionInput=pn.a("quickCommandActionInput","Type the name of an action you want to execute"),s.quickCommandActionLabel=pn.a("quickCommandActionLabel","Command Palette")})(us||(us={}));var Ur;(function(s){s.entryAriaLabel=pn.a("entryAriaLabel","{0}, symbols"),s.quickOutlineActionInput=pn.a("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),s.quickOutlineActionLabel=pn.a("quickOutlineActionLabel","Go to Symbol..."),s._symbols_=pn.a("symbols","symbols ({0})"),s._modules_=pn.a("modules","modules ({0})"),s._class_=pn.a("class","classes ({0})"),s._interface_=pn.a("interface","interfaces ({0})"),s._method_=pn.a("method","methods ({0})"),s._function_=pn.a("function","functions ({0})"),s._property_=pn.a("property","properties ({0})"),s._variable_=pn.a("variable","variables ({0})"),s._variable2_=pn.a("variable2","variables ({0})"),s._constructor_=pn.a("_constructor","constructors ({0})"),s._call_=pn.a("call","calls ({0})")})(Ur||(Ur={}));var Yo;(function(s){s.editorViewAccessibleLabel=pn.a("editorViewAccessibleLabel","Editor content"),s.accessibilityHelpMessageIE=pn.a("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),s.accessibilityHelpMessage=pn.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(Yo||(Yo={}));var cs;(function(s){s.toggleHighContrast=pn.a("toggleHighContrast","Toggle High Contrast Theme")})(cs||(cs={}));var nr;(function(s){s.bulkEditServiceSummary=pn.a("bulkEditServiceSummary","Made {0} edits in {1} files")})(nr||(nr={}));var qs=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),vr=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},hs=function(s,o){return function(t,a){o(t,a,s)}},ea=function(){for(var s=0,o=0,t=arguments.length;o<t;o++)s+=arguments[o].length;for(var a=Array(s),h=0,o=0;o<t;o++)for(var v=arguments[o],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];return a},As=function(){function s(o){this.model=o,this._onDispose=new N.a}return Object.defineProperty(s.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),s.prototype.dispose=function(){this._onDispose.fire()},s}();function Ns(s,o,t){return Object(gr.a)(s)?o(s):t(s)}var Zo=function(){function s(o){this.modelService=o}return s.prototype.setEditor=function(o){this.editor=o},s.prototype.createModelReference=function(o){var t=this,a=null;return this.editor&&(a=Ns(this.editor,function(h){return t.findModel(h,o)},function(h){return t.findModel(h.getOriginalEditor(),o)||t.findModel(h.getModifiedEditor(),o)})),a?Promise.resolve(new Ht.c(new As(a))):Promise.reject(new Error("Model not found"))},s.prototype.findModel=function(o,t){var a=this.modelService?this.modelService.getModel(t):o.getModel();return a&&a.uri.toString()!==t.toString()?null:a},s}(),Vr=function(){function s(){}return s.prototype.show=function(){return s.NULL_PROGRESS_RUNNER},s.prototype.showWhile=function(o,t){return Promise.resolve(void 0)},s.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},s}(),fs=function(){function s(){}return s}(),ps=function(){function s(){}return s.prototype.info=function(o){return this.notify({severity:So.a.Info,message:o})},s.prototype.warn=function(o){return this.notify({severity:So.a.Warning,message:o})},s.prototype.error=function(o){return this.notify({severity:So.a.Error,message:o})},s.prototype.notify=function(o){switch(o.severity){case So.a.Error:console.error(o.message);break;case So.a.Warning:console.warn(o.message);break;default:console.log(o.message);break}return s.NO_OP},s.prototype.status=function(o,t){return Ht.a.None},s.NO_OP=new wo.b,s}(),zr=function(){function s(o){this._onWillExecuteCommand=new N.a,this._onDidExecuteCommand=new N.a,this._instantiationService=o,this._dynamicCommands=Object.create(null)}return s.prototype.addCommand=function(o){var t=this,a=o.id;return this._dynamicCommands[a]=o,Object(Ht.h)(function(){delete t._dynamicCommands[a]})},s.prototype.executeCommand=function(o){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];var h=we.a.getCommand(o)||this._dynamicCommands[o];if(!h)return Promise.reject(new Error("command '"+o+"' not found"));try{this._onWillExecuteCommand.fire({commandId:o,args:t});var v=this._instantiationService.invokeFunction.apply(this._instantiationService,ea([h.handler],t));return this._onDidExecuteCommand.fire({commandId:o,args:t}),Promise.resolve(v)}catch(V){return Promise.reject(V)}},s}(),yr=function(s){qs(o,s);function o(t,a,h,v,V){var be=s.call(this,t,a,h,v)||this;return be._cachedResolver=null,be._dynamicKeybindings=[],be._register(Xe.i(V,Xe.c.KEY_DOWN,function(Ae){var Ne=new co.a(Ae),rt=be._dispatch(Ne,Ne.target);rt&&(Ne.preventDefault(),Ne.stopPropagation())})),be}return o.prototype.addDynamicKeybinding=function(t,a,h,v){var V=this,be=Object(F.f)(a,sn.a),Ae=new Ht.b;be&&(this._dynamicKeybindings.push({keybinding:be,command:t,when:v,weight1:1e3,weight2:0}),Ae.add(Object(Ht.h)(function(){for(var rt=0;rt<V._dynamicKeybindings.length;rt++){var ut=V._dynamicKeybindings[rt];if(ut.command===t){V._dynamicKeybindings.splice(rt,1),V.updateResolver({source:1});return}}})));var Ne=this._commandService;if(Ne instanceof zr)Ae.add(Ne.addCommand({id:t,handler:h}));else throw new Error("Unknown command service!");return this.updateResolver({source:1}),Ae},o.prototype.updateResolver=function(t){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(t)},o.prototype._getResolver=function(){if(!this._cachedResolver){var t=this._toNormalizedKeybindingItems(ss.a.getDefaultKeybindings(),!0),a=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new mr(t,a)}return this._cachedResolver},o.prototype._documentHasFocus=function(){return document.hasFocus()},o.prototype._toNormalizedKeybindingItems=function(t,a){for(var h=[],v=0,V=0,be=t;V<be.length;V++){var Ae=be[V],Ne=Ae.when||void 0,rt=Ae.keybinding;if(!rt)h[v++]=new as(void 0,Ae.command,Ae.commandArgs,Ne,a);else for(var ut=this.resolveKeybinding(rt),bt=0,mt=ut;bt<mt.length;bt++){var $t=mt[bt];h[v++]=new as($t,Ae.command,Ae.commandArgs,Ne,a)}}return h},o.prototype.resolveKeybinding=function(t){return[new ds(t,sn.a)]},o.prototype.resolveKeyboardEvent=function(t){var a=new F.e(t.ctrlKey,t.shiftKey,t.altKey,t.metaKey,t.keyCode).toChord();return new ds(a,sn.a)},o}(Ts);function Or(s){return s&&typeof s=="object"&&(!s.overrideIdentifier||typeof s.overrideIdentifier=="string")&&(!s.resource||s.resource instanceof U.a)}var Tr=function(){function s(){this._onDidChangeConfiguration=new N.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Dr(new rs,new ao)}return s.prototype.configuration=function(){return this._configuration},s.prototype.getValue=function(o,t){var a=typeof o=="string"?o:void 0,h=Or(o)?o:Or(t)?t:{};return this.configuration().getValue(a,h,void 0)},s.prototype.updateValue=function(o,t,a,h){return this.configuration().updateValue(o,t),Promise.resolve()},s.prototype.inspect=function(o,t){return t===void 0&&(t={}),this.configuration().inspect(o,t,void 0)},s}(),Hr=function(){function s(o){var t=this;this.configurationService=o,this._onDidChangeConfiguration=new N.a,this.configurationService.onDidChangeConfiguration(function(a){t._onDidChangeConfiguration.fire({affectedKeys:a.affectedKeys,affectsConfiguration:function(v,V){return a.affectsConfiguration(V)}})})}return s.prototype.getValue=function(o,t,a){var h=j.a.isIPosition(t)?t:null,v=h?typeof a=="string"?a:void 0:typeof t=="string"?t:void 0;return typeof v=="undefined"?this.configurationService.getValue():this.configurationService.getValue(v)},s}(),gs=function(){function s(o){this.configurationService=o}return s.prototype.getEOL=function(o,t){var a=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:o});return a&&a!=="auto"?a:sn.d||sn.e?`
|
|
`:`\r
|
|
`},s=vr([hs(0,Ai.a)],s),s}(),Wo=function(){function s(){}return s.prototype.publicLog=function(o,t){return Promise.resolve(void 0)},s.prototype.publicLog2=function(o,t){return this.publicLog(o,t)},s}(),Rs=function(){function s(){var o=U.a.from({scheme:s.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new xs.b({uri:o,name:"",index:0})]}}return s.prototype.getWorkspace=function(){return this.workspace},s.prototype.getWorkspaceFolder=function(o){return o&&o.scheme===s.SCHEME?this.workspace.folders[0]:null},s.SCHEME="inmemory",s}();function ho(s,o,t){if(!o)return;if(!(s instanceof Tr))return;Object.keys(o).forEach(function(a){Object(Br.c)(a)&&s.updateValue("editor."+a,o[a]),t&&Object(Br.b)(a)&&s.updateValue("diffEditor."+a,o[a])})}var oi=function(){function s(o){this._modelService=o}return s.prototype.hasPreviewHandler=function(){return!1},s.prototype.apply=function(o,t){var a=new Map;if(o.edits)for(var h=0,v=o.edits;h<v.length;h++){var V=v[h];if(!gt.A.is(V))return Promise.reject(new Error("bad edit - only text edits are supported"));var be=this._modelService.getModel(V.resource);if(!be)return Promise.reject(new Error("bad edit - model not found"));var Ae=a.get(be);Ae||(Ae=[],a.set(be,Ae)),Ae.push(V.edit)}var Ne=0,rt=0;return a.forEach(function(ut,bt){bt.pushStackElement(),bt.pushEditOperations([],ut.map(function(mt){return Lr.a.replaceMove(G.a.lift(mt.range),mt.text)}),function(){return[]}),bt.pushStackElement(),rt+=1,Ne+=ut.length}),Promise.resolve({selection:void 0,ariaSummary:Zn.r(nr.bulkEditServiceSummary,Ne,rt)})},s}(),ta=function(){function s(){}return s.prototype.getUriLabel=function(o,t){return o.scheme==="file"?o.fsPath:o.path},s}(),Is=function(){function s(o){this._container=o,this.onLayout=N.b.None}return Object.defineProperty(s.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),s}(),Ps=r("mTMv"),ms=r("5xAg"),Mr=r("E2Od"),Fs=r("LrZB"),ir=r("6+xD"),ks=r("carD"),si=r("+qpR"),js=r("VKfd"),na=r("sWcr"),Mo=r("SPtt"),or=r("AyeG"),rr=r("Mn97"),no=r("Whdu"),Co=r("4u7V"),wi=r("0BkX"),ki=r("TwZP"),xr=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Ar=3,sr=function(){function s(o,t,a,h){this.originalLineStart=o,this.originalLineEnd=t,this.modifiedLineStart=a,this.modifiedLineEnd=h}return s.prototype.getType=function(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0},s}(),Kr=function(){function s(o){this.entries=o}return s}(),Nr=function(s){xr(o,s);function o(t){var a=s.call(this)||this;return a._width=0,a._diffEditor=t,a._isVisible=!1,a.shadow=Object(ir.b)(document.createElement("div")),a.shadow.setClassName("diff-review-shadow"),a.actionBarContainer=Object(ir.b)(document.createElement("div")),a.actionBarContainer.setClassName("diff-review-actions"),a._actionBar=a._register(new Mo.a(a.actionBarContainer.domNode)),a._actionBar.push(new rr.a("diffreview.close",pn.a("label.close","Close"),"close-diff-review",!0,function(){return a.hide(),Promise.resolve(null)}),{label:!1,icon:!0}),a.domNode=Object(ir.b)(document.createElement("div")),a.domNode.setClassName("diff-review monaco-editor-background"),a._content=Object(ir.b)(document.createElement("div")),a._content.setClassName("diff-review-content"),a.scrollbar=a._register(new or.a(a._content.domNode,{})),a.domNode.domNode.appendChild(a.scrollbar.getDomNode()),a._register(t.onDidUpdateDiff(function(){if(!a._isVisible)return;a._diffs=a._compute(),a._render()})),a._register(t.getModifiedEditor().onDidChangeCursorPosition(function(){if(!a._isVisible)return;a._render()})),a._register(t.getOriginalEditor().onDidFocusEditorWidget(function(){a._isVisible&&a.hide()})),a._register(t.getModifiedEditor().onDidFocusEditorWidget(function(){a._isVisible&&a.hide()})),a._register(Xe.n(a.domNode.domNode,"click",function(h){h.preventDefault();var v=Xe.w(h.target,"diff-review-row");v&&a._goToRow(v)})),a._register(Xe.n(a.domNode.domNode,"keydown",function(h){(h.equals(18)||h.equals(2048|18)||h.equals(512|18))&&(h.preventDefault(),a._goToRow(a._getNextRow())),(h.equals(16)||h.equals(2048|16)||h.equals(512|16))&&(h.preventDefault(),a._goToRow(a._getPrevRow())),(h.equals(9)||h.equals(2048|9)||h.equals(512|9)||h.equals(1024|9))&&(h.preventDefault(),a.hide()),(h.equals(10)||h.equals(3))&&(h.preventDefault(),a.accept())})),a._diffs=[],a._currentDiff=null,a}return o.prototype.prev=function(){var t=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var a=-1,h=0,v=this._diffs.length;h<v;h++)if(this._diffs[h]===this._currentDiff){a=h;break}t=this._diffs.length+a-1}else t=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;t=t%this._diffs.length,this._diffEditor.setPosition(new j.a(this._diffs[t].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())},o.prototype.next=function(){var t=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var a=-1,h=0,v=this._diffs.length;h<v;h++)if(this._diffs[h]===this._currentDiff){a=h;break}t=a+1}else t=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;t=t%this._diffs.length,this._diffEditor.setPosition(new j.a(this._diffs[t].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())},o.prototype.accept=function(){var t=-1,a=this._getCurrentFocusedRow();if(a){var h=parseInt(a.getAttribute("data-line"),10);isNaN(h)||(t=h)}this.hide(),t!==-1&&(this._diffEditor.setPosition(new j.a(t,1)),this._diffEditor.revealPosition(new j.a(t,1),1))},o.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},o.prototype._getPrevRow=function(){var t=this._getCurrentFocusedRow();return t?t.previousElementSibling?t.previousElementSibling:t:this._getFirstRow()},o.prototype._getNextRow=function(){var t=this._getCurrentFocusedRow();return t?t.nextElementSibling?t.nextElementSibling:t:this._getFirstRow()},o.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},o.prototype._getCurrentFocusedRow=function(){var t=document.activeElement;return t&&/diff-review-row/.test(t.className)?t:null},o.prototype._goToRow=function(t){var a=this._getCurrentFocusedRow();t.tabIndex=0,t.focus(),a&&a!==t&&(a.tabIndex=-1),this.scrollbar.scanDomNode()},o.prototype.isVisible=function(){return this._isVisible},o.prototype.layout=function(t,a,h){this._width=a,this.shadow.setTop(t-6),this.shadow.setWidth(a),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(t),this.domNode.setWidth(a),this.domNode.setHeight(h),this._content.setHeight(h),this._content.setWidth(a),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))},o.prototype._compute=function(){var t=this._diffEditor.getLineChanges();if(!t||t.length===0)return[];var a=this._diffEditor.getOriginalEditor().getModel(),h=this._diffEditor.getModifiedEditor().getModel();return!a||!h?[]:o._mergeAdjacent(t,a.getLineCount(),h.getLineCount())},o._mergeAdjacent=function(t,a,h){if(!t||t.length===0)return[];for(var v=[],V=0,be=0,Ae=t.length;be<Ae;be++){var Ne=t[be],rt=Ne.originalStartLineNumber,ut=Ne.originalEndLineNumber,bt=Ne.modifiedStartLineNumber,mt=Ne.modifiedEndLineNumber,$t=[],Kt=0;{var Wt=ut===0?rt:rt-1,Bt=mt===0?bt:bt-1,on=1,cn=1;if(be>0){var wn=t[be-1];wn.originalEndLineNumber===0?on=wn.originalStartLineNumber+1:on=wn.originalEndLineNumber+1,wn.modifiedEndLineNumber===0?cn=wn.modifiedStartLineNumber+1:cn=wn.modifiedEndLineNumber+1}var _n=Wt-Ar+1,kn=Bt-Ar+1;if(_n<on){var Wn=on-_n;_n=_n+Wn,kn=kn+Wn}if(kn<cn){var Wn=cn-kn;_n=_n+Wn,kn=kn+Wn}$t[Kt++]=new sr(_n,Wt,kn,Bt)}ut!==0&&($t[Kt++]=new sr(rt,ut,0,0)),mt!==0&&($t[Kt++]=new sr(0,0,bt,mt));{var jn=ut===0?rt+1:ut+1,ei=mt===0?bt+1:mt+1,Hn=a,vn=h;if(be+1<Ae){var ni=t[be+1];ni.originalEndLineNumber===0?Hn=ni.originalStartLineNumber:Hn=ni.originalStartLineNumber-1,ni.modifiedEndLineNumber===0?vn=ni.modifiedStartLineNumber:vn=ni.modifiedStartLineNumber-1}var $n=jn+Ar-1,pi=ei+Ar-1;if($n>Hn){var Wn=Hn-$n;$n=$n+Wn,pi=pi+Wn}if(pi>vn){var Wn=vn-pi;$n=$n+Wn,pi=pi+Wn}$t[Kt++]=new sr(jn,$n,ei,pi)}v[V++]=new Kr($t)}for(var xi=v[0].entries,To=[],bo=0,be=1,Ae=v.length;be<Ae;be++){var Io=v[be].entries,Sr=xi[xi.length-1],Ds=Io[0];if(Sr.getType()===0&&Ds.getType()===0&&Ds.originalLineStart<=Sr.originalLineEnd){xi[xi.length-1]=new sr(Sr.originalLineStart,Ds.originalLineEnd,Sr.modifiedLineStart,Ds.modifiedLineEnd),xi=xi.concat(Io.slice(1));continue}To[bo++]=new Kr(xi),xi=Io}return To[bo++]=new Kr(xi),To},o.prototype._findDiffIndex=function(t){for(var a=t.lineNumber,h=0,v=this._diffs.length;h<v;h++){var V=this._diffs[h].entries,be=V[V.length-1].modifiedLineEnd;if(a<=be)return h}return 0},o.prototype._render=function(){var t=this._diffEditor.getOriginalEditor().getOptions(),a=this._diffEditor.getModifiedEditor().getOptions(),h=this._diffEditor.getOriginalEditor().getModel(),v=this._diffEditor.getModifiedEditor().getModel(),V=h.getOptions(),be=v.getOptions();if(!this._isVisible||!h||!v){Xe.s(this._content.domNode),this._currentDiff=null,this.scrollbar.scanDomNode();return}var Ae=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[Ae]===this._currentDiff)return;this._currentDiff=this._diffs[Ae];var Ne=this._diffs[Ae].entries,rt=document.createElement("div");rt.className="diff-review-table",rt.setAttribute("role","list"),si.a.applyFontInfoSlow(rt,a.get(34));for(var ut=0,bt=0,mt=0,$t=0,Kt=0,Wt=Ne.length;Kt<Wt;Kt++){var Bt=Ne[Kt],on=Bt.originalLineStart,cn=Bt.originalLineEnd,wn=Bt.modifiedLineStart,_n=Bt.modifiedLineEnd;on!==0&&(ut===0||on<ut)&&(ut=on),cn!==0&&(bt===0||cn>bt)&&(bt=cn),wn!==0&&(mt===0||wn<mt)&&(mt=wn),_n!==0&&($t===0||_n>$t)&&($t=_n)}var kn=document.createElement("div");kn.className="diff-review-row";var Wn=document.createElement("div");Wn.className="diff-review-cell diff-review-summary";var jn=bt-ut+1,ei=$t-mt+1;Wn.appendChild(document.createTextNode(Ae+1+"/"+this._diffs.length+": @@ -"+ut+","+jn+" +"+mt+","+ei+" @@")),kn.setAttribute("data-line",String(mt));var Hn=function(xi){return xi===0?pn.a("no_lines","no lines"):xi===1?pn.a("one_line","1 line"):pn.a("more_lines","{0} lines",xi)},vn=Hn(jn),ni=Hn(ei);kn.setAttribute("aria-label",pn.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",Ae+1,this._diffs.length,ut,vn,mt,ni)),kn.appendChild(Wn),kn.setAttribute("role","listitem"),rt.appendChild(kn);for(var $n=mt,Kt=0,Wt=Ne.length;Kt<Wt;Kt++){var Bt=Ne[Kt];o._renderSection(rt,Bt,$n,this._width,t,h,V,a,v,be),Bt.modifiedLineStart!==0&&($n=Bt.modifiedLineEnd)}Xe.s(this._content.domNode),this._content.domNode.appendChild(rt),this.scrollbar.scanDomNode()},o._renderSection=function(t,a,h,v,V,be,Ae,Ne,rt,ut){var bt=a.getType(),mt="diff-review-row",$t="",Kt="diff-review-spacer";switch(bt){case 1:mt="diff-review-row line-insert",$t=" char-insert",Kt="diff-review-spacer insert-sign";break;case 2:mt="diff-review-row line-delete",$t=" char-delete",Kt="diff-review-spacer delete-sign";break}for(var Wt=a.originalLineStart,Bt=a.originalLineEnd,on=a.modifiedLineStart,cn=a.modifiedLineEnd,wn=Math.max(cn-on,Bt-Wt),_n=V.get(107),kn=_n.glyphMarginWidth+_n.lineNumbersWidth,Wn=Ne.get(107),jn=10+Wn.glyphMarginWidth+Wn.lineNumbersWidth,ei=0;ei<=wn;ei++){var Hn=Wt===0?0:Wt+ei,vn=on===0?0:on+ei,ni=document.createElement("div");ni.style.minWidth=v+"px",ni.className=mt,ni.setAttribute("role","listitem"),vn!==0&&(h=vn),ni.setAttribute("data-line",String(h));var $n=document.createElement("div");$n.className="diff-review-cell",ni.appendChild($n);var pi=document.createElement("span");pi.style.width=kn+"px",pi.style.minWidth=kn+"px",pi.className="diff-review-line-number"+$t,Hn!==0?pi.appendChild(document.createTextNode(String(Hn))):pi.innerHTML=" ",$n.appendChild(pi);var xi=document.createElement("span");xi.style.width=jn+"px",xi.style.minWidth=jn+"px",xi.style.paddingRight="10px",xi.className="diff-review-line-number"+$t,vn!==0?xi.appendChild(document.createTextNode(String(vn))):xi.innerHTML=" ",$n.appendChild(xi);var To=document.createElement("span");To.className=Kt,To.innerHTML="  ",$n.appendChild(To);var bo=void 0;vn!==0?($n.insertAdjacentHTML("beforeend",this._renderLine(rt,Ne,ut.tabSize,vn)),bo=rt.getLineContent(vn)):($n.insertAdjacentHTML("beforeend",this._renderLine(be,V,Ae.tabSize,Hn)),bo=be.getLineContent(Hn)),bo.length===0&&(bo=pn.a("blankLine","blank"));var Io="";switch(bt){case 0:Io=pn.a("equalLine","original {0}, modified {1}: {2}",Hn,vn,bo);break;case 1:Io=pn.a("insertLine","+ modified {0}: {1}",vn,bo);break;case 2:Io=pn.a("deleteLine","- original {0}: {1}",Hn,bo);break}ni.setAttribute("aria-label",Io),t.appendChild(ni)}},o._renderLine=function(t,a,h,v){var V=t.getLineContent(v),be=a.get(34),Ae=(0<<11|1<<14|2<<23)>>>0,Ne=new Uint32Array(2);Ne[0]=V.length,Ne[1]=Ae;var rt=new Oe.a(Ne,V),ut=Qe.d.isBasicASCII(V,t.mightContainNonBasicASCII()),bt=Qe.d.containsRTL(V,ut,t.mightContainRTL()),mt=Object(it.e)(new it.c(be.isMonospace&&!a.get(23),be.canUseHalfwidthRightwardsArrow,V,!1,ut,bt,0,rt,[],h,0,be.spaceWidth,be.middotWidth,a.get(88),a.get(74),a.get(69),a.get(35)!==I.d.OFF,null));return mt.html},o}(Ht.a);Object(ki.e)(function(s,o){var t=s.getColor(Co.j);t&&o.addRule(".monaco-diff-editor .diff-review-line-number { color: "+t+"; }");var a=s.getColor(wi.Tb);a&&o.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+a+" 0 -6px 6px -6px inset; }")});var ar=function(s){xr(o,s);function o(){return s.call(this,{id:"editor.action.diffReview.next",label:pn.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:_i.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return o.prototype.run=function(t,a){var h=Lo(t);h&&h.diffReviewNext()},o}(no.b),_o=function(s){xr(o,s);function o(){return s.call(this,{id:"editor.action.diffReview.prev",label:pn.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:_i.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1024|65,weight:100}})||this}return o.prototype.run=function(t,a){var h=Lo(t);h&&h.diffReviewPrev()},o}(no.b);function Lo(s){for(var o=s.get(Ke.a),t=o.listDiffEditors(),a=0,h=t.length;a<h;a++){var v=t[a];if(v.hasWidgetFocus())return v}return null}Object(no.f)(ar),Object(no.f)(_o);var vs=r("I+kL"),fo=r("8ZZ4"),lr=r("kEqQ"),Ws=r("UFql"),Bo=r("j0h8"),Eo=r("sjWa"),Bs=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),po=function(s,o,t,a){function h(v){return v instanceof t?v:new t(function(V){V(v)})}return new(t||(t=Promise))(function(v,V){function be(rt){try{Ne(a.next(rt))}catch(ut){V(ut)}}function Ae(rt){try{Ne(a.throw(rt))}catch(ut){V(ut)}}function Ne(rt){rt.done?v(rt.value):h(rt.value).then(be,Ae)}Ne((a=a.apply(s,o||[])).next())})},dr=function(s,o){var t={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},a,h,v,V;return V={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(V[Symbol.iterator]=function(){return this}),V;function be(Ne){return function(rt){return Ae([Ne,rt])}}function Ae(Ne){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,h&&(v=Ne[0]&2?h.return:Ne[0]?h.throw||((v=h.return)&&v.call(h),0):h.next)&&!(v=v.call(h,Ne[1])).done)return v;(h=0,v)&&(Ne=[Ne[0]&2,v.value]);switch(Ne[0]){case 0:case 1:v=Ne;break;case 4:return t.label++,{value:Ne[1],done:!1};case 5:t.label++,h=Ne[1],Ne=[0];continue;case 7:Ne=t.ops.pop(),t.trys.pop();continue;default:if(!(v=t.trys,v=v.length>0&&v[v.length-1])&&(Ne[0]===6||Ne[0]===2)){t=0;continue}if(Ne[0]===3&&(!v||Ne[1]>v[0]&&Ne[1]<v[3])){t.label=Ne[1];break}if(Ne[0]===6&&t.label<v[1]){t.label=v[1],v=Ne;break}if(v&&t.label<v[2]){t.label=v[2],t.ops.push(Ne);break}v[2]&&t.ops.pop(),t.trys.pop();continue}Ne=o.call(s,t)}catch(rt){Ne=[6,rt],h=0}finally{a=v=0}if(Ne[0]&5)throw Ne[1];return{value:Ne[0]?Ne[1]:void 0,done:!0}}},Us=function(s){Bs(o,s);function o(t,a,h,v,V,be){var Ae=s.call(this)||this;Ae._viewZoneId=t,Ae._marginDomNode=a,Ae.editor=h,Ae.diff=v,Ae._contextMenuService=V,Ae._clipboardService=be,Ae._visibility=!1,Ae._marginDomNode.style.zIndex="10",Ae._diffActions=document.createElement("div"),Ae._diffActions.className="codicon codicon-lightbulb lightbulb-glyph",Ae._diffActions.style.position="absolute";var Ne=h.getOption(49),rt=h.getModel().getEOL();Ae._diffActions.style.right="0px",Ae._diffActions.style.visibility="hidden",Ae._diffActions.style.height=Ne+"px",Ae._diffActions.style.lineHeight=Ne+"px",Ae._marginDomNode.appendChild(Ae._diffActions);var ut=[];ut.push(new rr.a("diff.clipboard.copyDeletedContent",v.originalEndLineNumber>v.modifiedStartLineNumber?pn.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):pn.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,function(){return po(Ae,void 0,void 0,function(){return dr(this,function(Wt){switch(Wt.label){case 0:return[4,this._clipboardService.writeText(v.originalContent.join(rt)+rt)];case 1:return Wt.sent(),[2]}})})}));var bt=0,mt=void 0;v.originalEndLineNumber>v.modifiedStartLineNumber&&(mt=new rr.a("diff.clipboard.copyDeletedLineContent",pn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",v.originalStartLineNumber),void 0,!0,function(){return po(Ae,void 0,void 0,function(){return dr(this,function(Wt){switch(Wt.label){case 0:return[4,this._clipboardService.writeText(v.originalContent[bt])];case 1:return Wt.sent(),[2]}})})}),ut.push(mt));var $t=h.getOption(68);$t||ut.push(new rr.a("diff.inline.revertChange",pn.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,function(){return po(Ae,void 0,void 0,function(){var Wt,Wt;return dr(this,function(Bt){return v.modifiedEndLineNumber===0?(Wt=h.getModel().getLineMaxColumn(v.modifiedStartLineNumber),h.executeEdits("diffEditor",[{range:new G.a(v.modifiedStartLineNumber,Wt,v.modifiedStartLineNumber,Wt),text:rt+v.originalContent.join(rt)}])):(Wt=h.getModel().getLineMaxColumn(v.modifiedEndLineNumber),h.executeEdits("diffEditor",[{range:new G.a(v.modifiedStartLineNumber,1,v.modifiedEndLineNumber,Wt),text:v.originalContent.join(rt)}])),[2]})})}));var Kt=function(Bt,on){Ae._contextMenuService.showContextMenu({getAnchor:function(){return{x:Bt,y:on}},getActions:function(){return mt&&(mt.label=pn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",v.originalStartLineNumber+bt)),ut},autoSelectFirstItem:!0})};return Ae._register(Xe.n(Ae._diffActions,"mousedown",function(Wt){var Bt=Xe.B(Ae._diffActions),on=Bt.top,cn=Bt.height,wn=Math.floor(Ne/3);Wt.preventDefault(),Kt(Wt.posx,on+cn+wn)})),Ae._register(h.onMouseMove(function(Wt){if(Wt.target.type===8||Wt.target.type===5){var Bt=Wt.target.detail.viewZoneId;Bt===Ae._viewZoneId?(Ae.visibility=!0,bt=Ae._updateLightBulbPosition(Ae._marginDomNode,Wt.event.browserEvent.y,Ne)):Ae.visibility=!1}else Ae.visibility=!1})),Ae._register(h.onMouseDown(function(Wt){if(!Wt.event.rightButton)return;if(Wt.target.type===8||Wt.target.type===5){var Bt=Wt.target.detail.viewZoneId;Bt===Ae._viewZoneId&&(Wt.event.preventDefault(),bt=Ae._updateLightBulbPosition(Ae._marginDomNode,Wt.event.browserEvent.y,Ne),Kt(Wt.event.posx,Wt.event.posy+Ne))}})),Ae}return Object.defineProperty(o.prototype,"visibility",{get:function(){return this._visibility},set:function(a){this._visibility!==a&&(this._visibility=a,a?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")},enumerable:!0,configurable:!0}),o.prototype._updateLightBulbPosition=function(t,a,h){var v=Xe.B(t).top,V=a-v,be=Math.floor(V/h),Ae=be*h;return this._diffActions.style.top=Ae+"px",be},o}(Ht.a),br=r("z5rs"),Vs=r("ukhG"),Do=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),zs=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},Uo=function(s,o){return function(t,a){o(t,a,s)}},ys=function(){function s(o,t){this._contextMenuService=o,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return s.prototype.getForeignViewZones=function(o){var t=this;return o.filter(function(a){return!t._zonesMap[String(a.id)]})},s.prototype.clean=function(o){var t=this;this._zones.length>0&&o.changeViewZones(function(a){for(var h=0,v=t._zones.length;h<v;h++)a.removeZone(t._zones[h])}),this._zones=[],this._zonesMap={},this._decorations=o.deltaDecorations(this._decorations,[])},s.prototype.apply=function(o,t,a,h){var v=this,V=h?js.c.capture(o):null;o.changeViewZones(function(be){for(var Ae=0,Ne=v._zones.length;Ae<Ne;Ae++)be.removeZone(v._zones[Ae]);for(var Ae=0,rt=v.inlineDiffMargins.length;Ae<rt;Ae++)v.inlineDiffMargins[Ae].dispose();v._zones=[],v._zonesMap={},v.inlineDiffMargins=[];for(var Ae=0,ut=a.zones.length;Ae<ut;Ae++){var bt=a.zones[Ae];bt.suppressMouseDown=!0;var mt=be.addZone(bt);v._zones.push(mt),v._zonesMap[String(mt)]=!0,a.zones[Ae].diff&&bt.marginDomNode&&v._clipboardService&&(bt.suppressMouseDown=!1,v.inlineDiffMargins.push(new Us(mt,bt.marginDomNode,o,a.zones[Ae].diff,v._contextMenuService,v._clipboardService)))}}),V&&V.restore(o),this._decorations=o.deltaDecorations(this._decorations,a.decorations),t&&t.setZones(a.overviewZones)},s}(),bs=0,Gr=function(s){Do(o,s);function o(t,a,h,v,V,be,Ae,Ne,rt,ut,bt){var mt=s.call(this)||this;mt._editorProgressService=bt,mt._onDidDispose=mt._register(new N.a),mt.onDidDispose=mt._onDidDispose.event,mt._onDidUpdateDiff=mt._register(new N.a),mt.onDidUpdateDiff=mt._onDidUpdateDiff.event,mt._lastOriginalWarning=null,mt._lastModifiedWarning=null,mt._editorWorkerService=v,mt._codeEditorService=Ae,mt._contextKeyService=mt._register(V.createScoped(t)),mt._contextKeyService.createKey("isInDiffEditor",!0),mt._themeService=Ne,mt._notificationService=rt,mt.id=++bs,mt._state=0,mt._updatingDiffProgress=null,mt._domElement=t,a=a||{},mt._renderSideBySide=!0,typeof a.renderSideBySide!="undefined"&&(mt._renderSideBySide=a.renderSideBySide),mt._maxComputationTime=5e3,typeof a.maxComputationTime!="undefined"&&(mt._maxComputationTime=a.maxComputationTime),mt._ignoreTrimWhitespace=!0,typeof a.ignoreTrimWhitespace!="undefined"&&(mt._ignoreTrimWhitespace=a.ignoreTrimWhitespace),mt._renderIndicators=!0,typeof a.renderIndicators!="undefined"&&(mt._renderIndicators=a.renderIndicators),mt._originalIsEditable=!1,typeof a.originalEditable!="undefined"&&(mt._originalIsEditable=Boolean(a.originalEditable)),mt._updateDecorationsRunner=mt._register(new Qt.d(function(){return mt._updateDecorations()},0)),mt._containerDomElement=document.createElement("div"),mt._containerDomElement.className=o._getClassName(mt._themeService.getTheme(),mt._renderSideBySide),mt._containerDomElement.style.position="relative",mt._containerDomElement.style.height="100%",mt._domElement.appendChild(mt._containerDomElement),mt._overviewViewportDomElement=Object(ir.b)(document.createElement("div")),mt._overviewViewportDomElement.setClassName("diffViewport"),mt._overviewViewportDomElement.setPosition("absolute"),mt._overviewDomElement=document.createElement("div"),mt._overviewDomElement.className="diffOverview",mt._overviewDomElement.style.position="absolute",mt._overviewDomElement.appendChild(mt._overviewViewportDomElement.domNode),mt._register(Xe.n(mt._overviewDomElement,"mousedown",function(jn){mt.modifiedEditor.delegateVerticalScrollbarMouseDown(jn)})),mt._containerDomElement.appendChild(mt._overviewDomElement),mt._originalDomNode=document.createElement("div"),mt._originalDomNode.className="editor original",mt._originalDomNode.style.position="absolute",mt._originalDomNode.style.height="100%",mt._containerDomElement.appendChild(mt._originalDomNode),mt._modifiedDomNode=document.createElement("div"),mt._modifiedDomNode.className="editor modified",mt._modifiedDomNode.style.position="absolute",mt._modifiedDomNode.style.height="100%",mt._containerDomElement.appendChild(mt._modifiedDomNode),mt._beginUpdateDecorationsTimeout=-1,mt._currentlyChangingViewZones=!1,mt._diffComputationToken=0,mt._originalEditorState=new ys(ut,h),mt._modifiedEditorState=new ys(ut,h),mt._isVisible=!0,mt._isHandlingScrollEvent=!1,mt._elementSizeObserver=mt._register(new Vs.a(mt._containerDomElement,void 0,function(){return mt._onDidContainerSizeChanged()})),a.automaticLayout&&mt._elementSizeObserver.startObserving(),mt._diffComputationResult=null;var $t=mt._contextKeyService.createScoped();$t.createKey("isInDiffLeftEditor",!0);var Kt=new Bo.a;Kt.set(_i.c,$t);var Wt=be.createChild(Kt),Bt=mt._contextKeyService.createScoped();Bt.createKey("isInDiffRightEditor",!0);var on=new Bo.a;on.set(_i.c,Bt);var cn=be.createChild(on);mt.originalEditor=mt._createLeftHandSideEditor(a,Wt),mt.modifiedEditor=mt._createRightHandSideEditor(a,cn),mt._originalOverviewRuler=null,mt._modifiedOverviewRuler=null,mt._reviewPane=new Nr(mt),mt._containerDomElement.appendChild(mt._reviewPane.domNode.domNode),mt._containerDomElement.appendChild(mt._reviewPane.shadow.domNode),mt._containerDomElement.appendChild(mt._reviewPane.actionBarContainer.domNode),mt._enableSplitViewResizing=!0,typeof a.enableSplitViewResizing!="undefined"&&(mt._enableSplitViewResizing=a.enableSplitViewResizing),mt._renderSideBySide?mt._setStrategy(new Jo(mt._createDataSource(),mt._enableSplitViewResizing)):mt._setStrategy(new Ao(mt._createDataSource(),mt._enableSplitViewResizing)),mt._register(Ne.onThemeChange(function(jn){mt._strategy&&mt._strategy.applyColors(jn)&&mt._updateDecorationsRunner.schedule(),mt._containerDomElement.className=o._getClassName(mt._themeService.getTheme(),mt._renderSideBySide)}));for(var wn=no.d.getDiffEditorContributions(),_n=0,kn=wn;_n<kn.length;_n++){var Wn=kn[_n];try{mt._register(be.createInstance(Wn.ctor,mt))}catch(jn){Object(nn.e)(jn)}}return mt._codeEditorService.addDiffEditor(mt),mt}return o.prototype._setState=function(t){if(this._state===t)return;this._state=t,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3))},o.prototype.hasWidgetFocus=function(){return Xe.J(document.activeElement,this._domElement)},o.prototype.diffReviewNext=function(){this._reviewPane.next()},o.prototype.diffReviewPrev=function(){this._reviewPane.prev()},o._getClassName=function(t,a){var h="monaco-diff-editor monaco-editor-background ";return a&&(h+="side-by-side "),h+=Object(ki.d)(t.type),h},o.prototype._recreateOverviewRulers=function(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()},o.prototype._createLeftHandSideEditor=function(t,a){var h=this,v=this._createInnerEditor(a,this._originalDomNode,this._adjustOptionsForLeftHandSide(t,this._originalIsEditable));return this._register(v.onDidScrollChange(function(V){if(h._isHandlingScrollEvent)return;if(!V.scrollTopChanged&&!V.scrollLeftChanged&&!V.scrollHeightChanged)return;h._isHandlingScrollEvent=!0,h.modifiedEditor.setScrollPosition({scrollLeft:V.scrollLeft,scrollTop:V.scrollTop}),h._isHandlingScrollEvent=!1,h._layoutOverviewViewport()})),this._register(v.onDidChangeViewZones(function(){h._onViewZonesChanged()})),this._register(v.onDidChangeModelContent(function(){h._isVisible&&h._beginUpdateDecorationsSoon()})),v},o.prototype._createRightHandSideEditor=function(t,a){var h=this,v=this._createInnerEditor(a,this._modifiedDomNode,this._adjustOptionsForRightHandSide(t));return this._register(v.onDidScrollChange(function(V){if(h._isHandlingScrollEvent)return;if(!V.scrollTopChanged&&!V.scrollLeftChanged&&!V.scrollHeightChanged)return;h._isHandlingScrollEvent=!0,h.originalEditor.setScrollPosition({scrollLeft:V.scrollLeft,scrollTop:V.scrollTop}),h._isHandlingScrollEvent=!1,h._layoutOverviewViewport()})),this._register(v.onDidChangeViewZones(function(){h._onViewZonesChanged()})),this._register(v.onDidChangeConfiguration(function(V){V.hasChanged(34)&&v.getModel()&&h._onViewZonesChanged()})),this._register(v.onDidChangeModelContent(function(){h._isVisible&&h._beginUpdateDecorationsSoon()})),this._register(v.onDidChangeModelOptions(function(V){V.tabSize&&h._updateDecorationsRunner.schedule()})),v},o.prototype._createInnerEditor=function(t,a,h){return t.createInstance(Mr.a,a,h,{})},o.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this),this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),s.prototype.dispose.call(this)},o.prototype.getId=function(){return this.getEditorType()+":"+this.id},o.prototype.getEditorType=function(){return Ft.a.IDiffEditor},o.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},o.prototype.getOriginalEditor=function(){return this.originalEditor},o.prototype.getModifiedEditor=function(){return this.modifiedEditor},o.prototype.updateOptions=function(t){var a=!1;typeof t.renderSideBySide!="undefined"&&(this._renderSideBySide!==t.renderSideBySide&&(this._renderSideBySide=t.renderSideBySide,a=!0)),typeof t.maxComputationTime!="undefined"&&(this._maxComputationTime=t.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());var h=!1;typeof t.ignoreTrimWhitespace!="undefined"&&(this._ignoreTrimWhitespace!==t.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=t.ignoreTrimWhitespace,h=!0)),typeof t.renderIndicators!="undefined"&&(this._renderIndicators!==t.renderIndicators&&(this._renderIndicators=t.renderIndicators,h=!0)),h&&this._beginUpdateDecorations(),typeof t.originalEditable!="undefined"&&(this._originalIsEditable=Boolean(t.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(t)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(t,this._originalIsEditable)),typeof t.enableSplitViewResizing!="undefined"&&(this._enableSplitViewResizing=t.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),a&&(this._renderSideBySide?this._setStrategy(new Jo(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new Ao(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=o._getClassName(this._themeService.getTheme(),this._renderSideBySide))},o.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},o.prototype.setModel=function(t){if(t&&(!t.original||!t.modified))throw new Error(t.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(t?t.original:null),this.modifiedEditor.setModel(t?t.modified:null),this._updateDecorationsRunner.cancel(),t&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),t&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()},o.prototype.getDomNode=function(){return this._domElement},o.prototype.getVisibleColumnFromPosition=function(t){return this.modifiedEditor.getVisibleColumnFromPosition(t)},o.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},o.prototype.setPosition=function(t){this.modifiedEditor.setPosition(t)},o.prototype.revealLine=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealLine(t,a)},o.prototype.revealLineInCenter=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealLineInCenter(t,a)},o.prototype.revealLineInCenterIfOutsideViewport=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(t,a)},o.prototype.revealPosition=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealPosition(t,a)},o.prototype.revealPositionInCenter=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealPositionInCenter(t,a)},o.prototype.revealPositionInCenterIfOutsideViewport=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(t,a)},o.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},o.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},o.prototype.setSelection=function(t){this.modifiedEditor.setSelection(t)},o.prototype.setSelections=function(t){this.modifiedEditor.setSelections(t)},o.prototype.revealLines=function(t,a,h){h===void 0&&(h=0),this.modifiedEditor.revealLines(t,a,h)},o.prototype.revealLinesInCenter=function(t,a,h){h===void 0&&(h=0),this.modifiedEditor.revealLinesInCenter(t,a,h)},o.prototype.revealLinesInCenterIfOutsideViewport=function(t,a,h){h===void 0&&(h=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(t,a,h)},o.prototype.revealRange=function(t,a,h,v){a===void 0&&(a=0),h===void 0&&(h=!1),v===void 0&&(v=!0),this.modifiedEditor.revealRange(t,a,h,v)},o.prototype.revealRangeInCenter=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealRangeInCenter(t,a)},o.prototype.revealRangeInCenterIfOutsideViewport=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(t,a)},o.prototype.revealRangeAtTop=function(t,a){a===void 0&&(a=0),this.modifiedEditor.revealRangeAtTop(t,a)},o.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},o.prototype.saveViewState=function(){var t=this.originalEditor.saveViewState(),a=this.modifiedEditor.saveViewState();return{original:t,modified:a}},o.prototype.restoreViewState=function(t){if(t.original&&t.modified){var a=t;this.originalEditor.restoreViewState(a.original),this.modifiedEditor.restoreViewState(a.modified)}},o.prototype.layout=function(t){this._elementSizeObserver.observe(t)},o.prototype.focus=function(){this.modifiedEditor.focus()},o.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},o.prototype.trigger=function(t,a,h){this.modifiedEditor.trigger(t,a,h)},o.prototype.changeDecorations=function(t){return this.modifiedEditor.changeDecorations(t)},o.prototype._onDidContainerSizeChanged=function(){this._doLayout()},o.prototype._getReviewHeight=function(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0},o.prototype._layoutOverviewRulers=function(){if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;var t=this._elementSizeObserver.getHeight(),a=this._getReviewHeight(),h=o.ENTIRE_DIFF_OVERVIEW_WIDTH-2*o.ONE_OVERVIEW_WIDTH,v=this.modifiedEditor.getLayoutInfo();v&&(this._originalOverviewRuler.setLayout({top:0,width:o.ONE_OVERVIEW_WIDTH,right:h+o.ONE_OVERVIEW_WIDTH,height:t-a}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:o.ONE_OVERVIEW_WIDTH,height:t-a}))},o.prototype._onViewZonesChanged=function(){if(this._currentlyChangingViewZones)return;this._updateDecorationsRunner.schedule()},o.prototype._beginUpdateDecorationsSoon=function(){var t=this;this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(function(){return t._beginUpdateDecorations()},o.UPDATE_DIFF_DECORATIONS_DELAY)},o._equals=function(t,a){return!t&&!a?!0:!t||!a?!1:t.toString()===a.toString()},o.prototype._beginUpdateDecorations=function(){var t=this;this._beginUpdateDecorationsTimeout=-1;var a=this.originalEditor.getModel(),h=this.modifiedEditor.getModel();if(!a||!h)return;this._diffComputationToken++;var v=this._diffComputationToken;if(this._setState(1),!this._editorWorkerService.canComputeDiff(a.uri,h.uri)){(!o._equals(a.uri,this._lastOriginalWarning)||!o._equals(h.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=a.uri,this._lastModifiedWarning=h.uri,this._notificationService.warn(pn.a("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._editorWorkerService.computeDiff(a.uri,h.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(function(V){v===t._diffComputationToken&&a===t.originalEditor.getModel()&&h===t.modifiedEditor.getModel()&&(t._setState(2),t._diffComputationResult=V,t._updateDecorationsRunner.schedule(),t._onDidUpdateDiff.fire())},function(V){v===t._diffComputationToken&&a===t.originalEditor.getModel()&&h===t.modifiedEditor.getModel()&&(t._setState(2),t._diffComputationResult=null,t._updateDecorationsRunner.schedule())})},o.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},o.prototype._updateDecorations=function(){if(!this.originalEditor.getModel()||!this.modifiedEditor.getModel()||!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;var t=this._diffComputationResult?this._diffComputationResult.changes:[],a=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),h=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),v=this._strategy.getEditorsDiffDecorations(t,this._ignoreTrimWhitespace,this._renderIndicators,a,h,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,v.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,v.modified,!0)}finally{this._currentlyChangingViewZones=!1}},o.prototype._adjustOptionsForSubEditor=function(t){var a=Gt.c(t||{});return a.inDiffEditor=!0,a.wordWrap="off",a.wordWrapMinified=!1,a.automaticLayout=!1,a.scrollbar=a.scrollbar||{},a.scrollbar.vertical="visible",a.folding=!1,a.codeLens=!1,a.fixedOverflowWidgets=!0,a.minimap||(a.minimap={}),a.minimap.enabled=!1,a},o.prototype._adjustOptionsForLeftHandSide=function(t,a){var h=this._adjustOptionsForSubEditor(t);return h.readOnly=!a,h.extraEditorClassName="original-in-monaco-diff-editor",h},o.prototype._adjustOptionsForRightHandSide=function(t){var a=this._adjustOptionsForSubEditor(t);return a.revealHorizontalRightPadding=I.e.revealHorizontalRightPadding.defaultValue+o.ENTIRE_DIFF_OVERVIEW_WIDTH,a.scrollbar.verticalHasArrows=!1,a.extraEditorClassName="modified-in-monaco-diff-editor",a},o.prototype.doLayout=function(){this._elementSizeObserver.observe(),this._doLayout()},o.prototype._doLayout=function(){var t=this._elementSizeObserver.getWidth(),a=this._elementSizeObserver.getHeight(),h=this._getReviewHeight(),v=this._strategy.layout();this._originalDomNode.style.width=v+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=t-v+"px",this._modifiedDomNode.style.left=v+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=a-h+"px",this._overviewDomElement.style.width=o.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=t-o.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(o.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:v,height:a-h}),this.modifiedEditor.layout({width:t-v-o.ENTIRE_DIFF_OVERVIEW_WIDTH,height:a-h}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(a-h,t,h),this._layoutOverviewViewport()},o.prototype._layoutOverviewViewport=function(){var t=this._computeOverviewViewport();t?(this._overviewViewportDomElement.setTop(t.top),this._overviewViewportDomElement.setHeight(t.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},o.prototype._computeOverviewViewport=function(){var t=this.modifiedEditor.getLayoutInfo();if(!t)return null;var a=this.modifiedEditor.getScrollTop(),h=this.modifiedEditor.getScrollHeight(),v=Math.max(0,t.height),V=Math.max(0,v-2*0),be=h>0?V/h:0,Ae=Math.max(0,Math.floor(t.height*be)),Ne=Math.floor(a*be);return{height:Ae,top:Ne}},o.prototype._createDataSource=function(){var t=this;return{getWidth:function(){return t._elementSizeObserver.getWidth()},getHeight:function(){return t._elementSizeObserver.getHeight()-t._getReviewHeight()},getContainerDomNode:function(){return t._containerDomElement},relayoutEditors:function(){t._doLayout()},getOriginalEditor:function(){return t.originalEditor},getModifiedEditor:function(){return t.modifiedEditor}}},o.prototype._setStrategy=function(t){this._strategy&&this._strategy.dispose(),this._strategy=t,t.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},o.prototype._getLineChangeAtOrBeforeLineNumber=function(t,a){var h=this._diffComputationResult?this._diffComputationResult.changes:[];if(h.length===0||t<a(h[0]))return null;for(var v=0,V=h.length-1;v<V;){var be=Math.floor((v+V)/2),Ae=a(h[be]),Ne=be+1<=V?a(h[be+1]):1073741824;t<Ae?V=be-1:t>=Ne?v=be+1:(v=be,V=be)}return h[v]},o.prototype._getEquivalentLineForOriginalLineNumber=function(t){var a=this._getLineChangeAtOrBeforeLineNumber(t,function(Ne){return Ne.originalStartLineNumber});if(!a)return t;var h=a.originalStartLineNumber+(a.originalEndLineNumber>0?-1:0),v=a.modifiedStartLineNumber+(a.modifiedEndLineNumber>0?-1:0),V=a.originalEndLineNumber>0?a.originalEndLineNumber-a.originalStartLineNumber+1:0,be=a.modifiedEndLineNumber>0?a.modifiedEndLineNumber-a.modifiedStartLineNumber+1:0,Ae=t-h;return Ae<=V?v+Math.min(Ae,be):v+be-V+Ae},o.prototype._getEquivalentLineForModifiedLineNumber=function(t){var a=this._getLineChangeAtOrBeforeLineNumber(t,function(Ne){return Ne.modifiedStartLineNumber});if(!a)return t;var h=a.originalStartLineNumber+(a.originalEndLineNumber>0?-1:0),v=a.modifiedStartLineNumber+(a.modifiedEndLineNumber>0?-1:0),V=a.originalEndLineNumber>0?a.originalEndLineNumber-a.originalStartLineNumber+1:0,be=a.modifiedEndLineNumber>0?a.modifiedEndLineNumber-a.modifiedStartLineNumber+1:0,Ae=t-v;return Ae<=be?h+Math.min(Ae,V):h+V-be+Ae},o.prototype.getDiffLineInformationForOriginal=function(t){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(t)}:null},o.prototype.getDiffLineInformationForModified=function(t){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(t)}:null},o.ONE_OVERVIEW_WIDTH=15,o.ENTIRE_DIFF_OVERVIEW_WIDTH=30,o.UPDATE_DIFF_DECORATIONS_DELAY=200,o=zs([Uo(3,Lt.a),Uo(4,_i.c),Uo(5,Yt.a),Uo(6,Ke.a),Uo(7,ki.c),Uo(8,wo.a),Uo(9,Eo.a),Uo(10,br.a)],o),o}(Ht.a),Vo=function(s){Do(o,s);function o(t){var a=s.call(this)||this;return a._dataSource=t,a._insertColor=null,a._removeColor=null,a}return o.prototype.applyColors=function(t){var a=(t.getColor(wi.j)||wi.g).transparent(2),h=(t.getColor(wi.l)||wi.h).transparent(2),v=!a.equals(this._insertColor)||!h.equals(this._removeColor);return this._insertColor=a,this._removeColor=h,v},o.prototype.getEditorsDiffDecorations=function(t,a,h,v,V,be,Ae){V=V.sort(function(bt,mt){return bt.afterLineNumber-mt.afterLineNumber}),v=v.sort(function(bt,mt){return bt.afterLineNumber-mt.afterLineNumber});var Ne=this._getViewZones(t,v,V,be,Ae,h),rt=this._getOriginalEditorDecorations(t,a,h,be,Ae),ut=this._getModifiedEditorDecorations(t,a,h,be,Ae);return{original:{decorations:rt.decorations,overviewZones:rt.overviewZones,zones:Ne.original},modified:{decorations:ut.decorations,overviewZones:ut.overviewZones,zones:Ne.modified}}},o}(Ht.a),Cs=function(){function s(o){this._source=o,this._index=-1,this.current=null,this.advance()}return s.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},s}(),$o=function(){function s(o,t,a,h,v){this.lineChanges=o,this.originalForeignVZ=t,this.originalLineHeight=a,this.modifiedForeignVZ=h,this.modifiedLineHeight=v}return s.prototype.getViewZones=function(){for(var o={original:[],modified:[]},t=0,a=0,h=0,v=0,V=0,be=0,Ae=function(vn,ni){return vn.afterLineNumber-ni.afterLineNumber},Ne=function(vn,ni){if(ni.domNode===null&&vn.length>0){var $n=vn[vn.length-1];if($n.afterLineNumber===ni.afterLineNumber&&$n.domNode===null){$n.heightInLines+=ni.heightInLines;return}}vn.push(ni)},rt=new Cs(this.modifiedForeignVZ),ut=new Cs(this.originalForeignVZ),bt=0,mt=this.lineChanges.length;bt<=mt;bt++){var $t=bt<mt?this.lineChanges[bt]:null;$t!==null?(h=$t.originalStartLineNumber+($t.originalEndLineNumber>0?-1:0),v=$t.modifiedStartLineNumber+($t.modifiedEndLineNumber>0?-1:0),a=$t.originalEndLineNumber>0?$t.originalEndLineNumber-$t.originalStartLineNumber+1:0,t=$t.modifiedEndLineNumber>0?$t.modifiedEndLineNumber-$t.modifiedStartLineNumber+1:0,V=Math.max($t.originalStartLineNumber,$t.originalEndLineNumber),be=Math.max($t.modifiedStartLineNumber,$t.modifiedEndLineNumber)):(h+=1e7+a,v+=1e7+t,V=h,be=v);for(var Kt=[],Wt=[];rt.current&&rt.current.afterLineNumber<=be;){var Bt=void 0;rt.current.afterLineNumber<=v?Bt=h-v+rt.current.afterLineNumber:Bt=V;var on=null;$t&&$t.modifiedStartLineNumber<=rt.current.afterLineNumber&&rt.current.afterLineNumber<=$t.modifiedEndLineNumber&&(on=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),Kt.push({afterLineNumber:Bt,heightInLines:rt.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:on}),rt.advance()}for(;ut.current&&ut.current.afterLineNumber<=V;){var Bt=void 0;ut.current.afterLineNumber<=h?Bt=v-h+ut.current.afterLineNumber:Bt=be,Wt.push({afterLineNumber:Bt,heightInLines:ut.current.height/this.originalLineHeight,domNode:null}),ut.advance()}if($t!==null&&Qo($t)){var cn=this._produceOriginalFromDiff($t,a,t);cn&&Kt.push(cn)}if($t!==null&&Oo($t)){var cn=this._produceModifiedFromDiff($t,a,t);cn&&Wt.push(cn)}var wn=0,_n=0;for(Kt=Kt.sort(Ae),Wt=Wt.sort(Ae);wn<Kt.length&&_n<Wt.length;){var kn=Kt[wn],Wn=Wt[_n],jn=kn.afterLineNumber-h,ei=Wn.afterLineNumber-v;jn<ei?(Ne(o.original,kn),wn++):ei<jn?(Ne(o.modified,Wn),_n++):kn.shouldNotShrink?(Ne(o.original,kn),wn++):Wn.shouldNotShrink?(Ne(o.modified,Wn),_n++):kn.heightInLines>=Wn.heightInLines?(kn.heightInLines-=Wn.heightInLines,_n++):(Wn.heightInLines-=kn.heightInLines,wn++)}for(;wn<Kt.length;)Ne(o.original,Kt[wn]),wn++;for(;_n<Wt.length;)Ne(o.modified,Wt[_n]),_n++}return{original:s._ensureDomNodes(o.original),modified:s._ensureDomNodes(o.modified)}},s._ensureDomNodes=function(o){return o.map(function(t){return t.domNode||(t.domNode=Zr()),t})},s}();function xo(s,o,t,a,h){return{range:new G.a(s,o,t,a),options:h}}var Yi={charDelete:fo.a.register({className:"char-delete"}),charDeleteWholeLine:fo.a.register({className:"char-delete",isWholeLine:!0}),charInsert:fo.a.register({className:"char-insert"}),charInsertWholeLine:fo.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:fo.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:fo.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign codicon codicon-add",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:fo.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:fo.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign codicon codicon-remove",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:fo.a.register({marginClassName:"line-delete"})},Jo=function(s){Do(o,s);function o(t,a){var h=s.call(this,t)||this;return h._disableSash=a===!1,h._sashRatio=null,h._sashPosition=null,h._startSashPosition=null,h._sash=h._register(new ks.a(h._dataSource.getContainerDomNode(),h)),h._disableSash&&(h._sash.state=0),h._sash.onDidStart(function(){return h.onSashDragStart()}),h._sash.onDidChange(function(v){return h.onSashDrag(v)}),h._sash.onDidEnd(function(){return h.onSashDragEnd()}),h._sash.onDidReset(function(){return h.onSashReset()}),h}return o.prototype.setEnableSplitViewResizing=function(t){var a=t===!1;this._disableSash!==a&&(this._disableSash=a,this._sash.state=this._disableSash?0:3)},o.prototype.layout=function(t){t===void 0&&(t=this._sashRatio);var a=this._dataSource.getWidth(),h=a-Gr.ENTIRE_DIFF_OVERVIEW_WIDTH,v=Math.floor((t||.5)*h),V=Math.floor(.5*h);return v=this._disableSash?V:v||V,h>o.MINIMUM_EDITOR_WIDTH*2?(v<o.MINIMUM_EDITOR_WIDTH&&(v=o.MINIMUM_EDITOR_WIDTH),v>h-o.MINIMUM_EDITOR_WIDTH&&(v=h-o.MINIMUM_EDITOR_WIDTH)):v=V,this._sashPosition!==v&&(this._sashPosition=v,this._sash.layout()),this._sashPosition},o.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},o.prototype.onSashDrag=function(t){var a=this._dataSource.getWidth(),h=a-Gr.ENTIRE_DIFF_OVERVIEW_WIDTH,v=this.layout((this._startSashPosition+(t.currentX-t.startX))/h);this._sashRatio=v/h,this._dataSource.relayoutEditors()},o.prototype.onSashDragEnd=function(){this._sash.layout()},o.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},o.prototype.getVerticalSashTop=function(t){return 0},o.prototype.getVerticalSashLeft=function(t){return this._sashPosition},o.prototype.getVerticalSashHeight=function(t){return this._dataSource.getHeight()},o.prototype._getViewZones=function(t,a,h,v,V){var be=new Xr(t,a,v.getOption(49),h,V.getOption(49));return be.getViewZones()},o.prototype._getOriginalEditorDecorations=function(t,a,h,v,V){for(var be=String(this._removeColor),Ae={decorations:[],overviewZones:[]},Ne=v.getModel(),rt=0,ut=t.length;rt<ut;rt++){var bt=t[rt];if(Oo(bt)&&(Ae.decorations.push({range:new G.a(bt.originalStartLineNumber,1,bt.originalEndLineNumber,1073741824),options:h?Yi.lineDeleteWithSign:Yi.lineDelete}),(!Qo(bt)||!bt.charChanges)&&Ae.decorations.push(xo(bt.originalStartLineNumber,1,bt.originalEndLineNumber,1073741824,Yi.charDeleteWholeLine)),Ae.overviewZones.push(new lr.a(bt.originalStartLineNumber,bt.originalEndLineNumber,be)),bt.charChanges))for(var mt=0,$t=bt.charChanges.length;mt<$t;mt++){var Kt=bt.charChanges[mt];if(Oo(Kt))if(a)for(var Wt=Kt.originalStartLineNumber;Wt<=Kt.originalEndLineNumber;Wt++){var Bt=void 0,on=void 0;Wt===Kt.originalStartLineNumber?Bt=Kt.originalStartColumn:Bt=Ne.getLineFirstNonWhitespaceColumn(Wt),Wt===Kt.originalEndLineNumber?on=Kt.originalEndColumn:on=Ne.getLineLastNonWhitespaceColumn(Wt),Ae.decorations.push(xo(Wt,Bt,Wt,on,Yi.charDelete))}else Ae.decorations.push(xo(Kt.originalStartLineNumber,Kt.originalStartColumn,Kt.originalEndLineNumber,Kt.originalEndColumn,Yi.charDelete))}}return Ae},o.prototype._getModifiedEditorDecorations=function(t,a,h,v,V){for(var be=String(this._insertColor),Ae={decorations:[],overviewZones:[]},Ne=V.getModel(),rt=0,ut=t.length;rt<ut;rt++){var bt=t[rt];if(Qo(bt)&&(Ae.decorations.push({range:new G.a(bt.modifiedStartLineNumber,1,bt.modifiedEndLineNumber,1073741824),options:h?Yi.lineInsertWithSign:Yi.lineInsert}),(!Oo(bt)||!bt.charChanges)&&Ae.decorations.push(xo(bt.modifiedStartLineNumber,1,bt.modifiedEndLineNumber,1073741824,Yi.charInsertWholeLine)),Ae.overviewZones.push(new lr.a(bt.modifiedStartLineNumber,bt.modifiedEndLineNumber,be)),bt.charChanges))for(var mt=0,$t=bt.charChanges.length;mt<$t;mt++){var Kt=bt.charChanges[mt];if(Qo(Kt))if(a)for(var Wt=Kt.modifiedStartLineNumber;Wt<=Kt.modifiedEndLineNumber;Wt++){var Bt=void 0,on=void 0;Wt===Kt.modifiedStartLineNumber?Bt=Kt.modifiedStartColumn:Bt=Ne.getLineFirstNonWhitespaceColumn(Wt),Wt===Kt.modifiedEndLineNumber?on=Kt.modifiedEndColumn:on=Ne.getLineLastNonWhitespaceColumn(Wt),Ae.decorations.push(xo(Wt,Bt,Wt,on,Yi.charInsert))}else Ae.decorations.push(xo(Kt.modifiedStartLineNumber,Kt.modifiedStartColumn,Kt.modifiedEndLineNumber,Kt.modifiedEndColumn,Yi.charInsert))}}return Ae},o.MINIMUM_EDITOR_WIDTH=100,o}(Vo),Xr=function(s){Do(o,s);function o(t,a,h,v,V){return s.call(this,t,a,h,v,V)||this}return o.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},o.prototype._produceOriginalFromDiff=function(t,a,h){return h>a?{afterLineNumber:Math.max(t.originalStartLineNumber,t.originalEndLineNumber),heightInLines:h-a,domNode:null}:null},o.prototype._produceModifiedFromDiff=function(t,a,h){return a>h?{afterLineNumber:Math.max(t.modifiedStartLineNumber,t.modifiedEndLineNumber),heightInLines:a-h,domNode:null}:null},o}($o),Ao=function(s){Do(o,s);function o(t,a){var h=s.call(this,t)||this;return h.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,h._register(t.getOriginalEditor().onDidLayoutChange(function(v){h.decorationsLeft!==v.decorationsLeft&&(h.decorationsLeft=v.decorationsLeft,t.relayoutEditors())})),h}return o.prototype.setEnableSplitViewResizing=function(t){},o.prototype._getViewZones=function(t,a,h,v,V,be){var Ae=new Yr(t,a,h,v,V,be);return Ae.getViewZones()},o.prototype._getOriginalEditorDecorations=function(t,a,h,v,V){for(var be=String(this._removeColor),Ae={decorations:[],overviewZones:[]},Ne=0,rt=t.length;Ne<rt;Ne++){var ut=t[Ne];Oo(ut)&&(Ae.decorations.push({range:new G.a(ut.originalStartLineNumber,1,ut.originalEndLineNumber,1073741824),options:Yi.lineDeleteMargin}),Ae.overviewZones.push(new lr.a(ut.originalStartLineNumber,ut.originalEndLineNumber,be)))}return Ae},o.prototype._getModifiedEditorDecorations=function(t,a,h,v,V){for(var be=String(this._insertColor),Ae={decorations:[],overviewZones:[]},Ne=V.getModel(),rt=0,ut=t.length;rt<ut;rt++){var bt=t[rt];if(Qo(bt))if(Ae.decorations.push({range:new G.a(bt.modifiedStartLineNumber,1,bt.modifiedEndLineNumber,1073741824),options:h?Yi.lineInsertWithSign:Yi.lineInsert}),Ae.overviewZones.push(new lr.a(bt.modifiedStartLineNumber,bt.modifiedEndLineNumber,be)),bt.charChanges)for(var mt=0,$t=bt.charChanges.length;mt<$t;mt++){var Kt=bt.charChanges[mt];if(Qo(Kt))if(a)for(var Wt=Kt.modifiedStartLineNumber;Wt<=Kt.modifiedEndLineNumber;Wt++){var Bt=void 0,on=void 0;Wt===Kt.modifiedStartLineNumber?Bt=Kt.modifiedStartColumn:Bt=Ne.getLineFirstNonWhitespaceColumn(Wt),Wt===Kt.modifiedEndLineNumber?on=Kt.modifiedEndColumn:on=Ne.getLineLastNonWhitespaceColumn(Wt),Ae.decorations.push(xo(Wt,Bt,Wt,on,Yi.charInsert))}else Ae.decorations.push(xo(Kt.modifiedStartLineNumber,Kt.modifiedStartColumn,Kt.modifiedEndLineNumber,Kt.modifiedEndColumn,Yi.charInsert))}else Ae.decorations.push(xo(bt.modifiedStartLineNumber,1,bt.modifiedEndLineNumber,1073741824,Yi.charInsertWholeLine))}return Ae},o.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},o}(Vo),Yr=function(s){Do(o,s);function o(t,a,h,v,V,be){var Ae=s.call(this,t,a,v.getOption(49),h,V.getOption(49))||this;return Ae.originalModel=v.getModel(),Ae.modifiedEditorOptions=V.getOptions(),Ae.modifiedEditorTabSize=V.getModel().getOptions().tabSize,Ae.renderIndicators=be,Ae}return o.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var t=document.createElement("div");return t.className="inline-added-margin-view-zone",t},o.prototype._produceOriginalFromDiff=function(t,a,h){var v=document.createElement("div");return v.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(t.originalStartLineNumber,t.originalEndLineNumber),heightInLines:h,domNode:document.createElement("div"),marginDomNode:v}},o.prototype._produceModifiedFromDiff=function(t,a,h){var v=[];if(t.charChanges)for(var V=0,be=t.charChanges.length;V<be;V++){var Ae=t.charChanges[V];Oo(Ae)&&v.push(new Qe.a(new G.a(Ae.originalStartLineNumber,Ae.originalStartColumn,Ae.originalEndLineNumber,Ae.originalEndColumn),"char-delete",0))}for(var Ne=Object(vs.a)(1e4),rt=[],ut=this.modifiedEditorOptions.get(107),bt=this.modifiedEditorOptions.get(34),mt=ut.decorationsWidth,$t=this.modifiedEditorOptions.get(49),Kt=bt.typicalHalfwidthCharacterWidth,Wt=0,Bt=[],on=t.originalStartLineNumber;on<=t.originalEndLineNumber;on++)if(Wt=Math.max(Wt,this._renderOriginalLine(on-t.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,on,v,Ne)),Bt.push(this.originalModel.getLineContent(on)),this.renderIndicators){var cn=on-t.originalStartLineNumber;rt=rt.concat(['<div class="delete-sign codicon codicon-remove" style="position:absolute;top:'+cn*$t+"px;width:"+mt+"px;height:"+$t+'px;right:0;"></div>'])}Wt+=this.modifiedEditorOptions.get(79);var wn=document.createElement("div");wn.className="view-lines line-delete",wn.innerHTML=Ne.build(),si.a.applyFontInfoSlow(wn,bt);var _n=document.createElement("div");return _n.className="inline-deleted-margin-view-zone",_n.innerHTML=rt.join(""),si.a.applyFontInfoSlow(_n,bt),{shouldNotShrink:!0,afterLineNumber:t.modifiedEndLineNumber===0?t.modifiedStartLineNumber:t.modifiedStartLineNumber-1,heightInLines:a,minWidthInPx:Wt*Kt,domNode:wn,marginDomNode:_n,diff:{originalStartLineNumber:t.originalStartLineNumber,originalEndLineNumber:t.originalEndLineNumber,modifiedStartLineNumber:t.modifiedStartLineNumber,modifiedEndLineNumber:t.modifiedEndLineNumber,originalContent:Bt}}},o.prototype._renderOriginalLine=function(t,a,h,v,V,be,Ae){var Ne=a.getLineTokens(V),rt=Ne.getLineContent(),ut=h.get(34),bt=Ws.a.filter(be,V,1,rt.length+1);Ae.appendASCIIString('<div class="view-line'),be.length===0&&Ae.appendASCIIString(" char-delete"),Ae.appendASCIIString('" style="top:'),Ae.appendASCIIString(String(t*h.get(49))),Ae.appendASCIIString('px;width:1000000px;">');var mt=Qe.d.isBasicASCII(rt,a.mightContainNonBasicASCII()),$t=Qe.d.containsRTL(rt,mt,a.mightContainRTL()),Kt=Object(it.d)(new it.c(ut.isMonospace&&!h.get(23),ut.canUseHalfwidthRightwardsArrow,rt,!1,mt,$t,0,Ne,bt,v,0,ut.spaceWidth,ut.middotWidth,h.get(88),h.get(74),h.get(69),h.get(35)!==I.d.OFF,null),Ae);Ae.appendASCIIString("</div>");var Wt=Kt.characterMapping.getAbsoluteOffsets();return Wt.length>0?Wt[Wt.length-1]:0},o}($o);function Qo(s){return s.modifiedEndLineNumber>0}function Oo(s){return s.originalEndLineNumber>0}function Zr(){var s=document.createElement("div");return s.className="diagonal-fill",s}Object(ki.e)(function(s,o){var t=s.getColor(wi.j);t&&(o.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+t+"; }"),o.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+t+"; }"),o.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+t+"; }"));var a=s.getColor(wi.l);a&&(o.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+a+"; }"),o.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+a+"; }"),o.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+a+"; }"));var h=s.getColor(wi.k);h&&o.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(s.type==="hc"?"dashed":"solid")+" "+h+"; }");var v=s.getColor(wi.m);v&&o.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(s.type==="hc"?"dashed":"solid")+" "+v+"; }");var V=s.getColor(wi.Tb);V&&o.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+V+"; }");var be=s.getColor(wi.i);be&&o.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+be+"; }")});var qo=r("vN4a"),ur=Object(Yt.c)("themeService"),go=r("1OsU"),Ei=r("Qr/v"),Zi=r("FTcp"),yo=r("0ytw"),Cr=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),_r=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},ai=function(s,o){return function(t,a){o(t,a,s)}},Er=function(){for(var s=0,o=0,t=arguments.length;o<t;o++)s+=arguments[o].length;for(var a=Array(s),h=0,o=0;o<t;o++)for(var v=arguments[o],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];return a},er=0,Rr=!1;function No(){if(Rr)return;Rr=!0,ms.b(document.body)}var Ir=function(s){Cr(o,s);function o(t,a,h,v,V,be,Ae,Ne,rt,ut){var bt=this;return a=a||{},a.ariaLabel=a.ariaLabel||Yo.editorViewAccessibleLabel,a.ariaLabel=a.ariaLabel+";"+(Ps.i?Yo.accessibilityHelpMessageIE:Yo.accessibilityHelpMessage),bt=s.call(this,t,a,{},h,v,V,be,Ne,rt,ut)||this,Ae instanceof yr?bt._standaloneKeybindingService=Ae:bt._standaloneKeybindingService=null,No(),bt}return o.prototype.addCommand=function(t,a,h){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var v="DYNAMIC_"+ ++er,V=_i.a.deserialize(h);return this._standaloneKeybindingService.addDynamicKeybinding(v,t,a,V),v},o.prototype.createContextKey=function(t,a){return this._contextKeyService.createKey(t,a)},o.prototype.addAction=function(t){var a=this;if(typeof t.id!="string"||typeof t.label!="string"||typeof t.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Ht.a.None;var h=t.id,v=t.label,V=_i.a.and(_i.a.equals("editorId",this.getId()),_i.a.deserialize(t.precondition)),be=t.keybindings,Ae=_i.a.and(V,_i.a.deserialize(t.keybindingContext)),Ne=t.contextMenuGroupId||null,rt=t.contextMenuOrder||0,ut=function(wn){for(var _n=[],kn=1;kn<arguments.length;kn++)_n[kn-1]=arguments[kn];return Promise.resolve(t.run.apply(t,Er([a],_n)))},bt=new Ht.b,mt=this.getId()+":"+h;if(bt.add(we.a.registerCommand(mt,ut)),Ne){var $t={command:{id:mt,title:v},when:V,group:Ne,order:rt};bt.add(go.c.appendMenuItem(7,$t))}if(Array.isArray(be))for(var Kt=0,Wt=be;Kt<Wt.length;Kt++){var Bt=Wt[Kt];bt.add(this._standaloneKeybindingService.addDynamicKeybinding(mt,Bt,ut,Ae))}var on=new qo.a(mt,v,v,V,ut,this._contextKeyService);return this._actions[h]=on,bt.add(Object(Ht.h)(function(){delete a._actions[h]})),bt},o=_r([ai(2,Yt.a),ai(3,Ke.a),ai(4,we.b),ai(5,_i.c),ai(6,Ei.a),ai(7,ki.c),ai(8,wo.a),ai(9,Zi.b)],o),o}(Mr.a),cr=function(s){Cr(o,s);function o(t,a,h,v,V,be,Ae,Ne,rt,ut,bt,mt,$t){var Kt=this;ho(mt,a,!1);var Wt=ut.registerEditorContainer(t);a=a||{},typeof a.theme=="string"&&ut.setTheme(a.theme);var Bt=a.model;delete a.model,Kt=s.call(this,t,a,v,V,be,Ae,Ne,ut,bt,$t)||this,Kt._contextViewService=rt,Kt._configurationService=mt,Kt._register(h),Kt._register(Wt);var on;if(typeof Bt=="undefined"?(on=self.monaco.editor.createModel(a.value||"",a.language||"text/plain"),Kt._ownsModel=!0):(on=Bt,Kt._ownsModel=!1),Kt._attachModel(on),on){var cn={oldModelUrl:null,newModelUrl:on.uri};Kt._onDidChangeModel.fire(cn)}return Kt}return o.prototype.dispose=function(){s.prototype.dispose.call(this)},o.prototype.updateOptions=function(t){ho(this._configurationService,t,!1),s.prototype.updateOptions.call(this,t)},o.prototype._attachModel=function(t){s.prototype._attachModel.call(this,t),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},o.prototype._postDetachModelCleanup=function(t){s.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},o=_r([ai(3,Yt.a),ai(4,Ke.a),ai(5,we.b),ai(6,_i.c),ai(7,Ei.a),ai(8,Eo.b),ai(9,ur),ai(10,wo.a),ai(11,Ai.a),ai(12,Zi.b)],o),o}(Ir),Pr=function(s){Cr(o,s);function o(t,a,h,v,V,be,Ae,Ne,rt,ut,bt,mt,$t,Kt,Wt){var Bt=this;ho(mt,a,!0);var on=ut.registerEditorContainer(t);return a=a||{},typeof a.theme=="string"&&(a.theme=ut.setTheme(a.theme)),Bt=s.call(this,t,a,Wt,Ne,V,v,rt,ut,bt,$t,Kt)||this,Bt._contextViewService=Ae,Bt._configurationService=mt,Bt._register(h),Bt._register(on),Bt._contextViewService.setContainer(Bt._containerDomElement),Bt}return o.prototype.dispose=function(){s.prototype.dispose.call(this)},o.prototype.updateOptions=function(t){ho(this._configurationService,t,!0),s.prototype.updateOptions.call(this,t)},o.prototype._createInnerEditor=function(t,a,h){return t.createInstance(Ir,a,h)},o.prototype.getOriginalEditor=function(){return s.prototype.getOriginalEditor.call(this)},o.prototype.getModifiedEditor=function(){return s.prototype.getModifiedEditor.call(this)},o.prototype.addCommand=function(t,a,h){return this.getModifiedEditor().addCommand(t,a,h)},o.prototype.createContextKey=function(t,a){return this.getModifiedEditor().createContextKey(t,a)},o.prototype.addAction=function(t){return this.getModifiedEditor().addAction(t)},o=_r([ai(3,Yt.a),ai(4,_i.c),ai(5,Ei.a),ai(6,Eo.b),ai(7,Lt.a),ai(8,Ke.a),ai(9,ur),ai(10,wo.a),ai(11,Ai.a),ai(12,Eo.a),ai(13,br.a),ai(14,Object(Yt.d)(yo.a))],o),o}(Gr),$r=r("W03H"),_s=r("rvt5"),Es=function(){function s(o){this._languageIdentifier=o}return s.prototype.getId=function(){return this._languageIdentifier.language},s}(),Jr=r("xFpO"),Ss=r("sN1w"),Qr="text/plain",Fr="application/unknown",hr=[],kr=[],qr=[];function L(s,o){o===void 0&&(o=!1);var t=n(s);hr.push(t),t.userConfigured?qr.push(t):kr.push(t),o&&!t.userConfigured&&hr.forEach(function(a){if(a.mime===t.mime||a.userConfigured)return;t.extension&&a.extension===t.extension&&console.warn("Overwriting extension <<"+t.extension+">> to now point to mime <<"+t.mime+">>"),t.filename&&a.filename===t.filename&&console.warn("Overwriting filename <<"+t.filename+">> to now point to mime <<"+t.mime+">>"),t.filepattern&&a.filepattern===t.filepattern&&console.warn("Overwriting filepattern <<"+t.filepattern+">> to now point to mime <<"+t.mime+">>"),t.firstline&&a.firstline===t.firstline&&console.warn("Overwriting firstline <<"+t.firstline+">> to now point to mime <<"+t.mime+">>")})}function n(s){return{id:s.id,mime:s.mime,filename:s.filename,extension:s.extension,filepattern:s.filepattern,firstline:s.firstline,userConfigured:s.userConfigured,filenameLowercase:s.filename?s.filename.toLowerCase():void 0,extensionLowercase:s.extension?s.extension.toLowerCase():void 0,filepatternLowercase:s.filepattern?s.filepattern.toLowerCase():void 0,filepatternOnPath:s.filepattern?s.filepattern.indexOf(Jr.posix.sep)>=0:!1}}function e(s,o){var t;if(s)switch(s.scheme){case ke.b.file:t=s.fsPath;break;case ke.b.data:var a=$e.a.parseMetaData(s);t=a.get($e.a.META_DATA_LABEL);break;default:t=s.path}if(!t)return[Fr];t=t.toLowerCase();var h=Object(Jr.basename)(t),v=i(t,h,qr);if(v)return[v,Qr];var V=i(t,h,kr);if(V)return[V,Qr];if(o){var be=d(o);if(be)return[be,Qr]}return[Fr]}function i(s,o,t){for(var a=null,h=null,v=null,V=t.length-1;V>=0;V--){var be=t[V];if(o===be.filenameLowercase){a=be;break}if(be.filepattern&&(!h||be.filepattern.length>h.filepattern.length)){var Ae=be.filepatternOnPath?s:o;Object(Ss.a)(be.filepatternLowercase,Ae)&&(h=be)}be.extension&&((!v||be.extension.length>v.extension.length)&&(Object(Zn.m)(o,be.extensionLowercase)&&(v=be)))}return a?a.mime:h?h.mime:v?v.mime:null}function d(s){if(Object(Zn.O)(s)&&(s=s.substr(1)),s.length>0)for(var o=hr.length-1;o>=0;o--){var t=hr[o];if(!t.firstline)continue;var a=s.match(t.firstline);if(a&&a.length>0)return t.mime}return null}var c=r("jyJ4"),M=r("E+fE"),ge=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),le=Object.prototype.hasOwnProperty,He=function(s){ge(o,s);function o(t,a){t===void 0&&(t=!0),a===void 0&&(a=!1);var h=s.call(this)||this;return h._onDidChange=h._register(new N.a),h.onDidChange=h._onDidChange.event,h._warnOnOverwrite=a,h._nextLanguageId2=1,h._languageIdToLanguage=[],h._languageToLanguageId=Object.create(null),h._languages={},h._mimeTypesMap={},h._nameMap={},h._lowercaseNameMap={},t&&(h._initializeFromRegistry(),h._register(c.a.onDidChangeLanguages(function(v){return h._initializeFromRegistry()}))),h}return o.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var t=c.a.getLanguages();this._registerLanguages(t)},o.prototype._registerLanguages=function(t){for(var a=this,h=0,v=t;h<v.length;h++){var V=v[h];this._registerLanguage(V)}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(function(be){var Ae=a._languages[be];Ae.name&&(a._nameMap[Ae.name]=Ae.identifier),Ae.aliases.forEach(function(Ne){a._lowercaseNameMap[Ne.toLowerCase()]=Ae.identifier}),Ae.mimetypes.forEach(function(Ne){a._mimeTypesMap[Ne]=Ae.identifier})}),M.a.as(is.a.Configuration).registerOverrideIdentifiers(c.a.getLanguages().map(function(be){return be.id})),this._onDidChange.fire()},o.prototype._getLanguageId=function(t){if(this._languageToLanguageId[t])return this._languageToLanguageId[t];var a=this._nextLanguageId2++;return this._languageIdToLanguage[a]=t,this._languageToLanguageId[t]=a,a},o.prototype._registerLanguage=function(t){var a=t.id,h;if(le.call(this._languages,a))h=this._languages[a];else{var v=this._getLanguageId(a);h={identifier:new gt.q(a,v),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[a]=h}this._mergeLanguage(h,t)},o.prototype._mergeLanguage=function(t,a){var h,v=a.id,V=null;if(Array.isArray(a.mimetypes)&&a.mimetypes.length>0&&((h=t.mimetypes).push.apply(h,a.mimetypes),V=a.mimetypes[0]),V||(V="text/x-"+v,t.mimetypes.push(V)),Array.isArray(a.extensions))for(var be=0,Ae=a.extensions;be<Ae.length;be++){var Ne=Ae[be];L({id:v,mime:V,extension:Ne},this._warnOnOverwrite),t.extensions.push(Ne)}if(Array.isArray(a.filenames))for(var rt=0,ut=a.filenames;rt<ut.length;rt++){var bt=ut[rt];L({id:v,mime:V,filename:bt},this._warnOnOverwrite),t.filenames.push(bt)}if(Array.isArray(a.filenamePatterns))for(var mt=0,$t=a.filenamePatterns;mt<$t.length;mt++){var Kt=$t[mt];L({id:v,mime:V,filepattern:Kt},this._warnOnOverwrite)}if(typeof a.firstLine=="string"&&a.firstLine.length>0){var Wt=a.firstLine;Wt.charAt(0)!=="^"&&(Wt="^"+Wt);try{var Bt=new RegExp(Wt);Zn.I(Bt)||L({id:v,mime:V,firstline:Bt},this._warnOnOverwrite)}catch(jn){Object(nn.e)(jn)}}t.aliases.push(v);var on=null;if(typeof a.aliases!="undefined"&&Array.isArray(a.aliases)&&(a.aliases.length===0?on=[null]:on=a.aliases),on!==null)for(var cn=0,wn=on;cn<wn.length;cn++){var _n=wn[cn];if(!_n||_n.length===0)continue;t.aliases.push(_n)}var kn=on!==null&&on.length>0;if(!(kn&&on[0]===null)){var Wn=(kn?on[0]:null)||v;(kn||!t.name)&&(t.name=Wn)}a.configuration&&t.configurationFiles.push(a.configuration)},o.prototype.isRegisteredMode=function(t){return le.call(this._mimeTypesMap,t)?!0:le.call(this._languages,t)},o.prototype.getModeIdForLanguageNameLowercase=function(t){return le.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t].language:null},o.prototype.extractModeIds=function(t){var a=this;return t?t.split(",").map(function(h){return h.trim()}).map(function(h){return le.call(a._mimeTypesMap,h)?a._mimeTypesMap[h].language:h}).filter(function(h){return le.call(a._languages,h)}):[]},o.prototype.getLanguageIdentifier=function(t){if(t===Dt.b||t===0)return Dt.a;var a;if(typeof t=="string")a=t;else if(a=this._languageIdToLanguage[t],!a)return null;return le.call(this._languages,a)?this._languages[a].identifier:null},o.prototype.getModeIdsFromFilepathOrFirstLine=function(t,a){if(!t&&!a)return[];var h=e(t,a);return this.extractModeIds(h.join(","))},o}(Ht.a),st=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ht=function(s){st(o,s);function o(t,a){var h=s.call(this)||this;return h._onDidChange=h._register(new N.a),h.onDidChange=h._onDidChange.event,h._selector=a,h.languageIdentifier=h._selector(),h._register(t(function(){return h._evaluate()})),h}return o.prototype._evaluate=function(){var t=this._selector();if(t.id===this.languageIdentifier.id)return;this.languageIdentifier=t,this._onDidChange.fire(this.languageIdentifier)},o}(Ht.a),y=function(){function s(o){var t=this;o===void 0&&(o=!1),this._onDidCreateMode=new N.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new N.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new He(!0,o),this._registry.onDidChange(function(){return t._onLanguagesMaybeChanged.fire()})}return s.prototype.isRegisteredMode=function(o){return this._registry.isRegisteredMode(o)},s.prototype.getModeIdForLanguageName=function(o){return this._registry.getModeIdForLanguageNameLowercase(o)},s.prototype.getModeIdByFilepathOrFirstLine=function(o,t){var a=this._registry.getModeIdsFromFilepathOrFirstLine(o,t);return Object(tn.l)(a,null)},s.prototype.getModeId=function(o){var t=this._registry.extractModeIds(o);return Object(tn.l)(t,null)},s.prototype.getLanguageIdentifier=function(o){return this._registry.getLanguageIdentifier(o)},s.prototype.create=function(o){var t=this;return new ht(this.onLanguagesMaybeChanged,function(){var a=t.getModeId(o);return t._createModeAndGetLanguageIdentifier(a)})},s.prototype.createByFilepathOrFirstLine=function(o,t){var a=this;return new ht(this.onLanguagesMaybeChanged,function(){var h=a.getModeIdByFilepathOrFirstLine(o,t);return a._createModeAndGetLanguageIdentifier(h)})},s.prototype._createModeAndGetLanguageIdentifier=function(o){var t=this.getLanguageIdentifier(o||"plaintext")||Dt.a;return this._getOrCreateMode(t.language),t},s.prototype.triggerMode=function(o){var t=this.getModeId(o);this._getOrCreateMode(t||"plaintext")},s.prototype._getOrCreateMode=function(o){if(!this._instantiatedModes.hasOwnProperty(o)){var t=this.getLanguageIdentifier(o)||Dt.a;this._instantiatedModes[o]=new Es(t),this._onDidCreateMode.fire(this._instantiatedModes[o])}return this._instantiatedModes[o]},s}(),u=r("Cagm"),l=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),b=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},S=function(s,o){return function(t,a){o(t,a,s)}};function C(s){return s.toString()}var $=function(){function s(o,t,a){this._modelEventListeners=new Ht.b,this.model=o,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(o.onWillDispose(function(){return t(o)})),this._modelEventListeners.add(o.onDidChangeLanguage(function(h){return a(o,h)}))}return s.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},s.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},s.prototype.setLanguage=function(o){var t=this;this._disposeLanguageSelection(),this._languageSelection=o,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return t.model.setMode(o.languageIdentifier)}),this.model.setMode(o.languageIdentifier)},s}(),Be=sn.d||sn.e?1:2,ot=function(s){l(o,s);function o(t,a,h,v){var V=s.call(this)||this;return V._onModelAdded=V._register(new N.a),V.onModelAdded=V._onModelAdded.event,V._onModelRemoved=V._register(new N.a),V.onModelRemoved=V._onModelRemoved.event,V._onModelModeChanged=V._register(new N.a),V.onModelModeChanged=V._onModelModeChanged.event,V._configurationService=t,V._resourcePropertiesService=a,V._models={},V._modelCreationOptionsByLanguageAndResource=Object.create(null),V._configurationServiceSubscription=V._configurationService.onDidChangeConfiguration(function(be){return V._updateModelOptions()}),V._updateModelOptions(),V._register(new xe(V,h,t,v)),V}return o._readModelOptions=function(t,a){var h=I.c.tabSize;if(t.editor&&typeof t.editor.tabSize!="undefined"){var v=parseInt(t.editor.tabSize,10);isNaN(v)||(h=v),h<1&&(h=1)}var V=h;if(t.editor&&typeof t.editor.indentSize!="undefined"&&t.editor.indentSize!=="tabSize"){var be=parseInt(t.editor.indentSize,10);isNaN(be)||(V=be),V<1&&(V=1)}var Ae=I.c.insertSpaces;t.editor&&typeof t.editor.insertSpaces!="undefined"&&(Ae=t.editor.insertSpaces==="false"?!1:Boolean(t.editor.insertSpaces));var Ne=Be,rt=t.eol;rt===`\r
|
|
`?Ne=2:rt===`
|
|
`&&(Ne=1);var ut=I.c.trimAutoWhitespace;t.editor&&typeof t.editor.trimAutoWhitespace!="undefined"&&(ut=t.editor.trimAutoWhitespace==="false"?!1:Boolean(t.editor.trimAutoWhitespace));var bt=I.c.detectIndentation;t.editor&&typeof t.editor.detectIndentation!="undefined"&&(bt=t.editor.detectIndentation==="false"?!1:Boolean(t.editor.detectIndentation));var mt=I.c.largeFileOptimizations;return t.editor&&typeof t.editor.largeFileOptimizations!="undefined"&&(mt=t.editor.largeFileOptimizations==="false"?!1:Boolean(t.editor.largeFileOptimizations)),{isForSimpleWidget:a,tabSize:h,indentSize:V,insertSpaces:Ae,detectIndentation:bt,defaultEOL:Ne,trimAutoWhitespace:ut,largeFileOptimizations:mt}},o.prototype.getCreationOptions=function(t,a,h){var v=this._modelCreationOptionsByLanguageAndResource[t+a];if(!v){var V=this._configurationService.getValue("editor",{overrideIdentifier:t,resource:a}),be=this._resourcePropertiesService.getEOL(a,t);v=o._readModelOptions({editor:V,eol:be},h),this._modelCreationOptionsByLanguageAndResource[t+a]=v}return v},o.prototype._updateModelOptions=function(){var t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var a=Object.keys(this._models),h=0,v=a.length;h<v;h++){var V=a[h],be=this._models[V],Ae=be.model.getLanguageIdentifier().language,Ne=be.model.uri,rt=t[Ae+Ne],ut=this.getCreationOptions(Ae,Ne,be.model.isForSimpleWidget);o._setModelOptionsForModel(be.model,ut,rt)}},o._setModelOptionsForModel=function(t,a,h){if(h&&h.defaultEOL!==a.defaultEOL&&t.getLineCount()===1&&t.setEOL(a.defaultEOL===1?0:1),h&&h.detectIndentation===a.detectIndentation&&h.insertSpaces===a.insertSpaces&&h.tabSize===a.tabSize&&h.indentSize===a.indentSize&&h.trimAutoWhitespace===a.trimAutoWhitespace)return;a.detectIndentation?(t.detectIndentation(a.insertSpaces,a.tabSize),t.updateOptions({trimAutoWhitespace:a.trimAutoWhitespace})):t.updateOptions({insertSpaces:a.insertSpaces,tabSize:a.tabSize,indentSize:a.indentSize,trimAutoWhitespace:a.trimAutoWhitespace})},o.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),s.prototype.dispose.call(this)},o.prototype._createModelData=function(t,a,h,v){var V=this,be=this.getCreationOptions(a.language,h,v),Ae=new fo.b(t,be,a,h),Ne=C(Ae.uri);if(this._models[Ne])throw new Error("ModelService: Cannot add model because it already exists!");var rt=new $(Ae,function(ut){return V._onWillDispose(ut)},function(ut,bt){return V._onDidChangeLanguage(ut,bt)});return this._models[Ne]=rt,rt},o.prototype.createModel=function(t,a,h,v){v===void 0&&(v=!1);var V;return a?(V=this._createModelData(t,a.languageIdentifier,h,v),this.setMode(V.model,a)):V=this._createModelData(t,c.b,h,v),this._onModelAdded.fire(V.model),V.model},o.prototype.setMode=function(t,a){if(!a)return;var h=this._models[C(t.uri)];if(!h)return;h.setLanguage(a)},o.prototype.getModels=function(){for(var t=[],a=Object.keys(this._models),h=0,v=a.length;h<v;h++){var V=a[h];t.push(this._models[V].model)}return t},o.prototype.getModel=function(t){var a=C(t),h=this._models[a];return h?h.model:null},o.prototype._onWillDispose=function(t){var a=C(t.uri),h=this._models[a];delete this._models[a],h.dispose(),delete this._modelCreationOptionsByLanguageAndResource[t.getLanguageIdentifier().language+t.uri],this._onModelRemoved.fire(t)},o.prototype._onDidChangeLanguage=function(t,a){var h=a.oldLanguage,v=t.getLanguageIdentifier().language,V=this.getCreationOptions(h,t.uri,t.isForSimpleWidget),be=this.getCreationOptions(v,t.uri,t.isForSimpleWidget);o._setModelOptionsForModel(t,be,V),this._onModelModeChanged.fire({model:t,oldModeId:h})},o=b([S(0,Ai.a),S(1,dn),S(2,ki.c),S(3,fn.a)],o),o}(Ht.a),xe=function(s){l(o,s);function o(t,a,h,v){var V=s.call(this)||this;V._configurationService=h,V._watchers=Object.create(null),V._semanticStyling=V._register(new dt(a,v));var be=function(ut){var bt=h.getValue(o.SETTING_ID,{overrideIdentifier:ut.getLanguageIdentifier().language,resource:ut.uri});return bt&&bt.enabled},Ae=function(ut){V._watchers[ut.uri.toString()]=new an(ut,a,V._semanticStyling)},Ne=function(ut,bt){bt.dispose(),delete V._watchers[ut.uri.toString()]};return V._register(t.onModelAdded(function(rt){be(rt)&&Ae(rt)})),V._register(t.onModelRemoved(function(rt){var ut=V._watchers[rt.uri.toString()];ut&&Ne(rt,ut)})),V._configurationService.onDidChangeConfiguration(function(rt){if(rt.affectsConfiguration(o.SETTING_ID))for(var ut=0,bt=t.getModels();ut<bt.length;ut++){var mt=bt[ut],$t=V._watchers[mt.uri.toString()];be(mt)?$t||Ae(mt):$t&&Ne(mt,$t)}}),V}return o.SETTING_ID="editor.semanticHighlighting",o}(Ht.a),dt=function(s){l(o,s);function o(t,a){var h=s.call(this)||this;return h._themeService=t,h._logService=a,h._caches=new WeakMap,h._themeService&&h._register(h._themeService.onThemeChange(function(){h._caches=new WeakMap})),h}return o.prototype.get=function(t){return this._caches.has(t)||this._caches.set(t,new en(t.getLegend(),this._themeService,this._logService)),this._caches.get(t)},o}(Ht.a),Nt=function(){function s(o,t,a){this.tokenTypeIndex=o,this.tokenModifierSet=t,this.metadata=a,this.next=null}return s}(),qt=function(){function s(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=s._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<s._SIZES.length?2/3*this._currentLength:0),this._elements=[],s._nullOutEntries(this._elements,this._currentLength)}return s._nullOutEntries=function(o,t){for(var a=0;a<t;a++)o[a]=null},s.prototype._hashFunc=function(o,t){return((o<<5)-o+t|0)%this._currentLength},s.prototype.get=function(o,t){for(var a=this._hashFunc(o,t),h=this._elements[a];h;){if(h.tokenTypeIndex===o&&h.tokenModifierSet===t)return h;h=h.next}return null},s.prototype.add=function(o,t,a){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){var h=this._elements;this._currentLengthIndex++,this._currentLength=s._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<s._SIZES.length?2/3*this._currentLength:0),this._elements=[],s._nullOutEntries(this._elements,this._currentLength);for(var v=0,V=h;v<V.length;v++)for(var be=V[v],Ae=be;Ae;){var Ne=Ae.next;Ae.next=null,this._add(Ae),Ae=Ne}}this._add(new Nt(o,t,a))},s.prototype._add=function(o){var t=this._hashFunc(o.tokenTypeIndex,o.tokenModifierSet);o.next=this._elements[t],this._elements[t]=o},s._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],s}(),en=function(){function s(o,t,a){this._legend=o,this._themeService=t,this._logService=a,this._hashTable=new qt}return s.prototype.getMetadata=function(o,t){var a=this._hashTable.get(o,t),h;if(a)h=a.metadata;else{for(var v=this._legend.tokenTypes[o],V=[],be=t,Ae=0;be>0&&Ae<this._legend.tokenModifiers.length;Ae++)be&1&&V.push(this._legend.tokenModifiers[Ae]),be=be>>1;var Ne=this._themeService.getTheme().getTokenStyleMetadata(v,V);if(typeof Ne=="undefined")h=2147483647;else{if(h=0,typeof Ne.italic!="undefined"){var rt=(Ne.italic?1:0)<<11;h|=rt|1}if(typeof Ne.bold!="undefined"){var ut=(Ne.bold?2:0)<<11;h|=ut|2}if(typeof Ne.underline!="undefined"){var bt=(Ne.underline?4:0)<<11;h|=bt|4}if(Ne.foreground){var mt=Ne.foreground<<14;h|=mt|8}h===0&&(h=2147483647)}this._hashTable.add(o,t,h)}if(this._logService.getLevel()===fn.b.Trace){var $t=this._legend.tokenTypes[o],Kt=t?" "+this._legend.tokenModifiers.filter(function(Wt,Bt){return t&1<<Bt}).join(" "):"";this._logService.trace("tokenStyleMetadata "+(a?"[CACHED] ":"")+$t+Kt+": foreground "+gt.x.getForeground(h)+", fontStyle "+gt.x.getFontStyle(h).toString(2))}return h},s}(),un=function(){function s(o,t,a){this._provider=o,this.resultId=t,this.data=a}return s.prototype.dispose=function(){this._provider.releaseDocumentSemanticTokens(this.resultId)},s}(),an=function(s){l(o,s);function o(t,a,h){var v=s.call(this)||this;return v._isDisposed=!1,v._model=t,v._semanticStyling=h,v._fetchSemanticTokens=v._register(new Qt.d(function(){return v._fetchSemanticTokensNow()},300)),v._currentResponse=null,v._currentRequestCancellationTokenSource=null,v._register(v._model.onDidChangeContent(function(V){v._fetchSemanticTokens.isScheduled()||v._fetchSemanticTokens.schedule()})),v._register(gt.k.onDidChange(function(V){return v._fetchSemanticTokens.schedule()})),a&&v._register(a.onThemeChange(function(V){v._setSemanticTokens(null,null,null,[]),v._fetchSemanticTokens.schedule()})),v._fetchSemanticTokens.schedule(0),v}return o.prototype.dispose=function(){this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._currentRequestCancellationTokenSource&&(this._currentRequestCancellationTokenSource.cancel(),this._currentRequestCancellationTokenSource=null),this._setSemanticTokens(null,null,null,[]),this._isDisposed=!0,s.prototype.dispose.call(this)},o.prototype._fetchSemanticTokensNow=function(){var t=this;if(this._currentRequestCancellationTokenSource)return;var a=this._getSemanticColoringProvider();if(!a)return;this._currentRequestCancellationTokenSource=new ne.b;var h=[],v=this._model.onDidChangeContent(function(Ne){h.push(Ne)}),V=this._semanticStyling.get(a),be=this._currentResponse&&this._currentResponse.resultId||null,Ae=Promise.resolve(a.provideDocumentSemanticTokens(this._model,be,this._currentRequestCancellationTokenSource.token));Ae.then(function(Ne){t._currentRequestCancellationTokenSource=null,v.dispose(),t._setSemanticTokens(a,Ne||null,V,h)},function(Ne){(!Ne||typeof Ne.message!="string"||Ne.message.indexOf("busy")===-1)&&nn.e(Ne),t._currentRequestCancellationTokenSource=null,v.dispose(),h.length>0&&(t._fetchSemanticTokens.isScheduled()||t._fetchSemanticTokens.schedule())})},o._isSemanticTokens=function(t){return t&&!!t.data},o._isSemanticTokensEdits=function(t){return t&&Array.isArray(t.edits)},o._copy=function(t,a,h,v,V){for(var be=0;be<V;be++)h[v+be]=t[a+be]},o.prototype._setSemanticTokens=function(t,a,h,v){var V=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed){t&&a&&t.releaseDocumentSemanticTokens(a.resultId);return}if(!t||!a||!h){this._model.setSemanticTokens(null);return}if(o._isSemanticTokensEdits(a)){if(!V){this._model.setSemanticTokens(null);return}if(a.edits.length===0)a={resultId:a.resultId,data:V.data};else{for(var be=0,Ae=0,Ne=a.edits;Ae<Ne.length;Ae++){var rt=Ne[Ae];be+=(rt.data?rt.data.length:0)-rt.deleteCount}for(var ut=V.data,bt=new Uint32Array(ut.length+be),mt=ut.length,$t=bt.length,Kt=a.edits.length-1;Kt>=0;Kt--){var rt=a.edits[Kt],Wt=mt-(rt.start+rt.deleteCount);Wt>0&&(o._copy(ut,mt-Wt,bt,$t-Wt,Wt),$t-=Wt),rt.data&&(o._copy(rt.data,0,bt,$t-rt.data.length,rt.data.length),$t-=rt.data.length),mt=rt.start}mt>0&&o._copy(ut,0,bt,0,mt),a={resultId:a.resultId,data:bt}}}if(o._isSemanticTokens(a)){this._currentResponse=new un(t,a.resultId,a.data);for(var ut=a.data,Bt=a.data.length/5|0,on=Math.max(Math.ceil(Bt/1024),400),cn=[],wn=0,_n=1,kn=0;wn<Bt;){var Wn=wn,jn=Math.min(Wn+on,Bt);if(jn<Bt){for(var ei=jn;ei-1>Wn&&ut[5*ei]===0;)ei--;if(ei-1===Wn){for(var Hn=jn;Hn+1<Bt&&ut[5*Hn]===0;)Hn++;jn=Hn}else jn=ei}for(var bt=new Uint32Array((jn-Wn)*4),vn=0,ni=0;wn<jn;){var $n=5*wn,pi=ut[$n],xi=ut[$n+1],To=_n+pi,bo=pi===0?kn+xi:xi,Io=ut[$n+2],Sr=ut[$n+3],Ds=ut[$n+4],el=h.getMetadata(Sr,Ds);el!==2147483647&&(ni===0&&(ni=To),bt[vn]=To-ni,bt[vn+1]=bo,bt[vn+2]=bo+Io,bt[vn+3]=el,vn+=4),_n=To,kn=bo,wn++}vn!==bt.length&&(bt=bt.subarray(0,vn));var Ou=new u.a(ni,new u.c(bt));cn.push(Ou)}if(v.length>0){for(var Da=0,tl=v;Da<tl.length;Da++)for(var Tu=tl[Da],Oa=0,nl=cn;Oa<nl.length;Oa++)for(var Mu=nl[Oa],Ta=0,il=Tu.changes;Ta<il.length;Ta++){var ol=il[Ta];Mu.applyEdit(ol.range,ol.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(cn);return}this._model.setSemanticTokens(null)},o.prototype._getSemanticColoringProvider=function(){var t=gt.k.ordered(this._model);return t.length>0?t[0]:null},o}(Ht.a),Cn=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),In=function(s){Cn(o,s);function o(){var t=s.call(this)||this;return t._onCodeEditorAdd=t._register(new N.a),t.onCodeEditorAdd=t._onCodeEditorAdd.event,t._onCodeEditorRemove=t._register(new N.a),t.onCodeEditorRemove=t._onCodeEditorRemove.event,t._onDiffEditorAdd=t._register(new N.a),t._onDiffEditorRemove=t._register(new N.a),t._codeEditors=Object.create(null),t._diffEditors=Object.create(null),t}return o.prototype.addCodeEditor=function(t){this._codeEditors[t.getId()]=t,this._onCodeEditorAdd.fire(t)},o.prototype.removeCodeEditor=function(t){delete this._codeEditors[t.getId()]&&this._onCodeEditorRemove.fire(t)},o.prototype.listCodeEditors=function(){var t=this;return Object.keys(this._codeEditors).map(function(a){return t._codeEditors[a]})},o.prototype.addDiffEditor=function(t){this._diffEditors[t.getId()]=t,this._onDiffEditorAdd.fire(t)},o.prototype.removeDiffEditor=function(t){delete this._diffEditors[t.getId()]&&this._onDiffEditorRemove.fire(t)},o.prototype.listDiffEditors=function(){var t=this;return Object.keys(this._diffEditors).map(function(a){return t._diffEditors[a]})},o.prototype.getFocusedCodeEditor=function(){for(var t=null,a=this.listCodeEditors(),h=0,v=a;h<v.length;h++){var V=v[h];if(V.hasTextFocus())return V;V.hasWidgetFocus()&&(t=V)}return t},o}(Ht.a),Nn=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ti=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},Dn=function(s,o){return function(t,a){o(t,a,s)}},di=function(){function s(o,t,a){this._parent=o,this._editorId=t,this.styleSheet=a,this._refCount=0}return s.prototype.ref=function(){this._refCount++},s.prototype.unref=function(){var o;this._refCount--,this._refCount===0&&((o=this.styleSheet.parentNode)===null||o===void 0||o.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},s}(),qn=function(){function s(o){this.styleSheet=o}return s.prototype.ref=function(){},s.prototype.unref=function(){},s}(),Ri=function(s){Nn(o,s);function o(t,a){a===void 0&&(a=null);var h=s.call(this)||this;return h._decorationOptionProviders=new Map,h._editorStyleSheets=new Map,h._globalStyleSheet=a?new qn(a):null,h._themeService=t,h}return o.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new qn(Xe.v())),this._globalStyleSheet},o.prototype._getOrCreateStyleSheet=function(t){if(!t)return this._getOrCreateGlobalStyleSheet();var a=t.getContainerDomNode();if(!Xe.M(a))return this._getOrCreateGlobalStyleSheet();var h=t.getId();if(!this._editorStyleSheets.has(h)){var v=new di(this,h,Xe.v(a));this._editorStyleSheets.set(h,v)}return this._editorStyleSheets.get(h)},o.prototype._removeEditorStyleSheets=function(t){this._editorStyleSheets.delete(t)},o.prototype.registerDecorationType=function(t,a,h,v){var V=this._decorationOptionProviders.get(t);if(!V){var be=this._getOrCreateStyleSheet(v),Ae={styleSheet:be.styleSheet,key:t,parentTypeKey:h,options:a||Object.create(null)};h?V=new li(this._themeService,be,Ae):V=new mo(this._themeService,be,Ae),this._decorationOptionProviders.set(t,V)}V.refCount++},o.prototype.removeDecorationType=function(t){var a=this._decorationOptionProviders.get(t);a&&(a.refCount--,a.refCount<=0&&(this._decorationOptionProviders.delete(t),a.dispose(),this.listCodeEditors().forEach(function(h){return h.removeDecorations(t)})))},o.prototype.resolveDecorationOptions=function(t,a){var h=this._decorationOptionProviders.get(t);if(!h)throw new Error("Unknown decoration type key: "+t);return h.getOptions(this,a)},o=ti([Dn(0,ki.c)],o),o}(In),li=function(){function s(o,t,a){this._styleSheet=t,this._styleSheet.ref(),this._parentTypeKey=a.parentTypeKey,this.refCount=0,this._beforeContentRules=new ui(3,a,o),this._afterContentRules=new ui(4,a,o)}return s.prototype.getOptions=function(o,t){var a=o.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(a.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(a.afterContentClassName=this._afterContentRules.className),a},s.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},s}(),mo=function(){function s(o,t,a){var h=this;this._disposables=new Ht.b,this._styleSheet=t,this._styleSheet.ref(),this.refCount=0;var v=function(bt){var mt=new ui(bt,a,o);return h._disposables.add(mt),mt.hasContent?mt.className:void 0},V=function(bt){var mt=new ui(bt,a,o);return h._disposables.add(mt),mt.hasContent?{className:mt.className,hasLetterSpacing:mt.hasLetterSpacing}:null};this.className=v(0);var be=V(1);be&&(this.inlineClassName=be.className,this.inlineClassNameAffectsLetterSpacing=be.hasLetterSpacing),this.beforeContentClassName=v(3),this.afterContentClassName=v(4),this.glyphMarginClassName=v(2);var Ae=a.options;this.isWholeLine=Boolean(Ae.isWholeLine),this.stickiness=Ae.rangeBehavior;var Ne=Ae.light&&Ae.light.overviewRulerColor||Ae.overviewRulerColor,rt=Ae.dark&&Ae.dark.overviewRulerColor||Ae.overviewRulerColor;(typeof Ne!="undefined"||typeof rt!="undefined")&&(this.overviewRuler={color:Ne||rt,darkColor:rt||Ne,position:Ae.overviewRulerLane||pt.d.Center})}return s.prototype.getOptions=function(o,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},s.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},s}(),Li={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},ui=function(){function s(o,t,a){var h=this;this._theme=a.getTheme(),this._ruleType=o,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var v=Hi.getClassName(this._providerArgs.key,o);this._providerArgs.parentTypeKey&&(v=v+" "+Hi.getClassName(this._providerArgs.parentTypeKey,o)),this._className=v,this._unThemedSelector=Hi.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,o),this._buildCSS(),this._usesThemeColors?this._themeListener=a.onThemeChange(function(V){h._theme=a.getTheme(),h._removeCSS(),h._buildCSS()}):this._themeListener=null}return s.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(s.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),s.prototype._buildCSS=function(){var o=this._providerArgs.options,t,a,h;switch(this._ruleType){case 0:t=this.getCSSTextForModelDecorationClassName(o),a=this.getCSSTextForModelDecorationClassName(o.light),h=this.getCSSTextForModelDecorationClassName(o.dark);break;case 1:t=this.getCSSTextForModelDecorationInlineClassName(o),a=this.getCSSTextForModelDecorationInlineClassName(o.light),h=this.getCSSTextForModelDecorationInlineClassName(o.dark);break;case 2:t=this.getCSSTextForModelDecorationGlyphMarginClassName(o),a=this.getCSSTextForModelDecorationGlyphMarginClassName(o.light),h=this.getCSSTextForModelDecorationGlyphMarginClassName(o.dark);break;case 3:t=this.getCSSTextForModelDecorationContentClassName(o.before),a=this.getCSSTextForModelDecorationContentClassName(o.light&&o.light.before),h=this.getCSSTextForModelDecorationContentClassName(o.dark&&o.dark.before);break;case 4:t=this.getCSSTextForModelDecorationContentClassName(o.after),a=this.getCSSTextForModelDecorationContentClassName(o.light&&o.light.after),h=this.getCSSTextForModelDecorationContentClassName(o.dark&&o.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var v=this._providerArgs.styleSheet.sheet,V=!1;t.length>0&&(v.insertRule(this._unThemedSelector+" {"+t+"}",0),V=!0),a.length>0&&(v.insertRule(".vs"+this._unThemedSelector+" {"+a+"}",0),V=!0),h.length>0&&(v.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+h+"}",0),V=!0),this._hasContent=V},s.prototype._removeCSS=function(){Xe.N(this._unThemedSelector,this._providerArgs.styleSheet)},s.prototype.getCSSTextForModelDecorationClassName=function(o){if(!o)return"";var t=[];return this.collectCSSText(o,["backgroundColor"],t),this.collectCSSText(o,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(o,t),t.join("")},s.prototype.getCSSTextForModelDecorationInlineClassName=function(o){if(!o)return"";var t=[];return this.collectCSSText(o,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),o.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},s.prototype.getCSSTextForModelDecorationContentClassName=function(o){if(!o)return"";var t=[];if(typeof o!="undefined"){if(this.collectBorderSettingsCSSText(o,t),typeof o.contentIconPath!="undefined"&&t.push(Zn.r(Li.contentIconPath,Xe.q(U.a.revive(o.contentIconPath)))),typeof o.contentText=="string"){var a=o.contentText.match(/^.*$/m)[0],h=a.replace(/['\\]/g,"\\$&");t.push(Zn.r(Li.contentText,h))}this.collectCSSText(o,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(o,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},s.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(o){if(!o)return"";var t=[];return typeof o.gutterIconPath!="undefined"&&(t.push(Zn.r(Li.gutterIconPath,Xe.q(U.a.revive(o.gutterIconPath)))),typeof o.gutterIconSize!="undefined"&&t.push(Zn.r(Li.gutterIconSize,o.gutterIconSize))),t.join("")},s.prototype.collectBorderSettingsCSSText=function(o,t){return this.collectCSSText(o,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)?(t.push(Zn.r("box-sizing: border-box;")),!0):!1},s.prototype.collectCSSText=function(o,t,a){for(var h=a.length,v=0,V=t;v<V.length;v++){var be=V[v],Ae=this.resolveValue(o[be]);typeof Ae=="string"&&a.push(Zn.r(Li[be],Ae))}return a.length!==h},s.prototype.resolveValue=function(o){if(Object(Ft.c)(o)){this._usesThemeColors=!0;var t=this._theme.getColor(o.id);return t?t.toString():"transparent"}return o},s}(),Hi=function(){function s(){}return s.getClassName=function(o,t){return"ced-"+o+"-"+t},s.getSelector=function(o,t,a){var h=".monaco-editor ."+this.getClassName(o,a);return t&&(h=h+"."+this.getClassName(t,a)),a===3?h+="::before":a===4&&(h+="::after"),h},s}(),$i=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Ji=function(s){$i(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o.prototype.getActiveCodeEditor=function(){return null},o.prototype.openCodeEditor=function(t,a,h){return a?Promise.resolve(this.doOpenEditor(a,t)):Promise.resolve(null)},o.prototype.doOpenEditor=function(t,a){var h=this.findModel(t,a.resource);if(!h){if(a.resource){var v=a.resource.scheme;if(v===ke.b.http||v===ke.b.https)return Object(Xe.Z)(a.resource.toString()),t}return null}var V=a.options?a.options.selection:null;if(V)if(typeof V.endLineNumber=="number"&&typeof V.endColumn=="number")t.setSelection(V),t.revealRangeInCenter(V,1);else{var be={lineNumber:V.startLineNumber,column:V.startColumn};t.setPosition(be),t.revealPositionInCenter(be,1)}return t},o.prototype.findModel=function(t,a){var h=t.getModel();return h&&h.uri.toString()!==a.toString()?null:h},o}(Ri),Vi=r("Ytku"),Qi=function(){function s(o,t,a,h,v){this.token=o,this.index=t,this.fontStyle=a,this.foreground=h,this.background=v}return s}();function hi(s){if(!s||!Array.isArray(s))return[];for(var o=[],t=0,a=0,h=s.length;a<h;a++){var v=s[a],V=-1;if(typeof v.fontStyle=="string"){V=0;for(var be=v.fontStyle.split(" "),Ae=0,Ne=be.length;Ae<Ne;Ae++){var rt=be[Ae];switch(rt){case"italic":V=V|1;break;case"bold":V=V|2;break;case"underline":V=V|4;break}}}var ut=null;typeof v.foreground=="string"&&(ut=v.foreground);var bt=null;typeof v.background=="string"&&(bt=v.background),o[t++]=new Qi(v.token||"",a,V,ut,bt)}return o}function Fi(s,o){s.sort(function(Bt,on){var cn=Ro(Bt.token,on.token);return cn!==0?cn:Bt.index-on.index});for(var t=0,a="000000",h="ffffff";s.length>=1&&s[0].token==="";){var v=s.shift();v.fontStyle!==-1&&(t=v.fontStyle),v.foreground!==null&&(a=v.foreground),v.background!==null&&(h=v.background)}for(var V=new es,be=0,Ae=o;be<Ae.length;be++){var Ne=Ae[be];V.getId(Ne)}for(var rt=V.getId(a),ut=V.getId(h),bt=new rl(t,rt,ut),mt=new sl(bt),$t=0,Kt=s.length;$t<Kt;$t++){var Wt=s[$t];mt.insert(Wt.token,Wt.fontStyle,V.getId(Wt.foreground),V.getId(Wt.background))}return new ws(V,mt)}var Ki=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,es=function(){function s(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return s.prototype.getId=function(o){if(o===null)return 0;var t=o.match(Ki);if(!t)throw new Error("Illegal value for token color: "+o);o=t[1].toUpperCase();var a=this._color2id.get(o);return a||(a=++this._lastColorId,this._color2id.set(o,a),this._id2color[a]=Vi.a.fromHex("#"+o),a)},s.prototype.getColorMap=function(){return this._id2color.slice(0)},s}(),ws=function(){function s(o,t){this._colorMap=o,this._root=t,this._cache=new Map}return s.createFromRawTokenTheme=function(o,t){return this.createFromParsedTokenTheme(hi(o),t)},s.createFromParsedTokenTheme=function(o,t){return Fi(o,t)},s.prototype.getColorMap=function(){return this._colorMap.getColorMap()},s.prototype._match=function(o){return this._root.match(o)},s.prototype.match=function(o,t){var a=this._cache.get(t);if(typeof a=="undefined"){var h=this._match(t),v=io(t);a=(h.metadata|v<<8)>>>0,this._cache.set(t,a)}return(a|o<<0)>>>0},s}(),ia=/\b(comment|string|regex|regexp)\b/;function io(s){var o=s.match(ia);if(!o)return 0;switch(o[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function Ro(s,o){return s<o?-1:s>o?1:0}var rl=function(){function s(o,t,a){this._fontStyle=o,this._foreground=t,this._background=a,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return s.prototype.clone=function(){return new s(this._fontStyle,this._foreground,this._background)},s.prototype.acceptOverwrite=function(o,t,a){o!==-1&&(this._fontStyle=o),t!==0&&(this._foreground=t),a!==0&&(this._background=a),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},s}(),sl=function(){function s(o){this._mainRule=o,this._children=new Map}return s.prototype.match=function(o){if(o==="")return this._mainRule;var t=o.indexOf("."),a,h;t===-1?(a=o,h=""):(a=o.substring(0,t),h=o.substring(t+1));var v=this._children.get(a);return typeof v!="undefined"?v.match(h):this._mainRule},s.prototype.insert=function(o,t,a,h){if(o===""){this._mainRule.acceptOverwrite(t,a,h);return}var v=o.indexOf("."),V,be;v===-1?(V=o,be=""):(V=o.substring(0,v),be=o.substring(v+1));var Ae=this._children.get(V);typeof Ae=="undefined"&&(Ae=new s(this._mainRule.clone()),this._children.set(V,Ae)),Ae.insert(be,t,a,h)},s}();function al(s){for(var o=[],t=1,a=s.length;t<a;t++){var h=s[t];o[t]=".mtk"+t+" { color: "+h+"; }"}return o.push(".mtki { font-style: italic; }"),o.push(".mtkb { font-weight: bold; }"),o.push(".mtku { text-decoration: underline; text-underline-position: under; }"),o.join(`
|
|
`)}var jr,Wr,Ls,ll={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(jr={},jr[wi.o]="#FFFFFE",jr[wi.x]="#000000",jr[wi.F]="#E5EBF1",jr[Co.g]="#D3D3D3",jr[Co.a]="#939393",jr[wi.M]="#ADD6FF4D",jr)},dl={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(Wr={},Wr[wi.o]="#1E1E1E",Wr[wi.x]="#D4D4D4",Wr[wi.F]="#3A3D41",Wr[Co.g]="#404040",Wr[Co.a]="#707070",Wr[wi.M]="#ADD6FF26",Wr)},ul={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(Ls={},Ls[wi.o]="#000000",Ls[wi.x]="#FFFFFF",Ls[Co.g]="#FFFFFF",Ls[Co.a]="#FFFFFF",Ls)},cl=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),ts="vs",oa="vs-dark",Hs="hc-black",hl=M.a.as(wi.a.ColorContribution),fl=M.a.as(ki.a.ThemingContribution),Ma=function(){function s(o,t){this.themeData=t;var a=t.base;o.length>0?(this.id=a+" "+o,this.themeName=o):(this.id=a,this.themeName=a),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(s.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),s.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},s.prototype.getColors=function(){if(!this.colors){var o=new Map;for(var t in this.themeData.colors)o.set(t,Vi.a.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var a=ha(this.themeData.base);for(var t in a.colors)o.has(t)||o.set(t,Vi.a.fromHex(a.colors[t]))}this.colors=o}return this.colors},s.prototype.getColor=function(o,t){var a=this.getColors().get(o);return a||(t!==!1?this.getDefault(o):void 0)},s.prototype.getDefault=function(o){var t=this.defaultColors[o];return t||(t=hl.resolveDefaultColor(o,this),this.defaultColors[o]=t,t)},s.prototype.defines=function(o){return Object.prototype.hasOwnProperty.call(this.getColors(),o)},Object.defineProperty(s.prototype,"type",{get:function(){switch(this.base){case ts:return"light";case Hs:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var t=[],a=[];if(this.themeData.inherit){var h=ha(this.themeData.base);t=h.rules,h.encodedTokensColors&&(a=h.encodedTokensColors)}t=t.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(a=this.themeData.encodedTokensColors),this._tokenTheme=ws.createFromRawTokenTheme(t,a)}return this._tokenTheme},enumerable:!0,configurable:!0}),s.prototype.getTokenStyleMetadata=function(o,t){return},s}();function ca(s){return s===ts||s===oa||s===Hs}function ha(s){switch(s){case ts:return ll;case oa:return dl;case Hs:return ul}}function fa(s){var o=ha(s);return new Ma(s,o)}var pl=function(s){cl(o,s);function o(){var t=s.call(this)||this;return t._onThemeChange=t._register(new N.a),t.onThemeChange=t._onThemeChange.event,t._environment=Object.create(null),t._knownThemes=new Map,t._knownThemes.set(ts,fa(ts)),t._knownThemes.set(oa,fa(oa)),t._knownThemes.set(Hs,fa(Hs)),t._css="",t._globalStyleElement=null,t._styleElements=[],t.setTheme(ts),t}return o.prototype.registerEditorContainer=function(t){return Xe.M(t)?this._registerShadowDomContainer(t):this._registerRegularEditorContainer()},o.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=Xe.v(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),Ht.a.None},o.prototype._registerShadowDomContainer=function(t){var a=this,h=Xe.v(t);return h.className="monaco-colors",h.innerHTML=this._css,this._styleElements.push(h),{dispose:function(){for(var V=0;V<a._styleElements.length;V++)if(a._styleElements[V]===h){a._styleElements.splice(V,1);return}}}},o.prototype.defineTheme=function(t,a){if(!/^[a-z0-9\-]+$/i.test(t))throw new Error("Illegal theme name!");if(!ca(a.base)&&!ca(t))throw new Error("Illegal theme base!");this._knownThemes.set(t,new Ma(t,a)),ca(t)&&this._knownThemes.forEach(function(h){h.base===t&&h.notifyBaseUpdated()}),this._theme&&this._theme.themeName===t&&this.setTheme(t)},o.prototype.getTheme=function(){return this._theme},o.prototype.setTheme=function(t){var a=this,h;if(this._knownThemes.has(t)?h=this._knownThemes.get(t):h=this._knownThemes.get(ts),this._theme===h)return h.id;this._theme=h;var v=[],V={},be={addRule:function(ut){V[ut]||(v.push(ut),V[ut]=!0)}};fl.getThemingParticipants().forEach(function(rt){return rt(h,be,a._environment)});var Ae=h.tokenTheme,Ne=Ae.getColorMap();return be.addRule(al(Ne)),this._css=v.join(`
|
|
`),this._styleElements.forEach(function(rt){return rt.innerHTML=a._css}),gt.y.setColorMap(Ne),this._onThemeChange.fire(h),h.id},o.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},o}(Ht.a),ra=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),gl=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},ml=function(s,o){return function(t,a){o(t,a,s)}},sa="data-keybinding-context",pa=function(){function s(o,t){this._id=o,this._parent=t,this._value=Object.create(null),this._value._contextId=o}return s.prototype.setValue=function(o,t){return this._value[o]!==t?(this._value[o]=t,!0):!1},s.prototype.removeValue=function(o){return o in this._value?(delete this._value[o],!0):!1},s.prototype.getValue=function(o){var t=this._value[o];return typeof t=="undefined"&&this._parent?this._parent.getValue(o):t},s}(),aa=function(s){ra(o,s);function o(){return s.call(this,-1,null)||this}return o.prototype.setValue=function(t,a){return!1},o.prototype.removeValue=function(t){return!1},o.prototype.getValue=function(t){return},o.INSTANCE=new o,o}(pa),vl=function(s){ra(o,s);function o(t,a,h){var v=s.call(this,t,null)||this;return v._configurationService=a,v._values=new Map,v._listener=v._configurationService.onDidChangeConfiguration(function(V){if(V.source===6){var be=Object(Ko.d)(v._values);v._values.clear(),h.fire(new Aa(be))}else{for(var Ae=[],Ne=0,rt=V.affectedKeys;Ne<rt.length;Ne++){var ut=rt[Ne],bt="config."+ut;v._values.has(bt)&&(v._values.delete(bt),Ae.push(bt))}h.fire(new Aa(Ae))}}),v}return o.prototype.dispose=function(){this._listener.dispose()},o.prototype.getValue=function(t){if(t.indexOf(o._keyPrefix)!==0)return s.prototype.getValue.call(this,t);if(this._values.has(t))return this._values.get(t);var a=t.substr(o._keyPrefix.length),h=this._configurationService.getValue(a),v=void 0;switch(typeof h){case"number":case"boolean":case"string":v=h;break}return this._values.set(t,v),v},o.prototype.setValue=function(t,a){return s.prototype.setValue.call(this,t,a)},o.prototype.removeValue=function(t){return s.prototype.removeValue.call(this,t)},o._keyPrefix="config.",o}(pa),yl=function(){function s(o,t,a){this._service=o,this._key=t,this._defaultValue=a,this.reset()}return s.prototype.set=function(o){this._service.setContext(this._key,o)},s.prototype.reset=function(){typeof this._defaultValue=="undefined"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},s.prototype.get=function(){return this._service.getContextKeyValue(this._key)},s}(),xa=function(){function s(o){this.key=o}return s.prototype.affectsSome=function(o){return o.has(this.key)},s}(),Aa=function(){function s(o){this.keys=o}return s.prototype.affectsSome=function(o){for(var t=0,a=this.keys;t<a.length;t++){var h=a[t];if(o.has(h))return!0}return!1},s}(),bl=function(){function s(o){this.events=o}return s.prototype.affectsSome=function(o){for(var t=0,a=this.events;t<a.length;t++){var h=a[t];if(h.affectsSome(o))return!0}return!1},s}(),Na=function(){function s(o){this._onDidChangeContext=new N.d({merge:function(a){return new bl(a)}}),this._isDisposed=!1,this._myContextId=o}return s.prototype.createKey=function(o,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new yl(this,o,t)},Object.defineProperty(s.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),s.prototype.bufferChangeEvents=function(o){this._onDidChangeContext.pause();try{o()}finally{this._onDidChangeContext.resume()}},s.prototype.createScoped=function(o){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new _l(this,o)},s.prototype.contextMatchesRules=function(o){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId),a=mr.contextMatchesRules(t,o);return a},s.prototype.getContextKeyValue=function(o){return this._isDisposed?void 0:this.getContextValuesContainer(this._myContextId).getValue(o)},s.prototype.setContext=function(o,t){if(this._isDisposed)return;var a=this.getContextValuesContainer(this._myContextId);if(!a)return;a.setValue(o,t)&&this._onDidChangeContext.fire(new xa(o))},s.prototype.removeContext=function(o){if(this._isDisposed)return;this.getContextValuesContainer(this._myContextId).removeValue(o)&&this._onDidChangeContext.fire(new xa(o))},s.prototype.getContext=function(o){return this._isDisposed?aa.INSTANCE:this.getContextValuesContainer(El(o))},s}(),Cl=function(s){ra(o,s);function o(t){var a=s.call(this,0)||this;a._contexts=new Map,a._toDispose=new Ht.b,a._lastContextId=0;var h=new vl(a._myContextId,t,a._onDidChangeContext);return a._contexts.set(a._myContextId,h),a._toDispose.add(h),a}return o.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},o.prototype.getContextValuesContainer=function(t){return this._isDisposed?aa.INSTANCE:this._contexts.get(t)||aa.INSTANCE},o.prototype.createChildContext=function(t){if(t===void 0&&(t=this._myContextId),this._isDisposed)throw new Error("ContextKeyService has been disposed");var a=++this._lastContextId;return this._contexts.set(a,new pa(a,this.getContextValuesContainer(t))),a},o.prototype.disposeContext=function(t){this._isDisposed||this._contexts.delete(t)},o=gl([ml(0,Ai.a)],o),o}(Na),_l=function(s){ra(o,s);function o(t,a){var h=s.call(this,t.createChildContext())||this;return h._parent=t,a&&(h._domNode=a,h._domNode.setAttribute(sa,String(h._myContextId))),h}return o.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(sa),this._domNode=void 0)},Object.defineProperty(o.prototype,"onDidChangeContext",{get:function(){return N.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),o.prototype.getContextValuesContainer=function(t){return this._isDisposed?aa.INSTANCE:this._parent.getContextValuesContainer(t)},o.prototype.createChildContext=function(t){if(t===void 0&&(t=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(t)},o.prototype.disposeContext=function(t){if(this._isDisposed)return;this._parent.disposeContext(t)},o}(Na);function El(s){for(;s;){if(s.hasAttribute(sa)){var o=s.getAttribute(sa);return o?parseInt(o,10):NaN}s=s.parentElement}return 0}we.a.registerCommand(_i.e,function(s,o,t){s.get(_i.c).createKey(String(o),t)});var xu=r("Oa5o"),Au=r("Ez++"),Ks=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),Sl=function(){for(var s=0,o=0,t=arguments.length;o<t;o++)s+=arguments[o].length;for(var a=Array(s),h=0,o=0;o<t;o++)for(var v=arguments[o],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];return a},ga=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,ma=/(&)?(&)([^\s&])/g,Gs;(function(s){s[s.Right=0]="Right",s[s.Left=1]="Left"})(Gs||(Gs={}));var wl=function(s){Ks(o,s);function o(t,a,h){var v=s.call(this,h||"submenu",t,"",!0)||this;return v.entries=a,v}return o}(rr.a),Ra=function(s){Ks(o,s);function o(t,a,h){h===void 0&&(h={});var v=this;Object(Xe.e)(t,"monaco-menu-container"),t.setAttribute("role","presentation");var V=document.createElement("div");Object(Xe.e)(V,"monaco-menu"),V.setAttribute("role","presentation"),v=s.call(this,V,{orientation:2,actionViewItemProvider:function(rt){return v.doGetActionViewItem(rt,h,be)},context:h.context,actionRunner:h.actionRunner,ariaLabel:h.ariaLabel,triggerKeys:{keys:Sl([3],sn.e?[10]:[]),keyDown:!0}})||this,v.menuElement=V,v.actionsList.setAttribute("role","menu"),v.actionsList.tabIndex=0,v.menuDisposables=v._register(new Ht.b),Object(Xe.i)(V,Xe.c.KEY_DOWN,function(Ne){var rt=new co.a(Ne);rt.equals(2)&&Ne.preventDefault()}),h.enableMnemonics&&v.menuDisposables.add(Object(Xe.i)(V,Xe.c.KEY_DOWN,function(Ne){var rt=Ne.key.toLocaleLowerCase();if(v.mnemonics.has(rt)){Xe.b.stop(Ne,!0);var ut=v.mnemonics.get(rt);if(ut.length===1&&(ut[0]instanceof Ia&&ut[0].container&&v.focusItemByElement(ut[0].container),ut[0].onClick(Ne)),ut.length>1){var bt=ut.shift();bt&&bt.container&&(v.focusItemByElement(bt.container),ut.push(bt)),v.mnemonics.set(rt,ut)}}})),sn.d&&v._register(Object(Xe.i)(V,Xe.c.KEY_DOWN,function(Ne){var rt=new co.a(Ne);rt.equals(14)||rt.equals(11)?(v.focusedItem=v.viewItems.length-1,v.focusNext(),Xe.b.stop(Ne,!0)):(rt.equals(13)||rt.equals(12))&&(v.focusedItem=0,v.focusPrevious(),Xe.b.stop(Ne,!0))})),v._register(Object(Xe.i)(v.domNode,Xe.c.MOUSE_OUT,function(Ne){var rt=Ne.relatedTarget;Object(Xe.J)(rt,v.domNode)||(v.focusedItem=void 0,v.updateFocus(),Ne.stopPropagation())})),v._register(Object(Xe.i)(v.actionsList,Xe.c.MOUSE_OVER,function(Ne){var rt=Ne.target;if(!rt||!Object(Xe.J)(rt,v.actionsList)||rt===v.actionsList)return;for(;rt.parentElement!==v.actionsList&&rt.parentElement!==null;)rt=rt.parentElement;if(Object(Xe.H)(rt,"action-item")){var ut=v.focusedItem;v.setFocusedItem(rt),ut!==v.focusedItem&&v.updateFocus()}}));var be={parent:v};v.mnemonics=new Map,v.scrollableElement=v._register(new or.a(V,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var Ae=v.scrollableElement.getDomNode();return Ae.style.position="",v._register(Object(Xe.i)(Ae,Xe.c.MOUSE_UP,function(Ne){Ne.preventDefault()})),V.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",v.push(a,{icon:!0,label:!0,isMenu:!0}),t.appendChild(v.scrollableElement.getDomNode()),v.scrollableElement.scanDomNode(),v.viewItems.filter(function(Ne){return!(Ne instanceof ya)}).forEach(function(Ne,rt,ut){Ne.updatePositionInSet(rt+1,ut.length)}),v}return o.prototype.style=function(t){var a=this.getContainer(),h=t.foregroundColor?""+t.foregroundColor:"",v=t.backgroundColor?""+t.backgroundColor:"",V=t.borderColor?"1px solid "+t.borderColor:"",be=t.shadowColor?"0 2px 4px "+t.shadowColor:"";a.style.border=V,this.domNode.style.color=h,this.domNode.style.backgroundColor=v,a.style.boxShadow=be,this.viewItems&&this.viewItems.forEach(function(Ae){(Ae instanceof va||Ae instanceof ya)&&Ae.style(t)})},o.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(o.prototype,"onScroll",{get:function(){return this.scrollableElement.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),o.prototype.focusItemByElement=function(t){var a=this.focusedItem;this.setFocusedItem(t),a!==this.focusedItem&&this.updateFocus()},o.prototype.setFocusedItem=function(t){for(var a=0;a<this.actionsList.children.length;a++){var h=this.actionsList.children[a];if(t===h){this.focusedItem=a;break}}},o.prototype.updateFocus=function(t){s.prototype.updateFocus.call(this,t,!0),typeof this.focusedItem!="undefined"&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})},o.prototype.doGetActionViewItem=function(t,a,h){if(t instanceof Mo.d)return new ya(a.context,t,{icon:!0});if(t instanceof wl){var v=new Ia(t,t.entries,h,a);if(a.enableMnemonics){var V=v.getMnemonic();if(V&&v.isEnabled()){var be=[];this.mnemonics.has(V)&&(be=this.mnemonics.get(V)),be.push(v),this.mnemonics.set(V,be)}}return v}else{var Ae={enableMnemonics:a.enableMnemonics};if(a.getKeyBinding){var Ne=a.getKeyBinding(t);if(Ne){var rt=Ne.getLabel();rt&&(Ae.keybinding=rt)}}var v=new va(a.context,t,Ae);if(a.enableMnemonics){var V=v.getMnemonic();if(V&&v.isEnabled()){var be=[];this.mnemonics.has(V)&&(be=this.mnemonics.get(V)),be.push(v),this.mnemonics.set(V,be)}}return v}},o}(Mo.a),va=function(s){Ks(o,s);function o(t,a,h){h===void 0&&(h={});var v=this;if(h.isMenu=!0,v=s.call(this,a,a,h)||this,v.options=h,v.options.icon=h.icon!==void 0?h.icon:!1,v.options.label=h.label!==void 0?h.label:!0,v.cssClass="",v.options.label&&h.enableMnemonics){var V=v.getAction().label;if(V){var be=ga.exec(V);be&&(v.mnemonic=(be[1]?be[1]:be[3]).toLocaleLowerCase())}}return v.runOnceToEnableMouseUp=new Qt.d(function(){if(!v.element)return;v._register(Object(Xe.i)(v.element,Xe.c.MOUSE_UP,function(Ae){if(Ae.defaultPrevented)return;Xe.b.stop(Ae,!0),v.onClick(Ae)}))},100),v._register(v.runOnceToEnableMouseUp),v}return o.prototype.render=function(t){if(s.prototype.render.call(this,t),!this.element)return;this.container=t,this.item=Object(Xe.p)(this.element,Object(Xe.a)("a.action-menu-item")),this._action.id===Mo.d.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(Xe.p)(this.item,Object(Xe.a)("span.menu-item-check.codicon.codicon-check")),this.check.setAttribute("role","none"),this.label=Object(Xe.p)(this.item,Object(Xe.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(Xe.p)(this.item,Object(Xe.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},o.prototype.blur=function(){s.prototype.blur.call(this),this.applyStyle()},o.prototype.focus=function(){s.prototype.focus.call(this),this.item&&this.item.focus(),this.applyStyle()},o.prototype.updatePositionInSet=function(t,a){this.item&&(this.item.setAttribute("aria-posinset",""+t),this.item.setAttribute("aria-setsize",""+a))},o.prototype.updateLabel=function(){if(this.options.label){var t=this.getAction().label;if(t){var a=Ll(t);this.options.enableMnemonics||(t=a),this.label&&this.label.setAttribute("aria-label",a.replace(/&&/g,"&"));var h=ga.exec(t);if(h){t=Zn.o(t),ma.lastIndex=0;for(var v=ma.exec(t);v&&v[1];)v=ma.exec(t);v&&(t=t.substr(0,v.index)+'<u aria-hidden="true">'+v[3]+"</u>"+t.substr(v.index+v[0].length)),t=t.replace(/&&/g,"&"),this.item&&this.item.setAttribute("aria-keyshortcuts",(h[1]?h[1]:h[3]).toLocaleLowerCase())}else t=t.replace(/&&/g,"&")}this.label&&(this.label.innerHTML=t.trim())}},o.prototype.updateTooltip=function(){var t=null;this.getAction().tooltip?t=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(t=this.getAction().label,this.options.keybinding&&(t=pn.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",t,this.options.keybinding))),t&&this.item&&(this.item.title=t)},o.prototype.updateClass=function(){this.cssClass&&this.item&&Object(Xe.P)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(Xe.e)(this.label,"icon"),this.cssClass&&Object(Xe.f)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(Xe.O)(this.label,"icon")},o.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(Xe.O)(this.element,"disabled"),this.item&&(Object(Xe.O)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(Xe.e)(this.element,"disabled"),this.item&&(Object(Xe.e)(this.item,"disabled"),Object(Xe.R)(this.item)))},o.prototype.updateChecked=function(){if(!this.item)return;this.getAction().checked?(Object(Xe.e)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(Xe.O)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false"))},o.prototype.getMnemonic=function(){return this.mnemonic},o.prototype.applyStyle=function(){if(!this.menuStyle)return;var t=this.element&&Object(Xe.H)(this.element,"focused"),a=t&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,h=t&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,v=t&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=a?a.toString():"",this.item.style.backgroundColor=h?h.toString():""),this.check&&(this.check.style.color=a?a.toString():""),this.container&&(this.container.style.border=v)},o.prototype.style=function(t){this.menuStyle=t,this.applyStyle()},o}(Mo.c),Ia=function(s){Ks(o,s);function o(t,a,h,v){var V=s.call(this,t,t,v)||this;return V.submenuActions=a,V.parentData=h,V.submenuOptions=v,V.mysubmenu=null,V.submenuDisposables=V._register(new Ht.b),V.mouseOver=!1,V.expandDirection=v&&v.expandDirection!==void 0?v.expandDirection:Gs.Right,V.showScheduler=new Qt.d(function(){V.mouseOver&&(V.cleanupExistingSubmenu(!1),V.createSubmenu(!1))},250),V.hideScheduler=new Qt.d(function(){V.element&&!Object(Xe.J)(document.activeElement,V.element)&&V.parentData.submenu===V.mysubmenu&&(V.parentData.parent.focus(!1),V.cleanupExistingSubmenu(!0))},750),V}return o.prototype.render=function(t){var a=this;if(s.prototype.render.call(this,t),!this.element)return;this.item&&(Object(Xe.e)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(Xe.p)(this.item,Object(Xe.a)("span.submenu-indicator.codicon.codicon-chevron-right")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(Xe.i)(this.element,Xe.c.KEY_UP,function(h){var v=new co.a(h);(v.equals(17)||v.equals(3))&&(Xe.b.stop(h,!0),a.createSubmenu(!0))})),this._register(Object(Xe.i)(this.element,Xe.c.KEY_DOWN,function(h){var v=new co.a(h);document.activeElement===a.item&&((v.equals(17)||v.equals(3))&&Xe.b.stop(h,!0))})),this._register(Object(Xe.i)(this.element,Xe.c.MOUSE_OVER,function(h){a.mouseOver||(a.mouseOver=!0,a.showScheduler.schedule())})),this._register(Object(Xe.i)(this.element,Xe.c.MOUSE_LEAVE,function(h){a.mouseOver=!1})),this._register(Object(Xe.i)(this.element,Xe.c.FOCUS_OUT,function(h){a.element&&!Object(Xe.J)(document.activeElement,a.element)&&a.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(function(){a.parentData.parent.focus(!1),a.cleanupExistingSubmenu(!1)}))},o.prototype.onClick=function(t){Xe.b.stop(t,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)},o.prototype.cleanupExistingSubmenu=function(t){this.parentData.submenu&&(t||this.parentData.submenu!==this.mysubmenu)&&(this.parentData.submenu.dispose(),this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0))},o.prototype.createSubmenu=function(t){var a=this;if(t===void 0&&(t=!0),!this.element)return;if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(Xe.p)(this.element,Object(Xe.a)("div.monaco-submenu")),Object(Xe.f)(this.submenuContainer,"menubar-menu-items-holder","context-view");var h=getComputedStyle(this.parentData.parent.domNode),v=parseFloat(h.paddingTop||"0")||0;this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-v+"px",this.parentData.submenu=new Ra(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var V=this.element.getBoundingClientRect(),be=this.submenuContainer.getBoundingClientRect();this.expandDirection===Gs.Right?window.innerWidth<=V.right+be.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+V.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-v+"px"):this.expandDirection===Gs.Left&&(this.submenuContainer.style.right=this.element.offsetWidth+"px",this.submenuContainer.style.left="auto",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-v+"px"),this.submenuDisposables.add(Object(Xe.i)(this.submenuContainer,Xe.c.KEY_UP,function(Ae){var Ne=new co.a(Ae);Ne.equals(15)&&(Xe.b.stop(Ae,!0),a.parentData.parent.focus(),a.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(Xe.i)(this.submenuContainer,Xe.c.KEY_DOWN,function(Ae){var Ne=new co.a(Ae);Ne.equals(15)&&Xe.b.stop(Ae,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(function(){a.parentData.parent.focus(),a.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(t),this.mysubmenu=this.parentData.submenu}},o.prototype.updateAriaExpanded=function(t){var a;this.item&&((a=this.item)===null||a===void 0||a.setAttribute("aria-expanded",t))},o.prototype.applyStyle=function(){if(s.prototype.applyStyle.call(this),!this.menuStyle)return;var t=this.element&&Object(Xe.H)(this.element,"focused"),a=t&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=a?""+a:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)},o.prototype.dispose=function(){s.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},o}(va),ya=function(s){Ks(o,s);function o(){return s!==null&&s.apply(this,arguments)||this}return o.prototype.style=function(t){this.label&&(this.label.style.borderBottomColor=t.separatorColor?""+t.separatorColor:"")},o}(Mo.b);function Ll(s){var o=ga,t=o.exec(s);if(!t)return s;var a=!t[1];return s.replace(o,a?"$2$3":"").trim()}var Dl=r("7wrl"),Pa=r("6zAk"),Ol=r("oBNp"),Tl=function(){function s(o,t,a,h,v){this.contextViewService=o,this.telemetryService=t,this.notificationService=a,this.keybindingService=h,this.themeService=v,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}return s.prototype.configure=function(o){this.options=o},s.prototype.showContextMenu=function(o){var t=this,a=o.getActions();if(!a.length)return;this.focusToReturn=document.activeElement;var h;this.contextViewService.showContextView({getAnchor:function(){return o.getAnchor()},canRelayout:!1,anchorAlignment:o.anchorAlignment,render:function(V){var be=o.getMenuClassName?o.getMenuClassName():"";be&&(V.className+=" "+be),t.options.blockMouse&&(t.block=V.appendChild(Object(Xe.a)(".context-view-block")));var Ae=new Ht.b,Ne=o.actionRunner||new rr.b;return Ne.onDidBeforeRun(t.onActionRun,t,Ae),Ne.onDidRun(t.onDidActionRun,t,Ae),h=new Ra(V,a,{actionViewItemProvider:o.getActionViewItem,context:o.getActionsContext?o.getActionsContext():null,actionRunner:Ne,getKeyBinding:o.getKeyBinding?o.getKeyBinding:function(rt){return t.keybindingService.lookupKeybinding(rt.id)}}),Ae.add(Object(Dl.c)(h,t.themeService)),h.onDidCancel(function(){return t.contextViewService.hideContextView(!0)},null,Ae),h.onDidBlur(function(){return t.contextViewService.hideContextView(!0)},null,Ae),Object(Pa.a)(window,Xe.c.BLUR)(function(){t.contextViewService.hideContextView(!0)},null,Ae),Object(Pa.a)(window,Xe.c.MOUSE_DOWN)(function(rt){if(rt.defaultPrevented)return;var ut=new Ol.a(rt),bt=ut.target;if(ut.rightButton)return;for(;bt;){if(bt===V)return;bt=bt.parentElement}t.contextViewService.hideContextView(!0)},null,Ae),Object(Ht.e)(Ae,h)},focus:function(){h&&h.focus(!!o.autoSelectFirstItem)},onHide:function(V){o.onHide&&o.onHide(!!V),t.block&&(Object(Xe.Q)(t.block),t.block=null),t.focusToReturn&&t.focusToReturn.focus()}})},s.prototype.onActionRun=function(o){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:o.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()},s.prototype.onDidActionRun=function(o){o.error&&this.notificationService&&this.notificationService.error(o.error)},s}(),ba=r("yimU"),Ml=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),xl=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},Xs=function(s,o){return function(t,a){o(t,a,s)}},Al=function(s){Ml(o,s);function o(t,a,h,v,V){var be=s.call(this)||this;return be._onDidContextMenu=be._register(new N.a),be.contextMenuHandler=new Tl(h,t,a,v,V),be}return o.prototype.configure=function(t){this.contextMenuHandler.configure(t)},o.prototype.showContextMenu=function(t){this.contextMenuHandler.showContextMenu(t),this._onDidContextMenu.fire()},o=xl([Xs(0,ba.a),Xs(1,wo.a),Xs(2,Eo.b),Xs(3,Ei.a),Xs(4,ki.c)],o),o}(Ht.a),Nu=r("k//2"),Nl=r("eAZY"),Rl=r("Uq4v"),Il=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}();function Fa(s,o,t){var a=t.offset+t.size;return t.position===0?o<=s-a?a:o<=t.offset?t.offset-o:Math.max(s-o,0):o<=t.offset?t.offset-o:o<=s-a?a:0}var Pl=function(s){Il(o,s);function o(t){var a=s.call(this)||this;return a.container=null,a.delegate=null,a.toDisposeOnClean=Ht.a.None,a.toDisposeOnSetContainer=Ht.a.None,a.view=Xe.a(".context-view"),Xe.I(a.view),a.setContainer(t),a._register(Object(Ht.h)(function(){return a.setContainer(null)})),a}return o.prototype.setContainer=function(t){var a=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),t){this.container=t,this.container.appendChild(this.view);var h=new Ht.b;o.BUBBLE_UP_EVENTS.forEach(function(v){h.add(Xe.n(a.container,v,function(V){a.onDOMEvent(V,!1)}))}),o.BUBBLE_DOWN_EVENTS.forEach(function(v){h.add(Xe.n(a.container,v,function(V){a.onDOMEvent(V,!0)},!0))}),this.toDisposeOnSetContainer=h}},o.prototype.show=function(t){this.isVisible()&&this.hide(),Xe.s(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",Xe.W(this.view),this.toDisposeOnClean=t.render(this.view)||Ht.a.None,this.delegate=t,this.doLayout(),this.delegate.focus&&this.delegate.focus()},o.prototype.layout=function(){if(!this.isVisible())return;if(this.delegate.canRelayout===!1&&!(sn.c&&Rl.a.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()},o.prototype.doLayout=function(){if(!this.isVisible())return;var t=this.delegate.getAnchor(),a;if(Xe.K(t)){var h=Xe.B(t);a={top:h.top,left:h.left,width:h.width,height:h.height}}else a={top:t.y,left:t.x,width:t.width||1,height:t.height||2};var v=Xe.G(this.view),V=Xe.F(this.view),be=this.delegate.anchorPosition||0,Ae=this.delegate.anchorAlignment||0,Ne={offset:a.top-window.pageYOffset,size:a.height,position:be===0?0:1},rt;Ae===0?rt={offset:a.left,size:0,position:0}:rt={offset:a.left+a.width,size:0,position:1};var ut=Fa(window.innerHeight,V,Ne)+window.pageYOffset;Nl.a.intersects({start:ut,end:ut+V},{start:Ne.offset,end:Ne.offset+Ne.size})&&(rt.size=a.width,Ae===1&&(rt.offset=a.left));var bt=Fa(window.innerWidth,v,rt);Xe.P(this.view,"top","bottom","left","right"),Xe.e(this.view,be===0?"bottom":"top"),Xe.e(this.view,Ae===0?"left":"right");var mt=Xe.B(this.container);this.view.style.top=ut-mt.top+"px",this.view.style.left=bt-mt.left+"px",this.view.style.width="initial"},o.prototype.hide=function(t){var a=this.delegate;this.delegate=null,(a==null?void 0:a.onHide)&&a.onHide(t),this.toDisposeOnClean.dispose(),Xe.I(this.view)},o.prototype.isVisible=function(){return!!this.delegate},o.prototype.onDOMEvent=function(t,a){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(t,document.activeElement):a&&!Xe.J(t.target,this.container)&&this.hide())},o.prototype.dispose=function(){this.hide(),s.prototype.dispose.call(this)},o.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],o.BUBBLE_DOWN_EVENTS=["click"],o}(Ht.a),ka=Object(Yt.c)("layoutService"),Fl=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),kl=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},jl=function(s,o){return function(t,a){o(t,a,s)}},Wl=function(s){Fl(o,s);function o(t){var a=s.call(this)||this;return a.layoutService=t,a.contextView=a._register(new Pl(t.container)),a.layout(),a._register(t.onLayout(function(){return a.layout()})),a}return o.prototype.setContainer=function(t){this.contextView.setContainer(t)},o.prototype.showContextView=function(t){this.contextView.show(t)},o.prototype.layout=function(){this.contextView.layout()},o.prototype.hideContextView=function(t){this.contextView.hide(t)},o=kl([jl(0,ka)],o),o}(Ht.a),Bl=Object(Yt.c)("dialogService"),Ca=r("ttZe");function Ul(s){return{data:s,incoming:Object.create(null),outgoing:Object.create(null)}}var Vl=function(){function s(o){this._hashFn=o,this._nodes=Object.create(null)}return s.prototype.roots=function(){var o=[];return Object(Ca.b)(this._nodes,function(t){Object(ln.f)(t.value.outgoing)&&o.push(t.value)}),o},s.prototype.insertEdge=function(o,t){var a=this.lookupOrInsertNode(o),h=this.lookupOrInsertNode(t);a.outgoing[this._hashFn(t)]=h,h.incoming[this._hashFn(o)]=a},s.prototype.removeNode=function(o){var t=this._hashFn(o);delete this._nodes[t],Object(Ca.b)(this._nodes,function(a){delete a.value.outgoing[t],delete a.value.incoming[t]})},s.prototype.lookupOrInsertNode=function(o){var t=this._hashFn(o),a=this._nodes[t];return a||(a=Ul(o),this._nodes[t]=a),a},s.prototype.isEmpty=function(){for(var o in this._nodes)return!1;return!0},s.prototype.toString=function(){var o=[];return Object(Ca.b)(this._nodes,function(t){o.push(t.key+", (incoming)["+Object.keys(t.value.incoming).join(", ")+"], (outgoing)["+Object.keys(t.value.outgoing).join(",")+"]")}),o.join(`
|
|
`)},s}(),Ys=r("V3SD"),ja=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),_a=function(){for(var s=0,o=0,t=arguments.length;o<t;o++)s+=arguments[o].length;for(var a=Array(s),h=0,o=0;o<t;o++)for(var v=arguments[o],V=0,be=v.length;V<be;V++,h++)a[h]=v[V];return a},Wa=!1,zl=typeof Proxy=="function",Ba=function(s){ja(o,s);function o(t){var a=s.call(this,"cyclic dependency between services")||this;return a.message=t.toString(),a}return o}(Error),Ua=function(){function s(o,t,a){o===void 0&&(o=new Bo.a),t===void 0&&(t=!1),this._services=o,this._strict=t,this._parent=a,this._services.set(Yt.a,this)}return s.prototype.createChild=function(o){return new s(o,this._strict,this)},s.prototype.invokeFunction=function(o){for(var t=this,a=[],h=1;h<arguments.length;h++)a[h-1]=arguments[h];var v=Ea.traceInvocation(o),V=!1;try{var be={get:function(Ne,rt){if(V)throw Object(nn.c)("service accessor is only valid during the invocation of its target method");var ut=t._getOrCreateServiceInstance(Ne,v);if(!ut&&rt!==Yt.d)throw new Error("[invokeFunction] unknown service '"+Ne+"'");return ut}};return o.apply(void 0,_a([be],a))}finally{V=!0,v.stop()}},s.prototype.createInstance=function(o){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];var h,v;return o instanceof Ys.a?(h=Ea.traceCreation(o.ctor),v=this._createInstance(o.ctor,o.staticArguments.concat(t),h)):(h=Ea.traceCreation(o),v=this._createInstance(o,t,h)),h.stop(),v},s.prototype._createInstance=function(o,t,a){t===void 0&&(t=[]);for(var h=Yt.b.getServiceDependencies(o).sort(function(bt,mt){return bt.index-mt.index}),v=[],V=0,be=h;V<be.length;V++){var Ae=be[V],Ne=this._getOrCreateServiceInstance(Ae.id,a);if(!Ne&&this._strict&&!Ae.optional)throw new Error("[createInstance] "+o.name+" depends on UNKNOWN service "+Ae.id+".");v.push(Ne)}var rt=h.length>0?h[0].index:t.length;if(t.length!==rt){console.warn("[createInstance] First service dependency of "+o.name+" at position "+(rt+1)+" conflicts with "+t.length+" static arguments");var ut=rt-t.length;ut>0?t=t.concat(new Array(ut)):t=t.slice(0,rt)}return new(o.bind.apply(o,_a([void 0],_a(t,v))))},s.prototype._setServiceInstance=function(o,t){if(this._services.get(o)instanceof Ys.a)this._services.set(o,t);else if(this._parent)this._parent._setServiceInstance(o,t);else throw new Error("illegalState - setting UNKNOWN service instance")},s.prototype._getServiceInstanceOrDescriptor=function(o){var t=this._services.get(o);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(o):t},s.prototype._getOrCreateServiceInstance=function(o,t){var a=this._getServiceInstanceOrDescriptor(o);return a instanceof Ys.a?this._createAndCacheServiceInstance(o,a,t.branch(o,!0)):(t.branch(o,!1),a)},s.prototype._createAndCacheServiceInstance=function(o,t,a){for(var h=new Vl(function(on){return on.id.toString()}),v=0,V=[{id:o,desc:t,_trace:a}];V.length;){var be=V.pop();if(h.lookupOrInsertNode(be),v++>150)throw new Ba(h);for(var Ae=0,Ne=Yt.b.getServiceDependencies(be.desc.ctor);Ae<Ne.length;Ae++){var rt=Ne[Ae],ut=this._getServiceInstanceOrDescriptor(rt.id);if(!ut&&!rt.optional&&console.warn("[createInstance] "+o+" depends on "+rt.id+" which is NOT registered."),ut instanceof Ys.a){var bt={id:rt.id,desc:ut,_trace:be._trace.branch(rt.id,!0)};h.insertEdge(be,bt),V.push(bt)}}}for(;;){var mt=h.roots();if(mt.length===0){if(!h.isEmpty())throw new Ba(h);break}for(var $t=0,Kt=mt;$t<Kt.length;$t++){var Wt=Kt[$t].data,Bt=this._createServiceInstanceWithOwner(Wt.id,Wt.desc.ctor,Wt.desc.staticArguments,Wt.desc.supportsDelayedInstantiation,Wt._trace);this._setServiceInstance(Wt.id,Bt),h.removeNode(Wt)}}return this._getServiceInstanceOrDescriptor(o)},s.prototype._createServiceInstanceWithOwner=function(o,t,a,h,v){if(a===void 0&&(a=[]),this._services.get(o)instanceof Ys.a)return this._createServiceInstance(t,a,h,v);if(this._parent)return this._parent._createServiceInstanceWithOwner(o,t,a,h,v);throw new Error("illegalState - creating UNKNOWN service instance "+t.name)},s.prototype._createServiceInstance=function(o,t,a,h){var v=this;if(t===void 0&&(t=[]),!a||!zl)return this._createInstance(o,t,h);var V=new Qt.b(function(){return v._createInstance(o,t,h)});return new Proxy(Object.create(null),{get:function(Ae,Ne){if(Ne in Ae)return Ae[Ne];var rt=V.getValue(),ut=rt[Ne];return typeof ut!="function"||(ut=ut.bind(rt),Ae[Ne]=ut),ut},set:function(Ae,Ne,rt){return V.getValue()[Ne]=rt,!0}})},s}(),Ea=function(){function s(o,t){this.type=o,this.name=t,this._start=Date.now(),this._dep=[]}return s.traceInvocation=function(o){return Wa?new s(1,o.name||o.toString().substring(0,42).replace(/\n/g,"")):s._None},s.traceCreation=function(o){return Wa?new s(0,o.name):s._None},s.prototype.branch=function(o,t){var a=new s(2,o.toString());return this._dep.push([o,t,a]),a},s.prototype.stop=function(){var o=Date.now()-this._start;s._totals+=o;var t=!1;function a(v,V){for(var be=[],Ae=new Array(v+1).join(" "),Ne=0,rt=V._dep;Ne<rt.length;Ne++){var ut=rt[Ne],bt=ut[0],mt=ut[1],$t=ut[2];if(mt&&$t){t=!0,be.push(Ae+"CREATES -> "+bt);var Kt=a(v+1,$t);Kt&&be.push(Kt)}else be.push(Ae+"uses -> "+bt)}return be.join(`
|
|
`)}var h=[(this.type===0?"CREATE":"CALL")+" "+this.name,""+a(1,this),"DONE, took "+o.toFixed(2)+"ms (grand total "+s._totals.toFixed(2)+"ms)"];(o>2||t)&&console.log(h.join(`
|
|
`))},s._None=new(function(o){ja(t,o);function t(){return o.call(this,-1,null)||this}return t.prototype.stop=function(){},t.prototype.branch=function(){return this},t}(s)),s._totals=0,s}(),Hl=r("zqsH"),Va=r("rjb4"),fr=r("y9P2"),ns;(function(s){function o(h,v,V){return h[v]?h[v][V]:void 0}s.get=o;function t(h,v,V,be){h[v]||(h[v]=Object.create(null)),h[v][V]=be}s.set=t;function a(h,v,V){return h[v]&&h[v][V]?(delete h[v][V],Object(ln.f)(h[v])&&delete h[v],!0):!1}s.remove=a})(ns||(ns={}));var Kl=function(){function s(o){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=o,this._subscription=o.onMarkerChanged(this._update,this)}return s.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},s.prototype._update=function(o){if(!this._data)return;for(var t=0,a=o;t<a.length;t++){var h=a[t],v=h.toString(),V=this._data[v];V&&this._substract(V);var be=this._resourceStats(h);this._add(be),this._data[v]=be}},s.prototype._resourceStats=function(o){var t={errors:0,warnings:0,infos:0,unknowns:0};if(o.scheme===ke.b.inMemory||o.scheme===ke.b.walkThrough||o.scheme===ke.b.walkThroughSnippet)return t;for(var a=0,h=this._service.read({resource:o});a<h.length;a++){var v=h[a].severity;v===fr.c.Error?t.errors+=1:v===fr.c.Warning?t.warnings+=1:v===fr.c.Info?t.infos+=1:t.unknowns+=1}return t},s.prototype._substract=function(o){this.errors-=o.errors,this.warnings-=o.warnings,this.infos-=o.infos,this.unknowns-=o.unknowns},s.prototype._add=function(o){this.errors+=o.errors,this.warnings+=o.warnings,this.infos+=o.infos,this.unknowns+=o.unknowns},s}(),Gl=function(){function s(){this._onMarkerChanged=new N.a,this._onMarkerChangedEvent=N.b.debounce(this._onMarkerChanged.event,s._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new Kl(this)}return s.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty(s.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),s.prototype.remove=function(o,t){for(var a=0,h=t||[];a<h.length;a++){var v=h[a];this.changeOne(o,v,[])}},s.prototype.changeOne=function(o,t,a){if(Object(tn.p)(a)){var h=ns.remove(this._byResource,t.toString(),o),v=ns.remove(this._byOwner,o,t.toString());if(h!==v)throw new Error("invalid marker service state");h&&v&&this._onMarkerChanged.fire([t])}else{for(var V=[],be=0,Ae=a;be<Ae.length;be++){var Ne=Ae[be],rt=s._toMarker(o,t,Ne);rt&&V.push(rt)}ns.set(this._byResource,t.toString(),o,V),ns.set(this._byOwner,o,t.toString(),V),this._onMarkerChanged.fire([t])}},s._toMarker=function(o,t,a){var h=a.code,v=a.severity,V=a.message,be=a.source,Ae=a.startLineNumber,Ne=a.startColumn,rt=a.endLineNumber,ut=a.endColumn,bt=a.relatedInformation,mt=a.tags;return V?(Ae=Ae>0?Ae:1,Ne=Ne>0?Ne:1,rt=rt>=Ae?rt:Ae,ut=ut>0?ut:Ne,{resource:t,owner:o,code:h,severity:v,message:V,source:be,startLineNumber:Ae,startColumn:Ne,endLineNumber:rt,endColumn:ut,relatedInformation:bt,tags:mt}):void 0},s.prototype.read=function(o){o===void 0&&(o=Object.create(null));var t=o.owner,a=o.resource,h=o.severities,v=o.take;if((!v||v<0)&&(v=-1),t&&a){var V=ns.get(this._byResource,a.toString(),t);if(V){for(var be=[],Ae=0,Ne=V;Ae<Ne.length;Ae++){var rt=Ne[Ae];if(s._accept(rt,h)){var ut=be.push(rt);if(v>0&&ut===v)break}}return be}else return[]}else if(!t&&!a){var be=[];for(var bt in this._byResource)for(var mt in this._byResource[bt])for(var $t=0,Kt=this._byResource[bt][mt];$t<Kt.length;$t++){var V=Kt[$t];if(s._accept(V,h)){var ut=be.push(V);if(v>0&&ut===v)return be}}return be}else{var Wt=t?this._byOwner[t]:a?this._byResource[a.toString()]:void 0;if(!Wt)return[];var be=[];for(var Bt in Wt)for(var on=0,cn=Wt[Bt];on<cn.length;on++){var V=cn[on];if(s._accept(V,h)){var ut=be.push(V);if(v>0&&ut===v)return be}}return be}},s._accept=function(o,t){return t===void 0||(t&o.severity)===o.severity},s._debouncer=function(o,t){o||(s._dedupeMap=Object.create(null),o=[]);for(var a=0,h=t;a<h.length;a++){var v=h[a];s._dedupeMap[v.toString()]===void 0&&(s._dedupeMap[v.toString()]=!0,o.push(v))}return o},s}(),za=r("41id"),Ha=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},Sa=function(s,o){return function(t,a){o(t,a,s)}},Xl=function(){function s(o){this._commandService=o}return s.prototype.createMenu=function(o,t){return new Yl(o,this._commandService,t)},s=Ha([Sa(0,we.b)],s),s}(),Yl=function(){function s(o,t,a){var h=this;this._id=o,this._commandService=t,this._contextKeyService=a,this._onDidChange=new N.a,this._dispoables=new Ht.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(N.b.debounce(N.b.filter(go.c.onDidChangeMenu,function(v){return v===h._id}),function(){},50)(this._build,this)),this._dispoables.add(N.b.debounce(this._contextKeyService.onDidChangeContext,function(v,V){return v||V.affectsSome(h._contextKeys)},50)(function(v){return v&&h._onDidChange.fire(void 0)},this))}return s.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},s.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var o=go.c.getMenuItems(this._id),t;o.sort(s._compareMenuItems);for(var a=0,h=o;a<h.length;a++){var v=h[a],V=v.group||"";(!t||t[0]!==V)&&(t=[V,[]],this._menuGroups.push(t)),t[1].push(v),s._fillInKbExprKeys(v.when,this._contextKeys),Object(go.e)(v)&&v.command.precondition&&s._fillInKbExprKeys(v.command.precondition,this._contextKeys),Object(go.e)(v)&&v.command.toggled&&s._fillInKbExprKeys(v.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},s.prototype.getActions=function(o){for(var t=[],a=0,h=this._menuGroups;a<h.length;a++){for(var v=h[a],V=v[0],be=v[1],Ae=[],Ne=0,rt=be;Ne<rt.length;Ne++){var ut=rt[Ne];if(this._contextKeyService.contextMatchesRules(ut.when)){var bt=Object(go.e)(ut)?new go.b(ut.command,ut.alt,o,this._contextKeyService,this._commandService):new go.d(ut);Ae.push(bt)}}Ae.length>0&&t.push([V,Ae])}return t},s._fillInKbExprKeys=function(o,t){if(o)for(var a=0,h=o.keys();a<h.length;a++){var v=h[a];t.add(v)}},s._compareMenuItems=function(o,t){var a=o.group,h=t.group;if(a!==h){if(a){if(!h)return-1}else return 1;if(a==="navigation")return-1;if(h==="navigation")return 1;var v=a.localeCompare(h);if(v!==0)return v}var V=o.order||0,be=t.order||0;return V<be?-1:V>be?1:s._compareTitles(Object(go.e)(o)?o.command.title:o.title,Object(go.e)(t)?t.command.title:t.title)},s._compareTitles=function(o,t){var a=typeof o=="string"?o:o.value,h=typeof t=="string"?t:t.value;return a.localeCompare(h)},s=Ha([Sa(1,we.b),Sa(2,_i.c)],s),s}(),Zl=r("XfmC"),Ka=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),$l=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},Ga=function(s,o){return function(t,a){o(t,a,s)}};function Zs(s){return s.toString()}var Jl=function(s){Ka(o,s);function o(t){var a=s.call(this)||this;return a.model=t,a._markersData=new Map,a._register(Object(Ht.h)(function(){a.model.deltaDecorations(Object(Ko.d)(a._markersData),[]),a._markersData.clear()})),a}return o.prototype.update=function(t,a){var h=Object(Ko.d)(this._markersData);this._markersData.clear();for(var v=this.model.deltaDecorations(h,a),V=0;V<v.length;V++)this._markersData.set(v[V],t[V])},o.prototype.getMarker=function(t){return this._markersData.get(t.id)},o}(Ht.a),Ql=function(s){Ka(o,s);function o(t,a){var h=s.call(this)||this;return h._markerService=a,h._onDidChangeMarker=h._register(new N.a),h._markerDecorations=new Map,t.getModels().forEach(function(v){return h._onModelAdded(v)}),h._register(t.onModelAdded(h._onModelAdded,h)),h._register(t.onModelRemoved(h._onModelRemoved,h)),h._register(h._markerService.onMarkerChanged(h._handleMarkerChange,h)),h}return o.prototype.dispose=function(){s.prototype.dispose.call(this),this._markerDecorations.forEach(function(t){return t.dispose()}),this._markerDecorations.clear()},o.prototype.getMarker=function(t,a){var h=this._markerDecorations.get(Zs(t.uri));return h?Object(ln.o)(h.getMarker(a)):null},o.prototype._handleMarkerChange=function(t){var a=this;t.forEach(function(h){var v=a._markerDecorations.get(Zs(h));v&&a._updateDecorations(v)})},o.prototype._onModelAdded=function(t){var a=new Jl(t);this._markerDecorations.set(Zs(t.uri),a),this._updateDecorations(a)},o.prototype._onModelRemoved=function(t){var a=this,h=this._markerDecorations.get(Zs(t.uri));h&&(h.dispose(),this._markerDecorations.delete(Zs(t.uri))),(t.uri.scheme===ke.b.inMemory||t.uri.scheme===ke.b.internal||t.uri.scheme===ke.b.vscode)&&(this._markerService&&this._markerService.read({resource:t.uri}).map(function(v){return v.owner}).forEach(function(v){return a._markerService.remove(v,[t.uri])}))},o.prototype._updateDecorations=function(t){var a=this,h=this._markerService.read({resource:t.model.uri,take:500}),v=h.map(function(V){return{range:a._createDecorationRange(t.model,V),options:a._createDecorationOption(V)}});t.update(h,v),this._onDidChangeMarker.fire(t.model)},o.prototype._createDecorationRange=function(t,a){var h=G.a.lift(a);if(a.severity===fr.c.Hint&&!this._hasMarkerTag(a,1)&&!this._hasMarkerTag(a,2)&&(h=h.setEndPosition(h.startLineNumber,h.startColumn+2)),h=t.validateRange(h),h.isEmpty()){var v=t.getWordAtPosition(h.getStartPosition());if(v)h=new G.a(h.startLineNumber,v.startColumn,h.endLineNumber,v.endColumn);else{var V=t.getLineLastNonWhitespaceColumn(h.startLineNumber)||t.getLineMaxColumn(h.startLineNumber);V===1||(h.endColumn>=V?h=new G.a(h.startLineNumber,V-1,h.endLineNumber,V):h=new G.a(h.startLineNumber,h.startColumn,h.endLineNumber,h.endColumn+1))}}else if(a.endColumn===Number.MAX_VALUE&&a.startColumn===1&&h.startLineNumber===h.endLineNumber){var be=t.getLineFirstNonWhitespaceColumn(a.startLineNumber);be<h.endColumn&&(h=new G.a(h.startLineNumber,be,h.endLineNumber,h.endColumn),a.startColumn=be)}return h},o.prototype._createDecorationOption=function(t){var a,h=void 0,v,V=void 0,be;switch(t.severity){case fr.c.Hint:this._hasMarkerTag(t,2)?a=void 0:this._hasMarkerTag(t,1)?a="squiggly-unnecessary":a="squiggly-hint",v=0;break;case fr.c.Warning:a="squiggly-warning",h=Object(ki.f)(Co.q),v=20,be={color:Object(ki.f)(wi.Ib),position:pt.c.Inline};break;case fr.c.Info:a="squiggly-info",h=Object(ki.f)(Co.p),v=10;break;case fr.c.Error:default:a="squiggly-error",h=Object(ki.f)(Co.o),v=30,be={color:Object(ki.f)(wi.Fb),position:pt.c.Inline};break}return t.tags&&(t.tags.indexOf(1)!==-1&&(V="squiggly-inline-unnecessary"),t.tags.indexOf(2)!==-1&&(V="squiggly-inline-deprecated")),{stickiness:1,className:a,showIfCollapsed:!0,overviewRuler:{color:h,position:pt.d.Right},minimap:be,zIndex:v,inlineClassName:V}},o.prototype._hasMarkerTag=function(t,a){return t.tags?t.tags.indexOf(a)>=0:!1},o=$l([Ga(0,kt.a),Ga(1,fr.b)],o),o}(Ht.a),ql=r("qJsm"),ed=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),td=function(s,o,t,a){var h=arguments.length,v=h<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,t):a,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(s,o,t,a);else for(var be=s.length-1;be>=0;be--)(V=s[be])&&(v=(h<3?V(v):h>3?V(o,t,v):V(o,t))||v);return h>3&&v&&Object.defineProperty(o,t,v),v},Xa=function(s,o){return function(t,a){o(t,a,s)}},nd=function(s){ed(o,s);function o(t,a){var h=s.call(this)||this;h._contextKeyService=t,h._configurationService=a,h._accessibilitySupport=0,h._onDidChangeScreenReaderOptimized=new N.a,h._accessibilityModeEnabledContext=Zi.a.bindTo(h._contextKeyService);var v=function(){return h._accessibilityModeEnabledContext.set(h.isScreenReaderOptimized())};return h._register(h._configurationService.onDidChangeConfiguration(function(V){V.affectsConfiguration("editor.accessibilitySupport")&&(v(),h._onDidChangeScreenReaderOptimized.fire())})),v(),h.onDidChangeScreenReaderOptimized(function(){return v()}),h}return Object.defineProperty(o.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),o.prototype.isScreenReaderOptimized=function(){var t=this._configurationService.getValue("editor.accessibilitySupport");return t==="on"||t==="auto"&&this._accessibilitySupport===2},o.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},o=td([Xa(0,_i.c),Xa(1,Ai.a)],o),o}(Ht.a),id=function(){var s=function(t,a){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var V in v)v.hasOwnProperty(V)&&(h[V]=v[V])},s(t,a)};return function(o,t){s(o,t);function a(){this.constructor=o}o.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}}(),fi;(function(s){var o=new Bo.a,t=function(){function be(Ae,Ne){this._serviceId=Ae,this._factory=Ne,this._value=null}return Object.defineProperty(be.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),be.prototype.get=function(Ae){if(!this._value){if(Ae&&(this._value=Ae[this._serviceId.toString()]),this._value||(this._value=this._factory(Ae)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");o.set(this._serviceId,this._value)}return this._value},be}();s.LazyStaticService=t;var a=[];function h(be,Ae){var Ne=new t(be,Ae);return a.push(Ne),Ne}function v(be){for(var Ae=new Bo.a,Ne=0,rt=Object(ql.a)();Ne<rt.length;Ne++){var ut=rt[Ne],bt=ut[0],mt=ut[1];Ae.set(bt,mt)}for(var $t in be)be.hasOwnProperty($t)&&Ae.set(Object(Yt.c)($t),be[$t]);a.forEach(function(Wt){return Ae.set(Wt.id,Wt.get(be))});var Kt=new Ua(Ae,!0);return Ae.set(Yt.a,Kt),[Ae,Kt]}s.init=v,s.instantiationService=h(Yt.a,function(){return new Ua(o,!0)});var V=new Tr;s.configurationService=h(Ai.a,function(){return V}),s.resourceConfigurationService=h(Zt,function(){return new Hr(V)}),s.resourcePropertiesService=h(dn,function(){return new gs(V)}),s.contextService=h(xs.a,function(){return new Rs}),s.labelService=h(Hl.a,function(){return new ta}),s.telemetryService=h(ba.a,function(){return new Wo}),s.dialogService=h(Bl,function(){return new fs}),s.notificationService=h(wo.a,function(){return new ps}),s.markerService=h(fr.b,function(){return new Gl}),s.modeService=h(_s.a,function(be){return new y}),s.standaloneThemeService=h(ur,function(){return new pl}),s.logService=h(fn.a,function(){return new fn.c}),s.modelService=h(kt.a,function(be){return new ot(s.configurationService.get(be),s.resourcePropertiesService.get(be),s.standaloneThemeService.get(be),s.logService.get(be))}),s.markerDecorationsService=h(Zl.a,function(be){return new Ql(s.modelService.get(be),s.markerService.get(be))}),s.codeEditorService=h(Ke.a,function(be){return new Ji(s.standaloneThemeService.get(be))}),s.editorProgressService=h(br.a,function(){return new Vr}),s.storageService=h(za.a,function(){return new za.b}),s.editorWorkerService=h(Lt.a,function(be){return new ct(s.modelService.get(be),s.resourceConfigurationService.get(be),s.logService.get(be))})})(fi||(fi={}));var od=function(s){id(o,s);function o(t,a){var h=s.call(this)||this,v=fi.init(a),V=v[0],be=v[1];h._serviceCollection=V,h._instantiationService=be;var Ae=h.get(Ai.a),Ne=h.get(wo.a),rt=h.get(ba.a),ut=h.get(ki.c),bt=function(cn,wn){var _n=null;return a&&(_n=a[cn.toString()]),_n||(_n=wn()),h._serviceCollection.set(cn,_n),_n},mt=bt(_i.c,function(){return h._register(new Cl(Ae))});bt(Zi.b,function(){return new nd(mt,Ae)}),bt(Va.a,function(){return new Va.b(ut)});var $t=bt(we.b,function(){return new zr(h._instantiationService)}),Kt=bt(Ei.a,function(){return h._register(new yr(mt,$t,rt,Ne,t))}),Wt=bt(ka,function(){return new Is(t)}),Bt=bt(Eo.b,function(){return h._register(new Wl(Wt))});return bt(Eo.a,function(){var on=new Al(rt,Ne,Bt,Kt,ut);return on.configure({blockMouse:!1}),h._register(on)}),bt(go.a,function(){return new Xl($t)}),bt($r.a,function(){return new oi(fi.modelService.get(kt.a))}),h}return o.prototype.get=function(t){var a=this._serviceCollection.get(t);if(!a)throw new Error("Missing service "+t);return a},o.prototype.set=function(t,a){this._serviceCollection.set(t,a)},o.prototype.has=function(t){return this._serviceCollection.has(t)},o}(Ht.a);function Ya(s,o,t){var a=new od(s,o),h=null;a.has(Vt.a)||(h=new Zo(fi.modelService.get()),a.set(Vt.a,h)),a.has(k.a)||a.set(k.a,new Rt(a.get(Ke.a),a.get(we.b)));var v=t(a);return h&&h.setEditor(v),v}function rd(s,o,t){return Ya(s,t||{},function(a){return new cr(s,o,a,a.get(Yt.a),a.get(Ke.a),a.get(we.b),a.get(_i.c),a.get(Ei.a),a.get(Eo.b),a.get(ur),a.get(wo.a),a.get(Ai.a),a.get(Zi.b))})}function sd(s){return fi.codeEditorService.get().onCodeEditorAdd(function(o){s(o)})}function ad(s,o,t){return Ya(s,t||{},function(a){return new Pr(s,o,a,a.get(Yt.a),a.get(_i.c),a.get(Ei.a),a.get(Eo.b),a.get(Lt.a),a.get(Ke.a),a.get(ur),a.get(wo.a),a.get(Ai.a),a.get(Eo.a),a.get(br.a),null)})}function ld(s,o){return new yn(s,o)}function Za(s,o,t){return fi.modelService.get().createModel(s,o,t)}function dd(s,o,t){if(s=s||"",!o){var a=s.indexOf(`
|
|
`),h=s;return a!==-1&&(h=s.substring(0,a)),Za(s,fi.modeService.get().createByFilepathOrFirstLine(t||null,h),t)}return Za(s,fi.modeService.get().create(o),t)}function ud(s,o){fi.modelService.get().setMode(s,fi.modeService.get().create(o))}function cd(s,o,t){s&&fi.markerService.get().changeOne(o,s.uri,t)}function hd(s){return fi.markerService.get().read(s)}function fd(s){return fi.modelService.get().getModel(s)}function pd(){return fi.modelService.get().getModels()}function gd(s){return fi.modelService.get().onModelAdded(s)}function md(s){return fi.modelService.get().onModelRemoved(s)}function vd(s){return fi.modelService.get().onModelModeChanged(function(o){s({model:o.model,oldLanguage:o.oldModeId})})}function yd(s){return Q(fi.modelService.get(),s)}function bd(s,o){return Ho.colorizeElement(fi.standaloneThemeService.get(),fi.modeService.get(),s,o)}function Cd(s,o,t){return Ho.colorize(fi.modeService.get(),s,o,t)}function _d(s,o,t){return t===void 0&&(t=4),Ho.colorizeModelLine(s,o,t)}function Ed(s){var o=gt.y.get(s);return o||{getInitialState:function(){return Dt.c},tokenize:function(a,h,v){return Object(Dt.d)(s,a,h,v)}}}function Sd(s,o){var t=fi.modeService.get();t.triggerMode(o);for(var a=Ed(o),h=s.split(/\r\n|\r|\n/),v=[],V=a.getInitialState(),be=0,Ae=h.length;be<Ae;be++){var Ne=h[be],rt=a.tokenize(Ne,V,0);v[be]=rt.tokens,V=rt.endState}return v}function wd(s,o){fi.standaloneThemeService.get().defineTheme(s,o)}function Ld(s){fi.standaloneThemeService.get().setTheme(s)}function Dd(){Object(si.b)()}function Od(){return{create:rd,onDidCreateEditor:sd,createDiffEditor:ad,createDiffNavigator:ld,createModel:dd,setModelLanguage:ud,setModelMarkers:cd,getModelMarkers:hd,getModels:pd,getModel:fd,onDidCreateModel:gd,onWillDisposeModel:md,onDidChangeModelLanguage:vd,createWebWorker:yd,colorizeElement:bd,colorize:Cd,colorizeModelLine:_d,tokenize:Sd,defineTheme:wd,setTheme:Ld,remeasureFonts:Dd,AccessibilitySupport:x,ContentWidgetPositionPreference:z,CursorChangeReason:_,DefaultEndOfLine:f,EditorAutoIndentStrategy:g,EditorOption:m,EndOfLinePreference:w,EndOfLineSequence:B,MinimapPosition:Se,MouseTargetType:q,OverlayWidgetPositionPreference:Z,OverviewRulerLane:ce,RenderLineNumbersType:Me,RenderMinimap:Ve,ScrollbarVisibility:ue,ScrollType:_e,TextEditorCursorBlinkingStyle:me,TextEditorCursorStyle:ye,TrackedRangeStickiness:ze,WrappingIndent:tt,ConfigurationChangedEvent:I.a,BareFontInfo:Tn.a,FontInfo:Tn.b,TextModelResolvedOptions:pt.e,FindMatch:pt.b,EditorType:Ft.a,EditorOptions:I.e}}function Td(s,o){if(!o)return!1;if(!Array.isArray(o))return!1;for(var t=0,a=o;t<a.length;t++){var h=a[t];if(!s(h))return!1}return!0}function $a(s,o){return typeof s=="boolean"?s:o}function Ja(s,o){return typeof s=="string"?s:o}function Md(s){for(var o={},t=0,a=s;t<a.length;t++){var h=a[t];o[h]=!0}return o}function Qa(s,o){o===void 0&&(o=!1),o&&(s=s.map(function(a){return a.toLowerCase()}));var t=Md(s);return o?function(a){return t[a.toLowerCase()]!==void 0&&t.hasOwnProperty(a.toLowerCase())}:function(a){return t[a]!==void 0&&t.hasOwnProperty(a)}}function wa(s,o){for(var t=0;o.indexOf("@")>=0&&t<5;)t++,o=o.replace(/@(\w+)/g,function(a,h){var v="";if(typeof s[h]=="string")v=s[h];else if(s[h]&&s[h]instanceof RegExp)v=s[h].source;else throw s[h]===void 0?mn(s,"language definition does not contain attribute '"+h+"', used at: "+o):mn(s,"attribute reference '"+h+"' must be a string, used at: "+o);return At(v)?"":"(?:"+v+")"});return new RegExp(o,s.ignoreCase?"i":"")}function xd(s,o,t,a){if(a<0)return s;if(a<o.length)return o[a];if(a>=100){a=a-100;var h=t.split(".");if(h.unshift(t),a<h.length)return h[a]}return null}function Ad(s,o,t,a){var h=-1,v=t,V=t.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);V&&(V[3]&&(h=parseInt(V[3]),V[2]&&(h=h+100)),v=V[4]);var be="~",Ae=v;!v||v.length===0?(be="!=",Ae=""):/^\w*$/.test(Ae)?be="==":(V=v.match(/^(@|!@|~|!~|==|!=)(.*)$/),V&&(be=V[1],Ae=V[2]));var Ne;if((be==="~"||be==="!~")&&/^(\w|\|)*$/.test(Ae)){var rt=Qa(Ae.split("|"),s.ignoreCase);Ne=function(Bt){return be==="~"?rt(Bt):!rt(Bt)}}else if(be==="@"||be==="!@"){var ut=s[Ae];if(!ut)throw mn(s,"the @ match target '"+Ae+"' is not defined, in rule: "+o);if(!Td(function(Wt){return typeof Wt=="string"},ut))throw mn(s,"the @ match target '"+Ae+"' must be an array of strings, in rule: "+o);var bt=Qa(ut,s.ignoreCase);Ne=function(Bt){return be==="@"?bt(Bt):!bt(Bt)}}else if(be==="~"||be==="!~")if(Ae.indexOf("$")<0){var mt=wa(s,"^"+Ae+"$");Ne=function(Bt){return be==="~"?mt.test(Bt):!mt.test(Bt)}}else Ne=function(Bt,on,cn,wn){var _n=wa(s,"^"+Vn(s,Ae,on,cn,wn)+"$");return _n.test(Bt)};else if(Ae.indexOf("$")<0){var $t=jt(s,Ae);Ne=function(Bt){return be==="=="?Bt===$t:Bt!==$t}}else{var Kt=jt(s,Ae);Ne=function(Bt,on,cn,wn,_n){var kn=Vn(s,Kt,on,cn,wn);return be==="=="?Bt===kn:Bt!==kn}}return h===-1?{name:t,value:a,test:function(Bt,on,cn,wn){return Ne(Bt,Bt,on,cn,wn)}}:{name:t,value:a,test:function(Bt,on,cn,wn){var _n=xd(Bt,on,cn,h);return Ne(_n||"",Bt,on,cn,wn)}}}function La(s,o,t){if(t){if(typeof t=="string")return t;if(t.token||t.token===""){if(typeof t.token!="string")throw mn(s,"a 'token' attribute must be of type string, in rule: "+o);var a={token:t.token};if(t.token.indexOf("$")>=0&&(a.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")a.bracket=1;else if(t.bracket==="@close")a.bracket=-1;else throw mn(s,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+o);if(t.next){if(typeof t.next!="string")throw mn(s,"the next state must be a string value in rule: "+o);var h=t.next;if(!/^(@pop|@push|@popall)$/.test(h)&&(h[0]==="@"&&(h=h.substr(1)),h.indexOf("$")<0&&!Yn(s,Vn(s,h,"",[],""))))throw mn(s,"the next state '"+t.next+"' is not defined in rule: "+o);a.next=h}return typeof t.goBack=="number"&&(a.goBack=t.goBack),typeof t.switchTo=="string"&&(a.switchTo=t.switchTo),typeof t.log=="string"&&(a.log=t.log),typeof t.nextEmbedded=="string"&&(a.nextEmbedded=t.nextEmbedded,s.usesEmbedded=!0),a}else if(Array.isArray(t)){for(var v=[],V=0,be=t.length;V<be;V++)v[V]=La(s,o,t[V]);return{group:v}}else if(t.cases){var Ae=[];for(var Ne in t.cases)if(t.cases.hasOwnProperty(Ne)){var rt=La(s,o,t.cases[Ne]);Ne==="@default"||Ne==="@"||Ne===""?Ae.push({test:void 0,value:rt,name:Ne}):Ne==="@eos"?Ae.push({test:function(mt,$t,Kt,Wt){return Wt},value:rt,name:Ne}):Ae.push(Ad(s,o,Ne,rt))}var ut=s.defaultToken;return{test:function(mt,$t,Kt,Wt){for(var Bt=0,on=Ae;Bt<on.length;Bt++){var cn=on[Bt],wn=!cn.test||cn.test(mt,$t,Kt,Wt);if(wn)return cn.value}return ut}}}else throw mn(s,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+o)}else return{token:""}}var Nd=function(){function s(o){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=o}return s.prototype.setRegex=function(o,t){var a;if(typeof t=="string")a=t;else if(t instanceof RegExp)a=t.source;else throw mn(o,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=a.length>0&&a[0]==="^",this.name=this.name+": "+a,this.regex=wa(o,"^(?:"+(this.matchOnlyAtLineStart?a.substr(1):a)+")")},s.prototype.setAction=function(o,t){this.action=La(o,this.name,t)},s}();function Rd(s,o){if(!o||typeof o!="object")throw new Error("Monarch: expecting a language definition object");var t={};t.languageId=s,t.noThrow=!1,t.maxStack=100,t.start=typeof o.start=="string"?o.start:null,t.ignoreCase=$a(o.ignoreCase,!1),t.tokenPostfix=Ja(o.tokenPostfix,"."+t.languageId),t.defaultToken=Ja(o.defaultToken,"source"),t.usesEmbedded=!1;var a=o;a.languageId=s,a.ignoreCase=t.ignoreCase,a.noThrow=t.noThrow,a.usesEmbedded=t.usesEmbedded,a.stateNames=o.tokenizer,a.defaultToken=t.defaultToken;function h(bt,mt,$t){for(var Kt=0,Wt=$t;Kt<Wt.length;Kt++){var Bt=Wt[Kt],on=Bt.include;if(on){if(typeof on!="string")throw mn(t,"an 'include' attribute must be a string at: "+bt);if(on[0]==="@"&&(on=on.substr(1)),!o.tokenizer[on])throw mn(t,"include target '"+on+"' is not defined at: "+bt);h(bt+"."+on,mt,o.tokenizer[on])}else{var cn=new Nd(bt);if(Array.isArray(Bt)&&Bt.length>=1&&Bt.length<=3)if(cn.setRegex(a,Bt[0]),Bt.length>=3)if(typeof Bt[1]=="string")cn.setAction(a,{token:Bt[1],next:Bt[2]});else if(typeof Bt[1]=="object"){var wn=Bt[1];wn.next=Bt[2],cn.setAction(a,wn)}else throw mn(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+bt);else cn.setAction(a,Bt[1]);else{if(!Bt.regex)throw mn(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+bt);Bt.name&&(typeof Bt.name=="string"&&(cn.name=Bt.name)),Bt.matchOnlyAtStart&&(cn.matchOnlyAtLineStart=$a(Bt.matchOnlyAtLineStart,!1)),cn.setRegex(a,Bt.regex),cn.setAction(a,Bt.action)}mt.push(cn)}}}if(!o.tokenizer||typeof o.tokenizer!="object")throw mn(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(var v in o.tokenizer)if(o.tokenizer.hasOwnProperty(v)){t.start||(t.start=v);var V=o.tokenizer[v];t.tokenizer[v]=new Array,h("tokenizer."+v,t.tokenizer[v],V)}if(t.usesEmbedded=a.usesEmbedded,o.brackets){if(!Array.isArray(o.brackets))throw mn(t,"the 'brackets' attribute must be defined as an array")}else o.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var be=[],Ae=0,Ne=o.brackets;Ae<Ne.length;Ae++){var rt=Ne[Ae],ut=rt;if(ut&&Array.isArray(ut)&&ut.length===3&&(ut={token:ut[2],open:ut[0],close:ut[1]}),ut.open===ut.close)throw mn(t,"open and close brackets in a 'brackets' attribute must be different: "+ut.open+`
|
|
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof ut.open=="string"&&typeof ut.token=="string"&&typeof ut.close=="string")be.push({token:ut.token+t.tokenPostfix,open:jt(t,ut.open),close:jt(t,ut.close)});else throw mn(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=be,t.noThrow=!0,t}function Id(s){c.a.registerLanguage(s)}function Pd(){var s=[];return s=s.concat(c.a.getLanguages()),s}function Fd(s){var o=fi.modeService.get().getLanguageIdentifier(s);return o?o.id:0}function kd(s,o){var t=fi.modeService.get().onDidCreateMode(function(a){a.getId()===s&&(t.dispose(),o())});return t}function jd(s,o){var t=fi.modeService.get().getLanguageIdentifier(s);if(!t)throw new Error("Cannot set configuration for unknown language "+s);return zt.a.register(t,o)}var Wd=function(){function s(o){this._actual=o}return s.prototype.getInitialState=function(){return this._actual.getInitialState()},s.prototype.tokenize=function(o,t,a){throw new Error("Not supported!")},s.prototype.tokenize2=function(o,t){var a=this._actual.tokenizeEncoded(o,t);return new E.c(a.tokens,a.endState)},s}(),Bd=function(){function s(o,t,a){this._standaloneThemeService=o,this._languageIdentifier=t,this._actual=a}return s.prototype.getInitialState=function(){return this._actual.getInitialState()},s.prototype._toClassicTokens=function(o,t,a){for(var h=[],v=0,V=0,be=o.length;V<be;V++){var Ae=o[V],Ne=Ae.startIndex;V===0?Ne=0:Ne<v&&(Ne=v),h[V]=new E.a(Ne+a,Ae.scopes,t),v=Ne}return h},s.prototype.tokenize=function(o,t,a){var h=this._actual.tokenize(o,t),v=this._toClassicTokens(h.tokens,this._languageIdentifier.language,a),V;return h.endState.equals(t)?V=t:V=h.endState,new E.b(v,V)},s.prototype._toBinaryTokens=function(o,t){for(var a=this._languageIdentifier.id,h=this._standaloneThemeService.getTheme().tokenTheme,v=[],V=0,be=0,Ae=0,Ne=o.length;Ae<Ne;Ae++){var rt=o[Ae],ut=h.match(a,rt.scopes);if(V>0&&v[V-1]===ut)continue;var bt=rt.startIndex;Ae===0?bt=0:bt<be&&(bt=be),v[V++]=bt+t,v[V++]=ut,be=bt}for(var mt=new Uint32Array(V),Ae=0;Ae<V;Ae++)mt[Ae]=v[Ae];return mt},s.prototype.tokenize2=function(o,t,a){var h=this._actual.tokenize(o,t),v=this._toBinaryTokens(h.tokens,a),V;return h.endState.equals(t)?V=t:V=h.endState,new E.c(v,V)},s}();function Ud(s){return"tokenizeEncoded"in s}function qa(s){return s&&typeof s.then=="function"}function Vd(s,o){var t=fi.modeService.get().getLanguageIdentifier(s);if(!t)throw new Error("Cannot set tokens provider for unknown language "+s);var a=function(v){return Ud(v)?new Wd(v):new Bd(fi.standaloneThemeService.get(),t,v)};return qa(o)?gt.y.registerPromise(s,o.then(function(h){return a(h)})):gt.y.register(s,a(o))}function zd(s,o){var t=function(h){return Po(fi.modeService.get(),fi.standaloneThemeService.get(),s,Rd(s,h))};return qa(o)?gt.y.registerPromise(s,o.then(function(a){return t(a)})):gt.y.register(s,t(o))}function Hd(s,o){return gt.t.register(s,o)}function Kd(s,o){return gt.u.register(s,o)}function Gd(s,o){return gt.w.register(s,o)}function Xd(s,o){return gt.o.register(s,{provideHover:function(a,h,v){var V=a.getWordAtPosition(h);return Promise.resolve(o.provideHover(a,h,v)).then(function(be){return be?(!be.range&&V&&(be.range=new G.a(h.lineNumber,V.startColumn,h.lineNumber,V.endColumn)),be.range||(be.range=new G.a(h.lineNumber,h.column,h.lineNumber,h.column)),be):void 0})}})}function Yd(s,o){return gt.l.register(s,o)}function Zd(s,o){return gt.h.register(s,o)}function $d(s,o){return gt.f.register(s,o)}function Jd(s,o){return gt.p.register(s,o)}function Qd(s,o){return gt.z.register(s,o)}function qd(s,o){return gt.b.register(s,o)}function eu(s,o){return gt.a.register(s,{provideCodeActions:function(a,h,v,V){var be=fi.markerService.get().read({resource:a.uri}).filter(function(Ae){return G.a.areIntersectingOrTouching(Ae,h)});return o.provideCodeActions(a,h,{markers:be,only:v.only},V)}})}function tu(s,o){return gt.g.register(s,o)}function nu(s,o){return gt.i.register(s,o)}function iu(s,o){return gt.s.register(s,o)}function ou(s,o){return gt.r.register(s,o)}function ru(s,o){return gt.d.register(s,o)}function su(s,o){return gt.c.register(s,o)}function au(s,o){return gt.n.register(s,o)}function lu(s,o){return gt.e.register(s,o)}function du(s,o){return gt.v.register(s,o)}function uu(s,o){return gt.k.register(s,o)}function cu(s,o){return gt.j.register(s,o)}function hu(){return{register:Id,getLanguages:Pd,onLanguage:kd,getEncodedLanguageId:Fd,setLanguageConfiguration:jd,setTokensProvider:Vd,setMonarchTokensProvider:zd,registerReferenceProvider:Hd,registerRenameProvider:Kd,registerCompletionItemProvider:ru,registerSignatureHelpProvider:Gd,registerHoverProvider:Xd,registerDocumentSymbolProvider:Yd,registerDocumentHighlightProvider:Zd,registerDefinitionProvider:$d,registerImplementationProvider:Jd,registerTypeDefinitionProvider:Qd,registerCodeLensProvider:qd,registerCodeActionProvider:eu,registerDocumentFormattingEditProvider:tu,registerDocumentRangeFormattingEditProvider:nu,registerOnTypeFormattingEditProvider:iu,registerLinkProvider:ou,registerColorProvider:su,registerFoldingRangeProvider:au,registerDeclarationProvider:lu,registerSelectionRangeProvider:du,registerDocumentSemanticTokensProvider:uu,registerDocumentRangeSemanticTokensProvider:cu,DocumentHighlightKind:p,CompletionItemKind:D,CompletionItemTag:A,CompletionItemInsertTextRule:K,SymbolKind:ie,SymbolTag:J,IndentAction:H,CompletionTriggerKind:te,SignatureHelpTriggerKind:fe,FoldingRangeKind:gt.m}}var la=self;I.e.wrappingIndent.defaultValue=0,I.e.glyphMargin.defaultValue=!1,I.e.autoIndent.defaultValue=3,I.e.overviewRulerLanes.defaultValue=2;var vo=Pt();vo.editor=Od(),vo.languages=hu();var fu=vo.CancellationTokenSource,pu=vo.Emitter,gu=vo.KeyCode,mu=vo.KeyMod,vu=vo.Position,yu=vo.Range,bu=vo.Selection,Cu=vo.SelectionDirection,_u=vo.MarkerSeverity,Eu=vo.MarkerTag,Su=vo.Uri,wu=vo.Token,Lu=vo.editor,Du=vo.languages;la.monaco=vo,typeof la.require!="undefined"&&typeof la.require.config=="function"&&la.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},y9P2:function(wt,P,r){"use strict";r.d(P,"c",function(){return N}),r.d(P,"a",function(){return F}),r.d(P,"b",function(){return U});var I=r("PoD0"),oe=r("g9ht"),ne=r("/epU"),N;(function(j){j[j.Hint=1]="Hint",j[j.Info=2]="Info",j[j.Warning=4]="Warning",j[j.Error=8]="Error"})(N||(N={})),function(j){function G(D,A){return A-D}j.compare=G;var R=Object.create(null);R[j.Error]=Object(oe.a)("sev.error","Error"),R[j.Warning]=Object(oe.a)("sev.warning","Warning"),R[j.Info]=Object(oe.a)("sev.info","Info");function E(D){return R[D]||""}j.toString=E;function x(D){switch(D){case ne.a.Error:return j.Error;case ne.a.Warning:return j.Warning;case ne.a.Info:return j.Info;case ne.a.Ignore:return j.Hint}}j.fromSeverity=x;function K(D){switch(D){case j.Error:return ne.a.Error;case j.Warning:return ne.a.Warning;case j.Info:return ne.a.Info;case j.Hint:return ne.a.Ignore}}j.toSeverity=K}(N||(N={}));var F;(function(j){var G="";function R(x){return E(x,!0)}j.makeKey=R;function E(x,K){var D=[G];return x.source?D.push(x.source.replace("\xA6","\xA6")):D.push(G),x.code?typeof x.code=="string"?D.push(x.code.replace("\xA6","\xA6")):D.push(x.code.value.replace("\xA6","\xA6")):D.push(G),x.severity!==void 0&&x.severity!==null?D.push(N.toString(x.severity)):D.push(G),x.message&&K?D.push(x.message.replace("\xA6","\xA6")):D.push(G),x.startLineNumber!==void 0&&x.startLineNumber!==null?D.push(x.startLineNumber.toString()):D.push(G),x.startColumn!==void 0&&x.startColumn!==null?D.push(x.startColumn.toString()):D.push(G),x.endLineNumber!==void 0&&x.endLineNumber!==null?D.push(x.endLineNumber.toString()):D.push(G),x.endColumn!==void 0&&x.endColumn!==null?D.push(x.endColumn.toString()):D.push(G),D.push(G),D.join("\xA6")}j.makeKeyOptionalMessage=E})(F||(F={}));var U=Object(I.c)("markerService")},yBOt:function(wt,P,r){"use strict";r.d(P,"x",function(){return I}),r.d(P,"F",function(){return oe}),r.d(P,"r",function(){return N}),r.d(P,"o",function(){return F}),r.d(P,"p",function(){return U}),r.d(P,"K",function(){return R}),r.d(P,"k",function(){return E}),r.d(P,"M",function(){return x}),r.d(P,"m",function(){return K}),r.d(P,"l",function(){return D}),r.d(P,"I",function(){return A}),r.d(P,"H",function(){return te}),r.d(P,"q",function(){return z}),r.d(P,"t",function(){return _}),r.d(P,"D",function(){return f}),r.d(P,"e",function(){return p}),r.d(P,"f",function(){return g}),r.d(P,"B",function(){return m}),r.d(P,"C",function(){return w}),r.d(P,"n",function(){return H}),r.d(P,"N",function(){return he}),r.d(P,"c",function(){return Ee}),r.d(P,"d",function(){return Se}),r.d(P,"z",function(){return q}),r.d(P,"A",function(){return Z}),r.d(P,"u",function(){return ce}),r.d(P,"E",function(){return Ve}),r.d(P,"G",function(){return _e}),r.d(P,"i",function(){return se}),r.d(P,"g",function(){return ie}),r.d(P,"v",function(){return me}),r.d(P,"h",function(){return ye}),r.d(P,"y",function(){return ze}),r.d(P,"w",function(){return tt}),r.d(P,"a",function(){return _t}),r.d(P,"O",function(){return Pt}),r.d(P,"J",function(){return Ke}),r.d(P,"j",function(){return Xe}),r.d(P,"L",function(){return Ze}),r.d(P,"s",function(){return Ye}),r.d(P,"b",function(){return ke});function I(k){return!k||typeof k!="string"?!0:k.trim().length===0}function oe(k,ee,Pe){Pe===void 0&&(Pe="0");for(var ve=""+k,Te=[ve],Ie=ve.length;Ie<ee;Ie++)Te.push(Pe);return Te.reverse().join("")}var ne=/{(\d+)}/g;function N(k){for(var ee=[],Pe=1;Pe<arguments.length;Pe++)ee[Pe-1]=arguments[Pe];return ee.length===0?k:k.replace(ne,function(ve,Te){var Ie=parseInt(Te,10);return isNaN(Ie)||Ie<0||Ie>=ee.length?ve:ee[Ie]})}function F(k){return k.replace(/[<>&]/g,function(ee){switch(ee){case"<":return"<";case">":return">";case"&":return"&";default:return ee}})}function U(k){return k.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function j(k,ee){ee===void 0&&(ee=" ");var Pe=G(k,ee);return R(Pe,ee)}function G(k,ee){if(!k||!ee)return k;var Pe=ee.length;if(Pe===0||k.length===0)return k;for(var ve=0;k.indexOf(ee,ve)===ve;)ve=ve+Pe;return k.substring(ve)}function R(k,ee){if(!k||!ee)return k;var Pe=ee.length,ve=k.length;if(Pe===0||ve===0)return k;for(var Te=ve,Ie=-1;!(Ie=k.lastIndexOf(ee,Te-1),Ie===-1||Ie+Pe!==Te);){if(Ie===0)return"";Te=Ie}return k.substring(0,Te)}function E(k){return k.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function x(k,ee){if(k.length<ee.length)return!1;if(k===ee)return!0;for(var Pe=0;Pe<ee.length;Pe++)if(k[Pe]!==ee[Pe])return!1;return!0}function K(k,ee){var Pe=k.length-ee.length;return Pe>0?k.indexOf(ee,Pe)===Pe:Pe===0?k===ee:!1}function D(k,ee,Pe){if(Pe===void 0&&(Pe={}),!k)throw new Error("Cannot create regex from empty string");ee||(k=U(k)),Pe.wholeWord&&(/\B/.test(k.charAt(0))||(k="\\b"+k),/\B/.test(k.charAt(k.length-1))||(k=k+"\\b"));var ve="";return Pe.global&&(ve+="g"),Pe.matchCase||(ve+="i"),Pe.multiline&&(ve+="m"),Pe.unicode&&(ve+="u"),new RegExp(k,ve)}function A(k){if(k.source==="^"||k.source==="^$"||k.source==="$"||k.source==="^\\s*$")return!1;var ee=k.exec("");return!!(ee&&k.lastIndex===0)}function te(k){return(k.global?"g":"")+(k.ignoreCase?"i":"")+(k.multiline?"m":"")+(k.unicode?"u":"")}function z(k){for(var ee=0,Pe=k.length;ee<Pe;ee++){var ve=k.charCodeAt(ee);if(ve!==32&&ve!==9)return ee}return-1}function _(k,ee,Pe){ee===void 0&&(ee=0),Pe===void 0&&(Pe=k.length);for(var ve=ee;ve<Pe;ve++){var Te=k.charCodeAt(ve);if(Te!==32&&Te!==9)return k.substring(ee,ve)}return k.substring(ee,Pe)}function f(k,ee){ee===void 0&&(ee=k.length-1);for(var Pe=ee;Pe>=0;Pe--){var ve=k.charCodeAt(Pe);if(ve!==32&&ve!==9)return Pe}return-1}function p(k,ee){return k<ee?-1:k>ee?1:0}function g(k,ee){for(var Pe=Math.min(k.length,ee.length),ve=0;ve<Pe;ve++){var Te=k.charCodeAt(ve),Ie=ee.charCodeAt(ve);if(Te===Ie)continue;w(Te)&&(Te+=32),w(Ie)&&(Ie+=32);var pe=Te-Ie;if(pe===0)continue;return m(Te)&&m(Ie)?pe:p(k.toLowerCase(),ee.toLowerCase())}return k.length<ee.length?-1:k.length>ee.length?1:0}function m(k){return k>=97&&k<=122}function w(k){return k>=65&&k<=90}function B(k){return m(k)||w(k)}function H(k,ee){return k.length===ee.length&&re(k,ee)}function re(k,ee,Pe){Pe===void 0&&(Pe=k.length);for(var ve=0;ve<Pe;ve++){var Te=k.charCodeAt(ve),Ie=ee.charCodeAt(ve);if(Te===Ie)continue;if(B(Te)&&B(Ie)){var pe=Math.abs(Te-Ie);if(pe!==0&&pe!==32)return!1}else if(String.fromCharCode(Te).toLowerCase()!==String.fromCharCode(Ie).toLowerCase())return!1}return!0}function he(k,ee){var Pe=ee.length;return ee.length>k.length?!1:re(k,ee,Pe)}function Ee(k,ee){var Pe,ve=Math.min(k.length,ee.length);for(Pe=0;Pe<ve;Pe++)if(k.charCodeAt(Pe)!==ee.charCodeAt(Pe))return Pe;return ve}function Se(k,ee){var Pe,ve=Math.min(k.length,ee.length),Te=k.length-1,Ie=ee.length-1;for(Pe=0;Pe<ve;Pe++)if(k.charCodeAt(Te-Pe)!==ee.charCodeAt(Ie-Pe))return Pe;return ve}function q(k){return 55296<=k&&k<=56319}function Z(k){return 56320<=k&&k<=57343}function ce(k,ee,Pe){var ve=k.charCodeAt(Pe);if(q(ve)&&Pe+1<ee){var Te=k.charCodeAt(Pe+1);if(Z(Te))return(ve-55296<<10)+(Te-56320)+65536}return ve}function Me(k,ee){var Pe=k.charCodeAt(ee-1);if(Z(Pe)&&ee>1){var ve=k.charCodeAt(ee-2);if(q(ve))return(ve-55296<<10)+(Pe-56320)+65536}return Pe}function Ve(k,ee){var Pe=$e.getInstance(),ve=ee,Te=k.length,Ie=ce(k,Te,ee);ee+=Ie>=65536?2:1;for(var pe=Pe.getGraphemeBreakType(Ie);ee<Te;){var nt=ce(k,Te,ee),Et=Pe.getGraphemeBreakType(nt);if(ke(pe,Et))break;ee+=nt>=65536?2:1,pe=Et}return ee-ve}function _e(k,ee){var Pe=$e.getInstance(),ve=ee,Te=Me(k,ee);ee-=Te>=65536?2:1;for(var Ie=Pe.getGraphemeBreakType(Te);ee>0;){var pe=Me(k,ee),nt=Pe.getGraphemeBreakType(pe);if(ke(nt,Ie))break;ee-=pe>=65536?2:1,Ie=nt}return ve-ee}var ue=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function se(k){return ue.test(k)}var fe=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function ie(k){return fe.test(k)}var J=/^[\t\n\r\x20-\x7E]*$/;function me(k){return J.test(k)}function ye(k){for(var ee=0,Pe=k.length;ee<Pe;ee++)if(ze(k.charCodeAt(ee)))return!0;return!1}function ze(k){return k=+k,k>=11904&&k<=55215||k>=63744&&k<=64255||k>=65281&&k<=65374}function tt(k){return k>=127462&&k<=127487||k>=9728&&k<=10175||k>=127744&&k<=128591||k>=128640&&k<=128764||k>=128992&&k<=129003||k>=129280&&k<=129535||k>=129648&&k<=129651||k>=129656&&k<=129666||k>=129680&&k<=129685}var _t=String.fromCharCode(65279);function Pt(k){return!!(k&&k.length>0&&k.charCodeAt(0)===65279)}function Xt(k){return btoa(encodeURIComponent(k))}function Ke(k,ee){for(var Pe="",ve=0;ve<ee;ve++)Pe+=k;return Pe}function Xe(k,ee){return ee===void 0&&(ee=!1),k?(ee&&(k=k.replace(/\\./g,"")),k.toLowerCase()!==k):!1}function Ze(k){var ee=90-65+1;return k=k%(2*ee),k<ee?String.fromCharCode(97+k):String.fromCharCode(65+k-ee)}function Ye(k){var ee=$e.getInstance();return ee.getGraphemeBreakType(k)}function ke(k,ee){return k===0?ee!==5&&ee!==7:k===2&&ee===3?!1:k===4||k===2||k===3||(ee===4||ee===2||ee===3)?!0:k===8&&(ee===8||ee===9||ee===11||ee===12)||((k===11||k===9)&&(ee===9||ee===10)||((k===12||k===10)&&ee===10||(ee===5||ee===13||(ee===7||(k===1||k===13&&ee===14)))))?!1:!(k===6&&ee===6)}var $e=function(){function k(){this._data=we()}return k.getInstance=function(){return k._INSTANCE||(k._INSTANCE=new k),k._INSTANCE},k.prototype.getGraphemeBreakType=function(ee){if(ee<32)return ee===10?3:ee===13?2:4;if(ee<127)return 0;for(var Pe=this._data,ve=Pe.length/3,Te=1;Te<=ve;)if(ee<Pe[3*Te])Te=2*Te;else if(ee>Pe[3*Te+1])Te=2*Te+1;else return Pe[3*Te+2];return 0},k._INSTANCE=null,k}();function we(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},yCUd:function(wt,P,r){"use strict";r.d(P,"a",function(){return j}),r.d(P,"d",function(){return E}),r.d(P,"c",function(){return K}),r.d(P,"e",function(){return te}),r.d(P,"b",function(){return z});var I=r("yBOt"),oe=r("ATqw"),ne=r("V0RK"),N=r("w9Cd"),F=r("/l9y"),U=999,j=function(){function _(f,p,g,m){this.searchString=f,this.isRegex=p,this.matchCase=g,this.wordSeparators=m}return _.prototype.parseSearchRequest=function(){if(this.searchString==="")return null;var f;this.isRegex?f=G(this.searchString):f=this.searchString.indexOf(`
|
|
`)>=0;var p=null;try{p=I.l(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:f,global:!0,unicode:!0})}catch(m){return null}if(!p)return null;var g=!this.isRegex&&!f;return g&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(g=this.matchCase),new R(p,this.wordSeparators?Object(oe.a)(this.wordSeparators):null,g?this.searchString:null)},_}();function G(_){if(!_||_.length===0)return!1;for(var f=0,p=_.length;f<p;f++){var g=_.charCodeAt(f);if(g===92){if(f++,f>=p)break;var m=_.charCodeAt(f);if(m===110||m===114||m===87||m===119)return!0}}return!1}var R=function(){function _(f,p,g){this.regex=f,this.wordSeparators=p,this.simpleSearch=g}return _}();function E(_,f,p){if(!p)return new F.b(_,null);for(var g=[],m=0,w=f.length;m<w;m++)g[m]=f[m];return new F.b(_,g)}var x=function(){function _(f){for(var p=[],g=0,m=0,w=f.length;m<w;m++)f.charCodeAt(m)===10&&(p[g++]=m);this._lineFeedsOffsets=p}return _.prototype.findLineFeedCountBeforeOffset=function(f){var p=this._lineFeedsOffsets,g=0,m=p.length-1;if(m===-1)return 0;if(f<=p[0])return 0;for(;g<m;){var w=g+((m-g)/2>>0);p[w]>=f?m=w-1:p[w+1]>=f?(g=w,m=w):g=w+1}return g+1},_}(),K=function(){function _(){}return _.findMatches=function(f,p,g,m,w){var B=p.parseSearchRequest();return B?B.regex.multiline?this._doFindMatchesMultiline(f,g,new z(B.wordSeparators,B.regex),m,w):this._doFindMatchesLineByLine(f,g,B,m,w):[]},_._getMultilineMatchRange=function(f,p,g,m,w,B){var H,re=0;m?(re=m.findLineFeedCountBeforeOffset(w),H=p+w+re):H=p+w;var he;if(m){var Ee=m.findLineFeedCountBeforeOffset(w+B.length),Se=Ee-re;he=H+B.length+Se}else he=H+B.length;var q=f.getPositionAt(H),Z=f.getPositionAt(he);return new N.a(q.lineNumber,q.column,Z.lineNumber,Z.column)},_._doFindMatchesMultiline=function(f,p,g,m,w){var B=f.getOffsetAt(p.getStartPosition()),H=f.getValueInRange(p,1),re=f.getEOL()===`\r
|
|
`?new x(H):null,he=[],Ee=0,Se;for(g.reset(0);Se=g.next(H);)if(he[Ee++]=E(this._getMultilineMatchRange(f,B,H,re,Se.index,Se[0]),Se,m),Ee>=w)return he;return he},_._doFindMatchesLineByLine=function(f,p,g,m,w){var B=[],H=0;if(p.startLineNumber===p.endLineNumber){var re=f.getLineContent(p.startLineNumber).substring(p.startColumn-1,p.endColumn-1);return H=this._findMatchesInLine(g,re,p.startLineNumber,p.startColumn-1,H,B,m,w),B}var he=f.getLineContent(p.startLineNumber).substring(p.startColumn-1);H=this._findMatchesInLine(g,he,p.startLineNumber,p.startColumn-1,H,B,m,w);for(var Ee=p.startLineNumber+1;Ee<p.endLineNumber&&H<w;Ee++)H=this._findMatchesInLine(g,f.getLineContent(Ee),Ee,0,H,B,m,w);if(H<w){var Se=f.getLineContent(p.endLineNumber).substring(0,p.endColumn-1);H=this._findMatchesInLine(g,Se,p.endLineNumber,0,H,B,m,w)}return B},_._findMatchesInLine=function(f,p,g,m,w,B,H,re){var he=f.wordSeparators;if(!H&&f.simpleSearch){for(var Ee=f.simpleSearch,Se=Ee.length,q=p.length,Z=-Se;(Z=p.indexOf(Ee,Z+Se))!==-1;)if((!he||te(he,p,q,Z,Se))&&(B[w++]=new F.b(new N.a(g,Z+1+m,g,Z+1+Se+m),null),w>=re))return w;return w}var ce=new z(f.wordSeparators,f.regex),Me;ce.reset(0);do if(Me=ce.next(p),Me&&(B[w++]=E(new N.a(g,Me.index+1+m,g,Me.index+1+Me[0].length+m),Me,H),w>=re))return w;while(Me);return w},_.findNextMatch=function(f,p,g,m){var w=p.parseSearchRequest();if(!w)return null;var B=new z(w.wordSeparators,w.regex);return w.regex.multiline?this._doFindNextMatchMultiline(f,g,B,m):this._doFindNextMatchLineByLine(f,g,B,m)},_._doFindNextMatchMultiline=function(f,p,g,m){var w=new ne.a(p.lineNumber,1),B=f.getOffsetAt(w),H=f.getLineCount(),re=f.getValueInRange(new N.a(w.lineNumber,w.column,H,f.getLineMaxColumn(H)),1),he=f.getEOL()===`\r
|
|
`?new x(re):null;g.reset(p.column-1);var Ee=g.next(re);return Ee?E(this._getMultilineMatchRange(f,B,re,he,Ee.index,Ee[0]),Ee,m):p.lineNumber!==1||p.column!==1?this._doFindNextMatchMultiline(f,new ne.a(1,1),g,m):null},_._doFindNextMatchLineByLine=function(f,p,g,m){var w=f.getLineCount(),B=p.lineNumber,H=f.getLineContent(B),re=this._findFirstMatchInLine(g,H,B,p.column,m);if(re)return re;for(var he=1;he<=w;he++){var Ee=(B+he-1)%w,Se=f.getLineContent(Ee+1),q=this._findFirstMatchInLine(g,Se,Ee+1,1,m);if(q)return q}return null},_._findFirstMatchInLine=function(f,p,g,m,w){f.reset(m-1);var B=f.next(p);return B?E(new N.a(g,B.index+1,g,B.index+1+B[0].length),B,w):null},_.findPreviousMatch=function(f,p,g,m){var w=p.parseSearchRequest();if(!w)return null;var B=new z(w.wordSeparators,w.regex);return w.regex.multiline?this._doFindPreviousMatchMultiline(f,g,B,m):this._doFindPreviousMatchLineByLine(f,g,B,m)},_._doFindPreviousMatchMultiline=function(f,p,g,m){var w=this._doFindMatchesMultiline(f,new N.a(1,1,p.lineNumber,p.column),g,m,10*U);if(w.length>0)return w[w.length-1];var B=f.getLineCount();return p.lineNumber!==B||p.column!==f.getLineMaxColumn(B)?this._doFindPreviousMatchMultiline(f,new ne.a(B,f.getLineMaxColumn(B)),g,m):null},_._doFindPreviousMatchLineByLine=function(f,p,g,m){var w=f.getLineCount(),B=p.lineNumber,H=f.getLineContent(B).substring(0,p.column-1),re=this._findLastMatchInLine(g,H,B,m);if(re)return re;for(var he=1;he<=w;he++){var Ee=(w+B-he-1)%w,Se=f.getLineContent(Ee+1),q=this._findLastMatchInLine(g,Se,Ee+1,m);if(q)return q}return null},_._findLastMatchInLine=function(f,p,g,m){var w=null,B;for(f.reset(0);B=f.next(p);)w=E(new N.a(g,B.index+1,g,B.index+1+B[0].length),B,m);return w},_}();function D(_,f,p,g,m){if(g===0)return!0;var w=f.charCodeAt(g-1);if(_.get(w)!==0)return!0;if(w===13||w===10)return!0;if(m>0){var B=f.charCodeAt(g);if(_.get(B)!==0)return!0}return!1}function A(_,f,p,g,m){if(g+m===p)return!0;var w=f.charCodeAt(g+m);if(_.get(w)!==0)return!0;if(w===13||w===10)return!0;if(m>0){var B=f.charCodeAt(g+m-1);if(_.get(B)!==0)return!0}return!1}function te(_,f,p,g,m){return D(_,f,p,g,m)&&A(_,f,p,g,m)}var z=function(){function _(f,p){this._wordSeparators=f,this._searchRegex=p,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return _.prototype.reset=function(f){this._searchRegex.lastIndex=f,this._prevMatchStartIndex=-1,this._prevMatchLength=0},_.prototype.next=function(f){var p=f.length,g;do{if(this._prevMatchStartIndex+this._prevMatchLength===p)return null;if(g=this._searchRegex.exec(f),!g)return null;var m=g.index,w=g[0].length;if(m===this._prevMatchStartIndex&&w===this._prevMatchLength){if(w===0){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=m,this._prevMatchLength=w,!this._wordSeparators||te(this._wordSeparators,f,p,m,w))return g}while(g);return null},_}()},yWTM:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return r.e(243).then(r.bind(null,"YinO"))}})},yimU:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("telemetryService")},yqRl:function(wt,P,r){"use strict";r.d(P,"d",function(){return oe}),r.d(P,"j",function(){return ne}),r.d(P,"i",function(){return N}),r.d(P,"h",function(){return F}),r.d(P,"e",function(){return U}),r.d(P,"k",function(){return j}),r.d(P,"l",function(){return G}),r.d(P,"a",function(){return R}),r.d(P,"f",function(){return x}),r.d(P,"g",function(){return K}),r.d(P,"m",function(){return D}),r.d(P,"c",function(){return z}),r.d(P,"b",function(){return _}),r.d(P,"n",function(){return f}),r.d(P,"o",function(){return p});var I={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function oe(g){return Array.isArray?Array.isArray(g):!!(g&&typeof g.length===I.number&&g.constructor===Array)}function ne(g){return typeof g===I.string||g instanceof String}function N(g){return typeof g===I.object&&g!==null&&!Array.isArray(g)&&!(g instanceof RegExp)&&!(g instanceof Date)}function F(g){return(typeof g===I.number||g instanceof Number)&&!isNaN(g)}function U(g){return g===!0||g===!1}function j(g){return typeof g===I.undefined}function G(g){return j(g)||g===null}function R(g,m){if(!g)throw new Error(m?"Unexpected type, expected '"+m+"'":"Unexpected type")}var E=Object.prototype.hasOwnProperty;function x(g){if(!N(g))return!1;for(var m in g)if(E.call(g,m))return!1;return!0}function K(g){return typeof g===I.function}function D(g,m){for(var w=Math.min(g.length,m.length),B=0;B<w;B++)A(g[B],m[B])}function A(g,m){if(ne(m)){if(typeof g!==m)throw new Error("argument does not match constraint: typeof "+m)}else if(K(m)){try{if(g instanceof m)return}catch(w){}if(!G(g)&&g.constructor===m)return;if(m.length===1&&m.call(void 0,g)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function te(g){for(var m=[],w=Object.getPrototypeOf(g);Object.prototype!==w;)m=m.concat(Object.getOwnPropertyNames(w)),w=Object.getPrototypeOf(w);return m}function z(g){for(var m=[],w=0,B=te(g);w<B.length;w++){var H=B[w];typeof g[H]=="function"&&m.push(H)}return m}function _(g,m){for(var w=function(Se){return function(){var q=Array.prototype.slice.call(arguments,0);return m(Se,q)}},B={},H=0,re=g;H<re.length;H++){var he=re[H];B[he]=w(he)}return B}function f(g){return g===null?void 0:g}function p(g){return typeof g=="undefined"?null:g}},ywU6:function(wt,P,r){"use strict";r.d(P,"b",function(){return oe}),r.d(P,"c",function(){return ne}),r.d(P,"d",function(){return F}),r.d(P,"a",function(){return j});var I=function(){var R=function(x,K){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,A){D.__proto__=A}||function(D,A){for(var te in A)A.hasOwnProperty(te)&&(D[te]=A[te])},R(x,K)};return function(E,x){R(E,x);function K(){this.constructor=E}E.prototype=x===null?Object.create(x):(K.prototype=x.prototype,new K)}}(),oe={done:!0,value:void 0},ne;(function(R){var E={next:function(){return oe}};function x(){return E}R.empty=x;function K(w){var B=!1;return{next:function(){return B?oe:(B=!0,{done:!1,value:w})}}}R.single=K;function D(w,B,H){return B===void 0&&(B=0),H===void 0&&(H=w.length),{next:function(){return B>=H?oe:{done:!1,value:w[B++]}}}}R.fromArray=D;function A(w){return{next:function(){var H=w.next();return H.done?oe:{done:!1,value:H.value}}}}R.fromNativeIterator=A;function te(w){return w?Array.isArray(w)?R.fromArray(w):w:R.empty()}R.from=te;function z(w,B){return{next:function(){var re=w.next();return re.done?oe:{done:!1,value:B(re.value)}}}}R.map=z;function _(w,B){return{next:function(){for(;;){var re=w.next();if(re.done)return oe;if(B(re.value))return{done:!1,value:re.value}}}}}R.filter=_;function f(w,B){for(var H=w.next();!H.done;H=w.next())B(H.value)}R.forEach=f;function p(w,B){B===void 0&&(B=Number.POSITIVE_INFINITY);var H=[];if(B===0)return H;for(var re=0,he=w.next();!he.done&&!(H.push(he.value),++re>=B);he=w.next());return H}R.collect=p;function g(){for(var w=[],B=0;B<arguments.length;B++)w[B]=arguments[B];var H=0;return{next:function(){if(H>=w.length)return oe;var he=w[H],Ee=he.next();return Ee.done?(H++,this.next()):Ee}}}R.concat=g;function m(w){return new N(w)}R.chain=m})(ne||(ne={}));var N=function(){function R(E){this.it=E}return R.prototype.next=function(){return this.it.next()},R}();function F(R){return Array.isArray(R)?ne.fromArray(R):R||ne.empty()}var U=function(){function R(E,x,K,D){x===void 0&&(x=0),K===void 0&&(K=E.length),D===void 0&&(D=x-1),this.items=E,this.start=x,this.end=K,this.index=D}return R.prototype.first=function(){return this.index=this.start,this.current()},R.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},R.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},R}(),j=function(R){I(E,R);function E(x,K,D,A){return K===void 0&&(K=0),D===void 0&&(D=x.length),A===void 0&&(A=K-1),R.call(this,x,K,D,A)||this}return E.prototype.current=function(){return R.prototype.current.call(this)},E.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},E.prototype.first=function(){return this.index=this.start,this.current()},E.prototype.last=function(){return this.index=this.end-1,this.current()},E.prototype.parent=function(){return null},E}(U),G=function(){function R(E,x){this.iterator=E,this.fn=x}return R.prototype.next=function(){return this.fn(this.iterator.next())},R}()},z5rs:function(wt,P,r){"use strict";r.d(P,"a",function(){return oe});var I=r("PoD0"),oe=Object(I.c)("editorProgressService")},zOJ8:function(wt,P,r){"use strict";r.d(P,"a",function(){return D});var I=r("S7i+"),oe=function(){var H=function(he,Ee){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Se,q){Se.__proto__=q}||function(Se,q){for(var Z in q)q.hasOwnProperty(Z)&&(Se[Z]=q[Z])},H(he,Ee)};return function(re,he){H(re,he);function Ee(){this.constructor=re}re.prototype=he===null?Object.create(he):(Ee.prototype=he.prototype,new Ee)}}(),ne,N=/^\w[\w\d+.-]*$/,F=/^\//,U=/^\/\//;function j(H,re){if(!H.scheme&&re)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+H.authority+'", path: "'+H.path+'", query: "'+H.query+'", fragment: "'+H.fragment+'"}');if(H.scheme&&!N.test(H.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(H.path){if(H.authority){if(!F.test(H.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(U.test(H.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function G(H,re){return!H&&!re?"file":H}function R(H,re){switch(H){case"https":case"http":case"file":re?re[0]!==x&&(re=x+re):re=x;break}return re}var E="",x="/",K=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,D=function(){function H(re,he,Ee,Se,q,Z){Z===void 0&&(Z=!1),typeof re=="object"?(this.scheme=re.scheme||E,this.authority=re.authority||E,this.path=re.path||E,this.query=re.query||E,this.fragment=re.fragment||E):(this.scheme=G(re,Z),this.authority=he||E,this.path=R(this.scheme,Ee||E),this.query=Se||E,this.fragment=q||E,j(this,Z))}return H.isUri=function(re){return re instanceof H?!0:re?typeof re.authority=="string"&&typeof re.fragment=="string"&&typeof re.path=="string"&&typeof re.query=="string"&&typeof re.scheme=="string"&&typeof re.fsPath=="function"&&typeof re.with=="function"&&typeof re.toString=="function":!1},Object.defineProperty(H.prototype,"fsPath",{get:function(){return p(this)},enumerable:!0,configurable:!0}),H.prototype.with=function(re){if(!re)return this;var he=re.scheme,Ee=re.authority,Se=re.path,q=re.query,Z=re.fragment;return he===void 0?he=this.scheme:he===null&&(he=E),Ee===void 0?Ee=this.authority:Ee===null&&(Ee=E),Se===void 0?Se=this.path:Se===null&&(Se=E),q===void 0?q=this.query:q===null&&(q=E),Z===void 0?Z=this.fragment:Z===null&&(Z=E),he===this.scheme&&Ee===this.authority&&Se===this.path&&q===this.query&&Z===this.fragment?this:new te(he,Ee,Se,q,Z)},H.parse=function(re,he){he===void 0&&(he=!1);var Ee=K.exec(re);return Ee?new te(Ee[2]||E,B(Ee[4]||E),B(Ee[5]||E),B(Ee[7]||E),B(Ee[9]||E),he):new te(E,E,E,E,E)},H.file=function(re){var he=E;if(I.h&&(re=re.replace(/\\/g,x)),re[0]===x&&re[1]===x){var Ee=re.indexOf(x,2);Ee===-1?(he=re.substring(2),re=x):(he=re.substring(2,Ee),re=re.substring(Ee)||x)}return new te("file",he,re,E,E)},H.from=function(re){return new te(re.scheme,re.authority,re.path,re.query,re.fragment)},H.prototype.toString=function(re){return re===void 0&&(re=!1),g(this,re)},H.prototype.toJSON=function(){return this},H.revive=function(re){if(re){if(re instanceof H)return re;var he=new te(re);return he._formatted=re.external,he._fsPath=re._sep===A?re.fsPath:null,he}else return re},H}(),A=I.h?1:void 0,te=function(H){oe(re,H);function re(){var he=H!==null&&H.apply(this,arguments)||this;return he._formatted=null,he._fsPath=null,he}return Object.defineProperty(re.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=p(this)),this._fsPath},enumerable:!0,configurable:!0}),re.prototype.toString=function(he){return he===void 0&&(he=!1),he?g(this,!0):(this._formatted||(this._formatted=g(this,!1)),this._formatted)},re.prototype.toJSON=function(){var he={$mid:1};return this._fsPath&&(he.fsPath=this._fsPath,he._sep=A),this._formatted&&(he.external=this._formatted),this.path&&(he.path=this.path),this.scheme&&(he.scheme=this.scheme),this.authority&&(he.authority=this.authority),this.query&&(he.query=this.query),this.fragment&&(he.fragment=this.fragment),he},re}(D),z=(ne={},ne[58]="%3A",ne[47]="%2F",ne[63]="%3F",ne[35]="%23",ne[91]="%5B",ne[93]="%5D",ne[64]="%40",ne[33]="%21",ne[36]="%24",ne[38]="%26",ne[39]="%27",ne[40]="%28",ne[41]="%29",ne[42]="%2A",ne[43]="%2B",ne[44]="%2C",ne[59]="%3B",ne[61]="%3D",ne[32]="%20",ne);function _(H,re){for(var he=void 0,Ee=-1,Se=0;Se<H.length;Se++){var q=H.charCodeAt(Se);if(q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===45||q===46||q===95||q===126||re&&q===47)Ee!==-1&&(he+=encodeURIComponent(H.substring(Ee,Se)),Ee=-1),he!==void 0&&(he+=H.charAt(Se));else{he===void 0&&(he=H.substr(0,Se));var Z=z[q];Z!==void 0?(Ee!==-1&&(he+=encodeURIComponent(H.substring(Ee,Se)),Ee=-1),he+=Z):Ee===-1&&(Ee=Se)}}return Ee!==-1&&(he+=encodeURIComponent(H.substring(Ee))),he!==void 0?he:H}function f(H){for(var re=void 0,he=0;he<H.length;he++){var Ee=H.charCodeAt(he);Ee===35||Ee===63?(re===void 0&&(re=H.substr(0,he)),re+=z[Ee]):re!==void 0&&(re+=H[he])}return re!==void 0?re:H}function p(H){var re;return H.authority&&H.path.length>1&&H.scheme==="file"?re="//"+H.authority+H.path:H.path.charCodeAt(0)===47&&(H.path.charCodeAt(1)>=65&&H.path.charCodeAt(1)<=90||H.path.charCodeAt(1)>=97&&H.path.charCodeAt(1)<=122)&&H.path.charCodeAt(2)===58?re=H.path[1].toLowerCase()+H.path.substr(2):re=H.path,I.h&&(re=re.replace(/\//g,"\\")),re}function g(H,re){var he=re?f:_,Ee="",Se=H.scheme,q=H.authority,Z=H.path,ce=H.query,Me=H.fragment;if(Se&&(Ee+=Se,Ee+=":"),(q||Se==="file")&&(Ee+=x,Ee+=x),q){var Ve=q.indexOf("@");if(Ve!==-1){var _e=q.substr(0,Ve);q=q.substr(Ve+1),Ve=_e.indexOf(":"),Ve===-1?Ee+=he(_e,!1):(Ee+=he(_e.substr(0,Ve),!1),Ee+=":",Ee+=he(_e.substr(Ve+1),!1)),Ee+="@"}q=q.toLowerCase(),Ve=q.indexOf(":"),Ve===-1?Ee+=he(q,!1):(Ee+=he(q.substr(0,Ve),!1),Ee+=q.substr(Ve))}if(Z){if(Z.length>=3&&Z.charCodeAt(0)===47&&Z.charCodeAt(2)===58){var ue=Z.charCodeAt(1);ue>=65&&ue<=90&&(Z="/"+String.fromCharCode(ue+32)+":"+Z.substr(3))}else if(Z.length>=2&&Z.charCodeAt(1)===58){var ue=Z.charCodeAt(0);ue>=65&&ue<=90&&(Z=String.fromCharCode(ue+32)+":"+Z.substr(2))}Ee+=he(Z,!0)}return ce&&(Ee+="?",Ee+=he(ce,!1)),Me&&(Ee+="#",Ee+=re?Me:_(Me,!1)),Ee}function m(H){try{return decodeURIComponent(H)}catch(re){return H.length>3?H.substr(0,3)+m(H.substr(3)):H}}var w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function B(H){return H.match(w)?H.replace(w,function(re){return m(re)}):H}},zOQw:function(wt,P,r){"use strict";r.r(P);var I=r("G6m9");Object(I.a)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return r.e(226).then(r.bind(null,"ZvTB"))}})},zh89:function(wt,P,r){(function(I){/*!
|
|
Copyright (c) 2014 Taylor Hakes
|
|
Copyright (c) 2014 Forbes Lindesay
|
|
*/(function(oe,ne){ne()})(this,function(){"use strict";function oe(A){var te=this.constructor;return this.then(function(z){return te.resolve(A()).then(function(){return z})},function(z){return te.resolve(A()).then(function(){return te.reject(z)})})}var ne=setTimeout;function N(){}function F(A,te){return function(){A.apply(te,arguments)}}function U(A){if(!(this instanceof U))throw new TypeError("Promises must be constructed via new");if(typeof A!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],K(A,this)}function j(A,te){for(;A._state===3;)A=A._value;if(A._state===0){A._deferreds.push(te);return}A._handled=!0,U._immediateFn(function(){var z=A._state===1?te.onFulfilled:te.onRejected;if(z===null){(A._state===1?G:R)(te.promise,A._value);return}var _;try{_=z(A._value)}catch(f){R(te.promise,f);return}G(te.promise,_)})}function G(A,te){try{if(te===A)throw new TypeError("A promise cannot be resolved with itself.");if(te&&(typeof te=="object"||typeof te=="function")){var z=te.then;if(te instanceof U){A._state=3,A._value=te,E(A);return}else if(typeof z=="function"){K(F(z,te),A);return}}A._state=1,A._value=te,E(A)}catch(_){R(A,_)}}function R(A,te){A._state=2,A._value=te,E(A)}function E(A){A._state===2&&A._deferreds.length===0&&U._immediateFn(function(){A._handled||U._unhandledRejectionFn(A._value)});for(var te=0,z=A._deferreds.length;te<z;te++)j(A,A._deferreds[te]);A._deferreds=null}function x(A,te,z){this.onFulfilled=typeof A=="function"?A:null,this.onRejected=typeof te=="function"?te:null,this.promise=z}function K(A,te){var z=!1;try{A(function(_){if(z)return;z=!0,G(te,_)},function(_){if(z)return;z=!0,R(te,_)})}catch(_){if(z)return;z=!0,R(te,_)}}U.prototype.catch=function(A){return this.then(null,A)},U.prototype.then=function(A,te){var z=new this.constructor(N);return j(this,new x(A,te,z)),z},U.prototype.finally=oe,U.all=function(A){return new U(function(te,z){if(!A||typeof A.length=="undefined")throw new TypeError("Promise.all accepts an array");var _=Array.prototype.slice.call(A);if(_.length===0)return te([]);var f=_.length;function p(m,w){try{if(w&&(typeof w=="object"||typeof w=="function")){var B=w.then;if(typeof B=="function"){B.call(w,function(H){p(m,H)},z);return}}_[m]=w,--f===0&&te(_)}catch(H){z(H)}}for(var g=0;g<_.length;g++)p(g,_[g])})},U.resolve=function(A){return A&&typeof A=="object"&&A.constructor===U?A:new U(function(te){te(A)})},U.reject=function(A){return new U(function(te,z){z(A)})},U.race=function(A){return new U(function(te,z){for(var _=0,f=A.length;_<f;_++)A[_].then(te,z)})},U._immediateFn=typeof setImmediate=="function"&&function(A){setImmediate(A)}||function(A){ne(A,0)},U._unhandledRejectionFn=function(te){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",te)};var D=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof I!="undefined")return I;throw new Error("unable to locate global object")}();"Promise"in D?D.Promise.prototype.finally||(D.Promise.prototype.finally=oe):D.Promise=U})}).call(this,r("UywP"))},zqsH:function(wt,P,r){"use strict";r.d(P,"a",function(){return ne});var I=r("PoD0"),oe="label",ne=Object(I.c)(oe)}}]);
|